:root {
    --ink: #172033;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.22);
    --paper: rgba(255, 255, 255, 0.92);
    --blue: #2563eb;
    --green: #059669;
    --amber: #d97706;
    --indigo: #4f46e5;
    --rose: #e11d48;
    --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background-color: #f5f7fb;
    background-image:
        linear-gradient(135deg, rgba(15, 23, 42, 0.045) 25%, transparent 25%),
        linear-gradient(315deg, rgba(14, 165, 233, 0.055) 25%, transparent 25%),
        linear-gradient(135deg, #f8fafc 0%, #eef4f8 48%, #f8fbf7 100%);
    background-size: 28px 28px, 28px 28px, cover;
    background-position: 0 0, 14px 14px, 0 0;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

button, input, textarea, select { font: inherit; }
button { touch-action: manipulation; }
.rounded-2xl,
.rounded-3xl,
.rounded-\[2rem\],
.rounded-\[2\.5rem\] {
    border-radius: var(--radius) !important;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
}

.desktop-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 34%),
        linear-gradient(135deg, #101827 0%, #172033 58%, #0f3b34 100%);
    box-shadow: 18px 0 60px rgba(15, 23, 42, 0.12);
}

.content-panel {
    min-width: 0;
    padding: 24px clamp(16px, 4vw, 44px) 124px;
}

.glass-header {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.18), 0 18px 50px rgba(15, 23, 42, 0.05);
}

.brand-mark {
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    box-shadow: 0 14px 35px rgba(14, 165, 233, 0.25);
}

.surface-card {
    background: var(--paper);
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius) !important;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.07);
}

.scale-active:active { transform: scale(0.97); }
.custom-scroll::-webkit-scrollbar { width: 6px; }
.custom-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }

.desktop-sidebar .text-slate-900,
.desktop-sidebar .text-slate-800 {
    color: #f8fafc !important;
}

.desktop-sidebar .text-slate-500,
.desktop-sidebar .text-slate-400 {
    color: rgba(226, 232, 240, 0.72) !important;
}

.desktop-sidebar nav button {
    border: 1px solid transparent;
}

.desktop-sidebar nav button.bg-slate-900 {
    background: #ffffff !important;
    color: #101827 !important;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

.desktop-sidebar nav button:not(.bg-slate-900):hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1);
}

.desktop-sidebar .bg-white\/70,
.desktop-sidebar .bg-slate-900 {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.login-stage {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 48%, #047857 100%);
    background-size: 42px 42px, 42px 42px, cover;
}

.command-hero {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    padding: clamp(24px, 4vw, 42px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    color: white;
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 48%, #047857 100%);
    background-size: 38px 38px, 38px 38px, cover;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.command-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.12) 48%, transparent 52%);
    opacity: 0.7;
    pointer-events: none;
}

.hero-date-panel {
    position: relative;
    z-index: 1;
    min-width: 170px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius);
    text-align: center;
}

.hero-date-panel strong {
    display: block;
    margin: 4px 0;
    font-size: 4rem;
    line-height: 0.9;
    font-weight: 900;
}

.hero-date-panel small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
    text-transform: uppercase;
}

.metric-tile,
.quick-action-tile {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius);
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.055);
}

.metric-tile {
    min-height: 108px;
    padding: 18px;
}

.metric-tile span {
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #64748b;
}

.metric-tile strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
    font-weight: 900;
    color: #0f172a;
}

.quick-action-tile {
    min-height: 142px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.quick-action-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 233, 0.28);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.1);
}

.quick-action-icon,
.calendar-event-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.calendar-page {
    padding-bottom: 120px;
}

.calendar-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.toolbar-icon-btn,
.toolbar-text-btn,
.toolbar-add-btn {
    min-height: 44px;
    border-radius: var(--radius);
    font-weight: 900;
    transition: transform 0.18s ease, background 0.18s ease;
}

.toolbar-icon-btn {
    width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.toolbar-text-btn {
    padding: 0 18px;
    background: #e2e8f0;
    color: #0f172a;
    text-transform: uppercase;
    font-size: 11px;
}

.toolbar-add-btn {
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0f172a;
    color: white;
    text-transform: uppercase;
    font-size: 11px;
}

.toolbar-icon-btn:active,
.toolbar-text-btn:active,
.toolbar-add-btn:active {
    transform: scale(0.96);
}

.calendar-board {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.74);
}

