/* King Admin workspace: permission-aware presentation only. */
#operations.king-workspace { --king-ink:#111d35; --king-edge:#dce5f3; --king-muted:#576b88; --king-blue:#2451a0; }
.king-workspace .ops-shell { grid-template-columns:minmax(12rem,15.25rem) minmax(0,1fr); gap:clamp(.8rem,2vw,1.55rem); }
.king-workspace .ops-sidebar {
  padding:1rem; top:5.32rem; max-height:calc(100dvh - 6.3rem); overflow:auto; scrollbar-width:thin;
  color:#f6f9ff; border:1px solid #284768; border-radius:1.25rem; background:
  radial-gradient(ellipse at 100% 0,#253e68 0,transparent 62%),linear-gradient(160deg,#162844,#0b162a 71%);
  box-shadow:0 14px 38px #162b4e29; scrollbar-color:#36577e transparent;
}
.king-workspace .king-side-title { color:#fff; font-size:clamp(1.35rem,2.5vw,1.75rem); line-height:1.04; letter-spacing:-.055em; margin:.3rem .38rem .5rem; }
.king-workspace #opsRole {
  display:inline-flex; align-items:center; gap:.38rem; min-height:1.6rem; padding:.16rem .48rem;
  border:1px solid #99b6e555; border-radius:99rem; white-space:nowrap; color:#e1edff; background:#182f50;
  font-size:.68rem; font-weight:780; letter-spacing:.03em; margin:0 .38rem .8rem;
}
.king-workspace #opsRole:empty { display:none; }
.king-workspace #opsRole:not(:empty)::before { content:''; width:.34rem; height:.34rem; border-radius:50%; background:#b6d2ff; }
.king-find { position:relative; margin:0 0 .70rem; }
.king-find input { padding:.52rem 2.05rem .52rem .67rem; min-height:44px; border:1px solid #3c587e; border-radius:.72rem; color:#fff; background:#07152abe; font-size:1rem; }
.king-find input::placeholder { color:#bcd0ef; opacity:1; font-size:.84rem; }
.king-find input::-webkit-search-cancel-button { display:none; }
.king-find .king-reset { position:absolute; inset:.22rem .25rem auto auto; width:37px; min-height:37px; padding:0; border:0; box-shadow:none; background:transparent; color:#e9f2ff; font-size:1.1rem; }
.king-nav-empty { color:#fff!important; padding:.36rem .4rem; }
.king-workspace .ops-navigation { display:grid; gap:.72rem; overflow:visible; padding:0; }
.king-nav-group[hidden], .king-workspace [data-king-filtered], .king-workspace [hidden].king-reset,
.king-workspace [hidden].king-nav-empty, .king-workspace .ops-navigation button[hidden],
.king-workspace .king-section-title[hidden],.king-workspace .king-queue-empty[hidden] { display:none!important; }
.king-nav-label {
  display:block; margin:0 .48rem .22rem; color:#a7bddc; font-size:.67rem; font-weight:780; letter-spacing:.078em;
  text-transform:uppercase;
}
.king-nav-row { display:grid; gap:.12rem; }
.king-workspace .ops-navigation button {
  display:flex; align-items:center; gap:.52rem; min-height:44px; width:100%; margin:0; padding:.42rem .51rem; border:1px solid transparent;
  border-radius:.6rem; background:transparent; color:#e7f0ff; font-size:.81rem; box-shadow:none; font-weight:600;
}
.king-workspace .ops-navigation button:hover { background:#27456c; color:white; }
.king-workspace .ops-navigation button[aria-pressed="true"] { border-color:#a3bff05c; background:#314f7b; color:#fff; font-weight:800; }
.king-workspace .ops-navigation button svg,.king-emblem svg { width:1.05rem; height:1.05rem; flex:none; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.king-workspace .ops-navigation button:focus-visible,.king-find :focus-visible { outline:2px solid #c8e4ff; outline-offset:1px; }

.king-crumb { color:#475f80; margin:.12rem .12rem .58rem; font-size:.76rem; font-weight:750; letter-spacing:.03em; }
.king-workspace .ops-main > [data-ops-pane="overview"] { padding:0; }
.king-workspace .ops-main > [data-ops-pane]:not([data-ops-pane="overview"]) { border-radius:1.3rem; box-shadow:0 13px 30px #182a4b0e; }
.king-hero {
  position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center; min-height:11.7rem; padding:clamp(1.1rem,3.7vw,2.15rem);
  gap:.85rem; color:#fff; border:1px solid #385d8f; border-radius:1.35rem; background:
  radial-gradient(ellipse at 100% 24%,#4d69ad 0,#2b4c83 31%,transparent 68%),
  linear-gradient(115deg,#101d37 15%,#1c3765 91%);
  box-shadow:0 14px 34px #132b4d27;
}
.king-hero[data-owner="true"] { border-color:#a084604d; }
.king-hero::after { content:''; position:absolute; z-index:-1; inset:0; pointer-events:none; opacity:.38; background:repeating-linear-gradient(123deg, transparent 0 32px,#a2bfff35 33px,transparent 34px 61px); mask-image:linear-gradient(90deg,transparent 30%,#000); }
.king-hero-copy { min-width:0; flex:1; }
.king-hero .king-eyebrow { font-size:.68rem; font-weight:830; color:#d4e5ff; letter-spacing:.15em; margin:0 0 .44rem; }
.king-hero[data-owner="true"] .king-eyebrow { color:#f8ddaf; }
.king-hero .king-hero-title { margin:0; color:#fff; font-size:clamp(1.8rem,4vw,3.05rem); line-height:1.03; letter-spacing:-.05em; }
.king-hero .king-hero-subtitle { max-width:52ch; color:#e5eeff; font-size:.91rem; line-height:1.55; margin:.64rem 0 0; }
.king-emblem { display:grid; place-items:center; width:clamp(3.1rem,10vw,6rem); aspect-ratio:1; flex:none; border-radius:27%; border:1px solid #c0dbfd76; color:#deedff; background:linear-gradient(145deg,#7599da80,#162a54b3); box-shadow:0 10px 25px #0b142b58,inset 0 0 1.6rem #cadcff29; }
.king-emblem svg { width:48%; height:48%; }
.king-hero[data-owner="true"] .king-emblem { border-color:#f1d8a694; color:#ffedc8; }
.king-workspace [data-ops-pane="overview"]>.task-note { margin:.94rem 0 1.03rem; background:#f4f8ff; }
.king-section-title { margin:.6rem 0 .5rem; color:var(--king-ink); font-size:1rem; font-weight:820; letter-spacing:-.015em; }
.king-workspace .ops-shortcuts { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr)); gap:.68rem; }
.king-workspace .ops-shortcuts button.king-queue {
  min-height:8rem; display:grid; align-content:space-between; justify-content:stretch; text-align:left; gap:.24rem;
  border:1px solid var(--king-edge); border-radius:1.05rem; padding:.75rem .84rem; color:var(--king-ink); background:#fff;
  box-shadow:0 5px 14px #172a490a;
}
.king-workspace .ops-shortcuts button.king-queue[data-has-items="true"] { border-color:#a6bee3; background:linear-gradient(115deg,#f0f6ff,#fff); }
.king-workspace .ops-shortcuts button.king-queue:hover { background:#eaf2fd; border-color:#6a91c8; }
.king-queue-name { font-size:.79rem; font-weight:770; color:#344d70; }
.king-queue-count { font-size:1.68rem; line-height:1; letter-spacing:-.035em; color:#183b70; font-variant-numeric:tabular-nums; }
.king-queue-action { color:#234f90; font-size:.73rem; font-weight:780; }
.king-queue-empty { color:var(--king-muted); font-size:.87rem; }
.king-workspace #readiness { gap:.64rem; }
.king-workspace #readiness .stat { border-radius:.9rem; border-color:var(--king-edge); }
.king-workspace #readiness .stat strong { color:var(--king-ink); }
.king-workspace #readiness .stat[data-readiness] strong { font-size:.93rem; }
.king-workspace #readiness .stat[data-readiness="configured"] strong { color:#196043; }
.king-workspace #readiness .stat[data-readiness="not-configured"] strong { color:#805908; }
.king-workspace .queue-toolbar input,.king-workspace .queue-toolbar select { min-height:44px; }
.king-workspace .queue-row { border-top-color:var(--king-edge); }

@media(max-width:860px) {
  .king-workspace .ops-shell { grid-template-columns:minmax(0,1fr); gap:.82rem; }
  .king-workspace .ops-sidebar { position:static; max-height:none; overflow:visible; padding:.80rem; }
  .king-workspace .king-side-title { display:inline-block; margin-inline:.12rem .45rem; }
  .king-workspace #opsRole { margin-inline:.04rem; vertical-align:middle; }
  .king-workspace .ops-navigation {
    display:flex; align-items:end; gap:.78rem; overflow:auto; padding:.16rem .12rem .49rem;
    scrollbar-color:#7d9fcd transparent; overscroll-behavior-x:contain; scroll-padding-inline:.6rem;
  }
  .king-nav-group { flex:0 0 auto; }
  .king-nav-row { display:flex; gap:.22rem; }
  .king-workspace .ops-navigation button { width:auto; padding-inline:.55rem; background:#132845; border-color:#2b486c; }
  .king-crumb { margin:.05rem 0 .38rem .1rem; }
}
@media(max-width:430px) {
  .king-emblem { width:2.9rem; }
  .king-hero { min-height:9.6rem; }
  .king-workspace .ops-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.48rem; }
  .king-workspace .ops-shortcuts button.king-queue { min-height:7rem; padding:.65rem; }
}
@media(forced-colors:active){
  .king-workspace .ops-navigation button[aria-pressed="true"] { border-color:Highlight; }
  .king-workspace .ops-navigation button:focus-visible,.king-find :focus-visible { outline-color:Highlight; }
}

#intelCards article[data-priority] { display:grid; align-content:start; gap:.4rem; }
#intelCards article[data-priority="urgent"] { border-inline-start:3px solid #b34244; }
#intelCards article[data-priority="review"] { border-inline-start:3px solid #a26a19; }
.decision-level { color:#295394; font-size:.67rem; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }
article[data-priority="urgent"] .decision-level { color:#9e282a; }
article[data-priority="review"] .decision-level { color:#714709; }
#intelCards .decision-action { margin-top:.2rem; padding-top:.45rem; border-top:1px solid #dae3f1; color:#233e66; font-weight:650; }
#securityIntel { margin-block:.95rem; }
#securityHours { margin-top:.8rem; }
#securityHours summary { cursor:pointer; font-weight:700; min-height:44px; align-content:center; }
#securityIntel .ledger { max-height:23rem; }
#intelCards .decision-check { color:#405a7e; }
#intelCards article button { justify-self:start; min-height:38px; }
