:root {
  --bg: #edf2f4;
  --paper: #fff;
  --paper2: #f7f9fa;
  --ink: #0a151c;
  --ink2: #13212a;
  --muted: #637680;
  --line: #d6dfe3;
  --amber: #f6a30b;
  --amber2: #ffbd3f;
  --amber-soft: #fff4dc;
  --blue: #268bd2;
  --blue-soft: #e8f4ff;
  --green: #0a966c;
  --green-soft: #dcf7ec;
  --red: #c33d35;
  --red-soft: #ffe7e3;
  --shadow: 0 14px 42px rgba(10, 21, 28, 0.12);
  --radius: 14px;
  --content: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.5 Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  display: block;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(38, 139, 210, 0.15);
}
img,
video {
  max-width: 100%;
}
::selection {
  background: var(--amber2);
  color: var(--ink);
}
.container {
  width: min(calc(100% - 36px), var(--content));
  margin: auto;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 12px;
}
.caps {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 900;
}
.row {
  display: flex;
  align-items: center;
}
.spread {
  justify-content: space-between;
}
.gap {
  gap: 10px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.boot {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 9px;
  background: #f4f7f8;
  padding: 24px;
}
.boot strong {
  font-size: 22px;
}
.boot span {
  color: var(--muted);
}
.spin {
  width: 28px;
  height: 28px;
  margin: auto;
  border: 3px solid #dbe3e6;
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.icon {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.brand b {
  color: var(--amber);
}
.mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 21px;
  font-weight: 1000;
  flex-shrink: 0;
}
.mark:after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #56b8ff;
  border: 2px solid #fff;
}
.brand.dark {
  color: #fff;
}
.brand.dark .mark {
  background: #fff;
  color: var(--ink);
}
.brand.dark .mark:after {
  border-color: var(--ink);
}
.btn {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  font-size: 13px;
  transition: 0.16s ease;
  max-width: 100%;
  text-align: center;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: none;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn-primary {
  background: var(--amber);
  color: #071015;
  box-shadow: 0 10px 25px rgba(246, 163, 11, 0.25);
}
.btn-primary:hover {
  background: var(--amber2);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-danger {
  background: var(--red-soft);
  color: var(--red);
}
.btn-lg {
  min-height: 50px;
  padding: 13px 20px;
  font-size: 15px;
}
.btn-sm {
  min-height: 44px;
  padding: 8px 11px;
  font-size: 12px;
}
.btn-block {
  width: 100%;
}
.icon-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #52656f;
  display: grid;
  place-items: center;
}
.icon-btn:hover {
  background: #f3f6f7;
  color: var(--ink);
}
.icon-btn.dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.13);
  color: #c7d1d6;
}
.icon-btn.dark:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 100%;
  white-space: normal;
}
.badge.green {
  background: var(--green-soft);
  color: #087a59;
}
.badge.red {
  background: var(--red-soft);
  color: #ad302a;
}
.badge.blue {
  background: var(--blue-soft);
  color: #1570ae;
}
.badge.amber {
  background: var(--amber-soft);
  color: #a85f00;
}
.badge.dark {
  background: rgba(255, 255, 255, 0.09);
  color: #dfe6e9;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b96900;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow:before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 9px;
  background: var(--amber);
}
/* marketing */
.marketing {
  background: #fbfcfc;
}
.site-nav {
  height: 72px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(214, 223, 227, 0.8);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 10;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: 28px;
  color: #536670;
  font-size: 13px;
  font-weight: 800;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.hero {
  position: relative;
  padding: 84px 0 92px;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(246, 163, 11, 0.16),
      transparent 30%
    ),
    radial-gradient(
      circle at 89% 8%,
      rgba(38, 139, 210, 0.15),
      transparent 33%
    ),
    linear-gradient(#fff, #f0f4f5);
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 21, 28, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 21, 28, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(#000, transparent 85%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 52px;
  align-items: center;
}
.hero h1 {
  margin: 18px 0 20px;
  max-width: 610px;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.97;
  letter-spacing: -0.065em;
}
.hero h1 em {
  font-style: normal;
  color: #cc7600;
}
.hero-copy > p {
  font-size: 18px;
  line-height: 1.7;
  color: #52656f;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.proof {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 25px;
  color: #61737d;
  font-size: 12px;
  font-weight: 750;
}
.proof span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.proof svg {
  color: var(--green);
}
.product-window {
  position: relative;
  border: 1px solid #bdc9ce;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 34px 90px rgba(10, 21, 28, 0.2);
  transform: perspective(1200px) rotateY(-2deg);
}
.browser-bar {
  height: 42px;
  border-bottom: 1px solid var(--line);
  background: #f4f7f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}
.dots {
  display: flex;
  gap: 6px;
}
.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c7d1d6;
}
.dots i:first-child {
  background: #ec6a5e;
}
.dots i:nth-child(2) {
  background: #f3be4c;
}
.dots i:nth-child(3) {
  background: #5cc35c;
}
.address {
  width: 43%;
  height: 21px;
  border: 1px solid #d8e0e3;
  background: #fff;
  border-radius: 6px;
  color: #95a3aa;
  font-size: 9px;
  display: grid;
  place-items: center;
}
.mock {
  height: 470px;
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  background: #e9eef0;
}
.mock-side {
  background: #0a151c;
  color: #fff;
  padding: 17px 10px;
}
.mock-logo {
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 22px;
}
.mock-nav {
  padding: 8px;
  margin: 4px 0;
  border-radius: 6px;
  color: #9aa9b1;
  font-size: 9px;
  font-weight: 800;
}
.mock-nav.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.mock-main {
  padding: 13px;
  min-width: 0;
}
.mock-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}
.mock-btn {
  background: var(--amber);
  padding: 5px 7px;
  border-radius: 5px;
  font-size: 8px;
}
.mock-work {
  height: 400px;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 9px;
}
.mock-list,
.mock-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.mock-search {
  height: 25px;
  margin: 8px;
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.mock-row {
  padding: 9px;
  border-top: 1px solid #edf1f2;
  font-size: 8px;
}
.mock-row strong {
  display: block;
}
.mock-row span {
  color: #788a94;
  font-size: 7px;
}
.mock-row.active {
  background: var(--amber-soft);
  border-left: 2px solid var(--amber);
}
.mock-title {
  padding: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
}
.mini-plan {
  position: relative;
  height: 310px;
  margin: 8px;
  border: 1px solid #b9d9ef;
  background: #fbfdff;
  background-image:
    linear-gradient(rgba(38, 139, 210, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 139, 210, 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
}
.mini-plan:before {
  content: "";
  position: absolute;
  left: 12%;
  top: 60px;
  width: 72%;
  height: 125px;
  border: 5px solid #2f7da9;
  border-bottom-width: 8px;
}
.revision-pop {
  position: absolute;
  right: 12px;
  bottom: 32px;
  width: 210px;
  padding: 14px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.revision-pop strong {
  display: block;
  margin: 7px 0 4px;
}
.revision-pop p {
  margin: 0;
  color: #a7b5bc;
  font-size: 11px;
  line-height: 1.5;
}
.tradebar {
  padding: 22px 0;
  background: var(--ink);
  color: #c0ccd1;
}
.tradebar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  flex-wrap: wrap;
}
.tradebar .caps {
  color: #71858f;
}
.trade {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 850;
}
.trade svg {
  color: var(--amber);
}
.section {
  padding: 94px 0;
}
.section.soft {
  background: #f1f5f6;
}
.section.dark {
  background: var(--ink);
  color: #fff;
}
.section-head {
  max-width: 700px;
  margin: 0 0 42px;
}
.section-head.center {
  text-align: center;
  margin: 0 auto 42px;
}
.section-head.center .eyebrow {
  justify-content: center;
}
.section-head h2 {
  font-size: clamp(34px, 4vw, 51px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 13px 0 13px;
}
.section-head p {
  font-size: 17px;
  line-height: 1.7;
  color: #5a6c76;
  margin: 0;
}
.dark .section-head p {
  color: #9eafb7;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(10, 21, 28, 0.04);
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--amber-soft);
  color: #b66900;
}
.card:nth-child(2) .card-icon {
  background: var(--blue-soft);
  color: #1675b5;
}
.card:nth-child(3) .card-icon {
  background: var(--green-soft);
  color: #07805d;
}
.card h3 {
  font-size: 20px;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.card p {
  margin: 0;
  color: #5b6d76;
  line-height: 1.65;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}
.steps:before {
  content: "";
  height: 1px;
  background: #31444f;
  position: absolute;
  top: 31px;
  left: 15%;
  right: 15%;
}
.step {
  text-align: center;
  position: relative;
}
.step-num {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border: 1px solid #435660;
  background: #14252e;
  color: var(--amber2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 19px;
  font-weight: 950;
  box-shadow: 0 0 0 8px var(--ink);
}
.step h3 {
  font-size: 20px;
  margin: 0 0 8px;
}
.step p {
  margin: 0 auto;
  max-width: 310px;
  color: #9dabb2;
}
.scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}
.scope-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  padding: 13px;
  box-shadow: var(--shadow);
}
.scope-inner {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.scope-top {
  background: var(--ink);
  color: #fff;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scope-row {
  padding: 14px;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #ebeff1;
}
.scope-row:last-child {
  border: 0;
}
.scope-check {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.scope-row strong,
.scope-row span {
  display: block;
}
.scope-row strong {
  font-size: 13px;
}
.scope-row span {
  color: #6a7b84;
  font-size: 11px;
  margin-top: 2px;
}
.scope-copy h2 {
  font-size: clamp(35px, 4vw, 49px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 13px 0 15px;
}
.scope-copy > p {
  font-size: 17px;
  line-height: 1.7;
  color: #586a74;
}
.bullet {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-weight: 800;
  margin: 13px 0;
}
.bullet svg {
  color: var(--green);
  margin-top: 3px;
}
.beta-band {
  padding: 82px 0;
  background: linear-gradient(135deg, var(--amber), #ffd26f);
}
.beta-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.beta-band h2 {
  font-size: clamp(38px, 5vw, 57px);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 12px 0 15px;
}
.beta-band p {
  font-size: 16px;
  color: rgba(10, 21, 28, 0.7);
  max-width: 470px;
}
.beta-card {
  background: #fff;
  border-radius: 23px;
  padding: 24px;
  box-shadow: 0 28px 70px rgba(10, 21, 28, 0.2);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.span2 {
  grid-column: span 2;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field label {
  font-size: 13px;
  font-weight: 900;
  color: #455963;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #d0dade;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
  transition: 0.15s;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #4ea9e4;
  box-shadow: 0 0 0 3px rgba(78, 169, 228, 0.14);
}
textarea {
  min-height: 94px;
  resize: vertical;
}
.form-msg {
  padding: 10px 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
  margin-top: 9px;
}
.form-msg.ok {
  background: var(--green-soft);
  color: #087856;
}
.form-msg.err {
  background: var(--red-soft);
  color: #ac332c;
}
.form-msg.info {
  background: var(--blue-soft);
  color: #176fa8;
}
.footer {
  padding: 48px 0 26px;
  background: #061015;
  color: #9caab1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 36px;
}
.footer p {
  max-width: 340px;
  font-size: 12px;
  line-height: 1.7;
}
.foot-col h3 {
  color: #fff;
  font-size: 12px;
  margin: 4px 0 12px;
}
.foot-col a {
  display: block;
  font-size: 12px;
  margin: 8px 0;
}
.foot-col a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 36px;
  padding-top: 21px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: #667981;
}
/* auth */
.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  background: #fff;
}
.auth-art {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-art:after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(75, 173, 237, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 173, 237, 0.35) 1px, transparent 1px);
  background-size: 34px 34px;
}
.auth-art > * {
  position: relative;
  z-index: 1;
}
.auth-copy h1 {
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 15px 0;
}
.auth-copy h1 span {
  color: var(--amber2);
}
.auth-copy p {
  font-size: 17px;
  line-height: 1.65;
  color: #a8b5bb;
  max-width: 540px;
}
.auth-sample {
  max-width: 520px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}
.auth-main {
  display: grid;
  place-items: center;
  padding: 40px;
}
.auth-box {
  width: min(100%, 460px);
}
.auth-box h2 {
  font-size: 31px;
  letter-spacing: -0.04em;
  margin: 0 0 6px;
}
.auth-box > p {
  color: var(--muted);
  margin: 0 0 22px;
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: #edf1f3;
  border-radius: 10px;
  margin-bottom: 18px;
}
.tab {
  border: 0;
  background: transparent;
  border-radius: 7px;
  min-height: 44px;
  color: #6d7e87;
  font-weight: 850;
}
.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(10, 21, 28, 0.08);
}
.auth-form {
  display: grid;
  gap: 13px;
}
.auth-foot {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #61747d;
}
/* app */
.app {
  min-height: 100vh;
  min-height: 100dvh;
  background: #e9eef0;
}
.shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  background: #08131a;
  color: #fff;
  padding: 19px 14px 15px;
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}
.side > * {
  flex-shrink: 0;
}
.side-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px 18px;
}
.side-close {
  display: none;
}
.workspace {
  padding: 10px;
  margin: 0 4px 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 11px;
}
.workspace .caps {
  color: #82949d;
  font-size: 9px;
}
.work-row {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 7px;
}
.work-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--amber);
  color: #111;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 950;
}
.work-name {
  min-width: 0;
  flex: 1;
}
.work-name strong,
.work-name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-name strong {
  font-size: 13px;
}
.work-name span {
  font-size: 12px;
  color: #81939c;
  text-transform: capitalize;
}
.side-label {
  padding: 0 9px;
  margin: 12px 0 6px;
  color: #627680;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.side-nav {
  display: grid;
  gap: 3px;
}
.side-link {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #b2c0c6;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-weight: 750;
  font-size: 12px;
  width: 100%;
}
.side-link:hover,
.side-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.side-link.active svg {
  color: var(--amber);
}
.project-nav {
  max-height: 235px;
  overflow: auto;
}
.project-link {
  min-height: 48px;
  align-items: flex-start;
  padding-top: 9px;
}
.dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(10, 150, 108, 0.15);
  flex-shrink: 0;
}
.dot.review {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(246, 163, 11, 0.15);
}
.project-copy {
  min-width: 0;
}
.project-copy strong,
.project-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-copy strong {
  font-size: 13px;
}
.project-copy span {
  font-size: 11px;
  color: #71858f;
  margin-top: 2px;
}
.side-grow {
  flex: 1;
}
.beta-note {
  margin: 11px 4px;
  padding: 10px;
  border: 1px solid rgba(246, 163, 11, 0.28);
  background: rgba(246, 163, 11, 0.08);
  border-radius: 10px;
}
.beta-note strong {
  display: flex;
  gap: 6px;
  color: #ffc155;
  font-size: 12px;
}
.beta-note p {
  margin: 5px 0 0;
  color: #7f9199;
  font-size: 11px;
  line-height: 1.5;
}
.side-user {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #147fc4;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 950;
}
.user-copy {
  flex: 1;
  min-width: 0;
}
.user-copy strong,
.user-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-copy strong {
  font-size: 12px;
}
.user-copy span {
  font-size: 11px;
  color: #71858f;
}
.main {
  min-width: 0;
}
.topbar {
  min-height: 67px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.topbar > .row {
  min-width: 0;
  flex: 1;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #687a84;
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
}
.crumb strong {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 270px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.online {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #62747d;
  font-size: 12px;
  font-weight: 800;
}
.online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.online.off i {
  background: var(--red);
}
.mobile-menu {
  display: none;
}
.content {
  padding: 23px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 19px;
}
.heading > div {
  min-width: 0;
}
.heading h1 {
  font-size: 27px;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 0;
}
.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 7px;
  color: #61747d;
  font-size: 12px;
}
.meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.heading-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-bottom: 15px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(10, 21, 28, 0.04);
}
.stat-icon {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #edf2f4;
  color: #60737d;
  flex-shrink: 0;
}
.stat.blue .stat-icon {
  background: var(--blue-soft);
  color: #157bc0;
}
.stat.amber .stat-icon {
  background: var(--amber-soft);
  color: #b66b00;
}
.stat.green .stat-icon {
  background: var(--green-soft);
  color: #087e5c;
}
.stat strong,
.stat span {
  display: block;
}
.stat strong {
  font-size: 18px;
  line-height: 1;
}
.stat span {
  font-size: 12px;
  color: #697b84;
  margin-top: 4px;
}
.workbench {
  min-height: calc(100vh - 223px);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
  box-shadow: 0 9px 28px rgba(10, 21, 28, 0.08);
}
.library {
  border-right: 1px solid var(--line);
  min-width: 0;
  background: #fff;
}
.panel-head {
  min-height: 60px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-head h2 {
  font-size: 15px;
  margin: 0;
}
.panel-head p {
  font-size: 12px;
  color: #6b7d86;
  margin: 2px 0 0;
}
.tools {
  padding: 10px;
  border-bottom: 1px solid #e7ecee;
  display: grid;
  gap: 7px;
}
.search {
  position: relative;
}
.search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a9aa2;
}
.search input {
  min-height: 44px;
  padding-left: 33px;
  background: #f5f7f8;
  font-size: 16px;
}
.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
}
.filters select {
  min-height: 44px;
  padding: 5px 8px;
  font-size: 14px;
}
.toggle {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #596b75;
  min-height: 44px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 850;
}
.switch {
  width: 28px;
  height: 16px;
  border-radius: 99px;
  background: #b8c3c8;
  position: relative;
  flex-shrink: 0;
}
.switch:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: 0.15s;
}
.toggle.active .switch {
  background: var(--green);
}
.toggle.active .switch:after {
  transform: translateX(12px);
}
.summary {
  padding: 7px 12px;
  display: flex;
  justify-content: space-between;
  background: #f6f8f9;
  color: #6a7c85;
  font-size: 12px;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e7ecee;
}
.drawing-list {
  max-height: calc(100vh - 391px);
  max-height: max(320px, calc(100dvh - 391px));
  min-height: 320px;
  overflow: auto;
}
.drawing-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e8edef;
  background: #fff;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 9px;
  text-align: left;
  align-items: start;
}
.drawing-row:hover {
  background: #f8fafb;
}
.drawing-row.active {
  background: var(--amber-soft);
  box-shadow: inset 3px 0 0 var(--amber);
}
.drawing-row.old {
  opacity: 0.72;
}
.file-icon {
  width: 35px;
  height: 40px;
  border: 1px solid #cde7f7;
  border-radius: 7px;
  background: #edf8ff;
  color: #137ac0;
  display: grid;
  place-items: center;
}
.drawing-row.old .file-icon {
  background: var(--red-soft);
  border-color: #ffd2cd;
  color: var(--red);
}
.drawing-row strong {
  font-size: 14px;
}
.rev {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 4px;
  border-radius: 4px;
  background: #e8edef;
  color: #566973;
  font-size: 10px;
  font-weight: 950;
}
.drawing-row h3 {
  font-size: 13px;
  line-height: 1.35;
  margin: 2px 0 4px;
  white-space: normal;
}
.drawing-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6f8089;
  font-size: 11px;
  flex-wrap: wrap;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.status-dot.old {
  background: var(--red);
}
.chev {
  color: #adbac0;
  margin-top: 10px;
}
.empty {
  padding: 36px 20px;
  text-align: center;
  color: #6b7d86;
}
.empty h3 {
  font-size: 16px;
  color: var(--ink);
  margin: 8px 0 3px;
}
.empty p {
  font-size: 13px;
  margin: 0;
}
.viewer {
  min-width: 0;
  background: #dce4e7;
  display: flex;
  flex-direction: column;
}
.viewer-head {
  min-height: 60px;
  padding: 9px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.viewer-title {
  min-width: 0;
  flex: 1 1 220px;
}
.viewer-title .title-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.viewer-title strong {
  font-size: 15px;
}
.viewer-title p {
  font-size: 12px;
  color: #71828b;
  margin: 3px 0 0;
  white-space: normal;
  max-width: 460px;
}
.viewer-buttons {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.viewer-buttons .icon-btn {
  width: 44px;
  height: 44px;
}
.warning {
  margin: 9px 9px 0;
  padding: 9px 10px;
  border: 1px solid #ffc9c4;
  border-radius: 9px;
  background: var(--red-soft);
  color: #a9322b;
  display: flex;
  gap: 9px;
  align-items: center;
}
.warning div {
  flex: 1;
  min-width: 0;
}
.warning strong,
.warning span {
  display: block;
}
.warning strong {
  font-size: 13px;
}
.warning span {
  font-size: 12px;
}
.viewer-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 1;
}
.canvas-wrap {
  padding: 13px;
  min-width: 0;
  min-height: 535px;
  display: flex;
  flex-direction: column;
}
.canvas-bar {
  min-height: 48px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: #fff;
  padding: 0 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.canvas-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}
.canvas-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #536670;
  display: grid;
  place-items: center;
}
.canvas-btn:hover {
  background: #edf2f4;
}
.zoom {
  font-size: 12px;
  color: #687a83;
  min-width: 40px;
  text-align: center;
  font-weight: 800;
}
.canvas-status {
  font-size: 11px;
  color: #6c7d86;
  display: flex;
  align-items: center;
  gap: 5px;
}
.canvas-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.canvas {
  min-height: 490px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 0 0 9px 9px;
  background: #b7c1c5;
  overflow: auto;
  display: block;
  padding: 16px;
}
.sheet {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1.44/1;
  margin: 0;
  background: #fff;
  box-shadow: 0 12px 30px rgba(10, 21, 28, 0.25);
  transform-origin: top left;
  flex-shrink: 0;
}
.demo-canvas .sheet {
  aspect-ratio: 1100 / 760;
}
.live-canvas .sheet {
  aspect-ratio: auto;
  height: max(480px, 65vh);
  height: max(480px, 65dvh);
}
.viewer-help {
  margin: 0;
  padding: 10px 12px;
  color: #42555f;
  background: #f4f8fa;
  font-size: 13px;
  line-height: 1.6;
}
.viewer-help a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #116b9f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.workspace-jumps {
  display: none;
}
#drawing-library,
#drawing-viewer,
#drawing-notes {
  scroll-margin-top: 88px;
}
body.scroll-locked {
  overflow: hidden;
}
.sheet iframe,
.sheet svg {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.sheet-loading {
  height: 100%;
  display: grid;
  place-items: center;
  color: #637680;
  text-align: center;
}
.notes {
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.notes-head {
  min-height: 49px;
  border-bottom: 1px solid var(--line);
  padding: 10px 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.notes-head h3 {
  font-size: 14px;
  margin: 0;
}
.notes-head span {
  font-size: 12px;
  color: #70818a;
}
.note-list {
  flex: 1;
  overflow: auto;
  max-height: 360px;
  padding: 9px;
  display: grid;
  align-content: start;
  gap: 8px;
}
.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 9px;
  padding: 9px;
}
.note.revision {
  border-left-color: var(--amber);
}
.note.coordination {
  border-left-color: var(--blue);
}
.note-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.note-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 950;
  flex-shrink: 0;
}
.note-author {
  flex: 1;
  min-width: 0;
}
.note-author strong,
.note-author span {
  display: block;
}
.note-author strong {
  font-size: 12px;
}
.note-author span {
  font-size: 11px;
  color: #71828a;
}
.note-type {
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  color: #667982;
}
.note p {
  font-size: 14px;
  line-height: 1.5;
  color: #42555f;
  margin: 7px 0 0;
}
.compose {
  border-top: 1px solid var(--line);
  padding: 9px;
}
.compose textarea {
  min-height: 96px;
  font-size: 16px;
  padding: 8px;
}
.compose-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin-top: 6px;
}
.compose select {
  min-height: 44px;
  font-size: 16px;
  padding: 4px 7px;
}
.compose .btn {
  min-height: 44px;
  padding: 6px 10px;
}
.welcome {
  min-height: calc(100vh - 110px);
  min-height: calc(100dvh - 110px);
  display: grid;
  place-items: center;
  padding: 24px;
}
.welcome-card {
  width: min(100%, 590px);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.welcome-icon {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  margin: 0 auto 16px;
  background: var(--amber-soft);
  color: #b76900;
  display: grid;
  place-items: center;
}
.welcome h1 {
  font-size: 29px;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}
.welcome p {
  max-width: 430px;
  margin: 0 auto 22px;
  color: #62747e;
}
/* modal/toast */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 16, 21, 0.68);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 18px;
  overscroll-behavior: contain;
}
.modal {
  width: min(100%, 570px);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}
