:root {
  color-scheme: light;
  --navy-950: #071a2a;
  --navy-900: #0d2942;
  --navy-850: #12344f;
  --navy-800: #173d5c;
  --blue-600: #1769e0;
  --blue-500: #2878ee;
  --blue-100: #e9f2ff;
  --ink-950: #111820;
  --ink-800: #2a3540;
  --ink-600: #5b6875;
  --ink-500: #76818c;
  --line-strong: #c8d0d9;
  --line: #dce2e8;
  --line-soft: #e9edf1;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --surface-work: #eef1f4;
  --success: #1d8c5a;
  --warning: #b77700;
  --danger: #c33f3f;
  --shadow-sm: 0 1px 2px rgba(7, 26, 42, 0.07), 0 4px 12px rgba(7, 26, 42, 0.05);
  --shadow-md: 0 18px 55px rgba(7, 26, 42, 0.15), 0 3px 12px rgba(7, 26, 42, 0.08);
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --header-height: 58px;
  --footer-height: 34px;
  --rail-width: 252px;
  --panel-width: 330px;
  font-family: Inter, Pretendard, "Segoe UI", "Malgun Gothic", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--surface-work);
  color: var(--ink-950);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:not(:disabled),
select:not(:disabled),
input:not(:disabled) {
  cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.app-shell {
  display: grid;
  grid-template-rows: var(--header-height) minmax(0, 1fr);
  width: 100%;
  height: 100vh;
  height: 100dvh;
}

.product-bar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  min-width: 0;
  padding: 0 14px 0 18px;
  background: var(--navy-900);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.07em;
}

.brand-divider {
  width: 1px;
  height: 20px;
  margin: 0 12px;
  background: rgba(255, 255, 255, 0.25);
}

.brand-product {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.19em;
}

.product-status {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 7px;
  min-width: 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.status-chip--beta {
  color: #f5d99c;
  border-color: rgba(245, 217, 156, 0.34);
  background: rgba(245, 217, 156, 0.09);
}

.status-chip--local {
  color: #a9d2ff;
  border-color: rgba(169, 210, 255, 0.34);
  background: rgba(169, 210, 255, 0.09);
}

.autosave-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  white-space: nowrap;
}

.autosave-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7f8f9d;
  box-shadow: 0 0 0 3px rgba(127, 143, 157, 0.13);
}

.autosave-state.is-saved .autosave-dot {
  background: #5fcea0;
  box-shadow: 0 0 0 3px rgba(95, 206, 160, 0.13);
}

.autosave-state.is-saving .autosave-dot {
  background: #f2c36b;
  box-shadow: 0 0 0 3px rgba(242, 195, 107, 0.13);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  justify-self: end;
}

.button,
.tool-button,
.square-button,
.text-button,
.panel-tab,
.position-grid button,
.theme-swatch,
.segmented-control button,
.mobile-dock button,
.sample-card {
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 100ms ease;
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button--primary {
  color: #fff;
  background: var(--blue-600);
  box-shadow: 0 5px 13px rgba(23, 105, 224, 0.18);
}

.button--primary:hover:not(:disabled) {
  background: #0f5fcf;
}

.button--secondary {
  color: var(--ink-800);
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.button--secondary:hover:not(:disabled) {
  border-color: #aeb9c4;
  background: var(--surface-soft);
}

.product-bar .button--ghost {
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}

.product-bar .button--ghost:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

.button--compact {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11px;
}

.button--large {
  min-height: 46px;
}

.button--full {
  width: 100%;
}

.button--danger-text {
  color: var(--danger);
  border: 1px solid #ebcece;
  background: #fffafa;
}

.icon-only {
  width: 31px;
  padding: 0;
  font-size: 18px;
}

.workspace {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr) var(--panel-width);
  min-width: 0;
  min-height: 0;
}

.photo-rail,
.property-panel {
  position: relative;
  z-index: 10;
  min-width: 0;
  min-height: 0;
  background: var(--surface);
}

.photo-rail {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 17px 12px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.15em;
  line-height: 1.2;
}

.rail-heading h1,
.section-heading h2,
.modal-header h2,
.section-subheading h3 {
  margin: 0;
  font-weight: 780;
  letter-spacing: -0.035em;
}

.rail-heading h1 {
  font-size: 17px;
}

.rail-heading h1 span {
  color: var(--blue-600);
}

.square-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-800);
  font-size: 22px;
  line-height: 1;
  transition: background 130ms ease, border-color 130ms ease;
}

