:root{--paper:#f7f6f1;--panel:#fdfcf8;--ink:#283b35;--muted:#748077;--line:#dedfd4;--accent:#4c6755;--serif:Georgia,'Times New Roman',serif;--sans:Arial,Helvetica,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:13px/1.55 var(--sans)}button,input,select{font:inherit;color:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.48;cursor:default}button,a,input,select,summary{outline-offset:4px}a{color:inherit}button{border:0;background:none}input:not([type=range]):not([type=color]):not([type=checkbox]),select{width:100%;min-height:37px;padding:8px 10px;border:1px solid var(--line);border-radius:3px;background:var(--panel);font-size:12px}input[type=range]{width:100%;accent-color:var(--accent);height:16px;margin:4px 0}input[type=checkbox]{accent-color:var(--accent)}[hidden]{display:none!important}.page-heading{padding:34px 3.5% 27px;display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{font-size:9px;letter-spacing:2px;margin:0 0 8px;font-weight:600;color:var(--accent)}h1{font:42px/1.12 var(--serif);letter-spacing:-1.3px;margin:0}h2,h3{font-family:var(--serif);font-weight:400}.intro{font-size:12px;color:var(--muted);margin:10px 0 0}.subject-switch{display:flex;gap:8px;align-self:flex-end}.subject-switch button{display:flex;align-items:center;gap:9px;padding:12px 18px;border:1px solid var(--line);border-radius:4px;background:var(--panel);font-size:12px}.subject-switch button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}.subject-switch svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round}.studio{display:grid;grid-template-columns:284px minmax(0,1fr);gap:26px;padding:0 3.5% 42px;max-width:1720px;margin:auto;align-items:start}.controls{border:1px solid var(--line);background:var(--panel);border-radius:5px;overflow:auto;max-height:1050px;scrollbar-width:thin}.control-section{padding:20px;border-bottom:1px solid var(--line)}.control-section:last-child{border-bottom:0}.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:16px}.section-heading h2{font-size:18px;letter-spacing:-.3px;margin:0}.step{font:9px var(--sans);color:var(--muted);border:1px solid var(--line);border-radius:50%;width:23px;height:23px;display:grid;place-items:center}.segmented{display:flex;border:1px solid var(--line);border-radius:3px;padding:3px;gap:2px;margin-bottom:16px}.segmented button{font-size:11px;flex:1;padding:7px 2px;border-radius:2px}.segmented button[aria-pressed=true]{background:#e7ecdf;color:#344e3e}.field-label{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin:13px 0 6px;color:#46594e}.field-label output{font-size:10px;color:var(--muted)}.hint{color:var(--muted);font-size:10px;line-height:1.6;margin:10px 0 0}.study-list{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.study-card{border:1px solid var(--line);border-radius:3px;text-align:left;padding:11px 10px;background:#f9faf5;position:relative}.study-card[aria-pressed=true]{border-color:#536e5b;background:#edf0e5;box-shadow:inset 0 0 0 .5px #536e5b}.study-card[aria-pressed=true]:after{content:'↗';position:absolute;top:7px;right:8px;font-size:11px}.study-card strong{display:block;font-family:var(--serif);font-weight:400;font-size:17px;margin-bottom:5px}.study-card small{font-size:8px;letter-spacing:.3px;color:var(--muted);display:block;line-height:1.45}.palettes{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.palette{height:38px;border-radius:3px;border:3px solid var(--panel);box-shadow:0 0 0 1px var(--line);display:flex;align-items:center;justify-content:center;position:relative}.palette[aria-pressed=true]{box-shadow:0 0 0 1.5px var(--ink)}.palette:after{content:'';width:19px;height:19px;border-radius:50%;background:var(--swatch-ink)}.palette[aria-pressed=true]:before{content:'✓';position:absolute;z-index:1;font-size:12px;color:var(--swatch-paper)}.custom-colours{margin-top:12px;font-size:10px;color:var(--muted)}summary{cursor:pointer}.colour-fields{display:flex;gap:16px;padding-top:10px}.colour-fields label{display:flex;align-items:center;gap:6px}.colour-fields input{width:38px;height:26px;padding:2px;border:1px solid var(--line);background:none}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.two-fields select{font-size:10px}.check-field{display:flex;align-items:center;gap:6px;font-size:11px;margin-top:13px}.text-button{font-size:10px;padding:0;color:var(--accent);text-decoration:underline;text-underline-offset:4px}.control-section>.text-button{margin-top:16px}.artwork-workspace{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:5px;overflow:hidden}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 22px;font-size:11px}.preview-toolbar>div:first-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.live-dot{height:5px;width:5px;background:#668470;border-radius:50%;display:inline-block}.source-badge{color:var(--muted);font-size:8px;letter-spacing:.8px;border-left:1px solid var(--line);padding-left:8px}.preview-actions{display:flex;gap:3px}.preview-actions button{width:29px;height:26px;border:1px solid var(--line);border-radius:3px;font-size:12px}.preview-actions #fit{width:36px;font-size:10px}.preview-stage{min-height:450px;height:680px;max-height:76vh;background:#e7e8e0;position:relative;display:flex;align-items:center;justify-content:center;padding:35px 45px;overflow:hidden;background-image:radial-gradient(ellipse at 50% 35%,#f0f1e9,#e0e2d8)}#poster{height:100%;max-width:100%;aspect-ratio:420 / 594;cursor:grab;box-shadow:0 14px 35px #35453220,0 1px 2px #33452e12;touch-action:none;background:#f6f2e8;user-select:none}#poster:active{cursor:grabbing}#poster svg{display:block;width:100%;height:100%}.loading{position:absolute;bottom:20px;padding:10px 20px;background:var(--panel);border:1px solid var(--line);box-shadow:0 3px 18px #0001;border-radius:4px;font-size:11px}.preview-caption{padding:12px 22px 6px;color:var(--muted);font-size:9px;display:flex;justify-content:space-between;gap:10px}.preview-caption span:last-child{font-size:8px;letter-spacing:.8px}.status-line{padding:5px 22px 12px;font-size:10px;color:var(--muted);display:flex;gap:8px}.status-line.error{color:#994b32}.study-facts{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 22px;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.fact{border-right:1px solid var(--line);padding-right:12px}.fact:last-child{border-right:0}.fact strong{font:22px/1.1 var(--serif);display:block;margin-bottom:7px}.fact span{font-size:9px;color:var(--muted);display:block}.export-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px}.export-bar h2{font-size:23px;letter-spacing:-.5px;margin:0 0 3px}.export-bar p{margin:0;color:var(--muted);font-size:10px}.export-buttons{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.primary-button,.outline-button{padding:10px 14px;border-radius:3px;border:1px solid var(--line);font-size:11px;white-space:nowrap}.primary-button{background:var(--ink);color:white;border-color:var(--ink)}.primary-button span{padding-left:12px}.outline-button{background:var(--panel)}.full-width{width:100%;margin-top:12px}.design-bar{display:flex;gap:18px;padding:0 22px 18px;flex-wrap:wrap;font-size:9px;color:var(--muted)}.design-bar span{margin-left:auto}.search-form{display:flex;margin-top:10px}.search-form input{border-radius:3px 0 0 3px!important;min-width:0}.search-form button{width:35px;border:1px solid var(--line);border-left:0;background:#e7ecdf;flex-shrink:0}.search-results{max-height:220px;overflow:auto}.search-results button{font-size:11px;text-align:left;padding:10px 6px;width:100%;border-bottom:1px solid var(--line);display:block}.search-results small{display:block;color:var(--muted);font-size:9px}.search-results p{font-size:10px;color:var(--muted)}.field-notes{display:grid;grid-template-columns:1fr 1fr 1fr;gap:55px;border-top:1px solid var(--line);margin:0 3.5%;padding:45px 0}.notes-heading h2{font-size:32px;line-height:1.22;letter-spacing:-.6px;margin:12px 0}.note-number{font-size:9px;letter-spacing:1px;color:var(--muted)}.field-notes h3{font-size:23px;margin:12px 0}.field-notes article p{font-size:12px;line-height:1.8;color:var(--muted)}.field-notes article a{font-size:10px;text-underline-offset:4px}.source-details{margin:0 3.5% 36px;border-top:1px solid var(--line);padding-top:18px;font-size:11px;color:var(--muted)}.source-details summary{font-size:11px;color:var(--ink)}.source-details p{max-width:950px}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;padding:20px 3.5%;font-size:9px;letter-spacing:.5px;color:var(--muted)}footer a{text-decoration:none}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:12px 20px;border-radius:4px;box-shadow:0 5px 25px #0002;font-size:12px;z-index:20;max-width:90vw}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1500px){.controls{max-height:calc(100vh - 260px);min-height:780px}.preview-stage{height:780px}}@media(max-width:1100px){.studio{grid-template-columns:260px minmax(0,1fr);gap:18px}.control-section{padding:17px}.preview-stage{padding:30px;height:610px}.export-bar{align-items:flex-start;flex-direction:column;gap:14px}.export-buttons{justify-content:flex-start}.field-notes{gap:30px}.design-bar span{margin-left:0;width:100%}}@media(max-width:760px){.page-heading{padding:25px 5%;display:block}h1{font-size:35px}.intro{font-size:11px;max-width:290px}.subject-switch{margin-top:18px}.subject-switch button{padding:9px 15px;flex:1}.studio{display:flex;flex-direction:column;padding:0 4% 30px;gap:18px}.controls{width:100%;max-height:none;order:2}.artwork-workspace{width:100%;order:1}.preview-stage{height:530px;max-height:75vh;min-height:350px;padding:28px}.preview-toolbar{padding:12px 15px}.source-badge{font-size:7px}.preview-caption,.status-line{padding-left:15px;padding-right:15px}.preview-caption{font-size:8px}.study-facts{padding:15px;gap:8px}.fact strong{font-size:19px}.fact span{font-size:8px}.export-bar{padding:18px;gap:12px}.export-bar h2{font-size:21px}.design-bar{padding:0 18px 18px}.control-section{padding:20px}.study-list{grid-template-columns:repeat(4,1fr)}.field-notes{grid-template-columns:1fr;gap:22px;margin:0 5%;padding:30px 0}.field-notes h3{margin:7px 0}.field-notes article p{margin:8px 0}.notes-heading h2 br{display:none}.notes-heading h2{font-size:29px}.source-details{margin:0 5% 25px}footer{padding:18px 5%;flex-wrap:wrap;gap:10px}footer>span:nth-child(2){display:none}}@media(max-width:400px){.study-list{grid-template-columns:1fr 1fr}.source-badge{display:none}.preview-caption span:last-child{display:none}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.study-card img{display:block;width:100%;height:64px;object-fit:contain;margin:0 0 6px}.study-card strong{font-size:16px}.study-card[aria-pressed=true]:after{background:#edf0e5;padding:0 2px}
/* Studio controls use the same preview component and option catalogue. */
.artwork-workspace .loading{z-index:3}
.artwork-workspace .workspace-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-bottom:1px solid var(--line)}
.workspace-title,.workspace-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.workspace-title{font-size:11px}.workspace-actions button{font-size:10px;border:1px solid var(--line);border-radius:3px;padding:6px 9px}
.artwork-workspace #poster{width:100%;height:100%;max-width:none;aspect-ratio:auto;box-shadow:none}.artwork-workspace .poster-frame{flex-shrink:0}
#orientation{margin-top:10px;margin-bottom:0}.border-control{display:flex;align-items:center;gap:8px}.border-value{display:flex;align-items:center;gap:4px;font-size:10px}.border-value input{width:68px!important}.border-control>input{min-width:0}.control-section select{min-width:0}
.artwork-workspace .preview-toolbar{font-size:11px}.artwork-workspace .view-tabs{flex-wrap:wrap}.artwork-workspace .preview-tools{gap:4px}.preview-stage:not([data-view=poster]) #poster{cursor:default}
@media(max-width:600px){.artwork-workspace .workspace-toolbar{padding:12px}.artwork-workspace .preview-toolbar{padding:10px}.workspace-actions{gap:5px}.workspace-actions button{padding:6px 7px}.artwork-workspace .preview-tools{margin-left:0}}
/* Minor-to-major hierarchy shares the river renderer's interchange palette. */
.river-color-ramp,.palette-rainbow:after{background:linear-gradient(90deg,#ca4e89,#f39a22,#88bb40,#6436bd,#ffe22b,#00acd6,#e82920)}
.river-color-legend{margin-top:12px}.river-color-ramp{height:7px;border-radius:3px}.river-color-labels{display:flex;justify-content:space-between;gap:10px;margin-top:5px;font-size:9px;color:var(--muted)}
.study-list.road-study-list{max-height:310px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:5px}
.palette-rainbow:after{width:calc(100% - 12px);height:7px;border-radius:3px}.palette-rainbow[aria-pressed=true]:before{color:var(--ink);background:var(--swatch-paper);border-radius:50%;line-height:16px;width:16px;text-align:center}
/* Road palettes identify route direction, branch membership and road hierarchy. */
.palette-compass:after{background:conic-gradient(#e95d77,#eac664,#6ac27d,#59aacf,#a884dd,#e95d77)}
.palette-territory:after{background:linear-gradient(90deg,#adbcce 0 25%,#deb6ac 25% 50%,#b5caac 50% 75%,#cebad6 75%)}
.palette-distance:after{background:linear-gradient(90deg,#f1c75b,#4db0a5,#7162af)}
.road-palette.palette-distance:after,.road-palette.palette-territory:after{width:calc(100% - 12px);height:7px;border-radius:3px}
.road-palette[aria-pressed=true]:before{color:var(--ink);background:var(--swatch-paper);border-radius:50%;line-height:16px;width:16px;text-align:center}
.road-palette.palette-compass[aria-pressed=true]:before{color:#f0f2f4}
.subject-switch{flex-wrap:wrap}
.study-generation{margin-top:5px;color:var(--accent)!important}.field-notes{grid-template-columns:1fr 1fr 1fr 1fr;gap:35px}
@media(max-width:1100px){.field-notes{grid-template-columns:1fr 1fr;gap:25px}}
@media(max-width:760px){.subject-switch button{padding:9px 10px;gap:6px;font-size:11px}.subject-switch svg{width:20px;height:20px}}
@media(max-width:760px){.field-notes{grid-template-columns:1fr}}

#road-coverage-controls{margin-bottom:16px}#road-continent-controls .full-width{margin-top:10px}#road-continent-hint{overflow-wrap:anywhere}.status-line .text-button{flex-shrink:0}
/* Nature uses the shared category rail and label controls. */
.nature-editor .settings-panel-body.control-section{border:0}
.nature-editor .settings-panel-body .study-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.nature-editor .settings-panel-body .study-card :is(strong,small){overflow-wrap:anywhere}
.nature-editor .settings-panel-body>label:first-child,.nature-editor .settings-panel-body>.check-field:first-child{margin-top:0}
.nature-editor .settings-panel-body .two-fields>label{display:block;font-size:11px}
.nature-editor .settings-panel-body .two-fields>label>select{display:block;margin-top:6px}
.nature-editor .label-styling-controls .artwork-range label{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:#46594e}
.nature-editor .label-styling-controls output{font-size:10px;color:var(--muted)}
.nature-editor :is(.label-presets button,.label-color-control button,.label-position-grid button){border:1px solid var(--line)}
.nature-editor .label-color-control input[type=color]{width:100%;height:34px;padding:3px;border:1px solid var(--line);background:var(--panel)}
.nature-editor .sidebar-footer .text-button{padding:5px 0}
