/* ===========================
   LOVEPERMIT — DESIGN SYSTEM
   A civic permit, issued for a romance.
   Bureaucratic structure, romantic material.
=========================== */

:root {
    --paper: #FBF5F1;
    --paper-raised: #FFFFFF;
    --ink: #2A2130;
    --ink-soft: #6E6376;
    --ink-faint: #A79DAC;
    --rose: #C1476B;
    --rose-deep: #8F2F4C;
    --rose-wash: rgba(193, 71, 107, 0.08);
    --gold: #AD8A4E;
    --gold-wash: rgba(173, 138, 78, 0.12);
    --sage: #5E7F63;
    --sage-wash: rgba(94, 127, 99, 0.12);
    --line: rgba(42, 33, 48, 0.12);
    --line-strong: rgba(42, 33, 48, 0.22);
    --shadow: 0 20px 48px -24px rgba(42, 33, 48, 0.28);
    --shadow-soft: 0 10px 28px -16px rgba(42, 33, 48, 0.18);
    --radius: 18px;
    --radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus-visible {
    outline: 2px solid var(--rose);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Prevent scrolling on mobile view only */
@media (max-width: 500px) {
    body, html {
        height: 100vh;
    }

    .ls-login {
    align-items: flex-start;
    justify-content: center;
    padding-top: 12px;      /* Small space from top */
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 0;
}

h1, h2, h3 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

/* Reusable eyebrow / registry-label typography, used across the app
   for anything that reads like a form field label or classification tag. */
.eyebrow, .detail-label, .lp-field label, .lp-section-label {
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

a {
    color: inherit;
}

::selection {
    background: var(--rose);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--rose-deep);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* Signature motif: registration corner marks, as printed on an official
   form for cutting/alignment. Applied to every raised panel in the app. */
.login-card, .profile-card, .details-card, .payment-card,
.complete-card, .table-wrap, .modal-card, .menu-item {
    position: relative;
}

.login-card::before, .login-card::after,
.profile-card::before, .profile-card::after,
.details-card::before, .details-card::after,
.payment-card::before, .payment-card::after,
.complete-card::before, .complete-card::after,
.table-wrap::before, .table-wrap::after,
.modal-card::before, .modal-card::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    opacity: 0.45;
}

.login-card::before, .profile-card::before, .details-card::before,
.payment-card::before, .complete-card::before, .table-wrap::before,
.modal-card::before {
    top: 14px;
    left: 14px;
    border-top: 1.5px solid var(--gold);
    border-left: 1.5px solid var(--gold);
}

.login-card::after, .profile-card::after, .details-card::after,
.payment-card::after, .complete-card::after, .table-wrap::after,
.modal-card::after {
    bottom: 14px;
    right: 14px;
    border-bottom: 1.5px solid var(--gold);
    border-right: 1.5px solid var(--gold);
}

/* ===========================
   LOGIN PAGE
=========================== */

.ls-login {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 8%, var(--rose-wash), transparent 42%),
        radial-gradient(circle at 88% 92%, var(--gold-wash), transparent 45%),
        var(--paper);
}

.ls-hearts {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ls-heart {
    position: absolute;
    fill: var(--rose);
    opacity: 0.25;
}

.login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at 12% 8%, var(--rose-wash), transparent 42%),
        radial-gradient(circle at 88% 92%, var(--gold-wash), transparent 45%),
        var(--paper);
}

.login-card,
.ls-login-card {
    background: var(--paper-raised);
    width: 440px;
    max-width: 100%;
    padding: 56px 48px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    animation: rise 0.5s ease both;
    position: relative;
    z-index: 1;
}

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

.login-card h1,
.ls-login-card h1 {
    color: var(--ink);
    margin-bottom: 14px;
    font-size: 38px;
    font-weight: 600;
}

.login-card p,
.ls-login-card p {
    color: var(--ink-soft);
    margin-bottom: 36px;
    line-height: 1.6;
    font-size: 15px;
}

.ls-login-brand {
    padding: 40px 20px;
}

.ls-login-action {
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.g_id_signin {
    display: flex;
    justify-content: center;
    margin: 32px 0;
}

.ls-login-action-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    color: var(--ink-faint);
    margin-bottom: 16px;
}

.ls-login-action-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 30px;
    margin-bottom: 12px;
    color: var(--ink);
}

.ls-login-action-sub {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 360px;
}

.ls-login-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
    width: 100%;
}

.ls-login-checklist li {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--ink-soft);
    padding-left: 28px;
    position: relative;
}

.ls-login-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--sage);
    font-weight: 600;
    font-size: 16px;
}

.ls-terms {
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.6;
    margin-top: auto;
}

.ls-terms a {
    color: var(--rose);
    text-decoration: underline;
    transition: color 0.2s;
}

.ls-terms a:hover {
    color: var(--rose-deep);
}

.fallback-notice,
.error-notice {
    margin-top: 20px;
    color: var(--rose-deep);
    font-size: 13.5px;
    line-height: 1.5;
    font-family: 'IBM Plex Mono', monospace;
}

