@font-face { font-family: "Baskervville"; src: url("assets/Baskervville-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/Jost-Regular.ttf") format("truetype"); font-weight: 100 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/Jost-Semibold.ttf") format("truetype"); font-weight: 501 900; font-style: normal; font-display: swap; }
:root {
  color-scheme: light;
  --ink: #363636;
  --muted: #655f55;
  --accent-ink: #6e5530;
  --deep: #302e2b;
  --line: #d7cebc;
  --line-light: #e8e0d2;
  --paper: #fffefa;
  --page: #f4f0e7;
  --wash: #f4eddf;
  --brass: #d8c79f;
  --serif: "Baskervville", "Baskerville", Georgia, serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font: 100%/1.4 var(--sans);
  color: var(--ink);
  background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 288px; }
button, select, input { font: inherit; color: inherit; }
button, summary, select, a { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button { background: none; border: none; }
button:disabled { cursor: default; opacity: .42; }
:focus-visible { outline: 3px solid #946d23; outline-offset: 3px; }
select, input:not([type=file]) { min-width: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
.icon-sheet { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.ico {
  width: 1.08rem; height: 1.08rem; flex: 0 0 auto; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: absolute; left: 12px; top: 8px; z-index: 10; padding: 10px 16px; background: white; }
.masthead { position: relative; isolation: isolate; background: var(--deep); color: #f7f2e7; border-bottom: 3px solid var(--brass); }
.masthead::before {
  content: ""; position: absolute; inset: 0 26% 0 27%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--deep), transparent 25%, transparent 70%, var(--deep)),
    linear-gradient(0deg, #302e2b75, #302e2b4d), url("assets/venue-hall.webp") center 38% / cover no-repeat;
}
.masthead-inner, .studio { margin-inline: auto; max-width: 2000px; padding-inline: clamp(16px, 2.2vw, 46px); }
.masthead-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.identity, .header-actions, .header-button, .layout-actions, .btn, .drawing-title, .panel-title, .drawing-tools, .button-group {
  display: flex; align-items: center;
}
.identity { gap: 17px; flex-shrink: 0; white-space: nowrap; }
.venue-wordmark { display: block; width: 124px; height: auto; }
.identity-rule { height: 34px; width: 1px; background: #9d8b69; }
.product-name { color: #fffaf1; font: 400 clamp(1.45rem, 2.05vw, 2.1rem)/1.12 var(--serif); letter-spacing: -.035em; }
.header-actions { gap: 5px; }
.header-button {
  gap: 8px; padding: 9px 12px; border: 1px solid transparent; border-radius: 5px;
  color: #faf6ed; font-size: .875rem; font-weight: 550; line-height: 1.25; white-space: nowrap;
}
.header-button:hover { background: #49443d; }
.header-button:focus-visible { outline-color: #ffe0a0; }
.header-button.primary { margin-left: 7px; padding-inline: 15px; background: #d8c79f; color: #332f26; border-color: #d8c79f; }
.header-button.primary:hover { background: #edddb6; }
.studio { padding-bottom: 28px; }
.layout-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding-block: 20px 18px; }
.name-field { min-width: 0; flex: 1; }
.eyebrow { display: block; font: 650 .73rem/1.5 var(--sans); color: #74684e; letter-spacing: .16em; text-transform: uppercase; }
.title-line { display: flex; align-items: center; gap: .36rem; min-width: 0; margin-top: 2px; }
#layoutName {
  width: min(100%, 19ch); max-width: calc(100% - 30px); padding: 0 1px 2px; border: 0;
  border-bottom: 1px solid transparent; border-radius: 0; background: transparent;
  font: 400 clamp(2.18rem, 3.05vw, 3.5rem)/1.12 var(--serif); letter-spacing: -.04em;
  text-overflow: ellipsis; color: #363636;
}
@supports (field-sizing: content) { #layoutName { field-sizing: content; width: auto; min-width: 4ch; } }
#layoutName:hover { border-bottom-color: #c3b594; }
#layoutName:focus { outline: 0; border-bottom-color: var(--accent-ink); }
.edit-affordance { cursor: text; width: 23px; height: 26px; display: grid; place-items: center; color: #89795b; }
.edit-affordance .ico { width: 15px; height: 15px; }
.layout-actions { gap: 8px; min-width: 0; }
.btn, .saved-picker select, .preset-field select, #inspector select, #inspector input:not([type=checkbox]) {
  min-height: 36px; border: 1px solid #c9bfa9; border-radius: 5px; background-color: var(--paper);
}
.btn { gap: 7px; justify-content: center; padding: 7px 12px; font-size: .875rem; font-weight: 550; white-space: nowrap; }
.btn:hover, select:hover { border-color: #a69269; }
.btn:hover { background: #f7f2e7; }
.icon-button { width: 36px; height: 36px; padding: 0; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m2.5 4.5 3.5 3.5 3.5-3.5' fill='none' stroke='%235f553f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 10px center; background-repeat: no-repeat; padding: 7px 31px 7px 10px;
}
.saved-picker { position: relative; min-width: 0; }
.saved-picker > .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #6f634b; }
.saved-picker select { padding-left: 36px; min-width: 148px; max-width: min(22vw, 260px); text-overflow: ellipsis; font-size: .875rem; font-weight: 550; }
.file-menu { position: relative; }
.file-menu summary { list-style: none; }
.file-menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; z-index: 5; top: calc(100% + 6px); right: 0; width: max-content; padding: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 7px 24px #44331426; }
.menu-pop button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 12px; font-size: .9rem; text-align: left; border-radius: 3px; }
.menu-pop button:hover { background: var(--wash); }
.mobile-nav { display: none; }
.workspace { display: grid; grid-template-columns: clamp(207px, 16.4vw, 288px) minmax(0, 1fr) clamp(208px, 16.2vw, 280px); align-items: start; gap: clamp(12px, 1vw, 20px); }
.panel { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 2px 3px #45311507; }
.panel-title, .drawing-toolbar { min-height: 54px; border-bottom: 1px solid var(--line-light); }
.panel-title, .drawing-title { gap: 9px; }
.panel-title { padding: 12px 16px; }
.panel-title .ico, .drawing-title .ico { color: #877344; }
.panel h2, .dialog-heading h2 { font: 400 1.28rem/1.2 var(--serif); letter-spacing: -.035em; }
.library-panel > .panel-title, .selection-panel > .panel-title, .counts-panel > .panel-title { background: #faf7ef; }
.library-intro { padding: 14px 16px 7px; font-size: .92rem; line-height: 1.45; color: var(--muted); }
#library { padding: 0 8px 12px; }
.library-group + .library-group { margin-top: 9px; }
.library-category, #library h3 { margin: 13px 7px 5px; color: #796b50; font: 650 .72rem/1.35 var(--sans); text-transform: uppercase; letter-spacing: .075em; }
#library button, .library-item {
  width: 100%; display: flex; align-items: center; gap: 9px; text-align: left; padding: 7px 6px;
  border: 1px solid transparent; border-radius: 5px; font-size: .88rem; line-height: 1.28;
}
#library button:hover { background: #f7f2e7; border-color: #e4d7bd; }
#library button:active { background: #ebe2d0; }
.item-icon {
  display: grid; flex: 0 0 34px; place-items: center; height: 34px; width: 34px;
  background: #f5efe3; color: #6c5938; border: 1px solid #ded4bd; border-radius: 3px;
}
.item-icon svg { display: block; width: 26px; height: 26px; }
.item-copy { min-width: 0; flex: 1; }
.item-copy strong, .item-copy small { display: block; }
.item-copy strong { font-size: .95rem; font-weight: 590; }
.item-copy small { margin-top: 3px; color: var(--muted); font-size: .76rem; line-height: 1.25; }
.item-add { margin-left: auto; color: #88744a; font-size: 1.13rem; line-height: 1; }
.preset-field { border-top: 1px solid var(--line-light); padding: 13px 15px 16px; }
.preset-field label, #inspector label { display: block; font-size: .82rem; font-weight: 560; color: #5d5547; }
.preset-field select { width: 100%; margin-top: 7px; font-size: .87rem; }
.drawing-toolbar { padding: 9px 12px 9px 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.drawing-title { flex-shrink: 0; }
.drawing-tools { gap: 5px; }
.tool { border: 1px solid #d5cbb8; background: #fff; border-radius: 4px; display: grid; place-items: center; width: 31px; height: 30px; padding: 0; color: #534b3f; }
.tool:hover:not(:disabled) { background: #f6f0e4; border-color: #b19a66; }
.tool[aria-pressed=true] { background: #f0e5cb; border-color: #c6af7c; color: #6c5426; }
.tool .ico { height: 15px; width: 15px; }
.button-group { height: 30px; border: 1px solid #d5cbb8; background: #fff; border-radius: 4px; }
.button-group .tool { border: 0; border-radius: 3px; width: 28px; height: 27px; }
.button-group .tool:focus-visible { position: relative; }
#zoomLabel { min-width: 38px; text-align: center; color: #575043; font: .75rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.paper { position: relative; isolation: isolate; background: #faf8f2; }
#floorCanvas { display: block; width: 100%; height: clamp(478px, 63vh, 790px); touch-action: none; user-select: none; -webkit-user-select: none; }
#floorCanvas:focus-visible { outline-offset: -4px; }
.drawing-footer { display: flex; align-items: flex-start; gap: 8px; min-height: 38px; padding: 10px 14px; background: #faf7f0; border-top: 1px solid var(--line-light); font-size: .8rem; line-height: 1.4; color: #6f634b; }
.drawing-footer { align-items: center; }
#status { flex: 1; min-width: 0; }
.scale-link { padding: 2px 0 2px 8px; margin-left: auto; flex-shrink: 0; color: #6a542d; font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }
.scale-link:hover { color: var(--ink); }
.footer-symbol { width: .95rem; height: .95rem; color: #8a7447; margin-top: .04rem; }
.context-panels { display: grid; gap: clamp(12px, 1vw, 20px); min-width: 0; align-content: start; }
.selection-body { padding: 15px; }
#selectionLabel { font-size: .94rem; font-weight: 620; overflow-wrap: anywhere; }
#inspector { font-size: .85rem; }
#inspector > :first-child { margin-top: 9px; }
#inspector p, .empty-state { color: var(--muted); font-size: .84rem; line-height: 1.5; }
#inspector input:not([type=checkbox]), #inspector select { width: 100%; margin: 4px 0 6px; font-size: .89rem; padding: 6px 8px; }
#inspector select { padding-right: 28px; }
#inspector button { padding: 6px 9px; background: #faf7f0; border: 1px solid #d6cbb5; border-radius: 4px; font-size: .82rem; font-weight: 540; }
#inspector button:hover:not(:disabled) { background: #f0e6d1; border-color: #b19b74; }
#inspector .danger, #inspector [data-action="delete"] { color: #884b3d; }
.field-row, .inspector-actions { display: flex; flex-wrap: wrap; gap: 6px; }
#inspector .field-row { display: grid; gap: 2px; margin-top: 8px; }
#inspector .field-row > span + span { color: var(--ink); font-weight: 450; }
#inspector [data-action=remove] { color: #8a4939; }
.inventory-row.over-stock strong { color: #925028; }
.inventory-row strong { white-space: nowrap; text-align: right; }
.inspector-actions { margin-top: 7px; }
#metrics { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 9px 16px; padding: 14px 15px; font-size: .86rem; font-weight: 560; color: var(--accent-ink); background: #f4ecdc; }
#metrics:empty { display: none; }
.metric { flex: 1 1 auto; }
.metric strong { display: block; font: 400 1.85rem/1.12 var(--serif); letter-spacing: -.035em; }
.metric span, .metric small { display: block; color: #705f41; font-size: .73rem; font-weight: 550; }
#inventorySummary { padding: 5px 15px 12px; color: #575043; font-size: .83rem; line-height: 1.4; }
#inventorySummary:empty { padding: 0; }
.inventory-row, #inventorySummary li { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; padding: 8px 0; border-top: 1px solid var(--line-light); }
.inventory-row:first-child, #inventorySummary li:first-child { border-top: 0; }
.inventory-row strong, .inventory-row b { font-size: .85rem; color: var(--ink); font-variant-numeric: tabular-nums; }
#inventorySummary ul { margin: 0; padding: 0; list-style: none; }
.print-footer { display: none; }
#notesDialog { width: min(520px, calc(100% - 30px)); max-height: 86vh; border: 1px solid #c1b295; border-radius: 10px; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 18px 85px #30271d52; }
#notesDialog::backdrop { background: #302a2385; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { font: 400 1.6rem/1.1 var(--serif); }
#notesBody { padding: 17px 20px 22px; font-size: .94rem; line-height: 1.55; }
#notesBody h3 { color: var(--accent-ink); font-size: .96rem; margin: 1rem 0 .3rem; }
#notesBody p + p { margin-top: .7rem; }
#notesBody ul { padding-left: 1.25rem; margin: .4rem 0 .85rem; }
#notesBody li + li { margin-top: .35rem; }
#notesBody > :first-child { margin-top: 0; }
#notesBody > :last-child { margin-bottom: 0; }
#floorCanvas text { font-family: var(--sans); }
#floorCanvas text[font-style=italic] { font-family: var(--serif); }
#floorCanvas [stroke="#4d554b"] { stroke: #504c46; }
#floorCanvas [fill="#eeeee6"] { fill: #f0eadf; }
#floorCanvas .oz-item [fill="#b6cec2"] { fill: #c5bcaa; }
#floorCanvas .oz-item [stroke="#354a44"] { stroke: #514a41; }
#floorCanvas .oz-item [fill="#354a44"] { fill: #36332e; }
#floorCanvas .canvas-selection { stroke: #996e23; }
@media (max-width: 1180px) {
  .workspace { grid-template-columns: clamp(196px, 23%, 245px) minmax(0, 1fr); }
  .library-panel { grid-column: 1; grid-row: 1 / 3; }
  .drawing-panel { grid-column: 2; }
  .context-panels { grid-column: 2; grid-template-columns: 1fr 1fr; align-items: start; }
  #floorCanvas { height: clamp(420px, 56vh, 630px); }
}
@media (max-width: 850px) {
  .studio, .masthead-inner { padding-inline: 15px; }
  .workspace { gap: 10px; }
  .drawing-toolbar { gap: 6px; padding-inline: 10px; }
  .drawing-title { gap: 6px; }
  .drawing-tools { gap: 4px; }
  .panel-title { padding-inline: 13px; }
  .header-button { padding-inline: 8px; }
}
@media (max-width: 740px) {
  .workspace { display: flex; flex-direction: column; align-items: stretch; gap: 13px; }
  .drawing-panel { order: 1; }
  .context-panels { order: 2; gap: 11px; }
  .library-panel { order: 3; }
  .mobile-nav { display: flex; gap: 5px; margin: 0 0 10px; }
  .mobile-nav a { padding: 4px 10px; color: #675632; font-size: .82rem; font-weight: 550; text-underline-offset: 3px; }
  .mobile-nav a:first-child { padding-left: 0; }
  .layout-heading { padding-block: 18px 9px; gap: 12px; }
  .layout-actions { gap: 5px; }
  .saved-picker select { min-width: 0; max-width: 165px; }
  .library-intro { margin-bottom: 3px; }
  #library { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: start; }
  #library h3, #library .library-category { grid-column: 1/-1; }
  #library .library-group + .library-group { margin-top: 0; }
  #floorCanvas { height: clamp(360px, 60vw, 470px); }
  .header-actions { gap: 0; }
  .header-button { min-width: 38px; min-height: 38px; justify-content: center; }
  .command-label { display: none; }
  .identity { gap: 12px; }
  .masthead::before { inset-inline: 36% 13%; opacity: .45; }
}
@media (max-width: 560px) {
  .studio, .masthead-inner { padding-inline: 12px; }
  .masthead::before { display: none; }
  .masthead-inner { min-height: 56px; gap: 6px; }
  .venue-wordmark { width: 73px; }
  .identity { gap: 7px; }
  .identity-rule { height: 19px; }
  .product-name { font-size: 1.07rem; }
  .header-button { min-width: 30px; padding-inline: 5px; }
  .header-button.primary { min-height: 33px; padding-inline: 8px; margin-left: 4px; gap: 5px; }
  .wide-label { display: none; }
  .layout-heading { display: grid; gap: 11px; padding-block: 15px 9px; }
  #layoutName { max-width: calc(100% - 28px); }
  .layout-actions .btn { min-height: 34px; }
  .saved-picker select { max-width: 48vw; min-height: 34px; }
  .layout-actions .icon-button { height: 34px; }
  .panel-title { min-height: 45px; }
  .drawing-toolbar { padding: 8px 9px; min-height: 45px; }
  .drawing-title .ico { display: none; }
  .drawing-title h2 { font-size: 1.08rem; }
  .drawing-tools { gap: 3px; }
  .tool { width: 29px; }
  .button-group .tool { width: 24px; }
  #zoomLabel { min-width: 32px; }
  #floorCanvas { height: clamp(330px, 88vw, 420px); }
  .selection-body, #metrics { padding: 12px; }
  #inventorySummary { padding-inline: 12px; }
}
@media (max-width: 420px) {
  .context-panels { grid-template-columns: 1fr; }
  .counts-panel #inventorySummary:has(.inventory-row) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
}
@media (max-width: 380px) {
  .product-name { max-width: 80px; line-height: 1.02; white-space: normal; }
}
@media (max-width: 345px) {
  .product-name { max-width: 64px; }
  .drawing-toolbar { justify-content: flex-start; }
  .drawing-title { width: 100%; }
}
.fullscreen-caption { display: none; }
.add-object-button, .object-picker { display: none; }
@media screen {
  body.drawing-expanded { overflow: hidden; }
  .drawing-expanded .add-object-button {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-left: 5px;
    color: #372f21; background: #e8d9b8; border-color: #c3ab7c;
  }
  .drawing-expanded .add-object-button:hover, .drawing-expanded .add-object-button[aria-expanded=true] { background: #decca5; }
  .drawing-expanded .add-object-button .ico { display: block; width: 15px; height: 15px; color: inherit; }
  .drawing-expanded .object-picker:not([hidden]) {
    display: block; position: absolute; z-index: 4; inset: 8px auto auto 8px;
    width: min(282px, calc(100% - 16px)); max-height: calc(100% - 16px);
    overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 7px;
    background: var(--paper); box-shadow: 0 8px 25px #30271d28;
  }
  .picker-heading { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line-light); }
  .object-picker #library { display: grid; grid-template-columns: 1fr; padding: 5px; }
  body.drawing-expanded #drawing {
    position: fixed; inset: 0; z-index: 100; margin: 0;
    width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none;
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
    border: 0; border-radius: 0; box-shadow: none;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  body.drawing-expanded #floorCanvas { height: 100%; }
  body.drawing-expanded .paper { min-height: 0; }
}
@media screen and (max-width: 560px) {
  .drawing-expanded .drawing-title { width: 100%; justify-content: space-between; }
  .drawing-expanded .drawing-tools { width: 100%; justify-content: space-between; }
  .drawing-expanded .object-picker:not([hidden]) { inset-inline: 8px; width: auto; }
}
@media screen and (min-width: 560px) {
  body.drawing-expanded #fullscreenButton { display: flex; gap: 6px; align-items: center; width: auto; padding: 0 9px; }
  body.drawing-expanded .fullscreen-caption { display: inline; font-size: .8rem; }
}
@page { size: landscape; margin: .38in; }
@media print {
  :root, body { background: white !important; color: #363636; }
  *, *::before, *::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none !important; }
  .masthead, .skip-link, .mobile-nav, .layout-actions, .edit-affordance, .library-panel, .context-panels, .drawing-toolbar, .drawing-footer, #notesDialog { display: none !important; }
  .studio, .workspace, .layout-heading, .drawing-panel { display: block; margin: 0; padding: 0; max-width: none; }
  .layout-heading { padding-bottom: .08in; border-bottom: 1px solid #a6946e; }
  .eyebrow { font-size: 8pt; }
  .title-line { margin: 0; }
  #layoutName { width: 100%; max-width: none; padding: 0; border: 0; font-size: 22pt; color: #363636; }
  .drawing-panel { border: 0; border-radius: 0; }
  .paper { background: white; }
  #floorCanvas { width: 100%; height: 6.15in; outline: none; }
  .print-footer { display: flex; gap: 10pt; align-items: baseline; justify-content: space-between; border-top: 1px solid #a6946e; padding-top: .075in; color: #4b4232; font: 8pt/1.3 var(--sans); }
  .print-footer > :first-child { font-weight: 700; letter-spacing: .06em; }
  .print-footer > :last-child { text-align: right; }
}
