:root {
  --op-bg: #f6f8fb;
  --op-panel: #ffffff;
  --op-panel-soft: #f9fbfd;
  --op-text: #111827;
  --op-muted: #64748b;
  --op-border: #dbe7f0;
  --op-blue: #1476d4;
  --op-blue-soft: #eaf4ff;
  --op-green: #0f9f6e;
  --op-red: #dc2626;
  --op-yellow: #b7791f;
  --op-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --op-line-strong: rgba(15, 23, 42, 0.32);
  --op-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes opFadeLift {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes opSoftSweep {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

@keyframes opApprovalPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06), 0 0 0 0 rgba(20, 118, 212, 0.22);
  }

  50% {
    transform: scale(1.012);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12), 0 0 0 8px rgba(20, 118, 212, 0);
  }
}

@keyframes opAgentRedPulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(220, 38, 38, 0.48),
      0 4px 14px rgba(185, 28, 28, 0.14),
      0 0 0 0 rgba(220, 38, 38, 0.22);
  }

  50% {
    box-shadow:
      inset 0 0 0 1px rgba(220, 38, 38, 0.78),
      0 7px 20px rgba(185, 28, 28, 0.2),
      0 0 0 5px rgba(220, 38, 38, 0);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--op-bg);
  color: var(--op-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.operation-root {
  width: 100%;
  min-height: 100%;
  color: var(--op-text);
}

.operation-root.op-dark,
body.dark-theme .operation-root {
  --op-bg: #0f172a;
  --op-panel: #111c31;
  --op-panel-soft: #0b1222;
  --op-text: #f8fafc;
  --op-muted: #a8b4c7;
  --op-border: #2d3b52;
  --op-blue: #38bdf8;
  --op-blue-soft: rgba(56, 189, 248, 0.12);
  --op-line-strong: rgba(226, 232, 240, 0.24);
  --op-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.op-app {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

#admin-panel .operation-center-admin-shell {
  min-height: 0 !important;
  padding: 16px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#admin-panel .operation-center-admin-shell::before {
  display: none !important;
  content: none !important;
}

#admin-panel .operation-center-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

#admin-panel .operation-center-admin-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

#admin-panel .operation-center-admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#operation-center-admin-status {
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 700;
  display: none !important;
}

.operation-center-host {
  width: 100%;
}

.operation-center-access-denied {
  min-height: 220px;
  align-items: center;
  justify-content: center;
}

.operation-center-denied-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--op-border);
  border-radius: 8px;
  background: var(--op-panel);
  text-align: center;
  box-shadow: var(--op-shadow);
}

.op-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--op-border);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 244, 255, 0.78)),
    var(--op-panel);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  animation: opFadeLift 0.22s var(--op-ease);
}

.op-topbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #1476d4, #38bdf8, #0f9f6e);
}

.op-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--op-blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.op-topbar h1,
.op-scheduler h2,
.op-modal h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.1;
}

.op-top-actions,
.op-view-head,
.op-scheduler-actions,
.op-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.op-period-select {
  display: grid;
  gap: 4px;
  min-width: 190px;
  position: relative;
}

.op-period-select span,
.op-form-grid span {
  color: var(--op-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.op-period-select select,
.op-view-head select,
.op-view-head input,
.op-form-grid input,
.op-form-grid select,
.op-team-table input,
.op-team-table select,
.op-hour-summary input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--op-border);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.9)),
    var(--op-panel-soft);
  color: var(--op-text);
  padding: 0 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(15, 23, 42, 0.04);
  transition: border-color 0.16s var(--op-ease), box-shadow 0.16s var(--op-ease), transform 0.16s var(--op-ease);
}

.op-period-select select:hover,
.op-view-head select:hover,
.op-view-head input:hover,
.op-form-grid input:hover,
.op-form-grid select:hover {
  border-color: rgba(20, 118, 212, 0.42);
}

.op-period-select select:focus,
.op-view-head select:focus,
.op-view-head input:focus,
.op-form-grid input:focus,
.op-form-grid select:focus,
.op-decision-note textarea:focus {
  border-color: rgba(20, 118, 212, 0.72);
  box-shadow: 0 0 0 4px rgba(20, 118, 212, 0.12), 0 12px 24px rgba(15, 23, 42, 0.06);
}

.op-btn,
.op-table button,
.op-option-grid button,
.op-period-menu button,
.op-row-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--op-blue);
  border-radius: 10px;
  background: linear-gradient(135deg, #1788f2, #0a63c7);
  color: #ffffff;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(20, 118, 212, 0.2);
  transition: transform 0.16s var(--op-ease), box-shadow 0.16s var(--op-ease), filter 0.16s var(--op-ease);
}

.op-btn:hover,
.op-table button:hover,
.op-option-grid button:hover,
.op-period-menu button:hover,
.op-row-actions button:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 16px 30px rgba(20, 118, 212, 0.24);
}

.op-btn-soft,
.op-row-actions button,
.op-table button {
  border-color: var(--op-border);
  background: linear-gradient(135deg, #ffffff, #f4f9ff);
  color: var(--op-text);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.op-btn-danger {
  border-color: rgba(220, 38, 38, 0.35);
  background: linear-gradient(135deg, #ef4444, #cf1717);
  color: #ffffff;
}

.op-period-menu {
  position: absolute;
  right: 18px;
  top: calc(100% + 8px);
  z-index: 10;
  display: grid;
  gap: 8px;
  min-width: 210px;
  padding: 10px;
  border: 1px solid var(--op-border);
  border-radius: 8px;
  background: var(--op-panel);
  box-shadow: var(--op-shadow);
  animation: opFadeLift 0.16s var(--op-ease);
}

.op-period-menu button,
.op-option-grid button {
  justify-content: flex-start;
  background: var(--op-panel-soft);
  color: var(--op-text);
  border-color: var(--op-border);
}

.op-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: thin;
}

.op-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid var(--op-border);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f6fbff);
  color: var(--op-muted);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s var(--op-ease), border-color 0.16s var(--op-ease), color 0.16s var(--op-ease), background 0.16s var(--op-ease);
}

.op-tabs button:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 118, 212, 0.4);
  color: var(--op-blue);
}

.op-tabs button.active {
  border-color: var(--op-blue);
  background: linear-gradient(135deg, #1788f2, #0a63c7);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(20, 118, 212, 0.24);
}

.op-panel {
  display: grid;
  gap: 16px;
}

.op-view-head {
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--op-border);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
}

.op-metric-grid,
.op-list-grid,
.op-choice-grid,
.op-option-grid,
.op-form-grid {
  display: grid;
  gap: 12px;
}

.op-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.op-overview-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 118px;
  border: 1px solid rgba(20, 118, 212, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(20, 118, 212, 0.16), rgba(255, 255, 255, 0.92) 42%),
    linear-gradient(315deg, rgba(15, 159, 110, 0.12), transparent 48%);
  padding: 20px;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.08);
  animation: opFadeLift 0.22s var(--op-ease);
}

