/* Mobile sheet controls belong to the editor chrome, never the map canvas. */
.sheet-drag,.sheet-close{display:none}
.icon-ai-promo{display:flex;align-items:flex-start;gap:11px;margin:24px 0 5px;padding:14px 12px;border-radius:11px;background:linear-gradient(145deg,rgba(43,111,154,.4),rgba(15,49,76,.65));border:1px solid rgba(124,201,240,.38);box-shadow:inset 0 1px rgba(255,255,255,.13)}
.icon-ai-sparkle{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;color:#fff;border-radius:10px;border:1px solid rgba(255,198,147,.8);background:linear-gradient(155deg,rgba(255,167,89,.85),rgba(247,90,35,.75));box-shadow:inset 0 1px rgba(255,255,255,.7),0 3px 10px rgba(233,105,40,.28);font-size:22px}
.icon-ai-promo strong{display:block;color:#effaff;font:700 12px 'Space Grotesk',sans-serif;margin-top:1px}.icon-ai-promo p{font-size:10.5px;line-height:1.52;margin:7px 0 10px;color:#abcada}.icon-ai-status{font:600 8px var(--mono);color:#ffb77b;letter-spacing:.45px}
.icon-studio-switch{display:flex;gap:4px;padding:4px;border:1px solid rgba(148,210,239,.29);border-radius:10px;background:rgba(4,23,39,.64);margin:17px 0 5px}.icon-studio-switch button{flex:1;min-height:37px;padding:5px;border:0;border-radius:7px;color:#95b7cf;background:transparent;font-size:11px;font-weight:700}.icon-studio-switch button.active{color:#fff;background:linear-gradient(165deg,rgba(57,120,158,.85),rgba(28,74,111,.88));box-shadow:inset 0 1px rgba(218,245,255,.35),0 2px 5px rgba(0,11,22,.35)}
.icon-artwork-row{display:flex;align-items:center;gap:14px}.icon-artwork-row .inspector-icon-preview{margin:0;width:80px;height:80px;flex:0 0 80px}.icon-artwork-row .inspector-icon-preview img{width:65px;height:65px}.icon-artwork-meta strong{display:block;font:700 13px 'Space Grotesk',sans-serif;color:#e5f9ff}.icon-artwork-meta small{display:block;color:#89afc1;font:500 10px var(--mono);margin-top:5px;line-height:1.4}.icon-artwork-meta .icon-custom-state{color:#ffc087}
.generator-card{border:1px solid rgba(131,210,241,.37);border-radius:13px;padding:15px;background:linear-gradient(145deg,rgba(37,92,131,.4),rgba(7,33,54,.72));margin:14px 0 0}.generator-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:11px}.generator-header strong{font:700 12px 'Space Grotesk',sans-serif;color:#f0fbff}.generation-pending{font:600 8px var(--mono);letter-spacing:.5px;border:1px solid rgba(255,173,106,.44);border-radius:5px;padding:4px 5px;color:#ffb889;white-space:nowrap}
.generator-card p{color:#a4c8db;font-size:11px;line-height:1.5;margin:0 0 12px}.generator-field{display:block;margin:15px 0}.generator-field span{display:block;color:#b1d2e1;font-size:11px;font-weight:700;margin-bottom:7px}.generator-field textarea,.generator-field select,.prompt-preview{width:100%;border:1px solid rgba(154,204,226,.35);background:rgba(3,22,37,.73);color:#eef9ff;border-radius:8px;font:500 12px/1.45 var(--font);padding:10px;resize:vertical;outline:none}.generator-field textarea:focus,.generator-field select:focus,.prompt-preview:focus{border-color:rgba(255,163,92,.92);box-shadow:0 0 0 2px rgba(255,137,69,.18)}.generator-field textarea{min-height:86px}.generator-field select{height:39px}.generator-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.generator-grid .generator-field{min-width:0;margin:4px 0 12px}.generator-field select{font-size:11px}.prompt-preview{min-height:150px;font:500 10px/1.5 var(--mono);color:#cce5ed;resize:vertical;display:block;margin-top:9px}.prompt-info{display:flex;align-items:center;gap:7px;color:#9edbc6;font:600 9px var(--mono);margin:14px 0 8px}.generator-actions{display:grid;gap:9px;margin:15px 0}.generator-copy{width:100%;padding:12px;border-radius:9px;border:1px solid rgba(255,198,137,.8);background:linear-gradient(150deg,#ffb46c,#ff741f 47%,#ed5612);box-shadow:inset 0 1px rgba(255,255,255,.7),0 3px 13px rgba(246,95,25,.25);color:white;font-size:12px;font-weight:800;cursor:pointer}.generator-copy:hover{filter:brightness(1.07)}.generator-chatgpt{display:flex;justify-content:center;align-items:center;gap:7px;min-height:36px;padding:9px;border:1px solid rgba(174,227,246,.47);background:rgba(147,208,239,.11);border-radius:8px;color:#def7ff;font-size:11px;font-weight:700;text-decoration:none}.generator-chatgpt:hover{background:rgba(147,208,239,.22)}.generator-note{font-size:10px!important;color:#83a9bc!important;line-height:1.55!important}.generator-step{display:flex;align-items:center;gap:9px;padding:9px 0;color:#bedbe8;font-size:11px;border-bottom:1px solid rgba(177,230,250,.1)}.generator-step b{display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px;border:1px solid rgba(255,171,106,.53);color:#ffb67e;border-radius:6px;font:600 10px var(--mono)}.generator-step:last-of-type{border:0}.generator-connection-disabled{display:block;width:100%;padding:12px;border:1px dashed rgba(132,183,202,.43);border-radius:8px;background:rgba(7,28,45,.45);color:#86aabe;cursor:not-allowed;text-align:center;font-size:11px;font-weight:700;margin-top:10px}
@media(max-width:850px){
  .sheet-drag{display:flex;flex:0 0 29px;align-items:center;justify-content:center;width:100%;min-height:29px;background:transparent;border:0;border-radius:18px 18px 0 0;touch-action:none;cursor:grab;user-select:none}
  .sheet-drag span{display:block;width:47px;height:5px;border-radius:999px;background:rgba(207,238,250,.66);box-shadow:0 1px 0 rgba(255,255,255,.15)}
  .sheet-drag:active{cursor:grabbing}
  .sheet-close{display:grid;place-items:center;position:absolute;top:34px;right:12px;z-index:5;width:38px;height:38px;border:1px solid rgba(235,249,255,.5);border-radius:11px;background:rgba(174,215,237,.17);color:#fff;font:400 28px/1 var(--font);box-shadow:inset 0 1px rgba(255,255,255,.19)}
  .sheet-close:active{background:rgba(244,125,69,.5)}
  .left-sidebar .sidebar-heading{padding:4px 59px 6px 17px}
  .inspector .inspector-head{padding:5px 59px 12px 17px}
  .left-sidebar,.inspector{height:min(54vh,480px);transition:transform .18s cubic-bezier(.22,1,.36,1);overflow:hidden}
  .studio-app[data-mobile-panel=closed] .left-sidebar,.studio-app[data-mobile-panel=closed] .inspector{display:none!important}
  .stage-bottom{bottom:calc(min(54vh,480px) + 58px)}
  .viewport-surround{padding-bottom:calc(min(54vh,480px) + 106px)}
  .studio-app[data-mobile-panel=closed] .stage-bottom{bottom:63px}
  .studio-app[data-mobile-panel=closed] .viewport-surround{padding-bottom:67px}
  .studio-app[data-mobile-panel=closed] .map-stage[data-device=phone] .device-frame{width:min(350px,100%);height:min(610px,100%)}
  .studio-app[data-mobile-panel=closed] .map-stage[data-device=carplay] .device-frame{width:min(640px,100%);height:min(360px,100%)}
  .inspector-body{overscroll-behavior:contain}
  .generator-card{padding:12px}
  .icon-studio-switch{margin-top:10px}
}
@media(prefers-reduced-motion:reduce){.left-sidebar,.inspector{transition:none!important}}
.generator-grid{grid-template-columns:1fr;gap:3px}.generator-grid .generator-field{margin:4px 0 9px}
.custom-position-artwork{display:block;width:100%;height:100%;object-fit:contain;filter:none}
.studio-raster-location-art{display:grid;place-items:center;width:45px;height:45px;filter:drop-shadow(0 2px 4px #10233499)}
.studio-raster-location-art svg,.studio-raster-location-art img{width:45px;height:45px;object-fit:contain}
.location-icon-grid{margin-top:5px}.location-icon-grid .icon-tile{min-height:83px}
.style-create-hero{width:100%;display:flex;align-items:center;gap:11px;text-align:left;padding:14px 11px;border:1px solid rgba(255,174,109,.82);border-radius:11px;background:linear-gradient(125deg,rgba(249,142,59,.3),rgba(37,105,142,.35));box-shadow:inset 0 1px rgba(255,255,255,.15);color:#f4fbff;cursor:pointer}
.style-create-symbol{display:grid;place-items:center;flex:0 0 37px;width:37px;height:37px;border-radius:9px;background:linear-gradient(145deg,#ffac68,#f76b1d);font-size:25px;color:white;box-shadow:inset 0 1px rgba(255,255,255,.58)}
.style-create-hero strong{display:block;font:700 12px 'Space Grotesk',sans-serif}.style-create-hero small{display:block;font-size:9px;color:#bcd5e2;margin-top:5px;line-height:1.4}.style-create-hero>span:last-child{margin-left:auto;color:#ffb26a}
.style-create-hero:hover{filter:brightness(1.12)}.saved-style-row.active-custom{border-color:rgba(255,168,97,.75);background:rgba(255,140,63,.11)}.saved-style-row .custom-style-badge{font-size:8px;letter-spacing:.3px;color:#ffba7a;margin-right:4px}
.style-workspace-note{padding:9px 12px;border:1px solid rgba(129,192,222,.24);border-radius:8px;background:rgba(20,58,83,.35);font-size:10px;line-height:1.5;color:#a9ccdf;margin-bottom:14px}
.style-workspace-note strong{color:#ffb678}

/* Focused editing: keep the control surface, remove repeated explanations. */
.sidebar-heading{padding-top:17px;padding-bottom:12px}
.sidebar-heading h2{margin:0}
.tab-panel{padding-top:13px}
.subheading-row{margin-top:18px}
.inspector-head{padding-top:18px;padding-bottom:15px}
.inspector-head h2{margin:0}
.inspector-section{padding:13px 0}
.inspector-section h3{margin-bottom:11px}
.generator-card>.generator-header,.generator-card>p:first-of-type,.generator-card>.generator-step,.generator-card>.generator-connection-disabled,.generator-card>.generator-note{display:none}
.generator-card:after{content:'Generate in ChatGPT, then upload it under Edit.';display:block;color:#a8cadb;font-size:11px;line-height:1.5;margin-top:8px}
.generator-card>.prompt-info,.generator-card>.generator-field:has(#iconPromptPreview){display:none}
.style-create-hero{padding:11px 13px;margin-bottom:10px}
.style-workspace-note{padding:7px 10px;margin-bottom:8px}
.icon-artwork-row .inspector-icon-preview{margin-bottom:0}
/* Make the color well read as a primary tap target, not a passive sample. */
.color-control{gap:10px;padding:6px;border-color:rgba(169,215,240,.43)}
.color-picker-trigger{flex:1;min-width:0;display:flex;align-items:center;gap:11px;padding:5px 8px 5px 5px;border-radius:8px;background:linear-gradient(115deg,rgba(101,171,210,.18),rgba(106,154,181,.06));border:1px solid rgba(172,217,244,.38);cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
.color-picker-trigger:hover,.color-picker-trigger:focus-within{background:rgba(115,184,224,.24);border-color:#ffad73;transform:translateY(-1px)}
.color-picker-trigger input[type=color]{flex:0 0 54px;width:54px;height:45px;min-height:45px;padding:0;border:2px solid rgba(255,255,255,.9);border-radius:9px;box-shadow:0 0 0 1px rgba(9,32,48,.85),0 3px 9px rgba(0,0,0,.3);cursor:pointer;overflow:hidden}
.color-picker-trigger input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.color-picker-trigger input[type=color]::-webkit-color-swatch{border:0;border-radius:6px}
.color-change-copy{display:flex;flex-direction:column;gap:3px;min-width:0;color:#f6fbff}
.color-change-copy strong{font:700 12px 'Space Grotesk',sans-serif}
.color-change-copy small{font-size:10px;color:#9ed2ed;white-space:nowrap}
.color-control input[type=text]{flex:0 0 77px;width:77px;font-size:11px;text-align:center}
.color-picker-trigger:focus-within{outline:2px solid rgba(255,157,94,.45);outline-offset:2px}
@media(min-width:851px) and (max-width:1150px){.color-control{gap:5px}.color-picker-trigger{gap:6px;padding-right:4px}.color-picker-trigger input[type=color]{flex-basis:43px;width:43px;height:40px;min-height:40px}.color-change-copy strong{font-size:10px}.color-change-copy small{font-size:8px}.color-control input[type=text]{flex-basis:68px;width:68px;font-size:10px}}
@media(max-width:850px){.sidebar-heading{padding:9px 59px 4px 17px}.tab-panel{padding-top:8px}.inspector-head{padding:8px 59px 10px 17px}}

/* Texture studio: material cards make the actual repeating image visible. */
.side-tabs{gap:0;padding:0 8px}.side-tabs button{font-size:10px;padding-left:1px;padding-right:1px}
.texture-list{display:grid;gap:8px;padding:1px 0 20px}
.texture-row{display:flex;align-items:center;gap:7px;padding:6px;border:1px solid rgba(136,197,228,.25);border-radius:10px;background:rgba(7,35,55,.4);transition:border-color .15s,background .15s}
.texture-row.selected{border-color:rgba(255,153,80,.8);background:rgba(255,143,69,.12)}
.texture-row.is-off .texture-select{opacity:.5}
.texture-select{display:flex;align-items:center;gap:10px;flex:1;min-width:0;color:#e9f6ff;text-align:left;background:none;border:0;cursor:pointer;font-size:12px;font-weight:700}
.texture-thumbnail{position:relative;width:51px;height:51px;flex:0 0 51px;overflow:hidden;border-radius:8px;border:1px solid rgba(224,243,255,.45);background:#27445a}
.texture-pattern{position:absolute;inset:0;background-repeat:repeat;background-position:center;transition:opacity .07s,filter .07s}
.texture-select span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.texture-switch{position:relative;display:block;flex:0 0 37px;width:37px;height:23px;cursor:pointer}
.texture-switch input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0}
.texture-switch span{display:block;background:#2d4c62;border:1px solid #7e9fb4;width:37px;height:23px;border-radius:20px;transition:.16s}
.texture-switch span:after{content:'';position:absolute;left:3px;top:3px;width:17px;height:17px;background:#c9d9e4;border-radius:50%;transition:transform .16s}
.texture-switch input:checked+span{background:#ff8d43;border-color:#ffb17b}
.texture-switch input:checked+span:after{transform:translateX(14px);background:white}
.texture-switch input:focus-visible+span{outline:2px solid #c5ecff;outline-offset:3px}
.texture-empty{color:#a4c1d2;font-size:12px;padding:18px 8px}
.texture-large-preview{position:relative;width:100%;aspect-ratio:1.7;border:1px solid rgba(189,228,246,.45);border-radius:12px;overflow:hidden;margin-bottom:15px;background:#27445a}
.texture-inspector .property-row{margin-bottom:23px}
.texture-restore{margin-top:12px;background:transparent;color:#a7dbfa;border:1px solid #8bbdd566;padding:9px 12px;border-radius:8px;width:100%;font-weight:700;cursor:pointer}
.texture-hint{font-size:11px;color:#8cabbf;margin:14px 0}
@media(max-width:850px){.mobile-tool-nav button{font-size:9px}.texture-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.texture-select{font-size:11px;gap:6px}.texture-thumbnail{width:44px;height:44px;flex-basis:44px}.texture-row{padding:5px;gap:4px}.texture-switch{flex-basis:28px;width:28px}.texture-switch span{width:28px}.texture-switch input:checked+span:after{transform:translateX(5px)}}
.create-style-modal{max-width:450px;width:min(450px,calc(100vw - 24px))}.create-style-modal .style-form-label{display:block;font:700 11px 'Space Grotesk',sans-serif;color:#e5faff;margin:19px 0 7px}
.create-style-modal input,.create-style-modal select{width:100%;height:47px;padding:0 13px;border-radius:9px;background:#102b42;color:#fff;border:1px solid #8abbda70;font-size:13px;outline:none}
.create-style-modal input:focus,.create-style-modal select:focus{border-color:#ff9b61;box-shadow:0 0 0 3px #ff914633}
.style-modal-actions{display:flex;gap:10px;margin-top:24px}.style-modal-actions button{flex:1;min-height:44px;border-radius:8px;font-size:12px;font-weight:700;cursor:pointer;border:1px solid #9bc3d35c;background:#284357;color:#cfeafa}
.style-modal-actions button[type=submit]{background:linear-gradient(145deg,#ffb269,#ff761e);color:#fff;border-color:#ffc08f}
@media(max-width:850px){
  .left-sidebar,.inspector{transform:translateY(var(--sheet-drag-y,0px));transition:transform 270ms cubic-bezier(.2,.72,.22,1)}
  .left-sidebar.is-dragging,.inspector.is-dragging{transition:none!important}
  .left-sidebar.is-dismissing,.inspector.is-dismissing{transform:translateY(110%);pointer-events:none}
}

/* ---- Studio review fixes (2026-11-13) ---- */
/* Style details in the inspector (Styles tab) */
.style-inspector-status{font-size:12px;line-height:1.55;color:#a9ccdf;margin:0 0 12px}
.style-inspector-status.warn{color:#ffd9b8;border-left:3px solid #ff914f;padding-left:10px}
.style-facts{display:grid;gap:8px;margin:0}
.style-facts div{display:flex;justify-content:space-between;gap:12px;font-size:12px}
.style-facts dt{color:#8fb2c6}.style-facts dd{margin:0;color:#e9f8ff;font-weight:700;text-align:right}
.style-inspector-actions{display:flex;flex-wrap:wrap;gap:8px}
.style-inspector-actions button{min-height:40px;padding:0 14px;border-radius:9px;border:1px solid rgba(148,210,239,.35);background:rgba(20,58,83,.55);color:#eaf8ff;font-weight:700;cursor:pointer}
.style-inspector-actions button.primary{width:100%;background:#ff8a3d;border-color:#ffb27a;color:#1d1206}
.style-inspector-actions button.danger{border-color:rgba(255,140,120,.55);color:#ffc2b5}
/* "Keep your changes?" dialog */
.discard-modal{max-width:430px}
.discard-text{color:#bcd5e2;font-size:13px;line-height:1.6;margin:4px 0 16px}
.discard-actions{display:grid;gap:8px}
.discard-actions button{min-height:44px;border-radius:10px;border:1px solid rgba(148,210,239,.35);background:rgba(20,58,83,.55);color:#eaf8ff;font-weight:700;cursor:pointer}
.discard-actions .primary{background:#ff8a3d;border-color:#ffb27a;color:#1d1206}
.discard-actions .danger{color:#ffc2b5;border-color:rgba(255,140,120,.55)}
/* Phone "More" menu (hidden on larger screens) */
.more-button,.more-menu{display:none}
@media(max-width:850px){
  /* Touch targets: at least 44px, Apple's minimum */
  .back-button,.tool-control,.toolbar-quiet,.toolbar-primary,.more-button{min-width:44px;min-height:44px}
  .project-name{min-height:44px;font-size:13px}
  .layer-search input{min-height:44px;font-size:14px}
  .layer-row{min-height:44px}.layer-select{min-height:44px;font-size:14px}
  .layer-eye{min-width:44px;min-height:44px}
  .texture-select{min-height:44px}.texture-switch{min-width:44px;min-height:44px}
  .segmented button,.icon-studio-switch button{min-height:44px;font-size:12px}
  .saved-style-row button,.route-actions button,.wide-accent{min-height:44px}
  .stage-bottom button,.stage-bottom select{min-width:44px;min-height:44px;font-size:13px}
  .inspector-section select,.inspector-footer button,.toggle-row,.color-picker-trigger{min-height:44px}
  /* Readable text: nothing below 11px */
  .save-status,.layer-section-label,.subheading-row h3,.sidebar-foot,.canvas-tags,#zoomReadout,
  .device-bottom-caption,.map-top-label,.micro-disclaimer,.field-label,.maplibregl-ctrl-attrib{font-size:11px}
  .mobile-tool-nav button{font-size:12px}
  #inspectButton,.style-workspace-note{font-size:12px}
  .field-label span,#speedValue,.color-change-copy small{font-size:11px}
  /* Sliders: a thin track, but a 44px-tall touch area */
  input[type=range]{height:44px;margin:0}
  input[id$="-hex"]{min-height:44px;font-size:13px}
  /* Map credits stay compact (they are attribution, not controls) but readable */
  .maplibregl-ctrl-attrib,.maplibregl-ctrl-attrib-inner,.maplibregl-ctrl-attrib a{font-size:11px}
  /* Sheets: a visible centred close button, and a little more map left visible */
  .sheet-drag{flex-basis:52px;min-height:52px}
  .sheet-drag span{display:none}
  .sheet-close{left:50%;right:auto;top:4px;transform:translateX(-50%);width:44px;height:44px;border-radius:50%}
  .left-sidebar .sidebar-heading,.inspector .inspector-head{padding-right:17px}
  .left-sidebar,.inspector{height:min(48vh,430px)}
  .stage-bottom{bottom:calc(min(48vh,430px) + 58px)}
  .viewport-surround{padding-bottom:calc(min(48vh,430px) + 106px)}
}
@media(max-width:600px){
  /* Phone top bar: back, name, undo, More, Export */
  .studio-brand-logo,.studio-maps-entry,#compareButton,#saveButton,#redoButton{display:none!important}
  /* studio.css hides .top-actions .tool-control (undo/redo) on small screens; the More button must win */
  .top-actions .more-button{display:grid;place-items:center}
  .more-menu:not([hidden]){display:flex;flex-direction:column;position:fixed;top:62px;right:8px;z-index:60;min-width:220px;padding:6px;border-radius:14px;border:1px solid rgba(148,210,239,.4);background:#0e2c43f7;box-shadow:0 14px 30px #00132699}
  .more-menu a,.more-menu button{display:flex;align-items:center;min-height:44px;padding:0 14px;border:0;border-radius:9px;background:none;color:#eaf8ff;font:600 14px var(--font);text-decoration:none;text-align:left;cursor:pointer}
  .more-menu a:active,.more-menu button:active{background:rgba(255,145,79,.22)}
  .more-menu button:disabled{opacity:.45;cursor:default}
  /* The Canvas / iPhone / CarPlay preview switch adds little on a phone */
  .floating-segment{display:none!important}
}

/* ---- Studio clarity fixes (2026-11-14) ---- */
/* One icon set (Lucide via studio-icons.js) instead of symbol glyphs */
[data-ui-icon]{display:inline-flex;align-items:center;justify-content:center;line-height:0}
.ui-icon{width:1.15em;height:1.15em;flex:none}
.back-button .ui-icon,.tool-control .ui-icon,.sheet-close .ui-icon,.modal-close .ui-icon,
#zoomInButton .ui-icon,#zoomOutButton .ui-icon,#resetViewButton .ui-icon{width:19px;height:19px}
.toolbar-primary{gap:7px}
.toolbar-quiet,.maps-entry,#inspectButton,.route-actions button,#resetSelectionButton,.generator-copy,.generator-chatgpt,.icon-studio-switch button,.generator-connection-disabled{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.wide-accent{justify-content:flex-start;align-items:center;gap:8px}
.upload-button{display:flex;align-items:center;justify-content:center;gap:7px}
.layer-eye .ui-icon{width:17px;height:17px}.layer-eye.muted{opacity:.55}
.style-check .ui-icon{width:15px;height:15px}.custom-style-badge .ui-icon{width:13px;height:13px;vertical-align:-2px}
.saved-style-row .delete-style .ui-icon{width:16px;height:16px}
.style-create-symbol .ui-icon{width:22px;height:22px}
.export-icon .ui-icon{width:18px;height:18px}
.hud-sign .ui-icon{width:22px;height:22px}.route-callout-icon .ui-icon{width:18px;height:18px}
.map-error-icon{display:flex;justify-content:center;margin-bottom:15px}.map-error-icon .ui-icon{width:38px;height:38px}
.studio-library-link{display:inline-flex;align-items:center;gap:4px}

/* Import sits next to Create style */
.style-actions{display:flex;gap:8px;align-items:stretch}
.style-actions .style-create-hero{flex:1;width:auto}
.style-import-button{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 14px;border:1px solid rgba(148,210,239,.4);border-radius:11px;background:rgba(20,58,83,.55);color:#eaf8ff;font-weight:700;cursor:pointer}
.style-import-button:hover{background:rgba(36,86,118,.7)}

/* Saving: built-in styles say "not saved" and show a create-a-style prompt */
.save-status.warn{color:#ffc58f}
.keep-changes-bar{position:absolute;z-index:12;top:62px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;width:max-content;max-width:min(580px,calc(100% - 24px));padding:7px 7px 7px 14px;border-radius:12px;border:1px solid rgba(255,178,122,.75);background:rgba(13,40,60,.95);box-shadow:0 10px 26px rgba(0,16,30,.45);color:#f2fbff;font-size:13px;line-height:1.4}
.keep-changes-bar[hidden]{display:none}
.keep-changes-bar button{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border:0;border-radius:9px;background:#ff8a3d;color:#1d1206;font-weight:700;cursor:pointer}

/* Compare: before/after snapshot with a draggable divider */
.compare-view{position:absolute;inset:0;z-index:8;--split:50%;touch-action:none;user-select:none;-webkit-user-select:none;background:#0b2234}
.compare-view[hidden],.compare-busy[hidden]{display:none}
.compare-view img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:auto}
.compare-original{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--split)) 0 0)}
.compare-divider{position:absolute;top:0;bottom:0;left:var(--split);width:44px;margin-left:-22px;display:flex;align-items:center;justify-content:center;cursor:ew-resize;touch-action:none;outline:none}
.compare-divider::before{content:'';position:absolute;top:0;bottom:0;left:50%;width:2px;margin-left:-1px;background:#fff;box-shadow:0 0 0 1px rgba(8,30,48,.35)}
.compare-handle{position:relative;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#fff;color:#123a52;box-shadow:0 4px 14px rgba(0,16,30,.4)}
.compare-handle .ui-icon{width:20px;height:20px}
.compare-divider:focus-visible .compare-handle{outline:3px solid #ff914f;outline-offset:2px}
.compare-tag{position:absolute;top:12px;padding:5px 10px;border-radius:999px;background:rgba(8,30,48,.82);color:#fff;font-size:12px;font-weight:700;pointer-events:none}
.compare-tag-left{left:12px}.compare-tag-right{right:12px}
.compare-close{position:absolute;top:48px;right:12px;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:0;border-radius:10px;background:#ff8a3d;color:#1d1206;font-weight:700;cursor:pointer}
.compare-note{position:absolute;left:50%;bottom:34px;transform:translateX(-50%);margin:0;padding:6px 12px;border-radius:999px;background:rgba(8,30,48,.82);color:#dff3ff;font-size:12px;white-space:nowrap;pointer-events:none}
.compare-busy{position:absolute;inset:0;z-index:9;display:grid;place-items:center;background:rgba(6,24,38,.78);color:#eaf8ff;font-weight:700;font-size:14px}

/* Less developer clutter on the canvas */
.map-top-label{display:none!important}
.map-stage[data-device=canvas] #deviceLabel{display:none}
.sidebar-foot.is-quiet{display:none}

/* Sliders show their range */
.range-scale{display:flex;justify-content:space-between;margin-top:-1px;font-size:11px;color:#86a9bd}

@media(max-width:850px){
  .keep-changes-bar{top:62px;font-size:12px;padding-left:12px}
  .keep-changes-bar button{min-height:44px}
  .style-import-button{padding:0 12px}
}
.map-stage.is-comparing .keep-changes-bar{display:none}
.style-actions .style-create-hero{padding:10px 11px}
.style-actions .style-create-symbol{flex-basis:32px;width:32px;height:32px}
.style-create-hero strong{white-space:nowrap}
@media(max-width:850px){.compare-note{bottom:84px;white-space:normal;text-align:center;width:max-content;max-width:calc(100% - 24px)}}
