:root {
    --color-primary: #e63946;
    --color-primary-soft: rgba(230, 57, 70, 0.2);
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-surface: #f5f7fb;
    --color-card: #ffffff;
    --color-border: #e2e8f0;
    --color-input-border: #cbd5e1;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-secondary-bg: #334155;
    --color-warn-bg: #fef3c7;
    --color-warn-text: #92400e;
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-pill: 60px;
}

.guest-why-register-wrap {
    position: relative;
    display: inline-block;
    margin: 0 0 16px;
}

.guest-why-register-trigger {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    cursor: help;
}

.guest-grading-disclaimer {
    display: none;
    position: absolute;
    z-index: 50;
    top: 100%;
    left: 0;
    width: min(22rem, calc(100vw - 2rem));
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 4px;
    padding: 10px 12px;
    border-left: 3px solid var(--color-primary);
    background: var(--color-warn-bg);
    color: var(--color-warn-text);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

/* Invisible bridge so the popover stays open while moving pointer to the button */
.guest-grading-disclaimer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 12px;
}

.guest-why-register-wrap:hover .guest-grading-disclaimer,
.guest-why-register-wrap:focus-within .guest-grading-disclaimer {
    display: block;
}

.guest-grading-disclaimer strong {
    color: var(--color-text);
}

.guest-disclaimer-link {
    display: inline-block;
    margin: 8px 0 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--color-primary);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    width: auto;
    text-align: left;
}

.guest-disclaimer-link:hover {
    opacity: 0.85;
}

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
    padding: 12px 16px;
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.cookie-notice p {
    margin: 0;
    max-width: 52rem;
    line-height: 1.45;
}

.cookie-notice a {
    color: var(--color-primary);
    font-weight: 600;
    width: auto;
    padding: 0;
    background: none;
    text-decoration: underline;
}

.cookie-notice-btn {
    width: auto;
    padding: 8px 20px;
    margin: 0;
    flex-shrink: 0;
}

.legal-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    cursor: pointer;
}

/* display:flex above wins over [hidden] unless forced */
.legal-consent[hidden] {
    display: none !important;
}

.legal-consent input {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

.legal-consent a {
    color: var(--color-primary);
    font-weight: 600;
    width: auto;
    padding: 0;
    background: none;
    text-decoration: underline;
}

.password-hint {
    margin: 0 0 12px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--color-text-muted);
}

.password-hint[hidden] {
    display: none !important;
}

