/* KEB STAGE workspace: shared visual rules for editing and viewing. */
#app.workspace-editor,
#app.workspace-viewer {
  --ink: #243b58;
  --muted: #52647a;
  --teal: #243b58;
  --line: #dce5f0;
  --paper: #fffefb;
  --focus: #155fcc;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 400px;
  overflow: hidden;
  color: var(--ink);
  line-height: 1.5;
}

:is(.workspace-editor, .workspace-viewer) :is(button, input, select, textarea) {
  font-size: 14px;
}
:is(.workspace-editor, .workspace-viewer) button {
  min-height: 40px;
  border-radius: 8px;
  font-weight: 550;
}
:is(.workspace-editor, .workspace-viewer) button:disabled {
  opacity: .48;
}
:is(.workspace-editor, .workspace-viewer) :is(button, input, select, textarea, a, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--paper);
}
:is(.workspace-editor, .workspace-viewer) button.active,
:is(.workspace-editor, .workspace-viewer) button[aria-pressed="true"] {
  color: #243b58;
  background: #f0f5fc;
  border-color: #52647a;
}
:is(.workspace-editor, .workspace-viewer) button.danger {
  color: #a53829;
  border-color: #e7c8bf;
}
:is(.workspace-editor, .workspace-viewer) :is(.help, .help-text, .warning) {
  font-size: 12px;
  line-height: 1.75;
}
:is(.workspace-editor, .workspace-viewer) :is(.help, .help-text, small, .muted) {
  color: var(--muted);
}
:is(.workspace-editor, .workspace-viewer) label {
  color: #243b58;
  font-size: 13px;
  line-height: 1.7;
}
:is(.workspace-editor, .workspace-viewer) :is(input, select, textarea) {
  border-color: #8193aa;
  line-height: 1.5;
}
:is(.workspace-editor, .workspace-viewer) :is(input, textarea)::placeholder {
  color: #52647a;
  opacity: 1;
}
:is(.workspace-editor, .workspace-viewer) .topbar {
  flex: 0 0 auto;
  min-height: 68px;
  height: auto;
  gap: 20px;
  padding: 12px 24px;
  z-index: 10;
}
:is(.workspace-editor, .workspace-viewer) .topbar .top-title {
  max-width: 420px;
  font-size: 14px;
  line-height: 1.5;
}
:is(.workspace-editor, .workspace-viewer) .topbar .brand small {
  color: #52647a;
}
:is(.workspace-editor, .workspace-viewer) .topbar .actions {
  flex-shrink: 0;
}
.workspace-editor .topbar .tag {
  color: #52647a;
  background: #f0f5fc;
  border-color: #dce5f0;
}
.workspace-editor .save-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #243b58;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.workspace-editor .save-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: currentColor;
}
.workspace-editor .save-state[data-state="saving"],
.workspace-editor .save-state[data-state="pending"] {
  color: #815c20;
}
.workspace-editor .save-state[data-state="error"] {
  color: #a33228;
  font-weight: 650;
}
.workspace-editor .workspace-progress {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 6px 24px;
  background: #f0f5fc;
  border-bottom: 1px solid var(--line);
  color: #243b58;
  letter-spacing: 0;
}
.workspace-editor .workflow-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.workspace-editor .workflow-steps .step-label-short {
  display: none;
}
.workspace-editor .workflow-steps button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 12px;
  background: transparent;
  border-color: transparent;
  color: #52647a;
  font-size: 13px;
  white-space: nowrap;
}
.workspace-editor .workflow-steps button:hover {
  background: #dce5f0;
}
.workspace-editor .workflow-steps .step-number {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid #8193aa;
  border-radius: 50%;
  background: #fffefb;
  color: #243b58;
  font-size: 12px;
  line-height: 1;
}
.workspace-editor .workflow-steps button.complete .step-number {
  background: #dce5f0;
  border-color: #52647a;
  color: #243b58;
}
.workspace-editor .workflow-steps button.current,
.workspace-editor .workflow-steps button[aria-current="step"] {
  color: #243b58;
  background: var(--paper);
  border-color: #8193aa;
  box-shadow: 0 1px 2px #243b5810;
}
.workspace-editor .workflow-steps button.current .step-number {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.workspace-editor .workspace-progress .mobile-save {
  display: none;
  margin-left: auto;
}
.workspace-editor .save-alert {
  flex: 0 0 auto;
  padding: 10px 20px;
  border-bottom: 1px solid #dbc292;
  font-size: 13px;
}
#app.workspace-editor .editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  grid-template-rows: minmax(0, 1fr);
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
}
.workspace-editor .side {
  min-width: 0;
  min-height: 0;
  padding: 18px 16px;
  scrollbar-width: thin;
  scrollbar-color: #8193aa transparent;
}
.workspace-editor .side .section {
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.workspace-editor .side .section-head {
  margin-bottom: 12px;
}
.workspace-editor .side h3 {
  font-size: 14px;
  font-weight: 650;
}
.workspace-editor .eyebrow {
  color: #52647a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
}
.workspace-editor .toolbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.workspace-editor .toolbox-head :is(h2, h3) {
  font-size: 15px;
}
.workspace-editor .toolbox-head button {
  min-width: 40px;
  padding: 5px 8px;
  color: #52647a;
}
.workspace-editor .quick-start {
  gap: 8px;
}
.workspace-editor .quick-start .mt {
  margin-top: 0;
}
.workspace-editor .toolgrid {
  gap: 8px;
}
.workspace-editor .toolgrid button {
  min-height: 52px;
  padding: 10px 8px;
  gap: 7px;
  font-size: 13px;
  text-align: left;
  line-height: 1.45;
}
.workspace-editor .toolgrid button[data-place="chair-set"] {
  min-height: 56px;
  background: #f0f5fc;
  border-color: #8193aa;
}
.workspace-editor .toolgrid button[data-place="chair-set"].active {
  background: #dce5f0;
  border-color: #52647a;
}
.workspace-editor .toolgrid .symbol {
  color: #243b58;
}
.workspace-editor .toolbox-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.workspace-editor .toolbox-section summary,
.workspace-editor .field-advanced summary {
  cursor: pointer;
  padding: 7px 2px;
  font-size: 13px;
  font-weight: 600;
  color: #243b58;
  line-height: 1.7;
}
.workspace-editor .toolbox-section summary::marker,
.workspace-editor .field-advanced summary::marker {
  color: #52647a;
}
.workspace-editor .toolbox-section[open] > summary {
  margin-bottom: 12px;
}
.workspace-editor .toolbox-section .section {
  margin: 0;
  padding: 0;
  border: 0;
}
.workspace-editor .toolbox-section .stack {
  gap: 8px;
}
.workspace-editor .side.left > #help {
  margin-top: 12px;
}
.workspace-editor .stage-area {
  min-height: 0;
  overflow: hidden;
  background: #dce5f0;
}
.workspace-editor .toolbar {
  flex: 0 0 auto;
  min-height: 62px;
  gap: 6px;
  padding: 10px 14px;
  background: #fffefb;
  flex-wrap: wrap;
}
.workspace-editor .toolbar button {
  font-size: 13px;
  padding: 8px 10px;
  white-space: nowrap;
}
.workspace-editor .toolbar #undo,
.workspace-editor .toolbar #redo {
  min-width: 40px;
  font-size: 20px;
  padding: 4px 9px;
}
.workspace-editor .toolbar .right-tools {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.workspace-editor .context-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 66px;
  padding: 10px 16px;
  border-bottom: 1px solid #dce5f0;
  background: #f0f5fc;
  flex-wrap: wrap;
}
.workspace-editor #mode-indicator {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 160px;
}
.workspace-editor #mode-indicator strong {
  font-size: 13px;
  font-weight: 650;
  color: #243b58;
}
.workspace-editor #mode-indicator small {
  font-size: 12px;
  color: #243b58;
  line-height: 1.5;
}
.workspace-editor #selection-summary {
  font-size: 12px;
  font-weight: 600;
  color: #243b58;
}
.workspace-editor .context-actions,
.workspace-editor .context-details {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.workspace-editor .context-actions button,
.workspace-editor .context-details button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 12px;
}
.workspace-editor .context-actions #delete {
  color: #a23327;
}
.workspace-editor .context-actions #selection-clear {
  color: #243b58;
}
.workspace-editor .setup-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 12px 20px;
  min-width: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #8193aa;
  border-left: 4px solid #52647a;
  background: #f0f5fc;
}
.workspace-editor .setup-copy {
  flex: 1 1 240px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.workspace-editor .setup-kicker {
  margin-bottom: 4px;
  color: #52647a;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .05em;
}
.workspace-editor .setup-copy h2 {
  color: #243b58;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 650;
}
.workspace-editor .setup-copy p {
  max-width: 64ch;
  margin-top: 5px;
  color: #243b58;
  font-size: 13px;
  line-height: 1.7;
}
.workspace-editor .setup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.workspace-editor .setup-actions button {
  min-height: 44px;
  max-width: 100%;
  padding: 9px 13px;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.workspace-editor .setup-actions button.flat {
  color: #243b58;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.workspace-editor .setup-panel.is-calibrating {
  padding-top: 10px;
  padding-bottom: 10px;
  background: #f0f5fc;
}
.workspace-editor .setup-panel.is-calibrating h2 {
  font-size: 14px;
}
.workspace-editor .setup-panel.is-calibrating p {
  margin-top: 2px;
  font-size: 12px;
}
.workspace-editor .setup-help {
  padding: 12px;
  border: 1px solid #dce5f0;
  border-radius: 9px;
  background: #f0f5fc;
  color: #243b58;
  font-size: 12px;
  line-height: 1.8;
}
.workspace-editor .canvas-wrap {
  flex: 1 1 auto;
  min-height: 150px;
  background-color: #f0f5fc;
  background-image: radial-gradient(#8193aa .8px, transparent .8px);
  background-size: 20px 20px;
}
.workspace-editor .canvas-label,
.workspace-viewer .canvas-label {
  color: #243b58;
  background: #fffefbeb;
  border-color: #dce5f0;
  font-size: 11px;
}
.workspace-editor .stage-footer {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 14px;
  gap: 8px 18px;
  color: #52647a;
  font-size: 11px;
  background: #f0f5fc;
}
.workspace-editor .stage-footer #selection-status {
  font-weight: 600;
}
.workspace-editor .stage-footer #scale-status {
  margin-left: auto;
}
.workspace-editor .zoom-controls,
.workspace-viewer .zoom-controls {
  right: 16px;
  bottom: 16px;
  gap: 2px;
  box-shadow: 0 4px 18px #243b5812;
}
.workspace-editor .zoom-controls button,
.workspace-viewer .zoom-controls button {
  min-width: 40px;
  font-size: 16px;
}
.workspace-editor .zoom-value,
.workspace-viewer .zoom-value {
  color: #243b58;
  font-size: 12px;
}
.workspace-editor .scale-ruler,
.workspace-viewer .scale-ruler {
  color: #243b58;
  background: #fffefbea;
}
.workspace-editor .scale-ruler small,
.workspace-viewer .scale-ruler small {
  color: #52647a;
  font-size: 10px;
}
.workspace-editor .side.right {
  padding: 0;
}
.workspace-editor .inspector-head {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.workspace-editor .inspector-tabs {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 4px;
  padding: 3px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #f0f5fc;
}
.workspace-editor .inspector-tabs button {
  min-width: 0;
  flex: 1;
  min-height: 36px;
  padding: 7px 8px;
  border-color: transparent;
  background: transparent;
  color: #243b58;
  font-size: 13px;
  white-space: nowrap;
}
.workspace-editor .inspector-tabs button.active,
.workspace-editor .inspector-tabs button[aria-selected="true"] {
  background: var(--paper);
  color: #243b58;
  border-color: #8193aa;
  box-shadow: 0 1px 3px #243b5810;
}
.workspace-editor #close-props {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 7px;
  flex-shrink: 0;
  font-size: 12px;
}
.workspace-editor .inspector-page {
  padding: 20px 16px;
}
.workspace-editor .inspector-page > .section:last-child,
.workspace-editor #inventory-panel > .section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.workspace-editor .setup-card {
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #f0f5fc;
  padding: 16px 14px;
  margin-bottom: 18px;
}
.workspace-editor .setup-card :is(h3, strong) {
  font-size: 14px;
  color: #243b58;
}
.workspace-editor .setup-card :is(p, small) {
  font-size: 12px;
  line-height: 1.8;
  color: #243b58;
}
.workspace-editor .setup-card p {
  margin: 8px 0 12px;
}
.workspace-editor .setup-card button {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  text-align: left;
  font-size: 13px;
}
.workspace-editor .selected-title {
  margin-bottom: 10px;
}
.workspace-editor .selected-title strong {
  font-size: 16px;
  line-height: 1.5;
}
.workspace-editor .selection-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.workspace-editor .selection-meta .tag,
.workspace-editor .selection-meta > span {
  font-size: 11px;
  color: #243b58;
  background: #f0f5fc;
  border: 1px solid #dce5f0;
  border-radius: 20px;
  padding: 4px 8px;
  white-space: normal;
}
.workspace-editor .mixed-help {
  padding: 10px 12px;
  margin: 10px 0 16px;
  border-left: 3px solid #52647a;
  border-radius: 0 7px 7px 0;
  background: #f0f5fc;
  color: #243b58;
  font-size: 12px;
  line-height: 1.75;
}
.workspace-editor .fields {
  gap: 12px 10px;
}
.workspace-editor .fields input,
.workspace-editor .fields textarea {
  margin-top: 3px;
}
.workspace-editor .field-advanced {
  grid-column: 1 / -1;
  padding: 8px 0;
  margin-top: 3px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.workspace-editor .field-advanced[open] summary {
  margin-bottom: 12px;
}
.workspace-editor .selection-actions {
  margin: 16px 0;
  padding: 12px;
  gap: 8px;
  background: #f0f5fc;
  border: 1px solid #dce5f0;
}
.workspace-editor .selection-actions strong {
  font-size: 13px;
  margin-bottom: 2px;
}
.workspace-editor .selection-actions button {
  min-height: 40px;
  font-size: 12px;
}
.workspace-editor .countcard {
  background: #f0f5fc;
  padding: 14px;
  border: 1px solid #dce5f0;
}
.workspace-editor .countcard small {
  font-size: 12px;
  color: #243b58;
}
.workspace-editor .countcard b {
  color: #243b58;
  font-variant-numeric: tabular-nums;
}
.workspace-editor .inventory-row {
  padding: 11px 0;
  font-size: 13px;
  line-height: 1.65;
}
.workspace-editor .inventory-row b {
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.workspace-editor .empty-select {
  padding: 16px 8px;
  color: #52647a;
}
.workspace-editor .warning {
  color: #715b2e;
  background: #f8f3e3;
  border-color: #e0d6b9;
}
.workspace-editor .guide-gap-control small {
  color: #52647a;
  font-size: 11px;
}
.workspace-editor .touch-dock {
  flex: 0 0 auto;
}

#app.workspace-viewer .viewer {
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.workspace-viewer .viewer-tools {
  padding: 14px 24px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}
.workspace-viewer .searchbox {
  max-width: 440px;
}
.workspace-viewer .searchbox input {
  min-height: 44px;
  padding-left: 38px;
}
.workspace-viewer .searchbox::before {
  top: 6px;
  color: #52647a;
}
.workspace-viewer .viewer-stats {
  color: #243b58;
  font-size: 13px;
}
.workspace-viewer .viewer-filter-strip {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 10px 24px 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.workspace-viewer .instrument-filter {
  min-height: 40px;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 20px;
  background: #f0f5fc;
  border-color: #dce5f0;
  color: #243b58;
}
.workspace-viewer .instrument-filter[aria-pressed="true"] {
  color: #243b58;
  background: #dce5f0;
  border-color: #52647a;
}
.workspace-viewer .viewer-search-clear,
.workspace-viewer #viewer-search-clear {
  font-size: 13px;
  color: #243b58;
}
.workspace-viewer .viewer-main {
  min-height: 0;
}
.workspace-viewer .viewer-main .stage-area {
  min-height: 0;
}
.workspace-viewer .viewer-bottom {
  flex: 0 0 auto;
  font-size: 12px;
  color: #52647a;
}
.workspace-viewer .seat-detail {
  width: 300px;
}
.workspace-viewer .seat-detail :is(dt, .seat-badge) {
  color: #52647a;
}
.workspace-viewer .seat-detail dl {
  font-size: 13px;
}

/* Dialogs live beside #app, so their reading and focus rules are explicit. */
dialog .modal-body {
  font-size: 14px;
  line-height: 1.8;
}
dialog label {
  font-size: 13px;
  color: #243b58;
}
dialog :is(button, input, select, textarea, a, summary):focus-visible {
  outline: 3px solid #155fcc;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fffefb;
}

@media (min-width: 851px) {
  #app.workspace-editor.tools-collapsed .editor,
  #app.workspace-editor .editor.tools-collapsed {
    grid-template-columns: minmax(0, 1fr) 304px;
  }
  #app.workspace-editor.inspector-collapsed .editor,
  #app.workspace-editor .editor.inspector-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }
  #app.workspace-editor.tools-collapsed.inspector-collapsed .editor,
  #app.workspace-editor .editor.tools-collapsed.inspector-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }
  .workspace-editor.tools-collapsed .side.left,
  .workspace-editor .editor.tools-collapsed .side.left,
  .workspace-editor.inspector-collapsed .side.right,
  .workspace-editor .editor.inspector-collapsed .side.right {
    display: none;
  }
}

@media (min-width: 851px) and (max-width: 1150px) {
  #app.workspace-editor .editor {
    grid-template-columns: minmax(0, 1fr) 284px;
  }
  #app.workspace-editor.tools-collapsed .editor,
  #app.workspace-editor .editor.tools-collapsed {
    grid-template-columns: minmax(0, 1fr) 284px;
  }
  #app.workspace-editor.inspector-collapsed .editor,
  #app.workspace-editor .editor.inspector-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }
  #app.workspace-editor.tools-collapsed.inspector-collapsed .editor,
  #app.workspace-editor .editor.tools-collapsed.inspector-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }
  .workspace-editor .side.left,
  .workspace-editor .inspector-page {
    padding: 16px 12px;
  }
  .workspace-editor .toolbar {
    padding: 8px;
    gap: 5px;
  }
  .workspace-editor .toolbar button {
    padding: 7px 8px;
    font-size: 12px;
  }
  .workspace-editor .context-strip {
    padding: 10px 12px;
    gap: 8px;
  }
}

