@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("fonts/PlusJakartaSans.ttf") format("truetype");
    font-weight: 200 800;
    font-display: swap
}

:root {
    --blue: #165dad;
    --navy: #12375d;
    --ink: #192e47;
    --muted: #66788e;
    --line: #e1e9f1;
    --canvas: #f4f7fb;
    --light: #eaf2fc;
    --radius: 18px;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    line-height: 1.55
}

a {
    color: var(--blue);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

button,
input,
select,
textarea {
    font: inherit
}

button,
a,
input,
select,
textarea {
    touch-action: manipulation
}

button {
    cursor: pointer
}

button:disabled {
    cursor: not-allowed;
    opacity: .45
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #4c93ed;
    outline-offset: 4px
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1 {
    font-size: clamp(1.7rem, 2.3vw, 2rem);
    letter-spacing: -.045em;
    line-height: 1.15;
    font-weight: 650;
    margin-bottom: 16px
}

h2 {
    font-size: 1.3rem;
    letter-spacing: -.025em
}

h3 {
    font-size: 1.08rem
}

p {
    color: var(--muted)
}

small {
    font-size: 0.875rem
}

pre {
    white-space: pre-wrap;
    word-break: break-word
}

fieldset {
    min-width: 0
}

.topbar {
    height: 86px;
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 38px;
    background: white;
    border-bottom: 1px solid var(--line)
}

.brand {
    display: flex;
    align-items: center;
    gap: 17px;
    color: var(--navy)
}

.brand:hover {
    text-decoration: none
}

.brand img {
    width: 80px;
    max-height: 44px;
    object-fit: contain
}

.brand>span {
    border-left: 1px solid var(--line);
    padding-left: 17px;
    font-size: 27px;
    letter-spacing: -1.5px;
    font-weight: 800
}

.brand-dot {
    color: #72a5de
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.875rem
}

.topbar form {
    margin: 0
}

.language {
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px
}

.account-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--blue);
    color: white;
    padding: 13px 22px;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 46px;
    box-shadow: 0 4px 10px #165dad13
}

.button:hover {
    background: #104c91;
    text-decoration: none
}

.button.secondary {
    color: var(--blue);
    background: #fff;
    border-color: #cddded;
    box-shadow: none
}

.button.small {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 0.875rem
}

.button.full {
    width: 100%;
    margin-top: 12px
}

.text-button {
    border: 0;
    background: none;
    color: var(--blue);
    padding: 10px 0;
    font-size: 0.88rem;
    font-weight: 600;
    min-height: 44px
}

.text-button:hover {
    text-decoration: underline
}

.actions,
.form-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap
}

.form-actions {
    margin-top: 28px;
    border-top: 1px solid var(--line);
    padding-top: 24px
}

.eyebrow {
    font-size: 0.875rem;
    letter-spacing: 1.8px;
    font-weight: 750;
    color: var(--blue);
    margin-bottom: 14px
}

.muted {
    color: var(--muted);
    font-size: 0.875rem
}

.lead {
    font-size: 1.12rem;
    line-height: 1.8;
    max-width: 570px
}

.public main {
    max-width: 1240px;
    margin: auto;
    padding: 56px 36px 64px
}

.workspace main {
    margin-left: 238px;
    padding: 42px 42px 90px;
    max-width: 1600px
}

.sidebar {
    position: absolute;
    top: 86px;
    bottom: 0;
    width: 238px;
    background: white;
    border-right: 1px solid var(--line);
    padding: 35px 22px;
    min-height: calc(100vh - 86px)
}

.workspace-label {
    font-size: 0.875rem;
    letter-spacing: 1.6px;
    color: #8292a5;
    margin: 0 15px 22px
}

.sidebar nav {
    display: grid;
    gap: 7px
}

.sidebar nav a {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-radius: 10px;
    color: #657890;
    font-size: 1.2rem
}

