:root {
  --ink: #111819;
  --muted: #657071;
  --line: #dce2df;
  --paper: #ffffff;
  --wash: #f3f5f2;
  --green: #1f6b5c;
  --navy: #153b50;
  --acid: #d8f275;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
  z-index: 5;
}

.logo {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.rail button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.rail button:hover {
  background: #eef2ef;
}

.app {
  margin-left: 76px;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.language-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef2ef;
  padding: 2px;
}

.language-toggle button {
  min-width: 48px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.language-toggle button.active {
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(17, 24, 25, 0.08);
}

.user-menu {
  position: relative;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 230px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 5px 9px 5px 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.user-chip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: var(--green);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.user-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  width: 320px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 12px;
  box-shadow: 0 18px 44px rgba(17, 24, 25, 0.18);
}

.user-popover-head {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.user-popover-head strong,
.wallet-card span,
.profile-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-popover-head span {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #cfe2d7;
  border-radius: 6px;
  background: #eef7f2;
  padding: 12px;
}

.wallet-card strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
  line-height: 1;
}

.wallet-card small {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 12px;
  align-items: center;
}

.profile-grid strong {
  color: var(--ink);
  font-size: 14px;
}

.logout-btn {
  width: 100%;
  border: 1px solid #f0c7bc;
  border-radius: 6px;
  background: #fff7f4;
  color: #8a2f18;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

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

h1 {
  font-size: 21px;
  letter-spacing: 0;
}

.topbar p,
.hero p,
.table-heading p,
.dropzone span,
.smallprint {
  color: var(--muted);
}

.status {
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fbfcfb;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  margin: 18px 22px 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  margin: 16px 22px;
  padding: 20px;
}

.auth-panel h2 {
  max-width: 720px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.auth-panel p {
  max-width: 620px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.login-form {
  display: grid;
  align-content: end;
  gap: 4px;
}

.hidden {
  display: none !important;
}

.takeoff-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  z-index: 40;
}

.takeoff-modal-open {
  overflow: hidden;
}

.takeoff-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(232, 238, 241, 0.72);
  cursor: default;
  backdrop-filter: blur(3px);
}

.takeoff-dialog {
  position: relative;
  width: min(840px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid #c9d7e2;
  border-radius: 14px;
  background: rgba(248, 251, 252, 0.96);
  box-shadow: 0 24px 70px rgba(21, 59, 80, 0.22);
  padding: 38px 42px 46px;
  color: #2c568b;
}

.takeoff-dialog-heading {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 18px;
}

.takeoff-dialog-heading h2 {
  margin: 0;
  color: #2c568b;
  font-size: 34px;
  letter-spacing: 0;
}

.takeoff-rocket {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 8px;
  background: #5b7fad;
  color: white;
  font-size: 42px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(44, 86, 139, 0.22);
}

.takeoff-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #607893;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

.takeoff-close:hover {
  background: #e8f0f7;
}

.takeoff-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
}

.takeoff-first-section {
  margin-top: 30px;
}

.takeoff-section-heading h3 {
  margin: 0;
  color: #496e9a;
  font-size: 24px;
  letter-spacing: 0;
}

.takeoff-section-heading button {
  border: 1px solid #c7d8e8;
  border-radius: 8px;
  background: white;
  color: #2c568b;
  padding: 12px 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(44, 86, 139, 0.1);
}

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

.takeoff-project-type,
.takeoff-category {
  position: relative;
  display: grid;
  min-height: 82px;
  align-items: center;
  border: 1px solid #c7d8e8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #2c568b;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(44, 86, 139, 0.1);
}

.takeoff-project-type,
.takeoff-category {
  grid-template-columns: 72px minmax(0, 1fr) 54px;
  padding: 0 24px 0 20px;
  font-size: 26px;
  font-weight: 850;
}

.takeoff-project-type input,
.takeoff-category input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.takeoff-symbol {
  color: #2c568b;
  font-size: 34px;
  font-weight: 900;
}

.takeoff-project-type i,
.takeoff-category i {
  justify-self: end;
  width: 38px;
  height: 38px;
  border: 4px solid #9baec4;
  border-radius: 8px;
  background: white;
}

.takeoff-project-type i,
.takeoff-page-picker i {
  border-radius: 50%;
}

.takeoff-project-type:has(input:checked),
.takeoff-category:has(input:checked) {
  border-color: #bad3eb;
  background: #dcecf8;
}

.takeoff-project-type input:checked + .takeoff-symbol + span + i {
  border-color: #8aa4c0;
  background: radial-gradient(circle, #2c568b 0 42%, transparent 44%), #dcecf8;
}

.takeoff-category input:checked + .takeoff-symbol + span + i {
  border-color: #2c568b;
  background:
    linear-gradient(45deg, transparent 52%, white 52% 64%, transparent 64%),
    linear-gradient(-45deg, transparent 48%, white 48% 60%, transparent 60%),
    #2c568b;
}

.takeoff-category.disabled {
  color: #c4ced8;
  cursor: not-allowed;
  opacity: 0.82;
}

.takeoff-category.disabled .takeoff-symbol {
  color: #c4ced8;
}

.takeoff-category.disabled i {
  border-color: #d9e1e7;
  background: #f7f9fa;
}

.takeoff-page-picker {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  border: 1px solid #c7d8e8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 18px 20px;
  box-shadow: 0 4px 12px rgba(44, 86, 139, 0.1);
}

.takeoff-page-picker label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #2c568b;
  font-size: 18px;
  font-weight: 850;
}

.takeoff-page-picker input {
  width: 100%;
  border: 1px solid #c7d8e8;
  border-radius: 8px;
  background: white;
  color: #1c3556;
  padding: 14px 16px;
  font-size: 22px;
  font-weight: 850;
}

.takeoff-page-picker input:focus {
  border-color: #2c568b;
  outline: 3px solid rgba(44, 86, 139, 0.16);
}

.takeoff-page-picker small {
  color: #6a7e92;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.takeoff-continue {
  display: grid;
  width: 100%;
  min-height: 70px;
  place-items: center;
  margin-top: 42px;
  border: 0;
  border-radius: 8px;
  background: #2c568b;
  color: white;
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(44, 86, 139, 0.18);
}

.takeoff-continue:disabled {
  background: #9eafc2;
  cursor: not-allowed;
  box-shadow: none;
}

.scale-dialog {
  width: min(660px, calc(100vw - 36px));
  padding: 0;
  overflow: hidden;
}

.scale-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 76px;
  border-bottom: 1px solid #c7d8e8;
  background: #dcecf8;
}

.scale-tabs button {
  display: grid;
  min-height: 86px;
  place-items: center;
  border: 0;
  border-right: 1px solid #c7d8e8;
  background: transparent;
  color: #6683a6;
  cursor: pointer;
  font-weight: 850;
}

.scale-tabs button.active {
  background: rgba(255, 255, 255, 0.88);
  color: #2c568b;
}

.scale-tabs strong {
  font-size: 18px;
}

.scale-tabs span {
  font-size: 12px;
}

.scale-tabs .takeoff-close {
  width: auto;
  height: auto;
  border-right: 0;
  font-size: 32px;
}

.scale-page-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 36px 10px;
}

.scale-page-line h2,
.scale-page-line p {
  margin: 0;
}

.scale-page-line h2 {
  color: #2c568b;
  font-size: 24px;
}

.scale-page-line p {
  color: #6a7e92;
  font-size: 14px;
  font-weight: 850;
}

.scale-pane {
  display: none;
  padding: 18px 36px 38px;
}

.scale-pane.active {
  display: grid;
  gap: 24px;
}

.scale-field {
  display: grid;
  gap: 12px;
  margin: 0;
  color: #496e9a;
  font-size: 16px;
  font-weight: 850;
}

.scale-equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.scale-equation.compact {
  grid-template-columns: minmax(0, 1fr);
  max-width: 280px;
}

.scale-equation input {
  width: 100%;
  border: 1px solid #c7d8e8;
  border-radius: 8px;
  background: white;
  color: #1c3556;
  padding: 14px 16px;
  font-size: 22px;
  font-weight: 850;
}

.scale-equation input:focus {
  border-color: #2c568b;
  outline: 3px solid rgba(44, 86, 139, 0.16);
}

.scale-equation small {
  grid-row: 2;
  color: #6683a6;
  font-size: 13px;
  text-align: center;
}

.scale-equation b {
  display: grid;
  min-height: 55px;
  place-items: center;
  color: #2c568b;
  font-size: 28px;
}

.common-scale-block {
  display: grid;
  gap: 12px;
  color: #6683a6;
  font-weight: 850;
}

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

.common-scale-grid button,
.scale-zone-list button {
  min-height: 44px;
  border: 1px solid #c7d8e8;
  border-radius: 7px;
  background: #dcecf8;
  color: #2c568b;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
}

.common-scale-grid button:hover,
.scale-zone-list button:hover {
  background: #cfe4f6;
}

.scale-set {
  display: grid;
  width: min(360px, 100%);
  min-height: 58px;
  place-items: center;
  justify-self: center;
  border: 0;
  border-radius: 8px;
  background: #2c568b;
  color: white;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.scale-help {
  margin: 0;
  color: #496e9a;
  line-height: 1.55;
}

.scale-zone-list {
  display: grid;
  gap: 8px;
}

.scale-zone-list span {
  color: #6a7e92;
  font-weight: 850;
}

.scale-zone-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  text-align: left;
}

.admin-app {
  min-height: 100vh;
  padding: 22px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-header p,
.admin-login p {
  color: var(--muted);
}

.admin-header a {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  padding: 20px;
}

.admin-login h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.admin-workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 16px;
}

.admin-summary {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.admin-summary article {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  padding: 12px;
}

.admin-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.admin-table {
  min-width: 0;
}

.danger {
  border: 1px solid #f0c7bc;
  border-radius: 6px;
  background: #fff7f4;
  color: #8a2f18;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.admin-divider {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.permission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.permission-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  padding: 8px;
  color: var(--ink);
  font-size: 12px;
}

.permission-grid input {
  width: auto;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #e9f2f0;
  color: var(--green);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h2 {
  max-width: 820px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 780px;
  margin-top: 12px;
  line-height: 1.6;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-self: end;
}

.metrics article {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: #fbfcfb;
}

.metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.pricing {
  margin: 16px 22px;
  padding: 20px;
}

.pricing-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.pricing-head h2 {
  max-width: 860px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

.pricing-head p {
  color: var(--muted);
  line-height: 1.55;
}

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

.price-card {
  position: relative;
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  padding: 16px;
}

.price-card.featured {
  border-color: var(--green);
  background: #eef7f2;
}

.price-card.service {
  background: #f8faf8;
}

.plan-kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.price-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 24px;
}

.price-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.price-card li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--acid);
  vertical-align: 1px;
}

.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 380px;
  gap: 14px;
  margin: 16px 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(17, 24, 25, 0.03);
}