@media (max-width: 1100px) {
  :is(.workspace-editor, .workspace-viewer) .topbar {
    padding: 12px 16px;
    gap: 12px;
  }
  .workspace-editor .topbar .save-state {
    display: none;
  }
  .workspace-editor .workspace-progress .mobile-save {
    display: inline-flex;
  }
  .workspace-editor .workspace-progress {
    padding-right: 16px;
    padding-left: 16px;
  }
  .workspace-editor .workflow-steps {
    gap: 4px;
  }
}

@media (max-width: 850px) {
  #app.workspace-editor,
  #app.workspace-viewer {
    min-height: 360px;
  }
  :is(.workspace-editor, .workspace-viewer) :is(button, input, select, textarea) {
    min-height: 44px;
  }
  :is(.workspace-editor, .workspace-viewer) :is(input, select, textarea) {
    font-size: 16px;
  }
  dialog :is(input, select, textarea) {
    min-height: 44px;
    font-size: 16px;
  }
  :is(.workspace-editor, .workspace-viewer) .topbar {
    min-height: 64px;
    padding: 10px 14px;
    gap: 10px;
  }
  :is(.workspace-editor, .workspace-viewer) .topbar .top-title {
    flex: 1;
    font-size: 13px;
  }
  .workspace-editor .topbar .tag {
    display: none;
  }
  .workspace-editor .workspace-progress {
    gap: 8px;
    padding: 6px 12px;
  }
  .workspace-editor .workflow-steps button {
    min-height: 44px;
    gap: 6px;
    padding: 6px 10px;
    font-size: 12px;
  }
  #app.workspace-editor .editor {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
  }
  .workspace-editor .editor > .side.left {
    display: none;
  }
  .workspace-editor .editor > .stage-area {
    flex: 1 1 auto;
    min-height: 0;
  }
  .workspace-editor .editor.setup-active > .stage-area {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .workspace-editor .editor.setup-active .canvas-wrap {
    flex: 1 0 250px;
    min-height: 250px;
  }
  .workspace-editor .setup-panel {
    gap: 10px;
    padding: 12px 14px;
  }
  .workspace-editor .setup-copy {
    flex-basis: 230px;
  }
  .workspace-editor .setup-copy h2 {
    font-size: 16px;
  }
  .workspace-editor .setup-copy p {
    font-size: 12px;
    line-height: 1.65;
  }
  .workspace-editor .setup-panel.is-calibrating {
    padding: 9px 14px;
  }
  .workspace-editor .toolbar {
    min-height: 60px;
    padding: 8px 10px;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #52647a transparent;
  }
  .workspace-editor .toolbar button {
    flex-shrink: 0;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 13px;
  }
  .workspace-editor .toolbar #select-mode,
  .workspace-editor .toolbar #pan-mode,
  .workspace-editor .toolbar #multi-mode,
  .workspace-editor .toolbar #inspector-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .workspace-editor .toolbar #tools-toggle {
    display: none;
  }
  .workspace-editor .toolbar :is(#undo, #redo) {
    min-width: 44px;
    min-height: 44px;
  }
  .workspace-editor .toolbar .right-tools {
    flex-shrink: 0;
    margin-left: 0;
  }
  .workspace-editor .toolbar .divider {
    display: block;
    flex: 0 0 1px;
    margin: 0 2px;
  }
  .workspace-editor .context-strip {
    min-height: 60px;
    gap: 6px 10px;
    padding: 8px 12px;
  }
  .workspace-editor #mode-indicator {
    flex-basis: 160px;
  }
  .workspace-editor #mode-indicator strong {
    font-size: 13px;
  }
  .workspace-editor #mode-indicator small {
    font-size: 12px;
  }
  .workspace-editor #selection-summary {
    font-size: 12px;
  }
  .workspace-editor .context-actions {
    flex-wrap: wrap;
  }
  .workspace-editor .context-actions button,
  .workspace-editor .context-details button {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12px;
  }
  .workspace-editor .canvas-wrap {
    min-height: 110px;
  }
  .workspace-editor .touch-dock {
    display: flex;
    gap: 6px;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  .workspace-editor .touch-dock button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 46px;
    padding: 8px 4px;
    font-size: 12px;
    line-height: 1.4;
  }
  .workspace-editor .touch-dock #touch-add {
    background: var(--teal);
    border-color: var(--teal);
    color: white;
  }
  .workspace-editor .stage-footer {
    min-height: 30px;
    gap: 5px 10px;
    padding: 5px 12px;
    font-size: 10px;
  }
  .workspace-editor .stage-footer #scale-status {
    max-width: none;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
  }
  .workspace-editor .side.right {
    display: none;
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-height: 52dvh;
    padding: 0 0 env(safe-area-inset-bottom);
    z-index: 30;
    border: 1px solid #8193aa;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 50px #243b5826;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  .workspace-editor .side.right.open {
    display: block;
  }
  .workspace-editor .side.right .section-head {
    position: static;
    padding: 0;
    background: transparent;
  }
  .workspace-editor .inspector-head {
    padding: 10px 14px;
    gap: 12px;
    top: 0;
    border-radius: 17px 17px 0 0;
  }
  .workspace-editor .inspector-tabs {
    max-width: 360px;
    margin-right: auto;
  }
  .workspace-editor .inspector-tabs button {
    min-height: 44px;
    font-size: 14px;
  }
  .workspace-editor #close-props {
    min-width: 54px;
    min-height: 44px;
    font-size: 13px;
  }
  .workspace-editor .inspector-page {
    padding: 18px 20px 24px;
    max-width: 680px;
    margin: 0 auto;
  }
  .workspace-editor .selection-actions button,
  .workspace-editor .setup-card button,
  .workspace-editor .row-btns button {
    min-height: 44px;
    font-size: 13px;
  }
  .workspace-editor .field-advanced summary {
    min-height: 44px;
    display: list-item;
    padding-top: 10px;
  }
  .workspace-editor .zoom-controls,
  .workspace-viewer .zoom-controls {
    right: 12px;
    bottom: 12px;
    padding: 3px;
  }
  .workspace-editor .zoom-controls button,
  .workspace-viewer .zoom-controls button {
    min-width: 44px;
    min-height: 44px;
  }
  .workspace-editor .canvas-label {
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 10px;
  }
  .workspace-editor .area-toolbar {
    top: 46px;
    left: 10px;
    right: 10px;
    padding: 8px 10px;
  }
  .workspace-editor .area-toolbar button,
  .workspace-editor .area-toolbar select {
    min-height: 44px;
  }
  .workspace-editor .placement-banner,
  .workspace-editor .calibration-banner {
    top: 42px;
    left: 10px;
    right: 10px;
  }
  .workspace-editor .placement-banner {
    font-size: 12px;
    padding: 8px 10px;
  }
  .workspace-editor .placement-banner button {
    min-height: 44px;
    font-size: 12px;
  }
  .workspace-viewer .viewer-tools {
    padding: 12px 16px;
    gap: 10px;
  }
  .workspace-viewer .viewer-filter-strip {
    gap: 6px;
    padding: 8px 16px 12px;
    max-height: 130px;
    overflow-y: auto;
  }
  .workspace-viewer .instrument-filter {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .workspace-viewer .viewer-bottom {
    padding: 8px 14px max(8px, env(safe-area-inset-bottom));
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  .workspace-editor .setup-panel {
    padding: 10px 12px;
    gap: 8px;
    border-left-width: 3px;
  }
  .workspace-editor .setup-copy {
    flex-basis: 100%;
  }
  .workspace-editor .setup-kicker {
    margin-bottom: 2px;
    font-size: 10px;
  }
  .workspace-editor .setup-copy h2 {
    font-size: 15px;
  }
  .workspace-editor .setup-copy p {
    margin-top: 3px;
    line-height: 1.6;
  }
  .workspace-editor .setup-actions {
    width: 100%;
    gap: 5px 8px;
  }
  .workspace-editor .setup-actions button {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12px;
  }
  .workspace-editor .setup-panel.is-calibrating {
    padding: 8px 12px;
  }
  .workspace-editor .workflow-steps .step-label-long {
    display: none;
  }
  .workspace-editor .workflow-steps .step-label-short {
    display: inline;
  }
  .workspace-editor .context-strip:has(.context-actions:not(.hidden)) #mode-indicator small {
    display: none;
  }
  :is(.workspace-editor, .workspace-viewer) .topbar {
    padding: 8px 12px;
    gap: 8px;
  }
  :is(.workspace-editor, .workspace-viewer) .topbar .brand {
    gap: 0;
  }
  :is(.workspace-editor, .workspace-viewer) .topbar .brand-mark {
    width: 32px;
    height: 32px;
  }
  :is(.workspace-editor, .workspace-viewer) .topbar .spacer {
    display: none;
  }
  :is(.workspace-editor, .workspace-viewer) .topbar .top-title {
    font-size: 13px;
  }
  :is(.workspace-editor, .workspace-viewer) .topbar .actions {
    gap: 5px;
  }
  :is(.workspace-editor, .workspace-viewer) .topbar .actions button {
    min-height: 44px;
    padding: 8px;
    font-size: 12px;
  }
  .workspace-editor .workspace-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 5px 10px 7px;
  }
  .workspace-editor .workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 3px;
  }
  .workspace-editor .workflow-steps button {
    gap: 5px;
    justify-content: center;
    min-width: 0;
    padding: 5px 3px;
    font-size: 12px;
  }
  .workspace-editor .workflow-steps .step-number {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
    font-size: 11px;
  }
  .workspace-editor .workspace-progress .mobile-save {
    display: inline-flex !important;
    margin: 1px 4px 0 auto;
    min-height: 18px;
    font-size: 11px;
  }
  .workspace-editor .workspace-progress > small,
  .workspace-editor .workspace-progress > .help {
    margin-top: 0;
    font-size: 11px;
  }
  .workspace-editor .context-strip {
    gap: 6px 8px;
    padding: 8px 10px;
  }
  .workspace-editor #mode-indicator {
    flex-basis: 175px;
  }
  .workspace-editor .context-actions {
    gap: 5px;
  }
  .workspace-editor .context-actions button {
    padding: 8px;
  }
  .workspace-editor .context-details {
    margin-left: auto;
  }
  .workspace-editor .stage-footer {
    align-items: start;
    font-size: 10px;
    gap: 5px;
    padding: 5px 10px;
  }
  .workspace-editor .stage-footer #scale-status {
    flex: 1;
    text-align: right;
    line-height: 1.5;
  }
  .workspace-editor .scale-ruler {
    bottom: 70px;
    left: 10px;
    font-size: 10px;
  }
  .workspace-editor .touch-dock {
    gap: 5px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .workspace-editor .touch-dock button {
    font-size: 11px;
    min-height: 46px;
  }
  .workspace-editor .inspector-page {
    padding: 16px 16px 22px;
  }
  .workspace-editor .inspector-head {
    padding: 10px 12px;
    gap: 8px;
  }
  .workspace-editor .save-alert {
    max-height: 100px;
    padding: 8px 10px;
    font-size: 12px;
    align-items: center;
  }
  .workspace-editor .save-alert span {
    max-height: 72px;
    overflow: auto;
  }
  .workspace-viewer .viewer-tools {
    padding: 10px 12px;
  }
  .workspace-viewer .searchbox {
    flex: 1 1 100%;
    max-width: none;
  }
  .workspace-viewer .viewer-stats {
    font-size: 12px;
  }
  .workspace-viewer .viewer-filter-strip {
    padding: 6px 12px 10px;
    max-height: 112px;
  }
  .workspace-viewer .viewer-main .seat-detail {
    bottom: 10px;
    max-height: 52%;
    width: auto;
    padding: 16px 18px;
  }
  .workspace-viewer .seat-detail h2 {
    font-size: 23px;
  }
  .workspace-viewer .viewer-bottom .legend {
    gap: 6px 12px;
  }
  .workspace-viewer .viewer-bottom .read-only-label {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.workspace-editor, .workspace-viewer) *,
  :is(.workspace-editor, .workspace-viewer) *::before,
  :is(.workspace-editor, .workspace-viewer) *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Initial setup uses the whole stage; saved panel preferences resume afterward. */
#app.workspace-editor .editor.setup-active {
  grid-template-columns: minmax(0, 1fr);
}
.workspace-editor .editor.setup-active > .stage-area {
  grid-column: 1 / -1;
}
.workspace-editor .editor.setup-active > .side.left,
.workspace-editor .editor.setup-active > .side.right,
.workspace-editor .editor.setup-active .context-strip,
.workspace-editor .editor.setup-active #tools-toggle,
.workspace-editor .editor.setup-active #inspector-toggle,
.workspace-editor .editor.setup-active #touch-settings {
  display: none;
}