.success-notice {
    margin-top: 20px;
    color: var(--sage);
    background: var(--sage-wash);
    border: 1px solid rgba(94, 127, 99, 0.25);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

@media (max-width: 500px) {
    .login-card,
    .ls-login-card {
        width: 100%;
        max-width: 380px;
        padding: 20px 16px;
        margin: 0 auto;
        max-height: 85vh;
        overflow: hidden;
        border-radius: 20px;
    }

    .login-card h1,
    .ls-login-card h1 {
        font-size: 26px;
    }

    .ls-login-card h2 {
        font-size: 26px;
        margin-bottom: 10px;
    }

    /* Reduce brand section padding on mobile */
    .ls-login-brand {
        padding: 16px 16px 12px 16px;
    }

    /* Reduce action section padding on mobile */
    .ls-login-action {
        padding: 12px 16px 16px 16px;
    }

    /* Hide the specified text elements */
    .ls-login-action-eyebrow {
        display: none !important;
    }

    .ls-login-action-title {
        display: none !important;
    }

    .ls-login-action-sub {
        display: none !important;
    }

    .ls-login-checklist {
        display: none !important;
    }

    /* Show illustration below Google button on mobile - smaller size */
    .ls-login-illustration {
        display: block !important;
        width: 70px;
        margin: 12px auto 16px;
        order: 1;
    }

    .ls-login-illustration img {
        width: 100%;
        height: auto;
    }

    .ls-login-action .g_id_signin {
        margin: 16px 0 !important;
        order: 2;
    }

    .ls-badges {
        flex-wrap: wrap;
        gap: 10px;
        max-width: 100% !important;
    }

    .ls-badge {
        flex: 1 1 auto;
        min-width: 70px;
        padding: 10px 8px;
    }

    .ls-badge-label {
        font-size: 11px;
    }

    .ls-hero-logo {
        width: 180px !important;
        margin-bottom: 12px !important;
    }

    .ls-tagline {
        font-size: 18px !important;
        margin-bottom: 12px;
    }

    .ls-login-copy {
        font-size: 13px !important;
        margin-bottom: 16px;
        padding: 0 8px;
    }

    .ls-login-permit-strip {
        display: none;
    }

    .ls-terms {
        font-size: 12px;
        max-width: 100%;
        padding: 0 8px;
        margin-top: 16px;
        order: 3;
    }

    .error-notice {
        font-size: 12px;
    }

    .fallback-notice {
        font-size: 12px;
    }
    }

    .ls-login-checklist li {
        font-size: 12px;
    }

    .ls-terms {
        font-size: 12px;
        line-height: 1.5;
        padding: 0 8px;
    }
}

/* ===========================
   TOPBAR
=========================== */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 75px;
    background: var(--paper-raised);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
    padding: 14px 40px;
    border-bottom: 1px solid var(--line);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    min-width: 0;
    flex-shrink: 1;
}

.logo-img {
    height: 20px;
    width: auto;
    display: block;
}

.login-logo {
    height: 56px;
    width: auto;
    display: block;
    margin: 0 auto 24px;
}

.ls-hero-logo {
    width: 160px;
    height: auto;
    margin: 0 auto 20px;
}

.ls-tagline {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ls-tagline-heart {
    width: 20px;
    height: 20px;
    fill: var(--rose);
}

.ls-login-copy {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.ls-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 28px;
}

.ls-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--paper);
    transition: all 0.2s ease;
}

.ls-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ls-badge-icon-img {
    width: 20px;
    height: 20px;
    display: block;
}

.ls-badge-label {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 500;
}

.logout-btn {
    background: transparent;
    color: var(--rose-deep);
    border: 1.5px solid var(--rose-deep);
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
    margin-left: auto;
}

.logout-btn:hover {
    background: var(--rose-deep);
    color: white;
}

/* ===========================
   HOME LAYOUT
=========================== */

.container {
    width: 1200px;
    max-width: 100%;
    margin: 120px auto 40px;
    display: flex;
    gap: 30px;
    padding: 0 20px;
}
.ls-badge-icon-img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.profile-card {
    width: 340px;
    flex-shrink: 0;
    background: var(--paper-raised);
    border-radius: var(--radius);
    padding: 40px 35px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.profile-card img,
#photo {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    border: 3px solid var(--paper-raised);
    box-shadow: 0 0 0 3px var(--rose);
    object-fit: cover;
    margin-bottom: 22px;
}

.profile-card h2,
#name {
    margin-bottom: 4px;
    font-size: 22px;
}

.profile-card p,
#email {
    color: var(--ink-soft);
    margin-bottom: 26px;
    font-size: 14px;
}

.phone-box {
    background: var(--paper);
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

.phone-box span {
    color: var(--ink-soft);
    font-size: 11.5px;
}

.phone-box h3 {
    margin-top: 10px;
    color: var(--rose-deep);
    font-size: 19px;
}

.menu {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-content: start;
}

.menu-item {
    background: var(--paper-raised);
    padding: 34px 30px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    text-decoration: none;
    color: var(--ink);
    display: block;
    font-family: 'Fraunces', serif;
}

.menu-item:hover {
    transform: translateY(-4px);
    background: var(--rose);
    color: white;
    box-shadow: var(--shadow);
}

.menu-item:hover::before,
.menu-item:hover::after {
    border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
    .container {
        width: 95%;
        flex-direction: column;
    }

    .profile-card {
        width: 100%;
    }

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

    .topbar {
        padding: 0 20px;
    }
}

/* ===========================
   PROFILE PAGE
=========================== */

.profile-page {
    align-items: flex-start;
}

.details-card {
    flex: 1;
    background: var(--paper-raised);
    border-radius: var(--radius);
    padding: 40px 35px;
    box-shadow: var(--shadow-soft);
}

.details-card h3 {
    margin-bottom: 22px;
    font-size: 13px;
    color: var(--ink-soft);
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--ink-soft);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.detail-value {
    color: var(--rose-deep);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

/* ===========================
   COMPLETE PROFILE
=========================== */

.complete-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(circle at 12% 8%, var(--rose-wash), transparent 42%),
        var(--paper);
    padding: 20px;
}

.complete-card {
    width: 440px;
    max-width: 100%;
    background: var(--paper-raised);
    border-radius: var(--radius);
    padding: 48px 42px;
    text-align: center;
    box-shadow: var(--shadow);
}

.profile-photo {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    border: 3px solid var(--paper-raised);
    box-shadow: 0 0 0 3px var(--rose);
    object-fit: cover;
    margin-bottom: 22px;
}

.complete-card h2 {
    font-size: 26px;
    margin-bottom: 6px;
}

.complete-card #email {
    color: var(--ink-soft);
    margin-bottom: 22px;
    font-size: 14px;
}

.subtitle {
    color: var(--ink-soft);
    margin-bottom: 28px;
    font-size: 14.5px;
}

.input-box {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    margin-bottom: 26px;
    transition: 0.2s;
    background: var(--paper);
}

.input-box:focus-within {
    border-color: var(--rose);
    background: var(--paper-raised);
    box-shadow: 0 0 0 4px var(--rose-wash);
}

.input-box span {
    font-size: 20px;
    margin-right: 12px;
}

.input-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 0;
    font-size: 15.5px;
    background: transparent;
    font-family: 'Inter', sans-serif;
    color: var(--ink);
}

.complete-card button {
    width: 100%;
    padding: 16px;
    background: var(--rose);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
}

.complete-card button:hover {
    background: var(--rose-deep);
    transform: translateY(-2px);
}

