/* North Shore belongs to Loom; the model remains the main surface. */
:root{color-scheme:light;--bg:#e8e8e8;--panel:#fff;--panel2:#f1f1ef;--line:#171717;--ink:#151515;--ink2:#484848;--ink3:#5d5d5d;--accent:#203bfa;--accent-ink:#fff;--flag:#a34412;--flag-soft:#fff0dd;--water:#b9c9ce;--sky:#e8e8e8;--chip:#e8e8e8;--shadow:3px 3px 0 #171717}
body{font-family:'Space Grotesk',sans-serif}
::selection{background:#ffde00;color:#151515}
*{scrollbar-width:thin;scrollbar-color:#777 #e8e8e8}
button,a,summary{touch-action:manipulation}
:focus-visible{outline:3px solid #203bfa;outline-offset:3px}
.app{grid-template-columns:330px 1fr;height:100dvh}
header{padding:0;gap:0;background:#ffde00;border-bottom:2px solid #171717}
.masthead{width:100%;display:flex;align-items:center;gap:24px;padding:17px 22px}
.loom-home{display:flex;align-items:center;gap:9px;color:#151515;text-decoration:none;font-size:21px;font-weight:700;flex-shrink:0}
.loom-home img{width:26px;height:26px}
.brand{border-left:1px solid #171717;padding-left:24px;gap:6px}
.brand h1{font:600 24px/1.05 'Space Grotesk',sans-serif;text-transform:none;letter-spacing:-.035em}
.brand small{font-size:11px;letter-spacing:0;color:#37331b;text-transform:none;margin:0}
.facts{margin-left:auto;gap:24px;color:#37331b;font-size:11px}
.facts b{font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:16px}
.layer-tools{width:100%;background:#fff;border-top:1px solid #171717}
.layer-tools summary,.view-tools summary{cursor:pointer;font-weight:600;font-size:12px;padding:10px 14px}
.layer-tools summary{display:none}
.layers{padding:10px 20px;gap:6px}
.tog{border:1px solid #b0b0ab;border-radius:0;background:#fff;padding:6px 8px;font-size:11px;min-height:32px}
.tog:has(input:checked){background:#eeefff;border-color:#203bfa}
.tog input{width:13px;height:13px}
aside{border-right:2px solid #171717}
.tabs{border-bottom:1px solid #171717;background:#e8e8e8;padding:10px 10px 0;gap:4px}
.tabs button{font-size:12px;letter-spacing:0;text-transform:none;font-weight:600;padding:10px 6px;color:#484848;border:1px solid transparent;border-bottom:0}
.tabs button[aria-selected=true]{background:#fff;border-color:#171717;color:#151515;box-shadow:0 1px 0 #fff}
.pane{padding:22px 18px}
.pane h2{font:600 21px/1.2 'Space Grotesk',sans-serif;letter-spacing:-.025em;text-transform:none;margin-bottom:12px}
.pane p{font-size:12px;line-height:1.65}
.pane h3{letter-spacing:.02em;color:#484848;margin-top:24px}
.tilelist{gap:7px;margin-top:18px}
.tile{border-radius:0;background:#f5f5f3;padding:9px 6px;border-color:#b6b6b0}
.tile .id{font:600 15px/1 'Space Grotesk',sans-serif}
.tile .n{font-size:11px}
.tile:hover{background:#fff8c8;border-color:#171717}
.tile[aria-pressed=true]{background:#ffde00;color:#151515;border-color:#171717;box-shadow:2px 2px 0 #171717}
.tile .bar{border-radius:0}.tile .bar i{background:#777}
.btn,.tip,.ctl,.mini,.legend,.ctl select,.ctl input[type=date],.sw{border-radius:0}
.btn{background:#fff;font-weight:500;padding:7px 10px}
.btn:hover{background:#fff7c2}
#btnHome{background:#203bfa;color:#fff;border-color:#171717;box-shadow:2px 2px 0 #171717}
.ctl{gap:8px;flex-wrap:wrap;max-width:100%;border-color:#171717;padding:9px 12px}
.ctl select,.ctl input[type=date]{min-height:30px;background:#f4f4f2;max-width:100%}
.ctl input[type=range]{width:85px}
.legend{padding:12px 14px;gap:6px;font-size:11px}
.hud{position:static;gap:8px}
.view-tools{position:absolute;left:16px;bottom:16px;right:140px;z-index:4}
.view-tools summary{display:none}
.mini{right:16px;bottom:16px}.legend{left:16px;top:16px}
.chip{border-radius:2px}.chip.ok{background:#b7edd6;color:#123c2c}
.kv{overflow-wrap:anywhere}.kv dd{min-width:0}
.load .bar{height:6px;border-radius:0;background:#ccc}.load .bar i{background:#203bfa}
@media(min-width:901px){.layer-tools:not([open])>.layers,.view-tools:not([open])>.hud{display:flex}}
@media(max-width:1100px){.facts{gap:14px}.facts div:last-child{display:none}.masthead{gap:18px}.brand{padding-left:18px}}
@media(max-width:900px){
.app{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto}
.masthead{padding:14px 16px;gap:14px}.loom-home{font-size:16px;gap:6px}.loom-home img{width:21px;height:21px}
.brand{padding-left:14px}.brand h1{font-size:20px}.brand small{font-size:10px;max-width:230px;line-height:1.4}
.layer-tools summary{display:list-item;margin-left:18px;padding-left:0}.layers{padding:4px 14px 14px;max-height:160px;overflow:auto}
.tog{min-height:34px}.facts{display:none}
aside{border-top:2px solid #171717;border-right:0;max-height:40dvh}
.sheet-handle{padding:11px;background:#ffde00;color:#151515;font-weight:600;font-size:12px;text-transform:none;letter-spacing:0}
.pane{padding:16px}.pane p{font-size:12px}.tabs{padding-top:6px}
.view-tools{left:12px;right:12px;bottom:12px;width:auto;max-width:440px;background:#fff;border:1px solid #171717;box-shadow:3px 3px 0 #171717}
.view-tools summary{display:list-item;margin-left:14px;padding-left:0}
.view-tools[open] .hud{max-height:34dvh;overflow:auto;display:flex;padding:0 10px 10px;gap:8px}
.ctl{width:100%;box-shadow:none;border-color:#bbb;padding:8px;gap:7px}.ctl input[type=range]{width:72px}.ctl select{max-width:190px}
.tilelist{margin-top:12px}.mini,.legend{display:none}
}
@media(max-width:400px){.brand h1{font-size:18px}.brand small{max-width:190px}.loom-home span{display:none}.masthead{gap:12px}}