@media (max-width: 850px) {
  body:has(.workspace-editor) #toast { bottom: 94px; }
}

/* Guide controls occupy their own row, leaving the stage itself unobstructed. */
#app.workspace-editor #area-toolbar {
  position: static;
  inset: auto;
  z-index: auto;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #8193aa;
  border-radius: 0;
  background: #f0f5fc;
  box-shadow: none;
}
#app.workspace-editor #area-toolbar:has(.arc-controls) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  padding-top: 8px;
  padding-bottom: 8px;
}
#app.workspace-editor .arc-toolbar-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 10px;
  min-width: 0;
  min-height: 44px;
}
#app.workspace-editor .arc-toolbar-head > div {
  grid-column: 1;
  grid-row: 1 / 3;
  min-width: 0;
}
#app.workspace-editor .arc-toolbar-head strong {
  display: block;
  grid-column: 1;
  grid-row: 1;
  color: #243b58;
  font-size: 14px;
  line-height: 1.45;
}
#app.workspace-editor .arc-toolbar-head small {
  display: block;
  grid-column: 1;
  grid-row: 2;
  color: #52647a;
  font-size: 11px;
  line-height: 1.5;
}
#app.workspace-editor .arc-toolbar-head #area-done {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 48px;
  min-height: 44px;
  padding: 7px 10px;
  font-size: 12px;
}
#app.workspace-editor .arc-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 1 / -1;
  grid-row: 2;
  gap: 12px;
  min-width: 0;
}
#app.workspace-editor .arc-control {
  min-width: 0;
}
#app.workspace-editor .arc-control > :is(label, strong, span, h3, h4) {
  display: block;
  margin: 0 0 2px;
  color: #243b58;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