.op-overview-hero span,
.op-command-grid span,
.op-request-card span,
.op-detail-grid span,
.op-note-box span,
.op-decision-note span {
  color: var(--op-muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.op-overview-hero h2 {
  margin: 4px 0 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.95;
}

.op-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.op-metric-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.op-metric-grid article,
.op-list-card {
  min-height: 104px;
  border: 1px solid var(--op-border);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  padding: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  transition: transform 0.16s var(--op-ease), box-shadow 0.16s var(--op-ease);
}

.op-metric-grid article:hover,
.op-list-card:hover,
.op-request-card:hover,
.op-team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
}

.op-metric-grid article.tone-0 {
  background: linear-gradient(135deg, #ffffff, #eaf4ff);
}

.op-metric-grid article.tone-1 {
  background: linear-gradient(135deg, #ffffff, #ecfff7);
}

.op-metric-grid article.tone-2 {
  background: linear-gradient(135deg, #ffffff, #fff7df);
}

.op-metric-grid article.tone-3 {
  background: linear-gradient(135deg, #ffffff, #f2eeff);
}

.op-metric-grid span,
.op-list-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--op-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.op-metric-grid strong,
.op-list-card strong {
  display: block;
  color: var(--op-text);
  font-size: 30px;
  line-height: 1;
}

.op-list-card small {
  display: block;
  margin-top: 10px;
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 800;
}

.op-command-grid,
.op-request-board,
.op-detail-grid {
  display: grid;
  gap: 12px;
}

.op-command-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.op-command-grid article,
.op-detail-grid article,
.op-note-box,
.op-decision-note {
  border: 1px solid var(--op-border);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  padding: 15px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  min-width: 0;
}

.op-approval-note {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(183, 121, 31, 0.22);
  border-radius: 10px;
  background: rgba(183, 121, 31, 0.1);
  color: var(--op-yellow);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.op-request-approval-state {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(20, 118, 212, 0.24);
  border-radius: 10px;
  background: rgba(20, 118, 212, 0.08);
  padding: 12px 14px;
}

.op-request-approval-state strong {
  color: var(--op-text);
  font-size: 14px;
  font-weight: 950;
}

.op-request-approval-state span {
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.op-draft-preview-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(20, 118, 212, 0.18);
  border-radius: 8px;
  background: rgba(20, 118, 212, 0.08);
  padding: 12px 14px;
}

.op-draft-preview-note strong,
.op-draft-preview-note span {
  display: block;
}

.op-draft-preview-note strong {
  color: var(--op-text);
  font-size: 14px;
  font-weight: 950;
}

.op-draft-preview-note span {
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 800;
}

.op-draft-preview-print {
  margin: 8px 0 0;
  color: var(--op-blue);
  font-size: 13px;
  font-weight: 900;
}

.op-schedule-view-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--op-border);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(234, 244, 255, 0.72));
  padding: 12px 14px;
}

.op-schedule-view-filter > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.op-schedule-view-filter span {
  color: var(--op-blue);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.op-schedule-view-filter strong {
  color: var(--op-text);
  font-size: 15px;
  font-weight: 950;
}

.op-schedule-view-filter select {
  width: min(380px, 100%);
  min-height: 40px;
  border: 1px solid var(--op-border);
  border-radius: 8px;
  background: var(--op-panel);
  color: var(--op-text);
  padding: 0 12px;
  font-weight: 850;
}

.op-command-grid strong,
.op-detail-grid strong {
  display: block;
  max-width: 100%;
  min-width: 0;
  margin-top: 8px;
  color: var(--op-text);
  font-size: clamp(18px, 1.28vw, 22px);
  line-height: 1.14;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.op-command-grid small {
  display: block;
  margin-top: 8px;
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 800;
}

.op-request-board {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.op-request-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--op-border);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(234,244,255,0.8)),
    var(--op-panel);
  padding: 16px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.16s var(--op-ease), box-shadow 0.16s var(--op-ease);
}

.op-request-card.approved {
  border-color: rgba(15, 159, 110, 0.24);
  background: linear-gradient(135deg, #ffffff, #effdf8);
}

.op-request-card.rejected {
  border-color: rgba(220, 38, 38, 0.22);
  background: linear-gradient(135deg, #ffffff, #fff1f1);
}

.op-request-card.approval_pending {
  border-color: rgba(183, 121, 31, 0.28);
  background: linear-gradient(135deg, #ffffff, #fff8e8);
}

.op-request-card.needs-final-approval {
  border-color: rgba(20, 118, 212, 0.5);
  animation: opApprovalPulse 1.25s ease-in-out infinite;
}

.op-request-waiting-flag {
  width: fit-content;
  border: 1px solid rgba(20, 118, 212, 0.28);
  border-radius: 999px;
  background: rgba(20, 118, 212, 0.1);
  color: var(--op-blue);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.op-request-card strong {
  display: block;
  max-width: 100%;
  margin-top: 6px;
  color: var(--op-text);
  font-size: 20px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.op-request-card small,
.op-request-card p {
  margin: 0;
  color: var(--op-muted);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.op-card-foot,
.op-modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.op-modal-card {
  border: 1px solid var(--op-border);
}

.op-modal-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(20, 118, 212, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 118, 212, 0.12), rgba(255,255,255,0.96));
  padding: 16px;
}

.op-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.op-note-box,
.op-decision-note {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.op-note-box p {
  margin: 0;
  color: var(--op-text);
  font-weight: 800;
}

.op-decision-note textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--op-border);
  border-radius: 12px;
  background: var(--op-panel-soft);
  color: var(--op-text);
  padding: 12px;
  outline: none;
}

.op-request-detail {
  display: grid;
  gap: 4px;
}

.op-list-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.op-list-card.status {
  border-color: rgba(15, 159, 110, 0.28);
}

.op-list-card.muted {
  opacity: 0.75;
}

.op-daily {
  display: grid;
  gap: 18px;
}

.op-daily-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(20, 118, 212, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.16), transparent 34%),
    linear-gradient(135deg, #ffffff 22%, #eef7ff);
  padding: 18px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.op-daily-toolbar::after {
  position: absolute;
  right: -52px;
  bottom: -92px;
  width: 220px;
  height: 220px;
  border: 34px solid rgba(20, 118, 212, 0.05);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.op-daily-date-summary,
.op-daily-date-actions {
  position: relative;
  z-index: 1;
}

.op-daily-date-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
}

.op-daily-date-summary::before {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #1788f2, #0a63c7);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(20, 118, 212, 0.25);
  content: "◷";
  font-size: 24px;
  font-weight: 900;
}

.op-daily-date-summary > div {
  display: grid;
  gap: 3px;
}

.op-daily-eyebrow {
  position: absolute;
  left: 62px;
  bottom: calc(50% + 17px);
  color: var(--op-blue);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.op-daily-date-summary strong {
  color: var(--op-text);
  font-size: 22px;
  line-height: 1;
}

.op-daily-date-summary > div > span {
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 850;
}

.op-daily-date-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.op-daily-icon-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--op-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--op-text);
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.16s var(--op-ease), border-color 0.16s var(--op-ease), color 0.16s var(--op-ease);
}

.op-daily-icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 118, 212, 0.42);
  color: var(--op-blue);
}

.op-daily-date-picker {
  display: grid;
  gap: 4px;
  min-width: 168px;
}

.op-daily-date-picker > span {
  color: var(--op-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.op-daily-date-picker input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--op-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--op-text);
  padding: 0 11px;
  font-weight: 850;
  outline: none;
}

.op-daily-date-picker input:focus {
  border-color: rgba(20, 118, 212, 0.62);
  box-shadow: 0 0 0 3px rgba(20, 118, 212, 0.1);
}

.op-daily-today,
.op-daily-add {
  min-height: 42px;
}

.op-daily-add {
  gap: 5px;
}

.op-daily-add > span {
  font-size: 18px;
  line-height: 1;
}

.op-daily-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.op-daily-metrics article {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--op-border);
  border-radius: 15px;
  background: var(--op-panel);
  padding: 14px 16px 14px 19px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.op-daily-metrics article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #64748b;
  content: "";
}

.op-daily-metrics article.is-active::before {
  background: #10b981;
}

.op-daily-metrics article.is-status::before {
  background: #f59e0b;
}

.op-daily-metrics article.is-off::before {
  background: #94a3b8;
}

.op-daily-metrics span {
  color: var(--op-muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.op-daily-metrics strong {
  color: var(--op-text);
  font-size: 25px;
  line-height: 1;
}

.op-daily-metrics small {
  color: var(--op-muted);
  font-size: 11px;
  font-weight: 750;
}

.op-daily-board {
  display: grid;
  gap: 12px;
}

.op-daily-group {
  overflow: hidden;
  border: 1px solid var(--op-border);
  border-radius: 18px;
  background: var(--op-panel);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.055);
}

.op-daily-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--op-border);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(239, 246, 255, 0.72));
  padding: 13px 15px;
}

.op-daily-group > header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.op-daily-group > header > div > div {
  display: grid;
  gap: 2px;
}

.op-daily-group > header strong {
  color: var(--op-text);
  font-size: 15px;
  font-weight: 950;
}

.op-daily-group > header small {
  color: var(--op-muted);
  font-size: 11px;
  font-weight: 750;
}

.op-daily-group-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

.op-daily-group.is-night .op-daily-group-dot {
  background: #6366f1;
  box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.12);
}

.op-daily-group.is-off .op-daily-group-dot {
  background: #94a3b8;
  box-shadow: 0 0 0 5px rgba(148, 163, 184, 0.14);
}

.op-daily-group.is-status .op-daily-group-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.13);
}

.op-daily-group-count {
  flex: 0 0 auto;
  border: 1px solid var(--op-border);
  border-radius: 999px;
  background: var(--op-panel);
  color: var(--op-muted);
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 900;
}

.op-daily-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 9px;
  padding: 11px;
}

.op-daily-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 64px;
  border: 1px solid rgba(219, 231, 240, 0.9);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  padding: 10px;
  transition: transform 0.16s var(--op-ease), border-color 0.16s var(--op-ease), box-shadow 0.16s var(--op-ease);
}

.op-daily-person:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 118, 212, 0.26);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.075);
}

.op-daily-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(20, 118, 212, 0.14);
  border-radius: 13px;
  background: linear-gradient(135deg, #eaf4ff, #dbeafe);
  color: #0a63c7;
  font-size: 13px;
  font-weight: 950;
}