.auth-forgot-link {
    color: var(--color-primary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

.contact-recovery-hint {
    margin: 0 0 12px;
    padding: 10px 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--color-text-muted);
    background: #f1f5f9;
    border-radius: 8px;
}

.account-admin-note {
    margin-top: 28px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(42, 157, 143, 0.35);
    background: rgba(42, 157, 143, 0.08);
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.account-danger-zone {
    margin-top: 28px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.06);
}

.account-danger-zone h3 {
    margin: 0 0 8px;
    color: var(--color-danger);
}

.account-danger-zone p {
    margin: 0 0 12px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.account-danger-zone input {
    margin-bottom: 10px;
}

.danger-btn {
    background: var(--color-danger) !important;
    width: auto;
}

* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    background: var(--color-surface);
    margin: 0;
    min-height: 100svh;
    padding: 20px clamp(16px, 3vw, 40px);
}

.site-layout {
    max-width: min(1120px, 100%);
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: calc(100svh - 40px);
}

.container {
    width: 100%;
    flex: 1;
    background: var(--color-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: clamp(16px, 2vw, 28px) clamp(20px, 3vw, 40px) 24px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.site-footer {
    text-align: center;
    padding: 8px 12px 4px;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.site-footer-nav a {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    width: auto;
    background: transparent;
}

.site-footer-nav a:hover {
    background: var(--color-card);
    text-decoration: underline;
}

.site-footer-sep {
    color: var(--color-input-border);
    user-select: none;
}

.site-copyright {
    margin: 0;
    font-size: 0.8125rem;
}

.legal-modal-content {
    max-width: 520px;
    max-height: min(80vh, 640px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.legal-modal-body {
    overflow-y: auto;
    color: var(--color-text-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

.legal-modal-body p {
    margin: 0 0 12px;
}

.legal-modal-body ul {
    margin: 0 0 12px;
    padding-left: 1.25rem;
}

.legal-modal-body li {
    margin-bottom: 6px;
}

.legal-modal-body code {
    font-size: 0.85em;
    background: var(--color-surface);
    padding: 1px 4px;
    border-radius: 4px;
}

.legal-modal-body .legal-disclaimer {
    font-size: 0.85rem;
    padding: 8px 10px;
    background: var(--color-warn-bg);
    border-radius: 8px;
    color: var(--color-warn-text);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.nav-bar-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    flex: 0 0 auto;
}

.nav-btn-contact {
    background: #2c3e50;
    color: white;
}

.nav-btn-contact:hover {
    background: #1e293b;
    color: white;
}

.nav-btn-logout {
    background: #64748b;
    color: white;
}

.nav-btn-logout:hover {
    background: #475569;
    color: white;
}

.nav-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.2s;
    width: auto;
}

.nav-btn:hover {
    background: #f1f5f9;
    color: var(--color-text);
}

.nav-btn.active {
    background: var(--color-primary);
    color: white;
}

.nav-btn.disabled,
.nav-btn.disabled:hover {
    opacity: 0.5;
    cursor: not-allowed;
    background: none;
    color: var(--color-text-muted);
}

.view {
    display: none;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.view.active {
    display: block;
}

#view-audit.audit-session.active {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
}

h1 {
    font-size: 1.8rem;
    margin: 0 0 8px 0;
    color: var(--color-text);
}

h2 {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 20px;
}

.level-badge {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.char-display {
    font-size: clamp(4rem, 12vh, 7.2rem);
    text-align: center;
    font-weight: 600;
    color: var(--color-primary);
    margin: clamp(8px, 2vh, 18px) 0 10px;
    letter-spacing: 6px;
    word-break: keep-all;
    line-height: 1.15;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1;
}

.char-display.reveal-char {
    font-size: clamp(2.8rem, 7vh, 4.6rem);
    margin-top: 6px;
}

/* Japanese (long katakana/kanji): scroll horizontally on narrow screens */
.jp-word-scroll {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: thin;
    margin: clamp(8px, 2vh, 18px) 0 10px;
}

.jp-word-scroll--reveal {
    margin-top: 6px;
    margin-bottom: 10px;
}

.jp-word-scroll--reading {
    margin-top: -2px;
    margin-bottom: clamp(8px, 1.8vh, 14px);
}

.jp-word-scroll--inline {
    display: block;
    max-width: min(100%, 18rem);
    margin: 0;
    vertical-align: bottom;
}

.jp-word-scroll .char-display--jp,
.jp-word-scroll .char-display--zh,
.jp-word-scroll .pinyin--jp,
.jp-word-scroll .word-char--jp,
.jp-word-scroll .word-char--zh {
    display: inline-block;
    width: max-content;
    min-width: 100%;
    max-width: none;
    box-sizing: border-box;
    white-space: nowrap;
    letter-spacing: 0;
    word-break: keep-all;
    text-align: center;
    margin: 0;
    padding: 4px 16px;
}

.jp-word-scroll .char-display--jp {
    font-size: clamp(2.75rem, 12vh, 6.5rem);
    line-height: 1.2;
    font-weight: 600;
    color: var(--color-primary);
}

.jp-word-scroll .char-display--zh {
    font-size: clamp(2.15rem, 9vh, 5.5rem);
    line-height: 1.15;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 4px;
}

.jp-word-scroll .char-display.reveal-char.char-display--zh {
    font-size: clamp(1.75rem, 5.5vh, 3.55rem);
    letter-spacing: 2px;
}

.jp-word-scroll .char-display.reveal-char.char-display--jp {
    font-size: clamp(2.25rem, 9vh, 5rem);
}

.jp-word-scroll .pinyin--jp {
    font-size: clamp(1.1rem, 2.8vh, 1.35rem);
    color: #475569;
    font-weight: 400;
}

.jp-word-scroll--inline .word-char--jp,
.jp-word-scroll--inline .word-char--zh {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--color-primary);
    padding: 2px 8px;
    min-width: auto;
}

.jp-word-scroll--inline .word-char--zh {
    font-size: 1.15rem;
    letter-spacing: 1px;
}

.prompt-display {
    font-size: clamp(1.2rem, 3.6vh, 1.9rem);
    line-height: 1.25;
    text-align: center;
    font-weight: 600;
    color: var(--color-text);
    margin: clamp(8px, 2vh, 18px) 0 10px;
    padding: 0 8px;
}

.mode-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 999px;
    margin-right: 8px;
}

.pinyin {
    text-align: center;
    font-size: clamp(1rem, 2.3vh, 1.2rem);
    color: #475569;
    margin-top: -2px;
    margin-bottom: clamp(8px, 1.8vh, 14px);
    max-width: 100%;
    min-width: 0;
}

input,
select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius-pill);
    outline: none;
    transition: 0.2s;
    margin-bottom: 10px;
}

input:focus,
select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}

button {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}

button.secondary {
    background: var(--color-secondary-bg);
}

button.small {
    width: auto;
    padding: 8px 16px;
    font-size: 0.85rem;
}

.result {
    background: #f1f5f9;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin: 10px 0;
    max-height: 32vh;
    overflow: auto;
}

#view-audit.audit-session .audit-result-panel {
    flex-shrink: 0;
    max-height: min(26vh, 200px);
    margin: 6px 0;
    padding: 10px 12px;
}

#view-audit.audit-session .audit-result-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.92rem;
}

#view-audit.audit-session .audit-result-meaning {
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.35;
}

