/* ServiceX design contract: clear daily-use UI, immediate feedback, restrained motion. */
:root {
  --paper: #f8faf9;
  --ink: #153c40;
  --muted: #526e70;
  --line: #dce6e2;
  --teal: #09616a;
  --soft: #e9f3ef;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --duration-press: 100ms;
  --duration-enter: 200ms;
  --radius: 14px;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { font-size: 16px; background: var(--paper); color: var(--ink); min-height: 100dvh; }
button, .button, .filter { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button, a, input, textarea, select { touch-action: manipulation; }
.icon { flex-shrink: 0; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-style: normal; line-height: 1; }
.icon::before { line-height: 1; }
.button .icon, .desk-shortcuts .icon { font-size: 16px; }
.hero-note .icon, .document-check .icon, .desk-footnote .icon { font-size: 13px; }
.button .icon { width: 18px; height: 18px; }
.wrap { max-width: 1264px; padding-inline: max(32px, env(safe-area-inset-left)); }
.topline { background: #edf4f0; color: #36665c; padding-top: calc(9px + env(safe-area-inset-top)); font-size: 11px; border-bottom: 1px solid var(--line); }
.live-dot { background: #548a68; }
.nav { height: 90px; }
header { background: var(--paper); }
header .brand { width: 175px; }
nav { font-size: 13px; gap: 36px; }
.button { min-height: 46px; border-radius: 9px; padding: 12px 19px; letter-spacing: -.01em; font-size: 13px; transition: transform var(--duration-press) var(--ease-out); }
.button.small { min-height: 44px; }
.button.outline { background: var(--surface); border-color: #cfddd7; }
.button:active, .filter:active, .desk-shortcuts a:active { transform: scale(.97); }
.button:disabled { opacity: .65; }
.button[aria-busy="true"] { cursor: progress; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .14em; line-height: 1.6; }
.eyebrow-line { width: 24px; height: 2px; background: #de8b17; }
.hero { padding-top: 66px; padding-bottom: 64px; grid-template-columns: 1.1fr 1fr; gap: 72px; }
.hero h1 { font-size: clamp(40px, 4.3vw, 58px); line-height: 1.12; letter-spacing: -.045em; margin: 22px 0; max-width: 610px; }
.hero-copy > p { max-width: 475px; font-size: 15px; line-height: 1.85; }
.hero h1 em { position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; inset: auto 0 -5px; height: 4px; border-radius: 4px; background: #edbd70; }
.hero-actions { margin-top: 28px; gap: 10px; }
.hero-note { margin-top: 24px; gap: 17px; font-size: 11px; }
.hero-note span { display: inline-flex; align-items: center; gap: 5px; }
.hero-note .icon { color: #4b856b; width: 13px; height: 13px; }
.quick-desk { padding: 27px; border: 1px solid #d7e5de; border-radius: 20px; background: #edf3ef; box-shadow: 0 16px 40px -32px #123f3a66; }
.desk-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 14px; }
.desk-heading .eyebrow { font-size: 9px; color: #647f74; }
.desk-heading h2 { margin: 5px 0 0; font-size: 23px; letter-spacing: -.035em; }
.desk-mark { display: grid; place-items: center; background: #e0ebe3; width: 40px; height: 40px; color: #557e65; border-radius: 11px; }
.desk-feature { display: grid; grid-template-columns: 116px 1fr; gap: 15px; align-items: center; width: 100%; padding: 27px 21px; background: var(--surface); border: 1px solid #d7e4dd; border-radius: 12px; text-align: left; color: var(--ink); }
.desk-feature h3 { font-size: 17px; line-height: 1.4; letter-spacing: -.025em; margin: 14px 0 7px; }
.desk-feature p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.7; }
.desk-feature .badge { font-size: 8px; background: #f8efdd; color: #80530c; }
.desk-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--teal); margin-top: 21px; font-size: 11px; font-weight: 700; }
.desk-link .icon { width: 16px; height: 16px; }
.document-preview { height: 155px; position: relative; align-self: center; }
.mini-page { width: 75px; height: 111px; border: 1px solid #d9e3dc; border-radius: 7px; background: #fff; position: absolute; font-size: 9px; font-weight: 750; letter-spacing: .06em; padding: 16px 13px; color: #8d5736; box-shadow: 0 8px 10px -8px #0a5c6429; }
.mini-page span { display: block; height: 4px; border-radius: 2px; background: #e6ebe8; margin-top: 11px; }
.mini-page span:last-child { width: 70%; }
.mini-page.back { transform: rotate(-12deg); top: 11px; left: 5px; background: #faf7f1; }
.mini-page.front { transform: rotate(6deg); top: 32px; left: 27px; color: #39745c; }
.document-check { display: grid; place-items: center; width: 29px; height: 29px; color: #29654a; background: #dbede0; border: 3px solid white; border-radius: 50%; position: absolute; bottom: 1px; right: 4px; }
.document-check .icon { width: 15px; height: 15px; }
.desk-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.desk-shortcuts a { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 13px 10px; border: 1px solid #d7e4dd; border-radius: 9px; background: #ffffffb3; color: var(--ink); font-size: 11px; font-weight: 600; text-align: left; transition: transform var(--duration-press) var(--ease-out); }
.desk-shortcuts .icon { width: 18px; height: 18px; color: var(--teal); }
.desk-shortcuts .icon:last-child { margin-left: auto; width: 14px; height: 14px; }
.desk-footnote { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 10px; color: #627c6e; margin-top: 19px; }
.desk-footnote .icon { width: 14px; height: 14px; }
.trust-row { padding-block: 22px; font-size: 11px; gap: 18px; }
.section { padding-block: 49px; }
.section-heading { margin-bottom: 24px; }
h2 { font-size: 28px; line-height: 1.25; letter-spacing: -.035em; }
.section-heading .eyebrow { color: #55796d; }
.subtle { line-height: 1.7; }
.search { min-width: min(300px, 100%); }
.search input { min-height: 46px; border-radius: 10px; font-size: 13px; }
.categories { gap: 5px; padding-bottom: 26px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.filter { border-radius: 8px; min-height: 44px; font-size: 12px; padding-inline: 15px; scroll-snap-align: start; }
.filter.active { background: #deede5; color: #1f634f; border: 1px solid #c5ded1; }
.tool-grid { gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool-card { padding: 21px; min-height: 224px; border-radius: 13px; transition: none; }
.card-top { gap: 10px; margin-bottom: 20px; align-items: flex-start; }
.tool-icon { width: 43px; height: 43px; flex-shrink: 0; background: #eef4f1; border: 1px solid #e0eae4; border-radius: 10px; color: #477965; }
.tool-icon.saffron { background: #fbf2df; border-color: #f3e6c8; color: #92671f; }
.tool-icon .icon { width: 23px; height: 23px; }
.badge { flex-shrink: 0; white-space: nowrap; font-size: 8px; border-radius: 4px; letter-spacing: .06em; margin-top: 2px; padding: 4px 6px; }
.tool-card h3 { font-size: 15px; letter-spacing: -.02em; }
.tool-card p { font-size: 12px; line-height: 1.7; }
.tool-open { width: 100%; min-height: 38px; border-top: 1px solid #eaf0ed; padding-top: 13px; font-size: 11px; }
.tool-open .icon { width: 16px; height: 16px; }
.trial-strip { border-radius: 11px; background: #eef4ee; padding: 20px 23px; }
.trial-strip strong { font-size: 13px; font-weight: 650; }
.how-grid { gap: 35px; }
.step-number { color: #9b6b24; font-size: 10px; letter-spacing: .06em; }
.step h3 { letter-spacing: -.02em; }
.step p { line-height: 1.8; }
.panel { border-radius: 13px; padding: 27px; min-width: 0; }
.info-grid { gap: 20px; }
.info-grid h3 { line-height: 1.5; letter-spacing: -.025em; }
.info-grid p { line-height: 1.85; }
.ad-box { min-height: 84px; margin-bottom: 27px; }
.workspace { grid-template-columns: 208px minmax(0, 1fr); padding-top: 36px; gap: 36px; }
.workspace-links { display: flex; flex-direction: column; gap: 4px; }
.sidebar { padding-right: 20px; }
.sidebar-label { font-size: 9px; padding: 5px 12px 9px; margin-bottom: 12px; }
.sidebar a, .sidebar button { min-height: 44px; font-size: 12px; margin: 0; display: flex; align-items: center; }
.sidebar a.active { background: #e6f0e9; color: #285f4d; }
.sidebar a[aria-current="page"]::before { content: ''; width: 4px; height: 4px; background: currentColor; border-radius: 50%; margin-right: 8px; }
.sidebar #logout { border-top: 1px solid var(--line); border-radius: 0; margin-top: 18px; color: #6f7774; }
.workspace-selector { display: none; }
.page-head { gap: 16px; align-items: flex-start; }
.page-head > div { min-width: 0; }
.page-head h1 { font-size: 31px; line-height: 1.3; letter-spacing: -.035em; overflow-wrap: anywhere; }
.page-head .button { flex-shrink: 0; }
.account-grid { grid-template-columns: 1.1fr 1fr; }
.balance { background: #114d50; border-color: #114d50; }
.balance .amount { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: -.04em; white-space: nowrap; }
.stat, td, .output { font-variant-numeric: tabular-nums; }
.balance p { color: #c2d7d0; }
.form { gap: 18px; }
.form label { font-size: 12px; color: var(--ink); }
.form input, .form select, .form textarea { min-height: 46px; border-radius: 8px; font-size: 14px; }
.form input:disabled { background: var(--paper); color: var(--muted); opacity: 1; }
.form .check { align-items: flex-start; line-height: 1.7; }
.form .check input { width: 18px; min-height: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.form .interest { min-height: 42px; font-weight: 500; }
.interest input { min-height: 14px; }
.form-help { line-height: 1.8; }
.form-error { line-height: 1.7; overflow-wrap: anywhere; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); }
.table-wrap { overscroll-behavior: contain; scrollbar-width: thin; }
th { font-size: 9px; }
td { font-size: 12px; }
td:last-child { max-width: 360px; }
td span[title] { display: block; min-width: 180px; max-width: 360px; overflow-wrap: anywhere; white-space: normal; }
.panel > p, .panel h2, .feedback-message { overflow-wrap: anywhere; }
.panel > .flex.spaced { align-items: flex-start; }
.panel > .flex.spaced > div { min-width: 0; }
.panel > .flex.spaced > button { flex-shrink: 0; }
.pager { flex-wrap: wrap; }



.auth-title { padding-right: 14px; letter-spacing: -.04em; line-height: 1.3; }
.auth-tabs { padding: 4px; gap: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.auth-tabs .button { border: 0; min-height: 40px; padding-block: 9px; }
.auth-tabs .outline { background: transparent; }
#google-signin { margin-top: 15px; margin-bottom: 15px; }
.output { background: #eef5ef; border: 1px solid #d7e7db; }
.output p { margin-block: 7px; }
.tool-price { line-height: 1.8; }
#toast { inset: auto 24px 24px auto; left: auto; transform: none; margin: 0; padding: 16px 16px 16px 20px; max-width: min(430px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 8px 30px #103c421a; border-radius: 12px; display: flex; align-items: center; gap: 18px; line-height: 1.6; }
#toast-message { overflow-wrap: anywhere; }
#toast-dismiss { color: var(--muted); border: 0; border-radius: 7px; background: transparent; min-width: 32px; height: 32px; font-size: 22px; }
footer { padding-block: 42px calc(36px + env(safe-area-inset-bottom)); background: #103b3e; }
.footer-inner > div:last-child { flex-shrink: 0; }
.design-fixture-controls { display: flex; position: fixed; z-index: 100; inset: auto 12px 16px; margin-inline: auto; width: max-content; max-width: calc(100vw - 24px); overflow: auto; background: #e5e7eb; color: #252525; padding: 4px; border: 1px solid #c5c9ce; border-radius: 10px; gap: 3px; font: 12px system-ui; }
.design-fixture-controls button { min-height: 36px; white-space: nowrap; border: 0; border-radius: 7px; padding: 8px 12px; color: inherit; background: transparent; }
.design-fixture-controls button[aria-pressed="true"] { background: #fff; }
html[data-input="keyboard"] .button, html[data-input="keyboard"] .filter { transition: none; }
html[data-input="keyboard"] .button:active, html[data-input="keyboard"] .filter:active { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .tool-card:hover { transform: none; border-color: #9bb6a7; }
  .desk-feature:hover, .desk-shortcuts a:hover { border-color: #91b6a2; }
  .button:hover { background: #074c53; }
  .button.outline:hover { background: #edf4ef; border-color: #a1beb0; }
  .button.orange:hover { background: #f7b13c; }
  .button.danger:hover { background: #8f2727; }
  .filter:not(.active):hover { background: #edf3ef; }
  #toast-dismiss:hover { background: var(--soft); }
}
body.dark { --paper: #102b30; --surface: #17383d; --ink: #e6f0ec; --muted: #b3c9c2; --line: #36575a; --soft: #234941; --teal: #8dd5ce; }
body.dark .topline { background: #102b30; color: #b7d7c8; }
body.dark .quick-desk { background: #1b3938; border-color: #38574d; }
body.dark .desk-heading .eyebrow, body.dark .desk-footnote { color: #b3c9c2; }
body.dark .desk-shortcuts a { background: #183e3d; color: var(--ink); border-color: #3e6055; }
body.dark .desk-feature { border-color: #3e6055; }
body.dark .desk-mark { background: #33554a; color: #c3dccb; }
body.dark .filter.active, body.dark .sidebar a.active { background: #294f45; color: #c0e2d0; border-color: #426d59; }
body.dark .tool-icon { background: #254d42; color: #b0d7bd; border-color: #3d6455; }
body.dark .tool-icon.saffron { background: #564527; border-color: #745c31; color: #e5c98e; }
body.dark .tool-open { border-color: #36575a; }
body.dark .output { background: #264d40; border-color: #416752; }
body.dark .section-heading .eyebrow { color: #b0d0be; }
@media (max-width: 1000px) {
  .hero { gap: 32px; padding-top: 44px; }
  .quick-desk { padding: 20px; }
  .desk-feature { grid-template-columns: 100px 1fr; padding: 22px 15px; gap: 10px; }
  .desk-shortcuts a { font-size: 10px; }
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workspace { grid-template-columns: 175px minmax(0, 1fr); gap: 25px; }
  .account-grid { grid-template-columns: 1fr; }
  .balance .amount { font-size: 42px; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: max(20px, env(safe-area-inset-left)); }
  .nav { height: 76px; }
  header .brand { width: 146px; }
  .hero { grid-template-columns: 1fr; padding-top: 35px; padding-bottom: 37px; gap: 31px; }
  .hero h1 { font-size: clamp(37px, 8vw, 48px); line-height: 1.13; margin-top: 20px; margin-bottom: 23px; }
  .hero-copy > p { font-size: 14px; }
  .hero-note { gap: 10px; font-size: 10px; }
  .hero-note .icon { width: 12px; height: 12px; }
  .hero-actions { margin-top: 22px; gap: 8px; }
  .hero-actions .button { font-size: 12px; padding-inline: 14px; }
  .quick-desk { padding: 20px; border-radius: 16px; }
  .desk-feature { grid-template-columns: 100px minmax(0, 1fr); }
  .desk-feature h3 { font-size: 16px; }
  .desk-heading h2 { font-size: 22px; }
  .desk-shortcuts a { font-size: 11px; }
  .trust-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; font-size: 10px; padding-block: 19px; }
  .section { padding-block: 35px; }
  h2 { font-size: 26px; }
  .section-heading { gap: 21px; }
  .search input { min-height: 48px; }
  .categories { padding-bottom: 20px; gap: 4px; }
  .filter { font-size: 11px; padding-inline: 12px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tool-card { padding: 16px; min-height: 224px; }
  .card-top { gap: 4px; }
  .tool-icon { width: 35px; height: 37px; border-radius: 8px; }
  .tool-icon .icon { width: 20px; height: 20px; }
  .badge { font-size: 7px; padding-inline: 4px; }
  .tool-card h3 { font-size: 14px; }
  .tool-card p { font-size: 11px; }
  .tool-open { min-height: 44px; }
  .tool-grid > .empty { grid-column: 1 / -1; }
  .trial-strip { padding: 19px; }
  .trial-strip p { line-height: 1.8; font-size: 11px; }
  .how-grid { gap: 24px; }
  .panel { padding: 21px; }
  .workspace { padding-top: 20px; }
  .sidebar { display: flex; gap: 12px; overflow: visible; justify-content: space-between; align-items: flex-end; padding: 0 0 19px; margin-bottom: 25px; }
  .workspace-links { display: none; }
  .workspace-selector { display: grid; gap: 7px; font-size: 10px; font-weight: 600; letter-spacing: .02em; min-width: 0; flex: 1; }
  .workspace-selector select { width: 100%; min-width: 0; height: 45px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding-inline: 12px; }
  .sidebar #logout { border: 1px solid var(--line); border-radius: 8px; margin: 0; min-height: 45px; padding: 8px 13px; color: var(--muted); }
  .page-head { flex-wrap: wrap; gap: 14px; }
  .page-head h1 { font-size: 28px; }
  .page-head p { font-size: 12px; }
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .balance .amount { font-size: clamp(26px, 8vw, 40px); }
  .balance { overflow-x: auto; }
  .panel > .flex.spaced { flex-wrap: wrap; }

  .auth-title { font-size: 26px; }
  .auth-tabs .button { min-height: 44px; }
  #toast { inset: auto 16px calc(16px + env(safe-area-inset-bottom)) 16px; max-width: none; width: auto; font-size: 12px; }
  .footer-inner > div:last-child { flex-wrap: wrap; gap: 16px; line-height: 2; }
}
@media (pointer: coarse) {
  input, textarea, select, .form input, .form textarea, .form select, .search input, .workspace-selector select { font-size: 16px; }
  .text-link { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .button:active, .filter:active, .desk-shortcuts a:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {

  .desk-shortcuts a { background: var(--surface); }
}
@media (prefers-contrast: more) {
  :root { --line: #60766d; --muted: #344f48; }
  button, input, select, textarea, .tool-card, .panel { border-color: currentColor; }
}