.square-button:hover:not(:disabled) {
  border-color: #adb8c3;
  background: var(--surface-soft);
}

.square-button--small {
  width: 29px;
  height: 29px;
  font-size: 18px;
}

.rail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 0 13px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.rail-actions .button {
  min-width: 0;
  padding-inline: 8px;
  font-size: 11px;
}

.photo-list {
  min-height: 0;
  overflow: auto;
  padding: 9px;
  scrollbar-width: thin;
  scrollbar-color: #cbd3da transparent;
}

.photo-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 68px;
  margin-bottom: 6px;
  padding: 7px 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  transition: background 130ms ease, border-color 130ms ease;
}

.photo-item:hover {
  background: var(--surface-soft);
}

.photo-item.is-active {
  border-color: #b9d4f9;
  background: var(--blue-100);
}

.photo-thumb {
  position: relative;
  width: 54px;
  height: 50px;
  overflow: hidden;
  border-radius: 6px;
  background: #d8dde2;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 32, 0.06);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-item-number {
  position: absolute;
  left: 4px;
  top: 4px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(7, 26, 42, 0.78);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

.photo-item-copy {
  min-width: 0;
}

.photo-item-copy strong,
.photo-item-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-item-copy strong {
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 720;
}

.photo-item-copy span {
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 9px;
}

.photo-item-state {
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-radius: 50%;
  background: #74b48e;
}

.rail-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 24px;
  color: var(--ink-600);
  text-align: center;
}

.rail-empty-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--navy-800);
  font-size: 18px;
}

.rail-empty strong {
  color: var(--ink-800);
  font-size: 12px;
}

.rail-empty p {
  margin: 7px 0 12px;
  font-size: 10px;
  line-height: 1.55;
}

.text-button {
  padding: 0;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 720;
}

.text-button:hover:not(:disabled) {
  text-decoration: underline;
}

.text-button--small {
  font-size: 10px;
}

.rail-footer {
  display: grid;
  gap: 10px;
  padding: 11px 13px 13px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-500);
  font-size: 9px;
}

.local-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.local-badges span::before {
  content: "✓";
  margin-right: 4px;
  color: var(--success);
  font-weight: 800;
}

.labs-promo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #cdd9e4;
  border-radius: 9px;
  background: linear-gradient(135deg, #f7fbff 0%, #eef5fb 100%);
  color: var(--navy-900);
  text-decoration: none;
  transition: border-color 130ms ease, transform 130ms ease, box-shadow 130ms ease;
}

.labs-promo:hover {
  border-color: #9fbad2;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.labs-promo-mark {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.labs-promo-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.labs-promo-copy strong {
  font-size: 9px;
  letter-spacing: 0.12em;
}

.labs-promo-copy small {
  overflow: hidden;
  color: var(--ink-600);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labs-promo-arrow {
  color: var(--blue-600);
  font-size: 13px;
}

.editor-zone {
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr) var(--footer-height);
  min-width: 0;
  min-height: 0;
  background: var(--surface-work);
}

.editor-toolbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(120px, auto) minmax(210px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 3px;
}

.toolbar-group--right {
  justify-content: flex-end;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--ink-600);
  font-size: 11px;
  font-weight: 650;
}

.tool-button:hover:not(:disabled) {
  color: var(--ink-950);
  background: var(--surface-soft);
}

.toolbar-divider {
  width: 1px;
  height: 19px;
  margin: 0 4px;
  background: var(--line);
}

.toolbar-context {
  overflow: hidden;
  color: var(--ink-500);
  font-size: 10px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-area {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.36)),
    repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(13, 41, 66, 0.025) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(13, 41, 66, 0.025) 24px),
    var(--surface-work);
}

.empty-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 28px;
}

.empty-stage-card {
  width: min(520px, 94%);
  padding: 38px 40px 34px;
  border: 1px solid rgba(13, 41, 66, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-md);
}

.empty-stage-card .eyebrow {
  color: var(--blue-600);
}

.empty-stage-card h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(28px, 3.1vw, 43px);
  font-weight: 820;
  letter-spacing: -0.06em;
  line-height: 1.06;
}

.empty-stage-card > p:not(.eyebrow) {
  margin: 19px 0 24px;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.75;
}

.empty-stage-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 21px;
}

.sample-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  text-align: left;
  transition: border-color 130ms ease, background 130ms ease;
}

