.auth { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }
.auth-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.auth--wide .auth-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.auth-aside {
position: sticky; top: calc(var(--header-h) + 24px);
background: var(--graphite); color: #EEF5EC; border-radius: var(--radius-l);
padding: clamp(26px, 3.5vw, 40px); overflow: hidden; isolation: isolate;
}
.auth-aside::before {
content: ""; position: absolute; z-index: -1; inset-block-start: -160px; inset-inline-start: -140px; width: 420px; height: 420px;
background: radial-gradient(circle, rgba(183, 255, 114, .18), transparent 62%); pointer-events: none;
}
html[data-theme="dark"] .auth-aside { background: var(--surface); border: 1px solid #3A5042; }
.auth-kicker { color: var(--mint); font-weight: 700; font-size: .88rem; margin-bottom: 10px; }
.auth-aside .auth-title { color: #EEF5EC; }
.auth-title { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -.3px; line-height: 1.3; }
.auth-lead { margin-top: 12px; color: #C4D1C6; font-size: 1rem; }
.auth-points { list-style: none; padding: 0; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; color: #EEF5EC; font-size: .96rem; }
.auth-points .ico { flex: none; color: var(--mint); margin-top: 3px; }
.auth-steps { list-style: none; padding: 0; margin-top: 24px; counter-reset: s; display: flex; flex-direction: column; gap: 0; }
.auth-steps li { counter-increment: s; position: relative; padding-inline-start: 46px; padding-bottom: 18px; display: flex; flex-direction: column; }
.auth-steps li::before {
content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
display: grid; place-items: center; background: rgba(183, 255, 114, .14); color: var(--mint); font-family: var(--font-en); font-weight: 700; font-size: .88rem;
}
.auth-steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 14px; top: 32px; bottom: 2px; width: 2px; background: #3A5042; }
.auth-steps b { color: #EEF5EC; font-size: .98rem; }
.auth-steps span { color: #A9BAAD; font-size: .88rem; }
.auth-secure { display: flex; align-items: center; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid #3A5042; color: #A9BAAD; font-size: .85rem; }
.auth-secure .ico { flex: none; color: var(--mint); }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 3.5vw, 38px); box-shadow: var(--shadow-sm); }
.auth-card--narrow { max-width: 520px; }
.auth-alt { margin-top: 18px; text-align: center; color: var(--muted); font-size: .95rem; }
.auth-alt a, .auth-forgot a, .join-login a { color: var(--accent-ink); font-weight: 700; }
.auth-forgot { text-align: start; margin: -6px 0 18px; font-size: .9rem; }
.auth-form .field { margin-bottom: 16px; }
.auth-choose-head { margin-inline: auto; text-align: center; }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.role-card {
position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px;
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-sm);
transition: border-color .25s, transform .3s var(--ease);
}
.role-card:hover { border-color: var(--accent-ink); transform: translateY(-3px); }
.role-ico { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-ink); margin-bottom: 6px; }
.role-card h2 { font-size: 1.3rem; }
.role-card p { color: var(--ink-soft); font-size: .96rem; }
.role-go { margin-top: auto; padding-top: 12px; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--accent-ink); }
.wz-progress { list-style: none; padding: 0; display: flex; gap: 8px; margin-bottom: 26px; }
.wz-progress li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: .84rem; color: var(--muted); }
.wz-progress li::before { content: ""; height: 4px; border-radius: 999px; background: var(--surface-2); }
.wz-progress li.done::before, .wz-progress li[aria-current]::before { background: var(--accent-ink); }
.wz-progress li.done { cursor: pointer; }
.wz-progress li[aria-current] { color: var(--ink); font-weight: 700; }
.wz-n { display: none; }
.wz-head { margin-bottom: 20px; }
.wz-head h2 { font-size: 1.3rem; outline: none; }
.wz-head p { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.wz-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.wz-nav [data-wz="prev"] { margin-inline-end: auto; }
.btn.is-busy { opacity: .7; cursor: progress; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.form-grid > .field--wide, .form-grid > fieldset.field--wide { grid-column: 1 / -1; }
.field .field-hint { font-size: .82rem; color: var(--muted); }
.field-count { font-family: var(--font-en); font-size: .78rem; color: var(--muted); align-self: flex-end; margin-top: -4px; }
.field-count.ok { color: var(--ok); }
.field[hidden] { display: none; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-inline-end: 48px; }
.pw-toggle {
position: absolute; inset-block: 0; inset-inline-end: 4px; width: 42px; border: 0; background: none; color: var(--muted);
display: grid; place-items: center; border-radius: var(--radius-s);
}
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--ink); }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
fieldset.field legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.chip-group { font-size: .8rem; font-weight: 700; color: var(--muted); margin: 12px 0 6px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 999px;
border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--ink-soft); font-size: .88rem; font-weight: 500;
transition: background-color .18s, border-color .18s, color .18s;
}
html[data-theme="dark"] .chip span { background: var(--surface-2); }
.chip:hover span { border-color: var(--ink-soft); color: var(--ink); }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip input:checked + span::before { content: "✓"; font-weight: 800; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.field.invalid .chip span, .field.invalid .choice-opt span { border-color: var(--danger); }
.choice-list { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-opt { position: relative; flex: 1 1 140px; cursor: pointer; }
.choice--inline .choice-opt { flex: 0 1 110px; }
.choice-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-opt span {
display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 8px 14px;
border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); background: var(--bg-2); font-weight: 600; font-size: .92rem;
transition: border-color .18s, background-color .18s, box-shadow .18s;
}
html[data-theme="dark"] .choice-opt span { background: var(--surface-2); }
.choice-opt:hover span { border-color: var(--ink-soft); }
.choice-opt input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.choice-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.consent { margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--primary); }
.dash-app { padding: clamp(20px, 3vw, 36px) 0 clamp(48px, 7vw, 80px); min-height: 70vh; }
.dash-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.dash-grid > * { min-width: 0; }
.dash-side { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 14px; }
.dash-me { display: flex; gap: 12px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dash-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: 1.1rem; }
.dash-me .dash-avatar { color: var(--on-primary); font-size: 1.1rem; }
.dash-me b { display: block; font-size: .98rem; line-height: 1.4; }
.dash-me span { font-size: .82rem; color: var(--muted); }
.dash-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dash-nav a {
display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-s);
color: var(--ink-soft); font-weight: 600; font-size: .95rem; transition: background-color .15s, color .15s;
}
.dash-nav a .ico { flex: none; color: var(--muted); }
.dash-nav a:hover { background: var(--surface-2); color: var(--ink); }
.dash-nav a[aria-current="page"] { background: var(--primary); color: var(--on-primary); }
.dash-nav a[aria-current="page"] .ico { color: var(--on-primary); }
.dash-nav .nav-count { margin-inline-start: auto; font-family: var(--font-en); font-size: .75rem; font-weight: 700; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--accent-tint); color: var(--on-accent-tint); }
.dash-side .btn { justify-content: center; }
.dash-signout { border: 0; background: none; color: var(--muted); font-weight: 600; font-size: .9rem; padding: 8px; border-radius: var(--radius-s); }
.dash-signout:hover { color: var(--danger); background: var(--surface-2); }
.dash-main:focus { outline: none; }
.dash-loading { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 80px 0; color: var(--muted); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent-ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); letter-spacing: -.3px; }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back-link { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.back-link:hover { color: var(--ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(18px, 2.6vw, 26px); }
.panel + .panel, .panel + .panel-grid, .panel-grid + .panel, .kpis + .panel, .kpis + .panel-grid, .notice + .panel, .notice + .panel-grid { margin-top: 18px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel-title h2 { font-size: 1.08rem; }
.panel-title a { color: var(--accent-ink); font-weight: 700; font-size: .9rem; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel-grid > .panel + .panel { margin-top: 0; }
.panel-grid > * { min-width: 0; }
.panel-grid .dtable { min-width: 0; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin-bottom: 18px; }
.notice .ico { flex: none; margin-top: 2px; }
.notice h2 { font-size: 1.05rem; margin-bottom: 4px; }
.notice p { color: var(--ink-soft); font-size: .95rem; }
.notice--info { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-color: color-mix(in srgb, var(--accent-ink) 30%, var(--line)); }
.notice--info .ico { color: var(--accent-ink); }
.notice--warn { background: color-mix(in srgb, #E9A23B 12%, var(--surface)); border-color: color-mix(in srgb, #E9A23B 45%, var(--line)); }
.notice--warn .ico { color: #B26B00; }
html[data-theme="dark"] .notice--warn .ico { color: #F2B35C; }
.notice--danger { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.notice--danger .ico { color: var(--danger); }
.notice .btn { margin-top: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi b { font-family: var(--font-en); font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: .86rem; font-weight: 600; }
.kpi--accent { background: var(--graphite); border-color: var(--graphite); }
.kpi--accent b { color: var(--mint); }
.kpi--accent span { color: #C4D1C6; }
html[data-theme="dark"] .kpi--accent { background: var(--surface-2); border-color: #3A5042; }
a.kpi { transition: border-color .2s; }
a.kpi:hover { border-color: var(--accent-ink); }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 32px; gap: 10px; align-items: center; font-size: .88rem; }
.bar-row span { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--accent-ink); }
.bar-row b { font-family: var(--font-en); text-align: end; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--ink-soft); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill--new { background: #E3EEFB; color: #1F5AA6; }
.pill--in_review, .pill--pending { background: #FCF1DD; color: #8A5300; }
.pill--scoping, .pill--needs_info { background: #F3E8FB; color: #6B3A99; }
.pill--quoted { background: #E1F4F4; color: #17666A; }
.pill--in_progress, .pill--approved, .pill--active { background: var(--ok-bg); color: var(--ok); }
.pill--completed { background: var(--graphite); color: var(--mint); }
.pill--cancelled, .pill--rejected, .pill--suspended { background: var(--danger-bg); color: var(--danger); }
.pill--high { background: var(--danger-bg); color: var(--danger); }
html[data-theme="dark"] .pill--new { background: #16263A; color: #8DB8F0; }
html[data-theme="dark"] .pill--in_review, html[data-theme="dark"] .pill--pending { background: #2E2412; color: #F2C26B; }
html[data-theme="dark"] .pill--scoping, html[data-theme="dark"] .pill--needs_info { background: #261A33; color: #C9A2F0; }
html[data-theme="dark"] .pill--quoted { background: #112B2C; color: #7FD3D6; }
html[data-theme="dark"] .pill--completed { background: #2B3D22; color: var(--mint); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 7px; background: var(--surface-2); color: var(--ink-soft); font-size: .8rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.table-wrap { overflow-x: auto; margin-inline: calc(clamp(18px, 2.6vw, 26px) * -1); }
.dtable { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.dtable th { text-align: start; font-size: .78rem; font-weight: 700; color: var(--muted); padding: 10px clamp(18px, 2.6vw, 26px); border-bottom: 1px solid var(--line); white-space: nowrap; }
.dtable td { padding: 13px clamp(18px, 2.6vw, 26px); border-bottom: 1px solid var(--line); vertical-align: middle; }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr { transition: background-color .15s; }
.dtable tbody tr[data-href] { cursor: pointer; }
.dtable tbody tr[data-href]:hover { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.dtable .ref { font-family: var(--font-en); font-weight: 700; font-size: .85rem; color: var(--ink); white-space: nowrap; }
.dtable .sub { display: block; color: var(--muted); font-size: .8rem; }
.dtable a.row-link { color: var(--ink); font-weight: 700; }
.dtable time { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .ico { color: var(--line-strong); margin: 0 auto 10px; width: 40px; height: 40px; }
.empty p { margin-bottom: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filters input[type="search"], .filters select {
min-height: 42px; padding: 8px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); background: var(--bg-2); font-size: .92rem;
}
html[data-theme="dark"] .filters input[type="search"], html[data-theme="dark"] .filters select { background: var(--surface-2); }
.filters input[type="search"] { flex: 1 1 220px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.seg button { border: 0; background: none; min-height: 34px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; font-size: .88rem; color: var(--muted); }
.pager div { display: flex; gap: 6px; }
.detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.detail-head .ref { font-family: var(--font-en); font-weight: 800; font-size: 1rem; color: var(--muted); }
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.dl > div { padding: 11px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.dl > div.wide { grid-column: 1 / -1; }
.dl dt { font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.dl dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.dl dd.text { font-weight: 400; color: var(--ink-soft); white-space: pre-line; }
.dl a { color: var(--accent-ink); }
.stepper { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 4px 0 2px; }
.stepper li { display: flex; flex-direction: column; gap: 8px; font-size: .78rem; color: var(--muted); text-align: center; }
.stepper li::before { content: ""; height: 5px; border-radius: 999px; background: var(--surface-2); }
.stepper li.done::before { background: var(--accent-ink); }
.stepper li.current { color: var(--ink); font-weight: 700; }
.stepper li.current::before { background: var(--accent-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-ink) 22%, transparent); }
.timeline-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.timeline-list li { position: relative; padding-inline-start: 26px; padding-bottom: 18px; }
.timeline-list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.timeline-list li::after { content: ""; position: absolute; inset-inline-start: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline-list li:last-child::after { display: none; }
.timeline-list li.ev-note::before { background: var(--accent-ink); }
.timeline-list li.ev-status::before { background: var(--primary); }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .82rem; color: var(--muted); }
.ev-meta b { color: var(--ink); font-size: .88rem; }
.ev-body { margin-top: 6px; padding: 10px 14px; border-radius: var(--radius-s); background: var(--surface-2); color: var(--ink-soft); white-space: pre-line; font-size: .93rem; }
.ev-vis { font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); }
.ev-vis--client { background: var(--accent-tint); color: var(--on-accent-tint); }
.composer { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.composer textarea { width: 100%; min-height: 84px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); background: var(--bg-2); resize: vertical; }
html[data-theme="dark"] .composer textarea { background: var(--surface-2); }
.composer-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.composer select, .side-form select {
min-height: 42px; padding: 6px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); background: var(--bg-2); font-size: .9rem;
}
html[data-theme="dark"] .composer select, html[data-theme="dark"] .side-form select { background: var(--surface-2); }
.side-form { display: flex; flex-direction: column; gap: 14px; }
.side-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .88rem; }
.side-form .btn { justify-content: center; }
.side-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-danger { background: transparent; border-color: color-mix(in srgb, var(--danger) 55%, transparent); color: var(--danger); --btn-hover: var(--danger-bg); }
.btn-ok { background: var(--ok); color: #fff; --btn-hover: color-mix(in srgb, var(--ok) 85%, #000); }
html[data-theme="dark"] .btn-ok { color: #0E1611; }
.inline-status { font-size: .88rem; font-weight: 600; min-height: 1.4em; }
.inline-status.ok { color: var(--ok); }
.inline-status.err { color: var(--danger); }
.feed { list-style: none; padding: 0; display: flex; flex-direction: column; }
.feed li { display: flex; gap: 10px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.feed li:last-child { border-bottom: 0; }
.feed time { color: var(--muted); white-space: nowrap; font-size: .8rem; }
.mini-list { list-style: none; padding: 0; }
.mini-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { color: var(--ink); font-weight: 700; }
.mini-list .sub { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }
.edit-form .form-grid { margin-bottom: 4px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line); }
.welcome { margin-bottom: 18px; }
.notfound { text-align: center; }
.notfound .svc-hero-actions { justify-content: center; display: flex; gap: 12px; margin-top: 24px; }
@media (max-width: 1020px) {
.dash-grid { grid-template-columns: 1fr; }
.dash-side { position: static; flex-direction: column; }
.dash-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
.dash-nav::-webkit-scrollbar { display: none; }
.dash-nav a { flex: none; white-space: nowrap; }
.dash-me { display: none; }
.dash-side .dash-side-extra { display: none; }
.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
.auth-grid, .auth--wide .auth-grid { grid-template-columns: 1fr; }
.auth-aside { position: static; order: 2; }
.auth--choose .role-grid { grid-template-columns: 1fr; }
.role-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
.form-grid, .dl { grid-template-columns: 1fr; }
.wz-progress .wz-t { font-size: .75rem; }
.wz-nav { flex-wrap: wrap; }
.wz-nav .btn { flex: 1 1 auto; }
.stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
.bar-row { grid-template-columns: 96px minmax(0, 1fr) 28px; }
.auth-card { padding: 20px 18px; }
.table-wrap { margin-inline: 0; overflow: visible; }
.dtable, .panel-grid .dtable { min-width: 0; }
.dtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dtable, .dtable tbody { display: block; }
.dtable tbody tr { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dtable tbody tr:last-child { border-bottom: 0; }
.dtable td { display: block; padding: 0; border: 0; }
.dtable td:nth-child(2) { order: -1; flex: 1 1 100%; }
.page-head .page-actions { width: 100%; }
}
.stage:empty { display: none; }
.stage .notice { margin-bottom: 0; }
.pdoc { display: flex; flex-direction: column; gap: 20px; }
.pd-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pd-kicker { display: block; color: var(--accent-ink); font-weight: 700; font-size: .82rem; margin-bottom: 4px; }
.pd-head h2 { font-size: 1.25rem; line-height: 1.45; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--muted); font-size: .85rem; }
.pd-meta .ref { font-family: var(--font-en); font-weight: 700; color: var(--ink-soft); }
.pd-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pd-valid { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.pd-valid.is-expired { background: var(--danger-bg); color: var(--danger); }
.pd-response { margin: 0; padding: 14px 16px; border-inline-start: 4px solid #E9A23B; background: color-mix(in srgb, #E9A23B 10%, var(--surface)); border-radius: var(--radius-s); }
.pd-response b { display: block; font-size: .85rem; margin-bottom: 4px; }
.pd-response p { white-space: pre-line; color: var(--ink-soft); }
.pd-sec h3 { font-size: .95rem; margin-bottom: 8px; color: var(--ink); }
.pd-text { white-space: pre-line; color: var(--ink-soft); line-height: 1.9; }
.pd-list { margin: 0; padding-inline-start: 1.4em; display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); }
.pd-list li::marker { color: var(--accent-ink); font-weight: 700; font-family: var(--font-en); }
.pd-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pd-facts > div { background: var(--surface-2); border-radius: var(--radius-s); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.pd-facts span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.pd-facts b { font-size: .95rem; }
.pd-price { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pd-price th { text-align: start; font-weight: 500; color: var(--ink-soft); padding: 10px 0; border-bottom: 1px dashed var(--line); }
.pd-price td { text-align: end; padding: 10px 0; border-bottom: 1px dashed var(--line); font-weight: 600; white-space: nowrap; }
.pd-price .pd-total th, .pd-price .pd-total td { border-bottom: 0; padding-top: 14px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.pd-accepted { display: inline-flex; gap: 8px; align-items: center; color: var(--ok); font-weight: 700; font-size: .9rem; }
.pd-history { margin-top: 14px; }
.pd-history summary { cursor: pointer; font-weight: 700; color: var(--accent-ink); padding: 8px 0; }
.pd-history .pdoc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(18px, 2.6vw, 26px); margin-top: 12px; opacity: .92; }
.pill--p-draft { background: var(--surface-2); color: var(--ink-soft); }
.pill--p-sent { background: #E1F4F4; color: #17666A; }
.pill--p-accepted { background: var(--ok-bg); color: var(--ok); }
.pill--p-changes_requested { background: #FCF1DD; color: #8A5300; }
.pill--p-withdrawn { background: var(--surface-2); color: var(--muted); }
html[data-theme="dark"] .pill--p-sent { background: #112B2C; color: #7FD3D6; }
html[data-theme="dark"] .pill--p-changes_requested { background: #2E2412; color: #F2C26B; }
.pd-editor .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-vat { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; margin-bottom: 14px; }
.pd-vat input { width: 20px; height: 20px; accent-color: var(--primary); }
.pd-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 4px; }
.pd-sum > div { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.pd-sum span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.pd-sum b { font-size: 1.05rem; }
.pd-sum .pd-sum-total { background: var(--graphite); border-color: var(--graphite); }
.pd-sum .pd-sum-total span { color: #C4D1C6; }
.pd-sum .pd-sum-total b { color: var(--mint); font-size: 1.2rem; }
html[data-theme="dark"] .pd-sum .pd-sum-total { background: var(--surface-2); border-color: #3A5042; }
.pd-sum--side { grid-template-columns: 1fr; }
.action-box textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); background: var(--bg-2); resize: vertical; font-weight: 400; }
html[data-theme="dark"] .action-box textarea { background: var(--surface-2); }
.action-box > p { font-size: .88rem; }
@media (max-width: 640px) {
.pd-facts, .pd-sum, .pd-editor .form-grid { grid-template-columns: 1fr; }
.pd-head-side { align-items: flex-start; flex-direction: row; }
}
@media print {
body.printing-proposal * { visibility: hidden !important; }
body.printing-proposal .print-target, body.printing-proposal .print-target * { visibility: visible !important; }
body.printing-proposal .print-target { position: absolute; inset: 0 0 auto 0; padding: 0; color: #000; }
body.printing-proposal .pd-print { display: none !important; }
body.printing-proposal .pd-facts > div, body.printing-proposal .pd-valid { background: #F1F3F0 !important; }
}
.pill--post-draft { background: var(--surface-2); color: var(--ink-soft); }
.pill--post-review { background: #FCF1DD; color: #8A5300; }
.pill--post-published { background: var(--ok-bg); color: var(--ok); }
.pill--post-scheduled { background: #E1F4F4; color: #17666A; }
.pill--post-archived { background: var(--surface-2); color: var(--muted); }
html[data-theme="dark"] .pill--post-review { background: #2E2412; color: #F2C26B; }
html[data-theme="dark"] .pill--post-scheduled { background: #112B2C; color: #7FD3D6; }
.new-post-wrap:has(.new-post[hidden]) { display: none; }
.new-post { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.new-post input { flex: 1 1 280px; min-height: 48px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); background: var(--bg-2); font-size: 1rem; }
.new-post .inline-status { flex-basis: 100%; }
.writer-invite { display: flex; flex-wrap: wrap; gap: 10px; }
.writer-invite input, .copy-link { flex: 1 1 200px; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); background: var(--bg-2); }
.copy-link { width: 100%; margin-top: 10px; font-size: .85rem; }
html[data-theme="dark"] .new-post input, html[data-theme="dark"] .writer-invite input, html[data-theme="dark"] .copy-link { background: var(--surface-2); }
.sub-title { font-size: .95rem; margin: 18px 0 10px; }
.ed-grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.ed-title { font-size: 1.35rem !important; font-weight: 700; }
.ed-body-field { margin-bottom: 6px; }
.ed-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
.ed-tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 700; font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ed-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent-ink); }
.ed-words { margin-inline-start: auto; font-size: .8rem; color: var(--muted); }
.ed-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px 0; position: sticky; top: var(--header-h); background: var(--surface); z-index: 2; }
.tb-btn { min-width: 38px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg-2); font-weight: 700; font-size: .88rem; color: var(--ink-soft); }
.tb-btn:hover:not(:disabled) { border-color: var(--line-strong); color: var(--ink); }
.tb-btn:disabled { opacity: .45; cursor: not-allowed; }
.tb-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.ed-body { min-height: 520px !important; font-size: 1.02rem; line-height: 2; font-family: var(--font); }
.ed-preview { min-height: 520px; padding: 18px 4px; border-top: 1px dashed var(--line); }
.ed-help { margin-top: 4px; }
.save-state { font-size: .82rem; font-weight: 600; color: var(--muted); }
.save-state.is-dirty { color: #8A5300; }
.save-state.is-saved { color: var(--ok); }
.save-state.is-error { color: var(--danger); }
html[data-theme="dark"] .save-state.is-dirty { color: #F2C26B; }
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.checklist li { display: flex; gap: 10px; align-items: baseline; }
.checklist li span:first-child { font-weight: 800; width: 1em; text-align: center; }
.checklist .ok { color: var(--ok); }
.checklist .bad { color: var(--ink-soft); }
.checklist .bad span:first-child { color: #B26B00; }
.checklist .opt { color: var(--muted); font-size: .84rem; }
.ed-settings .field { margin-bottom: 14px; }
.ed-settings .field label { display: flex; flex-direction: column; gap: 6px; }
.ed-settings .field input:not([type="checkbox"]), .ed-settings .field select { min-height: 44px !important; }
.slug-prefix { font-family: var(--font-en); font-size: .8rem; color: var(--muted); margin-top: -2px; }
.ed-cover { display: flex; flex-direction: column; gap: 10px; }
.ed-cover-img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius-s); border: 1px solid var(--line); }
.schedule summary { cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--accent-ink); padding: 4px 0; }
.schedule .side-form { margin-top: 10px; }
.schedule input[type="datetime-local"] { min-height: 44px; padding: 6px 10px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); background: var(--bg-2); }
.ed-preview h2 { font-size: 1.35rem; margin: 1.4em 0 .5em; }
.ed-preview h3 { font-size: 1.12rem; margin: 1.2em 0 .4em; }
.ed-preview p, .ed-preview ul, .ed-preview ol, .ed-preview blockquote { margin: 0 0 1em; line-height: 2; color: var(--ink-soft); }
.ed-preview ul, .ed-preview ol { padding-inline-start: 1.4em; }
.ed-preview blockquote { border-inline-start: 4px solid var(--accent-ink); padding: 4px 16px; background: var(--surface-2); border-radius: var(--radius-s); }
.ed-preview img { max-width: 100%; border-radius: var(--radius-s); }
.ed-preview a { color: var(--accent-ink); text-decoration: underline; }
@media (max-width: 1020px) { .ed-grid { grid-template-columns: 1fr; } .ed-toolbar { position: static; } }
