:root {
    --bg: #eef2f7;
    --bg-elev: #ffffff;
    --bg-soft: #f6f9fd;
    --surface: #ffffff;
    --surface-muted: #f1f5fb;
    --line: #d8e1ee;
    --line-strong: #bfd0e6;
    --text: #0f1f35;
    --text-muted: #5b6d85;
    --brand: #0e5ea8;
    --brand-2: #1f7ed8;
    --brand-3: #083f77;
    --success: #118a5a;
    --warning: #d38a00;
    --danger: #c63a3a;
    --info: #1870d5;
    --shadow-sm: 0 2px 10px rgba(14, 49, 86, 0.06);
    --shadow-md: 0 10px 30px rgba(10, 45, 86, 0.1);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --sidebar-w: 72px;
    --content-max: 1320px;
    --transition: 180ms ease;
    --font-sans: "Segoe UI Variable", "Bahnschrift", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background:
        radial-gradient(circle at 12% 10%, rgba(31, 126, 216, 0.12), transparent 40%),
        radial-gradient(circle at 85% 8%, rgba(14, 94, 168, 0.09), transparent 35%),
        linear-gradient(180deg, #f5f8fc 0%, #edf2f8 100%);
    line-height: 1.45;
}

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

a:hover {
    text-decoration: underline;
}

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

h1 {
    font-size: clamp(1.45rem, 2.8vw, 2.3rem);
    line-height: 1.12;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: clamp(1.05rem, 1.9vw, 1.35rem);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

h3 {
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 0.25rem;
}

p:last-child {
    margin-bottom: 0;
}

.muted {
    color: var(--text-muted);
}

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

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: linear-gradient(180deg, #0b5b9f 0%, #09497f 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    gap: 18px;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
    z-index: 20;
}

.brand-mark {
    width: 100%;
    min-height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.92rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.icon-link {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #eaf4ff;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform var(--transition), background-color var(--transition), border-color var(--transition);
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.02);
}

.icon-link:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.icon-link.is-active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.app-main {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    display: grid;
    grid-template-columns: auto minmax(220px, 1.1fr) minmax(320px, 1.4fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 18px;
    background:
        linear-gradient(135deg, rgba(14, 94, 168, 0.04), rgba(31, 126, 216, 0.08)),
        rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.topbar-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--brand-3);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.topbar-brand {
    min-width: 0;
}

.topbar-brand__title {
    color: var(--brand);
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 1.1rem;
}

.topbar-brand__subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.topbar-nav a {
    color: var(--text);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar-nav a:hover {
    background: rgba(14, 94, 168, 0.05);
    border-color: rgba(14, 94, 168, 0.08);
}

.topbar-nav a.is-active {
    background: rgba(14, 94, 168, 0.09);
    color: var(--brand-3);
    border-color: rgba(14, 94, 168, 0.15);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-chip {
    min-width: 0;
    display: grid;
    align-items: center;
    padding: 7px 10px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
}

.user-chip__name {
    font-weight: 600;
    font-size: 0.86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.user-chip__role {
    font-size: 0.73rem;
    color: var(--text-muted);
}

.page-content {
    width: min(100%, calc(var(--content-max) + 32px));
    margin: 0 auto;
    padding: 20px 16px 34px;
    display: grid;
    gap: 16px;
}

.flash-stack {
    display: grid;
    gap: 8px;
}

.flash {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.flash--success {
    border-color: rgba(17, 138, 90, 0.25);
    background: rgba(17, 138, 90, 0.08);
    color: #0d6945;
}

.flash--danger {
    border-color: rgba(198, 58, 58, 0.25);
    background: rgba(198, 58, 58, 0.08);
    color: #912929;
}

.flash--warning {
    border-color: rgba(211, 138, 0, 0.25);
    background: rgba(211, 138, 0, 0.08);
    color: #8a5b00;
}

.flash--info {
    border-color: rgba(24, 112, 213, 0.25);
    background: rgba(24, 112, 213, 0.08);
    color: #1353a0;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(14, 94, 168, 0.95), rgba(31, 126, 216, 0.92)),
        #0e5ea8;
    color: #f5fbff;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    opacity: 0.22;
    pointer-events: none;
}

.hero::before {
    width: 360px;
    height: 360px;
    right: -80px;
    top: -100px;
    background: radial-gradient(circle, #fff, transparent 70%);
}

.hero::after {
    width: 420px;
    height: 180px;
    left: -60px;
    bottom: -70px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), transparent);
    transform: rotate(-12deg);
}

.hero--compact {
    grid-template-columns: 1fr;
    padding: 20px;
}

.hero--dashboard {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.hero__content,
.hero__panel,
.hero__actions {
    position: relative;
    z-index: 1;
}

.hero__lead {
    font-size: 1rem;
    max-width: 70ch;
    color: rgba(245, 251, 255, 0.92);
}

.hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero__panel {
    padding: 8px;
}

.eyebrow {
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    height: 100%;
}

.feature-card {
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(4px);
}

.feature-card h3 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 16px;
}

.card--soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 255, 0.92));
}

.card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.card__header h2 {
    margin-bottom: 0;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.button-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    padding: 11px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn--primary {
    background: linear-gradient(180deg, var(--brand-2), var(--brand));
    color: #fff;
    box-shadow: 0 6px 16px rgba(14, 94, 168, 0.22);
}

.btn--primary:hover {
    box-shadow: 0 8px 18px rgba(14, 94, 168, 0.28);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    border-color: var(--line);
}

.btn--ghost:hover {
    background: #fff;
}

.btn--sm {
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 0.84rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.76rem;
    font-weight: 600;
    border: 1px solid transparent;
    line-height: 1.1;
}

.badge--muted {
    color: var(--text-muted);
    background: #f2f5fa;
    border-color: #dfe7f1;
}

.badge--info {
    color: #0f59ad;
    background: rgba(24, 112, 213, 0.1);
    border-color: rgba(24, 112, 213, 0.2);
}

.badge--success {
    color: #0f714a;
    background: rgba(17, 138, 90, 0.1);
    border-color: rgba(17, 138, 90, 0.2);
}

.badge--warning {
    color: #926100;
    background: rgba(211, 138, 0, 0.1);
    border-color: rgba(211, 138, 0, 0.2);
}

.badge--danger {
    color: #9a2b2b;
    background: rgba(198, 58, 58, 0.1);
    border-color: rgba(198, 58, 58, 0.2);
}

.form-stack {
    display: grid;
    gap: 14px;
}

.form-stack--tight {
    gap: 8px;
}

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

.field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.field--span-2 {
    grid-column: span 2;
}

.field--inline {
    display: inline-grid;
    align-items: center;
    gap: 6px;
}

.field__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.field__help,
.field__meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.field__error {
    color: var(--danger);
    font-size: 0.78rem;
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    padding: 10px 12px;
    transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.4;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: rgba(14, 94, 168, 0.45);
    box-shadow: 0 0 0 4px rgba(14, 94, 168, 0.1);
}

.is-invalid {
    border-color: rgba(198, 58, 58, 0.45) !important;
    box-shadow: 0 0 0 4px rgba(198, 58, 58, 0.08);
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 0.88rem;
}

.checkbox input {
    width: 16px;
    height: 16px;
}

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

.stats-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.stat-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 4px;
}

.stat-card strong {
    font-size: 1.25rem;
    color: var(--brand-3);
}

.stat-card__label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.table-wrap {
    width: 100%;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 760px;
}

.table th,
.table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
}

.table thead th {
    background: linear-gradient(180deg, #f6f9fe, #edf3fb);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody tr:hover {
    background: rgba(14, 94, 168, 0.03);
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table--compact th,
.table--compact td {
    padding: 8px 10px;
}

.table-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.table-cell-stack {
    display: grid;
    gap: 2px;
}

.meta-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.meta-list > div {
    display: grid;
    grid-template-columns: minmax(130px, 220px) 1fr;
    gap: 8px 12px;
    align-items: start;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--line);
}

.meta-list > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.meta-list dt {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.meta-list dd {
    margin: 0;
    font-weight: 500;
}

.empty-state {
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    padding: 20px;
    background: rgba(246, 250, 255, 0.7);
    display: grid;
    gap: 10px;
    justify-items: start;
}

.empty-state--small {
    padding: 14px;
}

.check-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 8px;
}

.notice {
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
}

.notice--warning {
    background: rgba(211, 138, 0, 0.08);
    border-color: rgba(211, 138, 0, 0.2);
    color: #875800;
}

.notice--danger {
    background: rgba(198, 58, 58, 0.08);
    border-color: rgba(198, 58, 58, 0.2);
    color: #8c2b2b;
}

.text-link {
    font-weight: 600;
}

.timeline {
    display: grid;
    gap: 10px;
}

.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
}

.timeline__dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-top: 6px;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(14, 94, 168, 0.12);
}

.timeline__body {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
}

.timeline__item.is-unread .timeline__body {
    border-color: rgba(24, 112, 213, 0.22);
    background: rgba(24, 112, 213, 0.03);
}

.timeline__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.review-form {
    display: grid;
    gap: 14px;
}

.review-form__toolbar {
    display: grid;
    gap: 12px;
}

.draft-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.83rem;
}