.calendar-weekdays span {
    padding: 14px 8px;
    text-align: center;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.calendar-day {
    position: relative;
    min-height: 112px;
    padding: 12px;
    background: white;
    border-right: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
    transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.calendar-day:nth-child(7n) {
    border-right: 0;
}

.calendar-day:hover {
    background: #f8fafc;
}

.calendar-day.muted {
    background: #f8fafc;
    color: #94a3b8;
}

.calendar-day.today .calendar-day-number {
    color: #0ea5e9;
}

.calendar-day.selected {
    z-index: 1;
    background: #eff6ff;
    box-shadow: inset 0 0 0 2px #0ea5e9;
}

.calendar-day-number {
    display: block;
    font-size: 0.95rem;
    font-weight: 900;
    color: #0f172a;
}

.calendar-day-events {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.calendar-day-events i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.calendar-day-events em {
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    color: #64748b;
}

.calendar-event-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid #edf2f7;
    border-radius: var(--radius);
    background: #ffffff;
}

.calendar-event-row.compact {
    padding: 10px;
}

.calendar-delete-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fb7185;
    border-radius: var(--radius);
    transition: background 0.18s ease, color 0.18s ease;
}

.calendar-delete-btn:hover {
    color: white;
    background: #e11d48;
}

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

.legend-grid span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: var(--radius);
    color: #475569;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.legend-grid i {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empty-action {
    width: 100%;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 2px dashed #bae6fd;
    background: rgba(240, 249, 255, 0.72);
    color: #0284c7;
    border-radius: var(--radius);
    font-weight: 900;
    text-transform: uppercase;
}

.submission-card {
    border-left: 6px solid #10b981;
}

.mini-stat {
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid #edf2f7;
    background: #f8fafc;
}

.mini-stat b {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 900;
    color: #0f172a;
}

.mini-stat span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.submission-small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: #f1f5f9;
    color: #334155;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.submission-small-btn:hover {
    background: #0f172a;
    color: white;
}

.submission-small-btn:active {
    transform: scale(0.97);
}

.qr-card {
    align-self: start;
}

.qr-image {
    width: min(100%, 260px);
    border-radius: var(--radius);
    border: 10px solid white;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.request-row,
.submission-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    background: white;
}

.pending-student-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.receipt-validator-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.88));
}

.receipt-lookup-input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 2px solid #e0f2fe;
    border-radius: var(--radius);
    background: white;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    outline: none;
}

.receipt-lookup-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.receipt-scan-btn {
    width: 100%;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--radius);
    background: #0f172a;
    color: white;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.receipt-scanner-box {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid #bae6fd;
    background: #0f172a;
}

.receipt-scanner-frame {
    min-height: 260px;
    color: white;
}

.receipt-scanner-frame video {
    border-radius: var(--radius);
}

.receipt-stop-btn {
    width: calc(100% - 24px);
    min-height: 42px;
    margin: 0 12px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius);
    background: white;
    color: #0f172a;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.receipt-scanner-status {
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: var(--radius);
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
}