#app.workspace-editor .arc-control-buttons {
  display: grid;
  grid-template-columns: minmax(44px, 1fr) minmax(28px, 1fr) minmax(44px, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 0;
}
#app.workspace-editor .arc-control-buttons button {
  min-width: 0;
  min-height: 44px;
  padding: 6px 4px;
  border-color: #8193aa;
  background: #fffefb;
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
}
#app.workspace-editor .arc-control-buttons > :is(span, b, strong, output) {
  min-width: 0;
  color: #243b58;
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  text-align: center;
}
#app.workspace-editor .arc-toolbar-actions {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
#app.workspace-editor .arc-toolbar-actions button {
  min-height: 44px;
  padding: 8px 10px;
  font-size: 12px;
}
#app.workspace-editor .arc-more {
  grid-column: 1 / -1;
  min-width: 0;
}
#app.workspace-editor .arc-more > summary {
  display: list-item;
  min-height: 36px;
  padding: 8px 2px;
  cursor: pointer;
  color: #243b58;
  font-size: 12px;
  line-height: 1.5;
}
#app.workspace-editor .arc-more > summary::marker {
  color: #52647a;
}
#app.workspace-editor .arc-more .guide-gap-control {
  margin-bottom: 8px;
  padding-top: 8px;
}
#app.workspace-editor .arc-more :is(#arc-defaults, #arc-drag-toggle) {
  min-height: 44px;
  margin: 0 6px 4px 0;
  padding: 8px 10px;
  font-size: 12px;
}
#modal .arc-standard-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #8193aa;
  border-radius: 12px;
  background: #f0f5fc;
}
#modal .arc-illustration {
  display: block;
  width: 100%;
  height: auto;
  max-height: 112px;
}
#modal .arc-default-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #243b58;
  font-size: 12px;
  line-height: 1.7;
}
#modal .arc-default-list :is(strong, b) {
  color: #243b58;
  font-variant-numeric: tabular-nums;
}
#modal .guide-row-preview {
  padding: 10px;
  margin: 12px 0;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #f0f5fc;
}
#modal .guide-row-preview svg {
  display: block;
  width: 100%;
  max-height: 180px;
}
#modal .guide-row-summary {
  color: #243b58;
  font-size: 14px;
  line-height: 1.7;
}
#modal .guide-row-summary .help {
  margin-top: 6px;
  color: #52647a;
  font-size: 12px;
  line-height: 1.75;
}
@media (max-width: 850px) {
  #app.workspace-editor .editor.arc-editing > .stage-area {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  #app.workspace-editor .editor.arc-editing .canvas-wrap {
    flex: 1 0 240px;
    min-height: 240px;
  }
  #app.workspace-editor #area-toolbar {
    padding: 8px 10px;
  }
  #app.workspace-editor #area-toolbar:has(.arc-controls) {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  #app.workspace-editor .arc-toolbar-head {
    grid-column: 1;
    grid-row: 1;
  }
  #app.workspace-editor .arc-controls {
    gap: 8px;
  }
  #app.workspace-editor .arc-toolbar-actions {
    grid-column: 1;
    grid-row: 3;
  }
  #app.workspace-editor .arc-toolbar-actions button {
    flex: 1;
    min-width: 0;
  }
  #app.workspace-editor .arc-more > summary {
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
@media (max-width: 400px) {
  #app.workspace-editor .arc-control-buttons > :is(span, b, strong, output) {
    font-size: 12px;
  }
  #modal .arc-standard-card {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 10px;
    gap: 10px;
  }
  #modal .arc-default-list {
    gap: 6px 8px;
    font-size: 11px;
  }
}