.complete-card button:disabled {
    background: var(--ink-faint);
    cursor: not-allowed;
    transform: none;
}

.footer {
    margin-top: 22px;
    color: var(--ink-faint);
    font-size: 12.5px;
}

@media (max-width: 500px) {
    .complete-card {
        width: 100%;
        padding: 34px 22px;
    }
}

/* ===========================
   PAYMENT CARD (sample)
=========================== */

.payment-card {
    flex: 1;
    background: var(--paper-raised);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow-soft);
    margin-top: 30px;
}

.payment-card h3 {
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--ink-soft);
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sample-card-img {
    width: 150px;
    max-width: 50%;
    border-radius: 14px;
    display: block;
    box-shadow: var(--shadow-soft);
}

.sample-card-note {
    margin-top: 16px;
    color: var(--ink-faint);
    font-size: 12.5px;
    font-family: 'IBM Plex Mono', monospace;
}

/* ===========================
   ADMIN DASHBOARD
=========================== */

.admin-tag {
    background: var(--ink);
    color: var(--paper);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 10px;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-container {
    width: 1200px;
    max-width: 100%;
    margin: 120px auto 40px;
    padding: 0 20px;
}

.admin-toggle-section{
    display:flex;
    align-items:center;
    gap:12px;
}

.admin-toggle-section button,
.header-actions button{
    white-space:nowrap;
}

.admin-toggle-btn {
    background: var(--paper-raised);
    color: var(--ink-soft);
    border: 1.5px solid var(--line);
    padding: 10px 24px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
    white-space:nowrap;
}

.secondary-btn{
    white-space:nowrap;
}

.admin-toggle-btn:hover {
    border-color: var(--rose-deep);
    color: var(--rose-deep);
}

.admin-toggle-btn.active {
    background: var(--rose);
    color: white;
    border-color: var(--rose);
}

.admin-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.admin-header{
    display:flex;
    justify-content:flex-end;
    margin-bottom:20px;
}

.admin-header h2 {
    font-size: 20px;
}

.header-actions{
    display:flex;
    align-items:center;
    gap:12px;
    margin-left:auto;
}

.header-actions button{
    white-space:nowrap;
}   

.secondary-btn {
    background: var(--paper-raised);
    color: var(--rose-deep);
    border: 1.5px solid var(--rose-deep);
    padding: 9px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
}

.secondary-btn:hover {
    background: var(--rose-deep);
    color: white;
}

.permits-toolbar{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    width:100%;
    margin-bottom:24px;
}

#permits-refresh-btn{
    margin-left:auto;
}

.danger-btn {
    background: var(--paper-raised);
    color: #b3261e;
    border: 1.5px solid #b3261e;
    padding: 9px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
    margin-left: 8px;
}

.danger-btn:hover {
    background: #b3261e;
    color: white;
}

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

.action-cell {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

#admin-loading, #permits-loading {
    color: var(--ink-soft);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13.5px;
    margin-bottom: 20px;
}

.table-wrap {
    background: var(--paper-raised);
    border-radius: var(--radius);
    padding: 10px 25px;
    box-shadow: var(--shadow-soft);
    overflow: clip;
    margin-bottom: 44px;
}

.admin-toggle-section{
    display:flex;
    gap:12px;
}

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

/* Horizontal scroll on the table itself so .table-wrap can be overflow:visible,
   allowing the Verified dropdown to escape without being clipped. */
.table-wrap {
    overflow-x: clip; /* clips horizontal bleed but NOT positioned descendants */
}

.admin-table {
    display: table; /* override any block set below */
}

.admin-toolbar{
    display:flex;
    align-items:center;
    width:100%;
    margin-bottom:24px;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-table th {
    text-align: left;
    color: var(--ink-soft);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 18px 12px;
    border-bottom: 1.5px solid var(--line);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
}

.admin-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 0 2px var(--rose-wash);
}

.user-cell-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-cell-name {
    font-weight: 600;
}

@media (max-width: 760px) {
    .admin-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .table-wrap {
        background: transparent;
        box-shadow: none;
        padding: 0;
        overflow-x: visible;
        margin-bottom: 32px;
    }

    .admin-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 14px;
    }

    .admin-table thead {
        display: none;
    }

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

    .admin-table tr {
        background: var(--paper-raised);
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        padding: 6px 18px;
        box-shadow: var(--shadow-soft);
    }

    .admin-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        gap: 12px;
        padding: 11px 0;
        border-bottom: 1px dashed var(--line);
        font-size: 14px;
    }

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

    .admin-table td[data-label]::before {
        content: attr(data-label);
        font-family: 'IBM Plex Mono', monospace;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--ink-soft);
        text-align: left;
        flex-shrink: 0;
    }

    .admin-table td.cell-name {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 4px;
        font-family: 'Fraunces', serif;
        font-size: 17px;
        font-weight: 700;
        color: var(--rose-deep);
    }

    .admin-table td.cell-user {
        justify-content: flex-start;
        padding-top: 14px;
    }

    .admin-table td.cell-user .admin-avatar {
        width: 46px;
        height: 46px;
    }

    .admin-table td.cell-user .user-cell-name {
        font-family: 'Fraunces', serif;
        font-size: 16.5px;
        font-weight: 700;
        color: var(--rose-deep);
    }

    .admin-table td.action-cell {
        gap: 10px;
        padding-bottom: 14px;
    }

    .admin-table td.action-cell button {
        flex: 1;
        margin-left: 0;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(42, 33, 48, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.modal-overlay[hidden] {
    display: none;
}

.modal-card {
    background: var(--paper-raised);
    width: 440px;
    max-width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    animation: rise 0.25s ease both;
}

.modal-card h3 {
    margin-bottom: 22px;
    font-size: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.modal-actions button {
    flex: 1;
    padding: 14px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    transition: 0.2s;
}

.modal-actions #edit-save-btn {
    background: var(--rose);
    color: white;
}

.modal-actions #edit-save-btn:hover {
    background: var(--rose-deep);
}

.modal-actions #permit-verify-toggle-btn {
    background: var(--rose);
    color: white;
}

.modal-actions #permit-verify-toggle-btn:hover {
    background: var(--rose-deep);
}