.sidebar nav a span {
    font-size: 0.875rem;
    font-weight: 550
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: var(--light);
    color: var(--blue);
    text-decoration: none
}

.workspace-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-top: 42px;
    padding: 18px;
    display: grid;
    gap: 7px
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    border-radius: 11px;
    background: var(--light);
    color: var(--blue);
    font-weight: 650;
    flex-shrink: 0
}

.workspace-card strong {
    font-size: 0.875rem;
    overflow-wrap: anywhere
}

.workspace-card small {
    color: var(--muted);
    font-size: 0.875rem
}

.sidebar-foot {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 45px 14px
}

.sidebar-foot small {
    font-size: 0.875rem;
    color: #8b9bad
}

.page-heading {
    margin-bottom: 32px
}

.page-heading p:last-child {
    margin-bottom: 0
}

.split,
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px
}

.section-heading {
    margin-bottom: 16px
}

.section-heading h2 {
    margin: 0
}

.section-heading a {
    font-size: 0.875rem
}

.panel {
    background: white;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: 0 3px 6px #18345402
}

.narrow {
    max-width: 620px;
    margin: 20px auto
}

.metric-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px
}

.metric {
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--line);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.metric p {
    font-size: 0.875rem;
    margin: 0
}

.metric strong {
    font-size: 2.0rem;
    letter-spacing: -.06em;
    line-height: 1.2
}

.metric strong small {
    font-size: 0.875rem;
    letter-spacing: 0
}

.metric span {
    font-size: 0.875rem;
    color: var(--muted)
}

.metric a {
    font-size: 0.875rem;
    margin-top: auto
}

.metric h3 {
    margin: 0
}

.metric.primary {
    background: linear-gradient(120deg, #164d89, #1765b5);
    color: white;
    border: 0
}

.metric.primary p,
.metric.primary span {
    color: #c2d9ef
}

.document-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #eef2f6;
    color: var(--ink)
}

.document-row:last-child {
    border: 0
}

.document-row:hover {
    text-decoration: none;
    background: #fafcff
}

.document-icon {
    display: grid;
    place-items: center;
    background: #eff4fa;
    border: 1px solid #dde8f3;
    width: 40px;
    height: 46px;
    border-radius: 9px;
    color: var(--blue);
    font-size: 1.4rem;
    flex-shrink: 0
}

.document-name {
    display: grid;
    gap: 3px;
    flex: 1
}

.document-name strong {
    font-size: 0.875rem
}

.document-name small {
    font-size: 0.875rem;
    color: var(--muted)
}

.document-amount {
    font-size: 0.9rem;
    min-width: 130px;
    text-align: right
}

.document-amount small {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted)
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    background: #edf1f6;
    color: #627287;
    padding: 5px 10px;
    font-size: 0.875rem;
    font-weight: 650;
    white-space: nowrap
}

.badge.fiscalised {
    background: #e6f4ee;
    color: #2a7a59
}

.badge.uncertain,
.badge.rejected {
    background: #fff0da;
    color: #946316
}

.badge.sending,
.badge.queued {
    background: #eaf2fc;
    color: var(--blue)
}

.empty {
    text-align: center;
    padding: 48px 20px
}

.empty p {
    max-width: 390px;
    margin: 12px auto 24px
}

.empty-icon {
    font-size: 42px;
    color: #8faed0
}

.tip-strip {
    border: 1px solid #d7e5f4;
    background: #edf4fc;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px
}

.tip-strip>span {
    font-size: 26px;
    color: var(--blue)
}

.tip-strip strong {
    font-size: 0.875rem
}

.tip-strip p {
    margin: 4px 0 0;
    font-size: 0.875rem
}

.tip-strip a {
    font-size: 0.875rem;
    margin-left: auto;
    white-space: nowrap
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 19px;
    font-size: 0.875rem;
    color: var(--ink);
    font-weight: 550
}

.field small {
    color: var(--muted);
    font-weight: 400;
    line-height: 1.5;
    font-size: 0.875rem
}

