/* Employee dashboard only. Paint overrides: no sizing, layout, typography,
   content, icons, transforms, navigation or interaction changes. */
body.amin-staff-theme {
  --ink:#171717; --navy:#171717; --muted:#171717;
  --line:#dedede; --bg:#ffffff; --yellow:#ffc400;
  --green:#17643f; --red:#a1242d;
  --staff-glass:rgba(255,255,255,.88);
  --staff-depth:0 8px 28px rgba(23,23,23,.055),inset 0 1px 0 rgba(255,255,255,.95);
  --staff-gold-glow:0 4px 18px rgba(255,196,0,.2),inset 0 1px 0 rgba(255,255,255,.6);
  background:#ffffff; color:#171717; color-scheme:light;
}

/* Readable secondary copy retains its original font, weight and size. */
.amin-staff-theme :is(.nav-caption,.nav-link,.nav-group>summary,.topbar-right,
  .separator,.eyebrow,.identity small,.muted,.empty,footer,.panel>p,
  .section-heading p,.stats span,.stats strong,.filters label,label,
  td small,td.reason p,.login-note,.rule-count,.rule-search-status,.rule-body,
  .rule-expand,.rule-empty p,.employee-alert-note,.employee-alert-sender,
  .employee-alert-sound,.overview-card span,.overview-card small,.overview-source,
  .overview-footnote,.overview-presets span,.overview-trip-filters summary span,
  .overview-guide-rules dd,.overview-help-new-tab,.overview-page td a,
  .chat-heading p,.chat-send-row small,.chat-bubble small,.chat-empty,
  .chat-ai-controls span,.chat-assistant-info,.chat-assistant-info a,
  .chat-guest-note,.chat-reply-status,.chat-feedback,.chat-service-info,
  .chat-back,.amin-loading-card p,.knowledge-body,.external-summary,
  .external-dialog-question,.milestone span) { color:#171717; }
.amin-staff-theme :is(h1,h2,h3,h4,h5,h6) { color:inherit; }
.amin-staff-theme #employee-alert-help { color:#171717; }

/* Frosted surfaces keep all original radii, borders' widths and spacing. */
.amin-staff-theme :is(.sidebar,.topbar,.panel,.stats article,.account-menu>div,
  .login-layout,.overview-card,.rule-card,.cap-admin-request,.company-chat,
  .employee-alert-dialog,.captain-message-dialog,.amin-loading-card,dialog,
  .company-message-notice,.external-dialog,.signature-pad-card,
  .signature-review-card,.signature-approve-card,.pledge-readiness article) {
  background:var(--staff-glass); color:#171717; border-color:#dedede;
  box-shadow:var(--staff-depth);
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .amin-staff-theme :is(.sidebar,.topbar,.account-menu>div,dialog,
    .company-message-notice,.employee-alert-dialog,.captain-message-dialog) {
    -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px);
  }
  /* Panels contain fixed table tools; do not create a new containing block. */
}
.amin-staff-theme :is(.brand,.nav-submenu,.topbar,.rule-footer,.employee-alert-actions,
  .table-scroll,.table-wrap,.rule-card,.rule-import-item,.status-strip,
  .detail-grid>div,.timeline article,.permission-group,.external-dialog-heading,
  .overview-scroll,.overview-guide-content,.overview-trip-filters) { border-color:#dedede; }
.amin-staff-theme :is(.filters,.json-detail,.rule-card summary,.rule-empty,
  .rule-import-item,.employee-alert-body,.chat-log,.chat-attachment-preview,
  .overview-note,.overview-guide-rules>div,.external-dialog-summary>div,
  .status-strip,.detail-grid>div,.timeline article,.permission-group h3,
  .signature-pad-card,.review-hold-panel) { background:rgba(246,246,246,.86); color:#171717; border-color:#dedede; }

/* Navigation: the existing selected state gains gold, without moving it. */
.amin-staff-theme .nav-group[open]>summary { background:rgba(246,246,246,.8); color:#171717; }
.amin-staff-theme :is(.nav-link:hover,.nav-group>summary:hover,.link-button:hover) { background:#fff8dc; color:#171717; }
.amin-staff-theme .sidebar .nav-symbol { color:#755800; }
.amin-staff-theme :is(.nav-link.selected,.nav-link.selected .nav-symbol) { color:#171717; }
.amin-staff-theme .nav-link.selected {
  background-color:#ffc400; background-image:linear-gradient(110deg,transparent 34%,rgba(255,255,255,.22) 48%,transparent 62%);
  background-size:250% 100%; box-shadow:var(--staff-gold-glow);
}
.amin-staff-theme :is(.nav-link,.nav-group>summary,.button,.overview-card,
  .task-cards a,.complaint-cards a) {
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease;
}
@media (prefers-reduced-motion:no-preference) {
  .amin-staff-theme .nav-link.selected { animation:staff-gold-reflection 9s ease-in-out infinite; }
}
@keyframes staff-gold-reflection { 0%,65% { background-position:100% 0; } 100% { background-position:-100% 0; } }
@media (prefers-reduced-motion:reduce) {
  .amin-staff-theme :is(.nav-link,.nav-group>summary,.button,.overview-card,
    .task-cards a,.complaint-cards a) { transition:none; }
  .amin-staff-theme .nav-link.selected { animation:none; }
}

/* Controls and active states. Yellow always carries near-black text. */
.amin-staff-theme :is(.primary,.company-chat button,.rule-number,.employee-alert-icon,
  .overview-presets .active,.training-complete) {
  background:#ffc400; color:#171717; border-color:#d7ad22; box-shadow:var(--staff-gold-glow);
}
.amin-staff-theme :is(.primary:hover,.company-chat button:hover) { background:#ffd02e; color:#171717; }
.amin-staff-theme :is(.light,.icon-button,.notification-bell,.alert-sound-toggle,
  .company-chat .chat-icon-button,.amin-loading-card button) {
  background:rgba(255,255,255,.9); color:#171717; border-color:#dedede;
  box-shadow:inset 0 1px 0 #ffffff;
}
.amin-staff-theme :is(.light:hover,.notification-bell:hover,.alert-sound-toggle:hover) {
  background:#fff8dc; border-color:#d7ad22; color:#171717;
}
.amin-staff-theme :is(.secondary,.avatar,.hero,.login-intro,#toast,
  .company-chat .chat-submit,.company-message-notice>a) { background:#171717; color:#ffffff; }
.amin-staff-theme :is(.secondary:hover,.company-chat .chat-submit:hover) { background:#292929; color:#ffffff; }
.amin-staff-theme :is(.hero,.login-intro) :is(p,small,.eyebrow,h1,h2,h3,.muted),
.amin-staff-theme .hero-state small { color:#ffffff; }
.amin-staff-theme :is(.ghost,.pill.dark) { color:#ffffff; border-color:rgba(255,255,255,.6); }
.amin-staff-theme .state-icon { color:#ffc400; }
.amin-staff-theme .button.danger { background:#a1242d; color:#ffffff; border-color:#a1242d; }
.amin-staff-theme .button.danger:hover { background:#861d25; color:#ffffff; }
.amin-staff-theme :is(.notification-badge,.chat-nav-badge,.inbox-unread) { background:#a1242d; color:#ffffff; }
.amin-staff-theme :is(input,select,textarea) { color:#171717; background-color:#ffffff; border-color:#c8c8c8; accent-color:#755800; }
.amin-staff-theme :is(input,textarea)::placeholder { color:#555555; opacity:1; }
.amin-staff-theme :is(input,textarea)[readonly] { background:#f3f3f3; color:#171717; opacity:1; }
.amin-staff-theme :is(input,select,textarea):focus { border-color:#957200; box-shadow:0 0 0 3px rgba(255,196,0,.22); }
.amin-staff-theme :focus-visible { outline-color:#755800; }
.amin-staff-theme :is(button,input,select,textarea):disabled,
.amin-staff-theme .employee-alert-dialog button:disabled {
  opacity:1; color:#555555; background-color:#eeeeee; border-color:#d2d2d2; box-shadow:none;
}
.amin-staff-theme .company-chat button:disabled { opacity:1; color:#555555; background:#eeeeee; box-shadow:none; }

/* Data cards and tables: keep counts, statuses and all existing interactions. */
.amin-staff-theme :is(.task-cards,.complaint-cards) article { --state:#c8c8c8; --tint:#fff8dc; }
.amin-staff-theme :is(.task-cards,.complaint-cards) a { background:var(--staff-glass); border-color:#d4d4d4; color:#171717; }
.amin-staff-theme :is(.task-cards,.complaint-cards) a strong { color:#171717; }
.amin-staff-theme :is(.task-cards,.complaint-cards) a:hover { background:#fff8dc; box-shadow:var(--staff-gold-glow); }
.amin-staff-theme :is(.task-cards,.complaint-cards) a[aria-current="true"] { background:#ffc400; border-color:#d7ad22; box-shadow:var(--staff-gold-glow); }
.amin-staff-theme :is(.task-cards,.complaint-cards) a:focus-visible { outline-color:#755800; }
.amin-staff-theme :is(th,.overview-page th,.fixed-captain-table thead th,
  .fixed-captain-table thead th.amin-captain-name) { background:#f3f3f3; color:#171717; border-color:#dedede; }
.amin-staff-theme td { border-color:#e5e5e5; }
.amin-staff-theme tr:nth-child(even) td { background:#fafafa; }
.amin-staff-theme tbody tr:hover td { background:#fff9e5; }
.amin-staff-theme .fixed-captain-table .amin-captain-name { background:#ffffff; box-shadow:-3px 0 5px rgba(23,23,23,.05); }
.amin-staff-theme .fixed-captain-table tr:nth-child(even) td.amin-captain-name { background:#fafafa; }
.amin-staff-theme :is(.fixed-captain-table,.captain-bottom-scroll) { border-color:#dedede; scrollbar-color:#999999 #f3f3f3; }
.amin-staff-theme .captain-bottom-scroll { background:#f3f3f3; }
.amin-staff-theme :is(.fixed-captain-table,.captain-bottom-scroll)::-webkit-scrollbar-thumb { background:#999999; border-color:#f3f3f3; }
.amin-staff-theme :is(.fixed-captain-table,.captain-bottom-scroll)::-webkit-scrollbar-track { background:#f3f3f3; }
.amin-staff-theme :is(.pill,.notice,.notice.subtle,.notice.warning,.badge.warning,
  .overview-priority.high,.milestone.current,.alert-sound-setup) { background:#fff7d6; color:#171717; border-color:#dfd4ac; }
.amin-staff-theme :is(.pill.soft,.muted-badge,.overview-priority) { background:#f0f0f0; color:#171717; border-color:#dedede; }
.amin-staff-theme :is(.notice.success,.badge.good) { background:#eff8f1; color:#171717; border-color:#bdd7c5; }
.amin-staff-theme :is(.error-box,.badge.danger) { background:#fff0f1; color:#171717; border-color:#dfbec1; }
.amin-staff-theme .complaint-state { color:#171717!important; }
.amin-staff-theme .overview-card i { background:#fff3c2; color:#755800; }
.amin-staff-theme .overview-card:hover { border-color:#d7ad22; box-shadow:var(--staff-gold-glow); }
.amin-staff-theme .chat-bubble { background:#ffffff; color:#171717; border-color:#dedede; }
.amin-staff-theme .chat-bubble.mine { background:#fff3c2; border-color:#dfd4ac; }
.amin-staff-theme .chat-bubble.ai { background:#fffaf0; border-color:#dfd4ac; }
.amin-staff-theme .chat-bubble.system { background:#f3f3f3; }
.amin-staff-theme .chat-composer { background:#ffffff; }
.amin-staff-theme #amin-navigation-loader { background:rgba(255,255,255,.82); }
.amin-staff-theme .amin-loading-emblem:before { border-color:#fff0b1; border-top-color:#ffc400; border-inline-end-color:#171717; }
.amin-staff-theme dialog::backdrop { background:rgba(23,23,23,.4); backdrop-filter:blur(5px); }
@media print {
  body.amin-staff-theme { background:#ffffff; }
  .amin-staff-theme :is(.panel,.sidebar,.topbar,.stats article,.nav-link.selected) {
    box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; animation:none;
  }
}