.stepper {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stepper__item {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
}

.stepper__item:hover {
    transform: translateY(-1px);
}

.stepper__item.is-active {
    border-color: rgba(14, 94, 168, 0.25);
    background: rgba(14, 94, 168, 0.06);
}

.stepper__item.is-complete {
    border-color: rgba(17, 138, 90, 0.25);
    background: rgba(17, 138, 90, 0.05);
}

.stepper__num {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-3);
    background: #eef4fd;
    border: 1px solid #d6e3f6;
}

.stepper__item.is-active .stepper__num {
    background: rgba(14, 94, 168, 0.12);
    border-color: rgba(14, 94, 168, 0.2);
}

.stepper__text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.stepper__text strong {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stepper__text small {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-step[hidden] {
    display: none !important;
}

.step-actions {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.review-field {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(248, 251, 255, 0.7);
}

.review-field__header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
}

.review-field__index {
    min-width: 32px;
    min-height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-weight: 700;
    color: var(--brand-3);
    background: #e9f2fe;
    border: 1px solid #d3e1f5;
}

.review-field__comment {
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
    display: grid;
    gap: 6px;
}

.review-readout {
    display: grid;
    gap: 12px;
}

.review-readout__item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    overflow: hidden;
}

.review-readout__header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #f7faff, #eff5fe);
}

