/* YetiPoll theme. Mobile first; wider layouts are added in the media queries. */

@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
    --night: #0B1730;
    --night-soft: #14254A;
    --ice: #7CCBF2;
    --glacier: #3FA5E0;
    --deep: #2B86C4;
    --fjord: #1B6CA8;
    --frost: #A9DEF8;
    --shade: #CBE7F7;
    --snow: #EEF5FA;
    --white: #FFFFFF;
    --muted: #44536E;
    --line: #D3E2EC;
    --ok: #11734B;
    --ok-bg: #E2F5EC;
    --warn: #7A4F00;
    --warn-bg: #FFF1D1;
    --danger: #B4232F;
    --danger-bg: #FDE7E9;
    --radius: 14px;
    --radius-small: 9px;
    --gutter: 20px;
    --width: 1120px;
    --display: "Unbounded", "Arial Black", system-ui, sans-serif;
    --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--night); background: var(--snow); }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 6.2vw, 3.3rem); }
h2 { font-size: clamp(1.45rem, 4.4vw, 2.1rem); }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--fjord); text-underline-offset: 3px; }
a:hover { color: var(--night); }
:focus-visible { outline: 3px solid var(--glacier); outline-offset: 2px; border-radius: 4px; }
code, pre, kbd { font-family: var(--mono); font-size: 0.88em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border: 2px solid var(--night); border-radius: 999px; background: var(--white); color: var(--night); font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--snow); color: var(--night); }
.btn--primary { background: var(--night); color: var(--white); }
.btn--primary:hover { background: var(--night-soft); color: var(--white); }
.btn--ice { background: var(--ice); border-color: var(--ice); color: var(--night); }
.btn--ice:hover { background: var(--frost); border-color: var(--frost); }
.btn--danger { border-color: var(--danger); color: var(--danger); }
.btn--small { min-height: 38px; padding: 6px 16px; font-size: 0.94rem; }
.btn--link { border: 0; background: none; padding: 0; min-height: 0; color: var(--fjord); text-decoration: underline; border-radius: 4px; font-weight: 600; }
.btn--link:hover { background: none; color: var(--night); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 1.25rem 0; }
.actions__form { display: inline; }

/* Public header */
.site-header { background: var(--night); color: var(--white); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--night-soft); }
.nav { max-width: var(--width); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 20px; }
.nav__brand { display: inline-flex; flex: none; }
.nav__brand img { width: 138px; height: auto; display: block; }
.nav__toggle { display: none; cursor: pointer; font: 700 0.95rem var(--body); padding: 8px 18px; border: 2px solid var(--ice); border-radius: 999px; background: transparent; color: var(--white); }
.nav__panel { flex-basis: 100%; display: grid; gap: 14px; padding: 14px 0 10px; }
.nav--js .nav__toggle { display: inline-flex; }
.nav--js .nav__panel { display: none; }
.nav--js.nav--open .nav__panel { display: grid; }
.nav__list { list-style: none; margin: 0; padding: 0; display: grid; }
.nav__link { display: block; padding: 13px 2px; color: var(--white); font-weight: 600; font-size: 1.08rem; text-decoration: none; border-bottom: 1px solid var(--night-soft); }
.nav__link:hover { color: var(--ice); }
.nav__link--active { color: var(--ice); }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__signin { color: var(--white); font-weight: 700; text-decoration: none; }
.nav__signin:hover { color: var(--ice); }

/* Public layout */
.layout--default .layout__main, .layout--docs .docs { min-height: 60vh; }
.wrap { max-width: var(--width); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.band { padding-top: 56px; padding-bottom: 56px; }
.band--white { background: var(--white); }
.band--night { background: var(--night); color: var(--white); }
.band--night a:not(.btn) { color: var(--ice); }
.band--night a:not(.btn):hover { color: var(--white); }
.band--night h1, .band--night h2 { color: var(--white); }
.band--frost { background: var(--shade); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.band--night .lead { color: var(--frost); }
.kicker { font-weight: 700; color: var(--fjord); margin: 0 0 0.6rem; }
.band--night .kicker { color: var(--ice); }
.mark-ice { color: var(--ice); }

.hero { display: grid; gap: 36px; align-items: center; }
.hero__copy h1 { margin-bottom: 0.45em; }
.hero__aside { position: relative; margin-top: 58px; }
.hero__yeti { width: 112px; position: absolute; right: 8px; top: -78px; }
.hero__note { font-size: 0.95rem; color: var(--frost); margin: 0.9rem 0 0; }

/* The wall preview on marketing pages (a still of the real wall) */
.preview { background: var(--white); color: var(--night); border-radius: 20px; padding: 16px; border: 3px solid var(--ice); }
.preview__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 6px 12px; }
.preview__title { font: 800 1.05rem var(--display); margin: 0; }
.preview__tag { font-size: 0.85rem; color: var(--muted); margin: 10px 6px 0; }
.preview__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.preview__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; background: var(--snow); border-radius: 12px; }
.preview__name { font-weight: 700; }
.preview__meta { grid-column: 1; font-size: 0.9rem; color: var(--muted); }
.preview__reward { grid-row: 1 / span 2; grid-column: 2; background: var(--night); color: var(--white); font-weight: 700; padding: 8px 14px; border-radius: 999px; font-size: 0.95rem; white-space: nowrap; }

