:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #192d2b;
  background: #f5f7f6;
  font-synthesis: none;
  --accent: #244e48;
  --muted: #647773;
  --border: #dce5e1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: var(--accent);
}
button,
.button {
  cursor: pointer;
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  padding: 11px 17px;
  font-weight: 650;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-size: 14px;
}
button:hover,
.button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: white;
  color: var(--accent);
  border: 1px solid var(--border);
}
.danger {
  background: #fff0ed;
  color: #a83a29;
}
.quiet {
  background: transparent;
  color: var(--muted);
  padding: 8px;
}
.badge {
  display: inline-block;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 650;
  background: #eaf1ef;
  color: #315c50;
}
.badge.expired,
.badge.suspended,
.badge.revoked {
  background: #fff0e6;
  color: #9b501b;
}
.badge.subscribed,
.badge.paid,
.badge.free {
  background: #e3f3e8;
  color: #2d6745;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 10px 0;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin: 0 0 20px;
}
h3 {
  font-size: 16px;
  margin: 0 0 10px;
}
p {
  line-height: 1.65;
}
header {
  height: 76px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: #fff;
}
.wordmark {
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.5px;
  color: #203e38;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mark {
  background: var(--accent);
  color: white;
  border-radius: 9px;
  width: 32px;
  height: 35px;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 76px);
}
aside {
  padding: 28px 18px;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
aside .nav {
  justify-content: flex-start;
  background: transparent;
  color: var(--muted);
  font-weight: 550;
}
aside .nav.active {
  background: #eaf1ef;
  color: var(--accent);
}
aside select {
  width: 100%;
  margin-bottom: 16px;
}
aside small {
  margin-top: 28px;
  padding: 0 12px;
  overflow-wrap: anywhere;
}
.main {
  padding: 36px 42px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 750;
  color: #607e72;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  margin: 20px 0;
  box-shadow: 0 4px 20px #1e3e3003;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stats .card {
  margin: 0;
}
.stats strong {
  font-size: 29px;
  display: block;
  margin: 8px 0;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar h2 {
  margin: 0;
}
input,
select,
textarea {
  border: 1px solid #cbd8d1;
  border-radius: 8px;
  padding: 11px 12px;
  width: 100%;
  background: #fff;
  color: #263e35;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  margin: 16px 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #9bc0ae;
  outline-offset: 1px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.check {
  flex-direction: row;
  align-items: center;
  font-weight: 450;
}
.check input {
  width: auto;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 16px 10px;
  border-bottom: 1px solid #edf1ef;
}
td strong,
td small {
  display: block;
}
td small {
  margin-top: 5px;
}
.empty {
  padding: 45px 15px;
  text-align: center;
  color: var(--muted);
}
.notice {
  padding: 14px 18px;
  border: 1px solid #bcd5c4;
  background: #edf7ef;
  border-radius: 9px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.notice.error {
  border-color: #efc6ba;
  background: #fff2ee;
  color: #9a3b29;
}
.split {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: 25px;
}
.split > .card {
  margin-top: 0;
}
.public {
  max-width: 620px;
  margin: 70px auto;
  padding: 0 20px;
}
.public.wide {
  max-width: 1000px;
}
.public h1 {
  font-size: 36px;
}
.public .card {
  padding: 34px;
}
.public .button {
  width: 100%;
  margin-top: 14px;
}
.public .brand-logo {
  height: var(--logo-size, 40px);
  max-width: 240px;
  object-fit: contain;
}
.public .subtitle {
  font-size: 17px;
  color: var(--muted);
}
.public .secure {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.file-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.file-row strong {
  display: block;
  overflow-wrap: anywhere;
}
.file-row .button {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}
.file-row small {
  display: block;
  margin: 6px 0;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #112d2570;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 5;
}
.modal {
  background: white;
  border-radius: 16px;
  width: min(690px, 100%);
  max-height: 94vh;
  overflow: auto;
  padding: 30px;
}
.modal .toolbar {
  position: sticky;
  top: -30px;
  background: white;
  padding: 15px 0;
}
.file-editor {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 10px;
}
.file-editor .check {
  margin: 5px 0;
}
.trial-card {
  background: linear-gradient(130deg, #edf4ef, #fff);
  border-color: #bdd4c3;
}
.plan-price {
  font-size: 40px;
  font-weight: 750;
  letter-spacing: -1px;
}
.loading {
  padding: 100px;
  text-align: center;
  color: var(--muted);
}
.search {
  max-width: 280px;
}
code {
  background: #edf2ef;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
footer {
  font-size: 12px;
  color: var(--muted);
  margin: 40px 0;
  text-align: center;
}
dialog::backdrop {
  background: #112d2570;
}
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 190px 1fr;
  }
  .main {
    padding: 28px 22px;
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  header {
    padding: 0 18px;
  }
  .layout {
    display: block;
  }
  aside {
    border-right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px;
    gap: 5px;
  }
  aside select {
    width: 100%;
    margin: 0 0 5px;
  }
  aside small {
    display: none;
  }
  .main {
    padding: 24px 16px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .card {
    padding: 20px;
  }
  .public {
    margin: 30px auto;
  }
  .file-row {
    align-items: stretch;
    flex-direction: column;
  }
  .file-row .button {
    width: 100%;
  }
  .modal {
    padding: 22px;
  }
  .public .card {
    padding: 24px;
  }
  .wordmark {
    font-size: 15px;
  }
}

.setup-progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0;
  margin: 0 0 28px;
}
.setup-progress li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  padding: 12px 0;
  border-bottom: 3px solid var(--border);
}
.setup-progress li.current {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}
.setup-progress li.complete {
  color: var(--accent);
}
.setup-progress span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
}
.setup-checks {
  list-style: none;
  padding: 0;
}
.setup-checks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.setup-facts {
  padding: 12px 0 20px;
}
.setup-instructions li {
  padding: 8px 0;
  line-height: 1.6;
}
.onboarding .card {
  padding: 36px;
}
.setup-checks code {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .setup-progress {
    gap: 6px;
  }
  .setup-progress li {
    font-size: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .onboarding .card {
    padding: 24px;
  }
  .onboarding h1 {
    font-size: 30px;
  }
}

/* Shared workspace geometry follows the ATi document portal. */
:root {
  color: #19243b;
  background: #f5f7fc;
  --muted: #748099;
  --border: #e0e6f0;
}
body {
  font-size: 14px;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1px;
}
h2 {
  font-size: 20px;
  line-height: 1.3;
}
input,
select,
textarea {
  color: #263550;
  border-color: #d6deeb;
  min-height: 42px;
}
input:focus,
select:focus,
textarea:focus {
  outline-color: var(--accent);
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8ba7e8;
  outline-offset: 3px;
}
input[type="color"] {
  width: 62px;
  padding: 5px;
}
input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
}
.card {
  border-radius: 10px;
  box-shadow: none;
  padding: 26px;
}
.eyebrow {
  color: var(--accent);
  font-weight: 650;
}
.heading {
  margin-bottom: 28px;
}
.heading p {
  margin: 12px 0 0;
}
.layout {
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  align-items: start;
}
.workspace-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100dvh;
  background: #16223b;
  border: 0;
  padding: 28px 16px 18px;
  gap: 0;
  color: #c0ccdf;
  overflow: auto;
}
.sidebar-brand {
  text-decoration: none;
  color: #fff;
  display: block;
  padding: 0 8px 34px;
  overflow-wrap: anywhere;
}
.brand-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 750;
  font-size: 18px;
  line-height: 1.35;
}
.brand-logo {
  display: block;
  height: var(--logo-size, 40px);
  width: auto;
  max-width: 240px;
  object-fit: contain;
  flex-shrink: 0;
}
.sidebar-brand .brand-identity {
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}
.sidebar-brand .brand-logo {
  max-width: 192px;
  object-position: left center;
}
.sidebar-tagline {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
  color: #a4b3cc;
}
.nav-caption {
  font-size: 11px;
  letter-spacing: 1.3px;
  padding: 12px 10px;
  color: #92a4c2;
}
.workspace-sidebar nav {
  display: grid;
  gap: 7px;
}
.workspace-sidebar .nav {
  width: 100%;
  color: #c0ccdf;
  gap: 13px;
  min-height: 47px;
  padding: 12px 14px;
  border-radius: 7px;
}
.workspace-sidebar .nav.active {
  background: #233655;
  color: #fff;
}
.nav-icon {
  font-size: 20px;
  line-height: 1;
  width: 20px;
  color: #98adf1;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 50px;
}
.portal-link {
  display: block;
  padding: 14px 10px 25px;
  color: #c0ccdf;
  text-decoration: none;
}
.sidebar-account {
  border-top: 1px solid #2c3951;
  padding: 20px 8px 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.sidebar-account strong,
.sidebar-account small {
  display: block;
  color: #fff;
  font-weight: 550;
  padding: 0;
  margin: 0 0 6px;
}
.sidebar-account small {
  color: #9cacc6;
  font-weight: 400;
}
.sidebar-account .quiet {
  color: #b7c5da;
  padding: 7px 0;
  font-size: 12px;
}
.workspace-body {
  min-width: 0;
}
.workspace-topbar {
  height: 72px;
  padding: 0 40px;
  font-size: 13px;
}
.main {
  padding: 40px;
  max-width: 1600px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}
.split {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: start;
}
.split > * {
  min-width: 0;
}
.split > .card {
  margin: 0;
}
.stats {
  margin-bottom: 24px;
}
.stats .card {
  padding: 26px;
}
.stats strong {
  font-size: 32px;
}
th {
  background: #f7f9fd;
  padding: 15px 12px;
  font-size: 11px;
}
td {
  padding: 20px 12px;
}
table {
  min-width: 650px;
}
.badge {
  border-radius: 5px;
  font-weight: 500;
}
.branding-grid {
  max-width: 1100px;
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1fr);
}
.logo-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-controls input[type="number"] {
  width: 75px;
}
.branding-preview .eyebrow {
  display: block;
  margin: 2px 0 20px;
}
.preview-card {
  margin: 0;
  text-align: center;
  padding: 30px;
}
.preview-card .brand-identity {
  text-align: left;
  flex-wrap: wrap;
}
.preview-card .brand-logo {
  max-width: 180px;
}
.preview-card .status-icon {
  margin: 36px auto 22px;
}
.preview-button {
  pointer-events: none;
}
.branding-preview > p {
  font-size: 12px;
}
.public-header {
  height: auto;
  min-height: 100px;
  padding: 24px 4.5%;
  gap: 24px;
  background: transparent;
  border: 0;
}
.public-header .wordmark {
  max-width: 75%;
}
.public-header .brand-identity {
  flex-wrap: wrap;
  color: #19243b;
}
.header-caption {
  font-size: 13px;
  white-space: nowrap;
}
.public {
  margin: 50px auto;
  max-width: 660px;
}
.public.wide {
  max-width: 960px;
}
.public .card {
  padding: 36px;
}
.public .brand-logo {
  height: var(--logo-size, 40px);
}
.lookup-layout {
  max-width: 1250px;
  margin: 55px auto 70px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 85px;
  align-items: center;
}
.lookup-intro h1 {
  font-size: 48px;
  line-height: 1.15;
  margin: 30px 0;
}
.lookup-intro h1 span {
  color: var(--accent);
}
.subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
}
.lookup-card {
  margin: 0;
  padding: 36px;
}
.lookup-card h2 {
  font-size: 25px;
  margin: 22px 0 8px;
}
.lookup-card .subtitle {
  margin: 0 0 28px;
}
.lookup-card button {
  width: 100%;
  margin-top: 18px;
}
.lookup-card .secure {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 24px 0 0;
}
.status-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #eef2ff;
  color: var(--accent);
  font-size: 30px;
  margin-bottom: 24px;
}
.status-icon.success {
  background: #eaf7f0;
  color: #24835d;
}
.delivery-steps {
  list-style: none;
  counter-reset: steps;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.delivery-steps li {
  counter-increment: steps;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0;
  color: var(--muted);
}
.delivery-steps li:before {
  content: "0" counter(steps);
  border: 1px solid #d7e0fb;
  border-radius: 50%;
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #7386c5;
}
.download-code {
  letter-spacing: 6px;
  font-family: monospace;
  text-transform: uppercase;
}
.public-footer {
  max-width: 1250px;
  margin: 40px auto;
  padding: 25px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}
.document-public {
  max-width: 800px;
  margin: 50px auto 80px;
}
.document-public .document-card {
  padding: 42px;
}
.document-heading {
  text-align: center;
}
.document-heading h1 {
  font-size: 30px;
}
.document-heading .status-icon {
  margin: 28px auto;
}
.order-summary {
  margin: 30px 0;
  background: #f7f9fd;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 24px;
}
.order-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.order-summary > div:last-child {
  border: 0;
}
.order-summary dt {
  color: var(--muted);
}
.order-summary dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  font-weight: 550;
}
.summary-price {
  font-size: 28px;
}
.summary-price small {
  font-size: 12px;
}
.document-files .file-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin: 12px 0;
}
.document-actions {
  text-align: center;
  margin: 24px 0;
}
.document-actions > .button,
.document-actions > button {
  width: 100%;
  padding: 15px;
}
.document-actions p {
  font-size: 13px;
  margin: 20px 0;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 25px 0;
}
@media (max-width: 1100px) {
  .main {
    padding: 30px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .branding-grid {
    grid-template-columns: 1fr 1fr;
  }
  .workspace-topbar {
    padding: 0 30px;
  }
  .lookup-layout {
    gap: 40px;
  }
  .lookup-intro h1 {
    font-size: 38px;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .workspace-sidebar {
    position: static;
    height: auto;
    min-height: 0;
    padding: 18px;
    display: block;
  }
  .sidebar-brand {
    padding: 0 0 15px;
  }
  .sidebar-brand .brand-identity {
    flex-direction: row;
    align-items: center;
    font-size: 16px;
  }
  .sidebar-brand .brand-logo {
    max-width: 120px;
    max-height: 50px;
  }
  .sidebar-tagline,
  .nav-caption {
    display: none;
  }
  .workspace-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .workspace-sidebar .nav {
    width: auto;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
  }
  .nav-icon {
    font-size: 16px;
    width: 16px;
  }
  .sidebar-bottom {
    padding: 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .portal-link {
    padding: 5px;
    font-size: 12px;
  }
  .sidebar-account {
    border: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .sidebar-account strong {
    font-size: 11px;
  }
  .sidebar-account small {
    display: none;
  }
  .workspace-topbar {
    height: 56px;
    padding: 0 20px;
    font-size: 12px;
  }
  .main {
    padding: 26px 20px;
  }
  .heading {
    gap: 16px;
  }
  .branding-grid,
  .lookup-layout {
    grid-template-columns: 1fr;
  }
  .lookup-layout {
    padding: 0 22px;
    margin: 25px auto 40px;
    gap: 24px;
    max-width: 620px;
  }
  .lookup-intro h1 {
    font-size: 36px;
    margin: 20px 0;
  }
  .delivery-steps {
    display: none;
  }
  .lookup-card {
    padding: 26px;
  }
  .public-header {
    padding: 20px 22px;
    min-height: 80px;
  }
  .public-header .brand-identity {
    font-size: 16px;
    gap: 10px;
  }
  .public-header .brand-logo {
    max-width: 125px;
    max-height: 65px;
  }
  .header-caption {
    display: none;
  }
  .public-footer {
    margin: 25px 22px;
    flex-direction: column;
  }
  .public {
    margin: 30px auto;
  }
  .public .card,
  .document-public .document-card {
    padding: 24px;
  }
  .document-heading h1 {
    font-size: 26px;
  }
  .order-summary {
    padding: 0 16px;
  }
  .order-summary > div {
    gap: 16px;
    font-size: 13px;
  }
  .summary-price {
    font-size: 23px;
  }
  .document-files .file-row {
    align-items: stretch;
    flex-direction: column;
  }
  .document-files .button {
    width: 100%;
  }
  .branding-preview .brand-logo {
    max-width: 180px;
  }
}
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex-shrink: 0;
}
.mark .icon {
  width: 21px;
  height: 21px;
}
.nav-icon .icon {
  display: block;
}
.status-icon .icon {
  width: 30px;
  height: 30px;
}
.workspace-topbar > span:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.workspace-topbar > span:last-child .icon {
  width: 15px;
  height: 15px;
}
.copy-save { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 16px 0; background: white; border-bottom: 1px solid var(--line, #dfe5ed); }
.copy-entry { padding: 22px 0; border-bottom: 1px solid var(--line, #dfe5ed); }
.copy-entry[hidden] { display: none; }
.copy-entry .toolbar { margin-bottom: 4px; }
.copy-original { display: block; font-weight: 400; color: var(--muted); margin: 8px 0; white-space: pre-wrap; }
.copy-entry textarea { min-height: 76px; }

.terms-confirmation { margin: 24px 0; padding: 20px; background: #f6f8fc; border: 1px solid #dfe5ed; border-radius: 10px; }
.terms-confirmation .check { align-items: flex-start; line-height: 1.6; }
.terms-confirmation input[type="checkbox"] { flex-shrink: 0; margin-top: 6px; }
.legal-document { max-width: 1050px; }
.legal-document section { margin-top: 32px; }
.legal-document p { line-height: 1.8; overflow-wrap: anywhere; }
@media print { .public-header { display: none; } .legal-document { margin: 0; padding: 0; max-width: none; } .legal-document .card { border: 0; padding: 0; } }

.free-order-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; margin: auto; padding: 30px; border: 1px solid var(--border); border-radius: 18px; color: #192d2b; background: #fff; box-shadow: 0 24px 80px #10203a40; }
.free-order-dialog::backdrop { background: #13213e99; }
.free-order-dialog h2 { margin: 12px 0; }
.free-order-dialog .status-icon { margin: 0 0 20px; }
.free-order-summary { display: flex; flex-direction: column; gap: 6px; padding: 16px; margin: 20px 0; border: 1px solid var(--border); border-radius: 10px; overflow-wrap: anywhere; background: #f6f8fc; }
.free-order-summary > strong:last-child { font-size: 28px; margin-top: 6px; }
.free-order-actions { display: flex; justify-content: flex-end; gap: 10px; }
.free-order-actions button { flex: 1; }
.free-order-error { min-height: 20px; color: #a53427; font-size: 14px; }
@media (max-width: 480px) { .free-order-dialog { padding: 22px; } .free-order-actions { flex-direction: column-reverse; } }

.payment-help details{border-top:1px solid var(--border,#dfe5ef);padding:16px 0}.payment-help summary{cursor:pointer;font-weight:600;line-height:1.5}.payment-help details p{line-height:1.65}.payment-help li{margin-bottom:10px}

.usage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:20px;margin-bottom:24px}.usage-grid .card{margin:0}.usage-grid progress{width:100%;height:12px;accent-color:var(--accent)}.company-name{text-align:left;padding:0;font-weight:700;text-decoration:underline}.usage-grid h3{overflow-wrap:anywhere}

.chart-card svg{display:block;width:100%;height:auto;min-width:500px}.chart-card{overflow:auto}.chart-key{display:flex;gap:20px;font-size:14px}.chart-key span:first-child{color:#315ed3}.chart-key span:last-child{color:#168b77}

/* Let content shrink inside grids instead of widening the mobile document. */
.card, .table-wrap, .row > *, .stats > *, .file-row > div, .brand-identity > span { min-width: 0; }
.card, .table-wrap { max-width: 100%; }
input, select, textarea { min-width: 0; max-width: 100%; }
.file-row strong, .file-editor strong, .brand-identity, .free-order-summary { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .layout, .workspace-body, .workspace-sidebar, .main { width: 100%; min-width: 0; max-width: 100%; }
  .main { padding: 24px 16px; }
  .stats, .split, .branding-grid, .row, .usage-grid { grid-template-columns: minmax(0, 1fr); }
  .stats .card, .card { padding: 20px; }
  .workspace-sidebar { padding: 16px; }
  .workspace-sidebar nav { min-width: 0; }
  .workspace-sidebar .nav { max-width: 100%; white-space: normal; text-align: left; min-height: 44px; }
  .sidebar-bottom, .sidebar-account { flex-wrap: wrap; min-width: 0; }
  .sidebar-account strong { overflow-wrap: anywhere; }
  .workspace-topbar { gap: 12px; height: auto; min-height: 56px; padding: 14px 16px; flex-wrap: wrap; }
  .workspace-topbar > span { min-width: 0; overflow-wrap: anywhere; }
  .heading, .toolbar { flex-direction: column; align-items: stretch; }
  .actions { min-width: 0; }
  .actions > input, .actions > select { width: 100%; }
  .actions > button, .actions > .button { max-width: 100%; white-space: normal; min-height: 44px; }
  input, select, textarea, .search { font-size: 16px; }
  input[type="file"] { width: 100%; padding: 10px; overflow: hidden; }
  input[type="file"]::file-selector-button { font-size: 16px; max-width: 100%; }
  .check { align-items: flex-start; }
  .check > span { min-width: 0; overflow-wrap: anywhere; }
  .check input[type="checkbox"] { width: 20px; height: 20px; padding: 0; flex: 0 0 20px; }
  .terms-confirmation { padding: 16px; }
  .modal-backdrop { padding: 12px; align-items: start; overflow-y: auto; overscroll-behavior: contain; }
  .modal { width: 100%; min-width: 0; max-width: 100%; max-height: calc(100dvh - 24px); padding: 20px; margin: auto 0; }
  .modal .toolbar { top: -20px; flex-direction: row; align-items: center; }
  .free-order-dialog { min-width: 0; width: min(480px, calc(100vw - 32px)); max-width: calc(100vw - 32px); padding: 22px; }
  .free-order-actions { flex-wrap: wrap; }
  .free-order-actions button { min-width: 0; min-height: 44px; white-space: normal; }
  .public-header .wordmark { min-width: 0; max-width: 100%; }
  .public-header .brand-identity { min-width: 0; }
  .order-summary > div { align-items: flex-start; }
  .order-summary dt { flex: 0 0 38%; }
  .order-summary dd { min-width: 0; flex: 1; }
  .chart-key { flex-wrap: wrap; }
}

/* Compact delivery editor, with breathing room above mobile browser controls. */
.order-modal { padding: 0; border: 1px solid #dfe5ed; border-radius: 18px; box-shadow: 0 20px 70px #14213d33; }
.order-modal .order-modal-header { top: 0; z-index: 2; margin: 0; padding: 18px 24px; border-bottom: 1px solid #e4e9f1; background: #fff; }
.order-modal-header h2 { font-size: 20px; line-height: 1.3; letter-spacing: -.4px; }
.order-modal-header .quiet { min-height: 40px; border-radius: 8px; }
.order-form-body { padding: 4px 24px 0; }
.order-section { min-width: 0; margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid #e9edf4; }
.order-section legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-size: 12px; font-weight: 750; color: #77849b; letter-spacing: .07em; text-transform: uppercase; }
.order-section legend + * { clear: both; }
.order-modal label { margin: 0 0 12px; gap: 6px; font-size: 13px; font-weight: 600; }
.order-modal label:last-child { margin-bottom: 0; }
.order-modal .row { gap: 14px; }
.order-modal input:not([type="checkbox"]), .order-modal textarea { min-height: 44px; padding: 10px 12px; border-radius: 10px; border-color: #dce3ed; background: #fcfdff; }
.order-modal input:focus, .order-modal textarea:focus { background: white; }
.order-modal .muted { font-size: 12px; line-height: 1.5; margin: 10px 0 0; }
.order-modal input[type="file"] { background: #f5f8fc; border-style: dashed; }
.order-modal input[type="file"]::file-selector-button { border: 0; border-radius: 7px; padding: 8px 10px; margin-right: 10px; background: #e6edf8; color: #263c60; font-weight: 600; }
.order-notes { margin: 16px 0; }
.order-notes summary { font-size: 13px; font-weight: 600; cursor: pointer; color: #67758c; padding: 6px 0; }
.order-notes label { margin-top: 10px; }
.order-modal .terms-confirmation { margin: 18px 0 0; padding: 14px; border-radius: 10px; background: #f7f9fc; }
.order-modal .terms-confirmation p { font-size: 12px; line-height: 1.5; margin: 0 0 12px; }
.order-modal .terms-confirmation .check { font-size: 12px; line-height: 1.5; gap: 10px; }
.order-submitbar { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 18px 24px 28px; }
.order-submitbar button { width: 100%; min-height: 46px; border-radius: 10px; }
.order-submitbar small { text-align: center; color: #77849b; font-size: 12px; }
.order-modal > hr, .order-modal > p, .order-modal > .actions { margin-left: 24px; margin-right: 24px; }
.order-modal > .actions { padding-bottom: 28px; }
@media (max-width: 760px) {
  .modal-backdrop { padding: 12px 12px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .order-modal { padding: 0; max-height: calc(100svh - 48px); max-height: calc(100svh - 48px - env(safe-area-inset-bottom, 0px)); margin: 0; }
  .order-modal .order-modal-header { padding: 14px 18px; top: 0; }
  .order-modal-header h2 { font-size: 18px; }
  .order-form-body { padding: 0 18px; }
  .order-section { padding: 16px 0; }
  .order-modal .row { gap: 0; }
  .order-modal label { margin-bottom: 12px; }
  .order-modal input:not([type="checkbox"]), .order-modal textarea { font-size: 16px; }
  .order-submitbar { padding: 18px 18px calc(88px + env(safe-area-inset-bottom, 0px)); }
  .order-modal > .actions { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

.brand-preview-dark { background: #16223b; color: white; }
.brand-identity.logo-only { gap: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px; background: white; color: #19243b; border: 2px solid #315ed3; border-radius: 8px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #315ed3; outline-offset: 3px; }
.workspace-sidebar :focus-visible { outline-color: #bed2ff; }
dialog.order-modal { width: min(690px, calc(100vw - 32px)); max-height: calc(100svh - 40px); margin: auto; color: #19243b; }
dialog.order-modal::backdrop { background: #13213e99; }
@media (max-width:760px) { dialog.order-modal { width: calc(100vw - 24px); max-width: calc(100vw - 24px); max-height: calc(100svh - 48px - env(safe-area-inset-bottom, 0px)); margin: auto; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