.modal-actions #permit-verify-toggle-btn.verified-state {
    background: transparent;
    color: #b3261e;
    border: 1.5px solid #b3261e;
}

.modal-actions #permit-verify-toggle-btn.verified-state:hover {
    background: #b3261e;
    color: #fff;
}

/* Reject button — amber/warning tone */
.modal-actions #permit-reject-btn,
.reject-btn {
    background: transparent;
    color: #b45309;
    border: 1.5px solid #b45309;
}

.modal-actions #permit-reject-btn:hover,
.reject-btn:hover {
    background: #b45309;
    color: #fff;
}

.modal-actions #permit-reject-btn:disabled,
.reject-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.modal-actions #permit-reject-btn.rejected-state {
    background: #fef3c7;
    color: #92400e;
    border-color: #d97706;
}

/* Delete button inside permit modal — red/danger */
.modal-actions #permit-delete-btn {
    background: transparent;
    color: #b3261e;
    border: 1.5px solid #b3261e;
    flex: 0 0 auto;
    padding: 14px 18px;
}

.modal-actions #permit-delete-btn:hover {
    background: #b3261e;
    color: #fff;
}

.modal-actions #permit-delete-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.verified-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.verified-badge.verified-yes {
    background: #e6f4ea;
    color: #1e7e34;
}

.verified-badge.verified-no {
    background: #fdecea;
    color: #b3261e;
}

@media (max-width: 900px) {
    .admin-container {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 10px 14px;
    }

    .logo-img {
        max-width: 100%;
    }

    .admin-tag {
        font-size: 10px;
        padding: 3px 9px;
        margin-left: 6px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .logout-btn {
        padding: 8px 14px;
        font-size: 12.5px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .admin-container {
        margin: 100px auto 30px;
    }

    .admin-header h2 {
        font-size: 17px;
    }

    .modal-overlay {
        padding: 14px;
        align-items: flex-end;
    }

    .modal-card {
        padding: 26px 22px;
        border-radius: 20px 20px var(--radius) var(--radius);
        width: 100%;
    }
}

@media (max-width: 360px) {
    .admin-tag {
        font-size: 9px;
        padding: 2px 7px;
        margin-left: 4px;
    }

    .logout-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    /* Extra headroom in case the topbar had to wrap to two lines. */
    .admin-container {
        margin-top: 130px;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }
}


/* ===========================
   ADMIN — SEARCH BOX
=========================== */

.search-box-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--paper-raised);
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex: 1;
    max-width: 280px;
    margin-left: auto;
}

.search-box-wrap:focus-within {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px var(--rose-wash);
}

.search-icon {
    color: var(--ink-faint);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.search-box-wrap:focus-within .search-icon {
    color: var(--rose);
}

.admin-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: var(--ink);
    width: 100%;
    min-width: 0;
}

.admin-search-input::placeholder {
    color: var(--ink-faint);
}

/* ===========================
   ADMIN — MOBILE RESPONSIVE FIXES
=========================== */

@media (max-width: 600px) {

    /* Toolbar: stack toggle row above action buttons */
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .admin-toggle-section {
        width: 100%;
        justify-content: stretch;
    }

    .admin-toggle-section button {
        flex: 1;
        text-align: center;
        font-size: 13px;
        padding: 9px 12px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }

    .header-actions button {
        font-size: 12.5px;
        padding: 8px 14px;
    }

    .search-box-wrap {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
    }


    /* Modal: full-screen sheet from bottom */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-card {
        width: 100%;
        max-width: 100%;
        max-height: 92dvh;
        border-radius: 20px 20px 0 0;
        padding: 24px 18px 30px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Permit detail modal action buttons: stack on small screens */
    .modal-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .modal-actions button {
        flex: 1 1 calc(50% - 4px);
        min-width: 110px;
        font-size: 13px;
        padding: 12px 8px;
    }

    /* Permit media row: tighten up photos/sigs */
    .pv-media-row {
        gap: 16px;
    }

    .pv-media-col {
        min-width: 110px;
        max-width: 48%;
        flex: 1 1 110px;
    }

    .pv-photo {
        width: 80px;
        height: 80px;
    }

    /* Detail rows in permit modal: wrap label + value */
    .detail-row {
        flex-wrap: wrap;
        gap: 2px;
        padding: 12px 0;
    }

    .detail-label {
        width: 100%;
        font-size: 10px;
    }

    .detail-value {
        font-size: 14px;
        width: 100%;
    }

    /* Card rows: make label left-aligned and value wrap below */
    .admin-table td {
        font-size: 13.5px;
    }

    /* Topbar stays single row by shrinking elements */
    .topbar {
        flex-wrap: nowrap;
        padding: 10px 14px;
        min-height: 60px;
    }

    .logo {
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
    }

    .logo-img {
        flex-shrink: 0;
    }

    /* Adjust top margin to match shorter topbar */
    .admin-container {
        margin-top: 80px;
    }
}

.topbar-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-btn {
    background: transparent;
    color: var(--sage);
    border: 1.5px solid var(--sage);
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
}

.home-btn:hover {
    background: var(--sage);
    color: white;
}

/* ===========================
   PERMIT DETAIL MEDIA
=========================== */

.pv-media-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.pv-media-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    flex: 1 1 140px;
    min-width: 140px;
    max-width: 180px;
}

.pv-media-block {
    width: 100%;
    text-align: center;
}

.pv-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 8px;
    box-shadow: 0 0 0 3px var(--rose);
}

.pv-sig {
    width: 100%;
    max-width: 150px;
    height: 60px;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px;
    background: var(--paper);
    border-radius: 8px;
    border: 1px solid var(--line);
}

.pv-media-label {
    display: block;
    font-size: 10.5px;
    color: var(--ink-soft);
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pv-photo[hidden],
.pv-sig[hidden] {
    display: none;
}

/* ===========================
   HOME: PERMIT STATUS CARD
=========================== */

.menu-item-status {
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
}

.menu-item-status:hover {
    transform: none;
    background: var(--paper-raised);
    color: inherit;
}

.status-heading {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    font-family: 'Fraunces', serif;
}

.status-pill {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--rose-wash);
    color: var(--rose-deep);
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.03em;
}

.status-pill.married {
    background: var(--sage-wash);
    color: var(--sage);
}

