:root { color-scheme: light; --ink: #243d36; --muted: #65766f; --line: #dce5df; --accent: #137c66; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { font: 14px "Trebuchet MS", "Avenir Next", sans-serif; color: var(--ink); background: #f7faf8; letter-spacing: 0; }
button, input, select { font: inherit; color: inherit; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; height: 36px; padding: 0 9px; border: 1px solid transparent; border-radius: 5px; background: transparent; cursor: pointer; flex-shrink: 0; }
button:hover { background: #e9f1ed; border-color: #d1dfd7; }
button:disabled { opacity: .4; cursor: default; }
button[aria-pressed="true"] { color: var(--accent); background: #dceee5; border-color: var(--accent); }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg.lucide { width: 18px; height: 18px; stroke-width: 1.8; }
.workspace { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) 44px; }
.workspace > * { min-width: 0; }
.document-bar { display: flex; align-items: center; gap: 18px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: white; }
.identity { display: flex; align-items: center; gap: 9px; flex-shrink: 0; color: var(--accent); }
.identity svg { width: 27px; height: 27px; }
h1 { margin: 0; font-size: 19px; font-weight: 700; }
#map-title { min-width: 60px; width: 220px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: #f8fbf9; }
.file-actions { margin-left: auto; display: flex; align-items: center; gap: 3px; }
select { height: 32px; border: 1px solid var(--line); border-radius: 4px; padding: 0 7px; background: white; }
.editing-bar { display: flex; align-items: center; gap: 10px; padding: 6px 18px; border-bottom: 1px solid var(--line); background: #fdfefd; overflow-x: auto; }
.tool-group { display: flex; gap: 2px; border-right: 1px solid var(--line); padding-right: 10px; flex-shrink: 0; }
.colors { gap: 7px; }
.swatch { min-width: 25px; width: 25px; height: 36px; padding: 0; }
.swatch::before { content: ""; width: 17px; height: 17px; border-radius: 50%; background: var(--swatch); border: 2px solid white; box-shadow: 0 0 0 1px #ccd9d1; }
.layout-control { display: flex; align-items: center; gap: 8px; margin-left: auto; white-space: nowrap; font-size: 12px; color: var(--muted); }
#map { min-height: 0; width: 100%; height: 100%; }
#map .map-container { background-color: #f7faf8; background-image: radial-gradient(#c8d7ce 1px, transparent 1px); background-size: 20px 20px; }
#map me-tpc { font-family: "Trebuchet MS", "Avenir Next", sans-serif; }
.status-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-top: 1px solid var(--line); background: white; gap: 12px; }
#status { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#status.error { color: #b12f42; }
.zoom-controls { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
#zoom { width: 44px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
    .document-bar { flex-wrap: wrap; gap: 8px; padding: 10px; }
    .identity { flex: 1; }
    h1 { font-size: 17px; }
    #map-title { width: 45%; }
    .file-actions { width: 100%; margin: 0; justify-content: flex-end; }
    .editing-bar { padding: 5px 10px; gap: 6px; }
    .tool-group { padding-right: 6px; }
    .status-bar { padding: 0 10px; }
}