@font-face {
  font-family: "CandlepinLaser";
  src: url("../public/fonts/Candlepin-Laser.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "SkywalkLaser";
  src: url("../public/fonts/SkywalkLaserRegular.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Somekind";
  src: url("../public/fonts/Somekind.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #1c2024;
  --muted: #66727f;
  --line: #d8dde3;
  --panel: #ffffff;
  --page: #f3f5f7;
  --blue: #446f8b;
  --white-acrylic: #f8fbfc;
  --button-enabled: #007b78;
  --button-enabled-hover: #006764;
  --button-enabled-active: #005756;
  --button-disabled: #7f98a8;
  --button-text: #ffffff;
  --button-border: #007b78;
  --button-border-hover: #006764;
  --button-border-active: #004b49;
  --button-border-disabled: #7f98a8;
  --button-icon: #ffffff;
  --button-focus: #6b9fbe;
  --button-radius: 999px;
  --button-shadow-active: inset 0 2px 0 rgba(16, 45, 52, 0.22);
  --button-pressed-translate-y: 1px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #fff;
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

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

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

.shared-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(68, 111, 139, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(22, 51, 65, 0.96) 0%, rgba(29, 58, 73, 0.98) 100%);
}

.shared-auth-gate[hidden] {
  display: none;
}

.shared-auth-form[hidden] {
  display: none;
}

.shared-auth-card {
  width: min(460px, 100%);
  padding: 28px;
  background: rgba(252, 254, 255, 0.98);
  border: 1px solid rgba(33, 73, 93, 0.16);
  border-radius: 18px;
  box-shadow: 0 24px 44px rgba(14, 33, 41, 0.24);
}

.shared-auth-eyebrow {
  margin: 0 0 10px;
  color: #2b6174;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shared-auth-card h1 {
  margin: 0;
  font-size: 1.65rem;
}

.shared-auth-message {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.shared-auth-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.shared-auth-actions {
  display: flex;
  justify-content: flex-start;
}

.shared-auth-error {
  margin: 14px 0 0;
  color: #a53a28;
  font-weight: 600;
}

.app-shell[data-nav-collapsed="true"] {
  grid-template-columns: 84px minmax(0, 1fr);
}

.workspace-nav {
  display: grid;
  grid-template-rows: repeat(7, auto) 1fr auto;
  gap: 10px;
  padding: 14px 10px;
  background: linear-gradient(180deg, #163341 0%, #21495d 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.workspace-nav-toggle,
.workspace-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: #ecf6fb;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
}

.workspace-nav-toggle {
  justify-content: flex-start;
}

.workspace-nav-toggle:hover:not(:disabled),
.workspace-nav-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.workspace-nav-toggle:focus-visible,
.workspace-nav-item:focus-visible {
  outline: 2px solid rgba(195, 230, 255, 0.95);
  outline-offset: 2px;
}

.workspace-nav-item.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.workspace-nav-toggle-icon,
.workspace-nav-icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.workspace-nav-toggle-icon::before,
.workspace-nav-toggle-icon::after,
.workspace-nav-icon::before,
.workspace-nav-icon::after {
  content: "";
  position: absolute;
}

.workspace-nav-toggle-icon::before {
  top: 4px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.workspace-nav-toggle-icon::after {
  display: none;
}

.app-shell[data-nav-collapsed="true"] .workspace-nav-toggle-icon::before {
  transform: rotate(225deg);
}

.workspace-nav-icon-orders::before {
  left: 4px;
  right: 3px;
  top: 4px;
  bottom: 2px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.workspace-nav-icon-orders::after {
  left: 7px;
  top: 2px;
  width: 8px;
  height: 5px;
  background: currentColor;
  border-radius: 2px 2px 1px 1px;
}

.workspace-nav-icon-database-orders::before {
  left: 2px;
  right: 7px;
  top: 3px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50% / 18%;
  box-shadow: inset 0 4px 0 -2px currentColor, inset 0 -4px 0 -2px currentColor;
}

.workspace-nav-icon-database-orders::after {
  right: 1px;
  top: 5px;
  width: 6px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.workspace-nav-icon-presets::before {
  left: 2px;
  right: 2px;
  top: 4px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.workspace-nav-icon-presets::after {
  left: 5px;
  top: 2px;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 6px 5px 0 currentColor, -2px 10px 0 currentColor;
}

.workspace-nav-icon-fonts::before {
  content: "A";
  left: 2px;
  top: -2px;
  width: 14px;
  height: 16px;
  color: currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.workspace-nav-icon-fonts::after {
  left: 3px;
  right: 3px;
  bottom: 1px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.workspace-nav-icon-fixed-designs::before {
  inset: 2px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.workspace-nav-icon-fixed-designs::after {
  left: 5px;
  bottom: 4px;
  width: 10px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(0 100%, 32% 48%, 50% 68%, 73% 24%, 100% 100%);
}

.workspace-nav-icon-size-guide::before {
  inset: 4px 1px 3px 1px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.workspace-nav-icon-size-guide::after {
  left: 5px;
  top: 6px;
  width: 2px;
  height: 5px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 4px 0 0 currentColor, 8px 0 0 currentColor, 2px 4px 0 currentColor, 6px 4px 0 currentColor;
}

.workspace-nav-spacer {
  min-height: 0;
}

.workspace-nav-item-logout {
  margin-top: auto;
}

.workspace-nav-icon-logout::before {
  left: 1px;
  top: 3px;
  width: 8px;
  height: 12px;
  border: 2px solid currentColor;
  border-right: 0;
  border-radius: 2px 0 0 2px;
}

.workspace-nav-icon-logout::after {
  right: 1px;
  top: 5px;
  width: 13px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(0 35%, 62% 35%, 62% 0, 100% 50%, 62% 100%, 62% 65%, 0 65%);
}

.workspace-nav-label {
  min-width: 0;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
}

.app-shell[data-nav-collapsed="true"] .workspace-nav {
  justify-items: center;
}

.app-shell[data-nav-collapsed="true"] .workspace-nav-toggle,
.app-shell[data-nav-collapsed="true"] .workspace-nav-item {
  justify-content: center;
  padding: 0;
}

.app-shell[data-nav-collapsed="true"] .workspace-nav-label {
  display: none;
}

.workspace-stage,
.workspace-view {
  min-width: 0;
  min-height: 0;
}

.workspace-stage {
  overflow: hidden;
}

.workspace-view {
  display: grid;
  height: 100%;
}

.workspace-view[hidden] {
  display: none;
}

.production-workspace {
  position: relative;
  display: grid;
  grid-template-columns: clamp(320px, 27vw, 520px) minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
}

.initial-batch-loading {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: clamp(320px, 27vw, 520px) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: #fff;
}

.initial-batch-loading[hidden] {
  display: none;
}

.initial-loading-batch {
  display: grid;
  grid-template-rows: auto auto auto repeat(4, 88px);
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 18px 16px 16px;
  background: #fbfcfd;
  border-right: 1px solid var(--line);
}

.initial-loading-editor {
  display: grid;
  grid-template-rows: auto 260px auto;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 16px 22px 22px 24px;
  background: #fff;
}

.initial-loading-header,
.initial-loading-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}

.initial-loading-stats,
.initial-loading-controls {
  display: grid;
  gap: 10px;
}

.initial-loading-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.initial-loading-search {
  height: 36px;
}

.order-skeleton-row,
.skeleton-panel,
.skeleton-box {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
}

.order-skeleton-row {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 12px 14px;
  border-left: 4px solid #dce6ea;
  border-radius: 12px;
}

.skeleton-panel {
  min-height: 0;
  border-radius: 12px;
}

.skeleton-box {
  height: 56px;
  border-radius: 12px;
}

.skeleton-line,
.skeleton-pill {
  display: block;
  overflow: hidden;
  position: relative;
  background: #dfe7eb;
}

.skeleton-line {
  width: 100%;
  height: 12px;
  border-radius: 999px;
}

.skeleton-line-title {
  width: 48%;
  height: 22px;
}

.skeleton-line-medium {
  width: 64%;
}

.skeleton-line-short {
  width: 42%;
}

.skeleton-pill {
  flex: 0 0 72px;
  width: 72px;
  height: 34px;
  border-radius: 999px;
}

.initial-batch-loading .skeleton-line::after,
.initial-batch-loading .skeleton-pill::after,
.initial-batch-loading .skeleton-box::after,
.initial-batch-loading .skeleton-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.64), transparent);
  transform: translateX(-100%);
  animation: skeleton-sweep 1.3s ease-in-out infinite;
}

.skeleton-box,
.skeleton-panel {
  position: relative;
  overflow: hidden;
}

@keyframes skeleton-sweep {
  100% {
    transform: translateX(100%);
  }
}

.orders-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  padding: 22px 16px 16px;
  background: #fbfcfd;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.batch-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.batch-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.batch-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #f7fbfd;
  background: linear-gradient(180deg, #2f7589 0%, #245d70 100%);
  border: 1px solid #1f5668;
  border-radius: var(--button-radius);
  box-shadow: 0 10px 20px rgba(36, 93, 112, 0.18);
  font-size: 0.88rem;
  font-weight: 700;
}

.batch-primary-action:hover:not(:disabled) {
  background: linear-gradient(180deg, #367f95 0%, #286578 100%);
  border-color: #1d5161;
}

.batch-primary-action:active:not(:disabled) {
  background: var(--button-enabled-active);
  border-color: var(--button-border-active);
  box-shadow: var(--button-shadow-active);
  transform: translateY(var(--button-pressed-translate-y));
}

.batch-primary-action:focus-visible {
  outline: 2px solid var(--button-focus);
  outline-offset: 2px;
}

.batch-primary-action .batch-tool-icon {
  color: currentColor;
}

.workspace-tools-menu,
.batch-tools-menu,
.orders-tools-menu,
.editor-tools-menu,
.database-order-item-menu {
  position: relative;
}

.batch-header .batch-tools-menu {
  position: static;
}

.batch-header .batch-tools-popover {
  max-width: min(100%, calc(100vw - 32px));
}

.batch-header .batch-tools-popover .batch-tools-actions {
  width: 100%;
  min-width: 0;
}

.batch-header .batch-tools-popover .batch-tool-button {
  white-space: normal;
}

.workspace-tools-toggle,
.batch-tools-toggle,
.orders-tools-toggle,
.editor-tools-toggle,
.database-order-item-menu-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  list-style: none;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
}

.workspace-tools-toggle::-webkit-details-marker,
.batch-tools-toggle::-webkit-details-marker,
.orders-tools-toggle::-webkit-details-marker,
.editor-tools-toggle::-webkit-details-marker,
.database-order-item-menu-toggle::-webkit-details-marker {
  display: none;
}

.workspace-tools-toggle::before,
.batch-tools-toggle::before,
.orders-tools-toggle::before,
.editor-tools-toggle::before,
.database-order-item-menu-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--muted);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: -8px 0 0 var(--muted), 8px 0 0 var(--muted);
}

.workspace-tools-popover,
.batch-tools-popover,
.editor-tools-popover,
.database-order-item-menu-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  display: grid;
  gap: 14px;
  width: max-content;
  min-width: 180px;
  max-width: calc(100vw - 32px);
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(28, 32, 36, 0.12);
}

.workspace-tools-actions,
.batch-tools-actions,
.editor-tools-actions {
  display: grid;
  gap: 14px;
  width: max-content;
  min-width: 100%;
  max-width: 100%;
}

.workspace-tools-group,
.batch-tools-group {
  display: grid;
  gap: 6px;
}

.workspace-tools-group + .workspace-tools-group,
.batch-tools-group + .batch-tools-group {
  padding-top: 12px;
  border-top: 1px solid #e7edf2;
}

.workspace-tools-heading,
.batch-tools-heading {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workspace-tools-note,
.batch-tools-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.batch-tool-button {
  --button-current-text: var(--button-text);
  --button-current-text-hover: var(--button-current-text);
  --button-current-text-active: var(--button-current-text-hover);
  --button-current-text-disabled: var(--button-current-text);
  --button-current-enabled: var(--button-enabled);
  --button-current-enabled-hover: var(--button-enabled-hover);
  --button-current-enabled-active: var(--button-enabled-active);
  --button-current-disabled: var(--button-disabled);
  --button-current-border: var(--button-border);
  --button-current-border-hover: var(--button-border-hover);
  --button-current-border-active: var(--button-border-active);
  --button-current-border-disabled: var(--button-border-disabled);
  --button-current-shadow-active: var(--button-shadow-active);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  color: var(--button-current-text);
  background: var(--button-current-enabled);
  border: 1px solid var(--button-current-border);
  border-radius: var(--button-radius);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: left;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease, transform 120ms ease;
}

.batch-tool-button:hover:not(:disabled) {
  color: var(--button-current-text-hover);
  background: var(--button-current-enabled-hover);
  border-color: var(--button-current-border-hover);
}

.batch-tool-button:active:not(:disabled) {
  color: var(--button-current-text-active);
  background: var(--button-current-enabled-active);
  border-color: var(--button-current-border-active);
  box-shadow: var(--button-current-shadow-active);
  transform: translateY(var(--button-pressed-translate-y));
}

.batch-tool-button:disabled {
  color: var(--button-current-text-disabled);
  background: var(--button-current-disabled);
  border-color: var(--button-current-border-disabled);
}

.batch-tool-button:focus-visible {
  outline: 2px solid var(--button-focus);
  outline-offset: 2px;
}

.batch-tool-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--button-icon);
}

.batch-tool-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.batch-tool-label {
  flex: 1 1 auto;
  min-width: 0;
}

.batch-summary-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: none;
  background: transparent;
}

.batch-summary-dialog::backdrop {
  background: rgba(22, 27, 31, 0.42);
  backdrop-filter: blur(2px);
}

.batch-summary-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  background: #fcfdfd;
  border: 1px solid #d7e4e9;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(16, 28, 37, 0.18);
}

.paste-summary-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.paste-summary-counts div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid #d7e4e9;
  border-radius: 10px;
  background: #f6fafb;
}

.paste-summary-counts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.15;
  text-transform: uppercase;
}

.paste-summary-counts dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 850;
  line-height: 1;
}