.field>span small {
    color: #889db7
}

.field input,
.field select,
.field textarea,
.search input {
    border: 1px solid #ccdae8;
    border-radius: 9px;
    padding: 11px 13px;
    background: #fff;
    color: var(--ink);
    width: 100%;
    min-height: 46px;
    font-weight: 400;
    transition: border .2s
}

.field input[type=color] {
    height: 46px;
    padding: 6px;
    width: 90px
}

.field input[type=range] {
    padding: 0;
    accent-color: var(--blue)
}

.field input[type=file] {
    font-size: 0.875rem
}

.field textarea {
    resize: vertical
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue)
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 22px 0;
    font-size: 0.875rem
}

.check input {
    accent-color: var(--blue);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 4px
}

.notice,
.info-box {
    padding: 16px 20px;
    border-radius: 11px;
    background: var(--light);
    color: #245084;
    font-size: 0.875rem;
    margin-bottom: 24px;
    border: 1px solid #d7e6f6
}

.notice.error {
    background: #fff3e8;
    border-color: #f1d9b8;
    color: #865a21
}

.info-box p {
    margin: 8px 0 0;
    color: inherit;
    font-size: 0.875rem
}

.help {
    width: calc(100% - 72px);
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 24px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    font-size: 0.875rem
}

.workspace .help {
    width: auto;
    max-width: none;
    margin-left: 274px;
    margin-right: 36px
}

.help-body p {
    line-height: 1.75
}

.people-table tbody tr:hover,
.people-table tbody tr:focus-within {
    background: var(--light)
}

.people-table td {
    vertical-align: middle
}

.people-table .actions {
    margin: 0;
    gap: 12px
}

.plan-due {
    display: grid;
    gap: 4px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: auto
}

.plan-due strong {
    color: var(--navy);
    font-size: 1.05rem
}

.page-foot {
    padding: 10px 36px 35px;
    color: #8a9aad;
    text-align: center;
    font-size: 0.875rem
}

.workspace .page-foot {
    margin-left: 238px
}

.hero {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 70px;
    padding: 34px 0 76px
}

.hero h1 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.12
}

.hero h1 span {
    color: var(--blue)
}

.hero .lead {
    font-size: 1.0rem;
    margin: 24px 0 30px
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #328c74;
    border-radius: 50%;
    margin-right: 6px
}

.price-line {
    font-size: 0.875rem;
    margin-top: 22px
}

.price-line strong {
    color: var(--navy)
}

.price-line span {
    display: block;
    margin-top: 5px
}

.hero-preview {
    background: white;
    border: 1px solid #d7e3f0;
    box-shadow: 14px 20px 0 #e4edf8;
    border-radius: 18px;
    padding: 32px;
    transform: rotate(-2deg)
}

.preview-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px
}

.mini-brand {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -1px
}

.hero-preview h2 {
    font-size: 25px
}

.hero-preview p {
    font-size: 0.875rem
}

.preview-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding: 15px 0;
    font-size: 0.875rem
}

.preview-line span {
    color: var(--muted)
}

.preview-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    font-size: 0.875rem
}

.preview-total strong {
    font-size: 1.35rem;
    color: var(--blue)
}

.compliance-label {
    color: var(--blue);
    font-weight: 700;
    font-size: 0.9rem
}

.preview-bottom {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.875rem;
    color: #417865;
    padding-top: 20px;
    border-top: 1px dashed var(--line)
}

.preview-qr {
    flex: 0 0 132px;
    text-align: center;
    color: var(--blue);
    font-size: 0.875rem
}

.preview-qr img {
    display: block;
    width: 132px;
    height: 132px;
    background: white
}

.preview-bottom p {
    margin: 8px 0;
    color: var(--muted)
}

.preview-qr-caption {
    display: block;
    color: var(--muted)
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px;
    border-top: 1px solid var(--line);
    padding-top: 35px
}

.feature-grid article {
    padding: 0 8px
}

