:root {
    --ink: #180a46;
    --ink-2: #2d176f;
    --purple: #7f36e8;
    --purple-2: #a65bff;
    --violet: #5c24c9;
    --cyan: #62e5df;
    --cyan-2: #27c8d8;
    --mint: #90ffdc;
    --pink: #ff61d8;
    --yellow: #ffe86a;
    --white: #ffffff;
    --soft: #f6f2ff;
    --card: rgba(255, 255, 255, .94);
    --text: #20143d;
    --muted: #6b6385;
    --line: rgba(127, 54, 232, .18);
    --danger: #b91c1c;
    --success: #15803d;
    --shadow: 0 22px 55px rgba(56, 19, 133, .18);
    --shadow-strong: 0 28px 80px rgba(45, 23, 111, .30);
    --radius: 26px;
    --radius-sm: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: Arial, 'Helvetica Neue', sans-serif;
    color: var(--text);
    font-size: 16px;
    line-height: 1.56;
    background:
        radial-gradient(circle at 8% 8%, rgba(255, 97, 216, .18), transparent 26%),
        radial-gradient(circle at 95% 12%, rgba(98, 229, 223, .30), transparent 30%),
        linear-gradient(135deg, #f8f2ff 0%, #eefcff 44%, #f5efff 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(135deg, rgba(127, 54, 232, .05) 25%, transparent 25%),
        linear-gradient(315deg, rgba(39, 200, 216, .07) 25%, transparent 25%);
    background-position: 0 0, 18px 18px;
    background-size: 36px 36px;
    opacity: .45;
}

body.admin-page {
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 97, 216, .14), transparent 26%),
        radial-gradient(circle at 100% 12%, rgba(98, 229, 223, .24), transparent 30%),
        linear-gradient(135deg, #f5efff 0%, #eefcff 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.container.narrow {
    width: min(940px, calc(100% - 32px));
}