.status-permit-no {
    font-size: 12px;
    color: var(--ink-faint);
    font-family: 'IBM Plex Mono', monospace;
}

/* ===========================================================
   MOBILE APP SHELL — redesign for index / complete-profile /
   home / profile / orders / permit to match the LovePermit app mockup.
   (admin.html keeps the original desktop layout above.)
=========================================================== */

:root {
    --amber: #E08A2E;
    --amber-wash: rgba(224, 138, 46, 0.14);
    --card-red-1: #6E1129;
    --card-red-2: #B8243F;
    --card-green-1: #163F29;
    --card-green-2: #3F7D54;
}

.ls-shell {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--paper);
    position: relative;
    box-shadow: 0 0 70px rgba(42, 33, 48, 0.06);
}

.ls-content {
    min-width: 0;
}

/* ---------- Sidebar nav (desktop only — see breakpoints below) ---------- */

.ls-sidebar {
    display: none;
    flex-direction: column;
    background: var(--paper-raised);
    border-right: 1px solid var(--line);
    padding: 28px 18px;
}

.ls-sidebar-logo {
    padding: 0 10px;
    margin-bottom: 36px;
}

.ls-sidebar-logo img {
    height: 18px;
    width: auto;
    display: block;
}

.ls-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ls-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    width: 100%;
    text-align: left;
}

.ls-sidebar-icon {
    font-size: 17px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.ls-sidebar-link:hover {
    background: var(--rose-wash);
    color: var(--rose-deep);
}

.ls-sidebar-link.active {
    background: var(--rose-wash);
    color: var(--rose-deep);
}

.ls-sidebar-logout {
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    border-radius: 0;
    color: var(--rose-deep);
}

/* ---------- App header (hamburger / logo / bell) ---------- */

.ls-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 6px;
}

.ls-icon-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    cursor: pointer;
    border-radius: 10px;
    transition: 0.2s;
    flex-shrink: 0;
}

.ls-icon-btn:hover {
    background: var(--rose-wash);
    color: var(--rose-deep);
}

.ls-icon-btn svg {
    width: 21px;
    height: 21px;
}

.ls-header-logo {
    height: 30px;
    width: auto;
    display: block;
}

.ls-header-spacer {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.ls-menu-panel {
    position: absolute;
    top: 60px;
    left: 18px;
    z-index: 60;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    min-width: 190px;
}

.ls-menu-panel[hidden] {
    display: none;
}

.ls-menu-panel-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.ls-menu-panel-item:hover {
    background: var(--rose-wash);
    color: var(--rose-deep);
}

.ls-menu-logout {
    border-top: 1px solid var(--line);
    color: var(--rose-deep);
}

/* ---------- Main content + bottom nav ---------- */

.ls-app-main {
    padding: 6px 18px 112px;
}

.ls-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: var(--paper-raised);
    border-top: 1px solid var(--line);
    display: flex;
    z-index: 40;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}

.ls-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--ink-faint);
    font-size: 10.5px;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 6px 0;
    border-radius: 10px;
}

.ls-nav-icon {
    font-size: 18px;
    line-height: 1;
}

.ls-nav-item.active {
    color: var(--rose-deep);
}

/* ---------- Greeting row ---------- */

.ls-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0 20px;
}

.ls-greeting-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--rose);
    flex-shrink: 0;
}

.ls-greeting-hi {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 16.5px;
}

.ls-greeting-sub {
    font-size: 12.5px;
    color: var(--ink-soft);
}

/* ---------- Section labels ---------- */

.ls-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rose-deep);
    margin-bottom: 12px;
}

.ls-section-label-approved {
    color: var(--sage);
}

.ls-info-icon {
    font-size: 13px;
    opacity: 0.6;
}

.ls-verified-badge {
    margin-left: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--sage);
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ls-status-line {
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 600;
    margin: -6px 0 12px;
}

/* ---------- Couple names (approved state, no card) ---------- */

.ls-permit-summary {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 22px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.ls-permit-summary .ls-section-label {
    margin-bottom: 10px;
}

.ls-permit-summary .ls-status-line {
    margin: 0 0 16px;
}

.ls-couple-names {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 22px;
    color: var(--ink);
    margin-bottom: 0;
}

.ls-couple-names .ls-permit-heart {
    color: var(--rose);
    padding: 0 4px;
}

/* ---------- Love permit card ---------- */

.ls-permit-card {
    position: relative;
    border-radius: 20px;
    padding: 22px 20px 26px;
    color: #fff;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: var(--shadow-soft);
    min-height: 132px;
}

.ls-permit-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.12), transparent 55%);
    pointer-events: none;
}

.ls-permit-card-red {
    background: linear-gradient(135deg, var(--card-red-1) 0%, var(--card-red-2) 60%, var(--rose-deep) 100%);
}

.ls-permit-card-green {
    background: linear-gradient(135deg, var(--card-green-1) 0%, var(--card-green-2) 65%, #245a3a 100%);
}

.ls-permit-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.ls-permit-card-title {
    display: block;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: 0.02em;
}

.ls-permit-card-no {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    opacity: 0.85;
    margin-top: 4px;
    max-width: 110px;
    text-align: right;
    word-break: break-word;
}

.ls-permit-card-names {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 21px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    max-width: 72%;
}

.ls-permit-heart {
    padding: 0 2px;
}

.ls-permit-card-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    position: relative;
    z-index: 1;
}

.ls-permit-qr {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
    box-shadow: var(--shadow-soft);
}

.ls-permit-qr svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ls-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 24px;
}

.ls-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--line-strong);
    display: block;
}

.ls-dots span.active {
    background: var(--rose);
    width: 16px;
    border-radius: 4px;
}

/* ---------- Sample card image (home page) ---------- */

.ls-sample-card-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 20px;
    position: relative;
}

.ls-sample-card-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.ls-sample-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
}

.ls-sample-card-names {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 14px;
    border-radius: 999px;
}

/* ---------- CTA box (no permit yet) ---------- */

.ls-cta-box {
    background: var(--rose-wash);
    border-radius: 16px;
    padding: 22px 20px;
    text-align: center;
    margin-bottom: 26px;
}

.ls-cta-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 2px;
}

.ls-cta-sub {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 16px;
}

.ls-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rose);
    color: #fff;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: 0.2s;
}