.review-readout__num {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--brand-3);
    border: 1px solid #d8e4f5;
    background: #fff;
}

.review-readout__header h3 {
    margin: 0;
    font-size: 0.95rem;
}

.review-readout__body {
    padding: 12px;
    white-space: normal;
}

.review-readout__comment {
    padding: 0 12px 12px;
    display: grid;
    gap: 4px;
    color: var(--text-muted);
}

.review-readout__comment strong {
    color: var(--text);
    font-size: 0.84rem;
}

.print-page {
    background: #f5f7fb;
}

.print-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 8px;
    justify-content: center;
}

.print-container {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 18px 12px 32px;
}

.print-sheet {
    background: #fff;
    border: 1px solid #dce5f1;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 20px;
    display: grid;
    gap: 16px;
}

.print-sheet__header {
    border-bottom: 2px solid #e6eef9;
    padding-bottom: 12px;
}

.print-sheet__header h1 {
    margin-bottom: 0.3rem;
}

.print-sheet__status {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.print-block {
    display: grid;
    gap: 8px;
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.print-table th,
.print-table td {
    border: 1px solid #dce5f1;
    padding: 8px 10px;
    vertical-align: top;
    text-align: left;
}

.print-table th {
    width: 35%;
    background: #f6f9fe;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .stepper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero--dashboard {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .grid--3 {
        grid-template-columns: 1fr;
    }

    .grid--2 {
        grid-template-columns: 1fr;
    }

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

    .field--span-2 {
        grid-column: span 1;
    }

    .topbar {
        grid-template-columns: auto 1fr auto;
        gap: 10px;
    }

    .topbar-toggle {
        display: inline-grid;
        place-items: center;
    }

    .topbar-nav {
        display: none;
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin-top: 4px;
    }

    body.sidebar-open .topbar-nav {
        display: flex;
    }

    .topbar-brand__subtitle {
        white-space: normal;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform var(--transition);
        width: var(--sidebar-w);
        height: auto;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-main {
        min-height: 100vh;
    }
}

@media (max-width: 700px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .meta-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .page-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-user {
        display: none;
    }

    .step-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .step-actions .button-row {
        width: 100%;
        display: grid;
    }

    .step-actions .button-row .btn {
        width: 100%;
    }
}

@media print {
    body {
        background: #fff;
    }

    .no-print {
        display: none !important;
    }

    .print-container {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .print-sheet {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    .print-table th,
    .print-table td {
        font-size: 11pt;
    }
}