@media (max-width: 560px) {
  .paste-summary-counts {
    grid-template-columns: 1fr;
  }
}

.confirmation-dialog[aria-hidden="true"] {
  display: none;
}

.confirmation-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
}

.confirmation-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 27, 31, 0.42);
  backdrop-filter: blur(2px);
}

.confirmation-dialog-card {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(420px, calc(100vw - 32px));
  padding: 20px;
  background: #fcfdfd;
  border: 1px solid #d7e4e9;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(16, 28, 37, 0.18);
}

.confirmation-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.confirmation-dialog-header h2 {
  margin: 2px 0 0;
  font-size: 1.1rem;
  color: var(--ink);
}

.confirmation-dialog-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.confirmation-dialog-description {
  margin: 0;
  color: #34454f;
  font-size: 0.94rem;
  line-height: 1.55;
}

.confirmation-dialog-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #42525d;
  background: #f4f8fa;
  border: 1px solid #d5e0e6;
  border-radius: 999px;
}

.confirmation-dialog-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.confirmation-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.confirmation-dialog-button {
  min-width: 124px;
  padding: 11px 14px;
  border-radius: var(--button-radius);
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease, transform 120ms ease;
}

.confirmation-dialog-button:focus-visible {
  outline: 2px solid var(--button-focus);
  outline-offset: 2px;
}

