/* Smart Work Organizer + calm focus shell. */
.ac-work-organizer-host { flex:0 0 auto; padding:10px 12px 0; background:var(--ac-bg-app,#07111d); }
.ac-org { overflow:hidden; border:1px solid rgba(117,139,171,.25); border-radius:14px; color:var(--ac-text,#edf5ff); background:linear-gradient(145deg,rgba(19,34,53,.96),rgba(10,21,36,.98)); box-shadow:0 10px 34px rgba(0,0,0,.18); }
.ac-org * { box-sizing:border-box; }
.ac-org button,.ac-org textarea,.ac-org select { font:inherit; }
.ac-org-summary { min-height:58px; display:flex; align-items:center; gap:12px; padding:8px 10px; }
.ac-org-toggle { min-width:220px; flex:1; display:flex; align-items:center; gap:10px; padding:5px 6px; border:0; color:inherit; background:transparent; text-align:left; cursor:pointer; }
.ac-org-spark { width:34px; height:34px; display:grid; place-items:center; flex:0 0 auto; border-radius:11px; color:#06111b; background:linear-gradient(135deg,#7cffb2,#4fd8ff); box-shadow:0 6px 22px rgba(79,216,255,.2); font-weight:900; }
.ac-org-summary-copy { min-width:0; display:flex; flex-direction:column; gap:2px; }
.ac-org-summary-copy strong { color:#f7fbff; font-size:13px; }
.ac-org-summary-copy small { overflow:hidden; color:#9fb2c9; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.ac-org-chevron { margin-left:auto; color:#8ea4bd; font-size:10px; font-weight:750; }
.ac-org-quick-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; flex-wrap:wrap; }
.ac-org-recommend { max-width:310px; overflow:hidden; color:#9eb1c7; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.ac-org-btn { min-height:32px; padding:0 11px; border:1px solid rgba(128,153,184,.3); border-radius:9px; color:#d9e8f8; background:rgba(255,255,255,.045); font-size:10px; font-weight:760; cursor:pointer; transition:transform .16s ease,border-color .16s ease,background .16s ease; }
.ac-org-btn:hover:not(:disabled) { transform:translateY(-1px); border-color:rgba(79,216,255,.55); background:rgba(79,216,255,.09); }
.ac-org-btn:disabled { opacity:.55; cursor:wait; }
.ac-org-btn-primary { border-color:rgba(124,255,178,.36); color:#07131c; background:linear-gradient(135deg,#7cffb2,#55dcff); }
.ac-org-btn-primary:hover:not(:disabled) { background:linear-gradient(135deg,#91ffc0,#6de3ff); }
.ac-org-body { max-height:0; overflow:hidden; opacity:0; transform:translateY(-6px); transition:max-height .38s cubic-bezier(.2,.8,.2,1),opacity .22s ease,transform .22s ease; }
.ac-org.is-open .ac-org-body { max-height:min(72vh,860px); overflow:auto; opacity:1; transform:none; border-top:1px solid rgba(128,153,184,.18); }
.ac-org-controls { display:flex; align-items:end; gap:14px; padding:14px 16px 8px; }
.ac-org-controls label { display:flex; flex-direction:column; gap:5px; color:#91a6be; font-size:9px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.ac-org-controls select { min-width:210px; height:36px; padding:0 32px 0 10px; border:1px solid rgba(128,153,184,.3); border-radius:9px; outline:0; color:#eaf4ff; background:#14263a; }
.ac-org-controls p { margin:0 0 7px; color:#91a4bb; font-size:10px; line-height:1.45; }
.ac-org-reason { margin:2px 16px 9px; padding:9px 11px; border:1px solid rgba(79,216,255,.24); border-radius:9px; color:#b9dff3; background:rgba(79,216,255,.06); font-size:10px; line-height:1.5; }
.ac-org-capture-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:10px; padding:8px 16px 12px; }
.ac-org-capture-row label,.ac-org-field { min-width:0; display:flex; flex-direction:column; gap:6px; color:#9db0c6; font-size:9px; font-weight:780; }
.ac-org textarea { width:100%; resize:vertical; padding:9px 10px; border:1px solid rgba(128,153,184,.26); border-radius:9px; outline:0; color:#edf6ff; background:rgba(5,13,23,.56); font-size:11px; line-height:1.5; }
.ac-org textarea:focus,.ac-org select:focus { border-color:#4fd8ff; box-shadow:0 0 0 3px rgba(79,216,255,.1); }
.ac-org-field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:0 16px 16px; }
.ac-org-field textarea { min-height:82px; }
.ac-org-footer { position:sticky; bottom:0; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px; border-top:1px solid rgba(128,153,184,.18); background:rgba(9,19,32,.97); backdrop-filter:blur(14px); }
.ac-org-footer > span { color:#90a4bb; font-size:9px; }
.ac-org-footer > span[data-tone="ok"] { color:#83eeb0; }
.ac-org-footer > span[data-tone="warn"] { color:#ffd486; }
.ac-org-footer > span[data-tone="busy"] { color:#78ddff; }
.ac-org-footer > div { display:flex; gap:7px; }

/* Focus keeps chrome available as edge-reveal panels instead of destroying layout. */
.ac-shell { transition:grid-template-columns .34s cubic-bezier(.2,.8,.2,1),grid-template-rows .34s cubic-bezier(.2,.8,.2,1); }
.ac-shell.focus-mode { grid-template-columns:0 minmax(0,1fr) 0!important; grid-template-rows:0 minmax(0,1fr) 0!important; }
.ac-shell.focus-mode .ac-rail,.ac-shell.focus-mode .ac-ai-panel,.ac-shell.focus-mode .ac-topbar,.ac-shell.focus-mode .ac-bottom-rail { display:flex!important; position:fixed; z-index:420; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .2s ease,transform .26s cubic-bezier(.2,.8,.2,1),visibility .2s; }
.ac-shell.focus-mode .ac-topbar { top:0; left:0; right:0; height:48px; transform:translateY(-105%); }
.ac-shell.focus-mode .ac-bottom-rail { left:0; right:0; bottom:0; height:34px; transform:translateY(105%); }
.ac-shell.focus-mode .ac-rail { top:0; bottom:0; left:0; width:220px!important; min-width:220px!important; overflow:auto!important; transform:translateX(-105%); }
.ac-shell.focus-mode .ac-ai-panel { top:0; right:0; bottom:0; width:300px; transform:translateX(105%)!important; }
.ac-shell.focus-mode.focus-peek-top .ac-topbar,.ac-shell.focus-mode.focus-peek-bottom .ac-bottom-rail,.ac-shell.focus-mode.focus-peek-left .ac-rail,.ac-shell.focus-mode.focus-peek-right .ac-ai-panel { opacity:1; visibility:visible; pointer-events:auto; transform:translate(0)!important; }
/* Notes has one canvas track, even while its own editor enters focus mode. */
.ac-shell.notes-standalone.focus-mode { grid-template-columns:minmax(0,1fr)!important; grid-template-rows:minmax(0,1fr)!important; grid-template-areas:"canvas"!important; }
.ac-focus-dock { position:fixed; z-index:430; right:18px; bottom:18px; display:none; min-height:38px; padding:0 13px; border:1px solid rgba(124,255,178,.45); border-radius:999px; color:#eafff2; background:rgba(7,20,31,.9); box-shadow:0 10px 34px rgba(0,0,0,.28); backdrop-filter:blur(14px); font:750 11px Inter,system-ui,sans-serif; cursor:pointer; }
.ac-shell.focus-mode ~ .ac-focus-dock,.ac-shell.focus-mode .ac-focus-dock { display:block; }

@media (max-width:760px) {
  .ac-org-summary { align-items:stretch; flex-direction:column; }
  .ac-org-toggle { width:100%; }
  .ac-org-quick-actions { justify-content:flex-start; padding:0 6px 6px; }
  .ac-org-recommend { width:100%; max-width:none; }
  .ac-org-field-grid { grid-template-columns:1fr; }
  .ac-org-capture-row { grid-template-columns:1fr; }
  .ac-org-controls { align-items:stretch; flex-direction:column; }
  .ac-org-controls select { width:100%; }
  .ac-org.is-open .ac-org-body { max-height:68vh; }
}

:root[data-theme="light"] .ac-org { color:#18283a; border-color:#d9e1eb; background:linear-gradient(145deg,#fff,#f7f9fc); box-shadow:0 10px 30px rgba(37,52,74,.08); }
:root[data-theme="light"] .ac-org-summary-copy strong { color:#1f3145; }
:root[data-theme="light"] .ac-org-summary-copy small,:root[data-theme="light"] .ac-org-controls p,:root[data-theme="light"] .ac-org-field,:root[data-theme="light"] .ac-org-capture-row label { color:#65758a; }
:root[data-theme="light"] .ac-org textarea,:root[data-theme="light"] .ac-org-controls select { color:#26394d; border-color:#d7e0ea; background:#fff; }
:root[data-theme="light"] .ac-org-footer { background:rgba(248,250,253,.96); }

@media (prefers-reduced-motion:reduce) {
  .ac-org-body,.ac-org-btn,.ac-shell,.ac-shell.focus-mode .ac-rail,.ac-shell.focus-mode .ac-ai-panel,.ac-shell.focus-mode .ac-topbar,.ac-shell.focus-mode .ac-bottom-rail { transition:none!important; }
}