.op-daily-person-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.op-daily-person-copy > strong {
  overflow: hidden;
  color: var(--op-text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-daily-person-copy > small {
  overflow: hidden;
  color: var(--op-muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-daily-person-badges {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.op-daily-work-badge,
.op-daily-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.op-daily-work-badge {
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.op-daily-status-badge {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.1);
  color: #a16207;
  text-align: center;
}

.op-daily-status-badge small {
  font-size: 8px;
  font-weight: 800;
  opacity: 0.75;
}

.op-daily-status-badge.status-report {
  border-color: rgba(225, 29, 72, 0.2);
  background: rgba(225, 29, 72, 0.09);
  color: #be123c;
}

.op-daily-status-badge.status-annual_leave {
  border-color: rgba(124, 58, 237, 0.2);
  background: rgba(124, 58, 237, 0.09);
  color: #6d28d9;
}

.op-daily-person.status-report .op-daily-avatar {
  border-color: rgba(225, 29, 72, 0.16);
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  color: #be123c;
}

.op-daily-person.status-annual_leave .op-daily-avatar {
  border-color: rgba(124, 58, 237, 0.16);
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  color: #6d28d9;
}

.op-daily-person.status-off .op-daily-avatar {
  border-color: rgba(100, 116, 139, 0.16);
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #475569;
}

.op-daily-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 220px;
  place-content: center;
  border: 1px dashed rgba(100, 116, 139, 0.32);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(239,246,255,0.62));
  padding: 28px;
  text-align: center;
}

.op-daily-empty > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: var(--op-blue-soft);
  color: var(--op-blue);
  font-size: 25px;
}

.op-daily-empty strong {
  color: var(--op-text);
  font-size: 17px;
}

.op-daily-empty p {
  max-width: 500px;
  margin: 0;
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.op-daily-roster-view {
  gap: 14px;
}

.op-daily-roster-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--op-border);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.86)),
    var(--op-panel);
  padding: 14px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.055);
}

.op-daily-roster-date {
  display: grid;
  flex: 1 1 auto;
  gap: 6px;
}

.op-daily-roster-date > span {
  color: var(--op-muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.op-daily-roster-date input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--op-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--op-text);
  padding: 0 13px;
  font-size: 14px;
  font-weight: 850;
  outline: none;
  transition: border-color 0.16s var(--op-ease), box-shadow 0.16s var(--op-ease);
}

.op-daily-roster-date input:focus {
  border-color: rgba(20, 118, 212, 0.62);
  box-shadow: 0 0 0 3px rgba(20, 118, 212, 0.1);
}

.op-daily-roster-add {
  min-width: 120px;
  min-height: 44px;
}

.op-daily-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 11px;
}

.op-daily-roster-card {
  --daily-accent: #1476d4;
  --daily-accent-soft: rgba(20, 118, 212, 0.1);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 108px;
  overflow: hidden;
  border: 1px solid var(--op-border);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, var(--daily-accent-soft), transparent 44%),
    linear-gradient(135deg, #ffffff, #f9fbfe);
  padding: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
  transition: transform 0.16s var(--op-ease), border-color 0.16s var(--op-ease), box-shadow 0.16s var(--op-ease);
}

.op-daily-roster-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--daily-accent);
  content: "";
}

.op-daily-roster-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--daily-accent) 30%, var(--op-border));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
}

.op-daily-roster-card.shift-07-16,
.op-daily-roster-card.shift-08-17 {
  --daily-accent: #8b5cf6;
  --daily-accent-soft: rgba(139, 92, 246, 0.1);
}

.op-daily-roster-card.shift-09-18 {
  --daily-accent: #f59e0b;
  --daily-accent-soft: rgba(245, 158, 11, 0.11);
}

.op-daily-roster-card.shift-12-21 {
  --daily-accent: #10b981;
  --daily-accent-soft: rgba(16, 185, 129, 0.1);
}

.op-daily-roster-card.shift-15-24 {
  --daily-accent: #eab308;
  --daily-accent-soft: rgba(234, 179, 8, 0.11);
}

.op-daily-roster-card.shift-21-09 {
  --daily-accent: #6366f1;
  --daily-accent-soft: rgba(99, 102, 241, 0.1);
}

.op-daily-roster-card.shift-off {
  --daily-accent: #94a3b8;
  --daily-accent-soft: rgba(148, 163, 184, 0.13);
}

.op-daily-roster-card.status-report {
  --daily-accent: #e11d48;
  --daily-accent-soft: rgba(225, 29, 72, 0.1);
}

.op-daily-roster-card.status-annual_leave {
  --daily-accent: #7c3aed;
  --daily-accent-soft: rgba(124, 58, 237, 0.1);
}

.op-daily-roster-card.status-manual {
  --daily-accent: #0284c7;
  --daily-accent-soft: rgba(2, 132, 199, 0.1);
}

.op-daily-roster-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--daily-accent) 20%, transparent);
  border-radius: 14px;
  background: var(--daily-accent-soft);
  color: var(--daily-accent);
  font-size: 13px;
  font-weight: 950;
}

.op-daily-roster-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.op-daily-roster-copy > span {
  overflow: hidden;
  color: var(--daily-accent);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.op-daily-roster-copy > strong {
  overflow: visible;
  color: var(--op-text);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.op-daily-roster-copy > small {
  overflow: visible;
  color: var(--op-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.operation-root.op-dark .op-daily-roster-toolbar,
body.dark-theme .operation-root .op-daily-roster-toolbar {
  border-color: rgba(148, 163, 184, 0.2);
  background: linear-gradient(135deg, #111c31, #0b1628);
}

.operation-root.op-dark .op-daily-roster-date input,
body.dark-theme .operation-root .op-daily-roster-date input {
  border-color: rgba(148, 163, 184, 0.2);
  background: #111c31;
  color: #f8fafc;
}

.operation-root.op-dark .op-daily-roster-card,
body.dark-theme .operation-root .op-daily-roster-card {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at 100% 0, var(--daily-accent-soft), transparent 44%),
    linear-gradient(135deg, #111c31, #17233a);
}

.op-harmony-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.op-harmony-board article {
  display: grid;
  gap: 12px;
  border: 1px solid var(--op-border);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  padding: 15px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.16s var(--op-ease), box-shadow 0.16s var(--op-ease), border-color 0.16s var(--op-ease);
}

.op-harmony-board article:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.09);
}

.op-harmony-board article.ok {
  border-color: rgba(15, 159, 110, 0.24);
  background: linear-gradient(135deg, #ffffff, #effdf8);
}

.op-harmony-board article.warn {
  border-color: rgba(183, 121, 31, 0.22);
  background: linear-gradient(135deg, #ffffff, #fff8e8);
}

.op-harmony-board article.muted {
  opacity: 0.72;
}

.op-harmony-board article > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.op-harmony-board strong,
.op-harmony-board small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-harmony-board small,
.op-harmony-board p {
  margin: 0;
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 800;
}

.op-hours-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(20, 118, 212, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.17), transparent 32%),
    linear-gradient(135deg, rgba(20, 118, 212, 0.16), #ffffff 54%);
  padding: 20px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.07);
}

.op-hours-hero > div,
.op-hours-entry,
.op-hours-guide {
  min-width: 0;
}

.op-hours-hero span,
.op-hours-entry-head span,
.op-hours-guide > span,
.op-hours-shift-preview span {
  display: block;
  color: var(--op-blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.op-hours-hero h2 {
  margin: 5px 0 6px;
  color: var(--op-text);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

.op-hours-hero p {
  max-width: 730px;
  margin: 0;
  color: var(--op-muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.op-hours-hero .op-btn {
  flex: 0 0 auto;
}

.op-hours-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 14px;
}

.op-hours-entry,
.op-hours-guide {
  border: 1px solid var(--op-border);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.055);
}

.op-hours-entry {
  padding: 16px;
}

.op-hours-entry-head,
.op-hours-entry-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.op-hours-entry-head {
  margin-bottom: 14px;
}

.op-hours-entry-head strong {
  display: block;
  margin-top: 4px;
  color: var(--op-text);
  font-size: 21px;
  line-height: 1.1;
}

.op-hours-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.op-hours-form textarea {
  width: 100%;
  min-height: 76px;
  border: 1px solid var(--op-border);
  border-radius: 10px;
  background: var(--op-panel-soft);
  color: var(--op-text);
  padding: 10px 12px;
  outline: none;
}

.op-hours-shift-preview {
  display: grid;
  gap: 5px;
  min-height: 68px;
  border: 1px solid rgba(20, 118, 212, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(20, 118, 212, 0.11), rgba(240, 249, 255, 0.86));
  padding: 12px;
}

.op-hours-shift-preview strong {
  color: var(--op-text);
  font-size: 14px;
  line-height: 1.35;
}

.op-hours-entry-actions {
  margin-top: 16px;
}

.op-hours-entry-actions small {
  max-width: 480px;
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.op-hours-guide {
  display: grid;
  align-content: start;
  gap: 12px;
  border-color: rgba(15, 159, 110, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.14), transparent 40%),
    linear-gradient(135deg, #ffffff, #effdf8);
  padding: 18px;
}

.op-hours-guide > span {
  color: var(--op-green);
}

.op-hours-guide strong {
  color: var(--op-text);
  font-size: 18px;
  line-height: 1.2;
}

.op-hours-guide ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.op-hours-guide b {
  color: var(--op-text);
}

.op-hours-metrics article strong {
  font-size: clamp(20px, 2.2vw, 28px);
}

.op-hours-table td strong {
  color: var(--op-text);
  font-size: 13px;
}

.op-hours-table .op-row-actions {
  flex-wrap: nowrap;
}

.op-hours-table .op-row-actions button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
}

.op-hours-empty-cell {
  min-height: 118px;
  color: var(--op-muted) !important;
  text-align: center !important;
}

.operation-root.op-dark .op-hours-hero,
body.dark-theme .operation-root .op-hours-hero {
  border-color: rgba(56, 189, 248, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.15), transparent 32%),
    linear-gradient(135deg, rgba(14, 165, 233, 0.18), #111c31 58%);
}

.operation-root.op-dark .op-hours-entry,
body.dark-theme .operation-root .op-hours-entry,
.operation-root.op-dark .op-hours-guide,
body.dark-theme .operation-root .op-hours-guide {
  border-color: rgba(148, 163, 184, 0.22);
  background: linear-gradient(135deg, #111c31, #17233a);
}

.operation-root.op-dark .op-hours-shift-preview,
body.dark-theme .operation-root .op-hours-shift-preview {
  border-color: rgba(56, 189, 248, 0.24);
  background: rgba(14, 165, 233, 0.11);
}

.operation-root.op-dark .op-hours-form textarea,
body.dark-theme .operation-root .op-hours-form textarea {
  border-color: rgba(148, 163, 184, 0.24);
  background: #0b1222;
  color: #f8fafc;
}

.op-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--op-border);
  border-radius: 8px;
  background: var(--op-panel);
}

.op-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.op-table th,
.op-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--op-border);
  color: var(--op-text);
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}

.op-table th {
  color: var(--op-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.op-table tr:last-child td {
  border-bottom: 0;
}

.op-table small {
  display: block;
  margin-top: 3px;
  color: var(--op-muted);
  font-size: 11px;
}

.op-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: var(--op-blue-soft);
  color: var(--op-blue);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.op-badge.ok {
  background: rgba(15, 159, 110, 0.12);
  color: var(--op-green);
}

.op-badge.warn {
  background: rgba(183, 121, 31, 0.12);
  color: var(--op-yellow);
}

.op-badge.danger {
  background: rgba(220, 38, 38, 0.12);
  color: var(--op-red);
}

.op-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.op-switch input {
  position: absolute;
  opacity: 0;
}

.op-switch span {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
}

.op-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.18s ease;
}

.op-switch input:checked + span {
  background: var(--op-blue);
}

.op-switch input:checked + span::after {
  transform: translateX(18px);
}

.op-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding: 14px;
  border: 1px solid var(--op-border);
  border-radius: 8px;
  background: var(--op-panel);
}

.op-choice-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: var(--op-text);
  font-size: 13px;
  font-weight: 750;
}

.op-option-grid,
.op-settings-landing {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.op-settings-landing {
  display: grid;
  gap: 14px;
}

.op-option-grid button,
.op-settings-landing button {
  position: relative;
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid rgba(20, 118, 212, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(20, 118, 212, 0.2), rgba(255, 255, 255, 0.94) 48%),
    linear-gradient(315deg, rgba(15, 159, 110, 0.16), transparent 52%);
  color: var(--op-text);
  padding: 20px;
  text-align: left;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s var(--op-ease), box-shadow 0.18s var(--op-ease), border-color 0.18s var(--op-ease);
}

.op-settings-landing button::after,
.op-settings-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 12%, rgba(255, 255, 255, 0.42) 42%, transparent 70%);
  pointer-events: none;
  transform: translateX(-120%);
  transition: transform 0.48s var(--op-ease);
}

.op-settings-landing button:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 118, 212, 0.42);
  box-shadow: 0 30px 62px rgba(20, 118, 212, 0.14);
}