.container.wide {
    width: min(1380px, calc(100% - 24px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(127, 54, 232, .14);
    box-shadow: 0 10px 30px rgba(45, 23, 111, .08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.brand-logo {
    width: 52px;
    height: 58px;
    object-fit: contain;
    background: #fff;
    border-radius: 18px;
    padding: 6px;
    box-shadow: 0 10px 25px rgba(127, 54, 232, .18);
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-text strong {
    width: max-content;
    max-width: 100%;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.1;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-text small {
    max-width: 620px;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.top-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 900;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(127, 54, 232, .14);
    box-shadow: 0 8px 20px rgba(45, 23, 111, .08);
}

.top-nav a:hover,
.top-nav a:focus-visible {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    color: #fff;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0 56px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 22%, rgba(255, 97, 216, .72), transparent 25%),
        radial-gradient(circle at 78% 16%, rgba(98, 229, 223, .82), transparent 28%),
        linear-gradient(135deg, #2a0b72 0%, #7b35ee 46%, #31d4da 100%);
}

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

.hero::before {
    width: 520px;
    height: 520px;
    right: -220px;
    bottom: -220px;
    background: rgba(255, 255, 255, .18);
    border: 2px dashed rgba(255, 255, 255, .38);
}

.hero::after {
    width: 260px;
    height: 260px;
    left: -110px;
    top: 70px;
    background: rgba(255, 232, 106, .18);
    border: 2px solid rgba(255, 255, 255, .18);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr);
    gap: 34px;
    align-items: center;
}

.eyebrow,
.step-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.eyebrow {
    color: #fff;
    background: rgba(24, 10, 70, .40);
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 12px 26px rgba(24, 10, 70, .18);
}

.section .step-label,
.admin-head .step-label,
.instruction-head .step-label {
    color: var(--ink);
    background: linear-gradient(135deg, rgba(144, 255, 220, .86), rgba(255, 255, 255, .86));
    border: 1px solid rgba(98, 229, 223, .46);
}

.hero h1 {
    max-width: 850px;
    margin: 18px 0 16px;
    font-size: clamp(38px, 6.5vw, 72px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 900;
    text-shadow: 0 4px 0 rgba(24, 10, 70, .20);
}

.hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .94);
    font-size: 19px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.quick-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.quick-badges span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 14px;
    font-weight: 900;
}

.hero-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border-radius: 34px;
    text-align: center;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(14px);
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 26px;
    border: 2px dashed rgba(255, 255, 255, .24);
    pointer-events: none;
}

.hero-card img {
    position: relative;
    z-index: 1;
    width: 132px;
    height: 154px;
    object-fit: contain;
    padding: 12px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 18px 34px rgba(24, 10, 70, .25);
}

.hero-card h2 {
    position: relative;
    z-index: 1;
    margin: 18px 0 8px;
    font-size: 28px;
}

.hero-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    color: var(--ink);
    background: linear-gradient(135deg, var(--mint), var(--cyan), #ffffff);
    box-shadow: 0 14px 26px rgba(39, 200, 216, .28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(39, 200, 216, .36);
}

.btn-outline {
    color: var(--ink);
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(127, 54, 232, .18);
    box-shadow: 0 10px 25px rgba(45, 23, 111, .08);
}

.hero .btn-outline {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .30);
}

.btn-muted {
    color: #746e88;
    background: #ece7f7;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-full {
    width: 100%;
}

.small-link {
    color: var(--violet);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.section {
    padding: 54px 0;
}

.section-light {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 16%, rgba(255, 97, 216, .11), transparent 26%),
        radial-gradient(circle at 94% 18%, rgba(98, 229, 223, .22), transparent 28%),
        rgba(255, 255, 255, .70);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    max-width: 850px;
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 12px 0 8px;
    color: var(--ink);
    font-size: clamp(30px, 4.2vw, 44px);
    line-height: 1.04;
    letter-spacing: -.025em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

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

.briefing-card,
.info-box,
.instruction-panel,
.success-card,
.login-card,
.table-card,
.stat-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.briefing-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
}

.briefing-card::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -60px;
    width: 160px;
    height: 160px;
    border-radius: 45px;
    background: linear-gradient(135deg, rgba(255, 97, 216, .28), rgba(98, 229, 223, .32));
    transform: rotate(16deg);
}

.briefing-card > * {
    position: relative;
    z-index: 1;
}

.briefing-card.is-disabled {
    opacity: .78;
}

.card-badge {
    align-self: flex-start;
    color: var(--ink);
    background: linear-gradient(135deg, var(--mint), #fff);
    border: 1px solid rgba(98, 229, 223, .45);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 900;
}

.briefing-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 26px;
    line-height: 1.13;
}

.briefing-card p {
    margin: 0;
    color: var(--muted);
}

.mini-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mini-list li {
    position: relative;
    padding-left: 24px;
    color: #3b315d;
}

.mini-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--cyan-2);
    font-weight: 900;
}

.mini-list.numbered {
    counter-reset: item;
}

.mini-list.numbered li {
    counter-increment: item;
    padding-left: 34px;
}

.mini-list.numbered li::before {
    content: counter(item);
    display: grid;
    place-items: center;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    font-size: 12px;
}

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

.info-box {
    padding: 22px;
}

.info-box strong {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    font-size: 20px;
    box-shadow: 0 12px 22px rgba(127, 54, 232, .20);
}

.info-box h3 {
    margin: 14px 0 6px;
    color: var(--ink);
}

.info-box p {
    margin: 0;
    color: var(--muted);
}

.progressbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 13px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(45, 23, 111, .08);
}

.progress-step span {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--ink);
    background: #f0e9ff;
    font-weight: 900;
}

.progress-step small {
    min-width: 0;
    color: var(--muted);
    font-weight: 900;
}

.progress-step.current {
    border-color: rgba(39, 200, 216, .55);
    box-shadow: 0 15px 32px rgba(39, 200, 216, .14);
}

.progress-step.current span {
    color: var(--ink);
    background: linear-gradient(135deg, var(--mint), var(--cyan));
}

