:root {
  --bg: #f5f5f3;
  --ink: #2f3a3f;
  --muted: #7a9e9f;
  --surface: #d6cfc7;
  --success: #68cea4;
  --sand: #efe7dc;
  --mist: rgba(255, 255, 255, 0.68);
  --shadow: rgba(47, 58, 63, 0.14);
  --border: rgba(255, 255, 255, 0.48);
  --warning: #e6b56f;
  --panel-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42));
  --panel-shadow:
    0 22px 60px rgba(47, 58, 63, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -18px 38px rgba(214, 207, 199, 0.18);
  --button-ghost-bg: rgba(122, 158, 159, 0.16);
  --input-bg: rgba(255, 255, 255, 0.72);
  --input-border: rgba(47, 58, 63, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.32);
  --nav-icon-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(104, 206, 164, 0.18));
  --nav-active-bg: linear-gradient(180deg, rgba(104, 206, 164, 0.28), rgba(255, 255, 255, 0.7));
  --document-surface: rgba(255, 255, 255, 0.62);
  --document-sheet-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 246, 242, 0.86));
  --document-note-bg: rgba(239, 231, 220, 0.42);
  --auth-overlay: rgba(245, 245, 243, 0.84);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 10% 10%, rgba(104, 206, 164, 0.22), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(122, 158, 159, 0.18), transparent 22%),
    linear-gradient(180deg, #faf9f5 0%, #f5f5f3 100%);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  transition: background 180ms ease, color 180ms ease;
}

body {
  padding: 28px;
  overflow-x: hidden;
  overflow-y: auto;
}

body.auth-active {
  overflow: hidden;
}

body[data-theme="dark"] {
  --bg: #121817;
  --ink: #edf4f1;
  --muted: #9ab8b3;
  --surface: #2b3533;
  --sand: #1b2422;
  --mist: rgba(16, 24, 22, 0.74);
  --shadow: rgba(0, 0, 0, 0.32);
  --border: rgba(255, 255, 255, 0.08);
  --panel-bg: linear-gradient(160deg, rgba(27, 36, 34, 0.9), rgba(16, 24, 22, 0.72));
  --panel-shadow:
    0 28px 64px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -18px 38px rgba(0, 0, 0, 0.12);
  --button-ghost-bg: rgba(122, 158, 159, 0.14);
  --input-bg: rgba(17, 27, 25, 0.86);
  --input-border: rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.04);
  --nav-icon-bg: linear-gradient(180deg, rgba(19, 31, 29, 0.94), rgba(104, 206, 164, 0.18));
  --nav-active-bg: linear-gradient(180deg, rgba(104, 206, 164, 0.24), rgba(24, 34, 32, 0.84));
  --document-surface: rgba(17, 27, 25, 0.82);
  --document-sheet-bg: linear-gradient(180deg, rgba(24, 34, 32, 0.96), rgba(18, 27, 25, 0.88));
  --document-note-bg: rgba(43, 53, 51, 0.82);
  --auth-overlay: rgba(9, 16, 15, 0.84);
  background:
    radial-gradient(circle at 8% 10%, rgba(104, 206, 164, 0.14), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(15, 109, 217, 0.12), transparent 20%),
    linear-gradient(180deg, #121817 0%, #0c1211 100%);
}

body[data-theme="dark"] p,
body[data-theme="dark"] .helper-copy,
body[data-theme="dark"] .field-hint,
body[data-theme="dark"] .soft-copy {
  color: rgba(237, 244, 241, 0.76);
}

select,
textarea {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  width: 100%;
}

textarea {
  resize: vertical;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: var(--auth-overlay);
  backdrop-filter: blur(18px);
}

.auth-gate.hidden {
  display: none;
}

