/* The City's Projects panel (projects3d.js, wu-f4c6c76b) in the Work drawer: the dashboard's glass, its project colours (--pc), the
   amber accent for what waits on the owner. Scoped to .as-proj3d. */
.as-proj3d { display: grid; gap: 12px; margin-top: 10px; }
.as-proj3d .dim { color: var(--dim); }
.as-proj3d .as-btn { display: inline-flex; align-items: center; min-height: 1.9em; padding: 0 0.75em; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); cursor: pointer; font-size: 0.82em; color: var(--text); }
.as-proj3d .as-btn:hover { border-color: rgba(255, 255, 255, 0.3); }
.as-proj3d .as-btn.primary { background: rgba(255, 176, 0, 0.18); border-color: rgba(255, 176, 0, 0.6); color: #ffe3a6; }
.as-proj3d .as-btn.danger { border-color: rgba(255, 90, 78, 0.55); color: #ffc4be; }
/* the project filter */
.as-pfilter { display: flex; flex-wrap: wrap; gap: 6px; }
.as-pfilter .pf { border-radius: 999px; font-size: 0.78em; border-color: var(--line-2); }
.as-pfilter .pf[data-project] { border-left: 4px solid var(--pc); }
.as-pfilter .pf.on { background: rgba(255, 176, 0, 0.14); border-color: rgba(255, 176, 0, 0.6); color: #ffe3a6; }
/* a project and its units */
.as-pproj { display: grid; gap: 6px; border-left: 3px solid var(--pc); padding-left: 10px; }
.as-pproj .ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.as-pproj .ph .dim { font: 400 0.72em/1 "Plex Mono", ui-monospace, monospace; }
.as-unit { display: grid; gap: 5px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); cursor: pointer; }
.as-unit:hover, .as-unit:focus-visible { border-color: var(--line-2); }
.as-unit.needs { border-color: rgba(255, 176, 0, 0.45); }
.as-unit.done { opacity: 0.6; }
.as-unit.open { cursor: default; background: rgba(255, 255, 255, 0.05); opacity: 1; }
.as-unit .top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.as-unit .t { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-unit.open .t { white-space: normal; }
.as-unit .t.untitled { font-style: italic; color: var(--dim); }
.as-unit .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 0.8em; }
.as-unit .meta .sub { font: 500 0.92em/1 "Plex Mono", ui-monospace, monospace; color: var(--green); }
.as-proj3d .as-pill { font-size: 0.72em; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dim); white-space: nowrap; }
.as-proj3d .as-pill.needs { color: #ffe3a6; border-color: rgba(255, 176, 0, 0.6); background: rgba(255, 176, 0, 0.12); }
.as-proj3d .as-pill.type { color: var(--blue); border-color: rgba(106, 168, 255, 0.45); }
.as-proj3d .as-pill.st-active, .as-proj3d .as-pill.st-claimed, .as-proj3d .as-pill.st-review { color: var(--green); border-color: rgba(61, 214, 140, 0.45); }
.as-proj3d .as-pill.st-waiting-owner { color: #ffe3a6; border-color: rgba(255, 176, 0, 0.6); }
.as-proj3d .as-pill.st-blocked, .as-proj3d .as-pill.st-orphaned { color: #ffb4ad; border-color: rgba(255, 90, 78, 0.5); }
.as-pchip { font: inherit; font-size: 0.95em; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; }
.as-pchip:hover { border-color: rgba(255, 176, 0, 0.6); color: #ffe3a6; }
.as-pchip.helper { color: var(--dim); border-style: dashed; }
/* a unit opened in place */
.as-udetail { display: grid; gap: 10px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); cursor: default; font-size: 0.9em; }
.as-udetail p { margin: 0; line-height: 1.45; }
.as-udetail .lead .by { font: 400 0.75em/1.4 "Plex Mono", ui-monospace, monospace; color: var(--faint); }
.as-udetail .next b { color: var(--amber-2); font-weight: 600; }
.as-udetail h4 { margin: 0 0 4px; font: 500 0.7em/1 "Plex Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); }
.as-udetail .subs { margin: 0; padding-left: 1.1em; display: grid; gap: 2px; }
.as-udetail .subs li.done { color: var(--dim); text-decoration: line-through; }
.as-udetail .subs i { font-style: normal; margin-left: 6px; font-size: 0.8em; color: var(--faint); }
.as-udetail .lines .line, .as-udetail .msgs .m { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 3px 0; }
.as-udetail .lines .line b, .as-udetail .msgs .m b { font-weight: 600; white-space: nowrap; }
.as-udetail .lines .line time { color: var(--faint); font-size: 0.8em; }
.as-udetail .lines .line.mine b, .as-udetail .msgs .m.mine b { color: var(--amber-2); }
.as-udetail .msgs { max-height: 14em; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.as-udetail .msgs .m { grid-template-columns: auto 1fr; }
.as-udetail .msgs .m.pending { color: var(--dim); font-style: italic; display: block; }
.as-udetail .msgs .m.pending.failed { color: #ffb4ad; }
.as-udetail .links { display: flex; flex-wrap: wrap; gap: 8px; }
.as-udetail .thr .th { width: 100%; text-align: left; font: inherit; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.as-udetail .thr.open .th { border-color: rgba(255, 176, 0, 0.5); }
.as-udetail .thr { display: grid; gap: 6px; }
.as-udetail .rep { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: end; }
.as-udetail .rep .st { grid-column: 1 / -1; color: #ffb4ad; font-size: 0.85em; }
.as-udetail .rep .st:empty { display: none; }
.as-udetail textarea, .as-udetail input { font: inherit; font-size: 0.95em; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); color: var(--text); min-width: 0; resize: vertical; }
.as-udetail textarea:focus, .as-udetail input:focus { outline: none; border-color: rgba(255, 176, 0, 0.6); }
.as-ucard { border: 1px solid rgba(255, 176, 0, 0.45); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; background: rgba(255, 176, 0, 0.05); }
.as-ucard .q { font-weight: 600; }
.as-ucard .b { color: var(--dim); }
.as-ucard .opts, .as-udetail .actions .row, .as-udetail .picker { display: flex; flex-wrap: wrap; gap: 6px; }
.as-udetail .picker { max-height: 9em; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.as-udetail .say { font-size: 0.85em; color: #ffb4ad; }
.as-udetail .say.ok { color: var(--green); }
.as-udetail .acts { display: grid; gap: 2px; font: 400 0.75em/1.4 "Plex Mono", ui-monospace, monospace; color: var(--faint); }
.as-udetail .acts .done { color: var(--green); } .as-udetail .acts .failed { color: #ffb4ad; } .as-udetail .acts .pending { color: var(--amber-2); }
.as-udetail .ro { font-size: 0.85em; }
@media (max-aspect-ratio: 999/1000) { .as-proj3d .as-btn, .as-pchip { min-height: 40px; } }