.modal.wide {
  width: min(100%, 720px);
}
.modal-head {
  padding: 19px 20px 13px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}
.modal-head > div {
  min-width: 0;
}
.modal-head h2 {
  font-size: 19px;
  letter-spacing: -0.03em;
  margin: 0;
}
.modal-head p {
  font-size: 13px;
  color: #687b84;
  margin: 3px 0 0;
}
.modal-body {
  padding: 19px 20px;
}
.modal-form {
  display: grid;
  gap: 13px;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.drop {
  position: relative;
  min-height: 130px;
  border: 1.5px dashed #aebdc4;
  border-radius: 12px;
  background: #f6f8f9;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
}
.drop:hover {
  border-color: #44a3df;
  background: #f0f8fe;
}
.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.drop-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #197dbb;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
}
.drop strong,
.drop span {
  display: block;
}
.drop strong {
  font-size: 14px;
}
.drop span {
  font-size: 12px;
  color: #6d7e87;
  margin-top: 3px;
}
.info {
  padding: 10px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: #176d9f;
  font-size: 13px;
  display: flex;
  gap: 8px;
  line-height: 1.5;
}
.progress {
  display: none;
}
.progress.active {
  display: block;
}
.track {
  height: 7px;
  background: #e8edef;
  border-radius: 99px;
  overflow: hidden;
}
.bar {
  height: 100%;
  width: 0;
  background: var(--amber);
  transition: 0.2s;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  color: #6b7d86;
  font-size: 12px;
  margin-top: 4px;
}
#toasts {
  position: fixed;
  z-index: 150;
  right: max(17px, env(safe-area-inset-right));
  bottom: max(17px, env(safe-area-inset-bottom));
  width: min(calc(100% - 34px), 360px);
  display: grid;
  gap: 8px;
}
.toast {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 11px;
  display: flex;
  gap: 9px;
}
.toast-icon {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.toast.err .toast-icon {
  background: var(--red-soft);
  color: var(--red);
}
.toast.info .toast-icon {
  background: var(--blue-soft);
  color: var(--blue);
}
.toast-copy {
  flex: 1;
  min-width: 0;
}
.toast-copy strong,
.toast-copy span {
  display: block;
}
.toast-copy strong {
  font-size: 13px;
}
.toast-copy span {
  font-size: 12px;
  color: #697b84;
  margin-top: 2px;
}
.scrim {
  display: none;
}
/* responsive */
@media (min-width: 1600px) {
  .viewer-body {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .notes {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}
@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    text-align: center;
    max-width: 760px;
    margin: auto;
  }
  .hero-copy .eyebrow,
  .hero-actions,
  .proof {
    justify-content: center;
  }
  .product-window {
    width: 100%;
    max-width: 760px;
    margin: auto;
    transform: none;
  }
  .workbench {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .shell {
    grid-template-columns: 225px minmax(0, 1fr);
  }
  .workspace-jumps {
    display: flex;
    gap: 8px;
    padding: 4px 0 14px;
    flex-wrap: wrap;
  }
  .workspace-jumps a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #cbd7dc;
    border-radius: 10px;
    background: #fff;
    color: #294753;
    font-size: 13px;
    font-weight: 800;
  }
  .heading {
    flex-wrap: wrap;
  }
  .heading-actions {
    justify-content: flex-start;
  }
  .stat {
    padding: 10px;
    gap: 8px;
  }
  .stat-icon {
    width: 30px;
    height: 34px;
  }
}
@media (max-width: 980px) {
  input,
  select,
  textarea,
  .field input,
  .field select,
  .field textarea,
  .modal-form input,
  .modal-form select,
  .modal-form textarea,
  .filters select {
    font-size: 16px;
  }
  .container {
    width: min(
      calc(
        100% - 36px - env(safe-area-inset-left) - env(safe-area-inset-right)
      ),
      var(--content)
    );
  }
  .nav-links {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .steps:before {
    left: 31px;
    top: 25px;
    bottom: 25px;
    width: 1px;
    height: auto;
  }
  .step {
    display: grid;
    grid-template-columns: 64px 1fr;
    text-align: left;
    gap: 18px;
  }
  .step-num {
    margin: 0;
  }
  .step p {
    margin: 0;
  }
  .scope,
  .beta-grid {
    grid-template-columns: 1fr;
  }
  .scope-copy {
    order: -1;
  }
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-art {
    min-height: 380px;
  }
  .shell {
    display: block;
  }
  .side {
    position: fixed;
    left: 0;
    top: 0;
    width: min(310px, calc(100% - 28px));
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    padding-left: max(14px, env(safe-area-inset-left));
    transform: translateX(-102%);
    transition: 0.18s;
    box-shadow: var(--shadow);
  }
  .side.open {
    transform: none;
  }
  .side-close,
  .mobile-menu {
    display: grid;
  }
  .scrim.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(7, 16, 21, 0.55);
  }
  .workbench {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .container {
    width: min(
      calc(
        100% - 28px - env(safe-area-inset-left) - env(safe-area-inset-right)
      ),
      var(--content)
    );
  }
  .site-nav {
    height: auto;
    min-height: 64px;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: 10px;
  }
  .nav-inner {
    gap: 12px;
    flex-wrap: wrap;
  }
  .nav-actions {
    gap: 6px;
  }
  input,
  select,
  textarea,
  .filters select {
    font-size: 16px;
  }
  .hero {
    padding: 62px 0;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero-copy > p {
    font-size: 16px;
  }
  .hero-actions {
    display: grid;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .proof {
    display: grid;
    gap: 7px;
  }
  .mock {
    height: 375px;
    grid-template-columns: 104px minmax(0, 1fr);
  }
  .mock-work {
    grid-template-columns: 110px minmax(0, 1fr);
    height: 315px;
  }
  .mock-main {
    padding: 8px;
  }
  .mini-plan {
    height: 220px;
  }
  .revision-pop {
    display: none;
  }
  .section {
    padding: 70px 0;
  }
  .section-head h2 {
    font-size: 37px;
  }
  .form-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: span 2;
  }
  .footer-bottom {
    display: grid;
  }
  .auth-art {
    min-height: auto;
    padding: 25px 21px;
    padding-top: max(25px, env(safe-area-inset-top));
  }
  .auth-copy h1 {
    font-size: clamp(29px, 6vw, 40px);
  }
  .auth-copy p {
    font-size: 15px;
    margin-bottom: 0;
  }
  .auth-copy .eyebrow {
    margin-top: 18px;
  }
  .auth-sample {
    display: none;
  }
  .auth-main {
    padding: 28px max(20px, env(safe-area-inset-right))
      max(28px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
  }
  .topbar {
    min-height: 64px;
    padding: max(8px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right)) 8px
      max(12px, env(safe-area-inset-left));
    gap: 8px;
  }
  .crumb > span,
  .crumb > b {
    display: none;
  }
  .crumb strong {
    max-width: none;
  }
  .top-actions {
    gap: 6px;
  }
  .top-actions .online {
    font-size: 11px;
  }
  .top-actions .badge {
    font-size: 9px;
    max-width: 88px;
    line-height: 1.3;
  }
  .top-actions .btn {
    padding: 10px;
    min-width: 44px;
  }
  .top-actions .btn span {
    display: none;
  }
  .content {
    padding: 13px max(13px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(13px, env(safe-area-inset-left));
  }
  .heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    gap: 12px;
  }
  .heading h1 {
    font-size: 22px;
  }
  .heading-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .heading-actions .btn {
    flex: 1 1 130px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .workspace-jumps {
    gap: 6px;
  }
  .workspace-jumps a {
    flex: 1;
    padding-inline: 10px;
  }
  .workbench {
    display: block;
    min-height: 0;
  }
  .library {
    border-right: 0;
  }
  .drawing-list {
    min-height: 0;
    max-height: min(390px, 60vh);
    max-height: min(390px, 60dvh);
  }
  .viewer {
    border-top: 1px solid var(--line);
  }
  .canvas-wrap {
    min-height: 0;
    padding: 8px;
  }
  .canvas {
    min-height: 300px;
    padding: 10px;
  }
  .viewer-title p {
    max-width: none;
  }
  .viewer-head {
    padding: 12px;
    gap: 8px;
  }
  .viewer-title {
    flex-basis: 100%;
  }
  .viewer-buttons {
    width: 100%;
    justify-content: flex-end;
  }
  .canvas-bar {
    padding-block: 4px;
  }
  .canvas-status {
    padding: 0 4px 4px;
  }
  .warning {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .warning .btn {
    width: 100%;
  }
  .notes-head,
  .compose {
    padding: 12px;
  }
  .note-list {
    max-height: min(360px, 50vh);
    max-height: min(360px, 50dvh);
    padding: 12px;
  }
  .modal-back {
    padding: 0;
    align-items: end;
  }
  .modal,
  .modal.wide {
    width: 100%;
    max-height: 92vh;
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
    border-radius: 18px 18px 0 0;
  }
  .footer {
    padding-top: 40px;
    padding-bottom: max(26px, env(safe-area-inset-bottom));
  }
  .footer-bottom {
    font-size: 12px;
  }
  .foot-col a,
  .auth-foot a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-block: 0;
  }
  .auth-foot a {
    justify-content: center;
  }
  .modal-head {
    padding: 16px max(16px, env(safe-area-inset-right)) 12px
      max(16px, env(safe-area-inset-left));
  }
  .modal-body {
    padding: 16px max(16px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }
  .welcome {
    padding: 18px;
  }
  .welcome-card {
    padding: 26px 18px;
  }
}
@media (max-width: 470px) {
  .hero h1 {
    font-size: 41px;
  }
  .nav-actions .btn {
    padding: 9px 11px;
    flex: 1;
  }
  .nav-actions {
    width: 100%;
  }
  .nav-inner {
    justify-content: center;
  }
  .hero {
    padding-block: 40px;
  }
  .mock-side {
    display: none;
  }
  .mock {
    grid-template-columns: minmax(0, 1fr);
    height: 320px;
  }
  .mock-work {
    height: 262px;
    grid-template-columns: 105px minmax(0, 1fr);
  }
  .filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .viewer-head {
    align-items: flex-start;
  }
  .meta {
    display: grid;
    gap: 5px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: auto;
  }
  .compose-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .beta-card {
    padding: 18px;
  }
  .tradebar .container {
    gap: 16px;
  }
  .stat-icon {
    display: none;
  }
  .drawing-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 7px;
  }
  .file-icon {
    width: 30px;
    height: 36px;
  }
}
@media (max-width: 350px) {
  .filters {
    grid-template-columns: minmax(0, 1fr);
  }
  .canvas-status {
    flex-basis: 100%;
  }
}
@media (max-width: 980px) and (max-height: 500px) {
  .side {
    padding-top: 8px;
  }
  .side-head {
    padding-bottom: 8px;
  }
  .workspace {
    margin-bottom: 8px;
  }
  .auth-art {
    display: none;
  }
  .canvas {
    min-height: 240px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.001ms !important;
  }
}

/* Source-build boot diagnostics and role-aware controls. */
.boot-status {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  font:
    16px/1.5 Inter,
    ui-sans-serif,
    system-ui;
  background: #f3f6f7;
  color: var(--ink);
  overflow: auto;
  padding-block: 24px;
}
.boot-status strong {
  font-size: 22px;
}
.boot-status span {
  max-width: 560px;
  color: var(--muted);
  padding: 0 20px;
}
.boot-status.boot-error strong {
  color: var(--red);
}
body[data-role="viewer"] [data-modal="project"],
body[data-role="viewer"] [data-modal="upload"],
body[data-role="viewer"] #note-form,
body[data-role="viewer"] [data-modal="workspace"],
body[data-role="viewer"] [data-modal="invite"],
body[data-role="member"] [data-modal="workspace"],
body[data-role="member"] [data-modal="project"],
body[data-role="admin"] [data-modal="workspace"],
body[data-role="member"] [data-modal="invite"] {
  display: none !important;
}
.compose.read-only {
  display: block;
  padding: 12px;
  color: #245d82;
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
}