.op-settings-landing button:hover::after {
  transform: translateX(120%);
}

.op-settings-landing span,
.op-settings-hero span {
  color: var(--op-blue);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.op-settings-landing strong {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.op-settings-landing small {
  color: var(--op-muted);
  font-size: 13px;
  font-weight: 800;
}

.op-settings-hero {
  position: relative;
  display: grid;
  gap: 7px;
  overflow: hidden;
  border: 1px solid rgba(20, 118, 212, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(20, 118, 212, 0.16), rgba(255, 255, 255, 0.94) 56%),
    linear-gradient(315deg, rgba(15, 159, 110, 0.12), transparent 54%);
  padding: 18px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.07);
}

.op-settings-hero.expert {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(255, 255, 255, 0.94) 56%),
    linear-gradient(315deg, rgba(20, 118, 212, 0.13), transparent 54%);
}

.op-settings-hero strong {
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.05;
}

.op-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.op-team-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--op-border);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.9)),
    var(--op-panel);
  padding: 15px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.16s var(--op-ease), box-shadow 0.16s var(--op-ease), border-color 0.16s var(--op-ease);
}

.op-team-card.passive {
  opacity: 0.72;
}

.op-team-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.op-team-main strong,
.op-team-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-team-main small,
.op-team-meta {
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 750;
}

.op-rule-tags,
.op-team-meta,
.op-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.op-rule-tags span,
.op-team-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--op-blue-soft);
  color: var(--op-blue);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.op-card-actions button {
  flex: 1 1 auto;
  min-height: 36px;
  border: 1px solid var(--op-border);
  border-radius: 8px;
  background: var(--op-panel-soft);
  color: var(--op-text);
  font-size: 12px;
  font-weight: 850;
  transition: transform 0.14s var(--op-ease), border-color 0.14s var(--op-ease), background 0.14s var(--op-ease);
}

.op-card-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 118, 212, 0.38);
  background: #ffffff;
}

.op-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding: 14px;
  border: 1px solid var(--op-border);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.op-settings-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.op-form-grid label {
  display: grid;
  gap: 6px;
}

.op-form-grid .wide {
  grid-column: 1 / -1;
}

.op-status-scope-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  border: 1px solid rgba(20, 118, 212, 0.2);
  border-radius: 12px;
  background: rgba(20, 118, 212, 0.08);
  padding: 12px 14px;
}

.op-status-scope-note strong {
  color: var(--op-blue);
  font-size: 12px;
  font-weight: 950;
}

.op-status-scope-note span {
  color: var(--op-muted);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
  text-transform: none;
}

.op-rule-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.op-rule-picker label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  border: 1px solid var(--op-border);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f5faff);
  padding: 8px 10px;
  color: var(--op-text);
  font-size: 12px;
  font-weight: 850;
  transition: transform 0.16s var(--op-ease), border-color 0.16s var(--op-ease), background 0.16s var(--op-ease);
}

.op-rule-picker label:hover,
.op-rule-picker label:has(input:checked) {
  transform: translateY(-1px);
  border-color: rgba(20, 118, 212, 0.42);
  background: linear-gradient(135deg, #eaf4ff, #ffffff);
}

.op-rule-picker input,
.op-agent-picker input {
  width: 18px;
  height: 18px;
  accent-color: var(--op-blue);
}

.op-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px solid var(--op-border);
  border-radius: 8px;
  background: var(--op-panel);
  color: var(--op-muted);
  font-weight: 850;
}

.op-empty.small {
  min-height: 96px;
}

.op-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  min-height: 44px;
  max-width: 320px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 850;
  box-shadow: var(--op-shadow);
}

.op-app-scheduler > .op-toast {
  z-index: 300100;
}

.op-review-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(20, 118, 212, 0.28);
  border-radius: 8px;
  background: rgba(20, 118, 212, 0.08);
  color: var(--op-blue);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.op-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.48);
}

.op-modal section {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 8px;
  background: var(--op-bg);
  padding: 16px;
  box-shadow: var(--op-shadow);
}

.op-scheduler {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  gap: 12px;
  min-height: 100vh;
  padding: 0 0 36px;
  background:
    linear-gradient(135deg, rgba(20, 118, 212, 0.16), rgba(20, 118, 212, 0.04) 34%, transparent 62%),
    linear-gradient(315deg, rgba(15, 159, 110, 0.13), rgba(15, 159, 110, 0.04) 30%, transparent 60%),
    var(--op-bg);
  color: var(--op-text);
  animation: opFadeLift 0.22s var(--op-ease);
}

.op-schedule-workspace {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.op-schedule-workspace.review-only {
  grid-template-columns: minmax(0, 1fr) !important;
}

.op-schedule-side,
.op-schedule-main {
  min-width: 0;
}

.op-scheduler-head,
.op-assignment-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--op-border);
  border-radius: 8px;
  background: var(--op-panel);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.op-scheduler-head::after,
.op-assignment-bar::after {
  display: none;
}

.op-scheduler-head > *,
.op-assignment-bar > * {
  position: relative;
  z-index: 1;
}

.op-scheduler-head span {
  color: var(--op-blue);
  font-size: 12px;
  font-weight: 900;
}

.op-schedule-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--op-border);
  border-radius: 8px;
  background: var(--op-panel);
  padding: 12px 14px;
}