.feature-grid p {
    font-size: 0.875rem
}

.feature-number {
    color: #94b6dc;
    font-size: 0.875rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 18px
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 75px;
    align-items: center
}

.auth-intro h1 {
    font-size: 2.0rem
}

.auth-intro .lead {
    font-size: 1.0rem
}

.auth-decoration {
    display: flex;
    gap: 17px;
    align-items: center;
    margin-top: 28px;
    font-size: 0.9rem
}

.auth-decoration>span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #c5d8ec;
    color: var(--blue);
    border-radius: 50%;
    font-size: 0.875rem
}

.auth-decoration small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
    font-size: 0.875rem
}

.auth-panel {
    padding: 36px
}

.center-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 0.875rem
}

.wizard-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px
}

.wizard-head h1 {
    font-size: 2.0rem
}

.steps {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 22px;
    padding: 0;
    margin: 32px 0 38px;
    font-size: 0.875rem;
    color: #8b9bae
}

.steps li {
    display: grid;
    place-items: center;
    gap: 8px
}

.steps li span {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: #e5edf5;
    display: grid;
    place-items: center;
    font-size: 0.875rem
}

.steps .current {
    color: var(--blue);
    font-weight: 700
}

.steps .current span {
    background: var(--blue);
    color: white;
    box-shadow: 0 0 0 5px #e0ebf8
}

.steps .done span {
    background: #dfeee8;
    color: #38745a
}

.wizard-panel {
    max-width: 800px;
    margin: auto;
    padding: 36px
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin: 26px 0 12px
}

progress {
    width: 100%;
    height: 12px;
    accent-color: var(--blue);
    border: 0;
    border-radius: 10px;
    overflow: hidden
}

progress::-webkit-progress-bar {
    background: #e7eef6
}

progress::-webkit-progress-value {
    background: var(--blue);
    transition: width .5s
}

.test-list {
    padding: 0;
    list-style: none
}

.test-list li {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.875rem
}

.test-list strong {
    color: var(--blue);
    font-size: 0.875rem;
    white-space: nowrap
}

.brand-editor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: start
}

.brand-preview {
    border: 1px solid #dbe4ed;
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px #193d6710;
    margin-top: 4px;
    overflow: hidden
}

.brand-preview-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
    font-size: 0.875rem
}

.brand-preview-top img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    object-position: left
}

.brand-preview h3,
.brand-preview .preview-total strong {
    color: var(--invoice-color)
}

.brand-preview p {
    font-size: 0.875rem
}

.brand-preview .preview-total {
    flex-wrap: wrap
}

.brand-preview small {
    color: var(--muted);
    font-size: 0.875rem
}

.numbering {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 22px 0;
    padding: 18px
}

.numbering .field {
    margin: 0
}

.numbering legend {
    font-size: 0.875rem;
    padding: 0 7px;
    font-weight: 600
}

.price-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px 30px;
    max-width: 420px;
    margin: 25px 0;
    font-size: 0.9rem
}

.price-summary strong {
    text-align: right
}

.price-summary span:nth-last-child(2),
.price-summary strong:last-child {
    border-top: 1px solid var(--line);
    padding-top: 15px;
    color: var(--blue);
    font-size: 1.1rem
}

.summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.summary dt {
    color: var(--muted)
}

.summary dd {
    margin: 0
}

.success-mark {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e3f3eb;
    color: #2e8258;
    display: grid;
    place-items: center;
    margin: 15px 0 25px;
    font-size: 24px
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.875rem
}

.contact-row>div {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere
}

.contact-row small {
    display: block;
    color: var(--muted);
    font-size: 0.875rem;
    margin-top: 4px
}

.tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
    overflow: auto
}

.tabs a {
    padding: 12px 0;
    color: var(--muted);
    white-space: nowrap;
    font-size: 0.875rem
}

.tabs a.active {
    color: var(--blue);
    border-bottom: 2px solid var(--blue)
}

