body{background:#f2f4ed;color:#203e34}header{height:64px;padding-inline:clamp(18px,3.5vw,64px);border-bottom:1px solid #335748}header a:last-child{font-size:14px}header i{width:29px;height:29px}body .shell{max-width:1380px;margin:0 auto;padding:32px clamp(16px,3.5vw,60px) 72px}#studioTitle{margin:26px 0}#studioTitle h1{font-size:38px}#account,#dashboard{max-width:760px}#account{max-width:490px}#builder [hidden],.shell>[hidden]{display:none!important}.editor-grid{display:grid;grid-template-columns:238px minmax(0,1fr);gap:clamp(20px,3vw,48px);align-items:start}.editor-rail{position:sticky;top:18px;background:#1b4034;color:#f7fbf3;border:1px solid #244d3f;border-radius:16px;padding:18px 14px 24px;min-height:440px}.editor-rail #back{color:#d0ded2;font-size:13px;background:none;border:none;padding:5px 9px}.editor-rail strong{display:block;font-size:22px;letter-spacing:-1px;padding:12px 10px 23px;overflow-wrap:anywhere}.editor-rail nav{border-top:1px solid #456255;padding-top:16px;display:grid;gap:5px}.editor-rail nav button{display:flex;align-items:center;justify-content:space-between;text-align:left;color:#dfebe1;background:transparent;border:0;padding:12px 14px}.editor-rail nav button:hover{background:#345747}.editor-rail nav button[aria-current]{background:#e3edce;color:#203e32}.editor-rail nav span{opacity:.65}.mobile-menu{display:none}.editor-main{min-width:0}.editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 0 16px}.editor-toolbar h1{font-size:clamp(28px,3.1vw,44px);margin:8px 0 0}.editor-states{display:flex;flex-wrap:wrap;align-items:center;gap:9px;font-size:13px;color:#536451}.editor-states span+span{border-left:1px solid #9aa892;padding-left:9px}.editor-main section{margin:0;padding:clamp(18px,2.4vw,36px);border-radius:17px;box-shadow:0 8px 28px #233c2807}.editor-main section>label:first-child,.editor-main section>h3:first-child{margin-top:0}.editor-main label{font-size:14px;color:#365143}.editor-main input,.editor-main select{font-size:16px;min-width:0}.editor-main #pickmap{height:clamp(280px,44vh,520px);border-radius:12px}.release-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #dde3d6}.release-row:last-child{border:0}.release-row h3{margin:0}.release-row button{flex:none}.catalog-table{width:100%;border-collapse:collapse;font-size:14px;margin-bottom:20px}.catalog-table td,.catalog-table th{padding:10px 6px;text-align:left;border-bottom:1px solid #dfe5da;overflow-wrap:anywhere}.catalog-table th{color:#586d59;font-size:12px}.catalog-table button{border:0;padding:2px;background:none;text-decoration:underline;text-underline-offset:3px;text-align:left}.editor-main .bar label{min-width:0}#notice{bottom:12px}
@media(max-width:760px){body .shell{padding:12px 12px 58px}.editor-grid{display:block}.editor-rail{position:sticky;top:0;z-index:3;min-height:0;padding:8px 12px;display:grid;grid-template-columns:auto minmax(0,1fr) minmax(115px,auto);align-items:center;gap:6px;border-radius:10px}.editor-rail strong{font-size:15px;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-rail #back{padding:4px;font-size:12px}.editor-rail nav{display:none}.mobile-menu{display:block;font-size:0;margin:0}.mobile-menu select{font-size:14px;padding:8px 4px;width:100%;background:#ecf1e1}.editor-toolbar{align-items:flex-start;flex-wrap:wrap;padding:20px 3px 12px}.editor-toolbar .bar button{font-size:13px;padding:8px 10px}.catalog-table td,.catalog-table th{padding:7px 3px;font-size:12px}.editor-main section{padding:17px 14px}.release-row{align-items:flex-start}.editor-main input[type=file]{max-width:100%}.editor-main .bar,.editor-main .fields{min-width:0}}

@media (min-width: 761px) {
  body .shell:has(#builder:not([hidden])) {
    max-width: none;
    padding: 0 clamp(16px, 2vw, 36px) 48px 0;
  }
  .editor-grid {
    grid-template-columns: clamp(190px, 15vw, 240px) minmax(0, 1fr);
    gap: clamp(16px, 2vw, 36px);
  }
  .editor-rail {
    top: 0;
    min-height: calc(100dvh - 64px);
    border-radius: 0;
  }
  .editor-main { padding-top: 16px; }
  #panel-basic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
  }
  #panel-basic > label { margin: 0; }
}
@media (min-width: 1100px) {
  #panel-address {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
    gap: clamp(20px, 2vw, 40px);
  }
  .address-map > p { margin-top: 0; }
  .editor-main #pickmap { height: clamp(340px, 53vh, 620px); }
}

body { background: #f5f6f8; color: #242f2c; }
header { background: white; color: #204e39; border-bottom: 1px solid #e2e7e3; }
.editor-rail { background: white; color: #243c31; border-color: #e2e7e3; }
.editor-rail #back { color: #577065; }
.editor-rail nav { border-color: #e3e9e5; }
.editor-rail nav button { color: #415248; }
.editor-rail nav button:hover { background: #edf5f0; }
.editor-rail nav button[aria-current], .editor-toolbar .accent { color: white; background: #148250; }
.shell #dashboard {
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
}
#dashboard .heading { flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
#dashboard h2 { margin: 0; }
#dashboard .accent { background: #148250; border-color: #148250; }
#shops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}
.store-card {
  display: block;
  overflow: hidden;
  border: 1px solid #e1e7e3;
  border-radius: 14px;
  background: white;
  box-shadow: 0 4px 18px #243c3108;
}
.store-cover {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #eaf1ed;
  color: #486557;
}
.store-cover:focus-visible { outline-offset: -4px; }
.store-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.store-state, .store-preview-label { position: absolute; border-radius: 30px; padding: 5px 10px; font-size: 12px; }
.store-state { top: 12px; left: 12px; background: #fff; color: #415248; }
.store-state[data-live=true] { background: #e8f7ee; color: #12663d; }
.store-preview-label { right: 12px; bottom: 12px; background: #172d25df; color: white; }
.store-card-body { padding: 16px; overflow-wrap: anywhere; }
.store-card-body h3 { margin: 0; font-size: 20px; }
.store-card-body .bar { margin-top: 16px; }
.store-card-body button { font-size: 14px; }

/* The studio keeps persistent actions separate from the current editing task. */
.editor-main { display: block; height: auto; padding-bottom: 24px; font-size: 14px; }
.editor-toolbar { align-items: center; margin: 0; padding: 6px 0 14px; }
.editor-toolbar h1 { font-size: 22px; line-height: 1.25; margin: 6px 0 0; }
.editor-states { font-size: 12px; }
#publicState { color: #11603e; background: #deefe4; border-radius: 4px; padding: 2px 7px; }
.editor-main button, .studio-footer button { font-size: 13px; padding: 8px 12px; }
.studio-footer { position: fixed; z-index: 5; right: 16px; bottom: max(12px,env(safe-area-inset-bottom)); display: flex; gap: 6px; padding: 6px; border: 1px solid #d4e1d8; border-radius: 9px; background: white; box-shadow: 0 3px 14px #173b3220; }
.studio-footer .accent { background: #126c46; }
.shell:has(#builder:not([hidden])) #notice { bottom: 76px; }
#panelDialog { width: min(510px,94vw); max-height: 88dvh; padding: 20px; border-radius: 10px; }
#panelDialog h2 { margin-top: 0; font-size: 18px; }
#editNotice:empty { display: none; }
@media(min-width:761px){
  .editor-grid { grid-template-columns: 146px minmax(0,1fr); gap: 20px; }
  .editor-rail { padding: 12px 7px; }
  .editor-rail strong { font-size: 16px; padding: 10px 6px 16px; }
  .editor-rail nav { padding-top: 10px; gap: 3px; }
  .editor-rail nav button { font-size: 13px; padding: 9px 8px; border-radius: 5px; }
  .editor-main input, .editor-main select { font-size: 14px; }
}
@media(max-width:760px){
  .editor-toolbar { flex-wrap: nowrap; padding: 15px 0 12px; }
  .editor-toolbar h1 { font-size: 19px; }

  .editor-main button { min-height: 40px; }
  .studio-footer { right: 10px; }
}
#sceneThumbs { display: flex; gap: 8px; overflow-x: auto; padding: 3px; }
#sceneThumbs button { flex: 0 0 110px; padding: 4px; font-size: 13px; }
#sceneThumbs img { display: block; width: 100%; aspect-ratio: 2; object-fit: cover; border-radius: 4px; margin-bottom: 3px; }
#sceneThumbs button[aria-pressed=true] { background: #e8f4ed; border-color: #16734a; color: #175f41; }
#panel-basic { max-width: 880px; }
.studio-footer { align-items: center; }
#draftState { padding-inline: 6px; font-size: 12px; color: #405c4b; }
.catalog-table button { color: #136340; }
@media(max-width:760px){
  #panel-address:not([hidden]) { display: flex; flex-direction: column; }
  .address-fields { display: contents; }
  .address-map { order: 1; }
  .address-fields label { order: 2; }
  .catalog-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .catalog-table tbody { display:grid; gap:9px; }
  .catalog-table tr { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:4px 10px; align-items:center; padding:10px; border:1px solid #dae4de; border-radius:7px; }
  .catalog-table td { border:0; padding:0; }
  .catalog-table td:first-child { font-size:14px; font-weight:bold; grid-column:1 / 3; }
  .catalog-table td:nth-child(2) { grid-column:1; }
  .catalog-table td:nth-child(4) { grid-column:1 / 3; color:#4b6457; }
  .catalog-table td:last-child { grid-column:3; grid-row:1 / 4; }
  .studio-footer { left: 8px; right: 8px; }
  #draftState { margin-right:auto; }
  .studio-footer button { flex-shrink:0; }
}

.editor-toolbar > div { display: flex; align-items: center; gap: 10px; }
.editor-toolbar h1 { order: -1; margin: 0; }
.editor-main #panel-basic { display: block; max-width: 820px; padding: 0 16px; }
#panel-basic > label {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  margin: 0;
}
#panel-basic > label + label { border-top: 1px solid #e3e9e5; }
#panel-basic input, #panel-basic select, .address-fields input { height: 40px; width: 100%; }
#panel-basic textarea {
  width: 100%; min-height: 64px; padding: 8px 10px; resize: vertical;
  font: inherit; font-weight: normal; border: 1px solid #c6d2ca; border-radius: 6px;
}
.address-lookup { display: flex; align-items: center; gap: 8px; }
.address-lookup p { flex: 1; overflow-wrap: anywhere; }
.address-lookup button { flex: none; }
.studio-footer {
  position: sticky; bottom: 8px; width: fit-content; max-width: 100%;
  margin: 12px 0 0 auto;
}
.editor-main:has(#panel-basic:not([hidden])) { max-width: 820px; }
@media(max-width:760px){
  #panel-basic > label { grid-template-columns: 70px minmax(0,1fr); gap: 8px; }
  .editor-main #panel-basic { padding: 0 10px; }
  .studio-footer { width: 100%; justify-content: flex-end; }
}

/* Shared workspace chrome for the shop directory and its editors. */
body:has(#dashboard:not([hidden])),body:has(#builder:not([hidden])) { background:#fff; color:#35465c; }
body:has(#dashboard:not([hidden])) > header,body:has(#builder:not([hidden])) > header { display:none; }
body .shell:has(#dashboard:not([hidden])),body .shell:has(#builder:not([hidden])) { max-width:none; padding:0; margin:0; }
.shell #dashboard { display:grid; grid-template-columns:clamp(178px,13vw,238px) minmax(0,1fr); gap:0; margin:0; }
.home-rail,.editor-rail { background:#fff; color:#415369; border:0; border-right:1px solid #d9e4f3; border-radius:0; box-shadow:none; }
.home-rail { display:flex; flex-direction:column; min-height:100dvh; padding:12px 10px; }
.admin-brand { color:#264d56; text-decoration:none; font-size:22px; letter-spacing:-1px; white-space:nowrap; }
.admin-brand small,.rail-caption,.rail-foot { font-size:12px; color:#758499; letter-spacing:0; }
.rail-caption { margin:24px 8px 12px; }
.rail-current,.rail-link { padding:12px; color:#415369; text-decoration:none; font-size:13px; border-radius:4px; }
.rail-current,.editor-rail nav button[aria-current] { background:#e8f3ff; color:#174e82; }
.rail-foot { margin-top:auto; border-top:1px solid #dfe7f2; padding-top:12px; }
.shop-workspace,.editor-main { padding:16px; min-width:0; }
.shell #dashboard .heading { margin-bottom:16px; }
.shell #dashboard h2,.editor-toolbar h1 { font-size:16px; color:#324358; }
#storeSearch { width:min(340px,100%); height:32px; border:1px solid #cbdcf1; border-radius:3px; padding:0 9px; font-size:13px; }
.store-list-frame { margin-top:24px; border:1px solid #cedeef; min-height:calc(100dvh - 130px); }
.shop-table { width:100%; border-collapse:collapse; font-size:13px; color:#465569; }
.shop-table th,.shop-table td { padding:12px; text-align:left; border-bottom:1px solid #e1e9f3; }
.shop-table th { padding-block:9px; font-weight:600; color:#66758a; background:#f2f5f9; }
.shop-table td { height:87px; }
.shop-table tbody tr:nth-child(even){background:#f9fbfd;}
.shop-table td:last-child button { margin:2px; }
#dashboard button,.editor-main button,.rail-foot button { border:0; background:#e9eef5; color:#3a4d61; border-radius:3px; font-size:12px; padding:8px 11px; }
#dashboard #shops .shop-name { display:inline; text-align:left; color:inherit; background:transparent; border:0; box-shadow:none; padding:0; font-size:13px; }
#dashboard #shops .shop-name:hover { text-decoration:underline; }
#dashboard .accent,.editor-main .accent,.editor-main button[aria-pressed=true] { background:#0879da; color:white; }
.shop-state,#publicState { color:#0869b3; background:#e8f3ff; font-size:12px; padding:4px 8px; border-radius:3px; white-space:nowrap; }
.editor-grid { gap:0; }
.editor-main section { border:1px solid #d5e1f0; border-radius:3px; box-shadow:none; }
.editor-main label { color:#465569; }
.studio-footer { border-color:#d5e1f0; border-radius:3px; box-shadow:none; }
.editor-main:has(#panel-basic:not([hidden])) { max-width:none; }
@media(min-width:761px){
  .editor-grid { grid-template-columns:clamp(178px,13vw,238px) minmax(0,1fr); }
  .editor-rail { min-height:100dvh; padding:12px 10px; }
  .editor-rail .admin-brand { display:block; margin-bottom:22px; }
}
@media(max-width:760px){
  .shell #dashboard { display:block; }
  .home-rail { min-height:0; flex-direction:row; align-items:center; gap:10px; padding:8px 12px; border-bottom:1px solid #d9e4f3; }
  .admin-brand { font-size:17px; }
  .home-rail .rail-caption,.home-rail .rail-current,.editor-rail .admin-brand { display:none; }
  .rail-foot { margin:0 0 0 auto; padding:0; border:0; font-size:0; }
  .shop-workspace,.editor-main { padding:12px; }
  .store-list-frame { min-height:0; overflow-x:auto; }
  .shop-table th:nth-child(1),.shop-table td:nth-child(1),.shop-table th:nth-child(3),.shop-table td:nth-child(3),.shop-table th:nth-child(4),.shop-table td:nth-child(4){display:none;}
  .shop-table td,.shop-table th { padding:6px; }
  .shop-table td:last-child { width:100px; }
}
.shop-table #shops { display:table-row-group; }
.shop-table #shops td[colspan] { display:table-cell; text-align:center; }

/* Page commands belong to the header; item commands travel with their row. */
.editor-toolbar,.shop-workspace .heading { display:flex; justify-content:space-between; align-items:center; }
.editor-main:has(#panel-basic:not([hidden])) .studio-footer { max-width:820px; }
.studio-footer {
  position:static; width:100%; margin:10px 0 0; justify-content:flex-end;
  padding:8px 0; border:0; border-top:1px solid #d9e4f3;
}
#draftState { margin-right:auto; }
#sceneThumbs { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr)); gap:6px; }
.scene-row { display:flex; align-items:center; justify-content:space-between; gap:6px; padding:5px 8px; border:1px solid #dde6f1; }
#sceneThumbs .scene-row button { flex:0 0 auto; }
#sceneThumbs .scene-row button:first-child { flex:1; display:flex; align-items:center; gap:8px; min-width:0; text-align:left; overflow-wrap:anywhere; }
#sceneThumbs .scene-row img { width:42px; height:30px; object-fit:cover; margin:0; }
#sceneSettings { max-width:min(460px,94vw); }
#sceneSettings input { max-width:100%; }

body { background: white; color: #35465c; }
body .shell:has(#account:not([hidden])) { max-width:none; margin:0; padding:0; }
.shell #account {
  display:grid; grid-template-columns:clamp(178px,13vw,238px) minmax(0,1fr);
  margin:0; max-width:none; padding:0; border:0; border-radius:0;
}
#account .heading h1 { margin:0 0 20px; font-size:16px; }
#account .shop-workspace h2 { margin:0; padding:10px 14px; background:#f2f5fa; border:1px solid #cedeef; font-size:14px; }
#auth { padding:12px 14px; border:1px solid #cedeef; border-top:0; }
#auth label { max-width:440px; font-size:13px; }
#auth .accent { background:#0879da; }
.editor-main #panel-basic { max-width:none; }
.editor-main:has(#panel-basic:not([hidden])) .studio-footer { max-width:none; }
#panel-basic label { grid-template-columns:110px minmax(0,640px); }
#panel-basic label > span { color:#4c6078; }
#panel-basic input,#panel-basic select,#panel-basic textarea { border-color:#cddbef; border-radius:3px; font-weight:400; }
@media(max-width:760px){
  .shell #account { display:block; }
  #panel-basic label { grid-template-columns:70px minmax(0,1fr); }
}

.floor-nav > button,.floor-nav > div button { width:100%; }
#floorSubnav { margin:4px 0 6px 12px; border-left:2px solid #d7e5f2; }
.editor-rail #floorSubnav button { padding:6px 10px; font-size:12px; }
#floorSubnav button[aria-pressed=true],.floor-stages button[aria-pressed=true] { background:#ddecfc;color:#164a73; }
.floor-stages,.floor-controls,#selectionTools,#objectAdds { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 12px; align-items:center; }
.floor-controls label,.opacity-control { display:flex;align-items:center;gap:6px;margin:0; }
.floor-controls input[type=number] { width:74px; }
.opacity-control input { width:min(240px,45%); }
#sourceImage { display:block; max-width:100%; max-height:55vh; border:1px solid #d7e2ef; }
.plan-correction { display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:14px;align-items:start; }
#vectorPad { display:block;width:100%;height:auto;border:1px solid #c7d5e6;touch-action:none; }
#objectDetails { border:1px solid #d7e2ef;padding:12px; }
#objectDetails label { margin:8px 0; }
#objectDetails input,#objectDetails select { width:100%; }
#objectDetails button { margin:3px; }
#drawHint { font-size:13px; }
@media(max-width:760px){.plan-correction{grid-template-columns:minmax(0,1fr)}.floor-stages button{padding-inline:6px}}

/* Floor workflow: drawing surface, task tools and a contextual inspector. */
#builder .studio-projectbar {
  display:flex; align-items:center; gap:16px; padding:11px 20px; min-height:58px;
  color:#29484e; border-bottom:1px solid #cfddda; background:#fff;
}
.studio-projectbar a { color:#15544f; text-decoration:none; font-size:20px; }
.studio-projectbar span { color:#647e80; font-size:12px; }
.studio-projectbar button { margin-left:auto; font-size:13px; }
.editor-grid .editor-main { padding:0; }
.editor-grid .editor-rail { background:#f7faf9; border-color:#d3dfdc; }
.editor-grid .editor-rail .admin-brand { display:none; }
.editor-grid .editor-toolbar { background:#f1f5f4; padding:16px 20px; }
.editor-main #panel-floor {
  display:grid; grid-template-columns:minmax(0,1fr) clamp(228px,18vw,308px);
  border:0; border-block:1px solid #d2dfdc; padding:0; border-radius:0;
}
.plan-work { min-width:0; background:#ecf2f0; }
.plan-work .floor-stages,.plan-work .floor-controls,.plan-work #sourceStage>.bar,
.plan-work #objectAdds,.plan-work #selectionTools {
  margin:0; padding:8px 14px; background:#fff; border-bottom:1px solid #d6e2df;
}
.plan-work>.floor-controls { background:#f6f9f8; }
.plan-work label { font-size:12px; }
#panel-floor button { background:#fff; border:1px solid #c9d9d6; border-radius:5px; color:#29454c; }
#panel-floor button[aria-pressed=true], #panel-floor #choosePlan, #panel-floor #traceImage,
.editor-grid nav button[aria-current],
.editor-grid #floorSubnav button[aria-pressed=true] {
  background:#14786f;color:white;border-color:#14786f;
}
.drawing-field {
  padding:clamp(12px,2vw,32px); min-height:clamp(280px,52vh,640px);
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:10px;
  background:#ebf1ef;
}
.drawing-field #sourceImage,.drawing-field #vectorPad,.drawing-field .studio-sheet {
  width:100%; max-width:1000px; height:auto; margin:0; background:white;
  border:1px solid #d1dedb; box-shadow:0 2px 9px #23433c12;
}
.drawing-field #sourceImage { object-fit:contain; max-height:66vh; }
.drawing-field #drawHint,.plan-key { align-self:flex-start; }
.plan-key { display:flex; flex-wrap:wrap; gap:10px; padding:4px 8px; background:white; font-size:12px; border:1px solid #d9e3e1; }
.plan-key span::before { content:''; display:inline-block; width:13px; height:3px; margin:0 4px 3px 0; background:#293f49; }
.plan-key span:nth-child(2)::before { background:#bd5514; }
.plan-key span:nth-child(3)::before { background:#7848b7; }
.plan-key span:nth-child(4)::before { background:#167c75; }
.plan-inspector { min-width:0; padding:16px; border-left:1px solid #d2dfdc; color:#29454c; background:#fff; }
.plan-inspector h3 { font-size:15px; margin:0 0 12px; }
.plan-inspector p,.plan-inspector .opacity-control { background:#eff5f3; padding:10px; border-radius:5px; font-size:13px; }
.plan-inspector #objectDetails { border:0; padding:12px 0; }
.plan-inspector #sourceInspector button { display:block; width:100%; margin-top:8px; }
.plan-inspector .entry { flex-wrap:wrap; }
.plan-inspector .opacity-control { flex-wrap:wrap; }
.plan-inspector .opacity-control input { flex:1; min-width:65px; }
.editor-main .studio-footer { padding-inline:16px; }
@media(min-width:761px){#panel-floor #stageTabs {display:none;}}
@media(max-width:950px){
  .editor-main #panel-floor { grid-template-columns:minmax(0,1fr); }
  .plan-inspector { border-left:0; border-top:1px solid #d2dfdc; }
}
@media(max-width:760px){
  #builder .studio-projectbar { gap:8px; padding:7px 12px; min-height:42px; }
  .studio-projectbar a {font-size:15px;}
  .studio-projectbar strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .studio-projectbar span,.studio-projectbar button { display:none; }
  .drawing-field { min-height:200px; padding:10px; }
}
.plan-toolstrip { display:flex; flex-wrap:wrap; gap:8px 12px; padding:8px 14px; background:white; border-bottom:1px solid #d6e2df; }
.plan-toolstrip #selectionTools,.plan-toolstrip #objectAdds { border:0; padding:0; }
.plan-work .floor-controls label { white-space:nowrap; flex:0 0 auto; }
.plan-work .floor-controls input[type=checkbox] { width:auto; }

/* All six editors share the floor workspace's surface and action colors. */
#builder { --ink:#29454c; --accent:#14786f; --line:#d2dfdc; --wash:#edf3f1; }
.editor-grid .editor-toolbar { border-bottom:1px solid var(--line); min-height:58px; }
.editor-main section[data-panel] { border-color:var(--line); border-width:0 0 1px; border-radius:0; color:var(--ink); }
.editor-main button:not(.pnlm-control),#panelDialog button,#sceneSettings button { border:1px solid var(--line,#d2dfdc); }
.editor-main .accent,.editor-main .studio-footer .accent,#panelDialog .accent { background:#14786f;color:white; }
.editor-main input:not([type=checkbox]):not([type=range]),.editor-main select,.editor-main textarea {
  border-color:var(--line);border-radius:5px;
}
.editor-main #panel-basic { padding:8px clamp(14px,2vw,30px); }
#panel-basic label > span { color:var(--ink); }
.editor-main .studio-footer { background:white; margin-top:0; border-color:var(--line); padding-block:12px; }
.editor-main #panel-address { padding:0; }
.address-map { background:var(--wash); min-width:0; padding:14px; }
.address-map p { margin:0 0 8px; }
.editor-main #pickmap { border:1px solid var(--line); border-radius:4px; }
.address-fields { padding:16px; background:white; min-width:0; }
.address-fields .address-lookup { flex-wrap:wrap; }
.address-fields .address-lookup p { min-width:110px; }
.editor-main #panel-address #searchStoreAddress { color:white; background:var(--accent); }
#panel-catalog th,#releaseStatus,#panel-youtube p { background:var(--wash);color:var(--ink); }
#releaseStatus,#panel-youtube p { padding:9px 12px;border-radius:4px; }
#youtubeUrl { max-width:680px; }
#panel-vr #previewbox { width:100%;min-width:0;margin-inline:auto;padding:0; background:var(--wash); }
#panel-vr #preview { position:absolute;inset:0;width:100%;height:100%; }
#panel-vr .scene-row { border-color:var(--line); }
#sceneThumbs .scene-row button[aria-pressed=true] { color:white;background:var(--accent); }
@media(min-width:951px){
  .editor-main #panel-address { display:grid;grid-template-columns:minmax(0,1fr) clamp(250px,20vw,340px); gap:0; }
  .address-map { grid-column:1;grid-row:1; }
  .address-fields { grid-column:2;grid-row:1;border-left:1px solid var(--line); }
}
@media(max-width:950px){
  .editor-main #panel-address:not([hidden]) { display:flex;flex-direction:column; }
  .address-fields { display:block; }
  .address-map { order:1; }
}
#dashboard .workspace-map {display:inline-flex;align-items:center;align-self:stretch;padding:7px 11px;background:white;border:1px solid var(--control-line);border-radius:var(--control-radius);color:var(--control-ink);text-decoration:none;font-size:12px;white-space:nowrap;}
#dashboard .heading {flex-wrap:wrap;gap:8px;}
#panel-basic :is(input,select,textarea):disabled {background:#f5f6f5;color:#49554f;opacity:1;cursor:default;}
#leaveDialog .bar {margin-top:18px;justify-content:flex-end;flex-wrap:wrap;}
.studio-projectbar #publicState {display:inline-flex;align-items:center;flex:none;background:#f0f6eb;color:#36523a;border:1px solid #d4e2cc;border-radius:4px;padding:2px 7px;font-size:12px;}
#vrSteps {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-bottom:16px;}
#vrSteps button {padding:8px 4px;min-height:40px;border:1px solid #d2dfd6;background:white;color:#203b2c;}
#vrSteps button[aria-pressed=true] {background:var(--action);border-color:#92b77e;color:#172617;}
@media(max-width:1050px){#vrSteps {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:480px){#vrSteps {grid-template-columns:repeat(2,minmax(0,1fr));}}
#panel-vr [hidden]{display:none!important}
#panel-vr .tour-floor,#panel-vr .tour-tools,#panel-vr .tour-nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}
#sceneThumbs{grid-template-columns:repeat(auto-fill,minmax(min(175px,100%),1fr));gap:12px}
#sceneThumbs .scene-row{display:block;position:relative;border:1px solid #d3dfd6;background:white;border-radius:5px;overflow:hidden}
#sceneThumbs .scene-row button:first-child{display:grid;width:100%;padding:0 0 10px;gap:7px;text-indent:8px;border:0}
#sceneThumbs .scene-row img{width:100%;height:auto;aspect-ratio:2;object-fit:cover}
#sceneThumbs .scene-row button+button{position:absolute;right:4px;bottom:4px}
#sceneThumbs[data-empty]:not([data-empty=""])::after{content:attr(data-empty);padding:36px 15px;border:1px dashed #aabdb0;grid-column:1/-1;text-align:center}
.tour-pair{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:center;gap:12px}
#panel-vr .tour-pair>*{min-width:0;width:100%;margin:0}
#workVisitor{border:0}
#panel-vr :is(#workVisitor,#previewbox){width:100%;height:auto;aspect-ratio:16/9;}
#catalogManager{width:min(680px,94vw);max-height:85dvh;overflow:auto}
.tour-map{padding:10px;border:1px solid #cfdbd3;background:white}
#workMap{position:relative;aspect-ratio:5/3;background:#f2f5f3;overflow:hidden;margin-top:8px}
#workMap>img,#workMap>canvas{width:100%;height:100%;display:block}
.work-sector{position:absolute;width:104px;height:104px;margin:-52px;border-radius:50%;clip-path:polygon(50% 50%,-40% 0,140% 0);background:#2cb769a8;touch-action:none;cursor:grab}
#workMap .floor-dot{z-index:1}
#panel-vr .tour-nav{justify-content:space-between;border-top:1px solid #d3dfd6;padding-top:12px}
.tour-tools input[type=number]{max-width:82px}
#tourShare{overflow:auto}#tourShare textarea{width:100%}
#editorVideo:not(:empty){width:min(100%,480px);aspect-ratio:16/9;margin:8px 0}
@media(max-width:780px){.tour-pair{grid-template-columns:1fr}.tour-nav span{font-size:12px}}
#workMini,#workContact{position:absolute;z-index:3;top:8px}
#workMini{left:6px;width:26%;max-width:200px}
#workMini .floor-status,#workMini .floor-legend{display:none}


#workContact{right:8px;max-width:40%;background:#193c36dc;color:white;font-size:12px;padding:5px 8px;border-radius:4px}
#workMap .floor-dot[aria-current]{background:#26774a;outline:2px solid #72bf87}
#coMenu{position:fixed;z-index:1000;background:white;box-shadow:0 3px 16px #162d2336;border:1px solid #d7ded9;border-radius:5px;padding:4px;min-width:140px}
#coMenu[hidden]{display:none}
#coMenu button{display:block;width:100%;border:0;border-radius:3px;text-align:left;padding:8px 12px;background:white;color:#23362b;font-size:13px;font-weight:400}
#coMenu button:is(:hover,:focus-visible){background:#edf5e9}
#coDialog{width:min(400px,92vw);padding:18px}
#coDialog label{display:grid;gap:5px;margin:12px 0}
#coDialog label[hidden]{display:none}
#coError{color:#8f3023}
#panel-vr .vr-pickers{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;margin:0 0 8px;min-width:0}
#panel-vr .vr-pickers label{display:flex;align-items:center;gap:4px;min-width:0;margin:0;white-space:nowrap;font-size:12px}
#panel-vr .vr-pickers select{margin:0;width:auto;min-width:0;max-width:140px;height:30px;min-height:0;padding:2px 5px;font-size:13px}
#panel-vr .vr-pickers label:first-child{flex:none}

.tour-pair:has(.tour-map[hidden]){align-items:start}
#panel-vr .tour-pair>#coDialog[open]{position:static;box-sizing:border-box;width:100%;max-width:100%;margin:0;padding:12px;border:1px solid var(--line);box-shadow:none;overflow:auto}
#coDialog :is(input,select,fieldset,textarea){min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:780px){
  .tour-pair:has(#coDialog[open]){grid-template-columns:minmax(0,1fr) clamp(145px,30%,250px)}
}
@media(max-width:600px){
  #panel-vr .tour-pair:has(#coDialog[open]){gap:6px;grid-template-columns:minmax(0,1fr) minmax(130px,38%)}
  #panel-vr .tour-pair>#coDialog[open]{padding:6px}
  #coDialog .heading{flex-wrap:wrap}#coDialog fieldset{padding:4px}
}
#panel-vr .tour-pair>#coDialog[open]{max-height:70dvh;overscroll-behavior:contain}

#coDialog.editing-blur :is(#coHeading,#coApply,#coCancel),#coDialog.editing-blur #coForm>label{display:none}
#coDialog.editing-blur .heading{justify-content:flex-end}
#blurPad{display:grid;grid-template-columns:repeat(3,minmax(0,36px));gap:3px;justify-content:center}
#blurPad span{grid-column:1/-1;text-align:center}
#blurPad button{min-width:0;padding:4px}
#blurPad [data-direction=up],#blurPad [data-direction=down]{grid-column:2}
#blurPad [data-direction=left]{grid-row:3;grid-column:1}
#blurPad [data-direction=right]{grid-row:3;grid-column:3}

#panel-basic [hidden],.address-fields label [hidden]{display:none!important}
#panel-basic label>.basic-value,.address-fields label>.basic-value{font-weight:400;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
#auth [hidden] { display: none !important; }
#dashboard #registrationInbox[hidden],#managementBody button[hidden] {display:none!important;}
.registration-requests details {padding:12px 0;border-bottom:1px solid #d8e0db;}
.registration-requests summary {cursor:pointer;overflow-wrap:anywhere;}
.registration-requests dl {display:grid;grid-template-columns:max-content 1fr;gap:8px 16px;}
.registration-requests dd {margin:0;white-space:pre-wrap;overflow-wrap:anywhere;}
#dashboard #feedbackInbox[hidden] {display:none!important;}

.dashboard-nav {display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:20px}
#dashboard .dashboard-nav section {display:grid;gap:2px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.dashboard-nav h2 {margin:0 10px 4px;color:#667571;font-size:12px}
#dashboard .dashboard-nav :is(a,button) {display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:5px;background:transparent;color:#354740;text-decoration:none;text-align:left;font:inherit;font-size:13px;font-weight:500}
#dashboard .dashboard-nav [hidden] {display:none}
#dashboard .dashboard-nav :is(a,button):hover {background:#f1f5ef}
#dashboard .dashboard-nav [aria-current] {background:#dfefcf;color:#234820;font-weight:700}
.dashboard-nav svg {width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.pending-count {margin-left:auto;border-radius:12px;padding:1px 7px;color:#225b39;background:#dfefdf;font-size:11px}
@media(max-width:800px){#dashboard .home-rail {display:block;min-height:0}.dashboard-nav {gap:12px;margin:12px 0}}
#adminPane {display:block;height:auto}
#adminPane[hidden],#projectsPane[hidden],#adminPane [hidden] {display:none!important}
#adminStatus:empty {display:none}
.admin-tools {display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin:12px 0}
.admin-tools input,.admin-tools select,.admin-table input {width:auto;max-width:100%;min-height:34px;padding:6px 10px}
.admin-tools input[type=search] {width:min(300px,100%)}
.admin-table {width:100%;border-collapse:collapse;table-layout:auto;font-size:13px;color:#40536a;margin:14px 0;border:1px solid #d6e2ed}
.admin-table td,.admin-table th {padding:12px;text-align:left;border-bottom:1px solid #dfe7ef;overflow-wrap:anywhere}
.admin-table th {background:#f2f5f9;font-weight:600;color:#5a6d83;white-space:nowrap}
.admin-table .expanded-row {background:#f6f9fb}
.admin-table dl {display:grid;grid-template-columns:max-content 1fr;gap:6px 14px}
.admin-table dd {margin:0;white-space:pre-wrap}
#dashboard #adminPane .admin-summary {border:none!important;background:transparent!important;text-align:left;padding:4px 0;font-weight:600;max-width:min(36vw,550px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-more {display:inline-block;vertical-align:middle;padding:4px}
.project-more summary,#adminPane summary {cursor:pointer}
@media(max-width:760px){
 #adminPane {overflow-x:auto}
 .admin-table thead {display:none}
 .admin-table,.admin-table tbody,.admin-table tr,.admin-table td {display:block}
 .admin-table tr {padding:8px;border-bottom:1px solid #dfe7ef}
 .admin-table td {padding:3px;border:0}
 .admin-table td[data-label]::before {content:attr(data-label);display:inline-block;min-width:5em;margin-right:8px;color:#677b89;font-size:12px}
 .inbox-table td[data-label="주소"],.inbox-table td[data-label="공간 크기"],.inbox-table td[data-label="신청자와의 관계"] {display:none}
 #dashboard #adminPane .admin-summary {max-width:65vw;vertical-align:middle}
}