.ls-cta-btn:hover {
    background: var(--rose-deep);
    transform: translateY(-2px);
}

/* ---------- Pending / under-review panel (UI-only) ---------- */

.ls-pending-panel {
    background: var(--amber-wash);
    border-radius: 18px;
    padding: 36px 24px;
    text-align: center;
    margin-bottom: 26px;
}

.ls-pending-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--amber);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-soft);
}

.ls-pending-panel h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.ls-pending-panel p {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 18px;
}

.ls-pending-panel hr {
    border: none;
    border-top: 1px solid var(--line);
    width: 55%;
    margin: 0 auto 18px;
}

.ls-pending-meta-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.ls-pending-meta-value {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--amber);
    margin-bottom: 16px;
}

.ls-pending-thanks {
    color: var(--ink-soft);
    font-size: 13.5px;
    margin: 0 !important;
}

.ls-cta-btn-inline {
    display: inline-block;
    margin-top: 8px;
    text-decoration: none;
}

/* ---------- Success panel (post-submit) ---------- */

.ls-success-panel {
    background: var(--sage-wash);
    border-radius: 18px;
    padding: 36px 24px;
    text-align: center;
    margin-bottom: 26px;
}

.ls-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--sage);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-soft);
}

.ls-success-panel h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.ls-success-panel p {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.ls-success-note {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--ink-faint);
    margin-bottom: 20px !important;
}

/* ---------- Permit page in app shell ---------- */

.ls-permit-main {
    padding-bottom: 120px;
}

.ls-permit-main .lp-wrap {
    max-width: 100%;
}

/* ---------- Profile edit button ---------- */

.ls-edit-profile-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--rose-wash);
    color: var(--rose-deep);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.ls-edit-profile-btn:hover {
    background: var(--rose);
    color: #fff;
}

/* ---------- Complete profile error ---------- */

.ls-cp-error {
    margin-top: 16px;
    text-align: center;
}

/* ---------- Orders page ---------- */

.ls-orders-hero {
    text-align: center;
    margin-bottom: 24px;
}

.ls-orders-hero h2 {
    font-size: 22px;
    margin: 10px 0 6px;
}

.ls-orders-hero p {
    color: var(--ink-soft);
    font-size: 14px;
}

.ls-coming-soon-badge {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber);
    background: var(--amber-wash);
    padding: 5px 12px;
    border-radius: 999px;
}

.ls-orders-preview {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-soft);
}

.ls-orders-card-mock {
    margin-bottom: 16px;
    pointer-events: none;
    opacity: 0.92;
}

.ls-orders-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}

.ls-orders-price-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    margin-bottom: 2px;
}

.ls-orders-price {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--rose-deep);
}

.ls-orders-price-note {
    font-size: 12px;
    color: var(--ink-faint);
    text-align: right;
    max-width: 140px;
    line-height: 1.4;
}

.ls-orders-empty {
    padding: 40px 10px 60px;
}

.ls-orders-empty .ls-cta-btn-inline {
    margin-top: 20px;
}

/* ---------- Premium PVC card promo ---------- */

.ls-pvc-box {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 26px;
    box-shadow: var(--shadow-soft);
}

.ls-pvc-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.ls-pvc-sub {
    font-size: 12.5px;
    color: var(--ink-soft);
    margin-bottom: 14px;
    line-height: 1.5;
}

.ls-pvc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ls-pvc-price {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--rose-deep);
}

.ls-pvc-btn {
    background: var(--rose);
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.ls-pvc-btn:hover {
    background: var(--rose-deep);
}

/* ---------- My Profile summary card (home page) ---------- */

.ls-profile-summary {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.ls-profile-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.ls-profile-summary-head span {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 15px;
}

.ls-profile-summary-head a {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--rose-deep);
    text-decoration: none;
}

.ls-profile-summary-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ls-profile-summary-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--rose);
    flex-shrink: 0;
}

.ls-profile-summary-name {
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 2px;
}

.ls-profile-summary-line {
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.5;
}

/* ---------- Login page ---------- */

/* ---------- Login: motion ---------- */

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

@keyframes lsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lsFloat {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
    50% { transform: translate3d(0, -10px, 0) rotate(var(--r, 0deg)); }
}

.ls-login {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background:
        radial-gradient(circle at 15% 8%, rgba(193, 71, 107, 0.14), transparent 45%),
        radial-gradient(circle at 88% 14%, rgba(173, 138, 78, 0.08), transparent 42%),
        radial-gradient(circle at 20% 92%, rgba(193, 71, 107, 0.09), transparent 42%),
        var(--paper);
    box-shadow: inset 0 0 140px rgba(42, 33, 48, 0.05);
    animation: lsFadeIn 0.5s ease both;
}

.ls-hearts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    max-width: 480px;
    margin: 0 auto;
    z-index: 2;
}

.ls-heart {
    position: absolute;
    color: var(--rose);
    opacity: 0.3;
    line-height: 1;
    animation: lsFloat 7s ease-in-out infinite;
}

.ls-heart:nth-child(2n) {
    opacity: 0.2;
    filter: blur(0.4px);
    animation-duration: 9s;
}

.ls-heart:nth-child(3n) {
    opacity: 0.4;
    animation-duration: 6s;
}

.ls-heart:nth-child(1) { animation-delay: 0s; }
.ls-heart:nth-child(2) { animation-delay: 0.8s; }
.ls-heart:nth-child(3) { animation-delay: 1.6s; }
.ls-heart:nth-child(4) { animation-delay: 0.4s; }
.ls-heart:nth-child(5) { animation-delay: 2s; }
.ls-heart:nth-child(6) { animation-delay: 1.2s; }
.ls-heart:nth-child(7) { animation-delay: 2.4s; }

.ls-heart svg {
    display: block;
    fill: currentColor;
}

.ls-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ls-hero-logo {
    width: 210px;
    max-width: 68vw;
    height: auto;
    display: block;
    margin-bottom: 24px;
    animation: lsFadeUp 0.55s ease 0.05s both;
}

.ls-tagline {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    max-width: 320px;
    margin: 0 auto 16px;
    animation: lsFadeUp 0.55s ease 0.12s both;
}

.ls-tagline-heart {
    width: 15px;
    height: 15px;
    vertical-align: -1px;
    fill: var(--rose);
}