.receipt-manual-toggle {
    display: inline-flex;
    margin-top: 12px;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.receipt-manual-toggle + .receipt-lookup-input {
    margin-top: 10px;
}

.receipt-valid-result,
.receipt-invalid-result,
.receipt-proof-box,
.receipt-download-box {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border-radius: var(--radius);
    font-size: 12px;
}

.receipt-valid-result,
.receipt-proof-box.valid {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #047857;
}

.receipt-invalid-result,
.receipt-proof-box.invalid {
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    color: #be123c;
}

.receipt-valid-result strong,
.receipt-invalid-result strong,
.receipt-proof-box h2,
.receipt-download-box h2 {
    display: block;
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.receipt-valid-result span,
.receipt-invalid-result span,
.receipt-valid-result small,
.receipt-proof-box p,
.receipt-download-box p,
.receipt-download-box span {
    display: block;
    color: #475569;
    font-weight: 800;
    line-height: 1.45;
}

.receipt-valid-result small,
.receipt-download-box span {
    margin-top: 5px;
    color: #0284c7;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.student-portal {
    min-height: 100vh;
    padding: clamp(18px, 5vw, 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, #0f172a 0%, #14532d 48%, #0369a1 100%);
    background-size: 42px 42px, 42px 42px, cover;
}

.student-card {
    width: min(100%, 760px);
    padding: clamp(22px, 5vw, 42px);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.student-portal-closed {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, #450a0a 0%, #991b1b 48%, #e11d48 100%);
    background-size: 42px 42px, 42px 42px, cover;
}

.student-closed-card {
    max-width: 680px;
    text-align: center;
    border: 1px solid rgba(254, 202, 202, 0.85);
    box-shadow: 0 34px 100px rgba(69, 10, 10, 0.36);
}

.student-closed-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: #fee2e2;
    color: #b91c1c;
}

.student-closed-kicker {
    margin: 0 0 10px;
    color: #e11d48;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

.student-closed-card h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 0.95;
    font-weight: 900;
}

.student-closed-message {
    max-width: 520px;
    margin: 18px auto 0;
    color: #475569;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.55;
}

.student-closed-reason {
    margin-top: 22px;
    padding: 16px;
    border-radius: var(--radius);
    background: #fff1f2;
    border: 1px solid #fecdd3;
    text-align: left;
}

.student-closed-reason span,
.student-closed-meta span {
    display: block;
    margin-bottom: 6px;
    color: #e11d48;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.student-closed-reason strong {
    display: block;
    color: #881337;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.45;
}

.student-closed-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.student-closed-meta div {
    padding: 13px;
    border-radius: var(--radius);
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    text-align: left;
}

.student-closed-meta b {
    display: block;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.student-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.student-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.student-meta-grid div {
    padding: 14px;
    border-radius: var(--radius);
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

.student-meta-grid span,
.student-field-wrap label {
    display: block;
    margin-bottom: 7px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.student-meta-grid b {
    display: block;
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    text-transform: uppercase;
}

.student-instructions {
    padding: 16px;
    margin-bottom: 22px;
    border-radius: var(--radius);
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    color: #065f46;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    white-space: pre-wrap;
}

.student-field-wrap {
    position: relative;
}

.student-input,
.student-textarea,
.student-file {
    width: 100%;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: #f8fafc;
    color: #0f172a;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.student-input {
    padding: 18px;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
}

.student-textarea {
    min-height: 118px;
    padding: 16px;
    font-weight: 700;
    resize: vertical;
}

.student-file {
    padding: 15px;
    font-weight: 800;
}

.student-input:focus,
.student-textarea:focus,
.student-file:focus {
    border-color: #10b981;
    background: #ffffff;
}

.student-suggestions {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid #d1fae5;
    background: white;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.student-suggestions button {
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.student-suggestions button:hover {
    background: #ecfdf5;
}

.selected-student-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.selected-student-pill button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #d1fae5;
}

.already-sent-box {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius);
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #047857;
}

.already-sent-box h2 {
    margin: 0 0 4px;
    color: #064e3b;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
}

.already-sent-box p {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.student-alert {
    padding: 13px 15px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 900;
}

.student-alert.error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #ffe4e6;
}

.student-alert.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #d1fae5;
}

.student-alert.warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.receipt-download-box {
    align-items: center;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
}

.receipt-download-box > div {
    min-width: 0;
    flex: 1;
}

.receipt-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--radius);
    background: #0f172a;
    color: white;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.student-submit-btn {
    width: 100%;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--radius);
    background: #059669;
    color: white;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 18px 45px rgba(5, 150, 105, 0.24);
}

.student-submit-btn.secondary {
    background: #0f172a;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.student-submit-btn:disabled {
    background: #cbd5e1;
    color: #64748b;
    box-shadow: none;
    cursor: not-allowed;
}

.validation-card {
    max-width: 820px;
}

.brand-mark.invalid {
    background: linear-gradient(135deg, #e11d48, #f97316);
    box-shadow: 0 14px 35px rgba(225, 29, 72, 0.24);
}

.receipt-meta-grid {
    margin-top: 16px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.35s ease-out forwards; }

@media (max-width: 900px) {
    .app-shell { display: block; }
    .desktop-sidebar { display: none; }
    .content-panel { padding: 16px 14px 118px; }
    .command-hero {
        min-height: 0;
        display: block;
    }
    .hero-date-panel {
        margin-top: 24px;
        min-width: 0;
        display: inline-block;
    }
    .calendar-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .calendar-day {
        min-height: 78px;
        padding: 8px;
    }
    .calendar-weekdays span {
        padding: 12px 2px;
        letter-spacing: 0;
    }
    .calendar-day-events {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
    .legend-grid {
        grid-template-columns: 1fr;
    }
    .student-brand,
    .request-row,
    .submission-row {
        align-items: stretch;
        flex-direction: column;
    }
    .student-meta-grid {
        grid-template-columns: 1fr;
    }
    .student-closed-meta {
        grid-template-columns: 1fr;
    }
    .student-card {
        padding: 20px;
    }
    .receipt-download-box {
        align-items: stretch;
        flex-direction: column;
    }
    .receipt-download-btn {
        width: 100%;
    }
}

@media (min-width: 901px) {
    .mobile-only { display: none !important; }
}