.search {
    display: flex;
    gap: 15px;
    margin-bottom: 22px
}

.search input {
    flex: 1;
    min-width: 0
}

.line-item {
    display: grid;
    grid-template-columns: 2.3fr .7fr 1fr 1fr 1fr auto;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 12px;
    margin: 0 0 20px;
    align-items: center
}

.line-item .field {
    font-size: 0.875rem
}

.line-item input,
.line-item select {
    padding: 10px;
    font-size: 0.875rem;
    min-width: 0
}

.remove-line {
    font-size: 23px;
    color: #8f7181
}

.editor-total {
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.875rem
}

.editor-total strong {
    font-size: 1.4rem;
    color: var(--blue)
}

.document-summary {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 10px 0 25px
}

.document-summary>strong {
    font-size: 1.8rem;
    letter-spacing: -1px;
    color: var(--blue)
}

.document-summary span {
    color: var(--muted);
    font-size: 0.875rem
}

.table-wrap {
    overflow: auto
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.875rem
}

th {
    text-align: left;
    background: #f6f9fc;
    color: #73849a;
    font-size: 0.875rem;
    font-weight: 550
}

th,
td {
    padding: 15px;
    border-bottom: 1px solid var(--line)
}

.skip {
    position: fixed;
    left: 10px;
    top: -70px;
    padding: 10px;
    background: white;
    z-index: 100
}

