@import url('https://fonts.googleapis.com/css2?family=Familjen+Grotesk:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,650&display=swap');

:root {
  --paper: #f0f1e9;
  --paper-deep: #dfe3d8;
  --ink: #132019;
  --muted: #657068;
  --line: rgba(19, 32, 25, 0.18);
  --accent: #a9da2f;
  --accent-ink: #10170d;
  --night: #111812;
  --hero-position: center;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Familjen Grotesk", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}
body.theme-auto { --paper: #eeece8; --paper-deep: #ddd8d1; --ink: #211b19; --muted: #70645f; --accent: #ed4a33; --accent-ink: #25100d; --night: #191614; --hero-position: center; }
body.theme-dental { --paper: #edf2ee; --paper-deep: #dbe5df; --ink: #15322f; --muted: #60736f; --accent: #55c9b5; --accent-ink: #0b2722; --night: #102825; --hero-position: center; }
body.theme-education { --paper: #f1efe8; --paper-deep: #e3ded1; --ink: #20283d; --muted: #687087; --accent: #ff6b4b; --accent-ink: #2b130e; --night: #172038; --hero-position: center; }
body.theme-furniture { --paper: #efeee7; --paper-deep: #dfded3; --ink: #223026; --muted: #6d756f; --accent: #d86b43; --accent-ink: #28110a; --night: #19251d; --hero-position: center; }
body.theme-industry { --paper: #e9ecea; --paper-deep: #d5dad7; --ink: #182127; --muted: #667178; --accent: #f4b83d; --accent-ink: #241b08; --night: #11181d; --hero-position: center; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }

.demo-strip {
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 7px clamp(18px, 3vw, 48px);
  color: #eff3eb;
  background: var(--night);
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
}
.demo-strip__back { justify-self: start; }
.demo-strip__label { color: rgba(239,243,235,.58); }
.demo-strip__dm {
  justify-self: end;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 4px;
  padding: 6px 11px;
  font-weight: 700;
}

.site-head {
  position: absolute;
  z-index: 5;
  top: 44px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 64px);
  color: #f2f1e8;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; }
.brand__mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  font-family: "Newsreader", serif;
  font-size: 20px;
}
.site-nav { display: flex; gap: clamp(18px, 2.5vw, 36px); font-size: 14px; }
.site-nav a { color: rgba(242,241,232,.78); }
.site-nav a:hover, .site-nav a:focus-visible { color: #f2f1e8; }

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 18px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f5f3eb;
  background: var(--night) var(--hero) var(--hero-position) center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 10, .47);
}
.theme-dental .hero::before { background: rgba(15, 43, 38, .42); }
.theme-education .hero::before { background: rgba(20, 28, 45, .52); }
.theme-furniture .hero::before { background: rgba(24, 29, 20, .45); }
.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 176px clamp(18px, 6vw, 88px) 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .55fr);
  align-items: end;
  gap: clamp(40px, 8vw, 120px);
}
.hero__copy { max-width: 820px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(52px, 7.4vw, 112px);
  line-height: .88;
  font-weight: 650;
}
.hero__lead { max-width: 680px; margin: 28px 0 0; color: rgba(245,243,235,.82); font-size: clamp(18px, 2vw, 25px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  transition: background-color 180ms var(--ease-out-quart), color 180ms var(--ease-out-quart), border-color 180ms var(--ease-out-quart);
}
.button--accent { background: var(--accent); color: var(--accent-ink); }
.button--ghost { border-color: rgba(255,255,255,.38); color: #f5f3eb; }
.button--ghost:hover { background: rgba(255,255,255,.1); }
.hero__aside { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.38); }
.hero__aside strong { display: block; font-size: 13px; color: var(--accent); text-transform: uppercase; }
.hero__aside p { margin: 10px 0 0; color: rgba(245,243,235,.75); }
.hero__metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin: 28px 0 0; border-top: 1px solid rgba(255,255,255,.24); }
.hero__metrics div { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.24); }
.hero__metrics div:nth-child(odd) { padding-right: 16px; }
.hero__metrics div:nth-child(even) { padding-left: 16px; box-shadow: inset 1px 0 rgba(255,255,255,.24); }
.hero__metrics b { display: block; font-size: 23px; }
.hero__metrics span { color: rgba(245,243,235,.62); font-size: 13px; }

.tool-band { background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.tool {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 32px;
  display: grid;
  grid-template-columns: minmax(180px,.6fr) minmax(0,1.8fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: end;
}
.tool__intro small { display: block; color: var(--muted); text-transform: uppercase; font-size: 11px; font-weight: 700; }
.tool__intro h2 { margin: 6px 0 0; font-size: 26px; line-height: 1.05; }
.demo-form { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) auto; gap: 8px; }
.demo-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.demo-form input, .demo-form select {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px; color: var(--ink); background: rgba(255,255,255,.34); outline: none;
}
.demo-form input:focus, .demo-form select:focus { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(19,32,25,.08); }
.demo-form .button { align-self: end; border: 0; background: var(--ink); color: var(--paper); }
.form-result { grid-column: 1 / -1; min-height: 22px; margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.section-shell { width: min(1320px, calc(100% - 36px)); margin: 0 auto; }
.experience { padding: clamp(78px, 10vw, 150px) 0 clamp(70px, 9vw, 125px); }
.section-head { display: grid; grid-template-columns: .48fr 1.4fr .65fr; align-items: start; gap: clamp(24px, 5vw, 72px); padding-bottom: 46px; border-bottom: 1px solid var(--line); }
.section-index { margin: 3px 0 0; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.section-head h2 { margin: 0; font-family: "Newsreader", serif; font-size: clamp(42px, 5.5vw, 76px); line-height: .98; }
.section-head > p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 18px; }
.journey { display: grid; grid-template-columns: .48fr 1.4fr .65fr; gap: clamp(24px, 5vw, 72px); padding: 34px 0; border-bottom: 1px solid var(--line); }
.journey > span { color: var(--muted); font-size: 12px; }
.journey h3 { margin: 0; font-size: clamp(24px, 3vw, 40px); line-height: 1.08; }
.journey p { margin: 0; color: var(--muted); }

.admin-band { color: #eef1ea; background: var(--night); padding: clamp(74px, 9vw, 130px) 0; }
.admin-head { display: grid; grid-template-columns: 1fr .7fr; gap: clamp(28px, 8vw, 110px); align-items: end; }
.admin-head h2 { max-width: 780px; margin: 0; font-family: "Newsreader", serif; font-size: clamp(44px, 6vw, 84px); line-height: .94; }
.admin-head p { color: rgba(238,241,234,.62); font-size: 18px; }
.admin-board { margin-top: 54px; border-top: 1px solid rgba(255,255,255,.2); }
.admin-row { display: grid; grid-template-columns: 48px .9fr 1.3fr auto; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.admin-row > span:first-child { color: var(--accent); font-size: 12px; }
.admin-row strong { font-size: 20px; }
.admin-row p { margin: 0; color: rgba(238,241,234,.62); }
.admin-row b { color: var(--accent); font-size: 12px; text-transform: uppercase; }

.fit { padding: clamp(72px, 9vw, 124px) 0; }
.fit__grid { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: clamp(38px, 10vw, 150px); }
.fit h2 { margin: 0; font-family: "Newsreader", serif; font-size: clamp(38px, 5vw, 70px); line-height: .98; }
.fit__list { border-top: 1px solid var(--line); }
.fit__list div { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.fit__list span { color: var(--muted); font-size: 12px; }
.fit__list p { margin: 0; font-size: 18px; }

.faq-band { padding: clamp(68px, 8vw, 112px) 0; background: var(--paper-deep); border-top: 1px solid var(--line); }
.faq-band__grid { display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); gap: clamp(38px, 10vw, 150px); }
.faq-band h2 { margin: 0; font-family: "Newsreader", serif; font-size: clamp(38px, 5vw, 68px); line-height: .98; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-size: 18px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 2px; top: 18px; color: var(--muted); font-size: 24px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -6px 0 22px; max-width: 760px; color: var(--muted); }

.closing { color: var(--ink); background: var(--accent); padding: clamp(58px, 8vw, 100px) 0; }
.closing .section-shell { display: grid; grid-template-columns: 1.2fr .6fr; gap: 36px; align-items: end; }
.closing h2 { max-width: 900px; margin: 0; font-family: "Newsreader", serif; font-size: clamp(44px, 6vw, 88px); line-height: .9; }
.closing__action { justify-self: end; }
.closing .button { background: var(--ink); color: var(--paper); }
.closing p { margin: 14px 0 0; max-width: 490px; }

.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 24px clamp(18px, 4vw, 64px); color: rgba(238,241,234,.56); background: var(--night); font-size: 13px; }

.reveal { opacity: 0; transform: translateY(4px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 180ms var(--ease-out-quart), transform 180ms var(--ease-out-quart); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media (max-width: 920px) {
  .site-nav { display: none; }
  .hero { min-height: 760px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 158px; }
  .hero__aside { max-width: 540px; }
  .tool { grid-template-columns: 1fr; }
  .demo-form { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .demo-form .button { min-height: 48px; }
  .section-head, .journey { grid-template-columns: .35fr 1.25fr; }
  .section-head > p:last-child, .journey > p { grid-column: 2; }
  .admin-row { grid-template-columns: 38px .8fr 1.2fr; }
  .admin-row b { grid-column: 2; }
}

@media (max-width: 620px) {
  .demo-strip { grid-template-columns: 1fr auto; }
  .demo-strip__label { display: none; }
  .site-head { top: 44px; padding-top: 16px; padding-bottom: 16px; }
  .brand { font-size: 16px; }
  .brand__mark { width: 28px; height: 28px; }
  .hero { min-height: 720px; }
  .hero__inner { padding: 142px 18px 38px; }
  .hero h1 { font-size: clamp(50px, 16vw, 72px); }
  .hero__lead { font-size: 18px; }
  .hero__metrics b { font-size: 20px; }
  .demo-form { grid-template-columns: 1fr; }
  .demo-form .button, .form-result { grid-column: 1; }
  .section-head, .journey { grid-template-columns: 1fr; gap: 16px; }
  .section-head > p:last-child, .journey > p { grid-column: 1; }
  .journey { padding: 27px 0; }
  .admin-head { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 30px 1fr; gap: 10px 14px; }
  .admin-row p, .admin-row b { grid-column: 2; }
  .fit__grid { grid-template-columns: 1fr; }
  .faq-band__grid { grid-template-columns: 1fr; }
  .closing .section-shell { grid-template-columns: minmax(0, 1fr); }
  .closing .section-shell > * { min-width: 0; }
  .closing .button { max-width: 100%; white-space: normal; }
  .closing__action { justify-self: start; }
  .site-footer { flex-direction: column; }
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(245,243,235,.35);
  border-radius: 3px;
  color: #f2f1e8;
  background: rgba(17,24,18,.34);
  font-size: 22px;
}

.workspace-band {
  padding: clamp(74px, 9vw, 130px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.workspace-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .55fr);
  gap: clamp(28px, 8vw, 120px);
  align-items: end;
  margin-bottom: 42px;
}

.workspace-head small,
.view-heading small,
.record-dialog__head small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.workspace-head h2 {
  margin: 0;
  max-width: 820px;
  font-family: "Newsreader", serif;
  font-size: clamp(44px, 6vw, 82px);
  line-height: .94;
}

.workspace-head p { margin: 0; color: var(--muted); font-size: 18px; }

.workspace-frame {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--paper-deep);
  box-shadow: 10px 10px 0 rgba(19,32,25,.08);
}

.workspace-toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 14px;
  color: #eef1ea;
  background: var(--night);
}

.workspace-tabs { display: inline-flex; gap: 3px; }
.workspace-tabs button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: rgba(238,241,234,.68);
  background: transparent;
  font-weight: 700;
}
.workspace-tabs button:hover { color: #eef1ea; }
.workspace-tabs button.is-active { color: var(--accent-ink); background: var(--accent); }

.workspace-actions { display: flex; align-items: center; gap: 11px; }
.workspace-actions > span { color: rgba(238,241,234,.62); font-size: 12px; }
.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: inherit;
  background: transparent;
  font-size: 20px;
}

.workspace-view { min-height: 510px; padding: clamp(22px, 4vw, 48px); }
.view-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.view-heading h3 { margin: 0; font-family: "Newsreader", serif; font-size: clamp(34px, 4vw, 56px); line-height: 1; }
.view-heading p { margin: 10px 0 0; color: var(--muted); }
.view-count { min-width: 86px; text-align: right; }
.view-count b { display: block; font-size: 34px; line-height: 1; }
.view-count span { color: var(--muted); font-size: 12px; }
.view-heading--admin .button { color: var(--accent-ink); background: var(--accent); }

.workspace-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(170px, .5fr) auto;
  gap: 10px;
  align-items: end;
  padding: 22px 0;
}
.workspace-filter label,
.record-dialog__form > label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.workspace-filter input,
.workspace-filter select,
.admin-table select,
.record-dialog input,
.record-dialog select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 9px 11px;
  color: var(--ink);
  background: rgba(240,241,233,.72);
  outline: none;
}
.workspace-filter input:focus,
.workspace-filter select:focus,
.admin-table select:focus,
.record-dialog input:focus,
.record-dialog select:focus { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(19,32,25,.1); }

.saved-summary {
  min-width: 92px;
  padding: 7px 0 8px 18px;
  box-shadow: inset 1px 0 var(--line);
}
.saved-summary b { display: block; font-size: 24px; line-height: 1; }
.saved-summary span { color: var(--muted); font-size: 11px; }

.record-list { border-top: 1px solid var(--line); }
.record-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 130px 112px;
  align-items: center;
  gap: 18px;
  min-height: 94px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.record-row[hidden] { display: none; }
.record-code { color: var(--muted); font: 500 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.record-main h4 { margin: 0; font-size: 19px; line-height: 1.2; }
.record-main p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.status-chip { justify-self: start; padding: 6px 9px; border: 1px solid var(--line); border-radius: 2px; font-size: 12px; font-weight: 700; }
.save-button { min-height: 38px; border: 1px solid var(--ink); border-radius: 3px; color: var(--ink); background: transparent; font-weight: 700; }
.save-button.is-saved { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); }
.empty-state { padding: 28px 0; color: var(--muted); }

.workspace-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.workspace-metrics > div { padding: 22px 18px 22px 0; }
.workspace-metrics > div + div { padding-left: 18px; box-shadow: inset 1px 0 var(--line); }
.workspace-metrics span { display: block; color: var(--muted); font-size: 12px; }
.workspace-metrics b { display: block; margin-top: 5px; font-size: 30px; line-height: 1; }

.admin-table { margin-top: 28px; border-top: 1px solid var(--line); }
.admin-table__head,
.admin-table__row { display: grid; grid-template-columns: 120px minmax(240px, 1.3fr) minmax(150px, .55fr) minmax(150px, .5fr); gap: 18px; align-items: center; }
.admin-table__head { min-height: 44px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.admin-table__row { min-height: 68px; padding: 10px 0; border-top: 1px solid var(--line); }
.admin-table__row > span:first-child { color: var(--muted); font: 500 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.admin-table__row strong { font-size: 15px; }

.result-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.demo-toast {
  position: fixed;
  z-index: 40;
  right: 20px;
  bottom: 20px;
  max-width: min(380px, calc(100% - 40px));
  padding: 13px 16px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: #eef1ea;
  background: var(--night);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 180ms var(--ease-out-quart), transform 180ms var(--ease-out-quart);
}
.demo-toast.is-visible { opacity: 1; transform: translateY(0); }

.record-dialog {
  width: min(520px, calc(100% - 30px));
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
}
.record-dialog::backdrop { background: rgba(12,18,14,.68); }
.record-dialog__form { display: grid; gap: 18px; padding: 24px; }
.record-dialog__head { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.record-dialog__head h3 { margin: 0; font-family: "Newsreader", serif; font-size: 34px; }
.record-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }
.record-dialog__actions .button:last-child { color: var(--accent-ink); background: var(--accent); }
.button--quiet { border-color: var(--line); background: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 920px) {
  .menu-toggle { display: grid; }
  .site-head { align-items: center; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(245,243,235,.24);
    border-radius: 4px;
    color: #eef1ea;
    background: var(--night);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .workspace-head { grid-template-columns: 1fr; }
  .record-row { grid-template-columns: 90px minmax(0,1fr) 120px; }
  .record-row .save-button { grid-column: 2 / -1; justify-self: start; min-width: 112px; }
  .admin-table__head { display: none; }
  .admin-table__row { grid-template-columns: 1fr 1fr; gap: 14px 20px; padding: 18px 0; }
  .admin-table__row > * { display: grid; gap: 3px; }
  .admin-table__row > *::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
}

@media (max-width: 620px) {
  .workspace-frame { box-shadow: 6px 6px 0 rgba(19,32,25,.08); }
  .workspace-toolbar { align-items: stretch; }
  .workspace-tabs { width: 100%; }
  .workspace-tabs button { flex: 1; padding: 8px; font-size: 13px; }
  .workspace-actions > span { display: none; }
  .workspace-view { min-height: 560px; padding: 22px 16px; }
  .view-heading { align-items: start; }
  .view-count { min-width: 62px; }
  .view-heading--admin { flex-direction: column; align-items: stretch; }
  .workspace-filter { grid-template-columns: 1fr; }
  .saved-summary { padding: 10px 0; box-shadow: inset 0 1px var(--line); }
  .record-row { grid-template-columns: 1fr auto; gap: 10px; padding: 19px 0; }
  .record-code { grid-column: 1 / -1; }
  .record-main { grid-column: 1 / -1; }
  .record-row .save-button { grid-column: 2; min-width: 96px; }
  .status-chip { grid-column: 1; }
  .workspace-metrics { grid-template-columns: 1fr 1fr; }
  .workspace-metrics > div:nth-child(3) { box-shadow: inset 0 1px var(--line); }
  .workspace-metrics > div:nth-child(4) { box-shadow: inset 1px 1px var(--line); }
  .admin-table__row { grid-template-columns: 1fr; }
  .record-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; }
}