.sample-card:hover {
  border-color: #b7c3ce;
  background: #f2f5f8;
}

.sample-card-index {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  background: var(--navy-900);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.sample-card strong,
.sample-card small {
  display: block;
}

.sample-card strong {
  font-size: 11px;
}

.sample-card small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 9px;
}

.sample-card-arrow {
  color: var(--blue-600);
  font-size: 17px;
}

.image-viewport {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 26px 30px 44px;
  user-select: none;
}

.image-frame {
  position: relative;
  overflow: hidden;
  background: #c8d0d6;
  box-shadow: 0 20px 60px rgba(7, 26, 42, 0.19), 0 2px 9px rgba(7, 26, 42, 0.12);
  touch-action: none;
}

.image-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.board-overlay {
  --board-font: 13px;
  position: absolute;
  z-index: 4;
  width: 58%;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 32, 0.78);
  border-radius: 2px;
  box-shadow: 0 9px 26px rgba(0, 0, 0, 0.18);
  cursor: grab;
  touch-action: none;
  transform-origin: top left;
}

.board-overlay:active {
  cursor: grabbing;
}

.board-overlay.is-dragging,
.board-overlay.is-resizing {
  box-shadow: 0 13px 35px rgba(0, 0, 0, 0.25), 0 0 0 2px var(--blue-500);
}

.board-overlay.theme-light {
  color: #111820;
  border-color: rgba(17, 24, 32, 0.82);
  background: rgba(255, 255, 255, var(--board-opacity, 0.92));
}

.board-overlay.theme-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(7, 26, 42, var(--board-opacity, 0.92));
}

.board-overlay.theme-yellow {
  color: #111820;
  border-color: rgba(17, 24, 32, 0.82);
  background: rgba(255, 218, 77, var(--board-opacity, 0.92));
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--board-font) * 2.2);
  padding: calc(var(--board-font) * 0.45) calc(var(--board-font) * 0.68);
  border-bottom: 1px solid currentColor;
  background: rgba(13, 41, 66, 0.96);
  color: #fff;
}

.theme-dark .board-header {
  background: rgba(255, 255, 255, 0.10);
}

.theme-yellow .board-header {
  background: rgba(17, 24, 32, 0.92);
}

.board-wordmark {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.board-wordmark b,
.board-photo-index {
  font-size: calc(var(--board-font) * 0.62);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.board-photo-index {
  margin-left: 8px;
  opacity: 0.76;
}

.board-row {
  display: grid;
  grid-template-columns: minmax(26%, 33%) minmax(0, 1fr);
  min-height: calc(var(--board-font) * 2.25);
  border-bottom: 1px solid currentColor;
  font-size: var(--board-font);
  line-height: 1.28;
}

.board-row:last-child {
  border-bottom: 0;
}

.board-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: calc(var(--board-font) * 0.43) calc(var(--board-font) * 0.66);
  overflow-wrap: anywhere;
}

.board-cell--label {
  justify-content: center;
  border-right: 1px solid currentColor;
  font-weight: 760;
  text-align: center;
}

.board-cell--value {
  font-weight: 610;
}

.resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 6;
  width: max(15px, calc(var(--board-font) * 1.25));
  height: max(15px, calc(var(--board-font) * 1.25));
  border: 0;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(23, 105, 224, 0.95) 47% 61%, transparent 62%),
    linear-gradient(135deg, transparent 0 67%, rgba(23, 105, 224, 0.95) 68% 82%, transparent 83%);
  cursor: nwse-resize;
  touch-action: none;
}

.alignment-guide {
  position: absolute;
  z-index: 3;
  display: none;
  pointer-events: none;
  background: rgba(40, 120, 238, 0.74);
}

.alignment-guide.is-visible {
  display: block;
}

.alignment-guide--vertical {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.alignment-guide--horizontal {
  right: 0;
  left: 0;
  top: 50%;
  height: 1px;
}

.canvas-hint {
  position: absolute;
  right: 18px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink-500);
  font-size: 9px;
}

.canvas-hint span::before {
  content: "·";
  margin-right: 5px;
  color: var(--blue-600);
  font-weight: 900;
}

.workspace-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--ink-500);
  font-size: 9px;
}

.footer-status {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-600);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-meta {
  display: flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.footer-separator {
  margin: 0 7px;
  color: #aab3bc;
}

.property-panel {
  display: grid;
  grid-template-rows: 45px minmax(0, 1fr);
  border-left: 1px solid var(--line);
}

.panel-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px 7px 0;
  border-bottom: 1px solid var(--line);
}

