/* Comments on shared projects */
/* stacked above the display control, which itself sits above the bottom safe area (see web/js/map-layout.js) */
.comments-btn { position: absolute; left: var(--map-left, 12px); bottom: calc(var(--map-bottom, 34px) + var(--legend-h, 0px)); z-index: 21; min-height: 36px; box-shadow: var(--shadow); }
.comments-drawer { position: absolute; top: calc(var(--map-top, 110px) + 4px); left: var(--map-left, 10px); bottom: calc(var(--map-bottom, 34px) + 8px); width: min(380px, calc(100% - 20px)); z-index: 21; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; overflow: auto; }
.comments-drawer h2 { margin: 0; font-size: 17px; }
.cm-toggle { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 8px 0; }
.cm-list { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cm-item { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fbfdfb; }
.cm-item.is-hidden { opacity: .6; border-style: dashed; }
.cm-item.is-focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(18, 122, 106, .2); }
.cm-item .ghost { padding: 3px 8px; font-size: 12px; }
.cm-meta { font-size: 12px; color: var(--muted); }
.cm-no { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-right: 4px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; }
.cm-text { margin: 4px 0 6px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-form textarea, .cm-form input, .cm-form select, #cm-art-extra select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; width: 100%; box-sizing: border-box; }
.comment-pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.3); padding: 0; }
.comment-pin:focus-visible { outline: 3px solid #ce8c25; outline-offset: 2px; }
canvas.picking { cursor: crosshair !important; }

/* Workshop mode: map full screen, large type, no editing controls */
body.workshop .app { grid-template-columns: minmax(0, 1fr); }
body.workshop .sidebar, body.workshop .topbar, body.workshop .panel, body.workshop #orientation,
body.workshop .comments-btn, body.workshop .comments-drawer, body.workshop .map-hint, body.workshop .map-legend, body.workshop .map-layout-controls,
body.workshop .map-chrome, body.workshop .sheet-grip, body.workshop .ctx-add, body.workshop .kpi-strip,
body.workshop .pick-bar, body.workshop .area-prompt, body.workshop .hazard-note { display: none !important; }
body.workshop .workspace, body.workshop .workspace.wide { grid-template-columns: minmax(0, 1fr); }
#workshop { position: absolute; inset: 0; pointer-events: none; z-index: 8; display: flex; flex-direction: column; padding: 14px; gap: 10px; }
#workshop[hidden] { display: none; }
#workshop > * { pointer-events: auto; }
.ws-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: rgba(15, 59, 58, .94); color: #fff; border-radius: 14px; padding: 12px 16px; }
.ws-title { font-size: clamp(20px, 2.2vw, 30px); font-weight: 700; display: flex; flex-direction: column; }
.ws-eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); font-weight: 600; }
.ws-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-tabs button, .ws-actions button { font-size: clamp(15px, 1.4vw, 20px); padding: 10px 16px; border-radius: 10px; border: 2px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-weight: 600; cursor: pointer; }
.ws-tabs button.active { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.ws-tabs button:focus-visible, .ws-actions button:focus-visible { outline: 3px solid #ce8c25; outline-offset: 2px; }
.ws-actions { display: flex; gap: 6px; }
/* one compact row docked at the bottom edge: the neighbourhood itself stays visible above it */
.ws-kpis { margin-top: auto; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: thin; }
.ws-kpi { flex: 1 1 0; min-width: 140px; background: rgba(255, 255, 255, .95); border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow); color: var(--ink); }
.ws-l { font-size: clamp(13px, .95vw, 16px); color: var(--ink-2); font-weight: 600; }
.ws-v { font-size: clamp(22px, 2vw, 34px); font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.ws-v small { font-size: .45em; font-weight: 600; margin-left: 2px; color: var(--ink-2); }
.ws-d { font-size: clamp(12px, .9vw, 15px); font-weight: 700; color: var(--ink-2); }
.ws-d.good { color: #1f6f4a; }
.ws-d.bad { color: var(--danger); }
.ws-d span { font-weight: 400; color: var(--muted); }
.ws-foot { align-self: flex-start; background: rgba(255,255,255,.9); color: var(--ink-2); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
@media (max-width: 700px) { .ws-kpi { min-width: 124px; } .ws-v { font-size: 22px; } .ws-kpi .ws-d span { display: none; } }