.op-schedule-pages > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.op-schedule-pages span {
  color: var(--op-blue);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.op-schedule-pages strong {
  color: var(--op-text);
  font-size: 15px;
  font-weight: 950;
}

.op-schedule-pages select {
  width: min(360px, 100%);
  min-height: 40px;
  border: 1px solid var(--op-border);
  border-radius: 8px;
  background: var(--op-panel-soft);
  color: var(--op-text);
  padding: 0 12px;
  font-weight: 850;
}

.op-assignment-bar {
  align-items: flex-start;
  display: grid;
  grid-template-columns: minmax(190px, 0.6fr) minmax(0, 2.6fr) minmax(280px, 0.8fr);
  min-height: 82px;
}

.op-scheduler .op-assignment-bar {
  position: sticky;
  top: 8px;
  z-index: 45;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 250, 255, 0.9)),
    var(--op-panel);
  box-shadow:
    0 18px 44px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.op-selection-status {
  display: grid;
  gap: 4px;
}

.op-selection-status span {
  color: var(--op-blue);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.op-selection-status strong {
  color: var(--op-text);
  font-size: 17px;
  line-height: 1.25;
}

.op-selection-status small {
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 850;
}

.op-agent-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  padding: 2px;
}

.op-agent-picker label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 34px;
  min-width: 148px;
  max-width: none;
  border: 1px solid var(--op-border);
  border-radius: 8px;
  background: var(--op-panel-soft);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.16s var(--op-ease), border-color 0.16s var(--op-ease), background 0.16s var(--op-ease), box-shadow 0.16s var(--op-ease);
}

.op-agent-picker label:hover,
.op-agent-picker label:has(input:checked),
.op-agent-picker label.picked {
  border-color: rgba(20, 118, 212, 0.46);
  background: linear-gradient(135deg, rgba(234, 244, 255, 0.95), rgba(255, 255, 255, 0.92));
  box-shadow: 0 10px 24px rgba(20, 118, 212, 0.12);
}

.op-agent-picker label:has(input:checked),
.op-agent-picker label.picked {
  border-color: #991b1b;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #ffffff;
  box-shadow:
    0 0 0 2px rgba(254, 202, 202, 0.95),
    0 12px 28px rgba(153, 27, 27, 0.26);
}

.op-agent-picker label:has(input:checked) .op-avatar,
.op-agent-picker label.picked .op-avatar {
  border-color: rgba(255, 255, 255, 0.86);
  background: #ffffff;
  color: #dc2626;
}

.op-agent-picker label > span:last-child {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-agent-picker label.locked {
  cursor: default;
}

.op-macro-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 240px;
}

.op-macro-strip select {
  width: 160px;
  min-height: 38px;
}

.op-schedule-request-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  border: 1px solid rgba(20, 118, 212, 0.16);
  border-radius: 18px;
  padding: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(20, 118, 212, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.88));
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  animation: opFadeLift 0.18s var(--op-ease);
}

.op-schedule-request-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 200500 !important;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 44px);
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: opFadeLift 0.16s var(--op-ease);
}

#operation-center-modal-portal {
  position: fixed;
  inset: 0;
  z-index: 200500;
  pointer-events: none;
}

#operation-center-modal-portal .op-schedule-request-backdrop {
  pointer-events: auto;
}

body.dark-theme #operation-center-modal-portal,
#operation-center-modal-portal.op-dark {
  --op-bg: #0f172a;
  --op-panel: #111c31;
  --op-panel-soft: #0b1222;
  --op-text: #f8fafc;
  --op-muted: #a8b4c7;
  --op-border: #2d3b52;
  --op-blue: #38bdf8;
  --op-blue-soft: rgba(56, 189, 248, 0.12);
  --op-line-strong: rgba(226, 232, 240, 0.24);
  --op-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.op-schedule-request-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(980px, 96vw);
  max-height: min(760px, 88vh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(20, 118, 212, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(20, 118, 212, 0.11), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.26);
  padding: 14px;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.op-schedule-request-modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--op-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  padding: 12px;
}

.op-schedule-request-modal > header span {
  display: block;
  color: var(--op-blue);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.op-schedule-request-modal > header strong {
  display: block;
  color: var(--op-text);
  font-size: 22px;
  font-weight: 950;
}

.op-schedule-request-modal .op-schedule-request-panel {
  max-height: 100%;
  overflow: auto;
  padding: 10px;
}

.op-schedule-request {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-height: 76px;
  border: 1px solid var(--op-border);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.82);
  transition: transform 0.16s var(--op-ease), opacity 0.16s var(--op-ease), border-color 0.16s var(--op-ease);
}

.op-schedule-request:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 118, 212, 0.34);
}

.op-schedule-request input {
  margin-top: 4px;
}

.op-schedule-request span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.op-schedule-request strong {
  color: var(--op-text);
  font-size: 13px;
}

