/* v11.836.0 — the action / decision drawer (js/item_drawer.js). Same family as the KPI value drawer: right-hand sheet, rounded edge, indigo accent. z-index 1300 (< 1500) so the smart-picker menus
   open ABOVE it. Dark mode via body.dark-mode (checklist 21), phone = bottom sheet. */
.ied-back { position: fixed; inset: 0; z-index: 1290; background: rgba(15,23,42,.38); opacity: 0; pointer-events: none; transition: opacity .2s; backdrop-filter: blur(1.5px); }
.ied-back.open { opacity: 1; pointer-events: auto; }
.ied { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1300; width: min(620px, 100vw); display: flex; flex-direction: column; background: #f8fafc; color: #0f172a; container-type: inline-size;
    border-radius: 18px 0 0 18px; box-shadow: -14px 0 44px rgba(15,23,42,.28); transform: translateX(104%); transition: transform .26s cubic-bezier(.2,.8,.2,1); outline: 0; }
.ied.open { transform: none; }
@media (prefers-reduced-motion: reduce) { .ied, .ied-back { transition: none; } }
@media (max-width: 640px) { .ied { border-radius: 18px 18px 0 0; top: 5vh; width: 100vw; transform: translateY(104%); } .ied.open { transform: none; } }
.ied * { box-sizing: border-box; } .ied button, .ied input, .ied select, .ied textarea { font: inherit; }
.ied-skel { padding: 24px; display: grid; gap: 14px; } .ied-skel div { height: 56px; border-radius: 14px; background: linear-gradient(90deg, #e2e8f0, #f1f5f9, #e2e8f0); background-size: 200% 100%; animation: iedsk 1.1s infinite linear; }
@keyframes iedsk { to { background-position: -200% 0; } }
.ied-h { padding: 14px 18px 12px; background: #fff; border-bottom: 1px solid #e2e8f0; border-radius: 18px 0 0 0; position: relative; }
.ied-tools { position: absolute; top: 10px; right: 12px; display: flex; gap: 2px; }
.ied-ib { border: 0; background: none; width: 32px; height: 32px; border-radius: 9px; color: #475569; cursor: pointer; display: inline-grid; place-items: center; font-size: 1rem; }
.ied-ib:hover { background: #eef2ff; color: var(--g-acc-d, #4338ca); } .ied-ib.danger:hover { background: #fee2e2; color: #b91c1c; } .ied-ib:focus-visible { outline: 2px solid var(--g-acc, #6366f1); outline-offset: 1px; }
.ied-crumbs { font-size: .72rem; color: #64748b; text-transform: capitalize; display: flex; gap: 6px; align-items: center; padding-right: 80px; min-height: 1.2em; }
.ied-late { background: #fee2e2; color: #b91c1c; border-radius: 999px; padding: 0 8px; font-weight: 700; text-transform: none; } .ied-ro { background: #f1f5f9; color: #475569; border-radius: 999px; padding: 0 8px; text-transform: none; }
.ied-title { width: 100%; margin: 6px 0 0; border: 1px solid transparent; border-radius: 10px; background: transparent; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; padding: 4px 8px; margin-left: -8px; width: calc(100% + 16px); color: inherit; resize: none; }
.ied-title:hover { background: #f8fafc; border-color: #e2e8f0; } .ied-title:focus { outline: 0; background: #fff; border-color: var(--g-acc, #6366f1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-acc, #6366f1) 20%, transparent); }
.ied-title:disabled { opacity: 1; background: transparent; border-color: transparent; }
.ied-body { flex: 1; overflow: auto; padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.ied-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px 14px; }
.ied-card > h3 { margin: 0 0 8px; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: #64748b; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.ied-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; } @container (max-width: 480px) { .ied-grid { grid-template-columns: 1fr; } }
.ied-fl { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; font-weight: 700; color: #475569; min-width: 0; }
.ied-in { width: 100%; border: 1px solid #cbd5e1; border-radius: 9px; padding: 6px 10px; background: #fff; color: #0f172a; font-weight: 500; font-size: .88rem; }
.ied-in:focus { outline: 0; border-color: var(--g-acc, #6366f1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-acc, #6366f1) 20%, transparent); } .ied-in:disabled { background: #f1f5f9; color: #475569; }
.ied-ta { resize: vertical; line-height: 1.45; min-height: 3.2em; max-height: 280px; }
.ied-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; } .ied-chips button { border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 999px; font-size: .68rem; padding: 1px 8px; color: #475569; cursor: pointer; font-weight: 600; }
.ied-chips button:hover { background: #eef2ff; border-color: #c7d2fe; color: var(--g-acc-d, #4338ca); }
.ied-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.ied-seg button { border: 1px solid #cbd5e1; background: #fff; border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 600; color: #334155; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.ied-seg button:hover { border-color: var(--g-acc, #6366f1); } .ied-seg button.on { background: var(--g-acc-d, #4f46e5); border-color: var(--g-acc-d, #4f46e5); color: #fff; }
.ied-seg button.on.s-completed, .ied-seg button.on.s-decided { background: #16a34a; border-color: #16a34a; } .ied-seg button.on.s-cancelled, .ied-seg button.on.s-declined { background: #64748b; border-color: #64748b; }
.ied-seg button.on.s-urgent { background: #dc2626; border-color: #dc2626; } .ied-seg button.on.s-pending { background: #d97706; border-color: #d97706; }
.ied-done { margin-left: 10px; border: 1px dashed #16a34a; color: #15803d; background: #f0fdf4; border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 700; cursor: pointer; }
.ied-done:hover { background: #dcfce7; }
.ied-tags { display: flex; flex-wrap: wrap; gap: 6px; } .ied-tag { border: 1px solid color-mix(in srgb, var(--tc) 45%, #fff); color: var(--tc); background: #fff; border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 600; cursor: pointer; }
.ied-tag.on { background: var(--tc); color: #fff; border-color: var(--tc); } .ied-tag:disabled { opacity: .6; cursor: default; }
.ied-muted { color: #94a3b8; font-size: .8rem; }
.ied-pk.ro { pointer-events: none; opacity: .65; }
.ied-f { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; border-top: 1px solid #e2e8f0; flex-wrap: wrap; }
.ied-meta { font-size: .72rem; color: #64748b; flex: 1; min-width: 6rem; } .ied-dirty { font-size: .72rem; color: #b45309; font-weight: 700; } .ied-err { color: #b91c1c; font-size: .78rem; font-weight: 600; }
.ied-btn { border: 1px solid #cbd5e1; background: #fff; border-radius: 10px; padding: 6px 14px; font-weight: 700; font-size: .85rem; color: #334155; cursor: pointer; }
.ied-btn:hover { background: #f1f5f9; } .ied-btn.pri { background: var(--g-acc-d, #4f46e5); border-color: var(--g-acc-d, #4f46e5); color: #fff; } .ied-btn.pri:hover:not(:disabled) { background: var(--g-acc-d, #4338ca); } .ied-btn:disabled { opacity: .45; cursor: default; }
.ied-btn kbd { background: rgba(255,255,255,.2); border: 0; font-size: .62rem; margin-left: 4px; padding: 0 5px; border-radius: 5px; color: inherit; }
/* dark */
body.dark-mode .ied { background: #0b1220; color: #e2e8f0; } body.dark-mode .ied-h, body.dark-mode .ied-f { background: #0f172a; border-color: #1e293b; }
body.dark-mode .ied-card { background: #111c33; border-color: #1e293b; } body.dark-mode .ied-card > h3, body.dark-mode .ied-crumbs, body.dark-mode .ied-fl, body.dark-mode .ied-meta { color: #94a3b8; }
body.dark-mode .ied-in { background: #0b1220; border-color: #334155; color: #e2e8f0; } body.dark-mode .ied-in:disabled { background: #111c33; color: #94a3b8; }
body.dark-mode .ied-title:hover { background: #111c33; border-color: #1e293b; } body.dark-mode .ied-title:focus { background: #0b1220; }
body.dark-mode .ied-seg button, body.dark-mode .ied-btn { background: #0b1220; border-color: #334155; color: #cbd5e1; } body.dark-mode .ied-seg button.on, body.dark-mode .ied-btn.pri { color: #fff; }
body.dark-mode .ied-chips button { background: #0b1220; border-color: #334155; color: #94a3b8; } body.dark-mode .ied-ib { color: #94a3b8; } body.dark-mode .ied-ib:hover { background: #1e293b; color: #c7d2fe; }
body.dark-mode .ied-tag { background: #0b1220; } body.dark-mode .ied-tag.on { color: #fff; } body.dark-mode .ied-done { background: #052e16; color: #4ade80; }
body.dark-mode .ied-skel div { background: linear-gradient(90deg, #1e293b, #111c33, #1e293b); background-size: 200% 100%; }

.ied-ment { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .ied-mchip { display: inline-flex; align-items: center; gap: 5px; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 2px 4px 2px 10px; font-size: .78rem; font-weight: 600; }
.ied-mchip button { border: 0; background: color-mix(in srgb, var(--g-acc-d, #4f46e5) 12%, transparent); color: inherit; border-radius: 999px; width: 18px; height: 18px; line-height: 1; cursor: pointer; padding: 0; }
.ied-msearch { position: relative; } .ied-mres { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; box-shadow: 0 10px 28px rgba(15,23,42,.18); max-height: 240px; overflow: auto; }
.ied-mres button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; text-align: left; padding: 7px 10px; font-size: .84rem; } .ied-mres button:hover { background: #eef2ff; } .ied-mres small { color: #94a3b8; margin-left: auto; }
body.dark-mode .ied-mchip { background: #1e1b4b; color: #c7d2fe; } body.dark-mode .ied-mres { background: #0f172a; border-color: #334155; } body.dark-mode .ied-mres button { color: #e2e8f0; } body.dark-mode .ied-mres button:hover { background: #1e293b; }

/* >>> glass-map — v11.1040.19, GLASS step 4: the hard-coded light / dark panels of this stylesheet mapped to the shared tokens (generated from the rules above). Light rules are `:where(body.theme-glass) …` and dark ones `body.dark-mode:where(.theme-glass) …`: ZERO added specificity, so a more specific semantic variant (.x.bad, .x.on) keeps winning over the base panel; Classic is untouched. */
:where(body.theme-glass) .ied { background-color: var(--gl-hover); color: var(--gl-fg); }
:where(body.theme-glass) .ied-h { background-color: var(--gl-fill-strong); border-bottom-color: var(--gl-line); }
:where(body.theme-glass) .ied-ib { color: var(--gl-fg2); }
:where(body.theme-glass) .ied-ib:hover { background-color: var(--gl-line); }
:where(body.theme-glass) .ied-crumbs { color: var(--gl-fg2); }
:where(body.theme-glass) .ied-ro { background-color: var(--gl-hover); color: var(--gl-fg2); }
:where(body.theme-glass) .ied-title:hover { background-color: var(--gl-hover); border-color: var(--gl-line); }
:where(body.theme-glass) .ied-title:focus { background-color: var(--gl-fill-strong); }
:where(body.theme-glass) .ied-card { background-color: var(--gl-fill-strong); border-color: var(--gl-line); }
:where(body.theme-glass) .ied-card > h3 { color: var(--gl-fg2); }
:where(body.theme-glass) .ied-fl { color: var(--gl-fg2); }
:where(body.theme-glass) .ied-in { border-color: var(--gl-line); background-color: var(--gl-fill-strong); color: var(--gl-fg); }
:where(body.theme-glass) .ied-in:disabled { background-color: var(--gl-hover); color: var(--gl-fg2); }
:where(body.theme-glass) .ied-chips button { border-color: var(--gl-line); background-color: var(--gl-hover); color: var(--gl-fg2); }
:where(body.theme-glass) .ied-chips button:hover { background-color: var(--gl-line); }
:where(body.theme-glass) .ied-seg button { border-color: var(--gl-line); background-color: var(--gl-fill-strong); color: var(--gl-fg); }
:where(body.theme-glass) .ied-done { background-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .ied-done { color: #86efac; }
:where(body.theme-glass) .ied-tag { background-color: var(--gl-fill-strong); }
:where(body.theme-glass) .ied-muted { color: var(--gl-fg3); }
:where(body.theme-glass) .ied-f { background-color: var(--gl-fill-strong); border-top-color: var(--gl-line); }
:where(body.theme-glass) .ied-meta { color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) .ied-dirty { color: #fcd34d; }
body.dark-mode:where(.theme-glass) .ied-err { color: #fca5a5; }
:where(body.theme-glass) .ied-btn { border-color: var(--gl-line); background-color: var(--gl-fill-strong); color: var(--gl-fg); }
:where(body.theme-glass) .ied-btn:hover { background-color: var(--gl-hover); }
body.dark-mode:where(.theme-glass) .ied { background-color: var(--gl-fill-strong); color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .ied-h, body.dark-mode:where(.theme-glass) .ied-f { background-color: var(--gl-fill-strong); border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .ied-card { border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .ied-card > h3, body.dark-mode:where(.theme-glass) .ied-crumbs, body.dark-mode:where(.theme-glass) .ied-fl, body.dark-mode:where(.theme-glass) .ied-meta { color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) .ied-in { background-color: var(--gl-fill-strong); border-color: var(--gl-line); color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .ied-title:hover { border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .ied-title:focus { background-color: var(--gl-fill-strong); }
body.dark-mode:where(.theme-glass) .ied-seg button, body.dark-mode:where(.theme-glass) .ied-btn { background-color: var(--gl-fill-strong); border-color: var(--gl-line); color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .ied-chips button { background-color: var(--gl-fill-strong); border-color: var(--gl-line); color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) .ied-ib { color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) .ied-ib:hover { background-color: var(--gl-fill-strong); color: var(--gl-tint-text); }
body.dark-mode:where(.theme-glass) .ied-tag { background-color: var(--gl-fill-strong); }
:where(body.theme-glass) .ied-mchip { background-color: var(--gl-line); color: var(--gl-tint-text); }
:where(body.theme-glass) .ied-mres { background-color: var(--gl-fill-strong); border-color: var(--gl-line); }
:where(body.theme-glass) .ied-mres button:hover { background-color: var(--gl-line); }
:where(body.theme-glass) .ied-mres small { color: var(--gl-fg3); }
body.dark-mode:where(.theme-glass) .ied-mchip { background-color: color-mix(in srgb, var(--gl-tint) 18%, transparent); color: var(--gl-tint-text); }
body.dark-mode:where(.theme-glass) .ied-mres { background-color: var(--gl-fill-strong); border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .ied-mres button { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .ied-mres button:hover { background-color: var(--gl-fill-strong); }
/* <<< glass-map */