.confirmation-dialog-button:active {
  box-shadow: var(--button-shadow-active);
  transform: translateY(var(--button-pressed-translate-y));
}

.confirmation-dialog-cancel {
  color: #31414b;
  background: #f4f8fa;
  border-color: #d5e0e6;
}

.confirmation-dialog-cancel:hover {
  background: #ebf2f6;
  border-color: #c5d3db;
}

.confirmation-dialog-confirm {
  color: var(--button-text);
  background: var(--button-enabled);
  border-color: var(--button-border);
}

.confirmation-dialog-confirm:hover {
  background: var(--button-enabled-hover);
  border-color: var(--button-border-hover);
}

.confirmation-dialog-confirm-danger {
  color: #fff4f2;
  background: #b9382b;
  border-color: #8f261b;
}

.confirmation-dialog-confirm-danger:hover {
  background: #a32f23;
  border-color: #781e15;
}

.save-preset-as-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.save-preset-as-card {
  width: 100%;
  box-sizing: border-box;
}

.save-preset-as-form {
  display: grid;
  gap: 16px;
}

.insert-fixed-design-dialog {
  width: min(860px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.insert-fixed-design-card {
  width: 100%;
  box-sizing: border-box;
}

.insert-fixed-design-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  min-height: 320px;
}

.insert-fixed-design-list-panel,
.insert-fixed-design-detail {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.insert-fixed-design-list {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 300px;
  min-height: 120px;
  overflow: auto;
  padding-right: 2px;
}

.insert-fixed-design-row {
  width: 100%;
  font: inherit;
  text-align: left;
}

.insert-fixed-design-preview {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.insert-fixed-design-preview .fixed-design-preview-image {
  max-height: 190px;
}

.insert-fixed-design-details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#insertFixedDesignStatus[hidden] {
  display: none;
}

.batch-summary-card-success {
  background: linear-gradient(180deg, #f4fff7 0%, #ecfbf0 100%);
  border-color: #b9e2c5;
  box-shadow: 0 24px 60px rgba(20, 84, 42, 0.16);
}

.batch-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.batch-summary-success-copy {
  display: grid;
  gap: 6px;
}

.batch-summary-header h2 {
  margin: 2px 0 0;
  font-size: 1.1rem;
  color: var(--ink);
}

.batch-summary-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.batch-summary-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.batch-summary-card-success .batch-summary-eyebrow {
  color: #207245;
}

.batch-summary-card-success .batch-summary-header h2 {
  color: #145231;
}

.batch-summary-card-success .batch-summary-description {
  color: #2f6243;
}

.batch-summary-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #198754;
  background: #ffffff;
  border: 1px solid #b8ddc4;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.batch-summary-success-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.batch-summary-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #42525d;
  background: #f4f8fa;
  border: 1px solid #d5e0e6;
  border-radius: 999px;
}

.batch-summary-close:hover {
  background: #edf4f7;
  border-color: #c7d7de;
}

.batch-summary-close:focus-visible {
  outline: 2px solid var(--button-focus);
  outline-offset: 2px;
}

.batch-summary-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

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

.batch-summary-empty {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  background: #f4f8fa;
  border: 1px solid #dde7ec;
  border-radius: 12px;
}

.batch-summary-table-wrap {
  border: 1px solid #dde7ec;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.batch-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.batch-summary-table th,
.batch-summary-table td {
  padding: 12px 14px;
  text-align: left;
}

.batch-summary-table th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f4f8fa;
}

.batch-summary-table tbody tr + tr td {
  border-top: 1px solid #edf2f5;
}

.batch-summary-table td {
  color: var(--ink);
  font-size: 0.94rem;
}

.batch-summary-count {
  width: 88px;
  font-variant-numeric: tabular-nums;
}

.batch-tools-group-danger .batch-tool-button {
  --button-current-text: #fff4f2;
  --button-current-text-hover: #fff8f6;
  --button-current-text-active: #fff8f6;
  --button-current-text-disabled: #ffe3df;
  --button-current-enabled: #b9382b;
  --button-current-enabled-hover: #a32f23;
  --button-current-enabled-active: #8b241a;
  --button-current-disabled: var(--button-disabled);
  --button-current-border: #8f261b;
  --button-current-border-hover: #781e15;
  --button-current-border-active: #62170f;
  --button-current-border-disabled: var(--button-border-disabled);
  --button-current-shadow-active: inset 0 2px 0 rgba(96, 19, 13, 0.26);
  margin-top: 2px;
  color: var(--button-current-text);
  background: var(--button-current-enabled);
  border-color: var(--button-current-border);
}

.batch-tools-group-danger .batch-tool-button:hover:not(:disabled) {
  color: var(--button-current-text-hover);
  background: var(--button-current-enabled-hover);
  border-color: var(--button-current-border-hover);
}

.batch-tools-group-danger .batch-tool-button:disabled {
  color: var(--button-current-text-disabled);
  background: var(--button-current-disabled);
  border-color: var(--button-current-border-disabled);
}

.batch-tools-group-danger .batch-tool-icon {
  color: #fff4f2;
}

.editor-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: #fff;
}

.editor-panel.is-hidden {
  display: none;
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 16px 22px 12px 24px;
  border-bottom: 1px solid var(--line);
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.editor-tools-menu {
  position: relative;
}

.editor-tools-popover {
  width: min(220px, calc(100vw - 32px));
}

.editor-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

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

h1 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.15;
}

h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.field input[type="text"],
.field textarea,
.field select {
  width: 100%;
  padding: 8px 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.field input[type="text"] {
  min-height: 42px;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.compact-field {
  gap: 6px;
  font-size: 0.82rem;
}

.compact-field input[type="text"],
.compact-field textarea {
  min-height: 38px;
}

.compact-field textarea {
  min-height: 54px;
}

.preset-name-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.preset-listing-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  max-width: 100%;
  min-height: 20px;
  padding: 2px 7px;
  color: #1e6a44;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid #8fc7ad;
  border-radius: 999px;
  background: #edf8f1;
}

.preset-listing-indicator-warning {
  color: #7a4b00;
  border-color: #e1b75f;
  background: #fff5d6;
}

.preset-listing-indicator.is-hidden {
  display: none;
}

.design-text-field {
  font-size: 0.96rem;
}

.design-text-field > span {
  font-size: 0.98rem;
}

.design-text-field textarea {
  min-height: 74px;
  font-size: 1.02rem;
  line-height: 1.45;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading output {
  color: var(--ink);
  text-transform: none;
}

.order-batch {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}

.order-list {
  display: grid;
  gap: 10px;
  align-content: start;
  grid-auto-rows: max-content;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  padding: 0 0 0 6px;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 12px;
  transition: background-color 120ms ease, border-color 120ms ease;
  background: #fff;
  align-self: start;
}

.order-row:last-child {
  padding-bottom: 0;
  box-shadow: none;
}

.order-row:hover {
  background: #f4fbfa;
  border-color: #dbeceb;
  border-left-color: #00807c;
}

.order-row.active {
  background: #eaf7f6;
  border-color: #cce4e2;
  border-left-color: #00807c;
}

.order-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.order-item {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  width: 100%;
  min-height: 0;
  height: 104px;
  padding: 12px 10px 12px 2px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: left;
  line-height: 1.2;
  overflow: visible;
}

.order-item:hover,
.order-item:focus-visible {
  color: var(--ink);
  background: transparent;
}

.order-delete-button {
  align-self: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  margin: 0 10px 0 0;
  color: var(--button-text);
  background: var(--button-enabled);
  border: 1px solid var(--button-border);
  border-radius: 999px;
}

.order-delete-button:hover:not(:disabled) {
  color: var(--button-text);
  background: var(--button-enabled-hover);
  border-color: var(--button-border-hover);
}

.order-delete-button:focus-visible {
  outline: 2px solid var(--button-focus);
  outline-offset: 2px;
}

.order-row.active .order-delete-button:not(:hover):not(:focus-visible),
.order-row:hover .order-delete-button:not(:hover):not(:focus-visible) {
  color: var(--button-text);
  background: var(--button-enabled);
}

.order-delete-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  pointer-events: none;
}

.order-delete-button:hover,
.order-row:hover .order-delete-button:hover,
.order-row.active .order-delete-button:hover {
  color: var(--button-text);
  background: var(--button-enabled-hover);
}

.order-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 600;
  flex: 0 0 auto;
}

.order-item-title {
  flex: 1 1 auto;
  display: block;
  min-width: 0;
  max-width: 100%;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-analysis-indicator {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 28px;
  min-height: 24px;
  padding: 1px 6px;
  color: #15598a;
  background: #e8f4ff;
  border: 1px solid #abd2f5;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.order-analysis-indicator.warning {
  color: #8a5a00;
  background: #fff4d8;
  border-color: #efd18a;
}

.order-analysis-indicator.error {
  color: #9b1c1c;
  background: #fee2e2;
  border-color: #f3a3a3;
}

.order-analysis-indicator.running {
  color: #446f8b;
  background: #edf4f9;
  border-color: #cad9e3;
}

.order-analysis-indicator.is-hidden {
  visibility: hidden;
}

.order-analysis-icon {
  line-height: 1;
}

.order-analysis-count {
  min-width: 0.6rem;
  text-align: center;
}

.order-analysis-spinner {
  width: 11px;
  height: 11px;
  border: 2px solid rgba(68, 111, 139, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: batch-spinner 700ms linear infinite;
}

.order-item-body {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 0 0 auto;
}

.order-item-product-image {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: cover;
  background: #fff;
  border: 1px solid #d9e3e8;
  border-radius: 8px;
}

.order-item-product-image-placeholder {
  background:
    linear-gradient(135deg, rgba(56, 85, 109, 0.12), rgba(56, 85, 109, 0.03)),
    #f7fafb;
}

.order-item-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.order-item-recipient {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-item-personalization {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-item-personalization {
  font-size: 0.9rem;
}

.order-item-meta {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-status {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 3px 7px;
  color: #0b6162;
  background: #bfe9e7;
  border: 1px solid #87d3d0;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.order-status.not-started {
  color: #4b535a;
  background: #eef0f2;
  border-color: #d3d7db;
}

.order-status.captured,
.order-status.exported {
  color: #15598a;
  background: #d9ecff;
  border-color: #abd2f5;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  align-items: center;
  gap: 12px;
}

.range-row output {
  color: var(--ink);
  font-size: 0.86rem;
  text-align: right;
  white-space: nowrap;
}

button {
  min-height: 42px;
  color: var(--button-text);
  background: var(--button-enabled);
  border: 0;
  border-radius: var(--button-radius);
  cursor: pointer;
  font-weight: 700;
}

button:hover:not(:disabled):not(.order-item):not(.database-order-row-button):not(.batch-tool-button):not(.confirmation-dialog-button):not(.confirmation-dialog-close) {
  background: var(--button-enabled-hover);
}

button:disabled {
  color: var(--button-text);
  background: var(--button-disabled);
  cursor: not-allowed;
}

.editor-action-button {
  --button-current-text: var(--button-text);
  --button-current-enabled: var(--button-enabled);
  --button-current-enabled-hover: var(--button-enabled-hover);
  --button-current-enabled-active: var(--button-enabled-active);
  --button-current-disabled: var(--button-disabled);
  --button-current-border: var(--button-border);
  --button-current-border-hover: var(--button-border-hover);
  --button-current-border-active: var(--button-border-active);
  --button-current-border-disabled: var(--button-border-disabled);
  --button-current-shadow-active: var(--button-shadow-active);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 14px;
  color: var(--button-current-text);
  background: var(--button-current-enabled);
  border: 1px solid var(--button-current-border);
  border-radius: var(--button-radius);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease, transform 120ms ease;
}

.editor-action-button:hover:not(:disabled) {
  color: var(--button-current-text);
  background: var(--button-current-enabled-hover);
  border-color: var(--button-current-border-hover);
}

.editor-action-button:active:not(:disabled) {
  color: var(--button-current-text);
  background: var(--button-current-enabled-active);
  border-color: var(--button-current-border-active);
  box-shadow: var(--button-current-shadow-active);
  transform: translateY(var(--button-pressed-translate-y));
}

.editor-action-button:disabled {
  color: var(--button-current-text);
  background: var(--button-current-disabled);
  border-color: var(--button-current-border-disabled);
}

.editor-action-button:focus-visible {
  outline: 2px solid var(--button-focus);
  outline-offset: 2px;
}

.editor-danger-button {
  --button-current-text: #fff4f2;
  --button-current-enabled: #b9382b;
  --button-current-enabled-hover: #a32f23;
  --button-current-enabled-active: #8b241a;
  --button-current-disabled: var(--button-disabled);
  --button-current-border: #8f261b;
  --button-current-border-hover: #781e15;
  --button-current-border-active: #62170f;
  --button-current-border-disabled: var(--button-border-disabled);
  --button-current-shadow-active: inset 0 2px 0 rgba(96, 19, 13, 0.26);
}

.editor-action-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--button-icon);
}

.editor-action-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.editor-action-label {
  min-width: 0;
}

.editor-utility-button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: var(--button-radius);
  gap: 7px;
  font-size: 0.73rem;
}

.editor-utility-button .editor-action-icon,
.editor-utility-button .editor-action-icon svg {
  width: 15px;
  height: 15px;
}

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

.order-stats div {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.order-stats span {
  color: var(--muted);
  font-size: 0.77rem;
}

.order-stats strong {
  color: #0a7e80;
  font-size: 1.28rem;
}

.search-field input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.filter-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.filter-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-field select {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.editor-top-card {
  margin-top: 4px;
  padding: 0;
}

.editor-top-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.1fr);
  gap: 16px;
  padding: 14px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.top-card-section {
  display: grid;
  align-content: start;
  gap: 12px;
}

.listing-reference-card {
  display: grid;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.listing-reference-card.is-hidden {
  display: none;
}

.listing-reference-title {
  margin: 0;
  color: #21465e;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.listing-reference-meta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 8px;
}

.listing-reference-details {
  display: grid;
  gap: 6px;
}

.listing-reference-image {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: cover;
  border: 0;
  border-radius: 10px;
  background: #fff;
}

.listing-reference-image.is-hidden {
  display: none;
}

.imported-color-field {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.imported-color-field.is-hidden {
  display: none;
}

.imported-color-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.imported-color-value {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.35;
}

.imported-color-value.highlight-light-color {
  color: #8a5a00;
  background: #fff3c4;
  border-radius: 5px;
  padding: 2px 7px;
}

.editor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(248px, 22vw, 320px);
  gap: 12px;
  height: 100%;
  min-height: 0;
  padding: 0 22px 20px 24px;
  isolation: isolate;
}

.editor-main-column {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  min-width: 0;
}

.line-controls-rail {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.line-controls {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  overscroll-behavior: contain;
  grid-row: 2;
}

.line-controls-cards {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 12px;
}

.line-control-empty {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  background: #f7f9fb;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.line-control-card,
.global-control-card,
.global-controls-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.global-controls-panel {
  position: relative;
  grid-row: 1;
}

.preset-tools-menu {
  position: relative;
  flex: 0 0 auto;
}

.preset-tools-toggle {
  width: 34px;
  height: 34px;
}

.preset-tools-popover {
  width: min(304px, calc(100vw - 56px));
}

.line-control-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.line-control-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.preset-line-control-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.line-control-text {
  overflow: hidden;
  max-width: 42%;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-control-menu {
  position: relative;
  flex: 0 0 auto;
}

.fixed-design-line-toggle {
  width: 30px;
  height: 30px;
}

.line-control-menu-popover {
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  right: 0;
  width: min(220px, calc(100vw - 48px));
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(16, 28, 37, 0.16);
}

.line-control-menu:not([open]) .line-control-menu-popover {
  display: none;
}

.preset-fixed-items-section {
  display: grid;
  align-content: start;
  gap: 10px;
}

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

.preset-fixed-item-card {
  background: #fff;
}

.line-control-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.line-control-toggle {
  grid-column: 1 / -1;
}

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

.batch-alert {
  display: block;
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 80;
  width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  background: #eef4f7;
  border: 1px solid #d7e3ea;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
  transform: translateX(-50%);
}

.batch-alert.has-action {
  display: grid;
  justify-items: start;
  gap: 12px;
  pointer-events: auto;
}

#workflowAlertText {
  min-width: 0;
  overflow-wrap: anywhere;
}

.batch-alert[hidden] {
  display: none;
}

.workflow-alert-action {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  white-space: nowrap;
}

.workflow-alert-action[hidden] {
  display: none;
}

.note[data-state="success"] {
  color: #1e6a44;
  background: #ecf8f0;
  border-color: #bfdfca;
}

.note[data-state="error"] {
  color: #8a2f2f;
  background: #fff1f0;
  border-color: #e7c2bf;
}

.order-entry .status-card {
  margin-top: 12px;
}

.editor-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.status-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.status-card[hidden] {
  display: none;
}

.status-card strong {
  font-size: 0.9rem;
}

.status-card span {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.4;
}

#connectionStatus {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
}

#connectionStatus .order-analysis-indicator {
  align-self: start;
  margin-top: 1px;
}

#connectionStatus .order-analysis-indicator.is-hidden {
  display: none;
}

.status-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.status-ok {
  border-color: #8fc7ad;
  background: #edf8f1;
}

.status-ok strong {
  color: #1e6a44;
}

.status-warning {
  border-color: #e6c17a;
  background: #fff6e6;
}

.status-warning strong {
  color: #8a5a10;
}

.status-pending {
  border-color: #c7d3dc;
  background: #f5f8fa;
}

.status-pending strong {
  color: #38556d;
}

@keyframes batch-spinner {
  to {
    transform: rotate(360deg);
  }
}

.preview-workspace {
  display: grid;
  grid-row: 3;
  grid-template-rows: minmax(440px, 1fr) auto;
  height: 100%;
  align-self: stretch;
  min-height: 0;
  min-width: 0;
  gap: 8px;
}

.preview-panel {
  position: relative;
  display: block;
  height: 100%;
  min-height: 0;
  min-width: 0;
  padding: 10px;
  overflow: auto;
  background:
    radial-gradient(circle, rgba(28, 32, 36, 0.08) 1px, transparent 1px),
    #f8fafb;
  background-size: 18px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: zoom-in;
  touch-action: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  contain: size layout paint;
}

.preview-panel.is-middle-panning {
  cursor: grabbing;
}

.preview-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.preview-panel::before {
  content: none;
}

#preview {
  position: relative;
  z-index: 1;
  display: block;
  max-width: none;
  width: var(--preview-width, 100%);
  height: var(--preview-height, 100%);
  transform-origin: top left;
  margin: 0 auto;
  pointer-events: none;
}

.preview-guide-box,
.preview-guide-min-box,
.preview-guide-inner-line {
  fill: none;
  stroke: rgb(12, 150, 217);
}

.preview-guide-box,
.preview-guide-min-box,
.preview-guide-inner-line {
  stroke-width: 0.05;
}

.preview-guide-label {
  fill: rgb(12, 150, 217);
  font-size: 2.6px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.database-orders-workspace {
  background: #fff;
}

.database-orders-list-panel {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.database-orders-filters {
  display: grid;
  gap: 10px;
}

.database-orders-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.database-orders-select-all {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.database-orders-select-all input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}

.database-orders-list-shell,
.database-order-items-shell {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  background: #fff;
}

.database-orders-list-shell {
  gap: 10px;
  overflow: auto;
  padding: 0;
}

.database-order-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 0 0 6px;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 12px;
  background: #fff;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.database-order-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}

.database-order-row-button {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.database-order-row-image-stack {
  position: relative;
  display: block;
  width: 92px;
  height: 76px;
  flex: 0 0 auto;
}

.database-order-row-thumbnail {
  position: absolute;
  inset: calc(var(--stack-index, 0) * 6px) auto auto calc(var(--stack-index, 0) * 10px);
  z-index: calc(4 - var(--stack-index, 0));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #cbd8dd;
  border-radius: 9px;
  background: #f3f7f8;
  box-shadow: 0 1px 2px rgba(24, 43, 54, 0.12);
  object-fit: cover;
}

.database-order-row-thumbnail-placeholder,
.database-order-row-thumbnail-more {
  color: #667985;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.database-order-row-thumbnail-more {
  color: #18434f;
  background: #eaf7f6;
  border-color: #b9d8d5;
}

.database-order-row-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.database-order-row:hover,
.database-order-row:focus-within {
  border-color: #dbeceb;
  border-left-color: #00807c;
  background: #f4fbfa;
}

.database-order-row.is-selected {
  border-color: #cce4e2;
  border-left-color: #00807c;
  background: #eaf7f6;
}

.database-order-row-button:hover,
.database-order-row-button:focus-visible {
  background: transparent;
}

.database-order-row-button:focus-visible {
  outline: 2px solid var(--button-focus);
  outline-offset: -2px;
}

.database-order-row-title {
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.database-order-row-meta,
.database-order-selected-meta,
.database-order-item-listing,
.database-order-item-lines,
.database-order-item-status,
.database-order-item-saved-design {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.database-order-items-panel .editor-body {
  grid-template-rows: auto;
  align-content: start;
  overflow-y: auto;
  padding: 18px 22px 22px 24px;
  background: #fff;
}

.database-order-items-shell {
  width: min(860px, 100%);
}

.database-order-item-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.database-order-item-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
}

.database-order-item-header .database-order-item-menu {
  flex: 0 0 auto;
}

.database-order-item-title-group {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.database-order-item-title-group h3 {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.database-order-item-body {
  display: grid;
  grid-template-columns: minmax(180px, 0.78fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.database-order-item-listing-column,
.database-order-item-preview-column {
  display: grid;
  min-width: 0;
}

.database-order-item-listing-column {
  align-content: start;
  gap: 10px;
}

.database-order-item-listing-media {
  display: grid;
  align-content: start;
  min-width: 0;
}

.database-order-item-listing-image {
  display: block;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.database-order-item-listing-image-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.database-order-item-preview {
  display: grid;
  gap: 4px;
  min-height: 150px;
  align-content: center;
  justify-items: center;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  text-align: center;
}

.database-order-item-preview.has-preview {
  padding: 8px;
}

.database-order-item-preview-svg {
  width: 100%;
  height: 138px;
  max-height: 18vh;
}

.database-order-item-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: baseline;
  margin: 0;
  padding-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.database-order-item-meta dt {
  font-weight: 750;
}

.database-order-item-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.database-order-item-preview-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.database-order-item-preview-status {
  max-width: 26ch;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.3;
}

@media (max-width: 760px) {
  .database-order-item-body {
    grid-template-columns: 1fr;
  }

  .database-order-item-listing-image {
    max-width: 120px;
  }

  .database-order-item-meta {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

.preset-workspace {
  background: #fff;
}

.preset-library-panel {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.preset-library-list {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  gap: 10px;
}

.preset-editor-panel .editor-body {
  grid-template-rows: auto;
  align-content: start;
  overflow-y: auto;
  padding: 14px 22px 22px 24px;
  background: #fff;
}

.preset-editor-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(860px, 100%);
}

.preset-editor {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 12px;
  width: min(860px, 100%);
}

.fonts-workspace {
  background: #fff;
}

.fonts-library-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.font-library-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.font-library-row .font-library-preview {
  margin: 0;
  color: var(--muted);
  font-size: 1.72rem;
  line-height: 1.25;
}

.font-editor-panel .editor-body {
  grid-template-rows: auto;
  align-content: start;
  overflow-y: auto;
  padding: 18px 22px 22px 24px;
  background: #fff;
}

.font-editor-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(860px, 100%);
}

.font-editor {
  display: grid;
  gap: 14px;
  width: min(860px, 100%);
}

.font-bridge-setting {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.font-bridge-setting input {
  width: 18px;
  height: 18px;
  accent-color: var(--button-enabled);
}

.font-preview-sample {
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #b91c1c;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 3rem;
  line-height: 1.05;
  text-align: center;
  white-space: pre-line;
}

#fontPreviewTextInput {
  min-height: 84px;
  resize: vertical;
}

.fixed-designs-workspace {
  background: #fff;
}

.fixed-designs-panel {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.fixed-design-search-field {
  margin: 0;
}

.fixed-design-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.fixed-design-row {
  width: 100%;
  font: inherit;
  text-align: left;
}

.fixed-design-editor-panel .editor-body {
  grid-template-rows: auto;
  align-content: start;
  overflow-y: auto;
  padding: 18px 22px 22px 24px;
  background: #fff;
}

.fixed-design-editor-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(860px, 100%);
}

.fixed-design-editor {
  display: grid;
  align-content: start;
  gap: 14px;
  width: min(860px, 100%);
}

.fixed-design-preview-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 22px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.fixed-design-preview-image {
  display: block;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.fixed-design-preview-image[hidden],
.fixed-design-preview-empty[hidden] {
  display: none;
}

.fixed-design-preview-empty,
.fixed-design-empty-state {
  justify-self: center;
  align-self: center;
  text-align: center;
}

.fixed-design-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.fixed-design-details div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.fixed-design-details dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fixed-design-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.fixed-design-version-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  background: transparent;
}

.fixed-design-version-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.fixed-design-version-card {
  width: 100%;
}

.fixed-design-drop-zone {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 180px;
  margin-top: 14px;
  padding: 22px;
  color: var(--muted);
  border: 1px dashed #a8c8c6;
  border-radius: 8px;
  background: #f8fbfb;
  text-align: center;
}

.fixed-design-drop-zone.is-dragging {
  color: #1f6f70;
  border-color: #00807c;
  background: #eef8f7;
}

.size-guide-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.size-guide-editor-panel .editor-body {
  grid-template-rows: auto;
  align-content: start;
  overflow-y: auto;
  padding: 14px 22px 22px 24px;
  background: #fff;
}

.size-guide-editor-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(760px, 100%);
}

.size-preset-editor {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 8px;
  width: min(760px, 100%);
}

.size-preset-dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 8px 10px;
}

.size-preset-preview-panel {
  position: relative;
  min-height: 280px;
  padding: 12px;
  border: 1px solid #d7e4ea;
  border-radius: 8px;
  background: #fff;
}

.size-preset-preview {
  display: block;
  width: 100%;
  height: 256px;
}

.size-preset-preview-empty {
  position: absolute;
  inset: 12px;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.size-preset-preview-empty[hidden] {
  display: none;
}

.size-preset-list {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  gap: 10px;
}

.size-preset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.size-preset-row:hover {
  background: #f4fbfa;
  border-color: #dbeceb;
  border-left-color: #00807c;
}

.size-preset-row.is-selected {
  background: #eaf7f6;
  border-color: #cce4e2;
  border-left-color: #00807c;
}

.size-preset-row:focus-visible {
  outline: 2px solid var(--button-focus);
  outline-offset: 2px;
}

.size-preset-name {
  margin: 0;
  font-weight: 700;
}

.size-preset-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.size-guide-editor-panel .compact-field {
  gap: 3px;
}

.size-guide-editor-panel .field input[type="text"],
.size-guide-editor-panel .field input[type="number"] {
  height: 32px;
  min-height: 32px;
  padding: 5px 8px;
}

.preset-editor-controls {
  display: grid;
  gap: 12px;
}

.preset-editor-controls .line-controls {
  grid-row: auto;
  height: auto;
  overflow: visible;
  padding-right: 0;
}

.preset-assignment-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(246, 249, 251, 0.98) 0%, rgba(238, 244, 247, 0.98) 100%);
  border: 1px solid #d8e3e8;
  border-radius: 16px;
}

.preset-assignment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.preset-assignment-eyebrow {
  margin: 0 0 4px;
  color: #587182;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preset-assignment-header h3 {
  margin: 0;
  color: #21465e;
  font-size: 1rem;
  font-weight: 800;
}

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

.preset-assignment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d6e1e7;
  border-radius: 14px;
}

.preset-assignment-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.preset-assignment-name {
  color: #21465e;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}

.preset-assignment-id {
  color: #587182;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.preset-assignment-empty {
  margin: 0;
  padding: 14px 16px;
  color: #587182;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed #c9d8df;
  border-radius: 14px;
}

.preset-assignment-button {
  justify-self: end;
}

.preset-readonly-input {
  color: #42525d;
  background: #f4f8fa;
}

.preset-workspace-title {
  margin: 0;
  color: #21465e;
  font-size: 1.05rem;
  font-weight: 800;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.backing-letter {
  font-family: "CandlepinLaser", "Segoe Script", cursive;
  fill: var(--blue);
  stroke: var(--blue);
  stroke-linejoin: round;
  stroke-linecap: round;
  paint-order: stroke fill;
}

.face-letter {
  font-family: "CandlepinLaser", "Segoe Script", cursive;
  fill: var(--white-acrylic);
  stroke: rgba(190, 205, 211, 0.7);
  stroke-width: 0.35;
  stroke-linejoin: round;
  paint-order: stroke fill;
  filter: drop-shadow(1.2mm 1.4mm 0.8mm rgba(25, 31, 35, 0.28));
}

.face-layer {
  filter: drop-shadow(1.2mm 1.4mm 0.8mm rgba(25, 31, 35, 0.28));
}

.bridge-guide {
  fill: rgba(255, 194, 88, 0.65);
  stroke: rgba(135, 88, 18, 0.45);
  stroke-width: 0.2;
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .workspace-nav {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: none;
    align-items: center;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .app-shell[data-nav-collapsed="true"] {
    grid-template-columns: 1fr;
  }

  .app-shell[data-nav-collapsed="true"] .workspace-nav {
    justify-items: stretch;
  }

  .app-shell[data-nav-collapsed="true"] .workspace-nav-toggle,
  .app-shell[data-nav-collapsed="true"] .workspace-nav-item {
    justify-content: center;
    padding: 0 12px;
  }

  .app-shell[data-nav-collapsed="true"] .workspace-nav-label {
    display: inline;
  }

  .production-workspace {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .insert-fixed-design-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .insert-fixed-design-list {
    max-height: 220px;
  }

  .insert-fixed-design-details {
    grid-template-columns: 1fr;
  }

  .orders-panel {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .editor-body {
    grid-template-rows: minmax(0, 1fr);
  }

  .editor-top-grid,
  .editor-workspace {
    grid-template-columns: 1fr;
  }

  .editor-main-column,
  .line-controls-rail {
    grid-template-rows: auto auto auto auto;
  }

  .editor-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .line-control-grid {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    min-height: 420px;
  }

  #preview {
    width: var(--preview-width, 100%);
    height: var(--preview-height, auto);
  }
}