.panel-tab {
  position: relative;
  min-height: 38px;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 710;
}

.panel-tab::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: -1px;
  left: 18%;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
}

.panel-tab.is-active {
  color: var(--navy-900);
}

.panel-tab.is-active::after {
  background: var(--blue-600);
}

.panel-scroll {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd3da transparent;
}

.panel-view {
  display: none;
}

.panel-view.is-active {
  display: block;
}

.panel-section {
  padding: 21px 17px 30px;
}

.section-heading,
.section-subheading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: 18px;
}

.section-number {
  color: #c3cbd3;
  font-size: 20px;
  font-weight: 820;
  letter-spacing: -0.05em;
}

.section-subheading {
  align-items: center;
  margin-bottom: 12px;
}

.section-subheading h3 {
  font-size: 14px;
}

.field-label,
.field-label-row {
  color: var(--ink-600);
  font-size: 10px;
  font-weight: 730;
}

.field-label {
  display: block;
  margin-bottom: 7px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.field-label-row .field-label {
  margin-bottom: 0;
}

.select,
.input,
.board-field-input {
  width: 100%;
  min-height: 37px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-800);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.select,
.input {
  padding: 0 10px;
  font-size: 11px;
}

.select:focus,
.input:focus,
.board-field-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(40, 120, 238, 0.11);
}

.field-block,
.range-row {
  margin-top: 18px;
}

.position-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.position-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 45px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-600);
  font-size: 9px;
  font-weight: 690;
}

.position-grid button span {
  color: var(--navy-800);
  font-size: 14px;
}

.position-grid button:hover:not(:disabled),
.position-grid button.is-active {
  border-color: #a8c9f6;
  background: var(--blue-100);
  color: var(--blue-600);
}

.position-grid .position-wide {
  grid-column: span 4;
  flex-direction: row;
  min-height: 36px;
}

.range-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.range-row .field-label {
  margin-bottom: 0;
}

.range-row output {
  color: var(--blue-600);
  font-size: 10px;
  font-weight: 760;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  margin: 5px 0 0;
  accent-color: var(--blue-600);
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.theme-swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-600);
  font-size: 9px;
  font-weight: 700;
}

.theme-swatch span {
  width: 13px;
  height: 13px;
  border: 1px solid #737e88;
  border-radius: 3px;
}

.theme-swatch--light span {
  background: #fff;
}

.theme-swatch--dark span {
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.theme-swatch--yellow span {
  background: #ffda4d;
  border-color: #c7a930;
}

.theme-swatch.is-active,
.theme-swatch:hover:not(:disabled) {
  border-color: #9fc4f5;
  background: var(--blue-100);
  color: var(--blue-600);
}

.section-rule {
  height: 1px;
  margin: 22px 0;
  background: var(--line-soft);
}

.board-fields {
  display: grid;
  gap: 7px;
}

.board-field-row {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 27px;
  gap: 5px;
}

.board-field-input {
  min-width: 0;
  min-height: 35px;
  padding: 0 8px;
  font-size: 10px;
}

.board-field-input--label {
  background: var(--surface-soft);
  font-weight: 730;
}

.board-field-delete {
  display: grid;
  place-items: center;
  width: 27px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #a36363;
  font-size: 15px;
}

.board-field-delete:hover:not(:disabled) {
  border-color: #e0b8b8;
  background: #fff7f7;
  color: var(--danger);
}

.helper-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.helper-actions .button {
  min-width: 0;
  padding-inline: 8px;
  font-size: 10px;
}

.setting-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.setting-card--column {
  align-items: stretch;
  flex-direction: column;
}

.setting-card strong,
.notice-box strong {
  display: block;
  color: var(--ink-800);
  font-size: 11px;
}

.setting-card p,
.notice-box p {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.55;
}

.inline-buttons {
  display: flex;
  gap: 5px;
}

.notice-box {
  margin-top: 18px;
  padding: 13px 14px;
  border-left: 3px solid var(--navy-800);
  background: #f4f6f8;
}

.notice-box--local {
  border-left-color: var(--success);
  background: #f2f8f5;
}

.notice-box--local strong {
  color: var(--success);
  letter-spacing: 0.08em;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.segmented-control button {
  min-height: 32px;
  border-radius: 6px;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 750;
}

.segmented-control button.is-active {
  background: #fff;
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
}

.export-summary {
  display: grid;
  gap: 4px;
  margin: 18px 0 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.export-summary span {
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 720;
}

.export-summary strong {
  color: var(--ink-800);
  font-size: 13px;
}

.export-summary small {
  color: var(--ink-500);
  font-size: 9px;
}

#exportAllBtn,
#exportProjectPanelBtn {
  margin-top: 7px;
}

.mobile-dock {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 26, 42, 0.52);
  backdrop-filter: blur(4px);
}

.modal {
  width: min(480px, 100%);
  max-height: min(720px, calc(100dvh - 40px));
  overflow: auto;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 22px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.modal-header h2 {
  font-size: 19px;
}

.diagnostic-list {
  display: grid;
  gap: 8px;
  padding: 18px 22px;
}

.diagnostic-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.diagnostic-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e7f5ed;
  color: var(--success);
  font-size: 11px;
  font-weight: 900;
}

.diagnostic-item.is-warning .diagnostic-icon {
  background: #fff3df;
  color: var(--warning);
}

.diagnostic-copy strong,
.diagnostic-copy span {
  display: block;
}

.diagnostic-copy strong {
  font-size: 11px;
}

.diagnostic-copy span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 9px;
}