#view-audit.audit-session .result .feedback-section {
    margin-top: 10px;
    padding-top: 10px;
}

#view-audit.audit-session #check-btn,
#view-audit.audit-session #next-btn,
#view-audit.audit-session #new-session-btn {
    flex-shrink: 0;
}

.correct {
    color: var(--color-success);
    font-weight: bold;
}

.wrong {
    color: var(--color-danger);
    font-weight: bold;
}

.progress {
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.progress-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.audio-btn {
    background: #f1f5f9;
    border: 1px solid var(--color-input-border);
    color: #000;
    padding: 8px 14px;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    width: auto;
    margin-top: 4px;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.button-group button {
    flex: 1;
}

.next-btn {
    background: var(--color-success);
    margin-top: 12px;
}

.definition-text {
    margin-top: 12px;
    padding: 12px;
    background: var(--color-warn-bg);
    border-radius: 12px;
    color: var(--color-warn-text);
    font-size: 0.95rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #f1f5f9;
    padding: 16px;
    border-radius: 20px;
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.stat-card p {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-text);
}

.word-list {
    max-height: 500px;
    overflow-y: auto;
}

.word-item {
    background: #f8fafc;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.word-list .word-char {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
}

.word-list .word-pinyin {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.word-list .word-def {
    flex: 1;
    min-width: 0;
    margin-left: 12px;
    color: #334155;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.search-box {
    margin-bottom: 16px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 90%;
}

.hidden {
    display: none;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    z-index: 2000;
    animation: fadeOut 3s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@media (max-width: 480px) {
    .word-item {
        flex-direction: column;
        text-align: center;
    }

    .word-list .word-def {
        margin-left: 0;
        margin-top: 8px;
    }
}

@media (max-width: 900px) {
    body {
        padding: 12px;
    }

    .container {
        min-height: calc(100svh - 24px);
        padding: 14px 14px 16px;
    }

    .nav-bar {
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
}

/* ============ FEEDBACK SECTION STYLES ============ */
.feedback-section {
    margin-top: 16px;
}

.feedback-section button.small {
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.2s;
}

.feedback-section button.small:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

#feedback-form {
    margin-top: 12px;
}

#feedback-form input {
    margin-bottom: 8px;
    padding: 10px 14px;
    border: 1px solid var(--color-input-border);
    border-radius: 40px;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.9rem;
    transition: 0.2s;
}

#feedback-form input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
    outline: none;
}

#feedback-form .small {
    width: auto;
}

#feedback-btn {
    background: #64748b;
    color: white;
}

#submit-feedback-btn {
    background: var(--color-primary);
    color: white;
}

#cancel-feedback-btn {
    background: #94a3b8;
    color: white;
}

/* Feedback button container */
.result .feedback-section {
    border-top: 1px solid var(--color-border);
    margin-top: 16px;
    padding-top: 12px;
}

