/* v1.9.0 — Fluid Workspace. Lightweight, local-first staff command centre UI. */
.staff-command-center {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0 0 25px; padding: 20px; border: 1px solid #d9e4d7; border-radius: 21px;
  background: linear-gradient(135deg, rgba(255,255,252,.96), rgba(240,247,237,.96));
  box-shadow: 0 15px 42px rgba(20,52,35,.055);
}
.staff-command-center::before {
  content: ""; position:absolute; z-index:-1; width:380px; height:380px; right:-155px; top:-270px;
  border:1px solid rgba(78,147,96,.15); border-radius:50%;
  box-shadow:0 0 0 27px rgba(78,147,96,.035),0 0 0 56px rgba(78,147,96,.025),0 0 0 92px rgba(78,147,96,.018);
  pointer-events:none;
}
.cc-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; }
.cc-eyebrow { display:flex; align-items:center; gap:8px; color:#43815a; font-size:13px; font-weight:950; letter-spacing:1.5px; text-transform:uppercase; }
.cc-eyebrow::before { content:""; width:18px; height:2px; border-radius:4px; background:#67a879; }
.cc-title { margin:7px 0 4px; color:#14382a; font-family:Georgia,serif; font-size:clamp(24px,2.4vw,33px); font-weight:500; letter-spacing:-.8px; }
.cc-copy { max-width:620px; margin:0; color:#77877b; font-size:13px; line-height:1.55; }
.cc-mode { display:inline-flex; align-items:center; gap:7px; max-width:260px; padding:8px 10px; border:1px solid #eadcb9; border-radius:10px; color:#85672e; background:#fbf5e7; font-size:13px; font-weight:850; line-height:1.4; }
.cc-mode::before { content:""; width:6px; height:6px; flex:0 0 auto; border-radius:50%; background:#c89a46; box-shadow:0 0 0 4px rgba(200,154,70,.12); }
.cc-security-note { margin:12px 0 0; padding:9px 11px; border:1px solid #eadfbe; border-radius:10px; color:#836d40; background:rgba(252,247,235,.83); font-size:13px; line-height:1.55; }
.cc-security-note strong { color:#6f5628; }
.cc-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin-top:15px; }
.cc-metric { min-width:0; padding:11px 12px; border:1px solid #e1e8dc; border-radius:12px; background:rgba(255,255,255,.74); }
.cc-metric-label { color:#87948a; font-size:13px; font-weight:900; letter-spacing:1px; text-transform:uppercase; }
.cc-metric-value { margin-top:5px; color:#1b4933; font-family:Georgia,serif; font-size:25px; line-height:1; font-variant-numeric:tabular-nums; }
.cc-metric-copy { margin-top:5px; color:#8b978c; font-size:13px; line-height:1.4; }
.cc-layout { display:grid; grid-template-columns:minmax(0,1.18fr) minmax(280px,.82fr); gap:11px; margin-top:12px; align-items:start; }
.cc-stack { display:grid; gap:11px; min-width:0; }
.cc-panel { min-width:0; padding:14px; border:1px solid #e0e6dc; border-radius:14px; background:rgba(255,255,255,.79); }
.cc-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:11px; }
.cc-panel-title { margin:0; color:#214533; font-size:13px; font-weight:900; letter-spacing:-.15px; }
.cc-panel-sub { margin:4px 0 0; color:#8a978d; font-size:13px; line-height:1.45; }
.cc-tag { display:inline-flex; align-items:center; gap:5px; padding:4px 7px; border-radius:999px; color:#627c68; background:#edf4e9; font-size:13px; font-weight:900; letter-spacing:.5px; text-transform:uppercase; white-space:nowrap; }
.cc-tag::before { content:""; width:5px; height:5px; border-radius:50%; background:#6ca579; }
.cc-search { display:flex; gap:7px; }
.cc-search input { min-width:0; flex:1; height:41px; padding:0 12px; border:1px solid #dce4d8; border-radius:10px; color:#234b36; background:#fff; font-size:13px; outline:none; }
.cc-search input:focus { border-color:#7daf88; box-shadow:0 0 0 3px rgba(84,148,100,.11); }
.cc-search button,.cc-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:36px; padding:8px 11px; border:1px solid #d4e1d4; border-radius:9px; color:#28583d; background:#f8fbf5; font-size:13px; font-weight:900; cursor:pointer; transition:transform .18s,border-color .18s,background .18s,box-shadow .18s; }
.cc-search button { min-width:72px; background:#174b36; border-color:#174b36; color:#f5f9f1; }
.cc-btn:hover,.cc-search button:hover { transform:translateY(-2px); border-color:#8db796; box-shadow:0 7px 16px rgba(25,74,48,.08); }
.cc-btn.primary { color:#f7fbf5; border-color:#174b36; background:#174b36; }
.cc-btn.danger { color:#9c5346; border-color:#efd8d1; background:#fff9f7; }
.cc-quick-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.cc-chip { border:1px solid #e0e8dd; border-radius:999px; padding:6px 9px; color:#718277; background:#fff; font-size:13px; font-weight:800; cursor:pointer; transition:all .16s; }
.cc-chip:hover,.cc-chip:focus-visible { border-color:#a7c5a9; color:#24573b; background:#f2f7ef; }
.cc-results { display:grid; gap:6px; margin-top:10px; }
.cc-result { display:flex; align-items:center; gap:10px; min-width:0; padding:9px 10px; border:1px solid #e4e9e1; border-radius:10px; color:#294b37; background:#fff; text-decoration:none; transition:transform .2s,border-color .2s,box-shadow .2s; }
.cc-result:hover { transform:translateX(3px); border-color:#b5cfb6; box-shadow:0 6px 18px rgba(22,62,39,.06); }
.cc-result-icon { width:29px; height:29px; flex:0 0 auto; display:grid; place-items:center; border-radius:8px; color:#286044; background:#edf4e9; font-size:14px; }
.cc-result-copy { min-width:0; flex:1; }
.cc-result-copy strong { display:block; color:#264a37; font-size:12px; font-weight:900; }
.cc-result-copy small { display:block; margin-top:3px; color:#8a968d; font-size:13px; line-height:1.4; }
.cc-result-arrow { color:#60936d; font-size:13px; }
.cc-suggestions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.cc-suggestion { display:flex; align-items:center; gap:8px; min-width:0; padding:9px; border:1px solid #e4e9df; border-radius:10px; color:#31533e; background:#fbfcf8; text-align:left; cursor:pointer; transition:transform .2s,border-color .2s,background .2s; }
.cc-suggestion:hover { transform:translateY(-2px); border-color:#a9c8ac; background:#fff; }
.cc-suggestion .cc-suggestion-icon { display:grid; width:27px; height:27px; flex:0 0 auto; place-items:center; border-radius:8px; color:#2d6a48; background:#eaf3e6; }
.cc-suggestion strong { display:block; font-size:13px; line-height:1.3; }
.cc-suggestion small { display:block; margin-top:2px; color:#89968c; font-size:13px; }
.cc-shortcut-list,.cc-record-list { display:grid; gap:6px; }
.cc-shortcut { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 9px; border:1px solid #e8ece4; border-radius:9px; color:#31513d; background:#fff; text-decoration:none; font-size:13px; font-weight:850; }
.cc-shortcut:hover { border-color:#acc9ad; background:#f8fbf5; }
.cc-shortcut small { color:#9aa59b; font-size:13px; font-weight:700; }
.cc-empty { padding:12px; border:1px dashed #dce4d9; border-radius:10px; color:#89968c; background:#fbfcf8; font-size:13px; line-height:1.5; }
.cc-record { display:grid; gap:6px; padding:10px; border:1px solid #e5e9e1; border-radius:10px; background:#fff; }
.cc-record-top { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.cc-record-title { color:#2b4b37; font-size:12px; font-weight:900; line-height:1.4; overflow-wrap:anywhere; }
.cc-record-meta { color:#909b91; font-size:13px; line-height:1.4; }
.cc-record-next { padding-left:8px; border-left:2px solid #c5dcbf; color:#718276; font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
.cc-record-actions { display:flex; flex-wrap:wrap; gap:6px; }
.cc-record-actions button { border:1px solid #dfe8dc; border-radius:7px; padding:5px 7px; color:#4d7057; background:#f9fbf7; font-size:13px; font-weight:850; cursor:pointer; }
.cc-record-actions button:hover { border-color:#9dbb9f; }
.cc-record-status { padding:4px 6px; border-radius:999px; color:#8a6c2d; background:#faf2df; font-size:13px; font-weight:900; text-transform:uppercase; white-space:nowrap; }
.cc-record-status.done,.cc-record-status.resolved { color:#34724b; background:#eaf4e7; }
.cc-actions-row { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.cc-panel-footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin-top:10px; padding-top:9px; border-top:1px solid #edf0e9; color:#9aa49b; font-size:13px; line-height:1.4; }
.cc-dialog { width:min(520px,calc(100% - 24px)); max-height:min(86vh,740px); overflow:auto; padding:0; border:1px solid #dbe5d8; border-radius:18px; color:#1b3d2c; background:#fffefa; box-shadow:0 28px 90px rgba(4,24,16,.3); }
.cc-dialog::backdrop { background:rgba(4,24,16,.62); backdrop-filter:blur(5px); }
.cc-dialog-inner { padding:20px; }
.cc-dialog-kicker { color:#5d9567; font-size:13px; font-weight:950; letter-spacing:1.2px; text-transform:uppercase; }
.cc-dialog h2 { margin:7px 0 5px; color:#183c2b; font-family:Georgia,serif; font-size:25px; font-weight:500; }
.cc-dialog-copy { margin:0 0 15px; color:#829087; font-size:12px; line-height:1.5; }
.cc-form { display:grid; gap:10px; }
.cc-field { display:grid; gap:5px; }
.cc-field label { color:#48614f; font-size:13px; font-weight:900; }
.cc-field input,.cc-field select,.cc-field textarea { width:100%; min-height:38px; padding:9px 10px; border:1px solid #dce4d8; border-radius:9px; outline:none; color:#244a35; background:#fff; font:inherit; font-size:12px; }
.cc-field textarea { min-height:76px; resize:vertical; line-height:1.5; }
.cc-field input:focus,.cc-field select:focus,.cc-field textarea:focus { border-color:#7fae88; box-shadow:0 0 0 3px rgba(84,148,100,.11); }
.cc-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.cc-form-note { padding:8px 9px; border:1px solid #eadfbe; border-radius:8px; color:#826b3b; background:#fbf6e9; font-size:13px; line-height:1.5; }
.cc-dialog-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:7px; margin-top:5px; }
.cc-status-inline { min-height:16px; color:#78877c; font-size:13px; }
.cc-fluid-in { animation:cc-fluid-arrive .52s cubic-bezier(.2,.8,.2,1) both; animation-delay:calc(var(--cc-order,0) * 45ms); }
.cc-flow-selected { position:relative; z-index:1; border-color:#9abe9b !important; box-shadow:0 0 0 3px rgba(87,151,97,.10),0 14px 28px rgba(20,66,39,.07) !important; }
.cc-pulse-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:#5eaa75; box-shadow:0 0 0 0 rgba(94,170,117,.34); animation:cc-pulse 2.2s ease-out infinite; }
@keyframes cc-fluid-arrive { from { opacity:0; transform:translate3d(0,13px,0) scale(.985); } to { opacity:1; transform:translate3d(0,0,0) scale(1); } }
@keyframes cc-pulse { 0% { box-shadow:0 0 0 0 rgba(94,170,117,.3); } 70%,100% { box-shadow:0 0 0 8px rgba(94,170,117,0); } }
@media (max-width:1050px) { .cc-layout { grid-template-columns:1fr; } }
@media (max-width:760px) { .cc-head { flex-direction:column; } .cc-mode { max-width:100%; } .cc-overview { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .staff-command-center { padding:13px; border-radius:16px; } .cc-overview { gap:6px; } .cc-metric { padding:9px; } .cc-metric-value { font-size:22px; } .cc-suggestions { grid-template-columns:1fr; } .cc-search { flex-wrap:wrap; } .cc-search button { flex:1; } .cc-form-grid { grid-template-columns:1fr; } .cc-dialog-inner { padding:15px; } }
@media (prefers-reduced-motion: reduce) { .cc-fluid-in,.cc-pulse-dot { animation:none !important; } .cc-result,.cc-suggestion,.cc-btn,.cc-chip { transition:none !important; } .cc-result:hover,.cc-suggestion:hover,.cc-btn:hover { transform:none; } }
.cc-notice-actions { display:flex; gap:6px; flex-wrap:wrap; margin-top:7px; }
.cc-notice-state { border:1px solid #dce7da; border-radius:7px; padding:5px 7px; color:#42694c; background:#f7fbf4; font-size:13px; font-weight:850; cursor:pointer; }
.cc-notice-state:disabled { opacity:.7; cursor:default; }

/* v1.9.0 usability polish: stronger keyboard focus and compact-mobile stacking. */
.cc-result:focus-visible,.cc-shortcut:focus-visible,.cc-btn:focus-visible,.cc-search button:focus-visible,.cc-chip:focus-visible,.cc-record-actions button:focus-visible,.cc-notice-state:focus-visible,.cc-suggestion:focus-visible { outline:3px solid rgba(65,132,82,.42); outline-offset:2px; }
@media (max-width:560px) { .cc-panel .cc-layout[style*="grid-template-columns"] { grid-template-columns:1fr !important; } }