.diagnostic-value {
  color: var(--ink-600);
  font-size: 9px;
  font-weight: 700;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 14px 22px 20px;
  border-top: 1px solid var(--line-soft);
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(7, 26, 42, 0.96);
  color: #fff;
  box-shadow: var(--shadow-md);
  animation: toast-in 180ms ease both;
}

.toast.is-leaving {
  animation: toast-out 170ms ease both;
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  font-size: 10px;
}

.toast strong,
.toast span {
  display: block;
}

.toast strong {
  font-size: 11px;
}

.toast span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  line-height: 1.45;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(6px); }
}

@media (max-width: 1180px) {
  :root {
    --rail-width: 218px;
    --panel-width: 306px;
  }

  .product-bar {
    grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  }

  .autosave-state {
    display: none;
  }

  .editor-toolbar {
    grid-template-columns: auto minmax(80px, 1fr) auto;
  }

  .toolbar-group--right .button--secondary {
    display: none;
  }

  .tool-button span {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 54px;
    --footer-height: 30px;
  }

  html,
  body {
    overflow: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100dvh;
    padding-bottom: 62px;
  }

  .product-bar {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr auto;
    min-height: var(--header-height);
    padding: 0 12px;
  }

  .product-status {
    display: none;
  }

  .top-actions .button:not(.icon-only) {
    display: none;
  }

  .workspace {
    display: block;
    min-height: calc(100dvh - var(--header-height) - 62px);
  }

  .photo-rail {
    position: fixed;
    inset: var(--header-height) 0 62px 0;
    z-index: 40;
    display: none;
    border: 0;
  }

  .photo-rail.is-mobile-open {
    display: flex;
  }

  .rail-heading {
    padding-top: 17px;
  }

  .rail-actions {
    grid-template-columns: 1fr 1fr;
  }

  .photo-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 7px;
  }

  .photo-item {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .photo-thumb {
    width: 68px;
    height: 58px;
  }

  .photo-item-state {
    display: none;
  }

  .editor-zone {
    grid-template-rows: 42px minmax(480px, calc(100dvh - var(--header-height) - 42px - var(--footer-height) - 62px)) var(--footer-height);
    min-height: calc(100dvh - var(--header-height) - 62px);
  }

  .editor-toolbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0 7px;
  }

  .toolbar-context,
  .toolbar-group--right .button--secondary {
    display: none;
  }

  .tool-button {
    min-width: 34px;
    justify-content: center;
    padding-inline: 6px;
  }

  #quickExportBtn {
    min-height: 31px;
  }

  .empty-stage {
    padding: 16px;
  }

  .empty-stage-card {
    padding: 28px 23px 24px;
  }

  .empty-stage-card h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .empty-stage-card > p:not(.eyebrow) {
    font-size: 11px;
  }

  .image-viewport {
    padding: 18px 12px 44px;
  }

  .canvas-hint {
    right: auto;
    left: 50%;
    width: max-content;
    transform: translateX(-50%);
  }

  .canvas-hint span:nth-child(2) {
    display: none;
  }

  .property-panel {
    position: fixed;
    inset: auto 0 62px 0;
    z-index: 45;
    display: none;
    grid-template-rows: 45px minmax(0, 66dvh);
    max-height: 72dvh;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 17px 17px 0 0;
    box-shadow: 0 -15px 45px rgba(7, 26, 42, 0.18);
  }

  .property-panel.is-mobile-open {
    display: grid;
  }

  .panel-scroll {
    overscroll-behavior: contain;
  }

  .panel-section {
    padding-bottom: 34px;
  }

  .workspace-footer {
    padding-inline: 8px;
  }

  .footer-meta span:not(#imageMeta) {
    display: none;
  }

  .mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 62px;
    padding: 6px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
  }

  .mobile-dock button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 8px;
    color: var(--ink-500);
    font-size: 9px;
    font-weight: 700;
  }

  .mobile-dock button span {
    font-size: 16px;
  }

  .mobile-dock button.is-active {
    color: var(--blue-600);
    background: var(--blue-100);
  }
}