.panel-title {
  margin-bottom: 14px;
  font-weight: 900;
}

.controls {
  padding: 16px;
}

.project-manager {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.project-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 8px;
}

.project-actions input {
  margin-top: 0;
}

.project-actions button,
.project-list button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.project-actions button {
  padding: 0 10px;
}

.project-list {
  display: grid;
  gap: 6px;
  max-height: 150px;
  overflow: auto;
}

.project-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  text-align: left;
}

.project-list button.active {
  border-color: var(--navy);
  background: #eaf1f1;
  color: var(--navy);
}

.project-list small,
.project-files small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-delete {
  width: 100%;
}

.project-delete:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.project-files {
  display: grid;
  gap: 6px;
  max-height: 170px;
  overflow: auto;
}

.project-files-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-files a {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 9px;
  background: #fbfcfb;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.project-files a:hover {
  background: #f3f7f5;
}

.project-empty {
  border: 1px dashed #c6cfcc;
  border-radius: 6px;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

input {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px;
  outline: none;
  color: var(--ink);
  font-weight: 700;
}

select,
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 11px;
  outline: none;
  color: var(--ink);
  font-weight: 700;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

input:focus {
  border-color: var(--navy);
}

.dropzone {
  display: grid;
  min-height: 156px;
  place-items: center;
  border: 1px dashed #a9b5b1;
  border-radius: 6px;
  padding: 18px;
  background: #fbfcfb;
  text-align: center;
  cursor: pointer;
}

.dropzone input {
  display: none;
}

.dropzone strong {
  display: block;
  color: var(--ink);
}

.dropzone span {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.request-invite {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.request-invite input,
.request-invite select,
.request-invite textarea {
  margin-top: 0;
}

.request-invite button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  color: var(--navy);
  padding: 11px 12px;
  font-weight: 900;
  cursor: pointer;
}

.primary,
.table-heading button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 12px 14px;
  background: var(--navy);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.primary:disabled {
  cursor: wait;
  opacity: 0.65;
}

.smallprint {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.55;
}

code {
  color: var(--navy);
  font-weight: 900;
}

.viewer,
.model {
  padding: 16px;
}

.drawing-frame {
  position: relative;
  display: grid;
  height: 516px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dfe5e6;
  text-align: center;
}

.drawing-frame object {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

.intake-pdf-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.pdf-canvas-shell {
  position: relative;
  min-width: 100%;
  min-height: 100%;
  margin: 0 auto;
  background: white;
}

.pdf-canvas-shell canvas {
  display: block;
  background: white;
}

.pdf-canvas-shell object {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pdf-render-status {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 4;
  border: 1px solid rgba(21, 59, 80, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 900;
}

.takeoff-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.takeoff-overlay.draw-mode,
.takeoff-overlay.delete-mode,
.takeoff-overlay.measure-mode {
  pointer-events: auto;
}

.takeoff-overlay.draw-mode,
.takeoff-overlay.measure-mode {
  cursor: crosshair;
}

.takeoff-overlay.delete-mode {
  cursor: not-allowed;
}

.takeoff-overlay g {
  cursor: pointer;
  opacity: 0.72;
  pointer-events: auto;
}

.takeoff-overlay g.active {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(21, 59, 80, 0.55));
}

.takeoff-overlay line {
  stroke-linecap: round;
}

.takeoff-overlay .overlay-hit {
  opacity: 0;
}

.takeoff-overlay .overlay-endpoint {
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 2px;
}

.takeoff-overlay .manual-draw-start {
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 3px;
  filter: drop-shadow(0 0 4px rgba(21, 59, 80, 0.35));
}

.takeoff-overlay .scale-measure-start {
  fill: #f59e0b;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 3px;
  filter: drop-shadow(0 0 4px rgba(21, 59, 80, 0.35));
}

.takeoff-overlay text {
  dominant-baseline: middle;
  font-size: 11px;
  font-weight: 900;
  paint-order: stroke;
  pointer-events: none;
  stroke: rgba(0, 0, 0, 0.18);
  stroke-width: 1px;
  text-anchor: middle;
}

.pdf-icon {
  display: grid;
  width: 74px;
  height: 92px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 6px;
  background: white;
  box-shadow: 0 10px 26px rgba(17, 24, 25, 0.12);
  color: var(--navy);
  font-weight: 900;
}

.drawing-frame h3 {
  margin-bottom: 8px;
}

.drawing-frame p {
  max-width: 360px;
  color: var(--muted);
}

.model-stage {
  position: relative;
  height: 286px;
  overflow: hidden;
  border-radius: 6px;
  background: #101820;
  color: white;
}

.model-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#ffffff18 1px, transparent 1px), linear-gradient(90deg, #ffffff18 1px, transparent 1px);
  background-size: 28px 28px;
}

.model-stage span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--ink);
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 900;
}

.beam {
  position: absolute;
  height: 6px;
  border-radius: 999px;
  background: var(--acid);
  box-shadow: 0 0 18px rgba(216, 242, 117, 0.55);
  transform-origin: left center;
}

.column {
  position: absolute;
  width: 7px;
  border-radius: 999px;
  background: #67d0b5;
  box-shadow: 0 0 18px rgba(103, 208, 181, 0.45);
}

.downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.downloads a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 8px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.downloads a:not(.disabled):hover {
  background: #f6f8f6;
}

.downloads .disabled {
  color: #a0aaa7;
  pointer-events: none;
}

.table-panel,
.review-panel {
  margin: 0 22px 24px;
}

.workspace .review-panel {
  margin: 0;
  min-width: 0;
}

.workspace-review {
  overflow: hidden;
}

.table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.table-heading button {
  width: auto;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.review-zoom {
  display: inline-grid;
  grid-template-columns: 38px 62px 38px 62px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.review-zoom button {
  min-width: 0;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  padding: 0;
  font-size: 16px;
  font-weight: 900;
}

.review-zoom button:hover {
  background: #eaf1f8;
}

.review-zoom button:disabled {
  color: #a8b5c1;
  cursor: not-allowed;
  opacity: 1;
}

.review-zoom output {
  display: grid;
  height: 42px;
  place-items: center;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.review-scale {
  display: inline-grid;
  grid-template-columns: 72px minmax(120px, auto);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.review-scale button {
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  padding: 0 12px;
  font-weight: 900;
}

.review-scale button:hover {
  background: #eaf1f8;
}

.review-scale output {
  display: grid;
  min-width: 120px;
  height: 42px;
  place-items: center;
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
  white-space: nowrap;
}

.review-modes {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.review-actions .review-modes button {
  min-width: 70px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 10px;
}

.review-actions .review-modes button.active {
  background: var(--navy);
  color: white;
}

.review-actions input {
  width: 220px;
  margin: 0;
}

.review-actions button {
  width: auto;
  background: #fbfcfb;
  color: var(--ink);
  border: 1px solid var(--line);
}

.review-actions button.active {
  border-color: var(--navy);
  background: #eaf1f1;
  color: var(--navy);
}

.review-actions .review-zoom button {
  width: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.review-actions .review-zoom button:hover {
  background: #eaf1f8;
}

.review-actions .review-zoom button:disabled {
  color: #a8b5c1;
  cursor: not-allowed;
  opacity: 1;
}

.review-actions .review-scale button {
  width: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  padding: 0 12px;
}

.review-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 640px;
}

.workspace-review .review-workbench {
  grid-template-columns: minmax(0, 1fr);
  min-height: min(76vh, 820px);
}

.review-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 14px;
}

.workspace-review .review-main {
  border-right: 0;
  padding: 12px;
}

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

.review-stats article {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  padding: 10px;
}

.review-stats span {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.review-stats small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.review-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.review-legend button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.review-legend i,
.annotation-dot,
.summary-grid i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--member-color);
}

.review-legend small {
  color: var(--muted);
}

.review-drawing-stage {
  min-height: 0;
  flex: 1;
}

.review-pdf-stack {
  height: min(72vh, 780px);
  overflow: auto;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #51575a;
}

.review-pdf-stack .review-pdf-frame {
  width: max-content;
  max-width: none;
  min-height: auto;
  height: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.review-pdf-stack .review-pdf-frame .pdf-canvas-shell {
  min-width: 320px;
  min-height: 220px;
  box-shadow: 0 8px 24px rgba(17, 24, 25, 0.26);
}

.review-pdf-frame {
  position: relative;
  min-height: 520px;
  height: min(68vh, 720px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef2ef;
}

.review-pdf-frame .pdf-canvas-shell {
  min-width: auto;
  min-height: auto;
}

.review-pdf-frame object {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

.review-drawing-empty {
  display: grid;
  height: 100%;
  min-height: 420px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.review-drawing-empty strong {
  color: var(--ink);
}

.review-drawing-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(21, 59, 80, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(17, 24, 25, 0.12);
}

.review-drawing-hint strong {
  font-size: 18px;
}

.annotation-list {
  display: grid;
  gap: 7px;
  max-height: 390px;
  overflow: auto;
}

.annotation-row {
  display: grid;
  grid-template-columns: 18px 92px minmax(130px, 1fr) 110px 90px 100px 100px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--member-color);
  border-radius: 6px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.annotation-row.active {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(21, 59, 80, 0.12);
}

.annotation-row.confirmed {
  background: #f0fff6;
}

.annotation-row.excluded {
  opacity: 0.55;
  text-decoration: line-through;
}

.annotation-row strong,
.annotation-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.annotation-row em,
.summary-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

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

.summary-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  padding: 12px;
}

.summary-grid strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-grid span,
.summary-grid em {
  grid-column: 2;
}

.review-editor {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  background: #f8faf8;
}

.review-editor label {
  margin-bottom: 0;
}

.review-editor input,
.review-editor select {
  margin-top: 6px;
}

.review-editor button:not(.primary) {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--navy);
  padding: 11px 12px;
  font-weight: 900;
  cursor: pointer;
}

.review-editor button.danger {
  border-color: #f0c7bc;
  background: #fff7f4;
  color: #8a2f18;
}

.steel-panel {
  display: grid;
  gap: 12px;
  max-height: min(86vh, 920px);
  overflow: auto;
  padding: 12px;
  background: #f5f9fb;
}

.steel-chat,
.steel-card,
.steel-panel .review-editor {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
}

.steel-chat {
  display: grid;
  grid-template-rows: auto minmax(190px, 1fr) auto;
  min-height: 380px;
}

.steel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.steel-heading .panel-title {
  margin-bottom: 3px;
}

.steel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.steel-status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(0, 196, 140, 0.14);
}

.steel-log {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  padding: 12px;
}

.steel-message {
  display: grid;
  gap: 4px;
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.42;
}

.steel-message small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.steel-message.steel {
  border: 1px solid #cfe1ed;
  background: #eaf4fb;
}

.steel-message.user {
  border: 1px solid #d8e7df;
  background: #eef8f2;
}

.steel-message.system {
  border: 1px solid var(--line);
  background: #fff;
}

.steel-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px;
}

.steel-input-row textarea {
  min-height: 58px;
  max-height: 120px;
  margin-top: 0;
  resize: vertical;
}

.steel-input-row button {
  align-self: end;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: white;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.steel-input-row button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.steel-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.steel-panel .review-editor {
  padding: 12px;
}

.table-wrap {
  max-height: 440px;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: #f8faf8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  font-weight: 700;
}

.empty {
  height: 160px;
  color: #9aa5a2;
  text-align: center;
  vertical-align: middle;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
}

.badge.ok {
  background: #e7f7ef;
  color: #176140;
}

.badge.warn {
  background: #fff2d5;
  color: #805100;
}

@media (max-width: 1180px) {
  .rail {
    display: none;
  }

  .app {
    margin-left: 0;
  }

  .hero,
  .pricing-head,
  .auth-panel,
  .admin-login,
  .admin-workspace,
  .workspace {
    grid-template-columns: 1fr;
  }

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

  .admin-summary {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review-workbench {
    grid-template-columns: 1fr;
  }

  .review-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 720px) {
  .topbar,
  .table-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero,
  .pricing,
  .auth-panel,
  .workspace,
  .table-panel,
  .review-panel {
    margin-left: 12px;
    margin-right: 12px;
  }

  .metrics,
  .downloads,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .price-card {
    min-height: auto;
  }

  .review-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .review-zoom {
    width: 100%;
    grid-template-columns: 1fr 1.4fr 1fr 1.6fr;
  }

  .review-scale {
    width: 100%;
    grid-template-columns: 1fr 1.8fr;
  }

  .review-actions input,
  .review-actions button {
    width: 100%;
  }

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

  .annotation-row {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .annotation-row span,
  .annotation-row em {
    grid-column: 2;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .takeoff-modal {
    padding: 12px;
  }

  .takeoff-dialog {
    padding: 24px 18px 28px;
  }

  .takeoff-dialog-heading {
    grid-template-columns: 58px minmax(0, 1fr) 40px;
    gap: 12px;
  }

  .takeoff-dialog-heading h2 {
    font-size: 28px;
  }

  .takeoff-rocket {
    width: 58px;
    height: 58px;
    font-size: 32px;
  }

  .takeoff-project-grid,
  .takeoff-category-grid {
    grid-template-columns: 1fr;
  }

  .takeoff-project-type,
  .takeoff-category {
    min-height: 68px;
    font-size: 21px;
  }

  .scale-tabs {
    grid-template-columns: 1fr;
  }

  .scale-tabs button {
    min-height: 62px;
    border-right: 0;
    border-bottom: 1px solid #c7d8e8;
  }

  .scale-page-line,
  .scale-pane {
    padding-left: 18px;
    padding-right: 18px;
  }

  .scale-equation,
  .common-scale-grid {
    grid-template-columns: 1fr;
  }

  .scale-equation b {
    min-height: auto;
  }

  .takeoff-continue {
    min-height: 60px;
    font-size: 22px;
  }
}

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

:root {
  --ink: #172838;
  --muted: #637589;
  --line: #d8e4ef;
  --paper: #ffffff;
  --wash: #f5f8fb;
  --green: #00a978;
  --navy: #24568f;
  --acid: #e8f69b;
  --sky: #e9f4ff;
  --pink: #ec5ea8;
  --amber: #d8912e;
}

body {
  background:
    linear-gradient(180deg, rgba(233, 244, 255, 0.75), rgba(245, 248, 251, 0) 420px),
    var(--wash);
}

.app {
  margin-left: 0;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  padding: 14px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid rgba(187, 205, 221, 0.72);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #21558e;
  color: white;
  font-weight: 900;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.12);
}

.brand-lockup h1 {
  font-size: 20px;
}

.brand-lockup p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  flex: 1;
}

.site-links a {
  color: #31506f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.site-links a:hover {
  color: var(--navy);
}

.top-actions {
  min-width: 300px;
}

.status {
  border-color: #cfe0ee;
  background: #f7fbff;
  color: #3f5e7d;
  font-size: 13px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(620px, 1.18fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: clamp(30px, 5vw, 70px) clamp(18px, 4vw, 64px) clamp(24px, 4vw, 48px);
}

.hero-copy {
  min-width: 0;
}

.announcement {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 22px;
  border: 1px solid #cbe0ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #31506f;
  padding: 7px 12px 7px 7px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(31, 79, 126, 0.08);
}

.announcement span {
  border-radius: 999px;
  background: #dceeff;
  color: var(--navy);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.announcement strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-hero h2 {
  max-width: 780px;
  color: #13293f;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.home-hero p {
  max-width: 660px;
  margin-top: 20px;
  color: #587087;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.ghost-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 900;
}

.primary-link {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 30px rgba(36, 86, 143, 0.22);
}

.ghost-link {
  border: 1px solid #c6d8e8;
  background: rgba(255, 255, 255, 0.75);
  color: var(--navy);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
  margin-top: 34px;
}

.hero-proof article {
  border: 1px solid #d4e2ed;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 14px;
}

.hero-proof strong {
  display: block;
  color: #13293f;
  font-size: 20px;
}

.hero-proof span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.product-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 318px;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #c9dceb;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: 0 28px 70px rgba(29, 63, 96, 0.18);
}

.preview-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-right: 1px solid #d7e5f1;
  background: #f1f6fb;
  padding-top: 28px;
}

.preview-rail span {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid #265b93;
  background: #ffffff;
}

.preview-rail .rail-home {
  position: relative;
}

.preview-rail .rail-home::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-top: 3px solid #265b93;
  border-left: 3px solid #265b93;
  transform: rotate(45deg);
}

.preview-rail .rail-active {
  background: #265b93;
  box-shadow: inset 0 0 0 9px #ffffff;
}

.preview-canvas {
  min-width: 0;
  overflow: hidden;
  padding: 32px 0 32px 28px;
  background: #ffffff;
}

.drawing-sheet {
  position: relative;
  width: 720px;
  height: 496px;
  border: 1px solid #aeb8c4;
  background:
    linear-gradient(90deg, rgba(37, 65, 93, 0.08) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(rgba(37, 65, 93, 0.08) 1px, transparent 1px) 0 0 / 64px 64px,
    repeating-linear-gradient(0deg, transparent 0, transparent 37px, rgba(35, 60, 85, 0.11) 38px),
    #fff;
}

.drawing-sheet::before,
.drawing-sheet::after {
  content: "";
  position: absolute;
  border: 1px dashed #8795a4;
}

.drawing-sheet::before {
  inset: 72px 58px 118px 70px;
}

.drawing-sheet::after {
  left: 120px;
  top: 138px;
  width: 430px;
  height: 190px;
  border-style: solid;
  opacity: 0.45;
}

.sheet-title {
  position: absolute;
  right: 24px;
  bottom: 22px;
  color: #1f2f3d;
  font-size: 13px;
  font-weight: 900;
}

.grid-label {
  position: absolute;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #8da0b2;
  border-radius: 999px;
  background: #fff;
  color: #263d52;
  font-size: 12px;
  font-weight: 900;
}

.grid-label.a {
  left: 72px;
  bottom: 88px;
}

.grid-label.b {
  left: 320px;
  bottom: 88px;
}

.grid-label.c {
  left: 565px;
  bottom: 88px;
}

.dim {
  position: absolute;
  color: #3a4c5c;
  font-size: 11px;
  font-weight: 900;
}

.dim-top {
  top: 50px;
  left: 238px;
}

.dim-side {
  top: 235px;
  left: 28px;
  transform: rotate(-90deg);
}

.beam {
  position: absolute;
  z-index: 2;
  display: flex;
  height: 13px;
  align-items: center;
  border-radius: 999px;
  color: white;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  padding: 0 12px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
  white-space: nowrap;
}

.beam::before,
.beam::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: inherit;
  transform: translateY(-50%);
}

.beam::before {
  left: -2px;
}

.beam::after {
  right: -2px;
}

.beam-blue {
  background: #4b84dd;
  color: #4b84dd;
}

.beam-green {
  background: #00bd8d;
  color: #00bd8d;
}

.beam-pink {
  background: #ec5ea8;
  color: #ec5ea8;
}

.beam-gold {
  background: #dda035;
  color: #dda035;
}

.beam-blue,
.beam-green,
.beam-pink,
.beam-gold {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
}

.beam-blue,
.beam-green,
.beam-pink,
.beam-gold {
  color: #fff;
}

.b1 {
  left: 82px;
  top: 118px;
  width: 510px;
}

.b2 {
  left: 82px;
  top: 238px;
  width: 510px;
}

.b3 {
  left: 102px;
  top: 356px;
  width: 420px;
  transform: rotate(-3deg);
}

.b4 {
  left: 82px;
  top: 178px;
  width: 560px;
}

.b5 {
  left: 82px;
  top: 298px;
  width: 560px;
}

.b6 {
  left: 238px;
  top: 78px;
  width: 360px;
  transform: rotate(4deg);
}

.brace {
  position: absolute;
  z-index: 3;
  left: 240px;
  top: 92px;
  width: 13px;
  height: 260px;
  border-radius: 999px;
  background: #12b991;
  transform-origin: center;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
}

.brace-one {
  transform: rotate(14deg);
}

.brace-two {
  transform: rotate(-14deg);
}

.node {
  position: absolute;
  z-index: 4;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #ec5ea8;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.62);
}

.n1 {
  left: 80px;
  top: 116px;
}

.n2 {
  left: 590px;
  top: 236px;
}

.n3 {
  left: 238px;
  top: 78px;
}

.n4 {
  left: 520px;
  top: 354px;
}

.scale-card {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 5;
  min-width: 156px;
  border: 1px solid #cbd9e5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  box-shadow: 0 10px 20px rgba(27, 55, 83, 0.08);
}

.scale-card strong,
.scale-card span {
  display: block;
}

.scale-card strong {
  color: #1d3d5b;
  font-size: 14px;
}

.scale-card span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.preview-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  border-left: 1px solid #d7e5f1;
  background: #f3f8fd;
  padding: 24px 18px;
}

.panel-chip {
  display: inline-flex;
  width: max-content;
  border: 1px solid #b7e8cf;
  border-radius: 999px;
  background: #ebfff4;
  color: #087a4e;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.preview-panel h3 {
  color: #1e466f;
  font-size: 26px;
  line-height: 1.08;
}

.preview-panel p {
  margin-top: 0;
  color: #4b6680;
  font-size: 14px;
  line-height: 1.55;
}

.scan-list {
  display: grid;
  gap: 8px;
}

.scan-list div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #b9efd0;
  border-radius: 8px;
  background: #f2fff7;
  padding: 10px;
  color: #137a50;
  font-size: 13px;
}

.scan-list span {
  width: 13px;
  height: 13px;
  border: 2px solid #15a66c;
  border-radius: 999px;
}

.scan-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-list em {
  border-radius: 999px;
  background: #0d8e58;
  color: #fff;
  padding: 3px 8px;
  font-style: normal;
  font-weight: 900;
}

.mini-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.mini-summary article {
  border: 1px solid #d2e1ed;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.mini-summary span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-summary strong {
  display: block;
  margin-top: 5px;
  color: #13293f;
  font-size: 21px;
}

.auth-panel {
  margin: 0 clamp(18px, 4vw, 64px) 22px;
  border-radius: 8px;
  background: #fff;
  padding: clamp(20px, 3vw, 34px);
}

.auth-panel h2 {
  color: #13293f;
}

.login-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.login-benefits span {
  border: 1px solid #d8e5ef;
  border-radius: 999px;
  background: #f8fbff;
  color: #31506f;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
}

.workflow-band {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 22px;
  margin: 16px clamp(18px, 4vw, 64px);
  align-items: start;
}

.workflow-copy {
  padding: 20px 0;
}

.workflow-copy h2 {
  max-width: 620px;
  color: #13293f;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.04;
}

.workflow-copy p {
  max-width: 520px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

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

.workflow-grid article {
  min-height: 202px;
  border: 1px solid #d4e2ed;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 18px;
}

.workflow-grid article span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #e3f2ff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.workflow-grid h3 {
  margin-top: 16px;
  color: #172838;
  font-size: 21px;
}

.workflow-grid p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.pricing {
  margin: 18px clamp(18px, 4vw, 64px) 42px;
  border-radius: 8px;
  padding: clamp(20px, 3vw, 34px);
}

.pricing-grid {
  gap: 12px;
}

.price-card {
  border-color: #d4e2ed;
  border-radius: 8px;
  background: #ffffff;
}

.price-card.featured {
  border-color: #96d8bf;
  background: #f3fff9;
}

.price-card.service {
  background: #f8fbff;
}

.plan-badge {
  background: #24568f;
}

.workspace,
.review-panel {
  margin-left: clamp(14px, 2.5vw, 32px);
  margin-right: clamp(14px, 2.5vw, 32px);
}

@media (max-width: 1260px) {
  .site-links {
    display: none;
  }

  .top-actions {
    min-width: 0;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .product-preview {
    grid-template-columns: 64px minmax(0, 1fr) 300px;
  }
}

@media (max-width: 960px) {
  .site-nav,
  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-lockup {
    min-width: 0;
  }

  .product-preview {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .preview-panel {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid #d7e5f1;
  }

  .workflow-band,
  .pricing-head,
  .auth-panel {
    grid-template-columns: 1fr;
  }

  .drawing-sheet {
    transform: scale(0.86);
    transform-origin: left top;
  }

  .preview-canvas {
    min-height: 462px;
  }
}

@media (max-width: 720px) {
  .home-hero {
    padding: 24px 12px;
  }

  .home-hero h2 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .announcement {
    border-radius: 8px;
  }

  .hero-proof,
  .mini-summary,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .product-preview {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .preview-rail {
    display: none;
  }

  .preview-canvas {
    min-height: 360px;
    padding: 18px;
  }

  .drawing-sheet {
    width: 640px;
    transform: scale(0.52);
  }

  .auth-panel,
  .workflow-band,
  .pricing {
    margin-left: 12px;
    margin-right: 12px;
  }

  .status {
    max-width: none;
  }
}

.auth-page {
  min-height: 100vh;
}

.auth-split {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(520px, 1.15fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
  padding: clamp(28px, 5vw, 72px) clamp(18px, 4vw, 64px);
}

.auth-copy {
  padding-top: 14px;
}

.auth-copy h2 {
  max-width: 620px;
  color: #13293f;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 0.98;
}

.auth-copy p {
  max-width: 580px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

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

.auth-card {
  display: grid;
  align-content: start;
  min-height: 430px;
  border-radius: 8px;
  padding: 18px;
}

.auth-card .panel-title {
  color: #13293f;
  font-size: 22px;
}

.auth-card button:not(.primary) {
  width: 100%;
  border: 1px solid #cfe0ee;
  border-radius: 6px;
  background: #f7fbff;
  color: var(--navy);
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
}

.auth-card button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 1060px) {
  .auth-split,
  .auth-card-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    min-height: auto;
  }
}

/* Alkali-style workspace shell */
.workspace {
  grid-template-columns: 96px minmax(0, 1fr) 410px 82px;
  gap: 0;
  width: 100%;
  min-height: calc(100vh - 72px);
  margin: 0;
  align-items: stretch;
  background: #edf3f8;
}

.workspace-left-rail,
.right-tool-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: calc(100vh - 72px);
  border-right: 1px solid #d3e0ea;
  background: #f4f9fd;
  padding: 18px 10px;
}

.workspace-left-rail {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
}

.workspace-nav-button,
.right-tool-button,
.rail-control-group button {
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: #25568d;
  cursor: pointer;
  font-weight: 900;
}

.workspace-nav-button {
  width: 74px;
  min-height: 86px;
  border-radius: 12px;
  gap: 6px;
}

.workspace-nav-button span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
}

.workspace-nav-button small,
.right-tool-button small {
  font-size: 12px;
  line-height: 1.1;
}

.workspace-nav-button:hover,
.workspace-nav-button.active,
.workspace-nav-button.primary-nav {
  background: #e2effa;
}

.workspace-nav-button.primary-nav {
  color: white;
  background: #285b93;
  box-shadow: 0 10px 24px rgba(37, 86, 141, 0.18);
}

.workspace-nav-button.profile-nav {
  margin-top: auto;
}

.workspace-drawer {
  position: fixed;
  top: 72px;
  bottom: 0;
  left: 96px;
  z-index: 35;
  width: min(340px, calc(100vw - 110px));
  max-height: none;
  overflow: auto;
  border-width: 0 1px 0 0;
  background: #ffffff;
  box-shadow: 22px 0 48px rgba(23, 40, 56, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-105%);
  transition: transform 180ms ease, opacity 180ms ease;
}

.workspace-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.drawer-heading {
  position: sticky;
  top: -16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -16px -16px 14px;
  border-bottom: 1px solid #d3e0ea;
  background: rgba(255, 255, 255, 0.96);
  padding: 14px 16px;
  backdrop-filter: blur(12px);
}

.drawer-heading .panel-title {
  margin-bottom: 0;
}

.drawer-heading button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #d3e0ea;
  border-radius: 8px;
  background: #f7fbff;
  color: #25568d;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.workspace-review {
  min-width: 0;
  border-width: 0;
  background: #51575a;
}

.workspace .table-heading {
  display: none;
}

.workspace-review .review-workbench {
  min-height: calc(100vh - 72px);
}

.workspace-review .review-main {
  padding: 0;
  background: #51575a;
}

.workspace-review .review-stats,
.workspace-review .review-legend {
  margin: 0;
  padding: 8px 12px;
  background: #ffffff;
}

.workspace-review .review-drawing-stage {
  min-height: calc(100vh - 170px);
}

.workspace-review .review-pdf-stack {
  height: calc(100vh - 170px);
  min-height: 580px;
  border: 0;
  border-radius: 0;
  padding: 18px 24px;
  background: #51575a;
}

.steel-panel {
  max-height: calc(100vh - 72px);
  min-height: calc(100vh - 72px);
  overflow: auto;
  border-width: 0 1px 0 1px;
  background: #f3f8fd;
  padding: 14px;
}

.steel-panel [data-tool-content] {
  display: none;
}

.steel-panel [data-tool-content].active {
  display: grid;
}

.steel-panel .steel-chat.active {
  grid-template-rows: auto minmax(320px, 1fr) auto;
  min-height: calc(100vh - 100px);
}

.steel-heading.compact {
  margin: -12px -12px 2px;
}

.right-tool-rail {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
  border-right: 0;
  border-left: 1px solid #d3e0ea;
  background: #f7fbff;
  padding: 16px 8px;
}

.right-tool-button {
  width: 62px;
  min-height: 68px;
  border-radius: 12px;
  gap: 4px;
}

.right-tool-button span {
  display: grid;
  width: 36px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #25568d;
  font-size: 15px;
}

.right-tool-button:hover,
.right-tool-button.active {
  border-color: #c9def1;
  background: #e1f0ff;
}

.right-tool-button.scale-tool {
  color: #0aa463;
}

.right-tool-button.scale-tool span {
  color: #0aa463;
}

.rail-control-group {
  display: grid;
  width: 64px;
  gap: 8px;
  margin-top: 8px;
  border-top: 1px solid #d3e0ea;
  padding-top: 14px;
}

.rail-control-group button {
  min-height: 36px;
  border-radius: 10px;
  background: #ffffff;
  color: #25568d;
  font-size: 12px;
}

.rail-control-group button:hover {
  background: #e8f3ff;
}

.rail-control-group button:disabled {
  color: #a8b7c5;
  cursor: not-allowed;
}

.rail-control-group output {
  display: grid;
  min-height: 30px;
  place-items: center;
  color: #25568d;
  font-size: 13px;
  font-weight: 900;
}

.zoom-group {
  margin-top: auto;
}

.dock-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 4px;
}

.dock-toolbar .review-modes {
  width: 100%;
}

.dock-toolbar .review-modes button {
  flex: 1;
  min-width: 0;
}

.dock-toolbar input {
  margin: 0;
}

.right-table-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.right-table-summary article,
.right-table-row {
  border: 1px solid #d7e5f1;
  border-radius: 8px;
  background: #ffffff;
}

.right-table-summary article {
  padding: 10px;
}

.right-table-summary span,
.right-table-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.right-table-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 20px;
}

.right-table-list {
  display: grid;
  gap: 7px;
  max-height: calc(100vh - 300px);
  overflow: auto;
}

.right-table-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.right-table-row.active {
  border-color: #25568d;
  box-shadow: 0 0 0 2px rgba(37, 86, 141, 0.12);
}

.right-table-row i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--member-color);
}