.op-schedule-request em,
.op-schedule-request small {
  color: var(--op-muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.op-schedule-request b {
  border-radius: 999px;
  background: rgba(20, 118, 212, 0.1);
  color: var(--op-blue);
  padding: 5px 8px;
  font-size: 10px;
  text-transform: uppercase;
}

.op-schedule-request.reviewed {
  opacity: 0.56;
  border-color: rgba(15, 159, 110, 0.36);
  background: rgba(236, 253, 245, 0.84);
}

.op-schedule-request.reviewed span {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(15, 159, 110, 0.62);
}

.op-week-board,
.op-published-board {
  display: grid;
  gap: 16px;
  overflow: visible;
  padding: 2px 0 8px;
  overscroll-behavior: auto;
}

.op-week-section {
  border: 1px solid var(--op-border);
  border-radius: 8px;
  background: var(--op-panel);
  overflow: auto;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  contain: layout paint style;
}

.op-week-title {
  padding: 10px 12px;
  border-bottom: 1px solid var(--op-border);
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(234, 244, 255, 0.86));
}

.op-week-grid {
  display: grid;
  grid-template-columns: 100px repeat(7, minmax(150px, 1fr));
  grid-template-rows: 48px;
  grid-auto-rows: minmax(74px, auto);
  min-width: 0;
  border-top: 2px solid var(--op-line-strong);
  border-left: 2px solid var(--op-line-strong);
}

.op-week-corner,
.op-week-day,
.op-week-time,
.op-slot-cell {
  min-height: 74px;
  border-right: 1px solid var(--op-line-strong);
  border-bottom: 1px solid var(--op-line-strong);
  padding: 7px;
}

.op-week-corner,
.op-week-day,
.op-week-time {
  background: var(--op-panel-soft);
  color: var(--op-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  position: sticky;
  z-index: 2;
}

.op-week-time {
  display: flex;
  align-items: center;
  color: #0f172a;
  font-size: 11px;
  letter-spacing: 0;
  left: 0;
  z-index: 3;
  box-shadow: 1px 0 0 var(--op-line-strong);
}

.op-week-corner {
  left: 0;
  top: 0;
  z-index: 5;
  min-height: 54px;
}

.op-week-day {
  top: 0;
  z-index: 4;
  min-height: 54px;
  display: grid;
  align-content: start;
  gap: 4px;
  background: linear-gradient(135deg, #fbffd0, #fffef2);
  color: #0f172a;
}

.op-week-day strong {
  font-size: 12px;
  line-height: 1.1;
}

.op-week-day small {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 950;
  text-transform: none;
  white-space: normal;
}

.op-week-day.holiday {
  box-shadow: inset 0 -3px 0 rgba(220, 38, 38, 0.55);
}

.op-week-day.blank,
.op-slot-cell.blank {
  background: repeating-linear-gradient(135deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.08) 8px, rgba(148, 163, 184, 0.04) 8px, rgba(148, 163, 184, 0.04) 16px);
  pointer-events: none;
}

.op-week-time.shift-07-16,
.op-slot-cell.shift-07-16 {
  background: linear-gradient(135deg, #c99cff, #dfbdff);
}

.op-week-time.shift-08-17,
.op-slot-cell.shift-08-17 {
  background: linear-gradient(135deg, #d9b5ff, #efd9ff);
}

.op-week-time.shift-09-18,
.op-slot-cell.shift-09-18 {
  background: linear-gradient(135deg, #ffd19c, #ffe1b7);
}

.op-week-time.shift-12-21,
.op-slot-cell.shift-12-21 {
  background: linear-gradient(135deg, #00ee26, #7dff68);
}

.op-week-time.shift-15-24,
.op-slot-cell.shift-15-24 {
  background: linear-gradient(135deg, #fff500, #fff982);
}

.op-week-time.shift-21-09,
.op-slot-cell.shift-21-09 {
  background: linear-gradient(135deg, #d99a9a, #efb6b6);
}

.op-week-time.off,
.op-slot-cell.off {
  background: #eef2f7;
}

.op-week-time.leave,
.op-slot-cell.leave {
  background: #c7f6d1;
}

.op-week-time.report,
.op-slot-cell.report {
  background: #ffd5d5;
}

.op-slot-cell {
  user-select: none;
  display: flex;
  align-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 5px;
  color: #0f172a;
  cursor: crosshair;
  transition: box-shadow 0.08s linear, filter 0.08s var(--op-ease);
}

.op-slot-cell:not(.blank):hover {
  filter: brightness(1.03) saturate(1.06);
  box-shadow: inset 0 0 0 2px rgba(8, 121, 238, 0.42);
}

.op-slot-cell.selected {
  outline: 3px solid #0879ee;
  outline-offset: -3px;
  box-shadow: inset 0 0 0 999px rgba(8, 121, 238, 0.16);
}

.op-slot-cell span {
  margin: 0;
}

.op-cell-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  max-width: 100%;
  min-height: 24px;
  max-width: calc(50% - 3px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
  padding: 2px 7px 2px 3px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
  transition: background 0.08s var(--op-ease), box-shadow 0.08s var(--op-ease), color 0.08s var(--op-ease);
}

.op-assignment-dragging,
.op-assignment-dragging * {
  cursor: grabbing !important;
}

.op-cell-name.moving {
  z-index: 10;
  opacity: 0.72;
  transform: scale(0.98);
  box-shadow:
    0 0 0 2px rgba(8, 121, 238, 0.26),
    0 9px 18px rgba(15, 23, 42, 0.18);
}

.op-slot-cell.move-target {
  outline: 3px solid #0f9f6e;
  outline-offset: -3px;
  box-shadow:
    inset 0 0 0 999px rgba(15, 159, 110, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.op-published-board .op-slot-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 3px;
  cursor: default;
}

.op-published-board .op-cell-name {
  width: 100%;
  max-width: 100%;
  min-height: 18px;
  border-radius: 5px;
  padding: 2px 5px;
}

.op-published-board .op-cell-name .op-avatar.mini {
  display: none;
}

.op-published-board .op-cell-name b {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  font-size: 9.5px;
  line-height: 1.12;
}

.op-cell-name.highlighted {
  z-index: 6;
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  color: #ffffff;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.92),
    0 0 0 4px rgba(185, 28, 28, 0.55),
    0 9px 18px rgba(127, 29, 29, 0.34);
}

.op-cell-name.highlighted .op-avatar.mini {
  background: #ffffff;
  color: #dc2626;
  border-color: rgba(255, 255, 255, 0.9);
}

.op-cell-name.highlighted b {
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(127, 29, 29, 0.42);
}

.op-scheduler.fullscreen {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  z-index: 300000;
  min-height: 100vh;
  height: 100vh;
  max-height: none;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(135deg, rgba(20, 118, 212, 0.13), rgba(20, 118, 212, 0.03) 30%, transparent 58%),
    linear-gradient(315deg, rgba(15, 159, 110, 0.11), rgba(15, 159, 110, 0.03) 28%, transparent 60%),
    var(--op-bg);
  animation: none;
}

.op-scheduler.fullscreen > * + * {
  margin-top: 12px;
}

.op-scheduler.fullscreen .op-scheduler-head,
.op-scheduler.fullscreen .op-schedule-pages {
  padding: 9px 12px;
  flex-shrink: 0;
}

.op-scheduler.fullscreen .op-scheduler-head {
  position: sticky;
  top: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 2fr);
  align-items: center;
  overflow: visible;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.op-scheduler.fullscreen .op-scheduler-head h2 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.08;
}

.op-scheduler.fullscreen .op-scheduler-actions {
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.op-scheduler.fullscreen .op-scheduler-actions .op-btn {
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.op-scheduler.fullscreen .op-fullscreen-btn {
  border-color: rgba(220, 38, 38, 0.3);
  color: #991b1b;
}

.op-scheduler.fullscreen .op-schedule-workspace {
  display: grid;
  grid-template-columns: minmax(178px, 216px) minmax(0, 1fr);
  align-items: start;
  min-height: 0;
  overflow: visible;
}

.op-scheduler.fullscreen .op-schedule-side,
.op-scheduler.fullscreen .op-schedule-main {
  min-height: 0;
  overflow: visible;
  position: relative;
}

.op-scheduler.fullscreen .op-schedule-side {
  align-self: stretch;
}

.op-scheduler.fullscreen .op-assignment-bar {
  position: sticky;
  top: 76px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  align-items: stretch;
  height: auto;
  min-height: 0;
  gap: 7px;
  padding: 7px;
  overflow: visible;
}

.op-scheduler.fullscreen .op-selection-status {
  gap: 2px;
}

.op-scheduler.fullscreen .op-selection-status span {
  font-size: 9px;
}

.op-scheduler.fullscreen .op-selection-status strong {
  font-size: 12.5px;
  line-height: 1.15;
}

.op-scheduler.fullscreen .op-selection-status small {
  font-size: 10.5px;
}

.op-scheduler.fullscreen .op-agent-picker {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 4px;
  max-height: calc(100vh - 224px);
  overflow: auto;
  padding: 2px 4px 2px 2px;
}

.op-scheduler.fullscreen .op-agent-picker label {
  width: 100%;
  min-width: 0;
  min-height: 29px;
  gap: 5px;
  border-radius: 6px;
  padding: 0 7px;
  font-size: 10.5px;
}

.op-scheduler.fullscreen .op-agent-picker input {
  width: 14px;
  height: 14px;
}

.op-scheduler.fullscreen .op-agent-picker .op-avatar {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
  font-size: 8px;
}

.op-scheduler.fullscreen .op-agent-picker label > span:last-child {
  max-width: none;
}

.op-scheduler.fullscreen .op-macro-strip {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: stretch;
  min-width: 0;
  gap: 5px;
}

.op-scheduler.fullscreen .op-macro-strip select,
.op-scheduler.fullscreen .op-macro-strip .op-btn {
  width: 100%;
  min-height: 32px;
  font-size: 10.5px;
}

.op-scheduler.fullscreen .op-week-board {
  height: auto;
  min-height: 0;
  overflow: visible !important;
  padding: 0 0 18px;
  position: relative;
  z-index: 1;
}

.op-scheduler.fullscreen .op-week-section {
  min-width: 0;
  contain: none;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

.op-scheduler.fullscreen .op-week-grid {
  grid-template-columns: 92px repeat(7, minmax(160px, 1fr));
  grid-auto-rows: minmax(86px, auto);
}

.op-scheduler.fullscreen .op-week-corner,
.op-scheduler.fullscreen .op-week-day {
  min-height: 50px;
}

.op-scheduler.fullscreen .op-week-time,
.op-scheduler.fullscreen .op-slot-cell {
  min-height: 86px;
}

.op-scheduler.fullscreen .op-cell-name {
  max-width: calc(50% - 3px);
}

.op-scheduler.fullscreen .op-warning-panel,
.op-scheduler.fullscreen .op-hour-summary {
  position: relative;
  z-index: 1;
}

.op-cell-name:hover,
.op-cell-name:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  outline: 2px solid rgba(8, 121, 238, 0.22);
  outline-offset: 1px;
}

.op-cell-name.highlighted:hover,
.op-cell-name.highlighted:focus-visible {
  background: linear-gradient(135deg, #991b1b, #dc2626);
  outline-color: rgba(255, 255, 255, 0.9);
}

.op-cell-name .op-avatar.mini {
  transition: opacity 0.14s var(--op-ease), transform 0.14s var(--op-ease);
}

.op-cell-remove {
  position: absolute;
  left: 3px;
  top: 50%;
  z-index: 2;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.74);
  transition: opacity 0.14s var(--op-ease), transform 0.14s var(--op-ease);
  cursor: pointer;
}

.op-cell-name:hover .op-avatar.mini,
.op-cell-name:focus-within .op-avatar.mini,
.op-cell-name:focus-visible .op-avatar.mini {
  opacity: 0;
  transform: scale(0.74);
}

.op-cell-name:hover .op-cell-remove,
.op-cell-name:focus-within .op-cell-remove,
.op-cell-name:focus-visible .op-cell-remove {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.op-cell-name b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 950;
}

.op-published-board .op-cell-name b {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  font-size: 9.5px;
  line-height: 1.12;
}

.op-warning-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid var(--op-border);
  border-radius: 8px;
  background: var(--op-panel);
  padding: 12px;
  animation: opFadeLift 0.18s var(--op-ease);
}

.op-warning-panel.clean {
  display: flex;
  align-items: center;
  min-height: 54px;
}

.op-warning-panel > div:first-child {
  display: grid;
  align-content: center;
  gap: 4px;
}

.op-warning-panel strong {
  color: var(--op-text);
  font-size: 15px;
  font-weight: 950;
}

.op-warning-panel span {
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 800;
}

.op-warning-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.op-warning-list article {
  display: grid;
  gap: 3px;
  border: 1px solid var(--op-border);
  border-radius: 8px;
  background: var(--op-panel-soft);
  padding: 9px 10px;
}

.op-warning-list article.red {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(220, 38, 38, 0.06);
}

.op-warning-list article.yellow {
  border-color: rgba(183, 121, 31, 0.25);
  background: rgba(183, 121, 31, 0.07);
}

.op-warning-list b,
.op-warning-list em {
  color: var(--op-text);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.op-warning-list span {
  color: var(--op-muted);
  font-size: 11px;
}

.op-publish-warning-modal {
  z-index: 10020;
}

.op-modal .op-publish-warning-card {
  width: min(620px, 100%);
}

.op-publish-warning-card .op-modal-hero {
  border-color: rgba(220, 38, 38, 0.2);
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(250, 204, 21, 0.1)),
    var(--op-panel-soft);
}

.op-publish-warning-card h2 {
  line-height: 1.12;
}

.op-publish-warning-body {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid rgba(220, 38, 38, 0.16);
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.05);
  padding: 14px;
}

.op-publish-warning-body strong {
  color: var(--op-text);
  font-size: 15px;
  font-weight: 950;
}

.op-publish-warning-body p {
  margin: 0;
  color: var(--op-muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.op-publish-warning-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.op-approval-alert-modal {
  z-index: 10030;
}

.op-modal .op-approval-alert-card {
  width: min(640px, 100%);
}

.op-approval-alert-card .op-modal-hero {
  border-color: rgba(20, 118, 212, 0.22);
  background:
    linear-gradient(135deg, rgba(20, 118, 212, 0.13), rgba(15, 159, 110, 0.09)),
    var(--op-panel-soft);
}

.op-approval-alert-body {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid rgba(20, 118, 212, 0.16);
  border-radius: 8px;
  background: rgba(20, 118, 212, 0.06);
  padding: 14px;
}

.op-approval-alert-body strong {
  color: var(--op-text);
  font-size: 15px;
  font-weight: 950;
}

.op-approval-alert-body p {
  margin: 0;
  color: var(--op-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.op-approval-alert-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.op-avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--op-blue-soft);
  color: var(--op-blue);
  border: 1px solid rgba(20, 118, 212, 0.16);
  font-size: 10px;
  font-weight: 950;
}

.op-avatar.large {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  font-size: 13px;
}

.op-avatar.mini {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  font-size: 8px;
  background: #ffffff;
}

.op-hour-summary {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  contain: layout paint style;
}

.op-hour-summary .op-table {
  min-width: 720px;
}

.op-hour-summary input {
  max-width: 100px;
}

.op-app.op-app-scheduler {
  width: min(1920px, calc(100% - 8px));
  max-width: none;
  padding-top: 0;
}

.op-week-time {
  min-height: 74px;
}

.operation-root.op-dark,
body.dark-theme .operation-root {
  background:
    radial-gradient(circle at top left, rgba(20, 118, 212, 0.18), transparent 34%),
    radial-gradient(circle at right 20%, rgba(15, 159, 110, 0.12), transparent 30%),
    #050914;
}

.operation-root.op-dark .op-topbar,
body.dark-theme .operation-root .op-topbar,
.operation-root.op-dark .op-view-head,
body.dark-theme .operation-root .op-view-head,
.operation-root.op-dark .op-scheduler-head,
body.dark-theme .operation-root .op-scheduler-head,
.operation-root.op-dark .op-assignment-bar,
body.dark-theme .operation-root .op-assignment-bar,
.operation-root.op-dark .op-modal section,
body.dark-theme .operation-root .op-modal section,
.operation-root.op-dark .op-table-wrap,
body.dark-theme .operation-root .op-table-wrap,
.operation-root.op-dark .op-period-menu,
body.dark-theme .operation-root .op-period-menu {
  border-color: rgba(125, 211, 252, 0.16);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(11, 18, 32, 0.94)),
    #0b1220;
  color: #f8fafc;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.operation-root.op-dark .op-schedule-request-panel,
body.dark-theme .operation-root .op-schedule-request-panel,
.operation-root.op-dark .op-schedule-request,
body.dark-theme .operation-root .op-schedule-request {
  border-color: rgba(125, 211, 252, 0.15);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(11, 18, 32, 0.9)),
    #0b1220;
}

.operation-root.op-dark .op-schedule-request-modal,
body.dark-theme .operation-root .op-schedule-request-modal {
  border-color: rgba(125, 211, 252, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(8, 13, 26, 0.96));
  box-shadow: 0 30px 96px rgba(0, 0, 0, 0.48);
}

.operation-root.op-dark .op-schedule-request-modal > header,
body.dark-theme .operation-root .op-schedule-request-modal > header {
  border-color: rgba(125, 211, 252, 0.16);
  background: rgba(15, 23, 42, 0.72);
}

.operation-root.op-dark .op-schedule-request-modal > header strong,
body.dark-theme .operation-root .op-schedule-request-modal > header strong {
  color: #f8fafc;
}

.operation-root.op-dark .op-schedule-request.reviewed,
body.dark-theme .operation-root .op-schedule-request.reviewed {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(6, 78, 59, 0.28);
}

.operation-root.op-dark .op-topbar h1,
body.dark-theme .operation-root .op-topbar h1,
.operation-root.op-dark .op-overview-hero h2,
body.dark-theme .operation-root .op-overview-hero h2,
.operation-root.op-dark .op-scheduler h2,
body.dark-theme .operation-root .op-scheduler h2,
.operation-root.op-dark .op-team-main strong,
body.dark-theme .operation-root .op-team-main strong,
.operation-root.op-dark .op-metric-grid strong,
body.dark-theme .operation-root .op-metric-grid strong,
.operation-root.op-dark .op-command-grid strong,
body.dark-theme .operation-root .op-command-grid strong,
.operation-root.op-dark .op-table td,
body.dark-theme .operation-root .op-table td {
  color: #f8fafc;
}

.operation-root.op-dark .op-tabs button,
body.dark-theme .operation-root .op-tabs button,
.operation-root.op-dark .op-btn-soft,
body.dark-theme .operation-root .op-btn-soft,
.operation-root.op-dark .op-row-actions button,
body.dark-theme .operation-root .op-row-actions button,
.operation-root.op-dark .op-table button,
body.dark-theme .operation-root .op-table button,
.operation-root.op-dark .op-card-actions button,
body.dark-theme .operation-root .op-card-actions button,
.operation-root.op-dark .op-period-select select,
body.dark-theme .operation-root .op-period-select select,
.operation-root.op-dark .op-view-head select,
body.dark-theme .operation-root .op-view-head select,
.operation-root.op-dark .op-view-head input,
body.dark-theme .operation-root .op-view-head input,
.operation-root.op-dark .op-form-grid input,
body.dark-theme .operation-root .op-form-grid input,
.operation-root.op-dark .op-form-grid select,
body.dark-theme .operation-root .op-form-grid select,
.operation-root.op-dark .op-hour-summary input,
body.dark-theme .operation-root .op-hour-summary input {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.84));
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 26px rgba(0, 0, 0, 0.2);
}

/* Modern dönem oluşturucu + serbest metin alanı davranışı */
.op-period-builder {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(20, 118, 212, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(20, 118, 212, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(234, 244, 255, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 18px 42px rgba(15, 23, 42, 0.07);
}

.op-period-builder-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
}

.op-period-builder-head strong {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--op-text);
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.op-period-builder-head .op-btn {
  min-height: 52px;
  padding: 0;
  font-size: 26px;
}

.op-month-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.op-month-grid button {
  position: relative;
  min-height: 76px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 255, 0.82));
  color: var(--op-text);
  cursor: pointer;
  text-align: left;
  padding: 13px 14px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.045);
  transition: transform 0.16s var(--op-ease), box-shadow 0.16s var(--op-ease), border-color 0.16s var(--op-ease), background 0.16s var(--op-ease);
}

.op-month-grid button::after {
  content: "";
  position: absolute;
  inset: auto -18px -28px auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 118, 212, 0.18), transparent 68%);
  pointer-events: none;
}

.op-month-grid button span {
  display: block;
  color: var(--op-blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.op-month-grid button strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  font-weight: 950;
}

.op-month-grid button:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 118, 212, 0.35);
  box-shadow: 0 18px 34px rgba(20, 118, 212, 0.13);
}

.op-month-grid button.active {
  border-color: transparent;
  background: linear-gradient(135deg, #1788f2, #0a63c7);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(20, 118, 212, 0.28);
}

.op-month-grid button.active span {
  color: rgba(255, 255, 255, 0.78);
}

.op-period-save {
  min-height: 58px;
  border-radius: 18px;
  font-size: 15px;
}

textarea,
.op-decision-note textarea {
  resize: both !important;
  overflow: auto;
  min-width: min(260px, 100%);
  max-width: min(96vw, 1400px);
}

.operation-root.op-dark .op-period-builder,
body.dark-theme .operation-root .op-period-builder {
  border-color: rgba(125, 211, 252, 0.16);
  background:
    radial-gradient(circle at 8% 0%, rgba(56, 189, 248, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(11, 18, 32, 0.94));
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.operation-root.op-dark .op-period-builder-head strong,
body.dark-theme .operation-root .op-period-builder-head strong,
.operation-root.op-dark .op-month-grid button,
body.dark-theme .operation-root .op-month-grid button {
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.82));
  color: #f8fafc;
}

.operation-root.op-dark .op-month-grid button.active,
body.dark-theme .operation-root .op-month-grid button.active {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

@media (max-width: 720px) {
  .op-month-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .op-period-builder {
    padding: 14px;
  }
}

.operation-root.op-dark .op-tabs button.active,
body.dark-theme .operation-root .op-tabs button.active,
.operation-root.op-dark .op-btn:not(.op-btn-soft):not(.op-btn-danger),
body.dark-theme .operation-root .op-btn:not(.op-btn-soft):not(.op-btn-danger) {
  border-color: rgba(56, 189, 248, 0.56);
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(14, 165, 233, 0.22);
}

.operation-root.op-dark .op-overview-hero,
body.dark-theme .operation-root .op-overview-hero,
.operation-root.op-dark .op-metric-grid article,
body.dark-theme .operation-root .op-metric-grid article,
.operation-root.op-dark .op-command-grid article,
body.dark-theme .operation-root .op-command-grid article,
.operation-root.op-dark .op-detail-grid article,
body.dark-theme .operation-root .op-detail-grid article,
.operation-root.op-dark .op-note-box,
body.dark-theme .operation-root .op-note-box,
.operation-root.op-dark .op-decision-note,
body.dark-theme .operation-root .op-decision-note,
.operation-root.op-dark .op-request-card,
body.dark-theme .operation-root .op-request-card,
.operation-root.op-dark .op-team-card,
body.dark-theme .operation-root .op-team-card,
.operation-root.op-dark .op-list-card,
body.dark-theme .operation-root .op-list-card,
.operation-root.op-dark .op-warning-panel,
body.dark-theme .operation-root .op-warning-panel,
.operation-root.op-dark .op-warning-list article,
body.dark-theme .operation-root .op-warning-list article {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.76)),
    #111827;
  color: #f8fafc;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.operation-root.op-dark .op-metric-grid article.tone-0,
body.dark-theme .operation-root .op-metric-grid article.tone-0 {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(14, 165, 233, 0.16));
}

.operation-root.op-dark .op-metric-grid article.tone-1,
body.dark-theme .operation-root .op-metric-grid article.tone-1 {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(16, 185, 129, 0.14));
}

.operation-root.op-dark .op-metric-grid article.tone-2,
body.dark-theme .operation-root .op-metric-grid article.tone-2 {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(245, 158, 11, 0.13));
}

.operation-root.op-dark .op-metric-grid article.tone-3,
body.dark-theme .operation-root .op-metric-grid article.tone-3 {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(168, 85, 247, 0.14));
}

