:root {
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #64748b;
    --line: #dbe3ef;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --danger: #dc2626;
    --success-bg: #e8f8ef;
    --success-text: #166534;
    --error-bg: #fff1f2;
    --error-text: #b91c1c;
    --warning-bg: #fff7ed;
    --warning-text: #9a3412;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.public-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0edff, #f8fbff);
}
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-card {
    width: 100%;
    max-width: 430px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.09);
}
.brand { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.brand h1 { font-size: 24px; line-height: 1.2; margin: 0; }
.brand p { margin: 4px 0 0; color: var(--muted); }
.brand-logo {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.form-grid label, .form-stack label { font-weight: 700; font-size: 14px; }
.form-grid input, .form-grid textarea, .form-stack input, .form-stack textarea, .form-stack select, .search-form input, .search-form select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
.span-2 { grid-column: span 2; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}
.btn:hover { text-decoration: none; background: #f8fafc; }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-dark); }
.btn.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.danger:hover { background: #b91c1c; }
.btn.small { padding: 7px 10px; font-size: 13px; }
.btn.ghost { background: transparent; }
.help-text, .muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-footer { margin-top: 18px; text-align: center; }
.alert { padding: 12px 14px; border-radius: 12px; margin: 14px 0; font-size: 14px; }
.alert.error { background: var(--error-bg); color: var(--error-text); }
.alert.success { background: var(--success-bg); color: var(--success-text); }
.alert.warning { background: var(--warning-bg); color: var(--warning-text); }
.topbar {
    height: 62px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar div { display: flex; gap: 12px; align-items: baseline; }
.topbar span { color: var(--muted); font-size: 14px; }
.public-topbar { position: static; }
.layout { display: flex; min-height: calc(100vh - 62px); }
.sidebar {
    width: 245px;
    background: #0f172a;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sidebar a {
    color: #cbd5e1;
    padding: 11px 12px;
    border-radius: 10px;
    font-weight: 700;
}
.sidebar a:hover, .sidebar a.active {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    text-decoration: none;
}
.content { flex: 1; padding: 24px; max-width: 1280px; }
.container { max-width: 1100px; margin: 0 auto; padding: 24px; }
.container.narrow { max-width: 900px; }
h1 { margin: 0 0 18px; font-size: 26px; }
h2 { margin: 0 0 12px; font-size: 20px; }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
}
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
}
.stat-card span { color: var(--muted); display: block; margin-bottom: 8px; }
.stat-card strong { font-size: 32px; }
.stat-card small { color: var(--muted); display: block; margin-top: 6px; }
.danger-zone {
    border-color: #fecaca;
    margin-bottom: 16px;
}
.danger-zone h2 {
    margin-top: 0;
}
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.actions-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.actions-row.compact { margin-top: 0; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.data-table th, .data-table td {
    border-bottom: 1px solid var(--line);
    padding: 11px 10px;
    text-align: left;
    vertical-align: top;
}
.data-table th { background: #f8fafc; font-weight: 800; }
.score-table td, .score-table th { font-size: 15px; }
.score-tabs {
    margin-top: 10px;
}
.score-tab-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 12px;
}
.score-tab-button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: 8px;
    padding: 9px 12px;
    font-weight: 700;
    cursor: pointer;
}
.score-tab-button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.score-tab-panel[hidden] {
    display: none;
}
.score-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 12px;
}
.score-summary-grid.spmb-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.score-summary-grid div {
    border: 1px solid var(--line);
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
}
.score-summary-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}
.score-summary-grid strong {
    font-size: 18px;
}
.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}
.search-form { display: flex; gap: 10px; margin-bottom: 14px; }
.row-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.row-actions form { display: inline; margin: 0; }
.link-danger {
    border: 0;
    background: transparent;
    color: var(--danger);
    cursor: pointer;
    padding: 0;
    font: inherit;
}
.student-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.student-head h1 { margin-bottom: 6px; }
.student-head p { margin: 0; color: var(--muted); }
.student-photo {
    width: 96px;
    height: 128px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.info-grid div { background: #f8fafc; border-radius: 12px; padding: 12px; }
.info-grid span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.info-grid strong { font-size: 14px; }
.triple-input { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.date-row label { display: block; margin-bottom: 8px; }
.divider { border-top: 1px solid var(--line); margin: 6px 0; }
.code-box {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 13px;
    overflow-x: auto;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
}
@media (max-width: 850px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; flex-direction: row; overflow-x: auto; }
    .content { padding: 16px; }
    .form-grid, .cards-grid, .info-grid, .score-summary-grid, .score-summary-grid.spmb-summary-grid, .signature-doc-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .section-head, .student-head, .search-form { flex-direction: column; align-items: stretch; }
}

.form-grid select, .form-stack select, .search-form select, .data-table input {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 14px;
    background: #fff;
}
.checkbox-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 12px;
    background: #f8fafc;
}
.checkbox-card label { display: flex; gap: 9px; align-items: center; }
.checkbox-card input { width: auto; }
.badge.neutral { background: #f1f5f9; color: #334155; }
.signature-switch-panel h2 { margin-bottom: 10px; }
.signature-doc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.signature-doc-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px;
}
.signature-doc-card strong {
    display: block;
    margin-bottom: 10px;
}
.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    font-size: 13px;
    margin-top: 8px;
}
.switch-row input {
    appearance: none;
    width: 44px;
    height: 24px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background .15s ease, border-color .15s ease;
}
.switch-row input::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 2px;
    left: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
    transition: transform .15s ease;
}
.switch-row input:checked {
    background: var(--primary);
    border-color: var(--primary);
}
.switch-row input:checked::after {
    transform: translateX(20px);
}
.graduation-box {
    margin-top: 18px;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--line);
}
.graduation-box.open { background: #f0fdf4; border-color: #bbf7d0; }
.graduation-box.locked { background: #fff7ed; border-color: #fed7aa; }
.graduation-box p { margin: 0 0 10px; }
.graduation-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-weight: 800;
    letter-spacing: .5px;
}
.schedule-note {
    font-weight: 800;
    color: var(--warning-text);
}
.mini-form { margin: 0; }
@media (min-width: 851px) {
    .cards-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Modern purple theme update */
:root {
    --bg: #f7f3ff;
    --card: #ffffff;
    --text: #24143f;
    --muted: #75668f;
    --line: #e6dcfb;
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-soft: #ede9fe;
    --accent: #a855f7;
}
body { font-family: Inter, Arial, Helvetica, sans-serif; }
a { color: var(--primary); }
.public-bg.purple-public {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(168, 85, 247, 0.28), transparent 35%),
        radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.22), transparent 40%),
        linear-gradient(135deg, #2e1065 0%, #5b21b6 52%, #7c3aed 100%);
}
.hero-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 520px) minmax(320px, 460px);
    gap: 36px;
    align-items: center;
    justify-content: center;
    padding: 32px;
}
.hero-panel {
    color: #fff;
    padding: 34px;
}
.hero-logo-wrap {
    width: 92px;
    height: 92px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.24);
}
.hero-logo {
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
}
.hero-logo-fallback {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #5b21b6;
    font-weight: 900;
    font-size: 24px;
}
.hero-eyebrow {
    margin: 0 0 10px;
    color: #ddd6fe;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
}
.hero-panel h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}
.hero-desc {
    color: #ede9fe;
    font-size: 18px;
    line-height: 1.55;
    max-width: 520px;
}
.hero-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.hero-features span {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 9px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}
.modern-login-card {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 30px 80px rgba(24, 10, 60, 0.28);
}
.modern-brand h2 {
    margin: 0;
    font-size: 22px;
}
.modern-brand p { margin: 4px 0 0; color: var(--muted); }
.brand-logo {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 12px 26px rgba(124, 58, 237, 0.3);
}
.form-grid input, .form-grid textarea, .form-stack input, .form-stack textarea, .search-form input, .form-grid select, .form-stack select, .search-form select, .data-table input {
    border-color: #ddd0f7;
    background: #fbfaff;
    border-radius: 14px;
}
.form-grid input:focus, .form-stack input:focus, .form-grid textarea:focus, .form-stack textarea:focus {
    outline: 3px solid rgba(124, 58, 237, 0.16);
    border-color: #8b5cf6;
}
.btn {
    border-radius: 14px;
    border-color: #ddd0f7;
}
.btn.primary {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: #7c3aed;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.24);
}
.btn.primary:hover { background: linear-gradient(135deg, #6d28d9, #9333ea); }
.btn-wide { width: 100%; padding: 12px 14px; }
.topbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}
.sidebar {
    background: linear-gradient(180deg, #2e1065, #4c1d95 55%, #5b21b6);
}
.sidebar a:hover, .sidebar a.active {
    background: rgba(255, 255, 255, 0.14);
}
.card, .stat-card {
    border-color: #eadffd;
    box-shadow: 0 16px 42px rgba(88, 28, 135, 0.08);
}
.data-table th {
    background: #f3e8ff;
    color: #4c1d95;
}
.badge {
    background: #ede9fe;
    color: #5b21b6;
}
.info-grid div { background: #f5f3ff; }
.graduation-box.open { background: #f5f3ff; border-color: #c4b5fd; }
.graduation-box.locked { background: #fff7ed; border-color: #fdba74; }
@media (max-width: 900px) {
    .hero-login { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
    .hero-panel { padding: 12px 4px; }
    .hero-logo-wrap { width: 76px; height: 76px; border-radius: 22px; }
    .hero-logo { max-width: 58px; max-height: 58px; }
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.top-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }

.badge.success { background: #dcfce7; color: #166534; }
.badge.danger { background: #fee2e2; color: #991b1b; }
.badge.warning { background: #fef3c7; color: #92400e; }
.badge.neutral { background: #e2e8f0; color: #334155; }
.log-input {
    max-width: 260px;
    white-space: normal;
    word-break: break-word;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
}
.user-agent-text {
    max-width: 360px;
    white-space: normal;
    word-break: break-word;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}
.photo-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}
.photo-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    border: 1px dashed var(--line);
    border-radius: 8px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f8fafc;
    margin-bottom: 10px;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame span { color: var(--muted); font-size: 13px; }
.photo-card .badge { margin-bottom: 8px; }
.photo-card strong { display: block; font-size: 14px; line-height: 1.35; }
.photo-card p { margin: 4px 0 10px; color: var(--muted); font-size: 12px; }
.mini-upload { display: flex; flex-direction: column; gap: 8px; }
.mini-upload input[type="file"] { font-size: 12px; }
.mini-upload select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; background: #fff; }
.topbar-brand .badge { font-size: 12px; }
.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
}
.upload-preview-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}
.upload-preview-item {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfaff;
    padding: 6px;
}
.upload-preview-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: #f8fafc;
}
.upload-preview-item span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.photo-preview-table th,
.photo-preview-table td {
    vertical-align: top;
}
.preview-thumb {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #f8fafc;
    display: block;
}
.photo-bulk-form {
    margin-top: 14px;
}
.ledger-wrap {
    max-height: calc(100vh - 330px);
    min-height: 360px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.ledger-table {
    min-width: max-content;
    width: max-content;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}
.ledger-table th {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #f8fafc;
    user-select: none;
}
.ledger-table th a {
    color: inherit;
    display: block;
    padding-right: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.ledger-table th,
.ledger-table td {
    white-space: nowrap;
    padding: 8px 10px;
    border-right: 1px solid var(--line);
    overflow: hidden;
    text-overflow: ellipsis;
}
.ledger-table th .col-resizer {
    position: absolute;
    top: 0;
    right: -5px;
    width: 11px;
    height: 100%;
    cursor: col-resize;
    z-index: 20;
    touch-action: none;
}
.ledger-table th .col-resizer::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 5px;
    width: 2px;
    height: calc(100% - 16px);
    background: #cbd5e1;
    opacity: 0.6;
    border-radius: 2px;
}
.ledger-table th:hover .col-resizer::after,
.ledger-table.resizing th .col-resizer::after {
    background: var(--primary);
    opacity: 1;
}
.ledger-table td {
    vertical-align: middle;
}
.ledger-table tbody tr:nth-child(even) {
    background: #fbfbfc;
}
.ledger-table th:nth-child(1),
.ledger-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 3;
    background: inherit;
}
.ledger-table th:nth-child(1) {
    z-index: 5;
    background: #f8fafc;
}
.ledger-table .ledger-col-score { text-align: center; }
.ledger-name {
    min-width: 240px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ledger-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 28px;
    border-radius: 6px;
    padding: 5px 8px;
    background: #f8fafc;
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 700;
    text-align: center;
}
.ledger-value.score-low {
    background: #fff1f2;
    border-color: #fca5a5;
    color: #991b1b;
}
.ledger-value.score-high {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}
.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.pagination-summary {
    color: var(--muted);
    font-size: 13px;
    margin-right: 4px;
}
.pagination-gap {
    color: var(--muted);
    padding: 0 4px;
}
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.student-message-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}
.student-message-box {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--primary);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(88, 28, 135, 0.08);
}
.student-message-box h2 {
    margin-bottom: 8px;
}
.student-message-box p {
    margin: 0;
    line-height: 1.55;
}
.public-message-panel {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}
.public-message-panel article {
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255,255,255,.12);
}
.public-message-panel strong,
.public-message-panel span {
    display: block;
    color: #fff;
}
.public-message-panel span {
    color: #ede9fe;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 4px;
}
.login-resource-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 14px;
}
.login-resource-list a {
    font-size: 13px;
    font-weight: 700;
}
.resource-list {
    display: grid;
    gap: 10px;
}
.resource-item {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #fbfaff;
}
.resource-item:hover {
    text-decoration: none;
    background: #f5f3ff;
}
.resource-item span {
    color: var(--muted);
    font-size: 13px;
}
.resource-item em {
    color: var(--primary);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}
.profile-diff-list {
    display: grid;
    gap: 5px;
    min-width: 260px;
}
.diff-old {
    color: var(--danger);
    text-decoration: line-through;
}
.diff-new {
    color: #166534;
    font-weight: 800;
}
.compact-form textarea {
    min-height: 64px;
}