.right-table-row strong,
.right-table-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.right-table-row span {
  color: #31506f;
  font-size: 12px;
  font-weight: 900;
}

.scale-dock {
  align-content: start;
}

.scale-dock p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.scale-dock output {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid #d7e5f1;
  border-radius: 8px;
  background: #ffffff;
  color: #25568d;
  font-weight: 900;
}

.common-scale-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1440px) {
  .workspace {
    grid-template-columns: 86px minmax(0, 1fr) 360px 76px;
  }

  .workspace-nav-button {
    width: 64px;
  }

  .workspace-drawer {
    left: 86px;
  }
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 80px minmax(0, 1fr) 72px;
  }

  .steel-panel {
    display: none;
  }

  .workspace-drawer {
    left: 80px;
    top: 0;
    width: min(340px, calc(100vw - 80px));
  }

  .workspace-left-rail,
  .right-tool-rail {
    top: 0;
    min-height: 100vh;
    height: 100vh;
  }

  .workspace-review {
    min-height: 100vh;
  }
}

@media (max-width: 720px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .workspace-left-rail,
  .right-tool-rail {
    position: static;
    flex-direction: row;
    width: 100%;
    min-height: auto;
    height: auto;
    overflow: auto;
    border: 0;
  }

  .workspace-nav-button,
  .right-tool-button {
    min-width: 72px;
  }

  .workspace-drawer {
    top: 86px;
    left: 0;
    width: 100vw;
    max-height: calc(100vh - 86px);
  }

  .rail-control-group {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    width: auto;
    margin-top: 0;
    border-top: 0;
    border-left: 1px solid #d3e0ea;
    padding-top: 0;
    padding-left: 10px;
  }
}