.auth-shell {
  width: min(1180px, 100%);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  margin: auto 0;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.auth-copy,
.auth-forms {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form {
  padding: 22px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  min-width: 280px;
  max-width: 420px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(47, 58, 63, 0.92);
  color: white;
  box-shadow: 0 20px 40px rgba(47, 58, 63, 0.24);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.6;
  pointer-events: none;
}

.orb-one {
  top: 120px;
  right: 12%;
  width: 240px;
  height: 240px;
  background: rgba(104, 206, 164, 0.22);
}

.orb-two {
  bottom: 80px;
  left: 8%;
  width: 320px;
  height: 320px;
  background: rgba(122, 158, 159, 0.16);
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 320px;
  gap: 24px;
  min-height: calc(100vh - 56px);
}

.glossy-panel {
  min-width: 0;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
}

.sidebar,
.workspace,
.assistant-rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-block,
.nav-list,
.tile-card,
.topbar,
.hero-panel,
.side-stack,
.chart-panel,
.queue-panel,
.flow-board,
.table-panel,
.mobile-showcase,
.assistant-rail,
.architecture-grid article {
  padding: 22px;
}

.brand-line,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3,
h4,
.nav-link__label,
.session-chip strong,
.session-chip span {
  overflow-wrap: anywhere;
}

.brand-identity {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.brand-emblem {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(15, 109, 217, 0.22));
}

.brand-line::before,
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
h4 {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  line-height: 1.1;
}

h1 {
  margin-top: 12px;
  font-size: 34px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 24px;
}

p {
  margin: 0;
  line-height: 1.65;
  color: rgba(47, 58, 63, 0.82);
}

.tag-row,
.topbar-actions,
.button-row,
.button-column,
.status-row,
.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-row {
  margin-top: 18px;
}

.tag-row span,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  background: var(--input-bg);
  color: var(--ink);
}

.status-pill.success,
.primary-button {
  background: linear-gradient(180deg, #7bdab4, var(--success));
  color: #17352c;
}

.status-pill.live {
  background: rgba(104, 206, 164, 0.16);
  color: #2b7055;
}

.status-pill.muted,
.ghost-button {
  background: var(--button-ghost-bg);
  color: var(--ink);
}

.status-pill.warning {
  background: rgba(230, 181, 111, 0.18);
  color: #85581c;
}

.nav-list {
  gap: 10px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 20px;
  padding: 15px 18px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: var(--nav-bg);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.nav-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: var(--nav-icon-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 10px 24px rgba(47, 58, 63, 0.08);
  color: var(--ink);
  flex: 0 0 auto;
}

.nav-link__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-link__label {
  display: inline-flex;
  align-items: center;
}

.nav-link:hover,
.nav-link.active {
  background: var(--nav-active-bg);
  transform: translateY(-1px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.session-chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 54px;
  padding: 8px 14px;
  border-radius: 18px;
  min-width: 0;
  max-width: min(100%, 280px);
  background: var(--document-surface);
}

.session-chip strong {
  font-size: 14px;
}

.session-chip span {
  font-size: 12px;
  color: var(--muted);
}

.topbar-actions {
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  margin-left: auto;
}

.primary-button,
.ghost-button {
  border: 0;
  border-radius: 18px;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(47, 58, 63, 0.08);
}

.workspace {
  gap: 18px;
}

.view {
  display: none;
  gap: 18px;
}

.view.active {
  display: flex;
  flex-direction: column;
}

.hero-grid,
.content-grid,
.composer-grid,
.architecture-grid {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
}

.content-grid,
.composer-grid,
.architecture-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-span {
  grid-column: 1 / -1;
}

.hero-grid > *,
.content-grid > *,
.composer-grid > *,
.architecture-grid > * {
  min-width: 0;
}

.panel-head,
.view-header,
.tile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-panel h3 {
  margin-top: 16px;
  font-size: 34px;
}

.hero-panel p,
.soft-copy {
  margin-top: 14px;
}

.document-preset-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 20px;
}

.document-preset {
  appearance: none;
  border: 1px solid rgba(47, 58, 63, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(104, 206, 164, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 244, 239, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 14px 24px rgba(47, 58, 63, 0.08);
  color: var(--ink);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.document-preset:hover,
.document-preset:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(104, 206, 164, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 18px 28px rgba(47, 58, 63, 0.12);
}

.document-preset.is-active {
  border-color: rgba(15, 109, 217, 0.28);
  background:
    radial-gradient(circle at top, rgba(99, 199, 255, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(237, 244, 250, 0.88));
}

.document-preset img {
  width: 40px;
  height: 40px;
  display: block;
  margin-bottom: 10px;
}

.document-preset strong,
.document-preset span {
  display: block;
}

.document-preset strong {
  font-size: 14px;
}

.document-preset span {
  margin-top: 4px;
  color: rgba(47, 58, 63, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

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

.metric-card,
.queue-card,
.stack-card,
.assistant-card,
.step-card,
.mobile-card,
.flow-step {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.metric-card span,
.step-card strong,
.mobile-card small {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  font-family: "Fraunces", serif;
}

.timeline-item,
.table-row,
.definition-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(47, 58, 63, 0.08);
}

.timeline-item:last-child,
.table-row:last-child,
.definition-list div:last-child {
  border-bottom: 0;
}

.bars {
  display: flex;
  gap: 20px;
  min-height: 260px;
  align-items: end;
  padding: 24px 10px 0;
}

.bar-set {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bar {
  width: 100%;
  border-radius: 24px 24px 10px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46), 0 18px 28px rgba(47, 58, 63, 0.12);
}

.bar.aqua {
  background: linear-gradient(180deg, rgba(104, 206, 164, 0.88), rgba(104, 206, 164, 0.46));
}

.bar.sand {
  background: linear-gradient(180deg, rgba(214, 207, 199, 0.95), rgba(214, 207, 199, 0.56));
}

.bar.ink {
  background: linear-gradient(180deg, rgba(47, 58, 63, 0.86), rgba(47, 58, 63, 0.46));
}

.bar.muted {
  background: linear-gradient(180deg, rgba(122, 158, 159, 0.9), rgba(122, 158, 159, 0.48));
}

.flow-row,
.stack-list,
.pipeline,
.step-column {
  display: grid;
  gap: 14px;
}

.flow-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

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

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

.helper-block,
.field-hint {
  grid-column: 1 / -1;
}

.helper-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.helper-copy,
.field-hint {
  margin: 0;
  color: rgba(47, 58, 63, 0.74);
  line-height: 1.55;
}

.invoice-type-hint {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(47, 58, 63, 0.06);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
}

.form-grid textarea {
  min-height: 118px;
  padding: 14px;
  resize: vertical;
}

.form-grid input[type="file"] {
  min-height: 58px;
  padding: 12px 14px;
}

.logo-uploader {
  align-items: stretch;
}

.logo-preview-shell {
  min-height: 168px;
  border-radius: 22px;
  border: 1px dashed rgba(47, 58, 63, 0.18);
  background:
    radial-gradient(circle at top, rgba(104, 206, 164, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 244, 239, 0.86));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
  color: rgba(47, 58, 63, 0.62);
  text-align: center;
}

.logo-preview-shell img {
  max-width: 100%;
  max-height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(47, 58, 63, 0.12));
}

.inline-checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px !important;
  min-height: 48px;
  padding: 0 4px;
}

.inline-checkbox input {
  width: 18px;
  min-height: 18px;
}

.button-row,
.button-column {
  margin-top: 18px;
}

.button-row > *,
.button-column > * {
  max-width: 100%;
}

.table-like {
  margin-top: 14px;
}

.table-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  font-size: 14px;
}

.invoice-listing {
  display: flex;
  align-items: center;
  gap: 12px;
}

.invoice-listing__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(47, 58, 63, 0.08);
}

.invoice-listing strong,
.invoice-listing small {
  display: block;
}

.invoice-listing small {
  color: var(--muted);
  margin-top: 2px;
}

.table-row.header {
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.definition-list {
  margin-top: 12px;
}

.definition-list span {
  color: var(--muted);
}

.pipeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.pipeline-node {
  padding: 16px;
  text-align: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--muted);
  font-weight: 800;
}

.pipeline-node.active {
  background: linear-gradient(180deg, rgba(104, 206, 164, 0.24), rgba(255, 255, 255, 0.7));
  color: var(--ink);
}

.step-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.step-card.active {
  background: linear-gradient(180deg, rgba(104, 206, 164, 0.16), rgba(255, 255, 255, 0.62));
}

.mobile-showcase {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.device-frame {
  justify-self: center;
  width: 280px;
  border-radius: 42px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(47, 58, 63, 0.92), rgba(47, 58, 63, 0.76));
  box-shadow: 0 26px 50px rgba(47, 58, 63, 0.24);
}

.device-screen {
  border-radius: 30px;
  min-height: 570px;
  padding: 18px;
  background: linear-gradient(180deg, #fdfcf7 0%, #eef1ef 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-top {
  display: flex;
  justify-content: space-between;
  color: var(--ink);
  font-weight: 800;
}

.muted-card {
  background: rgba(122, 158, 159, 0.14);
}

.mini-actions span,
.mobile-nav span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.mobile-nav {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(47, 58, 63, 0.08);
}

.mobile-nav .active {
  background: linear-gradient(180deg, rgba(104, 206, 164, 0.68), rgba(255, 255, 255, 0.8));
}

.assistant-rail {
  position: sticky;
  top: 28px;
  align-self: start;
  min-height: calc(100vh - 56px);
}

.assistant-cards {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.response-log {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: var(--document-surface);
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.document-preview {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: var(--document-surface);
  border: 1px solid var(--input-border);
}

.document-sheet {
  border-radius: 22px;
  padding: 18px;
  background: var(--document-sheet-bg);
  border: 1px solid rgba(214, 207, 199, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.document-sheet h4,
.document-sheet h5 {
  margin: 0 0 10px;
  font-family: "Fraunces", serif;
}

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

.document-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--document-note-bg);
  border: 1px solid rgba(214, 207, 199, 0.88);
}

.document-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--document-note-bg);
  border: 1px solid rgba(214, 207, 199, 0.88);
}

.compact-preview {
  min-height: 120px;
}

[hidden] {
  display: none !important;
}

.document-item span,
.document-table th {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.document-item strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.document-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.document-table th,
.document-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(214, 207, 199, 0.72);
  text-align: left;
}

.document-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.72);
}

.document-table tbody tr:nth-child(even) {
  background: rgba(245, 245, 243, 0.9);
}

.document-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(122, 158, 159, 0.12);
  border: 1px solid rgba(214, 207, 199, 0.9);
}

.signature-pad-shell {
  margin-top: 16px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(214, 207, 199, 0.92);
}

.signature-pad-shell canvas {
  width: 100%;
  height: 220px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 231, 220, 0.72));
  border: 1px dashed rgba(122, 158, 159, 0.48);
  touch-action: none;
}

.button-column {
  flex-direction: column;
}

.view-header {
  padding: 0 4px;
}

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

  .assistant-rail {
    grid-column: 1 / -1;
    position: static;
    min-height: auto;
  }
}

@media (max-width: 1100px) {
  body {
    padding: 18px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .content-grid,
  .composer-grid,
  .architecture-grid,
  .mobile-showcase,
  .flow-row,
  .pipeline {
    grid-template-columns: 1fr;
  }

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

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .metric-grid,
  .form-grid,
  .table-row,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .brand-identity {
    grid-template-columns: 1fr;
  }

  .brand-emblem {
    width: 72px;
    height: 72px;
  }

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

  .auth-gate {
    padding: 16px;
  }

  .auth-shell {
    padding: 18px;
    max-height: calc(100vh - 32px);
  }

  .device-frame {
    width: 100%;
    max-width: 320px;
  }
}