.operation-root.op-dark .op-week-section,
body.dark-theme .operation-root .op-week-section {
  border-color: rgba(148, 163, 184, 0.24);
  background: #08111f;
}

.operation-root.op-dark .op-week-title,
body.dark-theme .operation-root .op-week-title,
.operation-root.op-dark .op-week-corner,
body.dark-theme .operation-root .op-week-corner {
  background: linear-gradient(135deg, #111827, #0b1220);
  color: #cbd5e1;
}

.operation-root.op-dark .op-week-day,
body.dark-theme .operation-root .op-week-day {
  background: linear-gradient(135deg, #1e293b, #111827);
  color: #f8fafc;
}

.operation-root.op-dark .op-week-time,
body.dark-theme .operation-root .op-week-time,
.operation-root.op-dark .op-slot-cell,
body.dark-theme .operation-root .op-slot-cell {
  color: #08111f;
}

.operation-root.op-dark .op-cell-name,
body.dark-theme .operation-root .op-cell-name {
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
}

.operation-root.op-dark .op-cell-name.highlighted,
body.dark-theme .operation-root .op-cell-name.highlighted {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  color: #ffffff;
  box-shadow:
    0 0 0 2px rgba(15, 23, 42, 0.92),
    0 0 0 4px rgba(248, 113, 113, 0.62),
    0 9px 18px rgba(127, 29, 29, 0.38);
}

.operation-root.op-dark .op-cell-name.highlighted b,
body.dark-theme .operation-root .op-cell-name.highlighted b {
  color: #ffffff;
}

.operation-root.op-dark .op-muted,
body.dark-theme .operation-root .op-muted,
.operation-root.op-dark .op-table th,
body.dark-theme .operation-root .op-table th,
.operation-root.op-dark .op-selection-status small,
body.dark-theme .operation-root .op-selection-status small,
.operation-root.op-dark .op-team-main small,
body.dark-theme .operation-root .op-team-main small,
.operation-root.op-dark .op-command-grid small,
body.dark-theme .operation-root .op-command-grid small {
  color: #b6c3d6;
}

.operation-root.op-dark .op-daily-toolbar,
body.dark-theme .operation-root .op-daily-toolbar {
  border-color: rgba(56, 189, 248, 0.2);
  background:
    radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.13), transparent 34%),
    linear-gradient(135deg, #111c31, #0b1628);
}

.operation-root.op-dark .op-daily-icon-btn,
body.dark-theme .operation-root .op-daily-icon-btn,
.operation-root.op-dark .op-daily-date-picker input,
body.dark-theme .operation-root .op-daily-date-picker input,
.operation-root.op-dark .op-daily-metrics article,
body.dark-theme .operation-root .op-daily-metrics article,
.operation-root.op-dark .op-daily-group,
body.dark-theme .operation-root .op-daily-group,
.operation-root.op-dark .op-daily-group-count,
body.dark-theme .operation-root .op-daily-group-count {
  border-color: rgba(148, 163, 184, 0.2);
  background: #111c31;
  color: #f8fafc;
}

.operation-root.op-dark .op-daily-group > header,
body.dark-theme .operation-root .op-daily-group > header {
  border-color: rgba(148, 163, 184, 0.18);
  background: linear-gradient(135deg, #17233a, #111c31);
}

.operation-root.op-dark .op-daily-person,
body.dark-theme .operation-root .op-daily-person {
  border-color: rgba(148, 163, 184, 0.18);
  background: linear-gradient(135deg, #111c31, #17233a);
}

.operation-root.op-dark .op-daily-empty,
body.dark-theme .operation-root .op-daily-empty {
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(135deg, #111c31, #0b1628);
}

.operation-root.op-dark .op-daily-work-badge,
body.dark-theme .operation-root .op-daily-work-badge {
  color: #6ee7b7;
}

.operation-root.op-dark .op-daily-status-badge.status-report,
body.dark-theme .operation-root .op-daily-status-badge.status-report {
  color: #fda4af;
}

.operation-root.op-dark .op-daily-status-badge.status-annual_leave,
body.dark-theme .operation-root .op-daily-status-badge.status-annual_leave {
  color: #c4b5fd;
}

@media (max-width: 900px) {
  .op-app {
    width: min(100% - 20px, 1480px);
    padding-top: 12px;
  }

  .op-topbar,
  .op-scheduler-head,
  .op-schedule-pages {
    align-items: stretch;
    flex-direction: column;
  }

  .op-assignment-bar {
    grid-template-columns: 1fr;
  }

  .op-top-actions,
  .op-scheduler-actions,
  .op-view-head {
    justify-content: flex-start;
  }

  .op-agent-picker,
  .op-macro-strip {
    justify-content: flex-start;
  }

  .op-warning-panel {
    grid-template-columns: 1fr;
  }

  .op-schedule-view-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .op-schedule-view-filter select {
    width: 100%;
  }

  .op-daily-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .op-daily-date-actions {
    justify-content: flex-start;
  }

  .op-daily-roster-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .op-daily-roster-add {
    width: 100%;
  }

  .op-daily-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .op-metric-grid,
  .op-metric-grid.compact,
  .op-option-grid,
  .op-command-grid,
  .op-detail-grid,
  .op-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .op-scheduler {
    padding: 10px;
  }

  .op-scheduler.fullscreen .op-schedule-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .op-scheduler.fullscreen .op-assignment-bar {
    grid-template-rows: auto auto auto;
    max-height: 34vh;
  }

  .op-scheduler.fullscreen .op-agent-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    max-height: 120px;
  }

  .op-scheduler.fullscreen .op-week-section {
    min-width: 980px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .op-scheduler,
  .op-week-section,
  .op-warning-panel {
    animation: none;
  }

  .op-scheduler-head::after,
  .op-assignment-bar::after {
    display: none;
  }

  .op-agent-picker label,
  .op-slot-cell,
  .op-cell-name,
  .operation-portal-btn {
    transition: none;
  }
}

@media (max-width: 560px) {
  .op-daily-toolbar {
    padding: 14px;
  }

  .op-daily-date-summary {
    min-width: 0;
  }

  .op-daily-date-actions {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: end;
  }

  .op-daily-today,
  .op-daily-add {
    grid-column: span 3;
  }

  .op-daily-people {
    grid-template-columns: 1fr;
  }

  .op-daily-roster-grid {
    grid-template-columns: 1fr;
  }

  .op-daily-person {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .op-daily-person-badges {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 50px;
  }

  .op-metric-grid,
  .op-metric-grid.compact,
  .op-option-grid,
  .op-command-grid,
  .op-detail-grid,
  .op-settings-grid {
    grid-template-columns: 1fr;
  }

  .op-overview-hero,
  .op-modal-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .op-btn,
  .op-table button,
  .op-row-actions button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .op-hours-hero,
  .op-hours-entry-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .op-hours-hero .op-btn,
  .op-hours-entry-actions .op-btn {
    width: 100%;
  }

  .op-hours-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .op-hours-entry,
  .op-hours-guide,
  .op-hours-hero {
    padding: 14px;
  }

  .op-hours-table .op-row-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