/* Admin tabs - high contrast */
.admin-tab {
    background: #334155;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.admin-tab:hover {
    background: #1e293b;
}
.admin-tab.active {
    background: #e63946;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.admin-panel {
    margin-top: 20px;
    background: #f8fafc;
    border-radius: 20px;
    padding: 16px;
    overflow-x: auto;
}
.admin-panel table {
    width: 100%;
    border-collapse: collapse;
}
.admin-panel th, .admin-panel td {
    padding: 12px 8px;
    border-bottom: 1px solid #cbd5e1;
    text-align: left;
    color: #1e293b;
}
.admin-panel th {
    background: #e2e8f0;
    font-weight: bold;
}
.admin-panel button {
    background: #64748b;
    padding: 4px 12px;
    font-size: 0.8rem;
    width: auto;
    border: none;
    border-radius: 30px;
    color: white;
    cursor: pointer;
}
.admin-panel button:hover {
    background: #475569;
}

.admin-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-header h2 {
    margin: 0;
}

.admin-export-btn {
    background: #0f766e;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

.admin-export-btn:hover:not(:disabled) {
    background: #0d9488;
}

.admin-export-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-toolbar select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}

.admin-muted {
    color: #64748b;
    font-size: 0.9rem;
}

.admin-empty {
    color: #64748b;
    padding: 12px 0;
}

.admin-cell-wrap {
    max-width: 220px;
    word-break: break-word;
}

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

.admin-btn-accept {
    background: #059669 !important;
}

.admin-btn-accept:hover {
    background: #047857 !important;
}

.admin-btn-reject,
.admin-btn-delete {
    background: #dc2626 !important;
}

.admin-btn-reject:hover,
.admin-btn-delete:hover {
    background: #b91c1c !important;
}

.admin-btn-read {
    background: #2563eb !important;
}

.admin-btn-read:hover {
    background: #1d4ed8 !important;
}

.admin-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.admin-status-pending,
.admin-status-unread {
    background: #fef3c7;
    color: #92400e;
}

.admin-status-accepted,
.admin-status-read {
    background: #d1fae5;
    color: #065f46;
}

.admin-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.admin-row-unread td {
    background: #fffbeb;
}

/* Contact modal */
#contact-email, #contact-title, #contact-message {
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-size: 0.95rem;
}
#contact-email:focus, #contact-title:focus, #contact-message:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230,57,70,0.2);
}

/* Saved sessions */
.saved-session-intro,
.saved-session-empty {
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.saved-session-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saved-session-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

.saved-session-title {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.saved-session-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

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

.saved-session-actions .saved-delete-btn {
    background: #94a3b8;
}
/* My feedback */
.myfb-intro,
.myfb-empty {
    color: var(--color-text-muted);
    margin-bottom: 16px;
}
.myfb-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.myfb-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}
.myfb-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.myfb-word {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text);
}
.myfb-line {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 4px;
}
.myfb-key {
    color: var(--color-text-muted);
}
.myfb-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 8px;
}
.myfb-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--color-text-muted);
}
.myfb-status-accepted {
    background: #dcfce7;
    color: #166534;
}
.myfb-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}
.myfb-status-pending {
    background: #fef3c7;
    color: #92400e;
}

/* Admin review modal */
.admin-review-modal {
    text-align: left;
    max-width: 520px;
}
.admin-review-details {
    margin: 0 0 14px;
    font-size: 0.9rem;
}
.admin-review-details > div {
    display: flex;
    gap: 8px;
    padding: 3px 0;
    border-bottom: 1px solid var(--color-border);
}
.admin-review-details dt {
    flex: 0 0 130px;
    color: var(--color-text-muted);
    margin: 0;
}
.admin-review-details dd {
    margin: 0;
}
.admin-review-modal label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 10px 0 4px;
}
.admin-review-modal input[type="text"],
.admin-review-modal textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid var(--color-input-border);
    border-radius: 12px;
    font-size: 0.9rem;
}
.admin-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.guest-blurb {
    color: var(--color-text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
}

/* Profile recent activity */
.profile-activity-scroll {
    max-height: 360px;
    overflow-x: auto;
    overflow-y: auto;
}
.profile-activity-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.profile-activity-table th,
.profile-activity-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}
.profile-activity-table th {
    background: #f1f5f9;
    font-weight: 600;
    white-space: nowrap;
}
.profile-activity-cell {
    max-width: 180px;
    word-break: break-word;
}
.profile-mode-badge {
    display: inline-block;
    font-size: 0.75rem;
    white-space: nowrap;
    color: #475569;
}