.progress-step.done span {
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.instruction-panel {
    overflow: hidden;
    padding: 24px;
}

.instruction-head {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.instruction-head h1 {
    margin: 12px 0 8px;
    color: var(--ink);
    font-size: clamp(25px, 4vw, 34px);
    line-height: 1.08;
    letter-spacing: -.02em;
}

.instruction-head p {
    margin: 0;
    color: var(--muted);
}

.instruction-content {
    overflow: auto;
    max-height: 74vh;
    padding: 18px;
    background: linear-gradient(135deg, rgba(246, 242, 255, .96), rgba(238, 252, 255, .96));
    border: 1px solid var(--line);
    border-radius: 22px;
    -webkit-overflow-scrolling: touch;
}

.instruction-content.reached-bottom {
    box-shadow: inset 0 -5px 0 var(--cyan-2);
}

.scan-pages {
    display: grid;
    gap: 18px;
}

.scan-page {
    margin: 0;
    padding: 12px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(127, 54, 232, .14);
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(45, 23, 111, .10);
}

.scan-page img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.scan-page figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.document-text {
    padding: 28px;
    color: #161028;
    background: #fff;
    border-radius: 18px;
    line-height: 1.68;
}

.document-text .doc-title {
    text-align: center;
}

.document-text h2,
.document-text h3 {
    color: #161028;
}

.document-text h2 {
    font-size: 24px;
}

.document-text h3 {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #ece7f7;
}

.document-text ul,
.document-text ol {
    padding-left: 24px;
}

.approved-block {
    margin: 24px 0;
    text-align: right;
}

.signatures {
    margin-top: 28px;
}

.confirm-box {
    margin-top: 18px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(144, 255, 220, .32), rgba(255, 255, 255, .96));
    border: 1px solid rgba(39, 200, 216, .36);
    border-radius: 20px;
}

.confirm-box.inside-form {
    margin: 0;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink);
    font-weight: 900;
}

.checkbox-row input {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    min-height: 22px;
    margin-top: 2px;
    accent-color: var(--purple);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 18px;
}

.alert-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.alert-success {
    color: #14532d;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.final-form {
    display: grid;
    gap: 18px;
}

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

label span {
    display: block;
    margin-bottom: 7px;
    color: #3b315d;
    font-weight: 900;
}

input,
select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    color: var(--text);
    background: #fff;
    border: 1px solid rgba(127, 54, 232, .20);
    border-radius: 16px;
}

input:focus,
select:focus {
    outline: 4px solid rgba(98, 229, 223, .28);
    border-color: var(--cyan-2);
}

.success-card {
    padding: 34px;
    text-align: center;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    border-radius: 50%;
    box-shadow: 0 18px 35px rgba(39, 200, 216, .22);
    font-size: 44px;
    font-weight: 900;
}

.success-card h1 {
    margin: 0 0 10px;
    color: var(--ink);
}

.success-card p {
    color: var(--muted);
}

.summary-table {
    display: grid;
    gap: 10px;
    margin: 24px 0;
    text-align: left;
}

.summary-table div {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 12px;
    padding: 12px;
    background: rgba(246, 242, 255, .85);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.summary-table span {
    color: var(--muted);
    font-weight: 900;
}

.summary-table strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 900;
}

.admin-section {
    padding-top: 32px;
}

.admin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.admin-head h1 {
    margin: 10px 0 4px;
    color: var(--ink);
}

.admin-head p {
    margin: 0;
    color: var(--muted);
}

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

.stat-card {
    padding: 20px;
}

.stat-card span {
    color: var(--muted);
    font-weight: 900;
}

