@charset "UTF-8";

:root {
  --paper: #f6f5f0;
  --surface: #ffffff;
  --ink: #192b3b;
  --muted: #6d777c;
  --line: #e4e6e0;
  --accent: #d94e30;
  --accent-soft: #fff0e8;
  --good: #246b4f;
  --good-soft: #eaf4ec;
  --warning: #865e1f;
  --warning-soft: #faf2df;
  --danger: #a63d38;
  --danger-soft: #fbece9;
  --radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, .button, select, summary { cursor: pointer; }
button:disabled, input:disabled { cursor: not-allowed; opacity: .6; }
:focus-visible { outline: 3px solid #e77959; outline-offset: 4px; }
img, video, canvas { max-width: 100%; height: auto; }
img, video { border-radius: 10px; }
svg { flex-shrink: 0; }
form, p, ul, ol, dl { margin: 0; }
p, li { line-height: 1.65; }
p + p { margin-top: .8rem; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.2; letter-spacing: -.035em; }
h1 { font-size: clamp(1.9rem, 3.3vw, 2.75rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; letter-spacing: -.015em; }
small { font-size: .8rem; }
hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
pre { padding: 1rem; background: var(--paper); border-radius: 10px; overflow: auto; max-width: 100%; }
code { overflow-wrap: anywhere; }
::selection { background: #f9ccae; color: var(--ink); }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px 18px; z-index: 100; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; color: white; }

.workspace { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { background: #fbfbf8; border-right: 1px solid var(--line); padding: 35px 20px 24px; display: flex; flex-direction: column; gap: 0; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -.075em; }
.brand:hover { color: var(--ink); }
.brand-mark, .brand-dot { color: var(--accent); }
.brand-dot { margin-left: 1px; }
.sidebar .brand { margin-left: 10px; }
.sidebar-label { margin: 44px 12px 13px; color: var(--muted); font-size: .69rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.workspace-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: #657079; font-size: .91rem; font-weight: 500; transition: background .16s, color .16s; }
.nav-link:hover { background: #eeeee7; color: var(--ink); }
.nav-link.active { background: var(--ink); color: #fff; }
.nav-number { font-size: .67rem; line-height: 1; font-variant-numeric: tabular-nums; opacity: .65; }
.nav-link.active .nav-number { color: #f6a47d; opacity: 1; }
.sidebar-footer { margin-top: auto; padding: 48px 12px 0; display: flex; flex-direction: column; gap: 13px; }
.sidebar-footer .eyebrow { font-size: .63rem; letter-spacing: .08em; }
.sidebar-footer a { font-size: .83rem; text-decoration: none; }
.sidebar-signature { color: #939b9e; font-size: .72rem; }
.workspace-body { min-width: 0; display: flex; flex-direction: column; }
.workspace-header, .public-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 98px; padding: 20px 42px; }
.workspace-header { border-bottom: 1px solid var(--line); }
.header-caption { display: flex; align-items: center; gap: 9px; font-size: .78rem; color: var(--muted); }
.header-dot { height: 6px; width: 6px; background: var(--accent); border-radius: 50%; }
.header-nav { display: flex; align-items: center; justify-content: flex-end; gap: 20px; flex-wrap: wrap; min-width: 0; }
.header-nav > a:not(.button) { font-size: .87rem; text-decoration: none; }
.account-email { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; color: var(--muted); }
.signout-form { flex-shrink: 0; }
.main-content { width: 100%; max-width: 1600px; padding: 36px 42px 48px; margin: 0 auto; flex: 1; min-width: 0; }
.site-footer { padding: 20px 42px 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; color: #8b9397; font-size: .73rem; }
.site-footer > span:first-child { color: var(--ink); font-weight: 650; }
.public-body { min-height: 100dvh; display: flex; flex-direction: column; }
.public-header, .public-content, .public-body > .site-footer { width: 100%; max-width: 1220px; margin-inline: auto; }
.public-header { min-height: 104px; }
.public-content { padding-top: 38px; }

.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; min-width: 0; }
.page-header > :first-child { min-width: 0; }
.page-header h1 + p, .page-header h2 + p { margin-top: 10px; color: var(--muted); max-width: 680px; }
.eyebrow { display: block; font-size: .69rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); line-height: 1.5; }
.eyebrow + h1, .eyebrow + h2 { margin-top: 9px; }
.muted { color: var(--muted); }
.money, .stat-value { font-variant-numeric: tabular-nums; }
.money { white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.actions form { display: inline-flex; }
.grid { display: grid; gap: 22px; min-width: 0; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > *, .stats > * { min-width: 0; }
.card { padding: 25px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); min-width: 0; }
.card > h2, .card > h3 { margin-bottom: 17px; }
.card > .page-header { margin-bottom: 20px; align-items: center; }
.card > .page-header h2, .card > .page-header h3 { margin-bottom: 0; }
.card p, .card li, .card dd { overflow-wrap: anywhere; }
.card ul, .card ol { padding-left: 1.25rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 23px 22px 21px; min-width: 0; }
.stat > :first-child:not(.stat-value) { color: var(--muted); font-size: .81rem; }
.stat-value { display: block; font-size: clamp(1.7rem, 2.7vw, 2.35rem); line-height: 1.2; font-weight: 600; letter-spacing: -.055em; margin: 12px 0 9px; overflow-wrap: anywhere; }
.stat small { color: var(--muted); line-height: 1.5; display: block; }
.stat.accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat.accent > :first-child:not(.stat-value), .stat.accent small { color: #bac7cd; }

.button, input[type="submit"], button:not([class]) { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 42px; padding: 10px 15px; border: 1px solid #d8dedb; border-radius: 9px; background: #fff; color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 550; line-height: 1.35; text-align: center; transition: background .16s, border-color .16s; }
.button:hover, input[type="submit"]:hover, button:not([class]):hover { color: var(--ink); background: #f1f3ee; border-color: #c4cec7; }
.button.primary, input[type="submit"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover, input[type="submit"]:hover { background: #bf4226; border-color: #bf4226; color: #fff; }
.button.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.button.quiet:hover { background: #eaece6; color: var(--ink); }
.button.danger { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.button.danger:hover { background: #f5dcd6; }
.badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; border-radius: 6px; padding: 5px 8px; background: #eff1ed; color: #64716b; font-size: .69rem; font-weight: 600; line-height: 1.35; white-space: normal; }
.badge.good { color: var(--good); background: var(--good-soft); }
.badge.warning { color: var(--warning); background: var(--warning-soft); }
.badge.danger { color: var(--danger); background: var(--danger-soft); }
.badge.neutral { color: #586776; background: #edf0f3; }

.table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; text-align: left; }
th { padding: 0 14px 13px; font-size: .69rem; font-weight: 600; color: var(--muted); text-align: left; letter-spacing: .025em; border-bottom: 1px solid var(--line); vertical-align: bottom; }
td { padding: 17px 14px; border-bottom: 1px solid #eef0eb; line-height: 1.5; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
td a { font-weight: 550; text-decoration: none; }
td a:hover { text-decoration: underline; }
td small { display: block; color: var(--muted); font-size: .72rem; margin-top: 4px; }
td .actions { gap: 6px; }
td .button { min-height: 34px; padding: 7px 10px; font-size: .74rem; }
th.numeric, td.numeric { text-align: right; font-variant-numeric: tabular-nums; }
caption { text-align: left; color: var(--muted); padding-bottom: 16px; line-height: 1.5; }
.empty-state { padding: 48px 22px; text-align: center; max-width: 600px; margin-inline: auto; }
.empty-state h2, .empty-state h3 { margin-bottom: 10px; }
.empty-state p { color: var(--muted); max-width: 460px; margin-inline: auto; }
.empty-state .button, .empty-state .actions { margin-top: 22px; }
.empty-state .actions { justify-content: center; }

.field { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; }
.field > label, label.field { font-size: .82rem; font-weight: 550; }
.field > small, .field > .muted { font-size: .75rem; font-weight: 400; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid > .full { grid-column: 1 / -1; }
form > .field + .field { margin-top: 20px; }
form > .actions { margin-top: 25px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]), textarea, select { display: block; width: 100%; min-width: 0; min-height: 45px; border: 1px solid #d6dcd5; border-radius: 8px; padding: 11px 12px; background: #fff; color: var(--ink); line-height: 1.45; }
textarea { min-height: 125px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9ba29d; opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 0; }
legend { font-weight: 600; font-size: .85rem; padding: 0 7px; }
.field_with_errors { display: contents; }
.field_with_errors input, .field_with_errors textarea, .field_with_errors select { border-color: var(--danger); }
.error-summary { background: var(--danger-soft); color: #873a34; padding: 18px 21px; border-radius: 10px; margin-bottom: 22px; font-size: .88rem; }
.error-summary h2 { font-size: 1rem; margin-bottom: 8px; }
.error-summary ul { padding-left: 20px; }
.flash { padding: 15px 19px; margin-bottom: 25px; background: var(--good-soft); color: var(--good); border-radius: 10px; font-size: .88rem; line-height: 1.55; overflow-wrap: anywhere; }
.flash-alert, .flash-error { background: var(--danger-soft); color: var(--danger); }

.progress-track { height: 7px; background: #ecefe8; border-radius: 99px; overflow: hidden; width: 100%; }
.progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: inherit; }
.progress-fill.good { background: var(--good); }
.chart { display: flex; align-items: flex-end; gap: 8px; min-height: 150px; padding-top: 20px; min-width: 0; }
.bar { flex: 1; min-width: 0; max-width: 58px; background: var(--accent); border-radius: 5px 5px 0 0; min-height: 3px; position: relative; }
.bar.secondary { background: #8aa99a; }
.bar-label { display: block; font-size: .68rem; color: var(--muted); text-align: center; margin-top: 8px; }
.timeline { list-style: none; padding: 0; display: flex; flex-direction: column; }
.timeline > li { position: relative; padding: 0 0 24px 25px; border-left: 1px solid var(--line); margin-left: 4px; font-size: .86rem; }
.timeline > li::before { position: absolute; content: ""; width: 9px; height: 9px; top: 6px; left: -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #fff; }
.timeline > li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline time, .timeline small { display: block; font-size: .73rem; color: var(--muted); margin-top: 4px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: var(--muted); margin-bottom: 22px; line-height: 1.5; }
.breadcrumbs a { text-decoration: none; }
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.checklist > li { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; }
.checklist input { margin-top: 4px; }
.checklist label { flex: 1; }
.funnel { display: flex; flex-direction: column; gap: 15px; }
.funnel-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; font-size: .82rem; }
.funnel-step .progress-track { grid-column: 1 / -1; }
dl { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0, 1fr); gap: 13px 20px; font-size: .87rem; }
dt { color: var(--muted); line-height: 1.6; }
dd { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }

@media (min-width: 1400px) {
  .main-content { padding-top: 44px; }
  .workspace-header, .main-content, .site-footer { padding-inline: 48px; }
}
@media (max-width: 1100px) {
  .workspace { grid-template-columns: 205px minmax(0, 1fr); }
  .sidebar { padding-inline: 14px; }
  .workspace-header, .main-content, .site-footer { padding-inline: 27px; }
  .header-caption { max-width: 180px; line-height: 1.5; }
  .header-nav { gap: 12px; }
  .account-email { max-width: 175px; }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 21px; }
}
@media (max-width: 800px) {
  .workspace { display: block; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 22px 16px; }
  .sidebar .brand { margin-left: 0; font-size: 1.85rem; }
  .sidebar .brand-mark { width: 31px; height: 31px; }
  .sidebar-label { margin: 20px 0 9px; font-size: .62rem; }
  .workspace-nav { flex-direction: row; flex-wrap: wrap; gap: 5px; }
  .nav-link { padding: 8px 11px; min-height: 38px; font-size: .8rem; gap: 0; }
  .nav-number { display: none; }
  .sidebar-footer { display: none; }
  .workspace-header { min-height: 72px; padding: 15px 22px; }
  .header-caption { max-width: none; font-size: .72rem; }
  .workspace-header .header-nav { flex-wrap: nowrap; gap: 8px; }
  .account-email { max-width: 170px; }
  .workspace-header .button { min-height: 36px; padding: 7px 9px; font-size: .77rem; }
  .main-content { padding: 28px 22px 38px; }
  .page-header { margin-bottom: 24px; gap: 18px; align-items: flex-start; }
  .stats { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px; }
  .grid { gap: 17px; }
  .grid.two { grid-template-columns: minmax(0, 1fr); }
  .site-footer { padding: 18px 22px 24px; }
  .public-header { padding: 20px 22px; min-height: 90px; }
  .public-header .header-nav { gap: 14px; }
  .public-header .account-email { display: none; }
  .public-content { padding-top: 22px; }
}
@media (max-width: 540px) {
  .sidebar { padding: 20px 16px 14px; }
  .workspace-header { padding-inline: 16px; flex-wrap: wrap; gap: 10px; }
  .header-caption { max-width: none; font-size: .68rem; line-height: 1.5; }
  .workspace-header .header-nav { margin-left: auto; max-width: 100%; }
  .account-email { max-width: 135px; font-size: .71rem; }
  .header-nav { gap: 10px; }
  .public-header { padding-inline: 16px; flex-wrap: wrap; }
  .public-header .brand { font-size: 1.8rem; }
  .public-header .brand-mark { width: 31px; height: 31px; }
  .public-header .header-nav { gap: 12px; }
  .public-header .header-nav > a { font-size: .79rem; }
  .public-header .button { padding: 8px 10px; min-height: 39px; }
  .main-content { padding: 26px 16px 30px; }
  .page-header { flex-direction: column; align-items: stretch; gap: 18px; }
  .page-header > .actions { align-self: flex-start; }
  .page-header h1 + p { font-size: .87rem; }
  .card { padding: 19px 17px; border-radius: 13px; }
  .card > .page-header { gap: 12px; }
  .stats { gap: 10px; margin-bottom: 22px; }
  .stat { padding: 18px 15px; border-radius: 13px; }
  .stat > :first-child:not(.stat-value) { font-size: .74rem; }
  .stat-value { font-size: 1.8rem; margin-block: 10px 6px; }
  .stat small { font-size: .7rem; }
  .grid.three, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .stack { gap: 20px; }
  .form-grid { gap: 18px; }
  .form-grid > .full { grid-column: auto; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]), textarea, select { font-size: 16px; }
  .button, input[type="submit"], button:not([class]) { min-height: 44px; }
  .nav-link { min-height: 42px; padding-inline: 10px; font-size: .76rem; }
  .site-footer { padding-inline: 16px; font-size: .69rem; }
  .empty-state { padding: 33px 8px; }
  dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  dd + dt { margin-top: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.result-text { white-space: pre-wrap; overflow-wrap: anywhere; } pre { overflow: auto; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; } .login-card { max-width: 34rem; margin-inline: auto; }

.page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
.page-header h1 { max-width: 920px; }
.page-header > p { max-width: 760px; }
.main-content > .card + .card, .main-content > .grid + .card, .main-content > .card + .grid { margin-top: 24px; }
