
/* Step 76: Work Center */
#nik76-work-center,
#nik76-work-center * {
  box-sizing: border-box;
}

#nik76-work-center {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: none;
  color: #0f172a;
}

#nik76-work-center.is-open {
  display: block;
}

.nik76-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.44);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nik76-shell {
  position: absolute;
  inset: 16px;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto minmax(0,1fr);
  overflow: hidden;
  border: 1px solid rgba(125,180,255,.30);
  border-radius: 32px;
  background:
    radial-gradient(circle at 8% 10%, rgba(186,230,253,.45), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(239,248,255,.88));
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 42px 120px rgba(15,23,42,.30);
}

.nik76-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(125,180,255,.18);
}

.nik76-header span {
  display: inline-flex;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nik76-header h2 {
  margin: 12px 0 0;
  font-size: clamp(30px,4vw,44px);
  line-height: 1;
  letter-spacing: -.06em;
}

.nik76-header p {
  margin: 10px 0 0;
  color: #52657c;
}

.nik76-header button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(125,180,255,.24);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  font-size: 24px;
  cursor: pointer;
}

.nik76-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(125,180,255,.16);
}

.nik76-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid rgba(125,180,255,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.70);
  color: #334155;
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}

.nik76-tabs button.active {
  border-color: transparent;
  background: linear-gradient(135deg,#2563eb,#0ea5e9);
  color: #fff;
  box-shadow: 0 14px 34px rgba(37,99,235,.18);
}

.nik76-body {
  overflow: auto;
  padding: 20px 24px 26px;
}

.nik76-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}

.nik76-metric,
.nik76-card,
.nik76-request,
.nik76-check,
.nik76-form,
.nik76-empty,
.nik76-error {
  border: 1px solid rgba(125,180,255,.22);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 48px rgba(35,93,150,.10);
}

.nik76-metric {
  min-height: 116px;
  padding: 18px;
}

.nik76-metric span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.nik76-metric b {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  letter-spacing: -.05em;
}

.nik76-metric small {
  display: block;
  margin-top: 6px;
  color: #64748b;
}

.nik76-card,
.nik76-form {
  padding: 18px;
}

.nik76-card.wide {
  grid-column: span 3;
}

.nik76-card h3 {
  margin: 0 0 12px;
}

.nik76-list {
  display: grid;
  gap: 10px;
}

.nik76-list-item {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(125,180,255,.16);
  border-radius: 16px;
  background: rgba(248,250,252,.62);
  padding: 12px;
}

.nik76-list-item b,
.nik76-request b,
.nik76-check b {
  color: #0f172a;
}

.nik76-list-item span,
.nik76-request span,
.nik76-check span {
  color: #64748b;
  font-size: 13px;
}

.nik76-list-item small,
.nik76-request small,
.nik76-check small {
  color: #52657c;
  line-height: 1.45;
}

.nik76-request {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 14px;
  padding: 14px;
}

.nik76-request.danger {
  border-color: rgba(248,113,113,.24);
  background: rgba(255,241,242,.72);
}

.nik76-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nik76-actions button,
.nik76-toolbar button,
.nik76-form button,
.nik76-card button,
.nik76-list-item button {
  min-height: 36px;
  border: 1px solid rgba(125,180,255,.26);
  border-radius: 13px;
  background: rgba(255,255,255,.76);
  color: #075985;
  padding: 0 11px;
  font-weight: 900;
  cursor: pointer;
}

.nik76-actions button.danger {
  border-color: rgba(248,113,113,.28);
  background: rgba(255,228,230,.84);
  color: #be123c;
}

.nik76-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.nik76-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.nik76-form input,
.nik76-form textarea {
  width: 100%;
  border: 1px solid rgba(125,180,255,.26);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  color: #0f172a;
  padding: 12px;
  outline: none;
}

.nik76-check {
  padding: 16px;
}

.nik76-check.ok {
  border-color: rgba(34,197,94,.24);
  background: rgba(240,253,244,.74);
}

.nik76-check.warning {
  border-color: rgba(251,191,36,.28);
  background: rgba(255,251,235,.82);
}

.nik76-check.error {
  border-color: rgba(248,113,113,.26);
  background: rgba(255,241,242,.82);
}

.nik76-empty,
.nik76-error {
  padding: 24px;
  text-align: center;
  color: #64748b;
}

.nik76-empty.small {
  padding: 14px;
}

.nik76-error {
  color: #be123c;
  border-color: rgba(248,113,113,.26);
  background: rgba(255,241,242,.82);
}

.nik76-admin-nav-button {
  border-color: rgba(37,99,235,.32) !important;
  background: rgba(239,246,255,.78) !important;
}

#nik76-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9700;
  display: none;
  max-width: min(460px, calc(100vw - 32px));
  border: 1px solid rgba(125,211,252,.45);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(15,23,42,.18);
  color: #0f172a;
  padding: 14px 16px;
  font-weight: 850;
}

#nik76-toast.is-visible {
  display: block;
}

@media (max-width: 900px) {
  .nik76-shell {
    inset: 8px;
    border-radius: 24px;
  }

  .nik76-grid {
    grid-template-columns: 1fr;
  }

  .nik76-card.wide {
    grid-column: auto;
  }

  .nik76-request {
    grid-template-columns: 1fr;
  }

  .nik76-actions {
    justify-content: flex-start;
  }
}
