:root {
  --bg: #efe8db;
  --paper: #fbf8f1;
  --paper-strong: #f5efdf;
  --ink: #21312a;
  --muted: #5e6b61;
  --line: rgba(33, 49, 42, 0.12);
  --moss: #5f7d4a;
  --moss-deep: #39513d;
  --clay: #b86d52;
  --sage: #9cb293;
  --gold: #e0c88e;
  --shadow: 0 24px 60px rgba(40, 34, 25, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(224, 200, 142, 0.35), transparent 28%),
    radial-gradient(circle at top right, rgba(184, 109, 82, 0.2), transparent 24%),
    linear-gradient(135deg, #efe6d6 0%, #e5ddce 45%, #f4ece0 100%);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}

body.studio-dark {
  color-scheme: dark;
  background:
    radial-gradient(circle at top left, rgba(117, 148, 95, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(184, 109, 82, 0.12), transparent 20%),
    linear-gradient(135deg, #0f1714 0%, #111c18 42%, #16231e 100%);
  color: #e7efe6;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

body.studio-dark ::placeholder {
  color: rgba(202, 214, 202, 0.5);
}

.app-shell {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 300px;
  min-height: 100vh;
  gap: 16px;
  padding: 16px;
}

.sidebar,
.workspace {
  min-width: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-left {
  position: static;
  overflow: visible;
  align-self: start;
}

.sidebar-rail {
  position: fixed;
  left: 16px;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  z-index: 24;
}

.sidebar-toggle {
  width: 48px;
  min-height: 48px;
  padding: 0;
  align-self: center;
}

.sidebar-toggle-icon {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.sidebar-rail-tabs {
  display: grid;
  gap: 8px;
}

.sidebar-rail-tab {
  min-height: 46px;
  padding: 8px 6px;
  border-radius: 18px;
  border: 1px solid rgba(33, 49, 42, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 180ms ease;
}

.sidebar-rail-tab:hover {
  transform: translateX(1px);
  box-shadow: 0 12px 24px rgba(40, 34, 25, 0.1);
}

.sidebar-rail-tab.active {
  color: var(--moss-deep);
  border-color: rgba(95, 125, 74, 0.45);
  background: linear-gradient(180deg, rgba(95, 125, 74, 0.18), rgba(255, 255, 255, 0.94));
  box-shadow: 0 12px 24px rgba(40, 34, 25, 0.08);
}

.sidebar-drawer {
  position: fixed;
  top: 16px;
  left: 80px;
  width: min(288px, calc(100vw - 420px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 20;
  transition: transform 180ms ease, opacity 180ms ease;
}

.sidebar-drawer::-webkit-scrollbar {
  width: 8px;
}

.sidebar-drawer::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(95, 125, 74, 0.24);
}

.left-sidebar-collapsed .sidebar-drawer {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-16px);
}

.workspace {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel,
.workspace-header,
.canvas-frame,
.brand-block {
  border: 1px solid rgba(33, 49, 42, 0.08);
  background: rgba(251, 248, 241, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.brand-block,
.panel,
.workspace-header,
.canvas-frame {
  padding: 18px;
}

.brand-block {
  background:
    linear-gradient(180deg, rgba(95, 125, 74, 0.1), transparent 60%),
    rgba(251, 248, 241, 0.92);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 700;
  line-height: 1.05;
}

h1 {
  font-size: 2.35rem;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.1rem;
}

.lede,
.section-heading p,
.header-copy p,
.inspector-empty,
.legend-empty,
.status-bar,
.shortcut-list strong {
  color: var(--muted);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.section-heading p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.42;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.header-copy h2 {
  max-width: 460px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sidebar-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 8px;
}

.sidebar-panel[hidden] {
  display: none;
}

.sidebar-tab {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(33, 49, 42, 0.1);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: 180ms ease;
}

.sidebar-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(40, 34, 25, 0.1);
}

.sidebar-tab.active {
  color: var(--moss-deep);
  border-color: rgba(95, 125, 74, 0.45);
  background: linear-gradient(180deg, rgba(95, 125, 74, 0.18), rgba(255, 255, 255, 0.94));
  box-shadow: 0 12px 24px rgba(40, 34, 25, 0.08);
}

.primary-button,
.ghost-button,
.tool-button,
.preset-card {
  border: 1px solid transparent;
  border-radius: 999px;
  transition: 180ms ease;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 10px 16px;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, var(--moss) 0%, var(--moss-deep) 100%);
  color: #fdfaf4;
  box-shadow: 0 14px 30px rgba(57, 81, 61, 0.22);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border-color: rgba(33, 49, 42, 0.12);
}

.primary-button:hover,
.ghost-button:hover,
.tool-button:hover,
.preset-card:hover,
.category-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(40, 34, 25, 0.12);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.project-drawer {
  overflow: hidden;
}

.project-drawer-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  cursor: pointer;
}

.project-drawer-summary::-webkit-details-marker {
  display: none;
}

.project-drawer-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.project-drawer-copy .eyebrow {
  margin-bottom: 0;
}

.project-drawer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.project-drawer-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(95, 125, 74, 0.12);
  color: var(--moss-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.drawer-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(33, 49, 42, 0.08);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 1.05rem;
  transition: transform 180ms ease;
}

.project-drawer[open] .drawer-chevron {
  transform: rotate(180deg);
}

.project-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(33, 49, 42, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.project-summary-chip strong {
  color: var(--ink);
}

.project-summary-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.project-drawer-content {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(33, 49, 42, 0.08);
}

.project-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-strip label,
.inspector-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.project-strip input,
.project-strip textarea,
.inspector-form input,
.inspector-form textarea,
.inspector-form select {
  width: 100%;
  border: 1px solid rgba(33, 49, 42, 0.12);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  padding: 11px 13px;
  color: var(--ink);
}

.notes-field {
  grid-column: 1 / -1;
}

.draw-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tool-button {
  cursor: pointer;
  padding: 14px 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(33, 49, 42, 0.1);
}

.tool-button-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--moss-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-button-compact {
  min-height: 88px;
  padding: 12px 10px;
}

.tool-button-compact strong {
  font-size: 0.95rem;
}

.tool-button-compact small {
  margin-top: 2px;
  font-size: 0.78rem;
}

.tool-button small,
.preset-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

.preset-card small + small {
  margin-top: 2px;
  font-size: 0.8rem;
}

.preset-empty {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(33, 49, 42, 0.08);
  color: var(--muted);
  line-height: 1.5;
}

.tool-button.active,
.preset-card.active {
  border-color: rgba(95, 125, 74, 0.45);
  background: linear-gradient(180deg, rgba(95, 125, 74, 0.16), rgba(255, 255, 255, 0.94));
}

.tool-actions,
.inspector-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.draft-style-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(33, 49, 42, 0.08);
}

.draft-style-panel[hidden] {
  display: none;
}

.draft-style-section + .draft-style-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(33, 49, 42, 0.08);
}

.draft-style-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.draft-style-heading strong {
  font-size: 0.92rem;
}

.draft-style-heading small {
  color: var(--muted);
  line-height: 1.4;
}

.segmented-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.segmented-button {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(33, 49, 42, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}

.segmented-button.active {
  color: var(--moss-deep);
  border-color: rgba(95, 125, 74, 0.45);
  background: linear-gradient(180deg, rgba(95, 125, 74, 0.18), rgba(255, 255, 255, 0.94));
  box-shadow: 0 12px 24px rgba(40, 34, 25, 0.1);
}

.segmented-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(40, 34, 25, 0.12);
}

.structure-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.structure-type-button {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 16px;
  border: 1px solid rgba(33, 49, 42, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: 180ms ease;
}

.structure-type-button strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.structure-type-button small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.structure-type-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(40, 34, 25, 0.12);
}

.structure-type-button.active {
  border-color: rgba(95, 125, 74, 0.45);
  background: linear-gradient(180deg, rgba(95, 125, 74, 0.18), rgba(255, 255, 255, 0.94));
  box-shadow: 0 12px 24px rgba(40, 34, 25, 0.1);
}

.structure-type-swatch {
  width: 32px;
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent),
    var(--swatch-fill, #efe6d4);
  border: 1px solid var(--swatch-stroke, #716453);
}

.stack-controls {
  display: grid;
  gap: 10px;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.search-field input {
  width: 100%;
  border: 1px solid rgba(33, 49, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(33, 49, 42, 0.1);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}

.category-pill.active {
  background: linear-gradient(180deg, rgba(95, 125, 74, 0.18), rgba(255, 255, 255, 0.94));
  border-color: rgba(95, 125, 74, 0.45);
  color: var(--moss-deep);
}

.preset-list {
  display: grid;
  gap: 10px;
}

.preset-section {
  display: grid;
  gap: 10px;
}

.preset-section + .preset-section {
  margin-top: 6px;
}

.preset-section-title {
  margin: 4px 0 0;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.preset-card {
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 241, 231, 0.92));
  border-color: rgba(33, 49, 42, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 14px 28px rgba(40, 34, 25, 0.06);
}

.preset-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.7), transparent 24%),
    linear-gradient(135deg, rgba(156, 178, 147, 0.12), transparent 54%);
  z-index: 0;
}

.preset-card > * {
  position: relative;
  z-index: 1;
}

.preset-card strong {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preset-card small:first-of-type {
  color: var(--moss-deep);
  font-style: italic;
}

.plant-mini-symbol,
.legend-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.98), rgba(236, 243, 226, 0.84) 55%, rgba(223, 232, 211, 0.74));
  border: 1px solid rgba(95, 125, 74, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 20px rgba(40, 34, 25, 0.08);
}

.plant-mini-symbol {
  width: 38px;
  height: 38px;
}

.legend-symbol {
  width: 50px;
  height: 50px;
}

.plant-mini-symbol svg,
.legend-symbol svg {
  display: block;
}

.shortcut-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.shortcut-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.shortcut-list span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(95, 125, 74, 0.14);
  color: var(--moss-deep);
  font-weight: 700;
}

.canvas-frame {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.workbench-toolbar {
  z-index: 6;
}

.workbench-tool-cluster {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(33, 49, 42, 0.08);
  background: rgba(247, 248, 244, 0.84);
  box-shadow: 0 10px 24px rgba(40, 34, 25, 0.08);
}

.workspace-draw-toolbar,
.workspace-tool-grid {
  margin-bottom: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.workspace-tool-grid {
  grid-template-columns: none;
}

.canvas-overlay-toolbar {
  position: absolute;
  top: 40px;
  left: 50px;
  right: 118px;
  pointer-events: none;
}

.canvas-toolbar-bar {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.canvas-toolbar-main {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 24px;
  border: 1px solid rgba(33, 49, 42, 0.08);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 30px rgba(40, 34, 25, 0.12);
  pointer-events: auto;
}

.canvas-toolbar-view {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: auto;
}

.measurement-calibration-panel {
  flex: 1 1 100%;
}

.canvas-tool-cluster {
  flex: 0 0 auto;
}

.canvas-tool-row {
  flex: 0 0 auto;
}

.workbench-label {
  display: none;
}

.toolbar-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.toolbar-tool-button strong {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.toolbar-tool-meta {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toolbar-option-strip {
  margin-top: 0;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(33, 49, 42, 0.08);
  background: rgba(247, 248, 244, 0.84);
  box-shadow: 0 10px 24px rgba(40, 34, 25, 0.08);
}

.toolbar-field-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.toolbar-context-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(95, 125, 74, 0.12);
  color: var(--moss-deep);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.toolbar-context-pill span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.toolbar-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.toolbar-field span {
  white-space: nowrap;
}

.toolbar-field select {
  min-width: 90px;
  max-width: 180px;
  border: 1px solid rgba(33, 49, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 9px;
  color: var(--ink);
}

.toolbar-note {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.workbench-actions {
  margin-top: 0;
  margin-left: 0;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(33, 49, 42, 0.08);
  background: rgba(247, 248, 244, 0.84);
  box-shadow: 0 10px 24px rgba(40, 34, 25, 0.08);
}

.workbench-actions .ghost-button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.toolbar-history {
  margin-top: 0;
  margin-left: 0;
  flex: 0 0 auto;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(33, 49, 42, 0.08);
  background: rgba(247, 248, 244, 0.84);
  box-shadow: 0 10px 24px rgba(40, 34, 25, 0.08);
}

.toolbar-history .ghost-button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.canvas-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}

.canvas-meta-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.workspace-drawer-toggle {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.78rem;
}

.snap-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--muted);
}

.canvas-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.canvas-toggle-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(33, 49, 42, 0.08);
  box-shadow: 0 14px 28px rgba(40, 34, 25, 0.12);
}

.canvas-toggle-group-toolbar {
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.canvas-tool-button {
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
}

.zoom-level {
  min-width: 56px;
  text-align: center;
  color: var(--moss-deep);
}

.scale-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.scale-control input {
  width: 48px;
  border: 1px solid rgba(33, 49, 42, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  padding: 6px 8px;
  text-align: center;
  color: var(--ink);
}

.canvas-calibrate-button {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.78rem;
}

.canvas-calibrate-button.active {
  color: var(--moss-deep);
  border-color: rgba(95, 125, 74, 0.38);
  background: linear-gradient(180deg, rgba(95, 125, 74, 0.18), rgba(255, 255, 255, 0.92));
}

.measurement-calibration-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 20px;
  border: 1px solid rgba(33, 49, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 24px rgba(40, 34, 25, 0.08);
}

.measurement-calibration-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  color: var(--muted);
  font-size: 0.75rem;
}

.measurement-calibration-copy strong {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.measurement-calibration-fields {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.measurement-calibration-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(95, 125, 74, 0.12);
  color: var(--moss-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.measurement-calibration-input {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.measurement-calibration-input input {
  width: 72px;
  border: 1px solid rgba(33, 49, 42, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  padding: 6px 10px;
  text-align: center;
  color: var(--ink);
}

.measurement-calibration-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.measurement-calibration-actions .ghost-button {
  min-height: 32px;
  padding: 7px 12px;
  font-size: 0.74rem;
}

.canvas-shell {
  position: relative;
  min-height: 560px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(33, 49, 42, 0.1);
  background:
    linear-gradient(180deg, rgba(156, 178, 147, 0.16), rgba(156, 178, 147, 0.04)),
    repeating-linear-gradient(
      90deg,
      rgba(95, 125, 74, 0.04) 0,
      rgba(95, 125, 74, 0.04) 1px,
      transparent 1px,
      transparent 24px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(95, 125, 74, 0.04) 0,
      rgba(95, 125, 74, 0.04) 1px,
      transparent 1px,
      transparent 24px
    ),
    linear-gradient(180deg, #f5f1e6, #f9f6f0);
}

#planner-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.canvas-nav-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.canvas-pan-rail,
.canvas-zoom-dock {
  pointer-events: auto;
}

.canvas-pan-rail {
  position: absolute;
  border: 1px solid rgba(33, 49, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 30px rgba(40, 34, 25, 0.12);
}

.canvas-pan-rail-horizontal {
  left: 16px;
  right: 112px;
  bottom: 16px;
  height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
}

.canvas-pan-rail-vertical {
  top: 16px;
  right: 16px;
  bottom: 70px;
  width: 30px;
  padding: 10px 6px;
  border-radius: 999px;
  display: flex;
  justify-content: center;
}

.canvas-pan-range {
  width: 100%;
  margin: 0;
  background: transparent;
  accent-color: var(--moss);
}

.canvas-pan-range-vertical {
  width: 14px;
  height: 100%;
  writing-mode: vertical-lr;
  direction: rtl;
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
}

.canvas-pan-range-horizontal {
  height: 16px;
}

.canvas-zoom-dock {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(33, 49, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 32px rgba(40, 34, 25, 0.12);
}

.canvas-tool-button-fit {
  min-width: 56px;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.94rem;
}

#canvas-detail {
  text-align: right;
  white-space: nowrap;
}

.reference-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(33, 49, 42, 0.08);
}

.reference-name {
  font-size: 0.94rem;
  line-height: 1.4;
}

.range-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.reference-panel input[type="range"],
.inspector-form input[type="range"] {
  width: 100%;
}

.support-copy,
.save-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.legend-list {
  display: grid;
  gap: 16px;
}

.layer-list {
  display: grid;
  gap: 10px;
}

.layer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 242, 232, 0.92));
  border: 1px solid rgba(33, 49, 42, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 12px 24px rgba(40, 34, 25, 0.05);
}

.layer-row-muted {
  opacity: 0.66;
}

.layer-row-copy {
  display: grid;
  gap: 4px;
}

.layer-row-copy strong {
  display: block;
}

.layer-row-copy small {
  color: var(--muted);
  line-height: 1.35;
}

.layer-row-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.layer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 49, 42, 0.08);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.layer-toggle input {
  margin: 0;
}

.layer-toggle-static {
  opacity: 0.55;
}

.legend-group {
  display: grid;
  gap: 10px;
}

.legend-group + .legend-group {
  padding-top: 14px;
  border-top: 1px solid rgba(33, 49, 42, 0.08);
}

.legend-group-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.legend-group-header strong {
  display: block;
  color: var(--legend-ink, var(--ink));
  font-size: 0.95rem;
}

.legend-group-header small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.legend-group-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--legend-accent, rgba(95, 125, 74, 0.12));
  color: var(--legend-ink, var(--moss-deep));
  font-weight: 800;
}

.legend-group-cards {
  display: grid;
  gap: 10px;
}

.legend-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 242, 232, 0.92));
  border: 1px solid rgba(33, 49, 42, 0.08);
  border-left: 5px solid var(--legend-accent-strong, rgba(95, 125, 74, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 12px 24px rgba(40, 34, 25, 0.05);
}

.legend-card strong,
.tool-button strong {
  display: block;
}

.legend-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.legend-count {
  min-width: 50px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--legend-accent, rgba(95, 125, 74, 0.12));
  font-weight: 800;
  color: var(--legend-ink, var(--moss-deep));
  text-align: center;
}

.inspector-form {
  display: grid;
  gap: 12px;
}

.inspector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inspector-empty,
.legend-empty {
  padding: 16px 0;
  line-height: 1.5;
}

.workspace-summary {
  display: grid;
  gap: 12px;
}

.save-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(95, 125, 74, 0.12);
  color: var(--moss-deep);
  font-size: 0.86rem;
  font-weight: 800;
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 49, 42, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.inspector-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(95, 125, 74, 0.12);
  color: var(--moss-deep);
  font-size: 0.86rem;
  font-weight: 700;
}

.inspector-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(33, 49, 42, 0.15);
}

body.studio-dark .panel,
body.studio-dark .workspace-header,
body.studio-dark .canvas-frame,
body.studio-dark .brand-block {
  border-color: rgba(231, 239, 230, 0.08);
  background: rgba(19, 29, 25, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

body.studio-dark .brand-block {
  background:
    linear-gradient(180deg, rgba(95, 125, 74, 0.16), transparent 60%),
    rgba(20, 30, 26, 0.94);
}

body.studio-dark .lede,
body.studio-dark .section-heading p,
body.studio-dark .header-copy p,
body.studio-dark .inspector-empty,
body.studio-dark .legend-empty,
body.studio-dark .status-bar,
body.studio-dark .shortcut-list strong,
body.studio-dark .project-summary-note,
body.studio-dark .support-copy,
body.studio-dark .save-detail,
body.studio-dark .range-row,
body.studio-dark .search-field,
body.studio-dark .scale-control,
body.studio-dark .project-strip label,
body.studio-dark .inspector-form label {
  color: #b5c3b6;
}

body.studio-dark .eyebrow,
body.studio-dark .preset-section-title {
  color: #d99579;
}

body.studio-dark .sidebar-tab,
body.studio-dark .sidebar-rail-tab,
body.studio-dark .ghost-button,
body.studio-dark .tool-button,
body.studio-dark .preset-card,
body.studio-dark .category-pill,
body.studio-dark .segmented-button {
  background: rgba(31, 44, 38, 0.88);
  border-color: rgba(231, 239, 230, 0.08);
  color: #dce7dc;
}

body.studio-dark .preset-card {
  background:
    linear-gradient(180deg, rgba(31, 44, 38, 0.92), rgba(22, 32, 27, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 30px rgba(0, 0, 0, 0.22);
}

body.studio-dark .preset-card::after {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.04), transparent 24%),
    linear-gradient(135deg, rgba(95, 125, 74, 0.2), transparent 56%);
}

body.studio-dark .sidebar-tab.active,
body.studio-dark .sidebar-rail-tab.active,
body.studio-dark .tool-button.active,
body.studio-dark .preset-card.active,
body.studio-dark .category-pill.active,
body.studio-dark .segmented-button.active {
  color: #ecf5ea;
  border-color: rgba(156, 190, 144, 0.42);
  background: linear-gradient(180deg, rgba(95, 125, 74, 0.34), rgba(28, 39, 34, 0.96));
}

body.studio-dark .primary-button:hover,
body.studio-dark .ghost-button:hover,
body.studio-dark .tool-button:hover,
body.studio-dark .preset-card:hover,
body.studio-dark .category-pill:hover,
body.studio-dark .sidebar-tab:hover,
body.studio-dark .sidebar-rail-tab:hover,
body.studio-dark .segmented-button:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

body.studio-dark .project-drawer-badge,
body.studio-dark .save-badge,
body.studio-dark .summary-chip,
body.studio-dark .inspector-tag,
body.studio-dark .shortcut-list span,
body.studio-dark .toolbar-context-pill {
  background: rgba(95, 125, 74, 0.18);
  color: #d7e8d2;
}

body.studio-dark .drawer-chevron,
body.studio-dark .project-summary-chip,
body.studio-dark .canvas-toolbar-main,
body.studio-dark .workbench-tool-cluster,
body.studio-dark .draft-style-panel,
body.studio-dark .workbench-actions,
body.studio-dark .toolbar-history,
body.studio-dark .measurement-calibration-card,
body.studio-dark .reference-panel,
body.studio-dark .layer-row,
body.studio-dark .legend-card,
body.studio-dark .canvas-toggle-group,
body.studio-dark .status-bar {
  background: rgba(24, 35, 31, 0.86);
  border-color: rgba(231, 239, 230, 0.08);
}

body.studio-dark .legend-card {
  background:
    linear-gradient(180deg, rgba(24, 35, 31, 0.92), rgba(18, 28, 24, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 32px rgba(0, 0, 0, 0.2);
}

body.studio-dark .layer-row {
  background:
    linear-gradient(180deg, rgba(24, 35, 31, 0.92), rgba(18, 28, 24, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 32px rgba(0, 0, 0, 0.2);
}

body.studio-dark .legend-group + .legend-group {
  border-top-color: rgba(231, 239, 230, 0.08);
}

body.studio-dark .legend-group-header small {
  color: #afbfaf;
}

body.studio-dark .layer-row-copy small {
  color: #afbfaf;
}

body.studio-dark .plant-mini-symbol,
body.studio-dark .legend-symbol {
  background:
    radial-gradient(circle at 34% 30%, rgba(73, 96, 83, 0.96), rgba(35, 48, 42, 0.9) 56%, rgba(23, 34, 29, 0.94));
  border-color: rgba(156, 190, 144, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.24);
}

body.studio-dark .canvas-pan-rail,
body.studio-dark .canvas-zoom-dock {
  background: rgba(24, 35, 31, 0.92);
  border-color: rgba(231, 239, 230, 0.08);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}

body.studio-dark .draft-style-section + .draft-style-section {
  border-top-color: rgba(231, 239, 230, 0.08);
}

body.studio-dark .project-summary-chip strong,
body.studio-dark .legend-card strong,
body.studio-dark .tool-button strong,
body.studio-dark .structure-type-button strong,
body.studio-dark .zoom-level,
body.studio-dark h1,
body.studio-dark h2,
body.studio-dark h3 {
  color: #edf4ec;
}

body.studio-dark .legend-card small,
body.studio-dark .preset-card small,
body.studio-dark .structure-type-button small {
  color: #afbfaf;
}

body.studio-dark .layer-toggle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(231, 239, 230, 0.08);
  color: #d7e8d2;
}

body.studio-dark .workbench-label {
  color: #c5d0c4;
}

body.studio-dark .sidebar-toggle-icon {
  color: #ecf3eb;
}

body.studio-dark .canvas-pan-range {
  accent-color: #9cb293;
}

body.studio-dark .toolbar-tool-meta,
body.studio-dark .tool-button-kicker {
  color: #d99579;
}

body.studio-dark .toolbar-context-pill span,
body.studio-dark .toolbar-note {
  color: #b5c3b6;
}

body.studio-dark .measurement-calibration-copy,
body.studio-dark .measurement-calibration-input {
  color: #b5c3b6;
}

body.studio-dark .measurement-calibration-copy strong {
  color: #edf4ec;
}

body.studio-dark .measurement-calibration-chip {
  background: rgba(95, 125, 74, 0.24);
  color: #d7e8d2;
}

body.studio-dark .toolbar-field {
  color: #cdd7cd;
}

body.studio-dark .structure-type-button {
  background: rgba(31, 44, 38, 0.88);
  border-color: rgba(231, 239, 230, 0.08);
  color: #dce7dc;
}

body.studio-dark .structure-type-button.active {
  color: #ecf5ea;
  border-color: rgba(156, 190, 144, 0.42);
  background: linear-gradient(180deg, rgba(95, 125, 74, 0.34), rgba(28, 39, 34, 0.96));
}

body.studio-dark .structure-type-button:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

body.studio-dark .search-field input,
body.studio-dark .project-strip input,
body.studio-dark .project-strip textarea,
body.studio-dark .inspector-form input,
body.studio-dark .inspector-form textarea,
body.studio-dark .inspector-form select,
body.studio-dark .scale-control input,
body.studio-dark .measurement-calibration-input input,
body.studio-dark .toolbar-field select {
  background: rgba(14, 22, 19, 0.94);
  border-color: rgba(231, 239, 230, 0.1);
  color: #ecf3eb;
}

body.studio-dark .canvas-calibrate-button.active {
  color: #edf4ec;
  border-color: rgba(156, 190, 144, 0.36);
  background: linear-gradient(180deg, rgba(95, 125, 74, 0.34), rgba(28, 39, 34, 0.96));
}

body.studio-dark .canvas-shell {
  border-color: rgba(231, 239, 230, 0.08);
  background:
    linear-gradient(180deg, rgba(22, 34, 29, 0.68), rgba(18, 26, 23, 0.5)),
    repeating-linear-gradient(
      90deg,
      rgba(165, 193, 152, 0.04) 0,
      rgba(165, 193, 152, 0.04) 1px,
      transparent 1px,
      transparent 24px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(165, 193, 152, 0.04) 0,
      rgba(165, 193, 152, 0.04) 1px,
      transparent 1px,
      transparent 24px
    ),
    linear-gradient(180deg, #19211e, #111715);
}

body.studio-dark #canvas-detail {
  color: #b9c7ba;
}

@media (max-width: 1400px) {
  .app-shell {
    grid-template-columns: 244px minmax(0, 1fr);
  }

  .sidebar-right {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .workspace {
    order: 1;
  }

  .sidebar-left {
    order: 2;
  }

  .sidebar-right {
    order: 3;
  }

  .sidebar-right,
  .sidebar-left {
    display: flex;
  }

  .sidebar-left {
    position: static;
    overflow: visible;
  }

  .sidebar-rail {
    display: none;
  }

  .sidebar-drawer {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .workspace-header,
  .canvas-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .canvas-overlay-toolbar {
    top: 18px;
    left: 16px;
    right: 16px;
  }

  .canvas-toolbar-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .canvas-toolbar-main,
  .canvas-toolbar-view {
    width: 100%;
  }

  .canvas-toolbar-view {
    display: flex;
    justify-content: flex-start;
  }

  .project-drawer-summary {
    flex-direction: column;
  }

  .project-drawer-meta {
    width: 100%;
    justify-content: space-between;
  }

  .project-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 14px;
  }

  .sidebar-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zoom-controls,
  .canvas-toggle-group {
    width: 100%;
    border-radius: 22px;
  }

  .canvas-pan-rail-horizontal {
    right: 16px;
    bottom: 72px;
  }

  .canvas-pan-rail-vertical {
    top: auto;
    right: 16px;
    bottom: 124px;
    height: 148px;
  }

  .status-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  #canvas-detail {
    white-space: normal;
    text-align: left;
  }

  .project-strip {
    grid-template-columns: 1fr;
  }

  .canvas-overlay-toolbar {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .canvas-toolbar-main {
    padding: 7px 8px;
    gap: 8px;
  }

  .draw-toolbar,
  .toolbar-field-row,
  .inspector-grid {
    width: 100%;
  }

  .workbench-tool-cluster,
  .toolbar-option-strip,
  .workbench-actions,
  .toolbar-history {
    max-width: 100%;
  }

  .canvas-toolbar-view .canvas-toggle-group {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .measurement-calibration-card {
    width: 100%;
  }

  .measurement-calibration-actions {
    margin-left: 0;
  }

  .toolbar-field {
    width: 100%;
    justify-content: space-between;
  }

  .toolbar-field select {
    min-width: 0;
    width: min(100%, 220px);
  }

  .header-actions {
    justify-content: flex-start;
  }
}

.client-review-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 250, 243, 0.08);
}

.client-review-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.client-review-head strong {
  font-size: 0.95rem;
  color: #f8f1df;
}

.client-review-head span {
  color: rgba(233, 224, 204, 0.74);
  font-size: 0.84rem;
}

.client-suggestion-field textarea {
  min-height: 104px;
}

.client-review-actions {
  margin-top: 10px;
}

.client-suggestion-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.client-suggestion-card {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.05);
  border: 1px solid rgba(255, 250, 243, 0.08);
}

.client-suggestion-card strong {
  display: block;
  margin-bottom: 4px;
  color: #fff8ea;
}

.client-suggestion-meta {
  display: block;
  margin-bottom: 8px;
  color: rgba(233, 224, 204, 0.62);
  font-size: 0.8rem;
}

.client-suggestion-card p {
  margin: 0;
  color: rgba(248, 241, 223, 0.9);
  line-height: 1.5;
  white-space: pre-wrap;
}

.client-suggestion-empty {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.04);
  color: rgba(233, 224, 204, 0.7);
  font-size: 0.86rem;
}

body.client-mode .sidebar-left,
body.client-mode .canvas-overlay-toolbar,
body.client-mode .project-drawer-content,
body.client-mode #clear-autosave,
body.client-mode [data-right-tab="layers"],
body.client-mode [data-right-panel="layers"],
body.client-mode .inspector-actions,
body.client-mode #new-plan,
body.client-mode #save-plan,
body.client-mode #import-plan,
body.client-mode #export-pdf,
body.client-mode #workspace-drawer-toggle {
  display: none !important;
}

body.client-mode .app-shell {
  grid-template-columns: minmax(0, 1fr) 320px;
}

body.client-mode .workspace-header {
  align-items: flex-start;
}

body.client-mode .project-drawer {
  pointer-events: none;
}

body.client-mode .project-drawer-summary {
  cursor: default;
}

body.client-mode .project-drawer input,
body.client-mode .project-drawer textarea {
  opacity: 0.72;
}

body.client-mode #planner-canvas [data-item-id] {
  cursor: pointer;
}

body.client-mode .canvas-frame {
  min-height: 0;
}

body.client-mode .workspace {
  min-width: 0;
}

@media (max-width: 1080px) {
  body.client-mode .app-shell {
    grid-template-columns: 1fr;
  }
}