@media (max-width: 520px) {
  .brand-divider {
    margin-inline: 9px;
  }

  .brand-product {
    font-size: 12px;
  }

  .empty-stage-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .desktop-only {
    display: none;
  }

  .helper-actions {
    grid-template-columns: 1fr;
  }

  .position-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .position-grid .position-wide {
    grid-column: span 2;
  }

  .board-field-row {
    grid-template-columns: 78px minmax(0, 1fr) 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* V0.1.2 · 3001 Labs unified product branding */
.brand-cluster {
  display: flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.brand-symbol,
.labs-promo-symbol {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  flex: 0 0 auto;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(145deg, #2878ee 0%, #145bbf 100%);
  box-shadow: 0 5px 14px rgba(3, 17, 30, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-symbol {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 9px;
}

.brand-symbol span,
.labs-promo-symbol i {
  display: block;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.96);
}

.brand-symbol span:nth-child(4),
.labs-promo-symbol i:nth-child(4) {
  background: #8ac2ff;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  line-height: 1;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 790;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 7px;
  font-weight: 720;
  letter-spacing: 0.13em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-site-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 130ms ease, border-color 130ms ease, background 130ms ease;
}

.brand-site-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.07);
}

.suite-menu {
  position: relative;
  z-index: 35;
}

.suite-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 720;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: color 130ms ease, border-color 130ms ease, background 130ms ease;
}

.suite-menu summary::-webkit-details-marker {
  display: none;
}

.suite-menu summary:hover,
.suite-menu[open] summary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.suite-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 4px);
  grid-template-rows: repeat(2, 4px);
  gap: 2px;
}

.suite-menu-grid i {
  display: block;
  border-radius: 1px;
  background: currentColor;
}

.suite-menu-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 292px;
  padding: 8px;
  border: 1px solid #cbd5df;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.99);
  color: var(--ink-950);
  box-shadow: 0 20px 55px rgba(4, 20, 34, 0.24), 0 3px 10px rgba(4, 20, 34, 0.12);
}

.suite-menu-panel::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 28px;
  width: 9px;
  height: 9px;
  border-top: 1px solid #cbd5df;
  border-left: 1px solid #cbd5df;
  background: #fff;
  transform: rotate(45deg);
}

.suite-menu-heading {
  display: grid;
  gap: 3px;
  padding: 9px 10px 10px;
  border-bottom: 1px solid var(--line-soft);
}

.suite-menu-heading strong {
  color: var(--navy-900);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.suite-menu-heading small {
  color: var(--ink-500);
  font-size: 9px;
}

.suite-link {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  margin-top: 3px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--ink-800);
  text-decoration: none;
}

.suite-link:hover {
  background: var(--surface-soft);
}

.suite-link--home {
  margin-top: 7px;
  background: #edf5ff;
}