.skip:focus {
    top: 10px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

[hidden] {
    display: none !important
}

@media(max-width:1100px) {
    .workspace .help {
        margin-left: 219px;
        margin-right: 24px
    }

    .workspace main {
        padding: 30px 24px 90px;
        margin-left: 195px
    }

    .sidebar {
        width: 195px;
        padding: 28px 15px
    }

    .metric-grid {
        grid-template-columns: 1fr 1fr
    }

    .metric-grid .metric:last-child {
        grid-column: 1/-1
    }

    .hero {
        gap: 35px
    }

    .hero h1 {
        font-size: 2.0rem
    }

    .hero-preview {
        padding: 24px
    }

    .line-item {
        grid-template-columns: repeat(4, 1fr)
    }

    .line-item .description {
        grid-column: 1/4
    }

    .line-item .remove-line {
        grid-column: 4;
        grid-row: 1
    }

    .auth-layout {
        gap: 35px
    }

    .steps {
        gap: 16px
    }

    .two-columns {
        grid-template-columns: 1fr
    }

    .brand-editor {
        gap: 20px
    }

    .workspace .page-foot {
        margin-left: 195px
    }
}

@media(max-width:740px) {
    body {
        display: flex;
        flex-direction: column;
    }

    .topbar {
        order: 0;
    }

    .sidebar {
        order: 1;
    }

    main {
        order: 2;
    }

    .page-foot {
        order: 4;
    }

    .topbar.signed-in,
    .public .topbar {
        height: auto;
        padding-top: 12px;
        padding-bottom: 4px;
        flex-wrap: wrap;
        gap: 4px;
    }

    .topbar.signed-in .topbar-right,
    .public .topbar-right {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .topbar {
        height: 72px;
        padding: 0 20px
    }

    .brand img {
        width: 58px;
        max-height: 36px
    }

    .brand>span {
        font-size: 23px;
        padding-left: 12px
    }

    .brand {
        gap: 12px
    }

    .topbar-right {
        gap: 14px
    }

    .account-name,
    .language {
        display: none
    }

    .topbar .button.small {
        font-size: 0.875rem;
        padding: 8px 12px
    }

    .sidebar {
        position: sticky;
        top: 0;
        width: 100%;
        min-height: auto;
        z-index: 19;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 12px
    }

    .workspace-label,
    .workspace-card,
    .sidebar-foot {
        display: none
    }

    .sidebar nav {
        display: flex;
        overflow-x: auto;
        gap: 7px;
        scrollbar-width: none
    }

    .sidebar nav a {
        flex-shrink: 0;
        padding: 13px 12px;
        border-radius: 0;
        gap: 7px;
        font-size: 1.0rem
    }

    .sidebar nav a span {
        font-size: 0.875rem
    }

    .sidebar nav a.active {
        background: white;
        border-bottom: 2px solid var(--blue)
    }

    .workspace main {
        margin: 0;
        padding: 28px 20px 90px
    }

    .public main {
        padding: 32px 22px 72px
    }

    .page-heading h1 {
        font-size: 1.9rem
    }

    .page-heading.split {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px
    }

    .page-heading p {
        font-size: 0.875rem
    }

    .metric-grid {
        gap: 14px
    }

    .metric {
        padding: 20px
    }

    .metric.primary {
        grid-column: 1/-1
    }

    .metric-grid .metric:last-child {
        grid-column: auto
    }

    .metric strong {
        font-size: 2.0rem
    }

    .metric h3 {
        font-size: 0.95rem
    }

    .panel {
        padding: 22px;
        border-radius: 14px;
        margin-bottom: 18px
    }

    .metric-grid {
        margin-bottom: 20px
    }

    .document-row {
        gap: 10px;
        flex-wrap: wrap;
        position: relative;
        padding: 16px 0
    }

    .document-icon {
        width: 32px;
        height: 38px
    }

    .document-name {
        min-width: 120px
    }

    .document-amount {
        min-width: 100px;
        font-size: 0.875rem
    }

    .document-row>.badge {
        order: 5;
        margin-left: 42px;
        margin-top: -3px
    }

    .document-row>span:last-child:not(.badge) {
        display: none
    }

    .tip-strip {
        align-items: flex-start;
        flex-wrap: wrap
    }

    .tip-strip a {
        margin-left: 44px
    }

    .tip-strip>div {
        flex: 1
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .feature-grid article {
        padding: 12px 0
    }

    .feature-number {
        margin-bottom: 10px
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 12px 0 55px;
        gap: 35px
    }

    .hero h1 {
        font-size: 2.0rem
    }

    .hero .lead {
        font-size: 0.95rem
    }

    .hero .actions {
        gap: 12px
    }

    .preview-bottom {
        flex-direction: column;
        align-items: flex-start
    }

    .preview-qr {
        flex-basis: auto
    }

    .hero-preview {
        margin: 0 12px 0 4px;
        transform: none
    }

    .auth-layout {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .auth-intro h1 {
        font-size: 2.0rem
    }

    .auth-decoration {
        display: none
    }

    .auth-panel {
        padding: 24px
    }

    .wizard-head h1 {
        font-size: 2.0rem
    }

    .wizard-head p {
        font-size: 0.875rem
    }

    .steps {
        justify-content: space-between;
        gap: 8px;
        font-size: 0;
        margin-bottom: 30px
    }

    .steps li span {
        font-size: 0.875rem;
        width: 29px;
        height: 29px
    }

    .wizard-panel {
        padding: 22px
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .field {
        margin-bottom: 20px
    }

    .field input,
    .field textarea,
    .field select {
        font-size: 16px
    }

    .form-actions {
        gap: 18px
    }

    .form-actions .button {
        width: 100%
    }

    .brand-editor {
        grid-template-columns: 1fr
    }

    .brand-preview {
        margin: 0 10px 20px
    }

    .numbering {
        grid-template-columns: 1fr 1fr;
        padding: 15px
    }

    .numbering .field:first-of-type {
        grid-column: 1/-1
    }

    .numbering .field>span {
        font-size: 0.875rem
    }

    .test-list li {
        font-size: 0.875rem
    }

    .test-list strong {
        font-size: 0.875rem
    }

    .summary {
        grid-template-columns: 1fr;
        gap: 6px;
        font-size: 0.875rem
    }

    .summary dd {
        margin-bottom: 12px
    }

    .help,
    .workspace .help {
        order: 3;
        width: auto;
        margin: 18px 20px 24px;
        padding: 20px
    }

    .page-foot,
    .workspace .page-foot {
        margin: 0;
        padding: 0 20px 100px;
        font-size: 0.875rem
    }

    .tabs {
        gap: 23px
    }

    .line-item {
        grid-template-columns: 1fr 1fr;
        padding-bottom: 16px
    }

    .line-item .description {
        grid-column: 1/3
    }

    .line-item .remove-line {
        grid-column: 2;
        grid-row: auto;
        justify-self: end
    }

    .line-item .field {
        margin-bottom: 6px
    }

    .editor-total {
        flex-direction: column;
        gap: 8px
    }

    .search .button {
        font-size: 0.875rem;
        padding: 10px
    }

    .contact-row {
        flex-wrap: wrap
    }

    .contact-row form {
        margin-left: auto
    }

    .split {
        align-items: flex-start
    }

    .document-summary>strong {
        font-size: 1.4rem
    }

    .document-summary {
        min-width: 120px
    }

    .section-heading h2 {
        font-size: 1.1rem
    }

    .section-heading .muted {
        font-size: 0.875rem
    }

    .public .actions .text-button {
        font-size: 0.875rem
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important
    }
}

pre,
code,
kbd,
samp {
    font-family: inherit
}

.verification-panel {
    max-width: 690px;
    margin: auto
}

.qr-brand {
    border: 1px solid #c9dced;
    border-radius: 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    gap: 8px
}

.qr-brand strong {
    font-size: .875rem
}

.verification-panel .summary dd {
    font-weight: 600
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.language-switch .text-button {
    padding: 8px;
    min-height: 40px;
}

.language-switch [aria-pressed="true"] {
    background: var(--light);
    color: var(--blue);
    border-radius: 8px;
}

.plan-options {
    border: 0;
    padding: 0;
    margin: 24px 0;
}

.plan-options legend {
    font-weight: 700;
    margin-bottom: 16px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px 18px 20px;
    border: 2px solid var(--line);
    border-radius: 16px;
    cursor: pointer;
    font-size: .9375rem;
}

.plan-card.popular {
    border-color: var(--blue);
}

.plan-card:has(input:checked) {
    background: var(--light);
    box-shadow: 0 0 0 2px var(--blue);
}

.plan-card:has(input:focus-visible) {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

.plan-card:has(input:disabled) {
    opacity: .65;
    cursor: default;
}

.plan-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-heading input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--blue);
}

.plan-total {
    font-size: 1.25rem;
    color: var(--navy);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 12px;
    background: var(--blue);
    color: white;
    border-radius: 18px;
    padding: 4px 10px;
    font-size: .875rem;
    font-weight: 700;
}

.plan-discount {
    color: var(--blue);
}

@media(max-width:740px) {
    .plan-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.training-progress {
    margin-bottom: 24px;
    font-size: .9rem
}

.training-progress progress {
    display: block;
    width: 100%;
    margin-top: 12px
}

.training-stage {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto
}

.training-stage .brand-preview {
    margin-bottom: 24px
}

.training-highlight {
    outline: 3px solid #73a7e5;
    outline-offset: 6px;
    border-radius: 5px;
    scroll-margin-top: 100px
}

.training-coach {
    position: relative;
    padding: 18px 20px;
    margin: 24px 0;
    max-width: 540px;
    background: #eaf2fc;
    border: 1px solid #aac9ec;
    border-radius: 12px;
    box-shadow: 0 5px 16px #123e7310;
    font-size: .9rem
}

.training-coach::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 24px;
    width: 16px;
    height: 16px;
    background: #eaf2fc;
    border-top: 1px solid #aac9ec;
    border-left: 1px solid #aac9ec;
    transform: rotate(45deg)
}

.training-coach p {
    color: var(--navy)
}

.training-coach .actions {
    margin: 0;
    justify-content: space-between
}

.training-controls {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 24px 0
}