/* Guide adjustment temporarily gives the stage the full workspace width. */
#app.workspace-editor .editor.arc-editing {
  grid-template-columns: minmax(0, 1fr);
}
#app.workspace-editor .editor.arc-editing > .stage-area {
  grid-column: 1 / -1;
}
#app.workspace-editor .editor.arc-editing > .side.left,
#app.workspace-editor .editor.arc-editing > .side.right,
#app.workspace-editor .editor.arc-editing .context-strip,
#app.workspace-editor .editor.arc-editing #tools-toggle,
#app.workspace-editor .editor.arc-editing #inspector-toggle,
#app.workspace-editor .editor.arc-editing #touch-settings {
  display: none;
}
#modal .arc-default-list dd {
  margin: 0;
  color: #243b58;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  #modal .arc-standard-card {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    padding: 12px;
    gap: 8px;
  }
  #modal .arc-illustration {
    justify-self: center;
    width: 112px;
    height: 72px;
    max-height: 72px;
  }
  #modal .arc-default-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px 14px;
    font-size: 12px;
    overflow-wrap: anywhere;
  }
}

/* Standard platform selection and placement. */
.riser-presets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:16px 0; }
.riser-presets button { display:flex; flex-direction:column; align-items:center; gap:8px; min-width:0; padding:14px 10px; white-space:normal; text-align:center; border:2px solid var(--border,#dce5f0); }
.riser-presets button[aria-pressed="true"] { border-color:#243b58; background:#f0f5fc; box-shadow:inset 0 0 0 1px #243b58; }
.riser-presets strong { font-size:14px; }
.riser-presets small { font-size:12px; line-height:1.6; font-weight:400; }
.riser-preset-shape { display:block; height:36px; aspect-ratio:var(--riser-ratio); max-width:90%; background:#dce5f0; border:1.5px solid #52647a; border-radius:2px; }
.riser-quick { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 16px; }
.riser-quick button { min-height:44px; flex:1; }
.riser-quick button[aria-pressed="true"] { background:#dce5f0; border-color:#243b58; }
.riser-diagram { border:1px solid #dce5f0; border-radius:12px; background:#f0f5fc; padding:12px; }
.riser-diagram:empty { display:none; }
.riser-diagram svg { width:100%; height:130px; display:block; }
.riser-summary { font-weight:650; font-size:14px; color:#243b58; }
.riser-selection { padding:14px 0; display:grid; gap:10px; border-top:1px solid #dce5f0; border-bottom:1px solid #dce5f0; margin:14px 0; }
.riser-selection>strong { font-size:13px; line-height:1.7; }
.riser-selection .help { margin:0; }
.riser-adjacent { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.riser-adjacent button { min-height:44px; padding:8px; }
.riser-workflow { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-shrink:0; padding:14px; background:#f0f5fc; border-bottom:1px solid #8193aa; }
.riser-workflow strong { display:block; color:#243b58; }
.riser-workflow p { font-size:13px; margin:4px 0 0; line-height:1.6; }
.riser-workflow-actions { display:flex; gap:8px; flex-shrink:0; }
.riser-workflow button { min-height:44px; }
#app.workspace-editor .editor.riser-placing { grid-template-columns:minmax(0,1fr); }
#app.workspace-editor .editor.riser-placing>.side,#app.workspace-editor .editor.riser-placing .context-strip,#app.workspace-editor .editor.riser-placing #tools-toggle,#app.workspace-editor .editor.riser-placing #inspector-toggle,#app.workspace-editor .editor.riser-placing #touch-settings { display:none; }
@media (max-width:850px) {
 .riser-workflow { flex-wrap:wrap; gap:10px; }
 .riser-workflow-actions { width:100%; display:grid; grid-template-columns:1fr auto 1fr; }
 .riser-workflow-actions button { padding:8px; }
 #app.workspace-editor .editor.riser-placing .stage-area { overflow-y:auto; }
 #app.workspace-editor .editor.riser-placing .canvas-wrap { min-height:240px; flex:1 0 240px; }
}
@media (max-width:600px) {
 .riser-presets { grid-template-columns:1fr; gap:8px; }
 .riser-presets button { display:grid; grid-template-columns:56px 1fr; gap:3px 12px; padding:10px 12px; text-align:left; }
 .riser-preset-shape { grid-column:1; grid-row:1 / span 3; height:auto; width:52px; max-width:100%; }
 .riser-presets strong,.riser-presets small,.riser-presets .tag { grid-column:2; }
 .riser-presets .tag { width:max-content; font-size:10px; padding:2px 6px; }
 .riser-diagram svg { height:110px; }
}
dialog:has(.riser-presets) { max-width:720px; }
dialog:has(.riser-presets) .modal-head { margin-bottom:10px; }
dialog:has(.riser-presets) .modal-body>p { margin:8px 0; }
dialog:has(.riser-presets) .actions { position:sticky; bottom:-28px; z-index:2; background:#fffefa; padding:12px 0; border-top:1px solid #dce5f0; margin-top:12px; }
.riser-presets { margin:10px 0; }
.riser-presets button { gap:5px; padding:10px; }
.riser-presets .tag { font-size:10px; padding:2px 7px; }
.riser-quick { margin:10px 0; }
.riser-count-fields { grid-template-columns:repeat(3,minmax(0,1fr)); }
.riser-diagram svg { height:90px; }
@media(max-width:600px) {
 dialog:has(.riser-presets) .actions { bottom:-20px; }
 .riser-count-fields { grid-template-columns:1fr 1fr; }
 .riser-count-fields>label:last-child { grid-column:1 / -1; }
 .riser-presets button { padding:8px 10px; }
 .riser-diagram svg { height:85px; }
}

#app.workspace-editor .editor.riser-placing > .stage-area { grid-column:1 / -1; }

/* Platform guides and moving music stands between surfaces. */
.surface-actions { display:grid; gap:9px; padding:12px 0; margin-bottom:12px; border-bottom:1px solid #dce5f0; }
.surface-actions .help { margin:0; }
.surface-actions button { white-space:normal; min-height:44px; }
dialog:has(.surface-dialog) { max-width:740px; }
.surface-dialog>p:first-child { margin-top:0; }
.surface-preview { margin:14px 0 8px; padding:12px; background:#f0f5fc; border:1px solid #dce5f0; border-radius:12px; }
.surface-preview svg { display:block; width:100%; height:200px; }
.surface-preview p { margin:18px; font-size:14px; }
.surface-legend { display:flex; gap:10px 18px; flex-wrap:wrap; font-size:12px; color:#52647a; }
.surface-legend strong { color:#243b58; }
.riser-line-positions { display:grid; gap:12px; }
.riser-line-control>label { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px; }
.riser-line-control>label span { font-size:12px; font-weight:400; color:#243b58; }
.riser-line-control>div { display:flex; align-items:center; gap:12px; }
.riser-line-control input[type="range"] { flex:1; min-width:0; padding:0; accent-color:#243b58; cursor:pointer; height:44px; }
.line-percent { display:flex; align-items:center; gap:5px; width:95px; flex-shrink:0; }
.line-percent input { min-width:0; width:72px; }
.surface-footer { position:sticky; bottom:-28px; z-index:2; background:#fffefa; padding:12px 0; border-top:1px solid #dce5f0; margin-top:18px; }
@media(max-width:600px) {
 .surface-preview svg { height:160px; }
 .surface-dialog .fields { grid-template-columns:1fr; }
 .surface-footer { bottom:-20px; display:flex; flex-wrap:wrap; }
 .surface-footer button { flex:1; white-space:normal; min-height:44px; }
}

/* An explicit platform move mode avoids tiny handles and overlapping chair hits. */
.riser-move-picker .surface-preview svg { height:160px; }
.riser-picker-bulk { display:flex; gap:8px; margin-bottom:12px; }
.riser-picker-list { display:grid; gap:8px; max-height:260px; overflow:auto; padding:4px; }
.riser-picker-list label { display:flex; align-items:center; gap:12px; padding:10px; border:1px solid #dce5f0; border-radius:8px; background:#fffefa; cursor:pointer; }
.riser-picker-list label:has(input:checked) { border-color:#243b58; background:#f0f5fc; }
.riser-picker-list input,.riser-move-contents input { width:20px; height:20px; min-height:20px; flex:0 0 20px; accent-color:#243b58; }
.riser-picker-list strong,.riser-picker-list small { display:block; }
.riser-picker-list small { font-size:11px; }
.riser-add-more summary { cursor:pointer; font-size:13px; padding:8px 0; }
#app.workspace-editor .editor.riser-placing #riser-workflow { display:block; padding:12px 18px; }
.riser-move-header { display:flex; gap:12px; justify-content:space-between; align-items:center; }
.riser-move-actions { display:flex; gap:8px; flex-shrink:0; }
.riser-move-tools { display:flex; gap:12px 20px; flex-wrap:wrap; align-items:center; margin-top:10px; }
.riser-nudge { display:flex; align-items:end; gap:10px; }
.riser-nudge label { width:105px; }
.riser-nudge-arrows { display:flex; gap:6px; }
.riser-nudge-arrows button { min-width:44px; font-size:20px; }
.riser-move-contents { display:flex; gap:8px; align-items:center; font-size:12px; cursor:pointer; }
#app.workspace-editor .riser-move-status { font-size:12px; margin-top:8px; color:#243b58; }
.riser-moving .move-source { opacity:.22; }
#app.workspace-editor .riser-placing #select-mode,#app.workspace-editor .riser-placing #multi-mode,#app.workspace-editor .riser-placing #pan-mode,#app.workspace-editor .riser-placing #unit-mode,#app.workspace-editor .riser-placing #undo,#app.workspace-editor .riser-placing #redo,#app.workspace-editor .riser-placing .touch-dock { display:none; }
#app.workspace-editor .riser-placing .toolbar { display:none; }
@media(max-width:850px) {
 #app.workspace-editor .editor.riser-placing #riser-workflow { padding:10px 12px; }
 .riser-move-header { flex-wrap:wrap; gap:8px; }
 .riser-move-actions { width:100%; display:grid; grid-template-columns:1fr auto 1fr; }
 .riser-move-actions button { padding:8px; }
 .riser-move-tools { margin-top:8px; gap:8px; }
 .riser-nudge { gap:6px; width:100%; justify-content:space-between; }
 .riser-nudge label { width:90px; flex-shrink:0; }
 .riser-nudge-arrows { gap:4px; }
 .riser-nudge-arrows button { min-width:40px; padding:5px; }
 #riser-move-reset { font-size:11px; padding:5px; }
 .riser-move-contents { font-size:12px; }
}
@media(max-width:850px) { #riser-move-step { font-size:16px; } }
#app.workspace-editor .riser-move-error { min-height:20px; margin:0; font-size:12px; line-height:20px; }
@media(max-width:850px) { #app.workspace-editor .riser-move-error { min-height:40px; } }

/* Placement and movement expose the same controls before confirmation. */
.riser-placing #riser-preview>g { pointer-events:all; cursor:grab; }
@media(max-width:850px) {
 #app.workspace-editor:has(.riser-placing) .workspace-progress { display:none; }
}
[data-handle="riser-preview-move"] { cursor:grab; outline:none; }
[data-handle="riser-preview-move"]:focus-visible circle { stroke:#1648a0; stroke-width:4; }
[data-pick-diagram] { cursor:pointer; outline:none; }
[data-pick-diagram]:focus-visible rect { stroke:#1648a0; stroke-width:3; }
[data-pick-diagram][aria-disabled="true"] { cursor:not-allowed; opacity:.6; }
@media(max-width:380px) {
 .riser-nudge { display:contents; }
 .riser-nudge label { width:78px; }
 .riser-nudge-arrows button { min-width:38px; }
 .riser-move-tools #riser-turn { margin-left:auto; }
}

/* Focused editor: canvas first, commands grouped by the task they perform. */
.ui-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  vertical-align: middle;
  pointer-events: none;
}
button:has(> .ui-icon), summary:has(> .ui-icon) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.workspace-editor button,
dialog button,
dialog summary {
  min-height: 44px;
}
.workspace-editor .topbar {
  min-height: 64px;
  padding: 10px 20px;
  gap: 16px;
}
.workspace-editor .topbar .brand b { font-size: 16px; }
.workspace-editor .topbar .brand small { font-size: 12px; }
.workspace-editor .topbar .top-title { max-width: 380px; }
.workspace-editor .topbar .actions { gap: 6px; }
.workspace-editor .topbar .save-state { display: inline-flex; margin-right: 10px; }
.workspace-editor .topbar .actions button { padding: 8px 12px; }
.workspace-editor .topbar #save { min-width: 44px; padding: 9px; }
.workspace-editor .topbar #document-menu { border-color: transparent; }
.workspace-editor #document-menu .ui-icon:last-child,
.workspace-editor #selection-menu .ui-icon:last-child {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
  margin-left: 1px;
}
.workspace-editor.setup-complete .workspace-progress,
.workspace-editor .workspace-progress.setup-complete { display: none; }
.workspace-editor .workspace-progress .mobile-save { display: none !important; }
.workspace-editor .toolbar {
  min-height: 60px;
  padding: 8px 16px;
  gap: 6px;
  background: var(--paper);
  border-bottom-color: #dce5f0;
}
.workspace-editor .toolbar button {
  min-height: 44px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.4;
}
.workspace-editor .toolbar #add-open { min-width: 94px; margin-right: 2px; }
.workspace-editor .toolbar :is(#undo, #redo) { width: 44px; min-width: 44px; padding: 10px; border-color: transparent; }
.workspace-editor .toolbar :is(#pan-mode, #areas-open, #inspector-toggle) { border-color: transparent; }
.workspace-editor .toolbar #inspector-toggle { margin-left: auto; }
.workspace-editor .toolbar #selection-menu { border-color: transparent; }
.workspace-editor .toolbar button[aria-pressed="true"] {
  border-color: #8193aa;
  background: #f0f5fc;
  box-shadow: inset 0 -2px 0 #243b58;
}
.workspace-editor .toolbar .divider { height: 22px; margin: 0 4px; }
.workspace-editor .context-strip {
  min-height: 48px;
  gap: 8px;
  padding: 3px 16px;
  background: #f0f5fc;
  border-bottom-color: #dce5f0;
}
.workspace-editor #mode-indicator { flex: 1 1 180px; gap: 0; }
.workspace-editor #mode-indicator strong { font-size: 14px; font-weight: 600; }
.workspace-editor #mode-indicator small { font-size: 12px; line-height: 1.5; color: #52647a; }
.workspace-editor #selection-summary { color: #243b58; font-size: 12px; white-space: nowrap; }
.workspace-editor .context-actions { flex-wrap: nowrap; gap: 2px; }
.workspace-editor .context-details { margin-left: 4px; }
.workspace-editor .context-strip button,
.workspace-editor .action-overflow > summary {
  min-height: 44px;
  padding: 8px 10px;
  font-size: 14px;
  border-color: transparent;
  background: transparent;
}
.workspace-editor .context-strip button:hover,
.workspace-editor .action-overflow > summary:hover { background: #dce5f0; }
.workspace-editor #selection-clear { width: 44px; padding: 10px; }
.workspace-editor .action-overflow { position: relative; }
.workspace-editor .action-overflow > summary {
  border: 1px solid transparent;
  border-radius: 8px;
  list-style: none;
  cursor: pointer;
}
.workspace-editor .action-overflow > summary::-webkit-details-marker { display: none; }
.workspace-editor .action-overflow[open] > summary { background: #dce5f0; border-color: #8193aa; }
.workspace-editor .action-overflow .menu-items {
  position: absolute;
  z-index: 25;
  top: calc(100% + 5px);
  right: 0;
  display: grid;
  min-width: 184px;
  padding: 6px;
  border: 1px solid #8193aa;
  border-radius: 12px;
  background: #fffefb;
  box-shadow: 0 8px 30px #243b5826;
}
.workspace-editor .action-overflow .menu-items button {
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 12px;
  font-size: 14px;
  text-align: left;
}
.workspace-editor .action-overflow .menu-items .danger { margin-top: 4px; border-top: 1px solid #e7ded5; border-radius: 0 0 7px 7px; }
.workspace-editor .support-alert {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 5px 16px;
  border-bottom: 1px solid #e3d5b8;
  background: #fbf7eb;
  color: #735726;
  font-size: 12px;
  line-height: 1.7;
}
.workspace-editor .support-alert button { flex-shrink: 0; min-height: 44px; font-size: 14px; background: transparent; border-color: #d5c49e; }
.workspace-editor .support-notice { display: grid; gap: 10px; margin: 14px 0; padding: 12px; border: 1px solid #dfd0ae; border-radius: 10px; background: #fbf7eb; color: #735726; font-size: 12px; line-height: 1.75; }
.workspace-editor .support-notice :is(p, small, .help) { margin: 0; color: #735726; font-size: 12px; line-height: 1.75; }
.workspace-editor .support-notice strong { font-size: 14px; font-weight: 600; }
.workspace-editor .support-notice button { min-height: 44px; width: 100%; padding: 10px; border-color: #c9b581; background: #fffefa; color: #705323; font-size: 14px; }
.workspace-editor .canvas-wrap { background-color: #f0f5fc; }
.workspace-editor .canvas-label { letter-spacing: .03em; }
.workspace-editor .stage-footer { min-height: 30px; padding: 5px 16px; background: #f0f5fc; font-size: 12px; }
.workspace-editor .inspector-head { padding: 10px 12px; }
.workspace-editor .inspector-tabs button { min-height: 44px; font-size: 14px; }
.workspace-editor .inspector-page { padding: 20px 18px; }
.workspace-editor .empty-select { padding: 28px 12px; text-align: left; font-size: 14px; }
.workspace-editor .empty-select .ui-icon { width: 28px; height: 28px; margin-bottom: 12px; color: #52647a; }
.workspace-editor .inspector-page .fields { gap: 14px 12px; }
.workspace-editor .inspector-page label { font-size: 14px; }
.workspace-editor .field-advanced > summary { min-height: 44px; padding: 10px 0; }
.workspace-editor .touch-dock { display: none; }

/* Menus disclose less-frequent commands without reducing their target size. */
dialog:has(.command-list) { max-width: 580px; }
dialog .modal-head { gap: 16px; align-items: center; }
dialog .modal-head h2 { font-size: 18px; line-height: 1.5; }
dialog .modal-head button { min-width: 44px; flex-shrink: 0; }
dialog .menu-section-title { margin: 24px 0 10px; color: #52647a; font-size: 12px; font-weight: 650; letter-spacing: .04em; }
dialog .command-list { display: grid; gap: 6px; }
dialog .command-list button,
dialog .parts-list button:has(> .ui-icon) {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #fffefb;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}
dialog .command-list button:hover,
dialog .parts-list button:has(> .ui-icon):hover { border-color: #8193aa; background: #f0f5fc; }
dialog .command-list button > span,
dialog .parts-list button > span { min-width: 0; flex: 1; }
dialog .command-list :is(b, strong, small),
dialog .parts-list button :is(b, small) { display: block; }
dialog .command-list :is(b, strong), dialog .parts-list b { font-weight: 600; }
dialog .command-list small,
dialog .parts-list button small { margin-top: 3px; font-size: 12px; font-weight: 400; color: #52647a; line-height: 1.6; }
dialog .command-list button > .ui-icon,
dialog .parts-list button > .ui-icon { color: #52647a; }
dialog .command-list button.primary { color: #fff; background: #243b58; border-color: #243b58; }
dialog .command-list button.primary :is(.ui-icon, small) { color: #fff; }
dialog .command-list button[aria-pressed="true"] { border-color: #52647a; background: #f0f5fc; box-shadow: inset 3px 0 0 #243b58; }
dialog .add-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
dialog .add-grid button { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-width: 0; min-height: 64px; padding: 14px; font-size: 14px; text-align: left; }
dialog .add-grid .ui-icon { width: 26px; height: 26px; flex-basis: 26px; color: #52647a; }
dialog .add-grid button[data-add-kind="chair-set"] { grid-column: 1 / -1; border-color: #8193aa; background: #f0f5fc; }
dialog .guide-preferences { display: grid; gap: 1px; overflow: hidden; border: 1px solid #dce5f0; border-radius: 12px; background: #dce5f0; }
dialog .guide-preferences label { display: flex; align-items: flex-start; gap: 12px; min-height: 60px; padding: 14px; background: #f0f5fc; cursor: pointer; }
dialog .guide-preferences input { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; margin: 3px 0; accent-color: #243b58; }
dialog .guide-preferences :is(b, small) { display: block; }
dialog .guide-preferences b { font-weight: 600; font-size: 14px; color: #243b58; }
dialog .guide-preferences small { margin-top: 3px; font-size: 12px; color: #52647a; line-height: 1.7; }
dialog details > summary { padding: 10px 0; cursor: pointer; color: #243b58; font-weight: 550; }
dialog .parts-list { min-width: 0; }

@media (min-width: 851px) and (max-width: 1100px) {
  .workspace-editor .topbar { gap: 12px; padding: 10px 16px; }
  .workspace-editor .topbar .tag { display: none; }
  .workspace-editor .topbar .save-state { margin-right: 4px; }
  .workspace-editor .toolbar { padding: 8px 10px; gap: 4px; }
  .workspace-editor .toolbar button { padding: 9px 10px; }
  .workspace-editor .toolbar #add-open { min-width: 78px; }
  .workspace-editor .toolbar #pan-mode { width: 44px; min-width: 44px; padding: 10px; }
  .workspace-editor .toolbar #pan-mode > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .workspace-editor .toolbar #inspector-toggle > span { display: none; }
}

@media (max-width: 850px) {
  .workspace-editor .topbar { padding: 8px 12px; gap: 10px; }
  .workspace-editor .topbar .save-state { display: inline-flex; margin-right: 4px; }
  .workspace-editor .toolbar { min-height: 58px; padding: 7px 10px; gap: 4px; overflow: visible; }
  .workspace-editor .toolbar :is(#add-open, #areas-open, #inspector-toggle) { display: none; }
  .workspace-editor .toolbar .divider { display: none; }
  .workspace-editor .toolbar #undo { margin-left: auto; }
  .workspace-editor .toolbar :is(#selection-menu, #pan-mode) { display: inline-flex; padding: 9px 10px; }
  .workspace-editor .context-strip { padding: 3px 10px; min-height: 48px; gap: 3px 6px; }
  .workspace-editor #mode-indicator { flex-basis: 100px; }
  .workspace-editor #mode-indicator small { font-size: 12px; }
  .workspace-editor .context-details { margin-left: 0; }
  .workspace-editor .context-actions { gap: 0; }
  .workspace-editor .context-actions .action-overflow > summary { padding: 8px; }
  .workspace-editor .context-actions .action-overflow > summary > span { display: none; }
  .workspace-editor .context-strip:has(.context-actions:not(.hidden)) #mode-indicator small { display: none; }
  .workspace-editor .support-alert { padding: 5px 10px; gap: 8px; font-size: 12px; }
  .workspace-editor .support-alert button { font-size: 14px; padding: 8px; }
  .workspace-editor .touch-dock { display: flex; gap: 6px; padding: 7px 10px max(7px, env(safe-area-inset-bottom)); }
  .workspace-editor .touch-dock button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 58px; padding: 5px 3px; gap: 3px; font-size: 12px; border-color: transparent; background: transparent; }
  .workspace-editor .touch-dock #touch-add { background: #243b58; border-color: #243b58; color: white; }
  .workspace-editor .stage-footer { min-height: 30px; padding: 4px 10px; font-size: 12px; }
  .workspace-editor .side.right { max-height: 56dvh; z-index: 30; }
  .workspace-editor .inspector-page { padding: 18px 18px 24px; }
  .workspace-editor .inspector-head { padding: 10px 12px; }
  .workspace-editor #close-props { min-width: 44px; }
  .workspace-editor .editor :is(.riser-nudge-arrows button, #riser-move-reset) { min-height: 44px; min-width: 44px; }
  dialog .modal-body :is(input, select, textarea) { font-size: 16px; }
  dialog .guide-preferences input { min-height: 20px; }
}

@media (max-width: 600px) {
  .workspace-editor .topbar { display: grid; grid-template-columns: 32px minmax(0, 1fr) 44px 44px 78px; gap: 3px 6px; padding: 8px 12px 7px; }
  .workspace-editor .topbar .brand { grid-column: 1; grid-row: 1; }
  .workspace-editor .topbar .top-title { grid-column: 2 / -1; grid-row: 1; font-size: 14px; padding-left: 3px; max-width: none; }
  .workspace-editor .topbar .actions { display: contents; }
  .workspace-editor .topbar .save-state { grid-column: 1 / 3; grid-row: 2; margin: 0; font-size: 12px; gap: 5px; min-width: 0; white-space: normal; line-height: 1.4; }
  .workspace-editor .topbar .save-state::before { width: 6px; height: 6px; }
  .workspace-editor .topbar #save { grid-column: 3; grid-row: 2; padding: 9px; }
  .workspace-editor .topbar #preview { display: inline-flex; grid-column: 4; grid-row: 2; padding: 9px; }
  .workspace-editor .topbar #preview > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .workspace-editor .topbar #document-menu { grid-column: 5; grid-row: 2; gap: 4px; padding: 8px 4px; font-size: 14px; }
  .workspace-editor .topbar #document-menu > .ui-icon:first-child { display: none; }
  .workspace-editor .toolbar { min-height: 56px; padding: 6px 8px; }
  .workspace-editor .toolbar :is(#selection-menu, #pan-mode) { gap: 5px; padding: 8px; font-size: 14px; }
  .workspace-editor .context-strip:has(.context-actions:not(.hidden)) #mode-indicator { display: none; }
  .workspace-editor .context-strip:has(.context-actions:not(.hidden)) #selection-summary { margin-right: auto; }
  .workspace-editor .context-strip .context-details button { gap: 5px; padding: 8px; }
  .workspace-editor .touch-dock { padding-left: 8px; padding-right: 8px; gap: 3px; }
  .workspace-editor .support-alert { flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
  .workspace-editor .support-alert > :first-child { flex: 1 1 150px; }
  dialog:has(.command-list) { padding: 20px 16px; }
  dialog .add-grid { gap: 7px; }
  dialog .add-grid button { min-height: 62px; padding: 10px; gap: 8px; font-size: 14px; }
  dialog .add-grid .ui-icon { width: 23px; height: 23px; flex-basis: 23px; }
  dialog .command-list button { padding: 12px; gap: 11px; font-size: 14px; }
  dialog .guide-preferences label { padding: 12px; }
  dialog .guide-preferences b { font-size: 14px; }
}

@media (max-width: 360px) {
  .workspace-editor .toolbar #pan-mode {
    width: 44px;
    min-width: 44px;
    padding: 10px;
  }
  .workspace-editor .toolbar #pan-mode > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Public entry and edit-link sharing use the existing KEB STAGE palette. */
.public-home .home {max-width:1160px;margin:auto;padding:56px 28px;}
.public-home .welcome {gap:44px;align-items:center;}
.public-home h1 {font-size:clamp(32px,4vw,48px);line-height:1.35;letter-spacing:-.03em;}
.public-home .home-actions {width:320px;flex-shrink:0;display:flex;flex-direction:column;gap:12px;}
.public-home .home-actions label {display:flex;flex-direction:column;gap:8px;}
.public-home .home-actions input {width:100%;font-size:16px;}
.public-home button {min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;}
.link-intro {display:flex;align-items:flex-start;gap:12px;margin-top:24px;padding:16px;background:#f0f5fc;border:1px solid #dce5f0;border-radius:12px;font-size:13px;line-height:1.8;}
.link-intro svg {width:22px;min-width:22px;height:22px;margin-top:4px;}
.recent-section {margin-top:48px;border-top:1px solid #dce5f0;padding-top:28px;}
.public-home .project-card {overflow:hidden;}
.public-home .project-card>a {display:block;color:inherit;text-decoration:none;}
.public-home .project-card .forget-link {font-size:12px;color:#52647a;margin:0 12px 12px;}
.public-footer {margin-top:40px;color:#52647a;font-size:13px;line-height:1.8;}
.public-home .help,.public-home .help-text {font-size:13px;line-height:1.8;}
@media(max-width:700px){.public-home .home{padding:28px 18px}.public-home .welcome{flex-direction:column;gap:28px}.public-home .home-actions{width:100%}.public-home .topbar{padding:14px 18px}.public-home .top-title{display:none}.public-home .project-grid{grid-template-columns:1fr}.public-home h1{font-size:34px}}
@media(max-width:700px){.public-home .brand>span:last-child{display:block}.public-home .topbar>.tag{display:inline-block;margin-left:auto}.public-home .topbar{gap:10px}.public-home .topbar>.spacer,.public-home .topbar>.actions{display:none}.public-home .brand small{font-size:8px;letter-spacing:.8px}}
@media(max-width:700px){.public-home .brand b{display:block}.public-home .brand small{display:none}}