.ls-login-copy {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto 32px;
    animation: lsFadeUp 0.55s ease 0.18s both;
}

.ls-badges {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    width: 100%;
    justify-content: center;
    animation: lsFadeUp 0.55s ease 0.24s both;
}

.ls-badge {
    flex: 1;
    max-width: 100px;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ls-badge-icon {
    font-size: 20px;
}

.ls-badge-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-soft);
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ls-login-illustration {
    display: none;
}

.ls-login-illustration-img {
    width: 100%;
    height: auto;
    display: block;
}

.ls-login-action-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 600;
    color: var(--rose);
    margin-bottom: 8px;
    animation: lsFadeUp 0.55s ease 0.05s both;
}

.ls-login-action-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    color: var(--ink);
    font-size: 24px;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    animation: lsFadeUp 0.55s ease 0.1s both;
}

.ls-login-action-sub {
    font-family: 'Inter', sans-serif;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto 32px;
    animation: lsFadeUp 0.55s ease 0.16s both;
}

.ls-login-permit-strip {
    display: none;
}

.ls-login-card .g_id_signin {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 24px;
    border-radius: 999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: lsFadeUp 0.55s ease 0.22s both;
}

.ls-login-card .g_id_signin:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.ls-login-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 auto 32px;
    animation: lsFadeUp 0.55s ease 0.28s both;
}

.ls-login-checklist li {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ls-login-checklist li::before {
    content: "✓";
    color: var(--sage);
    font-weight: 700;
    font-size: 12px;
}

.ls-terms {
    font-size: 12px;
    color: var(--ink-faint);
    line-height: 1.6;
    animation: lsFadeUp 0.55s ease 0.34s both;
}

.ls-terms a {
    color: var(--rose-deep);
    font-weight: 600;
    text-decoration: none;
}

.ls-terms a:hover {
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .ls-heart {
        animation: none;
    }
}

/* ---------- Complete profile page ---------- */

.ls-simple-header {
    padding: 16px 18px 0;
}

.ls-back-btn {
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: 0.2s;
}

.ls-back-btn:hover {
    background: var(--rose-wash);
    color: var(--rose-deep);
}

.ls-back-btn svg {
    width: 20px;
    height: 20px;
}

.ls-cp-main {
    padding: 0 22px 50px;
    max-width: 430px;
    margin: 0 auto;
}

.ls-cp-hero {
    text-align: center;
    margin: 6px 0 30px;
}

.ls-cp-logo {
    display: block;
    height: 21px;
    width: auto;
    max-width: 60%;
    object-fit: contain;
    margin: 0 auto 18px;
}

.ls-cp-hero h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

.ls-cp-sub {
    color: var(--ink-soft);
    font-size: 14px;
}

.ls-form-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 4px 18px;
    margin-bottom: 26px;
    box-shadow: var(--shadow-soft);
}

.ls-form-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.ls-form-row:last-child {
    border-bottom: none;
}

.ls-form-icon {
    font-size: 19px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.ls-form-field {
    flex: 1;
    min-width: 0;
}

.ls-form-label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    margin-bottom: 4px;
}

.ls-form-label em {
    font-style: normal;
    opacity: 0.7;
}

.ls-form-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    overflow-wrap: anywhere;
}

/* The #name/#email ID rules elsewhere in this file are sized for the
   home-page profile card (large heading + soft caption). Here they're
   just regular form values, so re-assert the .ls-form-value look —
   the extra class keeps specificity above the bare ID selectors. */
.ls-form-value#name,
.ls-form-value#email {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0;
}

.ls-form-row-editable input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    padding: 0;
}

.ls-primary-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--rose);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
    margin-bottom: 18px;
}

.ls-primary-btn:hover {
    background: var(--rose-deep);
    transform: translateY(-2px);
}

.ls-primary-btn:disabled {
    background: var(--ink-faint);
    cursor: not-allowed;
    transform: none;
}

.ls-cp-main .footer {
    text-align: center;
}

/* ---------- Profile page ---------- */

.ls-profile-hero {
    text-align: center;
    padding: 8px 0 24px;
}

.ls-profile-hero-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--paper-raised);
    box-shadow: 0 0 0 3px var(--rose);
    margin: 0 auto 16px;
    display: block;
}

.ls-profile-hero h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.ls-profile-hero-email {
    color: var(--ink-soft);
    font-size: 13.5px;
}

.ls-sample-card-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 14px;
    margin: 12px auto 0;
    display: block;
    box-shadow: var(--shadow-soft);
}

.ls-sample-card-note {
    margin-top: 10px;
    color: var(--ink-faint);
    font-size: 12px;
    font-family: 'IBM Plex Mono', monospace;
}

/* ---------- Orders (placeholder) ---------- */

.ls-empty-state {
    text-align: center;
    padding: 90px 10px;
}

.ls-empty-icon {
    font-size: 44px;
    margin-bottom: 18px;
}

.ls-empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.ls-empty-state p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

/* ---------- Dashboard grid (home + profile: main column + rail) ---------- */

.ls-dashboard-main {
    min-width: 0;
}

.ls-dashboard-rail {
    min-width: 0;
}

/* ===========================================================
   RESPONSIVE BREAKPOINTS

   Phone   : up to 640px  — single column, bottom nav (default above)
   Tablet  : 641px–1023px — wider shell, same nav pattern, roomier type
   Desktop : 1024px+      — persistent sidebar nav, two-column dashboard
=========================================================== */

@media (max-width: 480px) {
    .ls-shell {
        box-shadow: none;
    }
}

/* ---------- Tablet ---------- */

@media (min-width: 641px) {
    .ls-shell {
        max-width: 680px;
    }

    .ls-app-header {
        padding: 20px 34px 6px;
    }

    .ls-app-main {
        padding: 10px 34px 120px;
    }

    .ls-greeting-hi {
        font-size: 18px;
    }

    .ls-permit-card {
        padding: 28px 26px 32px;
    }

    .ls-permit-card-names {
        font-size: 24px;
    }

    .ls-bottom-nav {
        max-width: 680px;
        padding: 10px 24px calc(10px + env(safe-area-inset-bottom));
    }

    .ls-nav-item {
        font-size: 11px;
    }

    .ls-login-card,
    .ls-cp-main {
        max-width: 440px;
    }

    .ls-hero-logo {
        width: 240px;
    }
}