.split { display: grid; gap: 32px; align-items: start; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.points__item { padding-left: 18px; border-left: 4px solid var(--glacier); }
.points__item h3 { margin-bottom: 0.3em; }
.points__item p { margin: 0; color: var(--muted); }
.band--night .points__item p { color: var(--frost); }

/* The four integration ways */
.ways { list-style: none; margin: 28px 0 0; padding: 0; border-top: 2px solid var(--night); }
.ways__item { display: grid; gap: 6px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ways__name { font: 800 1.35rem var(--display); margin: 0; }
.ways__fit { font-weight: 700; color: var(--fjord); margin: 0; }
.ways__text { margin: 0; color: var(--muted); }
.ways__more { font-weight: 700; }
.flag { display: inline-block; background: var(--ice); color: var(--night); font: 700 0.8rem var(--body); padding: 3px 10px; border-radius: 999px; vertical-align: middle; margin-left: 8px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.chips li { border: 2px solid currentColor; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.95rem; }

.months { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.months__item { background: var(--white); border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); }
.months__when { font-weight: 700; color: var(--fjord); margin: 0 0 4px; }
.months__item p:last-child { margin: 0; }

.faq { margin: 24px 0 0; border-top: 2px solid var(--night); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 34px 18px 0; font-weight: 700; font-size: 1.05rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 700 1.5rem var(--body); color: var(--fjord); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); max-width: 70ch; }

.faq--flush { margin-top: 0; }
.steps { margin: 0; padding-left: 1.4em; display: grid; gap: 14px; font-size: 1.08rem; }
.steps li { padding-left: 6px; }
.steps li::marker { font-weight: 700; color: var(--fjord); }
.more-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; font-weight: 700; }
.next { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--night); }
.next li { border-bottom: 1px solid var(--line); }
.next a { display: block; padding: 16px 0; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.next a:hover { text-decoration: underline; }
.fineprint { color: var(--muted); font-size: 0.9rem; margin: 20px 0 0; }
.versus-wrap { margin-top: 28px; }
.versus { width: 100%; border-collapse: collapse; }
.versus thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.versus tr { display: block; padding: 18px 0; border-top: 1px solid var(--line); }
.versus tbody tr:first-child { border-top: 2px solid var(--night); }
.versus th { text-align: left; }
.versus tbody th { display: block; font-size: 1.1rem; margin-bottom: 8px; }
.versus td { display: block; padding: 6px 0; color: var(--muted); }
.versus td::before { content: attr(data-label); display: block; font-weight: 700; font-size: 0.85rem; }
.versus td.versus__ours { color: var(--night); font-weight: 600; border-left: 4px solid var(--glacier); padding-left: 14px; margin-top: 6px; }

.closing { display: grid; gap: 20px; align-items: center; justify-items: start; }
.closing img { width: 120px; }

.site-footer { background: #071024; color: #B9CBE3; padding: 56px var(--gutter) 0; border-top: 4px solid var(--ice); }
.site-footer__inner { max-width: var(--width); margin: 0 auto; display: grid; gap: 36px; }
.site-footer__brand img { width: 150px; display: block; }
.site-footer__slogan { font: 800 1.35rem var(--display); color: var(--white); margin: 18px 0 8px; }
.site-footer__text { margin: 0 0 18px; max-width: 38ch; }
.site-footer__heading { font: 700 0.95rem var(--display); color: var(--white); margin: 0 0 14px; }
.site-footer__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__link { color: #B9CBE3; text-decoration: none; }
.site-footer__link:hover { color: var(--white); text-decoration: underline; }
.site-footer__bar { max-width: var(--width); margin: 44px auto 0; padding: 22px 0 28px; border-top: 1px solid #1A2A4F; font-size: 0.88rem; color: #8FA5C4; display: grid; gap: 6px; }
.site-footer__bar p { margin: 0; }

/* Long-form text: legal pages, docs */
.prose { max-width: 76ch; }
.prose h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; }
.prose :not(pre) > code { background: var(--shade); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.note { background: var(--white); border-left: 4px solid var(--glacier); padding: 14px 18px; border-radius: 0 var(--radius-small) var(--radius-small) 0; margin: 1.2em 0; }
.note p:last-child { margin: 0; }

.code { position: relative; margin: 1em 0 1.5em; }
.code pre { margin: 0; background: var(--night); color: #E6F3FB; padding: 44px 18px 18px; border-radius: var(--radius); overflow-x: auto; font-size: 0.86rem; line-height: 1.55; tab-size: 4; }
.code__copy { position: absolute; top: 8px; right: 8px; background: var(--night-soft); color: var(--white); border: 1px solid #2B4273; border-radius: 8px; padding: 4px 12px; font: 600 0.82rem var(--body); cursor: pointer; }
.code__copy:hover { background: #1E3566; }

.docs { max-width: var(--width); margin: 0 auto; padding: 24px var(--gutter) 64px; display: grid; gap: 24px; }
.docs__nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.docs__heading { display: none; }
.docs__link { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--night); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.docs__link--active { background: var(--night); border-color: var(--night); color: var(--white); }
.docs__main { min-width: 0; }
.plugin-get { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 1em 0 0.5em; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.plugin-get__label { font-weight: 600; }
.plugin-get__select { flex: 1 1 180px; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--white); color: var(--night); font: inherit; }
.plugin-get__note { color: var(--muted); font-size: 0.92rem; }

/* Page furniture shared by the template's own views */
.layout__main { padding: 0; }
.layout--app .layout__main, .layout--auth .layout__main { padding: 22px var(--gutter) 56px; min-width: 0; }
.page { max-width: var(--width); margin: 0 auto; }
.layout--default .page { padding: 40px var(--gutter) 64px; }
.page--error { text-align: center; padding-top: 80px; }

/* Error pages: the status, with the yeti standing in for every 0, on a night of snow */
.oops { position: relative; overflow: hidden; background: var(--night); color: var(--white); text-align: center; padding: 48px var(--gutter) 150px; }
.oops::before, .oops::after { content: ""; position: absolute; bottom: -120px; height: 200px; border-radius: 50%; }
.oops::before { left: -22%; width: 82%; background: var(--shade); }
.oops::after { right: -28%; width: 98%; background: var(--snow); }
.oops__inner { position: relative; z-index: 1; max-width: 660px; margin: 0 auto; }
.oops__code { display: flex; justify-content: center; align-items: center; margin: 0 0 14px; font: 800 clamp(5.2rem, 28vw, 10.5rem)/1 var(--display); letter-spacing: -0.03em; color: var(--ice); }
.oops__yeti { flex: none; width: 0.92em; height: auto; margin: 0 0.02em; transform-origin: 50% 60%; }
.oops__yeti--above { display: block; width: 112px; margin: 0 auto 6px; }
.oops__art { display: block; width: min(280px, 72vw); height: auto; margin: 0 auto 6px; }
.oops--tea .oops__code { font-size: clamp(3.6rem, 18vw, 6rem); margin-bottom: 10px; }
.oops--tilt .oops__yeti:last-of-type { transform: rotate(-11deg); }
.oops--fallen .oops__yeti:last-of-type { transform-origin: 50% 50%; transform: rotate(168deg); }
.oops--fallen .oops__code { margin-bottom: 22px; }
.oops .oops__title { color: var(--white); font-size: clamp(1.55rem, 6vw, 2.5rem); margin: 0 0 12px; }
.oops .oops__line { color: var(--frost); max-width: 54ch; margin: 0 auto; }
.oops__detail { max-width: 100%; margin: 18px auto 0; padding: 12px 14px; border: 1px solid var(--night-soft); border-radius: var(--radius-small); background: #071022; color: var(--frost); text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; }
.oops__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; margin-top: 26px; }
.oops__actions a:not(.btn) { color: var(--ice); font-weight: 600; }
.oops__actions a:not(.btn):hover { color: var(--white); }
.oops__search { margin: 30px auto 0; max-width: 460px; }
.oops__label { display: block; margin-bottom: 8px; color: var(--frost); font-size: 0.95rem; }
.oops__row { display: flex; flex-wrap: wrap; gap: 10px; }
.oops__input { flex: 1 1 200px; min-width: 0; min-height: 46px; padding: 10px 14px; border: 2px solid var(--night-soft); border-radius: var(--radius-small); background: var(--white); color: var(--night); font: inherit; }
.oops__input:focus { border-color: var(--ice); outline: none; }
.oops__row .btn { border-color: var(--white); }
@media (prefers-reduced-motion: no-preference) {
    .oops--tilt .oops__yeti:last-of-type { animation: oops-look 6s ease-in-out infinite; }
}
@keyframes oops-look {
    0%, 38%, 100% { transform: rotate(-11deg); }
    50%, 88% { transform: rotate(9deg); }
}
@media (min-width: 720px) {
    .oops { padding-top: 72px; padding-bottom: 190px; }
    .oops::before, .oops::after { height: 260px; bottom: -150px; }
}
.page__header { margin-bottom: 22px; }
.page__title { font-size: clamp(1.5rem, 5vw, 2.1rem); margin: 0 0 0.3em; }
.page__lead { color: var(--muted); margin: 0; max-width: 70ch; }
.section { margin: 30px 0; }
.section__title { font-size: 1.15rem; margin: 0 0 0.6em; }
.section__text { color: var(--muted); max-width: 70ch; }
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }

.alerts { max-width: var(--width); margin: 0 auto 18px; display: grid; gap: 8px; }
.layout--default .alerts { padding: 16px var(--gutter) 0; margin-bottom: 0; }
.alert { padding: 12px 16px; border-radius: var(--radius-small); font-weight: 600; background: var(--white); border: 1px solid var(--line); }
.alert--success { background: var(--ok-bg); border-color: #A9DDC3; color: var(--ok); }
.alert--warning { background: var(--warn-bg); border-color: #EBCB7C; color: var(--warn); }
.alert--danger { background: var(--danger-bg); border-color: #F0B2B8; color: var(--danger); }
.alert--info { background: var(--shade); border-color: var(--frost); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card--link { display: block; color: inherit; text-decoration: none; }
.card--link:hover { border-color: var(--glacier); color: inherit; }
.card__title { font-size: 1.02rem; margin: 0 0 0.35em; }
.card__text { color: var(--muted); margin: 0; font-size: 0.97rem; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 18px 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 0 0 16px; min-width: 0; }
.panel > h2 { margin-bottom: 0.8em; }
.panel--flush { padding: 0; overflow: hidden; }
.panel--flush > h2 { padding: 16px 20px 12px; margin: 0; }
.panel--flush .table th:first-child, .panel--flush .table td:first-child { padding-left: 20px; }
.panel--flush .table th:last-child, .panel--flush .table td:last-child { padding-right: 20px; }
.panel__foot { padding: 11px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; margin: 0; }


.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.table th { font-weight: 600; color: var(--muted); font-size: 0.84rem; padding-top: 9px; padding-bottom: 9px; }
.table tbody tr:hover td { background: #F7FBFE; }
.table tr:last-child td { border-bottom: 0; }
.table td.wrap-cell, .table--checks td { white-space: normal; overflow-wrap: anywhere; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table__pre { font-family: var(--mono); font-size: 0.82rem; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.empty { padding: 28px 20px; color: var(--muted); text-align: center; margin: 0; }

.badge, .tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; background: var(--shade); color: var(--night); }
.badge--on, .tag--grant, .badge--credited, .badge--delivered, .badge--paid, .badge--active, .badge--completed { background: var(--ok-bg); color: var(--ok); }
.badge--off, .badge--carried, .badge--paused, .badge--screenout, .badge--test { background: #E7EBF1; color: var(--muted); }
.badge--fail, .tag--deny, .badge--reversed, .badge--failed, .badge--rejected, .badge--suspended { background: var(--danger-bg); color: var(--danger); }
.badge--pending, .badge--open { background: var(--warn-bg); color: var(--warn); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 14px; flex-wrap: wrap; }
.pagination a, .pagination__current { padding: 6px 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-weight: 600; }
.pagination__current { background: var(--night); color: var(--white); border-color: var(--night); }

.datalist { margin: 0; display: grid; gap: 0; }
.datalist__row { display: grid; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.datalist__row:last-child { border-bottom: 0; }
.datalist__key { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.datalist__value { margin: 0; overflow-wrap: anywhere; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 560px; }
.form--wide { max-width: 760px; }
.form > .btn { justify-self: start; }
.form--inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; max-width: none; }
.form--inline .field { flex: 1 1 160px; }
.field { display: grid; gap: 6px; align-content: start; }
.field__label { font-weight: 700; font-size: 0.95rem; }
.field__input, select.field__input, textarea.field__input { width: 100%; min-height: 46px; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius-small); background: var(--white); color: var(--night); font: inherit; }
.field__input:focus { border-color: var(--glacier); outline: none; }
.field__hint { color: var(--muted); font-size: 0.9rem; margin: 0; }
.field__error { color: var(--danger); font-size: 0.9rem; margin: 0; font-weight: 600; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--fjord); }
.field-row { display: grid; gap: 16px; }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.fieldset legend { font: 700 1.05rem var(--display); padding: 0; margin-bottom: 4px; }
.captcha { min-height: 66px; }
.secret, .qr, .qr-code { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-small); padding: 12px; overflow-wrap: anywhere; }
.qr svg, .qr-code svg { width: 200px; height: 200px; display: block; }
.code-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-family: var(--mono); }
.code-list__item { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; text-align: center; }
.log { font-family: var(--mono); font-size: 0.82rem; background: var(--night); color: #E6F3FB; padding: 14px; border-radius: var(--radius-small); overflow-x: auto; white-space: pre-wrap; }

/* Sign-in pages */
.layout--auth { background: var(--night); }
.layout__main--centered { min-height: 100vh; display: grid; place-items: center; }
.auth { width: 100%; max-width: 440px; display: grid; gap: 18px; justify-items: center; }
.auth__brand img { width: 132px; display: block; }
.card--auth { width: 100%; padding: 24px; border: 0; }
.card--auth .page__title { font-size: 1.45rem; }
.card--auth .btn--primary { width: 100%; }
.card__brand { display: none; }



.head-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.head-row .page__title { margin: 0; }
.crumb { font-size: 0.93rem; margin: 0 0 8px; color: var(--muted); }



.keys { display: grid; gap: 14px; }
.key { display: grid; gap: 6px; }
.key__label { font-weight: 700; font-size: 0.95rem; }
.key__row { display: flex; gap: 8px; align-items: stretch; }
.key__value { flex: 1; min-width: 0; font-family: var(--mono); font-size: 0.86rem; background: var(--snow); border: 1px solid var(--line); border-radius: var(--radius-small); padding: 11px 12px; overflow-x: auto; white-space: nowrap; }
.key__value--masked { color: transparent; text-shadow: 0 0 9px rgba(11, 23, 48, 0.75); user-select: none; }
.key__hint { color: var(--muted); font-size: 0.9rem; margin: 0; }

.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 14px; padding-bottom: 4px; }
.tabs__tab { flex: none; padding: 6px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--white); color: var(--night); text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.tabs__tab:hover { border-color: var(--glacier); color: var(--night); }
.tabs--tight { margin: 0; padding: 0; }
.tabs__tab--on { background: var(--night); border-color: var(--night); color: var(--white); }

.methods { display: grid; gap: 10px; }
.method { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.method:has(> .method__pick input:checked) { border-color: var(--night); }
.method__pick { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.method__pick input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--fjord); }
.method__name { font-weight: 700; display: block; }
.method__blurb { color: var(--muted); font-size: 0.93rem; }
.method__fields { display: none; padding: 14px 0 4px; gap: 14px; }
.method:has(> .method__pick input:checked) .method__fields { display: grid; }

.wallframe { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }

.invoice { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 820px; }
.invoice__top { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.invoice__logo { width: 150px; }
.invoice__parties { display: grid; gap: 18px; margin-bottom: 22px; }
.invoice__party p { margin: 0; }
.invoice__role { color: var(--muted); font-weight: 700; font-size: 0.88rem; }
.invoice__total td { font-weight: 800; font-size: 1.1rem; border-top: 2px solid var(--night); }

/* Brand page */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.swatch { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.swatch__chip { height: 76px; display: block; width: 100%; }
.swatch__body { padding: 10px 12px; font-size: 0.9rem; }
.swatch__name { font-weight: 700; display: block; }
.swatch__hex { font-family: var(--mono); }
.swatch__use { color: var(--muted); display: block; }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 18px 0; }
.asset { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.asset__stage { display: grid; place-items: center; padding: 22px; min-height: 150px; background: var(--snow); }
.asset__stage--dark { background: var(--night); }
.asset__stage img { max-height: 110px; width: auto; }
.asset__body { padding: 12px 14px; font-size: 0.93rem; }
.asset__name { font-weight: 700; display: block; }
.asset__note { color: var(--muted); display: block; margin-bottom: 6px; }
.asset__links { display: flex; gap: 12px; flex-wrap: wrap; font-weight: 700; }
.banners { display: grid; gap: 16px; margin: 18px 0; }
.banner { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; justify-items: start; }
.banner__art { max-width: 100%; overflow: hidden; }
.banner__art img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.banner--tall .banner__art img { max-height: 320px; width: auto; }
.banner__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: 0.93rem; }
.banner__size { font-weight: 700; font-family: var(--mono); }
.type-sample { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 14px 0; }
.type-sample__big { font: 800 clamp(2rem, 9vw, 4rem) var(--display); margin: 0; line-height: 1.05; }
.type-sample__body { font-size: 1.3rem; margin: 0; }
.rules { display: grid; gap: 14px; margin: 18px 0; }
.rules ul { margin: 0; padding-left: 1.2em; }

/* Dashboard additions */
.choice { display: grid; gap: 10px; }
.choice__item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius-small); cursor: pointer; }
.choice__item:has(input:checked) { border-color: var(--night); }
.choice__item input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--fjord); }
.choice__item .field__hint { display: block; }
.sheet .sheet__row--company, .only-company { display: none; }
form:has(input[name="account_type"][value="company"]:checked) .sheet__row--company { display: grid; }
form:has(input[name="account_type"][value="company"]:checked) .only-company { display: inline; }
form:has(input[name="account_type"][value="company"]:checked) .only-individual { display: none; }
.after-sheet { margin-top: 28px; }
.sheet__body > .form:not(.form--inline) { display: grid; gap: 16px; }
.datalist--stack .datalist__row { grid-template-columns: 1fr; }
.hero__kicker { display: block; font: 700 0.98rem/1.5 var(--body); letter-spacing: 0; text-transform: none; color: var(--ice); margin: 0 0 14px; }
.platforms { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 0; margin: 22px 0 0; }
.platforms li { background: var(--night-soft); color: var(--white); border-radius: 8px; padding: 6px 12px; font-weight: 600; font-size: 0.92rem; }
.legal h2 { counter-increment: clause; }
.legal { counter-reset: clause; }
.legal__toc { background: var(--snow); border-radius: var(--radius); padding: 18px 22px; margin: 1.5em 0 2em; }
.legal__toc ol { margin: 0; padding-left: 1.3em; columns: 2 240px; }
.legal__toc li { margin-bottom: 0.35em; }

@media (min-width: 720px) {
    :root { --gutter: 32px; }
    .band { padding-top: 84px; padding-bottom: 84px; }
    .nav { flex-wrap: nowrap; padding-top: 14px; padding-bottom: 14px; }
    .nav--js .nav__toggle { display: none; }
    .nav__panel, .nav--js .nav__panel { display: flex; align-items: center; justify-content: space-between; flex: 1; flex-basis: auto; padding: 0; gap: 20px; }
    .nav__list { display: flex; gap: 2px; margin-left: 14px; }
    .nav__link { padding: 9px 13px; border: 0; border-radius: 999px; font-size: 1rem; color: #D5E6F7; }
    .nav__link:hover { background: var(--night-soft); color: var(--white); }
    .nav__link--active, .nav__link--active:hover { background: var(--night-soft); color: var(--ice); }
    .hero { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
    .hero__aside { margin-top: 70px; }
    .hero__yeti { width: 150px; top: -104px; right: 18px; }
    .split { grid-template-columns: 1fr 1fr; gap: 56px; }
    .ways__item { grid-template-columns: 230px 1fr auto; align-items: baseline; }
    .ways__fit { grid-column: 1; }
    .ways__text { grid-column: 2; grid-row: 1 / span 2; }
    .ways__more { grid-column: 3; grid-row: 1 / span 2; }
    .months { grid-template-columns: repeat(3, 1fr); }
    .closing { grid-template-columns: auto 1fr auto; }
    .versus thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
    .versus tr { display: table-row; padding: 0; border: 0; }
    .versus th, .versus td, .versus tbody th { display: table-cell; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; margin: 0; font-size: 1rem; }
    .versus thead th { border-bottom: 2px solid var(--night); font: 700 0.95rem var(--display); }
    .versus td::before { content: none; }
    .versus td.versus__ours, .versus th.versus__ours { background: var(--white); border-left: 0; padding-left: 18px; padding-right: 18px; margin: 0; }
    .band--white .versus td.versus__ours, .band--white .versus th.versus__ours { background: var(--snow); }
    .site-footer__inner { grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
    .site-footer__brand { grid-column: 1 / -1; }
    .site-footer__bar { grid-template-columns: auto 1fr; gap: 24px; }
    .site-footer__bar p:last-child { text-align: right; }
    .field-row { grid-template-columns: 1fr 1fr; }
    .datalist__row { grid-template-columns: 220px 1fr; }
    .invoice__parties { grid-template-columns: 1fr 1fr; }
    .rules { grid-template-columns: 1fr 1fr; }
    .banners--box { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .banners--tall { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (min-width: 960px) {
    .site-footer__inner { grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
    .site-footer__brand { grid-column: auto; }
    .docs { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-top: 44px; }
    .docs__nav { flex-direction: column; overflow: visible; position: sticky; top: 96px; align-self: start; }
    .docs__heading { display: block; font: 800 1rem var(--display); margin: 0 0 8px; }
    .docs__link { background: none; border-color: transparent; border-radius: 9px; }
    .docs__link--active { background: var(--night); }


    .layout--auth .layout__main--centered { place-items: stretch; padding: 0; }
    .auth { max-width: none; grid-template-columns: 1fr 1fr; gap: 0; }
    .auth__brand { align-self: center; }
    .auth__brand img { width: 260px; }
    .card--auth { border-radius: 0; display: grid; align-content: center; padding: 48px max(48px, calc((50vw - 440px) / 2)); }
}

/* Signed-in areas: publisher dashboard, account pages, control panel */
.layout--app { font-size: 16px; }
.layout--app .layout__main { padding: 20px var(--gutter) 56px; }
.layout--app .page { max-width: 1180px; }
.layout--app .page__title { font-size: clamp(1.35rem, 4.6vw, 1.7rem); }
.layout--app .page__header { margin-bottom: 20px; }
.layout--app .page__lead { font-size: 0.98rem; }
.layout--app h2 { font: 700 1.05rem/1.3 var(--body); letter-spacing: 0; }
.layout--app h3 { font: 700 0.98rem/1.3 var(--body); }
.layout--app .section__title { margin: 0 0 0.5em; }
.layout--app .section { margin: 14px 0; }

/* Page furniture of the signed-in areas */
.crumb a { color: var(--muted); }
.ident { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 0 0 18px; }
.ident__text { flex: 1 1 260px; min-width: 0; }
.ident__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.ident__meta { margin: 4px 0 0; color: var(--muted); font-size: 0.93rem; overflow-wrap: anywhere; }
.ident__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pagetabs { display: flex; gap: 2px; margin: 0 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.pagetabs__tab { flex: none; margin-bottom: -1px; padding: 10px 14px; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; white-space: nowrap; font-weight: 700; font-size: 0.95rem; }
.pagetabs__tab:hover { color: var(--night); }
.pagetabs__tab--on { border-bottom-color: var(--night); color: var(--night); }
.cell-main { font-weight: 700; }
.cell-sub { display: block; color: var(--muted); font-size: 0.84rem; font-weight: 400; }
.blank { display: grid; justify-items: center; gap: 8px; padding: 40px 20px; text-align: center; }
.blank p { margin: 0; color: var(--muted); max-width: 46ch; }
.blank .btn { margin-top: 8px; }
.split { display: grid; gap: 16px; align-items: start; }
.stat__value--text { font: 700 1.05rem/1.35 var(--body); }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notes__item { padding: 12px 14px; border-radius: 9px; background: var(--snow); }
.notes__body { margin: 0 0 6px; overflow-wrap: anywhere; }
.notes__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; color: var(--muted); font-size: 0.86rem; }
.viewas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 8px var(--gutter); background: var(--night); color: var(--white); font-size: 0.93rem; border-bottom: 3px solid #FFD66B; }
.viewas .btn { background: var(--white); border-color: var(--white); }
.people__meta .cell-sub { text-align: right; }
.sheet__body > form + form { padding-top: 16px; border-top: 1px solid var(--line); }
.example { margin: 0; padding: 12px 14px; border-radius: 9px; background: var(--snow); font-size: 0.95rem; }
.table--rows td { vertical-align: middle; }
.field--check label .field__hint { display: block; margin-top: 2px; }
.field__input--color { padding: 4px; height: 42px; }
.rows dt a { font-weight: 600; }
.layout--app .panel .code { margin: 0 0 12px; }
.layout--app .panel > .actions:last-child, .layout--app .panel > p:last-child { margin-bottom: 0; }
.layout--app .page > .form--inline { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }

/* A settings page: what a group of fields is about on the left, the fields on the right */
.sheet { max-width: 1000px; }
.sheet__row { display: grid; gap: 12px 36px; padding: 22px 0; border-top: 1px solid var(--line); }
.sheet__row:first-child { padding-top: 4px; border-top: 0; }
.sheet__about h2 { margin: 0 0 4px; }
.sheet__about p { margin: 0; color: var(--muted); font-size: 0.93rem; max-width: 46ch; }
.sheet__body { display: grid; gap: 16px; align-content: start; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.sheet__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 20px 0 0; border-top: 1px solid var(--line); }
.layout--app .sheet .form { max-width: none; }

/* The same split for pages that only have sections: title left, content right */
.layout--app .page > section.section { margin: 0; padding: 22px 0; border-top: 1px solid var(--line); min-width: 0; }
.layout--app .page > section.section > .table-wrap { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.layout--app .page > section.section > .form:not(.form--inline) { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); max-width: 640px; }
.layout--app .page > section.section > * + .form, .layout--app .page > section.section > * + .table-wrap { margin-top: 12px; }
.layout--app .btn { min-height: 40px; padding: 8px 16px; border-width: 1.5px; border-radius: 10px; font-size: 0.95rem; }
.layout--app .btn--small { min-height: 34px; padding: 5px 12px; font-size: 0.9rem; }
.layout--app .btn--link { min-height: 0; padding: 0; border: 0; border-radius: 4px; }
.layout--app .field__input { min-height: 42px; border-width: 1.5px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: cover; overflow: hidden; background: var(--shade); color: var(--night); font: 700 0.86rem/1 var(--body); }
.avatar--sm { width: 28px; height: 28px; font-size: 0.7rem; }
.avatar--md { width: 38px; height: 38px; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.15rem; }
.avatar--xl { width: 96px; height: 96px; font-size: 1.9rem; }
.avatar--tint0 { background: var(--ice); }
.avatar--tint1 { background: var(--frost); }
.avatar--tint2 { background: var(--glacier); }
.avatar--tint3 { background: var(--fjord); color: var(--white); }
.avatar--tint4 { background: var(--shade); }

.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px var(--gutter) 8px 12px; background: var(--night); color: var(--white); }
.topbar__menu { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 13px 0 10px; border-radius: 10px; background: var(--night-soft); color: var(--white); font: 700 0.92rem var(--body); cursor: pointer; user-select: none; }
.shell__check { position: fixed; top: 20px; left: 20px; z-index: 31; width: 1px; height: 1px; margin: 0; opacity: 0; }
.shell__check:focus-visible ~ .topbar .topbar__menu { outline: 3px solid var(--glacier); outline-offset: 2px; }
.topbar__brand { display: inline-flex; margin-right: auto; }
.topbar__brand img { width: 104px; display: block; }
.topbar__tag, .sidebar__tag { padding: 2px 9px; border-radius: 999px; background: var(--ice); color: var(--night); font: 700 0.75rem/1.5 var(--body); }

.sidebar { display: flex; flex-direction: column; gap: 12px; padding: 14px 12px; background: var(--night); color: #C7D8EC; position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(304px, 88vw); overflow-y: auto; transform: translateX(-102%); visibility: hidden; transition: transform 0.2s ease, visibility 0s linear 0.2s; }
.shell__check:checked ~ .sidebar { transform: none; visibility: visible; transition-delay: 0s; }
.shell__backdrop { display: none; position: fixed; inset: 0; z-index: 40; background: rgba(11, 23, 48, 0.6); }
.shell__check:checked ~ .shell__backdrop { display: block; }
.shell__main { min-width: 0; }
.sidebar__head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 2px 8px; }
.sidebar__brand { display: inline-flex; margin-right: auto; }
.sidebar__brand img { width: 124px; display: block; }
.sidebar__close { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--night-soft); color: var(--white); cursor: pointer; }

.areas, .mode { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 11px; background: var(--night-soft); }
.areas__option, .mode__option { padding: 6px 10px; border-radius: 8px; color: #C7D8EC; text-align: center; text-decoration: none; white-space: nowrap; font: 700 0.86rem/1.35 var(--body); }
.areas__option:hover, .mode__option:hover { color: var(--white); }
.areas__option--on, .areas__option--on:hover, .mode__option--on, .mode__option--on:hover { background: var(--white); color: var(--night); }
.mode__option--test.mode__option--on { background: #FFD66B; }
.mode--topbar { display: inline-grid; }
.mode--sidebar { display: none; }
.modebar { margin: 0; padding: 6px var(--gutter); background: #FFD66B; color: var(--night); text-align: center; font-weight: 700; font-size: 0.9rem; }

.sidebar__nav { display: grid; align-content: start; gap: 2px; scrollbar-width: thin; scrollbar-color: #2A4170 transparent; }
.sidebar__group { margin: 12px 0 3px; padding: 0 12px; color: #8CA1C4; font: 700 0.76rem/1.4 var(--body); }
.sidebar__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sidebar__link { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 7px 12px; border-radius: 10px; color: #C7D8EC; text-decoration: none; font: 600 0.95rem/1.25 var(--body); }
.sidebar__link .icon { color: #8CA1C4; }
.sidebar__link:hover { background: var(--night-soft); color: var(--white); }
.sidebar__link--active, .sidebar__link--active:hover { background: #1D3566; color: var(--white); }
.sidebar__link--active .icon { color: var(--ice); }
.layout--staff .sidebar__link--active, .layout--staff .sidebar__link--active:hover { background: var(--ice); color: var(--night); }
.layout--staff .sidebar__link--active .icon { color: var(--night); }

.sidebar__foot { display: grid; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.pin { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--night-soft); color: var(--white); text-decoration: none; }
.pin:hover { background: #1D3566; color: var(--white); }
.pin__label { color: #A9BEDD; font: 600 0.86rem var(--body); }
.pin__value { font: 700 0.95rem var(--display); }
.who { position: relative; }
.who__toggle { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: var(--white); cursor: pointer; }
.who__toggle::-webkit-details-marker { display: none; }
.who__toggle:hover, .who[open] .who__toggle { background: var(--night-soft); }
.who__toggle > .icon { width: 18px; height: 18px; color: #8CA1C4; }
.who__text { display: grid; flex: 1; min-width: 0; }
.who__name, .who__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who__name { font: 700 0.95rem/1.3 var(--body); }
.who__sub { color: #8CA1C4; font-size: 0.8rem; line-height: 1.3; }
.who__menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 5; display: grid; gap: 1px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 14px 34px rgba(4, 12, 30, 0.35); }
.who__link { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--night); text-align: left; text-decoration: none; font: 600 0.94rem/1.25 var(--body); cursor: pointer; }
.who__link:hover { background: var(--snow); color: var(--night); }
.who__link .icon { color: var(--fjord); }

.grid-2, .grid-side { display: grid; gap: 0 16px; }
.who-cell { display: flex; align-items: center; gap: 10px; }

/* Figures side by side in one strip */
.stats { display: flex; flex-wrap: wrap; gap: 1px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); overflow: hidden; }
.stat { flex: 1 1 150px; display: grid; align-content: start; gap: 3px; min-width: 0; padding: 15px 18px; background: var(--white); color: inherit; text-decoration: none; }
a.stat:hover { background: #F7FBFE; color: inherit; }
.stat__label { display: flex; align-items: center; gap: 7px; color: var(--muted); font: 600 0.88rem/1.3 var(--body); }
.stat__value { font: 700 1.25rem/1.25 var(--display); overflow-wrap: anywhere; }
.stat__sub { color: var(--muted); font-size: 0.86rem; }
.stat--lead, a.stat--lead:hover { background: var(--night); color: var(--white); }
.stat--lead .stat__label, .stat--lead .stat__sub { color: var(--frost); }
.stat--ok .stat__label::before, .stat--warn .stat__label::before, .stat--fail .stat__label::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stat--warn .stat__label::before { background: #D99A00; }
.stat--fail .stat__label::before { background: var(--danger); }

/* The headline figure of a dashboard, with its chart */
.headline { display: grid; gap: 22px; margin: 0 0 16px; padding: 22px 20px; border-radius: 16px; background: var(--night); color: var(--white); }
.headline__label { margin: 0 0 6px; color: var(--frost); font: 600 0.95rem var(--body); }
.headline__figure { margin: 0; font: 800 clamp(2rem, 9vw, 2.9rem)/1.05 var(--display); letter-spacing: -0.02em; }
.headline__facts { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 20px 0 0; }
.headline__facts dt { color: #A9BEDD; font-size: 0.84rem; font-weight: 600; }
.headline__facts dd { margin: 0; font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.headline .chart__bar { fill: var(--ice); }
.headline .chart__bar:hover { fill: var(--white); }
.headline .chart__grid { stroke: rgba(255, 255, 255, 0.14); }
.headline .chart__axis { stroke: rgba(255, 255, 255, 0.3); }
.headline .chart__scale { color: #A9BEDD; }

.chart { display: grid; gap: 8px; }
.chart__plot { display: block; width: 100%; height: 150px; }
.chart__bar { fill: var(--glacier); }
.chart__bar:hover { fill: var(--fjord); }
.chart__grid, .chart__axis { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__grid { stroke-dasharray: 3 4; }
.chart__scale { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: var(--muted); font: 600 0.82rem var(--body); }

/* From seeing the wall to finishing a survey, in order */
.flow { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 16px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--line); overflow: hidden; }
.flow__step { position: relative; background: var(--white); }
.flow__link { display: grid; gap: 3px; height: 100%; padding: 15px 18px; color: inherit; text-decoration: none; }
a.flow__link:hover { background: #F7FBFE; color: inherit; }
.flow__label { color: var(--muted); font: 600 0.88rem/1.3 var(--body); }
.flow__value { font: 700 1.3rem/1.25 var(--display); }
.flow__sub { color: var(--muted); font-size: 0.86rem; }

.rows { margin: 0; }
.rows__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.rows__row:first-child { border-top: 0; padding-top: 2px; }
.rows dt { font-weight: 600; }
.rows dt span { display: block; color: var(--muted); font-weight: 400; font-size: 0.86rem; }
.rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows__row--strong dd { font: 700 1.2rem var(--display); }

.bar { display: block; width: 100%; min-width: 70px; height: 6px; border-radius: 3px; background: var(--snow); }
.bar rect { fill: var(--glacier); }
.table .bar-cell { display: none; }

.health, .people { list-style: none; margin: 0; padding: 0; }
.health__row, .people__row { border-top: 1px solid var(--line); }
.health__link, .people__link { display: flex; align-items: center; gap: 12px; padding: 11px 20px; color: inherit; text-decoration: none; }
a.health__link:hover, a.people__link:hover { background: #F7FBFE; color: inherit; }
.health__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.health__dot--warn { background: #D99A00; }
.health__dot--fail { background: var(--danger); }
.health__name { flex: 1; font-weight: 600; }
.health__state { color: var(--muted); font-size: 0.92rem; text-align: right; }
.people__text { display: grid; flex: 1; min-width: 0; }
.people__name { font-weight: 700; }
.people__sub { color: var(--muted); font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people__meta { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Getting started */
.guide { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; }
.guide__head { display: grid; gap: 10px; padding: 18px 20px 16px; border-bottom: 1px solid var(--line); }
.guide__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.layout--app .guide__title { margin: 0; font: 800 1.1rem/1.25 var(--display); }
.guide__count { margin: 0; color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.guide__meter { display: block; width: 100%; height: 8px; border-radius: 999px; background: var(--snow); }
.guide__meter rect { fill: var(--glacier); }
.guide__body { display: grid; }
.guide__next { display: grid; align-content: center; justify-items: start; gap: 10px; padding: 20px; background: var(--snow); }
.guide__step-no { margin: 0; color: var(--fjord); font-weight: 700; font-size: 0.9rem; }
.layout--app .guide__next h3 { margin: 0; font: 800 1.2rem/1.2 var(--display); }
.guide__next p { margin: 0; color: var(--muted); max-width: 46ch; }
.guide__next .btn { margin-top: 6px; }
.guide__steps { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.guide__link { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: var(--night); text-decoration: none; font-weight: 600; }
.guide__link:hover { background: var(--snow); color: var(--night); }
.guide__mark { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid #B9CCDA; border-radius: 50%; color: var(--muted); font: 700 0.8rem var(--body); }
.guide__mark .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.guide__step--done .guide__link { color: var(--muted); }
.guide__step--done .guide__mark { border-color: transparent; background: var(--ok-bg); color: var(--ok); }
.guide__step--now .guide__link { background: var(--snow); }
.guide__step--now .guide__mark { border-color: var(--night); background: var(--night); color: var(--white); }

.welcome { display: flex; align-items: center; gap: 16px; margin: 6px 0 22px; }
.welcome__yeti { flex: none; width: 64px; height: auto; }
.welcome .page__title { margin: 0 0 4px; }
.welcome .page__lead { max-width: 56ch; }

.picture { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.picture__side { display: grid; gap: 10px; flex: 1 1 220px; min-width: 0; }
.picture__form { display: grid; gap: 10px; justify-items: start; }
.picture__file { max-width: 100%; font: inherit; font-size: 0.92rem; }
.picture__file::file-selector-button { margin-right: 12px; min-height: 36px; padding: 6px 12px; border: 1.5px solid var(--night); border-radius: 9px; background: var(--white); color: var(--night); font: 700 0.9rem var(--body); cursor: pointer; }

@media (max-width: 719px) {
    .table th, .table td { padding-left: 9px; padding-right: 9px; }
    .panel--flush .table th:first-child, .panel--flush .table td:first-child { padding-left: 16px; }
    .panel--flush .table th:last-child, .panel--flush .table td:last-child { padding-right: 16px; }
    .panel { padding: 16px; }
    .panel--flush { padding: 0; }
    .panel--flush > h2 { padding: 14px 16px 10px; }
    .panel__foot, .health__link, .people__link { padding-left: 16px; padding-right: 16px; }
}

@media (min-width: 720px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .table .bar-cell { display: table-cell; width: 26%; vertical-align: middle; }
    .flow { grid-template-columns: repeat(4, 1fr); }
    .flow__step + .flow__step::before { content: ""; position: absolute; z-index: 1; left: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--white); transform: rotate(45deg); }
    .guide__body { grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.15fr); }
    .guide__steps { order: -1; border-top: 0; border-right: 1px solid var(--line); padding: 14px; }
    .guide__next { padding: 28px 32px; }
}

@media (min-width: 960px) {
    .sheet__row { grid-template-columns: 270px minmax(0, 1fr); }
    .sheet__actions { padding-left: 306px; }
    .split { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
    .layout--app .page > section.section { display: grid; grid-template-columns: 270px minmax(0, 1fr); column-gap: 36px; align-items: start; }
    .layout--app .page > section.section > * { grid-column: 2; }
    .layout--app .page > section.section > .section__title:first-child { grid-column: 1; grid-row: 1 / span 40; }
    .layout--app .page > section.section > .btn, .layout--app .page > section.section > .actions { justify-self: start; }
    .topbar, .sidebar__close, .shell__check, .shell__check:checked ~ .shell__backdrop { display: none; }
    .shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
    .sidebar { position: sticky; inset: auto; top: 0; z-index: auto; width: auto; height: 100vh; padding: 18px 14px 14px; overflow: visible; transform: none; visibility: visible; transition: none; }
    .sidebar__head { padding: 2px 4px 8px 8px; }
    .sidebar__nav { flex: 1; min-height: 0; overflow-y: auto; }
    .mode--sidebar { display: grid; }
    .layout--app .layout__main { padding: 30px 40px 72px; }
    .grid-side { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; }
    .grid-side--fill { align-items: stretch; }
    .grid-side--fill > .panel { display: flex; flex-direction: column; }
    .grid-side--fill .chart { flex: 1; grid-template-rows: minmax(150px, 1fr) auto; }
    .grid-side--fill .chart__plot { height: 100%; }
    .headline { grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr); align-items: end; gap: 44px; padding: 28px 30px; }
    .headline .chart__plot { height: 170px; }
}

@media (min-width: 960px) and (max-height: 860px) {
    .pin { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar { transition: none; }
}

@media print {
    .topbar, .sidebar, .shell__backdrop, .modebar, .site-header, .site-footer, .no-print, .alerts { display: none !important; }
    body { background: #fff; }
    .shell { display: block; }
    .invoice { border: 0; padding: 0; }
}
.page > .alert, .panel > .alert { margin-bottom: 12px; }

/* Help centre */
.help-top { padding-bottom: 44px; }
.help-search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; margin-top: 22px; }
.help-search__input { flex: 1 1 240px; min-height: 52px; padding: 12px 16px; border: 2px solid var(--night-soft); border-radius: var(--radius-small); background: var(--white); color: var(--night); font: inherit; }
.help-search__input:focus { border-color: var(--ice); outline: none; }
.help-topic { display: grid; gap: 6px 40px; padding: 26px 0; border-top: 1px solid var(--line); }
.help-topic:first-child { border-top: 0; padding-top: 0; }
.help-topic__about h2 { font-size: 1.3rem; margin: 0 0 6px; }
.help-topic__about p { margin: 0; color: var(--muted); }
.help-list { list-style: none; margin: 0; padding: 0; }
.help-list li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.help-list li:first-child { border-top: 0; }
.help-list__link { font-weight: 700; font-size: 1.05rem; color: var(--night); text-decoration: none; }
.help-list__link:hover { color: var(--fjord); text-decoration: underline; }
.help-list__sum { color: var(--muted); }
.help-list__topic { color: var(--fjord); font-size: 0.86rem; font-weight: 600; }
.help-list--results { max-width: 760px; border-top: 2px solid var(--night); margin-top: 18px; }
.help-count { font-size: 1.3rem; }
.help-ask { display: grid; gap: 8px 32px; align-items: center; }
.help-ask h2 { font-size: 1.4rem; margin: 0 0 6px; }
.help-ask p { margin: 0; max-width: 56ch; }
.help-article__grid { display: grid; gap: 36px 56px; }
.prose { min-width: 0; max-width: 70ch; }
.prose h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
.prose h2 { font-size: 1.25rem; margin: 1.7em 0 0.5em; }
.prose p, .prose li { line-height: 1.65; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose code { background: var(--snow); padding: 1px 6px; border-radius: 5px; font-size: 0.92em; overflow-wrap: anywhere; }
.prose--panel { max-width: 72ch; }
.prose--panel h2 { font: 700 1.05rem var(--body); }
.helped { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.helped__form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.helped__ask { font-weight: 700; margin-right: 6px; }
.helped__thanks { margin: 0; font-weight: 600; }
.help-side__title { font: 700 1rem var(--body); margin: 0 0 8px; letter-spacing: 0; }
.help-side__list { list-style: none; margin: 0 0 26px; padding: 0; border-top: 2px solid var(--night); }
.help-side__list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.help-side__list a { color: var(--night); font-weight: 600; text-decoration: none; }
.help-side__list a:hover { color: var(--fjord); text-decoration: underline; }
.help-side__ask { padding: 18px; border-radius: var(--radius); background: var(--snow); }
.help-side__ask p { margin: 0 0 12px; color: var(--muted); }

/* Support: suggestions on a new ticket, the conversation, the reply box */
.suggest:empty { display: none; }
.suggest__box { padding: 14px 16px; border: 2px solid var(--shade); border-radius: var(--radius-small); background: var(--snow); }
.suggest__title { margin: 0 0 8px; font-weight: 700; }
.suggest__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.suggest__list li { display: grid; gap: 1px; }
.suggest__list a { font-weight: 700; }
.suggest__list span { color: var(--muted); font-size: 0.92rem; }
.layout--app .page--narrow { max-width: 880px; margin-left: 0; }
.thread { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.thread__item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); min-width: 0; }
.thread__item--own { background: var(--snow); }
.thread__item--system { border-style: dashed; background: none; }
.thread__item--note { border-color: #E3C56B; background: var(--warn-bg); }
.thread__who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.thread__when { margin-left: auto; color: var(--muted); font-size: 0.86rem; }
.thread__body { overflow-wrap: anywhere; line-height: 1.6; }
.avatar--brand { background: var(--night); color: var(--ice); }
.reply { display: grid; gap: 10px; }
.reply--note { background: var(--snow); }
.reply__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.badge--ticket-open { background: var(--warn-bg); color: var(--warn); }
.badge--ticket-answered { background: var(--ok-bg); color: var(--ok); }
.badge--ticket-closed { background: #E7EBF1; color: var(--muted); }
.help-links h2 { font: 700 1.05rem var(--body); margin: 0 0 6px; letter-spacing: 0; }
.help-links__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 28px; }
.help-links__list li { display: grid; gap: 1px; padding: 10px 0; border-top: 1px solid var(--line); }
.help-links__topic { font-weight: 700; }
.help-links__list span { color: var(--muted); font-size: 0.92rem; }
.rows__wrap { white-space: normal !important; overflow-wrap: anywhere; text-align: right; font-weight: 600 !important; }
.field__input--code { font-family: var(--mono); font-size: 0.9rem; line-height: 1.55; }

@media (min-width: 760px) {
    .help-topic { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); }
    .help-ask { grid-template-columns: minmax(0, 1fr) auto; }
    .help-links__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
    .help-article__grid { grid-template-columns: minmax(0, 1fr) 280px; }
    .help-side { position: sticky; top: 24px; align-self: start; }
}