.suite-link-code {
  display: grid;
  place-items: center;
  min-height: 28px;
  border: 1px solid #cbd8e5;
  border-radius: 7px;
  background: #fff;
  color: var(--blue-600);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.suite-link > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.suite-link strong,
.suite-link small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suite-link strong {
  font-size: 11px;
}

.suite-link small {
  color: var(--ink-500);
  font-size: 9px;
}

.suite-link b {
  color: var(--blue-600);
  font-size: 12px;
}

.labs-promo {
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 5px 9px;
  padding: 10px;
  border-color: #cad8e5;
  background: linear-gradient(145deg, #f8fbff 0%, #edf5fd 100%);
}

.labs-promo-symbol {
  grid-row: 1 / span 2;
  width: 31px;
  height: 31px;
  padding: 6px;
  border-radius: 8px;
  align-self: center;
}

.labs-promo-copy {
  gap: 2px;
}

.labs-promo-copy strong {
  overflow: hidden;
  color: var(--navy-900);
  font-size: 9px;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labs-promo-copy small {
  color: var(--ink-500);
  font-size: 7.5px;
  letter-spacing: 0.01em;
}

.labs-promo-domain {
  grid-column: 2;
  justify-self: start;
  color: var(--blue-600);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.labs-promo-domain b {
  font-weight: 900;
}

.empty-brand-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-850));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(7, 26, 42, 0.11);
  transition: transform 130ms ease, box-shadow 130ms ease;
}

.empty-brand-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 25px rgba(7, 26, 42, 0.17);
}

.empty-brand-monogram {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.065em;
}

.empty-brand-link > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.empty-brand-link strong {
  font-size: 10px;
}

.empty-brand-link small {
  color: rgba(255, 255, 255, 0.60);
  font-size: 8px;
}

.empty-brand-link b {
  color: #9dcbff;
  font-size: 9px;
  white-space: nowrap;
}

.footer-brand-link {
  color: var(--blue-600);
  font-weight: 720;
  text-decoration: none;
}

.footer-brand-link:hover {
  text-decoration: underline;
}

@media (max-width: 1320px) {
  .brand-site-link {
    display: none;
  }

  .suite-menu summary {
    padding-inline: 8px;
  }
}

@media (max-width: 1180px) {
  .brand-copy small {
    display: none;
  }

  .brand-symbol {
    width: 32px;
    height: 32px;
  }

  .suite-menu summary > span:last-child {
    display: none;
  }

  .suite-menu summary {
    width: 31px;
    padding: 0;
  }
}

@media (max-width: 900px) {
  .brand-cluster {
    gap: 7px;
  }

  .brand {
    gap: 8px;
  }

  .brand-symbol {
    width: 31px;
    height: 31px;
    padding: 6px;
    border-radius: 8px;
  }

  .brand-copy strong {
    font-size: 12px;
  }

  .suite-menu-panel {
    right: -37px;
    width: min(292px, calc(100vw - 24px));
  }

  .suite-menu-panel::before {
    right: 47px;
  }

  .footer-brand-link {
    margin-left: 8px;
  }
}