/* ---------- Desktop ---------- */

@media (min-width: 1024px) {
    body {
        background: var(--paper-raised);
    }

    .ls-shell {
        max-width: 1180px;
        min-height: 100vh;
        display: grid;
        grid-template-columns: 250px 1fr;
        box-shadow: none;
        background: var(--paper);
    }

    .ls-sidebar {
        display: flex;
    }

    .ls-app-header {
        padding: 30px 48px 10px;
        max-width: 980px;
    }

    /* The hamburger opened a dropdown that duplicated nav links —
       not needed once the sidebar is always visible. */
    .ls-app-header #menu-btn {
        display: none;
    }

    /* The sidebar already shows the LovePermit logo, so the header's
       copy is redundant — and being a wide wordmark image, it visually
       collided with the sidebar logo right next to it. Hide it and
       let the bell sit alone at the top of the content column. */
    .ls-header-logo {
        display: none;
    }

    .ls-app-header {
        justify-content: flex-end;
    }

    .ls-menu-panel {
        display: none !important;
    }

    .ls-app-main {
        padding: 14px 48px 60px;
        max-width: 980px;
    }

    .ls-bottom-nav {
        display: none;
    }

    .ls-greeting {
        padding: 10px 0 26px;
    }

    .ls-dashboard-grid {
        display: grid;
        grid-template-columns: 1.6fr 1fr;
        gap: 30px;
        align-items: start;
    }

    .ls-profile-summary,
    .ls-pvc-box {
        margin-bottom: 22px;
    }

    /* On mobile the login reads as one stacked card. On a big canvas,
       floating that same card in the middle of empty space looks
       unfinished — so on desktop it becomes a proper full-height split
       screen: a colored brand panel and a clean panel for the sign-in
       action, edge to edge, the way most serious sign-in pages are built. */
    .ls-login {
        padding: 20px;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        max-height: 100vh;
        background:
            radial-gradient(circle at 12% 8%, var(--rose-wash), transparent 42%),
            radial-gradient(circle at 88% 92%, var(--gold-wash), transparent 45%),
            var(--paper);
        box-shadow: none;
        overflow: hidden;
    }

    .ls-hearts {
        inset: 0;
        max-width: none;
        margin: 0;
    }

    .ls-login-card {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        width: 100%;
        min-height: 100vh;
        max-height: 100vh;
        gap: 0;
        text-align: center;
        animation: none;
        overflow: hidden;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        padding: 40px 60px;
    }

    .ls-login-brand {
        flex: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0 0 20px 0;
        position: relative;
        background: transparent;
        overflow: visible;
        width: 100%;
    }

    .ls-login-brand .ls-hero-logo {
        width: 200px;
        margin-left: 0;
        margin-bottom: 20px;
        position: relative;
        z-index: 1;
    }

    .ls-login-brand .ls-tagline {
        font-size: 22px;
        max-width: 500px;
        margin-bottom: 12px;
        position: relative;
        z-index: 1;
    }

    .ls-login-brand .ls-login-copy {
        font-size: 13px;
        max-width: 400px;
        margin-bottom: 20px;
        position: relative;
        z-index: 1;
    }

    .ls-login-brand .ls-badges {
        justify-content: center;
        max-width: 360px;
        margin-bottom: 0;
        position: relative;
        z-index: 1;
    }

    .ls-login-brand .ls-badge {
        align-items: center;
        text-align: center;
        max-width: none;
    }

    .ls-login-brand .ls-badge:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow);
        border-color: var(--line-strong);
    }

    /* Signature element: two interlocking rings, rendered as fine
       line-art rather than a literal heart — a quiet abstraction of
       "two lives joined" that reads as identity/registration, not
       Valentine's decoration. */
    .ls-login-illustration {
        display: block;
        width: 120px;
        margin: 12px auto 16px;
        position: relative;
        z-index: 1;
    }

    .ls-login-illustration img {
        width: 100%;
        height: auto;
    }

    .ls-login-permit-strip {
        display: none;
    }

    .ls-login-action {
        flex: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0;
        border-left: none;
        background: transparent;
        overflow: visible;
        width: 100%;
    }

    .ls-login-action-eyebrow {
        font-size: 11px;
        margin-bottom: 8px;
        display: none;
    }

    .ls-login-action-title {
        font-size: 28px;
        margin-bottom: 8px;
        display: none;
    }

    .ls-login-action-sub {
        font-size: 13px;
        max-width: 380px;
        margin-bottom: 20px;
        display: none;
    }

    .ls-login-action .g_id_signin {
        width: 100%;
        max-width: 320px;
        margin-bottom: 20px;
    }

    .ls-login-action .ls-login-illustration {
        display: block;
        width: 120px;
        margin: 12px auto 16px;
    }

    .ls-login-action .ls-login-illustration img {
        width: 100%;
        height: auto;
    }

    .ls-login-checklist {
        flex-direction: row;
        gap: 14px;
        margin-bottom: 16px;
        justify-content: center;
    }

    .ls-login-checklist li {
        font-size: 11px;
    }

    .ls-login-action .ls-terms {
        max-width: 380px;
        font-size: 12px;
        margin-top: 12px;
    }

    .ls-cp-main {
        max-width: 480px;
        margin: 40px auto 60px;
    }

    .ls-form-card {
        max-width: 560px;
    }
}

@media (min-width: 1280px) {
    .ls-shell {
        max-width: 1320px;
    }
}


/* ===========================
   ADMIN — VERIFIED FILTER DROPDOWN
=========================== */

.th-filter-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}


.th-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--ink-faint);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.th-filter-btn:hover,
.th-filter-btn.open {
    background: var(--rose-wash);
    color: var(--rose);
}

.th-filter-btn.has-filter {
    color: var(--rose);
    background: var(--rose-wash);
}

.th-dropdown {
    position: fixed;
    min-width: 150px;
    background: var(--paper-raised);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    z-index: 9999;
    overflow: hidden;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.th-dropdown-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 7px;
    padding: 9px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.13s, color 0.13s;
}

.th-dropdown-item:hover {
    background: var(--rose-wash);
    color: var(--rose);
}

.th-dropdown-item.active {
    font-weight: 600;
    color: var(--rose);
    background: var(--rose-wash);
}