.stat-card strong {
    display: block;
    color: var(--ink);
    font-size: 34px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr .75fr .75fr auto auto auto;
    gap: 10px;
    padding: 14px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.table-card {
    overflow: auto;
}

.admin-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

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

.admin-table th {
    color: var(--ink);
    background: linear-gradient(135deg, rgba(246, 242, 255, .94), rgba(238, 252, 255, .94));
    font-size: 13px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.admin-table tr:hover td {
    background: rgba(238, 252, 255, .54);
}

.empty-cell {
    padding: 28px !important;
    color: var(--muted);
    text-align: center;
}

.status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.status.ok {
    color: #14532d;
    background: #dcfce7;
}

.status.bad {
    color: #991b1b;
    background: #fee2e2;
}

.login-wrap {
    display: grid;
    place-items: center;
    min-height: 60vh;
}

.login-card {
    width: min(440px, 100%);
    padding: 28px;
}

.login-card h1 {
    margin: 0 0 8px;
    color: var(--ink);
}

.login-card p {
    margin: 0 0 18px;
    color: var(--muted);
}

.login-card label {
    display: block;
    margin-bottom: 14px;
}

.view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.view-item {
    padding: 14px;
    background: rgba(246, 242, 255, .86);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.view-item span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.view-item strong {
    display: block;
    min-width: 0;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.view-item.full {
    grid-column: 1 / -1;
}

.site-footer {
    padding: 22px 0;
    color: rgba(255, 255, 255, .86);
    background: linear-gradient(135deg, #180a46, #5c24c9 58%, #27c8d8);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 14px;
}

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

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        padding: 52px 0 42px;
    }

    .hero-card {
        max-width: 440px;
        margin: 0 auto;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 15px;
        line-height: 1.52;
    }

    .container,
    .container.narrow,
    .container.wide {
        width: min(100% - 22px, 1160px);
    }

    .site-header {
        position: sticky;
    }

    .header-inner {
        align-items: center;
        gap: 10px;
        padding: 8px 0;
    }

    .brand {
        gap: 9px;
    }

    .brand-logo {
        width: 42px;
        height: 48px;
        border-radius: 14px;
    }

    .brand-text strong {
        max-width: 170px;
        font-size: 16px;
    }

    .brand-text small {
        display: none;
    }

    .top-nav {
        gap: 6px;
    }

    .top-nav a {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .hero {
        padding: 42px 0 34px;
        border-bottom-left-radius: 34px;
        border-bottom-right-radius: 34px;
    }

    .hero h1 {
        margin-top: 16px;
        font-size: clamp(34px, 12vw, 48px);
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 22px;
    }

    .quick-badges {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-card {
        padding: 20px;
        border-radius: 26px;
    }

    .hero-card::before {
        inset: 12px;
        border-radius: 20px;
    }

    .hero-card img {
        width: 94px;
        height: 112px;
        border-radius: 20px;
    }

    .section {
        padding: 38px 0;
    }

    .section-head {
        margin-bottom: 18px;
    }

    .section-head h2 {
        font-size: 30px;
    }

    .section-head p {
        font-size: 15px;
    }

    .briefing-card,
    .info-box,
    .instruction-panel,
    .success-card,
    .login-card,
    .stat-card {
        border-radius: 22px;
    }

    .briefing-card,
    .instruction-panel,
    .success-card,
    .login-card {
        padding: 18px;
    }

    .briefing-card h3 {
        font-size: 22px;
    }

    .progressbar {
        position: sticky;
        top: 65px;
        z-index: 20;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 8px;
        margin: -8px -8px 14px;
        background: rgba(255, 255, 255, .88);
        border: 1px solid rgba(127, 54, 232, .12);
        border-radius: 20px;
        backdrop-filter: blur(14px);
        box-shadow: 0 12px 28px rgba(45, 23, 111, .09);
    }

    .progress-step {
        justify-content: center;
        gap: 6px;
        padding: 8px 5px;
        border-radius: 15px;
    }

    .progress-step span {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .progress-step small {
        display: none;
    }

    .instruction-content {
        max-height: none;
        padding: 10px;
        overflow: visible;
        border-radius: 18px;
    }

    .scan-pages {
        gap: 12px;
    }

    .scan-page {
        padding: 6px;
        border-radius: 14px;
    }

    .scan-page img {
        border-radius: 10px;
    }

    .document-text {
        padding: 16px;
        border-radius: 14px;
        font-size: 15px;
        line-height: 1.58;
    }

    .document-text h2 {
        font-size: 20px;
    }

    .document-text ul,
    .document-text ol {
        padding-left: 20px;
    }

    .confirm-box {
        padding: 14px;
    }

    .checkbox-row {
        gap: 10px;
        font-size: 15px;
    }

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

    .btn {
        width: 100%;
        min-height: 50px;
        padding: 13px 16px;
        font-size: 15px;
    }

    .summary-table div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .admin-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .table-card {
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .admin-table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table tr,
    .admin-table th,
    .admin-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .admin-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .admin-table tr {
        margin-bottom: 12px;
        overflow: hidden;
        background: rgba(255, 255, 255, .94);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

    .admin-table td {
        display: grid;
        grid-template-columns: 118px 1fr;
        gap: 10px;
        padding: 11px 12px;
        border-bottom: 1px solid rgba(127, 54, 232, .10);
    }

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

    .admin-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-weight: 900;
    }

    .empty-cell {
        display: block !important;
        text-align: center;
    }

    .empty-cell::before {
        content: '' !important;
    }

    .view-grid {
        gap: 10px;
    }

    .footer-inner {
        display: grid;
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .container,
    .container.narrow,
    .container.wide {
        width: min(100% - 18px, 1160px);
    }

    .brand-text strong {
        max-width: 138px;
    }

    .top-nav a {
        padding: 8px 8px;
        font-size: 11px;
    }

    .eyebrow,
    .step-label,
    .card-badge {
        font-size: 11px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .instruction-head h1 {
        font-size: 23px;
    }

    .document-text {
        padding: 13px;
        font-size: 14px;
    }

    .admin-table td {
        grid-template-columns: 96px 1fr;
        font-size: 14px;
    }
}
