@media (max-width: 760px) {
    html, body { overflow-x: hidden; }
    .container { width: min(100% - 30px, 620px); }
    .site-header { height: 68px; }
    .site-header .container { width: calc(100% - 30px); }
    .menu-toggle { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border-radius: 12px; }
    .menu-toggle span { display: block; width: 21px; height: 2px; border-radius: 2px; background: currentColor; }
    .main-nav{position:absolute;top:68px;right:15px;left:15px;display:none;flex-direction:column;align-items:stretch;gap:0;padding:8px;border:1px solid #dce5df;border-radius:16px;background:rgba(255,255,255,.98);box-shadow:0 18px 40px rgba(16,35,30,.16);z-index:50}
    .main-nav.is-open { display: flex; }
    .main-nav a, .main-nav .nav-logout { display: block; width: 100%; padding: 12px 13px; border-radius: 10px; text-align: left; font-size: 13px; }
    .main-nav a:hover, .main-nav .nav-logout:hover { background: #f0f5f1; }
    .main-nav .nav-cta { margin-top: 4px; text-align: center; }
    .main-nav form { width: 100%; }
    .hero { min-height: auto; padding: 54px 0 28px; }
    .hero__content, .about__layout { grid-template-columns: 1fr; gap: 34px; }
    .hero h1 { font-size: clamp(38px, 12vw, 58px); }
    .hero__lead { font-size: 15px; margin: 20px 0 24px; }
    .hero__visual { min-height: 330px; }
    .hero-card--main { width: min(100%, 360px); }
    .section { padding: 70px 0; }
    .section-heading { display: block; margin-bottom: 28px; }
    .section-heading__note { margin-top: 14px; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card--featured { grid-row: auto; min-height: 300px; }
    .cta__inner { display: block; }
    .cta__inner .button { margin-top: 24px; }
    .dashboard-shell { padding: 22px 15px 70px; }
    .dashboard-top { display: block; }
    .dashboard-top .button { margin-top: 14px; }
    .dashboard-card { overflow: hidden; padding: 22px 18px; }
    .application-form, .form-row, .verification-summary { grid-template-columns: 1fr; }
    .verification-toggle { overflow-x: auto; padding-bottom: 4px; white-space: nowrap; }
    .verification-toggle a { flex: 0 0 auto; }
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { min-width: 650px; }
    .admin-actions { margin-top: 0; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .slip-toolbar { align-items: stretch; flex-direction: column; }
    .slip-toolbar > div { display: flex; flex-wrap: wrap; gap: 8px; }
    .slip-toolbar .button { flex: 1 1 auto; }
    .identity-slip { padding: 20px; }
    .service-catalog { grid-template-columns: 1fr; }
    .catalog-card { min-height: 0; }
    .catalog-card__bottom { align-items: flex-end; }
    .receipt-card__head,.receipt-grid { grid-template-columns: 1fr; display: grid; }
    .site-footer { padding: 28px 0 14px; }
    .site-footer .footer__top { display: grid; grid-template-columns: 1fr; gap: 18px; text-align: left; }
    .site-footer .footer__links { display: flex; flex-wrap: wrap; gap: 14px 22px; }
    .site-footer .footer__bottom { display: grid; gap: 5px; line-height: 1.4; }
}

@media (max-width: 480px) {
    .brand { font-size: 16px; }
    .brand__mark { width: 26px; height: 26px; }
    .hero__actions { align-items: stretch; flex-direction: column; }
    .hero__actions .button { width: 100%; }
    .admin-stats { grid-template-columns: 1fr; }
    .form-heading h2 { font-size: 25px; }
    .identity-slip__meta { grid-template-columns: 1fr; }
}

/* Shared usability polish */
:focus-visible { outline: 3px solid rgba(116,149,30,.55); outline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button:disabled, .button[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
.dashboard-page { min-height: calc(100vh - 150px); }
.dashboard-shell { padding-top: 42px; }
.dashboard-top { align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.dashboard-top h1 { font-size: clamp(32px, 4vw, 54px); }
.dashboard-card { border: 1px solid rgba(217,225,219,.9); box-shadow: 0 12px 32px rgba(23,61,51,.06); }
.card-heading { margin-bottom: 20px; }
.card-heading h2, .form-heading h2 { margin-top: 5px; }
.form-heading p, .card-heading p { color: var(--muted); max-width: 680px; }
.application-form label, .admin-form label { color: #44554d; font-size: 13px; font-weight: 700; }
.application-form small, .admin-form small { color: #78867f; font-size: 11px; font-weight: 400; }
.application-form input, .application-form select, .application-form textarea,
.admin-form input, .admin-form select, .admin-form textarea {
    border: 1px solid #d3ded6;
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.application-form input:focus, .application-form select:focus, .application-form textarea:focus,
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
    border-color: #91ad45;
    box-shadow: 0 0 0 4px rgba(145,173,69,.13);
    outline: 0;
}
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.admin-actions .button { min-height: 44px; }
.admin-stats { gap: 14px; }
.admin-stats > div { border: 1px solid rgba(217,225,219,.9); box-shadow: 0 8px 24px rgba(23,61,51,.05); }
.status-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.status-pill--successful, .status-pill--paid, .status-pill--completed { background: #e5f4df; color: #43763d; }
.status-pill--pending, .status-pill--processing { background: #fff2d9; color: #996315; }
.status-pill--failed, .status-pill--cancelled { background: #fde5e5; color: #a04444; }
.table-wrap table { border-collapse: separate; border-spacing: 0; }
.table-wrap th { background: #f4f7f3; color: #68786f; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.table-wrap th, .table-wrap td { border-bottom: 1px solid #e5ece7; }
.form-success, .form-error { border-radius: 12px; }

/* Clear, consistent form controls across customer and admin workflows */
.application-form {
    gap: 19px;
}
.application-form label:has(> input:not([type="checkbox"]):not([type="radio"])),
.application-form label:has(> select),
.application-form label:has(> textarea),
.admin-form label:has(> input:not([type="checkbox"]):not([type="radio"])),
.admin-form label:has(> select),
.admin-form label:has(> textarea) {
    display: grid;
    gap: 8px;
    line-height: 1.4;
}
.application-form label > input:not([type="checkbox"]):not([type="radio"]),
.application-form label > select,
.application-form label > textarea,
.admin-form label > input:not([type="checkbox"]):not([type="radio"]),
.admin-form label > select,
.admin-form label > textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d3ded6;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: 400 14px/1.4 'DM Sans', sans-serif;
    box-shadow: 0 2px 5px rgba(23,61,51,.025);
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.application-form label > textarea,
.admin-form label > textarea {
    min-height: 110px;
    resize: vertical;
}
.application-form label > input::placeholder,
.application-form label > textarea::placeholder,
.admin-form label > input::placeholder,
.admin-form label > textarea::placeholder {
    color: #9aa79f;
}
.application-form label > input:focus,
.application-form label > select:focus,
.application-form label > textarea:focus,
.admin-form label > input:focus,
.admin-form label > select:focus,
.admin-form label > textarea:focus {
    border-color: #78983b;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(120,152,59,.14);
    outline: 0;
}
.application-form label > input[type="file"],
.admin-form label > input[type="file"] {
    min-height: auto;
    padding: 10px;
    background: #f8faf7;
    font-size: 12px;
}
.application-form label > input[type="file"]::file-selector-button,
.admin-form label > input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: #e9f3d8;
    color: #456a39;
    font: 700 12px 'DM Sans', sans-serif;
    cursor: pointer;
}
.application-form label small,
.admin-form label small {
    line-height: 1.5;
}
.application-form .form-row,
.admin-form .form-row {
    gap: 16px;
    align-items: start;
}
.application-form .button[type="submit"],
.admin-form .button[type="submit"] {
    min-height: 48px;
    padding-inline: 22px;
}
.application-form .button:disabled {
    transform: none;
}
.form-heading {
    margin-bottom: 24px;
}
.form-heading > span {
    display: inline-block;
    margin-bottom: 10px;
    color: #698077;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}
.form-heading p {
    line-height: 1.65;
}
.form-error,
.form-success {
    padding: 14px 16px;
    line-height: 1.55;
}
.consent-check {
    padding: 14px;
    border: 1px solid #dce5de;
    border-radius: 12px;
    background: #f8faf7;
}
.consent-check input[type="checkbox"],
.application-form input[type="checkbox"],
.application-form input[type="radio"] {
    width: 18px !important;
    height: 18px;
    accent-color: #557b36;
    flex: 0 0 auto;
}
.auth-panel--form {
    background: rgba(255,255,255,.68);
}
.auth-panel--form .application-form {
    padding: 24px;
    border: 1px solid rgba(217,225,219,.9);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(23,61,51,.08);
}
.auth-panel--form .form-heading h2 {
    letter-spacing: -.045em;
}
.auth-panel--form .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #61736b;
    font-size: 13px;
    font-weight: 600;
}
.request-card {
    overflow: hidden;
}

@media (max-width: 760px) {
    .auth-page {
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
    }
    .auth-panel {
        width: 100%;
        min-width: 0;
        padding: 36px 25px;
    }
    .auth-panel--intro {
        padding-right: 25px;
    }
    .auth-panel--form {
        padding-left: 25px;
        padding-right: 25px;
    }
    .auth-panel--form .application-form {
        padding: 19px;
    }
    .application-form .form-row,
    .admin-form .form-row {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 760px) {
    .dashboard-shell { padding-top: 28px; }
    .dashboard-top h1 { font-size: 34px; }
    .admin-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-actions .button { width: 100%; padding-inline: 10px; }
    .dashboard-card { border-radius: 16px; }
    .form-row { gap: 14px; }
}

@media (max-width: 480px) {
    .admin-actions { grid-template-columns: 1fr; }
    .dashboard-top h1 { font-size: 30px; }
    .button { min-height: 42px; }
}
