/* Phoenix interface: one small token set shared by the site and workspace. */
:root {
  color-scheme: light;
  --blue: #2463eb;
  --blue-hover: #164fc9;
  --ink: #15263e;
  --muted: #63748a;
  --line: #e3e9f1;
  --soft: #eef4ff;
  --panel: #fff;
  --canvas: #f7f9fc;
  --cyan: #26b6cb;
  --radius: 14px;
  --header-height: 78px;
  --site-gutter: clamp(32px, 3vw, 64px);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  font-synthesis: none;
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.65;
  background: var(--canvas);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 600;
}
h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: -0.035em;
}
h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.025em;
}
h3 {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.5;
}
p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s,
    box-shadow 0.18s;
}
button:hover {
  background: #f5f8fd;
  border-color: #c6d4e7;
}
button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 3px 8px #2463eb12;
}
button.primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  box-shadow: 0 5px 14px #2463eb20;
}
button.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
button.quiet:hover {
  background: #eef2f8;
  color: var(--ink);
}
button.danger {
  color: #b34b45;
}
button.danger:hover {
  border-color: #efceca;
  background: #fff5f4;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
}
:where(button, a, input, textarea, select, summary):focus-visible {
  outline: 3px solid #3975df;
  outline-offset: 3px;
}
svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.small-note,
.subtle,
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 18px;
  top: -80px;
  border-radius: 8px;
  background: #fff;
  padding: 12px 18px;
}
.skip-link:focus {
  top: 12px;
}

/* Site frame */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-height);
  padding: 12px var(--site-gutter);
  border-bottom: 1px solid #e3e9f1c7;
  background: #ffffffed;
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.brand strong {
  font-weight: 400;
  color: #63748a;
}
.brand-logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.top-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 7px;
  color: #5c6c82;
  font-size: 13px;
  white-space: nowrap;
  transition:
    color 0.18s,
    background 0.18s;
}
.top-nav a:hover {
  color: var(--blue);
  background: #f5f8fd;
}
.top-nav a[aria-current="page"] {
  color: var(--blue);
  background: var(--soft);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.header-right #account-button {
  max-width: 240px;
  min-height: 38px;
  padding: 9px 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.preview-badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  color: #63748a;
  white-space: nowrap;
}
.preview-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #94a6bd;
}
#account-role {
  padding: 3px 7px;
  font-size: 10px;
}
main {
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 40px var(--site-gutter) 72px;
  min-height: calc(100dvh - 180px);
}
.site-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  width: calc(100% - var(--site-gutter) * 2);
  margin: 0 auto;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.site-footer .brand {
  flex-shrink: 0;
}
.site-footer .brand-logo {
  height: 50px;
}
.site-footer > span,
.site-footer > a:last-child {
  color: var(--muted);
  font-size: 12px;
}
.site-footer > a:last-child {
  margin-left: auto;
}
.site-footer #workspace-entry {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.site-footer #admin-entry {
  margin-left: 0;
  font-size: 12px;
  color: var(--muted);
}
.portal-label {
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-weight: 600;
  white-space: nowrap;
}
.admin-portal .site-header {
  background: #f7fafff5;
}
.admin-portal .header-right {
  margin-left: auto;
}
.portal-login {
  display: grid;
  place-items: center;
  min-height: min(680px, calc(100dvh - 270px));
  padding-block: 32px;
}
.portal-login-card {
  width: 100%;
  max-width: 420px;
  padding: 36px;
}
.portal-login-card h1 {
  margin: 12px 0 28px;
  font-size: 28px;
}
.portal-login-card form {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}
.payment-guidance {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #dce7fa;
  border-radius: 10px;
  background: #f6f9ff;
}
.payment-guidance button {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}
.attachment-group {
  margin-top: 22px;
}
.attachment-group h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}
.attachment-group h3 span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.action-review {
  margin-block: 16px;
  overflow-wrap: anywhere;
}
.action-review p + p {
  margin-top: 8px;
}
label.action-review-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
}
.action-review-check input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 4px;
  flex: 0 0 18px;
}
@media (max-width: 560px) {
  .portal-label {
    padding-left: 12px;
    font-size: 12px;
  }
  .portal-login-card {
    padding: 24px;
  }
  .admin-portal .site-header .brand-logo {
    height: 40px;
    max-width: 82px;
  }
  .admin-portal .header-right #account-button {
    max-width: 112px;
  }
}

