@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;700&display=swap");

:root {
    --bg: #f5eee5;
    --card: #fffaf4;
    --ink: #2f2016;
    --muted: #766254;
    --accent: #bf6b2c;
    --accent-dark: #994f1b;
    --line: #e8d9c8;
    --shadow: 0 22px 60px rgba(47, 32, 22, 0.13);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 18%, #f7d8b8 0, transparent 42%),
        radial-gradient(circle at 88% 12%, #eed6bd 0, transparent 35%),
        linear-gradient(145deg, #f4ebdf 0%, #f8f2ea 45%, #efe5d7 100%);
    position: relative;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body.modal-open {
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(120deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(60deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: 0.2;
    z-index: -2;
}

.bg-shape {
    position: fixed;
    border-radius: 999px;
    filter: blur(2px);
    z-index: -1;
}

.shape-a {
    width: 360px;
    height: 360px;
    left: -90px;
    top: 22%;
    background: radial-gradient(circle, rgba(191, 107, 44, 0.24) 0%, rgba(191, 107, 44, 0) 72%);
}

.shape-b {
    width: 420px;
    height: 420px;
    right: -80px;
    top: 46%;
    background: radial-gradient(circle, rgba(120, 87, 61, 0.22) 0%, rgba(120, 87, 61, 0) 68%);
}

.shape-c {
    width: 430px;
    height: 430px;
    right: -130px;
    bottom: -150px;
    background: radial-gradient(circle, rgba(191, 107, 44, 0.28) 0%, rgba(191, 107, 44, 0) 70%);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    letter-spacing: 0.01em;
}

p {
    margin: 0;
}

a {
    color: var(--accent-dark);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.heading-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.heading-with-icon > img {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
}

.heading-with-icon.heading-with-icon--sm > img {
    width: 24px;
    height: 24px;
}

.text-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.text-with-icon > img {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.layout {
    width: min(1180px, 92vw);
    margin: 48px auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 26px;
    align-items: start;
}

.site-footer {
    width: min(1180px, 92vw);
    margin: -12px auto 32px;
    text-align: right;
}

.site-footer a {
    color: var(--muted);
    font-size: 0.86rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(118, 98, 84, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer a:hover {
    color: var(--accent-dark);
    border-color: rgba(153, 79, 27, 0.45);
}

.hero-panel,
.form-panel,
.admin-shell,
.order-card {
    background: #fffdf9;
    border: 1px solid #ecdfcf;
    box-shadow: var(--shadow);
    border-radius: 28px;
}

.hero-panel,
.form-panel {
    padding: 30px;
    animation: rise 0.55s ease forwards;
}

.hero-panel {
    display: grid;
    gap: 18px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.form-panel .form-eyebrow {
    display: none;
    margin-bottom: 14px;
}

.hero-panel h1 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.05;
}

.lead {
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.6;
}

.hero-note {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.35));
    display: grid;
    gap: 6px;
}

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

.note-label img {
    width: 16px;
    height: 16px;
}

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

.chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.86rem;
    color: var(--muted);
}

.chip-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.panel-header,
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.admin-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.panel-header h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.admin-link {
    font-size: 0.88rem;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.82);
    transition: transform 0.2s ease, background 0.2s ease;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.admin-link:hover {
    transform: translateY(-1px);
    background: #fff;
}

.inline-link {
    display: inline-flex;
    width: fit-content;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.header-actions form {
    margin: 0;
    display: flex;
}

.logout-btn {
    min-height: 40px;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.header-actions .admin-link,
.header-actions .logout-btn {
    white-space: nowrap;
}

.stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.step-chip {
    appearance: none;
    font: inherit;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 11px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.step-chip__icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    opacity: 0.9;
}

.step-chip:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.step-chip.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(120deg, var(--accent-dark), var(--accent));
}

.step-chip.active .step-chip__icon {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fade-slide 0.28s ease;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

textarea,
input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    font: inherit;
    color: var(--ink);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input {
    min-height: 52px;
}

textarea:focus,
input:focus {
    outline: none;
    border-color: #d59a6f;
    box-shadow: 0 0 0 3px rgba(191, 107, 44, 0.15);
}

.summary {
    display: none;
}

.summary.active {
    display: grid;
    gap: 14px;
}

.summary h3 {
    font-size: 1.35rem;
}

.contact-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.contact-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-option span {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 9px 10px;
    cursor: pointer;
    font-weight: 700;
    color: var(--muted);
    transition: all 0.2s ease;
}

.contact-option input:checked + span {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(120deg, var(--accent-dark), var(--accent));
}

.summary-row {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 6px;
}

.summary-row span {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.summary-row p {
    line-height: 1.55;
}

.policy-consent {
    margin-top: 4px;
}

.policy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--muted);
    margin: 0;
}

.policy-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
}

.policy-checkbox a {
    color: var(--accent-dark);
    font-weight: 700;
}

.multiline {
    white-space: pre-wrap;
}

.actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 11px 16px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

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

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

.btn.ghost {
    color: var(--accent-dark);
    background: #fff;
    border: 1px solid var(--line);
}

.btn.solid {
    color: #fff;
    background: linear-gradient(120deg, var(--accent-dark), var(--accent));
}

.btn.danger {
    color: #fff;
    background: linear-gradient(120deg, #a73a3a, #c45353);
}

.hidden {
    display: none !important;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 18px;
}

.confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(47, 32, 22, 0.42);
    backdrop-filter: blur(2px);
}

.confirm-modal__dialog {
    position: relative;
    width: min(460px, 100%);
    background: #fffdf9;
    border: 1px solid #ecdfcf;
    box-shadow: var(--shadow);
    border-radius: 18px;
    padding: 20px;
    display: grid;
    gap: 12px;
}

.confirm-modal__dialog--wide {
    width: min(980px, 100%);
}

.confirm-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.confirm-modal__title {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.2rem;
}

.confirm-modal__text {
    color: var(--muted);
    line-height: 1.5;
}

.confirm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.modal-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--accent-dark);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.modal-close-btn:hover {
    transform: translateY(-1px);
    background: #fffaf2;
}

.privacy-modal-content {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    max-height: min(68vh, 720px);
    overflow: auto;
    display: grid;
    gap: 10px;
}

.privacy-modal-section {
    display: grid;
    gap: 6px;
}

.privacy-modal-section h3 {
    margin: 0;
    font-size: 1rem;
    font-family: "Fraunces", Georgia, serif;
}

.privacy-modal-section p,
.privacy-modal-section li {
    color: var(--ink);
    line-height: 1.5;
    font-size: 0.93rem;
}

.privacy-modal-section ul {
    margin: 0;
    padding-left: 18px;
}

.password-modal-form {
    display: grid;
    gap: 10px;
}

.password-modal-form label {
    margin-bottom: 6px;
}

.password-modal-feedback {
    margin-top: 0;
    min-height: 20px;
}

.feedback {
    min-height: 24px;
    margin-top: 14px;
    font-weight: 600;
    color: var(--muted);
}

.feedback.success {
    color: #2f7a46;
}

.feedback.error {
    color: #ad2f2f;
}

.status-box,
.saved-status-box,
.status-card {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    padding: 14px;
}


.status-box-title,
.saved-status-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.status-link {
    display: block;
    margin-bottom: 10px;
    word-break: break-all;
}

.status-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-card .status-actions {
    margin-top: 14px;
}

.mini-btn {
    padding: 8px 12px;
    min-height: 36px;
    font-size: 0.86rem;
}

.saved-status-empty {
    color: var(--muted);
    font-size: 0.92rem;
}

.saved-status-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.saved-status-headline .saved-status-title {
    margin-bottom: 0;
}

.plus-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 10px;
}

.plus-btn img {
    width: 14px;
    height: 14px;
}

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

.saved-status-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    display: grid;
    gap: 8px;
}

.saved-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.saved-status-link {
    font-weight: 700;
    width: fit-content;
}

.saved-status-meta {
    color: var(--muted);
    font-size: 0.84rem;
}

.saved-status-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.admin-shell {
    width: min(1180px, 92vw);
    margin: 46px auto;
    padding: 28px;
    animation: rise 0.55s ease forwards;
}

.status-shell {
    width: min(760px, 92vw);
    margin: 46px auto;
    animation: rise 0.55s ease forwards;
}

.status-card {
    margin-top: 0;
    box-shadow: var(--shadow);
    border-radius: 24px;
    padding: 24px;
}

.status-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.status-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    color: var(--accent-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(47, 32, 22, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.status-back-btn:hover {
    transform: translateX(-1px);
    background: #fff;
    box-shadow: 0 8px 16px rgba(47, 32, 22, 0.1);
}

.status-back-btn img {
    width: 16px;
    height: 16px;
}

.status-card h1 {
    margin-top: 6px;
    margin-bottom: 12px;
    font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.status-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.status-last-check {
    margin: 6px 0 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.status-meta {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.status-updated {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.status-details {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.policy-shell {
    width: min(920px, 92vw);
    margin: 46px auto;
    animation: rise 0.55s ease forwards;
}

.policy-card {
    background: #fffdf9;
    border: 1px solid #ecdfcf;
    box-shadow: var(--shadow);
    border-radius: 24px;
    padding: 28px;
}

.policy-card h1 {
    margin-top: 6px;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.policy-updated {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.policy-section {
    margin-top: 18px;
    display: grid;
    gap: 8px;
}

.policy-section h2 {
    font-size: 1.12rem;
}

.policy-section ul {
    margin: 0;
    padding-left: 20px;
    color: var(--ink);
    line-height: 1.55;
}

.policy-section li + li {
    margin-top: 5px;
}

.login-shell {
    width: min(1180px, 92vw);
    min-height: calc(100vh - 104px);
    margin: 52px auto;
    display: grid;
    place-items: center;
    animation: rise 0.55s ease forwards;
}

.login-card {
    width: min(640px, 100%);
    background: #fffdf9;
    border: 1px solid #ecdfcf;
    box-shadow: var(--shadow);
    border-radius: 28px;
    padding: 30px;
    display: grid;
    gap: 16px;
}

.login-card h1 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.login-form {
    display: grid;
    gap: 10px;
}

.login-form .btn {
    margin-top: 8px;
}

.admin-header h1 {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

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

.stats article {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.8);
}

.stats p {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.stats p img {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.stats strong {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-family: "Fraunces", Georgia, serif;
}

.filter-bar {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-weight: 700;
    padding: 8px 14px;
    cursor: pointer;
}

.filter-btn.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(120deg, var(--accent-dark), var(--accent));
}

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

.order-card {
    padding: 18px;
    border-radius: 18px;
    animation: fade-slide 0.24s ease;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.card-id {
    font-weight: 700;
}

.badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge.pending {
    background: #fff0e1;
    color: #9f5e25;
    border: 1px solid #f1d6bc;
}

.badge.approved {
    background: #e7f8e8;
    color: #2c7440;
    border: 1px solid #c4e8c9;
}

.badge.rejected {
    background: #fdecec;
    color: #9d2f2f;
    border: 1px solid #f0cbcb;
}

.card-field {
    margin-bottom: 10px;
}

.card-label {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.card-value {
    line-height: 1.5;
}

.card-meta {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    flex-wrap: wrap;
}

.card-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.empty {
    border: 1px dashed var(--line);
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.66);
}

@keyframes fade-slide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1060px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 30px auto;
    }

    .site-footer {
        margin: -4px auto 24px;
        text-align: center;
    }

    .hero-panel {
        order: 2;
    }

    .form-panel {
        order: 1;
    }

    body.order-page .form-eyebrow {
        display: inline-flex;
    }

    body.order-page .hero-panel > .eyebrow {
        display: none;
    }

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

    .admin-shell {
        margin: 26px auto;
    }
}

@media (max-width: 860px) {
    .filter-bar {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .filter-btn {
        text-align: center;
        padding: 10px 8px;
    }
}

@media (max-width: 660px) {
    .layout,
    .admin-shell,
    .status-shell,
    .policy-shell,
    .login-shell {
        width: min(100%, 95vw);
        margin: 18px auto;
        min-height: auto;
    }

    .hero-panel,
    .form-panel,
    .admin-shell,
    .status-card,
    .policy-card,
    .login-card {
        padding: 18px;
        border-radius: 20px;
    }

    .hero-panel {
        gap: 14px;
    }

    .hero-panel h1 {
        font-size: clamp(1.45rem, 8vw, 2.05rem);
        line-height: 1.12;
    }

    .lead {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .chips {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .chips span {
        border-radius: 12px;
        text-align: center;
        justify-content: center;
    }

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

    .step-chip {
        min-height: 40px;
        width: 100%;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    textarea,
    input {
        font-size: 16px;
        padding: 12px;
    }

    textarea {
        min-height: 100px;
    }

    .summary-row {
        padding: 10px;
    }

    .summary-row span {
        font-size: 0.74rem;
    }

    .policy-checkbox {
        font-size: 0.92rem;
    }

    .contact-switch {
        grid-template-columns: 1fr;
    }

    .actions {
        justify-content: stretch;
        flex-direction: column-reverse;
        gap: 8px;
    }

    .actions .btn {
        width: 100%;
        min-height: 46px;
    }

    .confirm-modal__actions {
        flex-direction: column-reverse;
    }

    .confirm-modal__actions .btn {
        width: 100%;
    }

    .confirm-modal__dialog--wide {
        width: min(100%, 100%);
        max-height: calc(100vh - 24px);
    }

    .privacy-modal-content {
        max-height: min(72vh, 560px);
    }

    .status-actions .btn {
        width: 100%;
    }

    .status-back-btn {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .status-topbar {
        margin-bottom: 2px;
    }

    .status-heading {
        align-items: flex-start;
        gap: 4px;
    }

    .status-last-check {
        margin: 0 0 8px;
    }

    .saved-status-actions {
        justify-content: stretch;
    }

    .saved-status-actions .btn {
        width: 100%;
    }

    .saved-status-headline {
        align-items: flex-start;
    }

    .btn {
        flex: 1 1 auto;
    }

    .panel-header,
    .admin-header {
        flex-direction: column;
        margin-bottom: 16px;
    }

    .header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .header-actions .admin-link,
    .header-actions form,
    .header-actions .logout-btn {
        width: 100%;
    }

    .header-actions .admin-link {
        text-align: center;
    }

    .header-actions form .btn {
        width: 100%;
    }

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

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

    .filter-btn {
        width: 100%;
    }

    .card-head,
    .card-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-actions {
        justify-content: stretch;
    }

    .card-actions .btn {
        width: 100%;
    }

    .login-form .btn {
        width: 100%;
        min-height: 46px;
    }
}

@media (max-width: 420px) {
    body::before {
        opacity: 0.1;
    }

    .bg-shape {
        display: none;
    }

    .layout,
    .admin-shell,
    .status-shell,
    .policy-shell,
    .login-shell {
        width: min(100%, 96vw);
        margin: 12px auto;
    }

    .site-footer {
        width: min(100%, 96vw);
        margin: 2px auto 14px;
    }

    .hero-panel,
    .form-panel,
    .admin-shell,
    .status-card,
    .policy-card,
    .login-card,
    .order-card {
        border-radius: 16px;
    }

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

    .eyebrow {
        letter-spacing: 0.12em;
        font-size: 0.76rem;
    }

    .admin-shell {
        padding: 14px;
    }

    .order-card {
        padding: 14px;
    }
}