@media (max-width: 520px) {
  .brand-copy strong {
    font-size: 11px;
  }

  .empty-brand-link {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .empty-brand-link b {
    grid-column: 2;
  }
}

.brand-subtitle-mobile {
  display: none;
}

@media (max-width: 1180px) {
  .brand-copy small {
    display: block;
  }

  .brand-subtitle-desktop {
    display: none;
  }

  .brand-subtitle-mobile {
    display: inline;
  }
}

/* V0.1.2 final · BOARD 3001 / 3001 LABS brand refinements */
.brand-symbol {
  display: block;
  width: 36px;
  height: 36px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.brand-symbol img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-copy strong {
  letter-spacing: 0.025em;
}

.brand-copy small {
  letter-spacing: 0.115em;
}

.brand-site-link {
  border-color: rgba(155, 204, 255, 0.25);
  background: rgba(29, 102, 176, 0.14);
  color: #b9dcff;
}

.brand-site-link:hover {
  border-color: rgba(185, 220, 255, 0.52);
  background: rgba(44, 127, 210, 0.22);
}

.suite-menu-panel {
  max-height: calc(100dvh - 82px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.suite-link-code {
  letter-spacing: 0.055em;
}

.labs-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid rgba(116, 173, 229, 0.28);
  border-radius: 11px;
  background:
    radial-gradient(circle at 92% 7%, rgba(70, 145, 236, 0.35), transparent 36%),
    linear-gradient(145deg, #081a2e 0%, #103b67 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(7, 26, 42, 0.13);
}

.labs-promo:hover {
  border-color: rgba(148, 195, 241, 0.56);
  box-shadow: 0 14px 32px rgba(7, 26, 42, 0.20);
  transform: translateY(-1px);
}

.labs-promo-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.labs-promo-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy-950);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.labs-promo-label {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.54);
  font-size: 7px;
  font-weight: 780;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.labs-promo-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.labs-promo-copy strong {
  overflow: visible;
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: -0.025em;
  text-overflow: clip;
  white-space: normal;
}

.labs-promo-copy small {
  overflow: visible;
  color: rgba(255, 255, 255, 0.64);
  font-size: 8px;
  line-height: 1.55;
  text-overflow: clip;
  white-space: normal;
}

.labs-promo-domain {
  display: flex;
  grid-column: auto;
  align-items: center;
  justify-content: space-between;
  justify-self: stretch;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #b7d8ff;
  font-size: 9px;
  font-weight: 790;
  letter-spacing: 0.02em;
}

.labs-promo-domain b {
  font-size: 13px;
}

.empty-product-lockup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: -8px 0 28px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line-soft);
}

.empty-product-icon {
  display: block;
  width: 43px;
  height: 43px;
}

.empty-product-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.empty-product-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.empty-product-copy strong {
  color: var(--navy-950);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.045em;
}

.empty-product-copy small {
  overflow: hidden;
  color: var(--ink-500);
  font-size: 7.5px;
  font-weight: 760;
  letter-spacing: 0.105em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-preview-chip {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid #cbdbea;
  border-radius: 999px;
  background: #f3f8fd;
  color: #37617f;
  font-size: 7.5px;
  font-weight: 810;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.empty-brand-link {
  background:
    radial-gradient(circle at 92% 0%, rgba(64, 147, 237, 0.28), transparent 34%),
    linear-gradient(135deg, #081a2e, #103b67);
}

.empty-brand-monogram {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #fff;
  color: var(--navy-950);
  font-size: 12px;
  letter-spacing: -0.07em;
}

.footer-brand-link {
  color: #1769e0;
}

@media (max-width: 1180px) {
  .brand-symbol {
    width: 33px;
    height: 33px;
  }
}

@media (max-width: 900px) {
  .brand-symbol {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 9px;
  }

  .empty-product-lockup {
    margin-top: -4px;
  }
}

@media (max-width: 520px) {
  .empty-stage {
    padding: 10px;
  }

  .empty-stage-card {
    width: 100%;
    padding: 20px 18px 18px;
  }

  .empty-product-lockup {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    margin: 0 0 17px;
    padding-bottom: 13px;
  }

  .empty-product-icon {
    width: 38px;
    height: 38px;
  }

  .empty-product-copy strong {
    font-size: 12px;
  }

  .empty-product-copy small {
    font-size: 6.8px;
    letter-spacing: 0.075em;
  }

  .empty-preview-chip {
    grid-column: 2;
    justify-self: start;
    min-height: 20px;
    margin-top: -1px;
    font-size: 6.8px;
  }

  .empty-stage-card > p:not(.eyebrow) {
    margin: 13px 0 16px;
    line-height: 1.6;
  }

  .empty-stage-actions {
    margin-bottom: 13px;
  }

  .sample-card {
    padding: 11px;
  }

  .empty-brand-link {
    margin-top: 8px;
    padding: 9px 10px;
  }

  .empty-brand-monogram {
    width: 34px;
    height: 34px;
  }
}


/* Public beta release additions */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 500;
  padding: 9px 12px;
  border-radius: 7px;
  background: #fff;
  color: var(--navy-950);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.status-chip--network {
  color: #bcebd3;
  border-color: rgba(188, 235, 211, 0.32);
  background: rgba(95, 206, 160, 0.08);
}

.status-chip--network.is-offline {
  color: #f5d99c;
  border-color: rgba(245, 217, 156, 0.34);
  background: rgba(245, 217, 156, 0.09);
}

.install-button {
  border-color: rgba(157, 203, 255, 0.42) !important;
  color: #c9e4ff !important;
}

.local-privacy-note {
  margin: 8px 1px 0;
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.55;
}

.footer-legal-link {
  color: var(--ink-500);
  font-weight: 650;
  text-decoration: none;
}

.footer-legal-link:hover {
  color: var(--blue-600);
  text-decoration: underline;
}

.modal-data-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  border-top: 1px solid var(--line-soft);
  background: #fbfcfd;
}

.modal-data-actions > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.modal-data-actions strong {
  color: var(--ink-800);
  font-size: 10px;
}

.modal-data-actions span {
  color: var(--ink-500);
  font-size: 8.5px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .status-chip--network,
  .footer-legal-link,
  .footer-legal-separator {
    display: none;
  }
}

@media (max-width: 620px) {
  .status-chip--beta {
    display: none;
  }

  .modal-data-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