/* Public home */
.home-page {
  background: #fff;
}
.home-page main {
  padding-top: 0;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 2.5vw, 64px);
  padding: clamp(32px, 5vh, 56px) 0 clamp(30px, 4vh, 48px);
}
.eyebrow,
.section-kicker,
.section-kicker small {
  display: inline-block;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  color: #536e8f;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  background: var(--cyan);
  border-radius: 1px;
  vertical-align: 1px;
}
.hero h1 {
  margin: 22px 0;
  font-size: clamp(40px, 3.5vw, 72px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.055em;
}
.hero h1 span {
  color: var(--blue);
}
.hero-copy > p {
  max-width: 420px;
  font-size: 16px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-actions button {
  min-height: 46px;
  padding: 12px 22px;
  font-size: 14px;
}
.hero-foot {
  display: flex;
  gap: 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}
.hero-art {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 6px 0;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 12% 7% 25%;
  z-index: -1;
  background: radial-gradient(ellipse, #edf9ff 0, #f9fcff 50%, #fff0 72%);
}
svg.hero-art-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(300px, 36vh, 430px);
  stroke-width: 1.2;
  overflow: visible;
}
.hero-art-grid {
  stroke: #e4ecf4;
  stroke-width: 0.8;
}
.hero-art-orbit {
  fill: none;
  stroke: #b6cbe1;
  stroke-width: 1;
  stroke-dasharray: 3 8;
}
.hero-art-connectors {
  fill: none;
  stroke: #a7bdd8;
  stroke-width: 1.1;
}
.hero-art-plane {
  stroke-width: 1.2;
}
.hero-art-plane-back {
  fill: #edf8fb;
  stroke: #a5cdd8;
}
.hero-art-plane-middle {
  fill: #f0f5ff;
  stroke: #adc1e8;
}
.hero-art-plane-front {
  fill: #ffffff;
  stroke: #90b0e4;
}
.hero-art-core {
  stroke: var(--blue);
  stroke-width: 1.7;
  fill: #eaf2ff;
}
.hero-art-points {
  fill: #fff;
  stroke: var(--cyan);
  stroke-width: 2;
}
.hero-art-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px 16px;
  margin: 16px auto 0;
  padding: 0 24px;
}
.hero-art-links a {
  color: #60768e;
  font-size: 12px;
}
.hero-art-links a:hover {
  color: var(--blue);
}
.services-section {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-title h2 {
  margin: 7px 0 0;
  font-size: 26px;
}
.section-title p {
  margin-top: 6px;
}
.text-link {
  font-size: 13px;
  white-space: nowrap;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 216px;
  padding: 22px 24px;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.service-card:hover {
  border-color: #afc7ee;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px #223f6810;
}
.service-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--blue);
}
.service-index {
  color: #63748a;
  font:
    11px ui-monospace,
    "SFMono-Regular",
    monospace;
  letter-spacing: 0.04em;
}
.service-card h3 {
  margin: 0 0 7px;
  font-size: 19px;
}
.service-card {
  color: var(--ink);
}
.service-card:hover h3 {
  color: var(--blue);
}
.service-card p {
  margin: 0 0 18px;
  max-width: 310px;
  font-size: 13px;
}
.service-card-entry {
  align-self: flex-start;
  min-height: 30px;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
}
.service-card:hover .service-card-entry {
  color: var(--blue-hover);
}
.service-disabled {
  opacity: 0.6;
}
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faff;
}
.cta-band h2 {
  font-size: 21px;
}
.cta-band p {
  margin-top: 5px;
  font-size: 13px;
}
.home-page .cta-band {
  margin-top: 32px;
  padding: 32px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Shared workspace */
.work-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.work-layout > aside,
.work-layout > section {
  min-width: 0;
}
.sidebar {
  position: sticky;
  top: 100px;
  min-width: 0;
  padding: 4px 12px 20px 0;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 10px 13px;
  border-radius: 8px;
  color: #63758b;
  font-size: 13px;
  transition:
    background 0.18s,
    color 0.18s;
}
.sidebar a:hover {
  color: var(--ink);
  background: #eef2f8;
}
.sidebar a[aria-current="page"] {
  background: #eaf1ff;
  color: var(--blue);
  font-weight: 600;
}
.sidebar a[aria-current="page"]::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--blue);
}
.sidebar svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}
.sidebar-note {
  padding: 24px 13px 0;
  color: var(--muted);
  font-size: 11px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 26px;
}
.page-heading h1 {
  font-size: 29px;
}
.page-heading p {
  margin-top: 6px;
  font-size: 13px;
}
.page-heading > div {
  min-width: 0;
}
.page-heading h1 {
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.process-section {
  margin-top: 28px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.toolbar input,
.toolbar select {
  min-width: 0;
  max-width: 300px;
  margin: 0;
  padding: 10px 13px;
}
.toolbar select {
  max-width: 180px;
}
.list-card {
  margin-bottom: 10px;
  padding: 20px 24px;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 540px), 1fr));
  gap: 14px;
}
.record-grid > .list-card {
  min-width: 0;
  margin: 0;
}
.list-card:hover {
  border-color: #c4d4ed;
  background: #fdfefe;
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.list-row > div {
  min-width: 0;
}
.list-title {
  font-size: 15px;
  font-weight: 550;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.list-title:hover {
  color: var(--blue);
}
.list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 5px;
  background: #f0f3f8;
  color: #61748a;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 400;
  white-space: nowrap;
}
.pill {
  color: var(--blue);
  background: var(--soft);
}
.badge.quoted,
.badge.delivered,
.badge.cancellation_requested {
  background: #fff5e7;
  color: #986119;
}
.badge.active,
.badge.confirmed {
  color: var(--blue);
  background: var(--soft);
}
.badge.completed {
  color: #247154;
  background: #edf7f1;
}
.filter-empty {
  padding: 42px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.empty {
  padding: 56px 28px;
  text-align: center;
}
.empty .service-icon {
  margin: 0 auto 18px;
  background: #f0f4fa;
  color: #8a9bb4;
}
.empty h2 {
  font-size: 19px;
  margin-bottom: 8px;
}
.empty p {
  font-size: 13px;
}
.empty button {
  margin-top: 22px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 12px;
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.pagination button {
  min-height: 35px;
  padding: 8px 12px;
  font-size: 12px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}
.summary-item {
  position: relative;
  padding: 23px 25px;
  overflow: hidden;
}
.summary-item::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 6px;
  height: 6px;
  border: 1px solid #9fbce8;
  border-radius: 50%;
}
.summary-item span {
  color: var(--muted);
  font-size: 12px;
}
.summary-item strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 18px;
}
.resource-card {
  min-width: 0;
  padding: 25px;
}
.resource-card h3 {
  margin: 16px 0 7px;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.resource-card p {
  margin-bottom: 16px;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.resource-card .actions {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.resource-card .actions button {
  font-size: 12px;
  padding: 9px 12px;
}
.callout {
  margin: 0 0 22px;
  padding: 12px 16px;
  border-left: 2px solid #b3cbf2;
  border-radius: 0 6px 6px 0;
  background: #f0f5fd;
  color: #5f7595;
  font-size: 12px;
  line-height: 1.8;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row:first-child {
  padding-top: 0;
}
.setting-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.setting-row strong {
  font-size: 15px;
  font-weight: 550;
}
.setting-row p {
  margin-top: 5px;
  font-size: 13px;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.settings-grid .setting-row {
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
}
.setting-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.setting-row button {
  flex-shrink: 0;
}
.audit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.audit-grid > .detail-card {
  min-width: 0;
  margin-bottom: 0;
}
.audit-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.audit-row:last-child {
  border: 0;
}
.audit-row strong {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.audit-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.audit-row > * {
  min-width: 0;
}

/* Detail and finance */
.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}
.back-link:hover {
  color: var(--blue);
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 22vw, 360px);
  align-items: start;
  gap: 20px;
}
.detail-layout > div {
  min-width: 0;
}
.ticket-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.ticket-detail-grid > .detail-card {
  min-width: 0;
  margin-bottom: 0;
}
.detail-card {
  padding: 26px 28px;
  margin-bottom: 18px;
}
.detail-card h2 {
  margin-bottom: 20px;
  font-size: 17px;
}
.detail-text {
  color: #42556e;
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.work-layout .detail-text,
.work-layout .message p,
.work-layout .message-form {
  max-width: 84ch;
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  margin: 24px 0 0;
}
.detail-facts dt {
  color: var(--muted);
  font-size: 12px;
}
.detail-facts dd {
  margin: 5px 0 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.quote-amount {
  margin: 2px 0 12px;
  font-size: 35px;
  color: var(--blue);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.quote-meta {
  margin-bottom: 12px;
  font-size: 12px;
}
.financial-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.financial-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.financial-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 21px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.record-heading {
  margin: 26px 0 5px;
  font-size: 13px;
  font-weight: 600;
}
.financial-record {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.financial-record:last-child {
  border-bottom: 0;
}
.financial-record > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.financial-record > div span {
  color: var(--muted);
  font-size: 11px;
}
.financial-record p {
  margin-top: 6px;
  font-size: 12px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.timeline {
  padding: 22px;
}
.timeline h3 {
  font-size: 14px;
  margin-bottom: 22px;
}
.timeline-item {
  position: relative;
  margin-left: 4px;
  padding: 0 0 23px 17px;
  border-left: 1px solid #dce5f1;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -3px;
  width: 5px;
  height: 5px;
  background: #9cb5d7;
  border-radius: 50%;
}
.timeline-item:first-of-type::before {
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--soft);
}
.timeline-item strong {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.timeline-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.timeline-item p {
  margin-top: 6px;
  font-size: 12px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.message {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.message:last-of-type {
  border: 0;
}
.message-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.message p {
  margin-top: 8px;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.message-form {
  margin-top: 20px;
}
.message-form textarea {
  margin: 0 0 12px;
}
.attachment {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.file-size {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.attachment-input {
  font-size: 12px;
}

@media (min-width: 1280px) {
  .ticket-detail-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .audit-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

/* Service directory remains flush with the left window edge. */
.catalog-page main {
  max-width: none;
  padding: 0;
}
.catalog-page .site-header {
  padding-inline: var(--site-gutter);
}
.catalog-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100dvh - var(--header-height));
}
.catalog-sidebar {
  align-self: stretch;
  position: sticky;
  top: var(--header-height);
  padding: 30px 18px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.catalog-sidebar-title {
  padding: 0 13px 18px;
  color: #63748a;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.catalog-sidebar nav a {
  padding: 12px 13px;
}
.catalog-detail {
  width: 100%;
  min-width: 0;
  padding: 40px var(--site-gutter) 64px;
}
.catalog-detail .page-heading {
  margin-bottom: 28px;
}
.service-overview {
  position: relative;
  padding: 0 0 32px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.service-overview h2 {
  max-width: 680px;
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.55;
}
.service-overview > p {
  max-width: 660px;
  font-size: 14px;
}
.service-overview .actions {
  margin-top: 26px;
}
.related-resources .section-title h2 {
  font-size: 19px;
}
.catalog-detail .page-heading .section-kicker {
  margin-bottom: 10px;
}

/* Each service uses the information structure its customer needs. */
.service-overview-specific {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.service-overview-specific > div {
  min-width: 0;
  max-width: 740px;
}
.service-overview-specific h2 {
  margin-top: 0;
}
.service-overview-specific p {
  max-width: 700px;
}
.service-detail-symbol {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border: 1px solid #dce7f6;
  border-radius: 18px;
  background: #fff;
  color: var(--blue);
}
.service-detail-symbol svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.2;
}
.service-section {
  margin: 0 0 32px;
}
.service-section > h2 {
  margin: 0 0 19px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.service-section h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
.service-section p {
  font-size: 13px;
}
.service-option-index {
  display: block;
  color: #63748a;
  font:
    11px ui-monospace,
    "SFMono-Regular",
    monospace;
  letter-spacing: 0.06em;
}
.small-task-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.small-task-menu article {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.small-task-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.small-task-heading h3 {
  margin-bottom: 10px;
}
.task-output {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.task-output span {
  color: var(--muted);
  font-size: 11px;
}
.task-output strong {
  font-size: 12px;
  font-weight: 500;
}
.service-checklist,
.service-deliverables {
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-checklist li {
  position: relative;
  margin-top: 10px;
  padding-left: 18px;
  color: #4f627a;
  font-size: 13px;
}
.service-checklist li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 5px;
  height: 5px;
  background: #93b6e5;
  border-radius: 1px;
}
.service-inline-section {
  padding: 23px 25px;
  border-left: 2px solid #b0c9ef;
  background: #eff4fb;
  border-radius: 0 8px 8px 0;
}
.service-inline-section > h2 {
  margin-bottom: 14px;
  font-size: 16px;
}
.service-deliverables {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 24px;
}
.service-deliverables li {
  color: #4f627a;
  font-size: 13px;
  line-height: 1.85;
}
.maintenance-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.maintenance-lanes article {
  padding: 25px;
  border: 1px solid var(--line);
  border-top: 2px solid #80a6e8;
  border-radius: 0 0 12px 12px;
  background: #fff;
}
.maintenance-lanes article:last-child {
  border-top-color: #73b6c5;
}
.maintenance-lane-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.maintenance-lane-heading > span {
  display: flex;
  color: var(--blue);
}
.maintenance-lane-heading h3 {
  margin: 0;
  font-size: 17px;
}
.maintenance-lanes article > p {
  margin-bottom: 18px;
}
.compute-workloads,
.printing-jobs,
.token-scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.compute-workloads article {
  padding: 20px 22px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.compute-workloads h3,
.printing-jobs h3,
.token-scenarios h3 {
  margin-top: 14px;
}
.service-specifications {
  display: grid;
  margin: 0;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.service-specifications > div {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.service-specifications > div:last-child {
  border: 0;
}
.service-specifications dt {
  font-size: 13px;
  font-weight: 500;
}
.service-specifications dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.printing-jobs article {
  padding: 20px 22px;
  border: 1px solid #dce7ed;
  background: #f5fafb;
  border-radius: 10px;
}
.printing-jobs .service-option-index {
  color: #467d8c;
}
.printing-review {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.printing-review .service-specifications {
  border: 0;
  border-radius: 0;
}
.printing-file-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #f7faff;
}
.printing-file-mark svg {
  width: 65px;
  height: 65px;
  color: var(--blue);
  stroke-width: 1;
}
.printing-file-mark span {
  text-align: center;
  color: #63748a;
  font:
    11px/1.9 ui-monospace,
    monospace;
}
.software-milestones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.software-milestones li {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.milestone-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  background: #edf3ff;
  color: var(--blue);
  font:
    12px ui-monospace,
    monospace;
}
.milestone-output {
  display: block;
  padding-top: 12px;
  margin-top: 13px;
  border-top: 1px solid var(--line);
  color: #4b6383;
  font-size: 12px;
}
.token-scenarios article {
  padding: 20px 22px;
  border-top: 2px solid #acc6ee;
  background: #fff;
}
.model-integration {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.model-integration li {
  position: relative;
  padding: 21px;
  border-right: 1px solid var(--line);
}
.model-integration li:last-child {
  border: 0;
}
.model-integration li > span {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font:
    12px ui-monospace,
    monospace;
}
.model-integration li h3 {
  font-size: 14px;
}
.model-integration li p {
  font-size: 12px;
}
.service-preparation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 30px;
  padding-top: 4px;
}
.service-preparation > div {
  padding-left: 14px;
  border-left: 1px solid #cbd8e9;
}
.service-preparation h3 {
  margin-bottom: 6px;
  font-size: 13px;
}
.service-preparation p {
  font-size: 12px;
}
.service-boundary {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 18px;
  margin: 32px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-boundary > span {
  font-size: 12px;
  color: #536e8f;
}
.service-boundary > p {
  font-size: 12px;
  line-height: 1.85;
}
@media (max-width: 1100px) {
  .model-integration {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .model-integration li:nth-child(2) {
    border-right: 0;
  }
  .model-integration li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .service-deliverables {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .printing-review {
    grid-template-columns: 140px minmax(0, 1fr);
  }
  .service-specifications > div {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 15px;
  }
}
@media (max-width: 600px) {
  .service-overview-specific {
    gap: 15px;
  }
  .service-detail-symbol {
    display: none;
  }
  .small-task-menu,
  .maintenance-lanes,
  .compute-workloads,
  .printing-jobs,
  .token-scenarios,
  .software-milestones {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .small-task-menu article,
  .maintenance-lanes article,
  .compute-workloads article,
  .printing-jobs article,
  .token-scenarios article,
  .software-milestones li {
    padding: 20px;
  }
  .service-section > h2 {
    font-size: 17px;
  }
  .service-inline-section {
    padding: 20px;
  }
  .service-specifications {
    padding: 0 19px;
  }
  .service-specifications > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 15px 0;
  }
  .service-specifications dd {
    font-size: 12px;
  }
  .printing-review {
    grid-template-columns: minmax(0, 1fr);
  }
  .printing-file-mark {
    flex-direction: row;
    gap: 15px;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .printing-file-mark svg {
    width: 36px;
    height: 36px;
  }
  .printing-file-mark span {
    font-size: 10px;
  }
  .model-integration {
    grid-template-columns: minmax(0, 1fr);
  }
  .model-integration li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 15px;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px;
  }
  .model-integration li > span {
    margin-top: 4px;
  }
  .service-preparation {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-boundary {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .task-output {
    grid-template-columns: 58px minmax(0, 1fr);
  }
}

/* Forms and feedback */
label {
  display: block;
  margin: 18px 0;
  color: #455972;
  font-size: 13px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  padding: 12px 13px;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #fcfdff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}
input:hover,
textarea:hover,
select:hover {
  border-color: #c0d0e5;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #8bb0f7;
  outline: 0;
  box-shadow: 0 0 0 3px #2463eb12;
  background: #fff;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
input[type="file"] {
  font-size: 12px;
}
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.two-column label {
  min-width: 0;
}
dialog {
  width: calc(100% - 40px);
  max-width: 620px;
  max-height: calc(100dvh - 40px);
  padding: 32px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 100px #15263e26;
}
dialog::backdrop {
  background: #172b444d;
  backdrop-filter: blur(5px);
}
.dialog-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.dialog-title h2 {
  font-size: 23px;
  letter-spacing: -0.035em;
}
.dialog-title > button {
  min-height: 32px;
  width: 32px;
  padding: 0;
  margin: -3px -5px 0 0;
  border-radius: 8px;
}
.dialog-title > :first-child {
  min-width: 0;
}
.dialog-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.dialog-tools button {
  width: 34px;
  min-height: 34px;
  padding: 6px;
}
dialog > p {
  margin-top: 8px;
  font-size: 13px;
}
dialog form {
  margin-top: 22px;
}
dialog label {
  margin-block: 16px;
}
dialog .eyebrow {
  font-size: 10px;
  margin-bottom: 6px;
}
.full {
  display: flex;
  width: 100%;
  margin-top: 12px;
}
.form-error {
  min-height: 0;
  margin: 10px 0;
  color: #b34b45;
  font-size: 12px;
}
.form-error:empty {
  display: none;
}
#ticket-order-hint {
  margin-top: -8px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  max-width: min(90vw, 560px);
  padding: 13px 20px;
  border: 1px solid #ffffff20;
  border-radius: 10px;
  background: #1b2e48f2;
  color: #fff;
  font-size: 13px;
  line-height: 1.7;
  box-shadow: 0 10px 35px #172b4426;
  backdrop-filter: blur(8px);
}

@media (max-width: 1100px) {
  :root {
    --site-gutter: 26px;
  }
  .site-header {
    gap: 20px;
  }
  .top-nav a {
    padding-inline: 10px;
  }
  .preview-badge {
    display: none;
  }
  .hero {
    gap: 20px;
    padding-block: 52px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .work-layout:not(.catalog-layout) {
    grid-template-columns: 162px minmax(0, 1fr);
    gap: 24px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .timeline {
    max-width: none;
  }
  .catalog-detail {
    padding: 32px;
  }
  .header-right #account-button {
    max-width: 205px;
  }
}
@media (max-width: 820px) {
  :root {
    --site-gutter: 24px;
  }
  .site-header {
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-block: 14px;
  }
  .header-right {
    margin-left: auto;
  }
  .top-nav {
    order: 3;
    justify-content: flex-start;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
    margin-left: -10px;
    gap: 8px;
  }
  .top-nav a {
    padding: 6px 10px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 40px;
    gap: 22px;
  }
  .hero-copy {
    max-width: 620px;
  }
  .hero h1 {
    font-size: clamp(39px, 7vw, 56px);
  }
  .hero-art {
    width: min(100%, 540px);
    margin: 0 auto;
  }
  svg.hero-art-canvas {
    max-height: 340px;
  }
  .hero-art-links {
    margin-top: 10px;
  }
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .work-layout:not(.catalog-layout) {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .sidebar {
    position: static;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--line);
  }
  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    max-width: 100%;
    gap: 6px;
    padding: 0 0 4px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .sidebar a {
    flex-shrink: 0;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
  .sidebar a[aria-current="page"]::after {
    display: none;
  }
  .sidebar svg {
    width: 16px;
    height: 16px;
  }
  .sidebar-note {
    display: none;
  }
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .catalog-sidebar {
    padding: 20px 24px 12px;
    border-right: 0;
  }
  .catalog-sidebar-title {
    padding: 0 0 14px;
  }
  .catalog-sidebar nav a {
    padding: 8px 12px;
  }
  .catalog-detail {
    padding: 28px 24px 48px;
  }
  .catalog-page .site-header {
    padding-inline: 24px;
  }
}
@media (max-width: 560px) {
  :root {
    --site-gutter: 20px;
  }
  .site-header {
    padding: 14px 20px 12px;
    gap: 12px;
  }
  .brand {
    gap: 9px;
    font-size: 17px;
  }
  .site-header .brand-logo {
    height: 47px;
    max-width: 105px;
  }
  .brand strong {
    display: none;
  }
  .site-footer .brand-logo {
    height: 47px;
  }
  .header-right {
    gap: 7px;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .header-right #account-button {
    max-width: 160px;
    padding: 8px 10px;
    font-size: 11px;
    min-height: 35px;
  }
  #account-role {
    display: none;
  }
  .top-nav {
    width: calc(100% + 10px);
    gap: 3px;
    margin-left: -8px;
  }
  .top-nav a {
    font-size: 12px;
    padding: 6px 8px;
  }
  main {
    padding: 26px 20px 48px;
  }
  .hero {
    padding: 36px 0 38px;
  }
  .hero h1 {
    font-size: clamp(36px, 9.2vw, 46px);
    line-height: 1.25;
    margin: 20px 0;
  }
  .hero-copy > p {
    max-width: 340px;
    font-size: 14px;
    line-height: 1.9;
  }
  .hero-actions {
    gap: 10px;
    margin-top: 25px;
  }
  .hero-actions button {
    padding-inline: 17px;
    font-size: 13px;
    min-height: 43px;
  }
  .hero-art {
    margin-top: 3px;
  }
  svg.hero-art-canvas {
    max-height: 290px;
  }
  .hero-art-links {
    gap: 8px 16px;
    padding-inline: 0;
  }
  .hero-art-links a {
    font-size: 11px;
  }
  .services-section {
    padding-top: 25px;
  }
  .section-title {
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }
  .section-title h2 {
    font-size: 23px;
  }
  .section-title .text-link {
    font-size: 11px;
  }
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .service-card {
    min-height: 190px;
    padding: 22px 24px;
  }
  .service-card h3 {
    margin-top: 0;
    font-size: 20px;
  }
  .service-card p {
    max-width: none;
    font-size: 13px;
    margin-bottom: 16px;
  }
  .service-card-entry {
    min-height: 32px;
  }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 23px;
  }
  .cta-band h2 {
    font-size: 20px;
  }
  .home-page .cta-band {
    padding-top: 28px;
  }
  .site-footer {
    width: calc(100% - 40px);
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 24px 0;
  }
  .site-footer > span {
    order: 3;
    width: 100%;
    font-size: 11px;
  }
  .site-footer > a:last-child {
    font-size: 11px;
  }
  .page-heading {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading button {
    font-size: 12px;
    min-height: 37px;
  }
  .sidebar svg {
    display: none;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .toolbar input {
    flex: 1 1 150px;
    max-width: none;
  }
  .toolbar select {
    flex: 1 1 120px;
    max-width: none;
  }
  .toolbar button {
    padding-inline: 13px;
  }
  .list-card {
    padding: 18px;
  }
  .list-row {
    gap: 12px;
    align-items: flex-start;
  }
  .list-title {
    font-size: 14px;
  }
  .list-meta {
    font-size: 11px;
    gap: 5px 12px;
  }
  .list-row > .badge {
    flex-shrink: 0;
    font-size: 10px;
  }
  .summary-grid {
    gap: 10px;
    margin-bottom: 28px;
  }
  .summary-item {
    padding: 18px 12px;
  }
  .summary-item::after {
    display: none;
  }
  .summary-item span {
    font-size: 11px;
  }
  .summary-item strong {
    font-size: 29px;
  }
  .detail-card {
    padding: 22px;
  }
  .detail-card h2 {
    font-size: 16px;
  }
  .detail-text {
    font-size: 13px;
  }
  .detail-facts {
    gap: 18px;
  }
  .detail-facts dt {
    font-size: 11px;
  }
  .detail-facts dd {
    font-size: 12px;
  }
  .financial-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .financial-summary strong {
    font-size: 21px;
  }
  .pagination {
    flex-wrap: wrap;
    font-size: 11px;
  }
  .pagination button {
    font-size: 11px;
  }
  .resource-card {
    padding: 22px;
  }
  .resource-card .actions {
    gap: 8px;
  }
  .resource-card .actions button {
    font-size: 11px;
  }
  .audit-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .setting-row {
    gap: 15px;
  }
  .settings-grid .setting-row {
    padding: 20px;
  }
  .setting-row p {
    font-size: 12px;
  }
  .setting-row button {
    padding: 9px 11px;
    font-size: 12px;
  }
  .catalog-page .site-header {
    padding-inline: 20px;
  }
  .catalog-sidebar {
    padding: 18px 20px 10px;
  }
  .catalog-detail {
    padding: 26px 20px 44px;
  }
  .service-overview {
    padding: 0 0 26px;
  }
  .service-overview h2 {
    font-size: 22px;
  }
  .service-overview > p {
    font-size: 13px;
  }
  dialog {
    padding: 24px;
    width: calc(100% - 28px);
    max-height: calc(100dvh - 28px);
    border-radius: 14px;
  }
  .dialog-title h2 {
    font-size: 21px;
  }
  .two-column {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  #toast {
    bottom: 18px;
    padding: 11px 16px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .service-card:hover {
    transform: none;
  }
}

@media (min-width: 821px) {
  .catalog-sidebar {
    position: relative;
    top: auto;
  }
  .catalog-sidebar nav {
    position: sticky;
    top: 100px;
  }
}

/* Service illustrations are conceptual; no live operational figures are shown. */
.service-card > .service-index {
  position: absolute;
  z-index: 1;
  top: 21px;
  right: 24px;
}
.service-animation {
  height: 130px;
  margin: 0 -8px 16px;
  pointer-events: none;
  overflow: hidden;
  border-radius: 10px;
  background: radial-gradient(ellipse at center, #eef5ff 0%, #fff0 74%);
}
.service-animation-svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke-width: 1.25;
  color: #7895c0;
  overflow: visible;
}
.service-animation [class*="motion-"] {
  animation-play-state: paused;
  transform-box: fill-box;
}
.service-animation[data-motion-active="true"] [class*="motion-"] {
  animation-play-state: running;
}
.motion-code-line {
  animation: service-code-draw 5s ease-in-out infinite;
  transform-origin: left center;
}
.motion-cursor {
  animation: service-cursor 1.8s step-end infinite;
}
.motion-scan {
  animation: service-scan 5.4s ease-in-out infinite;
}
.motion-status {
  animation: service-status 4s ease-in-out infinite;
}
.motion-chip-cell {
  animation: service-cell 3.8s ease-in-out infinite;
  transform-origin: center;
}
.motion-packet {
  --packet-x: 24px;
  --packet-y: 0px;
  animation: service-packet 3.5s linear infinite;
}
.motion-packet--left {
  --packet-x: -24px;
}
.motion-packet--down {
  --packet-x: 0px;
  --packet-y: 18px;
}
.motion-packet--up {
  --packet-x: 0px;
  --packet-y: -18px;
}
.motion-print-head {
  animation: service-print-head 5.6s ease-in-out infinite;
  transform-origin: center;
}
.motion-print-layer {
  animation: service-print-layer 5.6s ease-in-out infinite;
  transform-origin: center bottom;
}
.motion-panel {
  --panel-x: 0px;
  --panel-y: 0px;
  animation: service-panel 5.8s ease-in-out infinite;
  transform-origin: center;
}
.motion-panel--left {
  --panel-x: -9px;
}
.motion-panel--right {
  --panel-x: 9px;
}
.motion-panel--bottom {
  --panel-y: 9px;
}
.motion-model-core {
  animation: service-model 4.4s ease-in-out infinite;
  transform-origin: center;
}
.motion-token {
  animation: service-token 3.6s linear infinite;
}
.motion-delay-1 {
  animation-delay: -0.8s;
}
.motion-delay-2 {
  animation-delay: -1.6s;
}
.motion-delay-3 {
  animation-delay: -2.4s;
}
@keyframes service-code-draw {
  0%,
  10%,
  100% {
    transform: scaleX(0.2);
    opacity: 0.3;
  }
  42%,
  82% {
    transform: scaleX(1);
    opacity: 1;
  }
}
@keyframes service-cursor {
  0%,
  50%,
  100% {
    opacity: 0.25;
  }
  25%,
  75% {
    opacity: 1;
  }
}
@keyframes service-scan {
  0%,
  8% {
    transform: translateY(0);
    opacity: 0;
  }
  18% {
    opacity: 0.7;
  }
  78% {
    transform: translateY(56px);
    opacity: 0.6;
  }
  90%,
  100% {
    transform: translateY(56px);
    opacity: 0;
  }
}
@keyframes service-status {
  0%,
  100% {
    opacity: 0.35;
  }
  45%,
  65% {
    opacity: 0.95;
  }
}
@keyframes service-cell {
  0%,
  100% {
    transform: scale(0.86);
    opacity: 0.3;
  }
  45%,
  65% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes service-packet {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  20%,
  70% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(var(--packet-x), var(--packet-y));
  }
}
@keyframes service-print-head {
  0%,
  100% {
    transform: translateX(-32px);
  }
  40%,
  60% {
    transform: translateX(32px);
  }
}
@keyframes service-print-layer {
  0%,
  10%,
  100% {
    opacity: 0.18;
  }
  40%,
  82% {
    opacity: 1;
  }
}
@keyframes service-panel {
  0%,
  12%,
  100% {
    transform: translate(var(--panel-x), var(--panel-y));
    opacity: 0.45;
  }
  42%,
  82% {
    transform: translate(0, 0);
    opacity: 1;
  }
}
@keyframes service-model {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.025);
    opacity: 1;
  }
}
@keyframes service-token {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  20%,
  65% {
    opacity: 1;
  }
  100% {
    transform: translateX(24px);
    opacity: 0;
  }
}
@media (max-width: 560px) {
  .service-card > .service-index {
    top: 20px;
    right: 24px;
  }
  .service-animation {
    height: 124px;
    margin-bottom: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-animation [class*="motion-"] {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.service-animation--printing .motion-print-layer {
  animation-fill-mode: both;
}
.service-animation--printing .motion-delay-1 {
  animation-delay: 0.65s;
}
.service-animation--printing .motion-delay-2 {
  animation-delay: 1.3s;
}
.service-animation--printing .motion-delay-3 {
  animation-delay: 1.95s;
}

/* The hero diagram shares viewport/reduced-motion controls with the cards. */
.hero-art [class*="motion-"] {
  animation-play-state: paused;
  transform-box: fill-box;
}
.hero-art[data-motion-active="true"] [class*="motion-"] {
  animation-play-state: running;
}
.motion-hero-back {
  --hero-from: -20px;
  --hero-to: 20px;
  animation: hero-plane-float 15.2s ease-in-out infinite;
}
.motion-hero-middle {
  --hero-from: 16px;
  --hero-to: -16px;
  animation: hero-plane-float 16.8s ease-in-out -1.6s infinite;
}
.motion-hero-front {
  --hero-from: 18px;
  --hero-to: -18px;
  animation: hero-plane-float 14s ease-in-out -2.8s infinite;
}
.motion-hero-core {
  animation: hero-core-float 12.8s ease-in-out infinite;
  transform-origin: center;
}
.motion-hero-orbit {
  animation: hero-orbit-flow 32s linear infinite;
}
.motion-hero-signal {
  stroke-dasharray: 5 18;
  animation: hero-signal-flow 16s linear infinite;
}
.motion-hero-points {
  animation: hero-points-glow 9.6s ease-in-out infinite;
}
@keyframes hero-plane-float {
  0%,
  100% {
    transform: translateY(var(--hero-from));
  }
  50% {
    transform: translateY(var(--hero-to));
  }
}
@keyframes hero-core-float {
  0%,
  100% {
    transform: translateY(-18px) scale(0.97);
  }
  50% {
    transform: translateY(18px) scale(1.05);
  }
}
@keyframes hero-orbit-flow {
  to {
    stroke-dashoffset: -110;
  }
}
@keyframes hero-signal-flow {
  to {
    stroke-dashoffset: -92;
  }
}
@keyframes hero-points-glow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art [class*="motion-"] {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
:root {
  --service-workflow-border: #e0e9f3;
}
.service-business {
  margin: 28px 0 36px;
  border: 1px solid var(--service-workflow-border);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #f5faff 0%, #fff 60%);
}
.service-business-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px;
}
.service-business-heading > div {
  min-width: 0;
}
.service-business-heading h2 {
  margin: 8px 0;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.4;
}
.service-business-heading p {
  margin: 0;
  color: var(--muted, #64748b);
  line-height: 1.7;
  max-width: 52em;
}
.service-business-heading button {
  flex-shrink: 0;
}
.service-business-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--service-workflow-border);
}
.service-business-grid article {
  min-width: 0;
  padding: 20px 24px;
}
.service-business-grid h3 {
  margin: 0 0 12px;
  font-size: 16px;
}
.service-business-preparation {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 12px 20px;
  border-bottom: 1px solid var(--service-workflow-border);
}
.service-business-preparation h3 {
  margin: 0;
}
.service-business-preparation p,
.service-business-process p {
  color: var(--muted, #64748b);
  font-size: 13px;
  line-height: 1.7;
  margin: 6px 0 0;
}
.service-business-preparation p {
  margin: 0;
}
.service-business-preparation ul {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.service-business-preparation li {
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid var(--service-workflow-border);
  background: #ffffffb8;
  color: #465e7c;
  font-size: 12px;
}
.service-business-process ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}
.service-business-process li {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--service-workflow-border);
  border-radius: 10px;
  background: #ffffffb8;
}
.service-business-process li > span {
  flex-shrink: 0;
  color: #3586af;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  border: 1px solid #cae0ec;
  border-radius: 8px;
  background: #eff9fc;
  padding: 5px 7px;
}
.service-business-process li > div {
  min-width: 0;
}
.service-business-process strong {
  font-size: 14px;
  font-weight: 600;
}
.service-business-note {
  margin: 0;
  padding: 14px 24px;
  background: #edf5fc88;
  border-top: 1px solid var(--service-workflow-border);
  color: #60768f;
  font-size: 12px;
  line-height: 1.7;
}
@media (max-width: 1280px) {
  .service-business-process ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .service-business-heading {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .service-business-grid article {
    padding: 20px;
  }
  .service-business-preparation {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .service-business-note {
    padding: 14px 20px;
  }
}
@media (max-width: 600px) {
  .service-business-process ol {
    grid-template-columns: minmax(0, 1fr);
  }
}
