/* UniEvents Phase 5 student pages. Inherits Phase 1/2 color tokens without changing the brand. */
:root{--ue-student-accent:#4F46E5;--ue-student-teal:#0F766E;--ue-student-border:#E2E8F0;--ue-student-page:#F8FAFC;--ue-student-panel:#fff;--ue-student-ink:#0F172A;--ue-student-muted:#64748B;--ue-student-shadow:0 9px 25px rgba(20,30,70,.05)}
[data-bs-theme=dark]{--ue-student-page:#10172B;--ue-student-panel:#1A2540;--ue-student-border:#33435F;--ue-student-ink:#F8FAFC;--ue-student-muted:#CDD5E3;--ue-student-shadow:0 7px 20px rgba(0,0,0,.16)}
.ue-student-body{background:var(--ue-student-page);color:var(--ue-student-ink);min-height:100vh;font-family:Tajawal,Inter,sans-serif}
[lang=en] .ue-student-body{font-family:Inter,Tajawal,sans-serif}
.ue-student-shell{display:grid;grid-template-columns:256px minmax(0,1fr);min-height:100vh}
.ue-student-sidebar{position:sticky;top:0;align-self:start;height:100vh;display:flex;flex-direction:column;background:var(--ue-student-panel);border-inline-end:1px solid var(--ue-student-border);padding:20px 14px;overflow-y:auto;z-index:8}
.ue-student-brand{display:block;margin:8px 9px 35px}.ue-student-brand img{display:block;width:174px;max-height:56px;object-fit:contain}.ue-student-menu{display:grid;gap:5px}
.ue-student-nav-item{padding:12px 15px;border-radius:11px;color:var(--ue-student-muted);font-weight:700;display:flex;gap:13px;align-items:center;text-decoration:none;transition:background .14s}
.ue-student-nav-item:hover{background:#EEF2FF;color:#4338CA;text-decoration:none}.ue-student-nav-item.is-active{background:#EEF2FF;color:#4338CA}.ue-menu-dot{width:9px;height:9px;border:2px solid #A5B4FC;border-radius:3px;flex-shrink:0}.ue-student-nav-item.is-active .ue-menu-dot{background:#4F46E5;border-color:#4F46E5}
[data-bs-theme=dark] .ue-student-nav-item:hover,[data-bs-theme=dark] .ue-student-nav-item.is-active{background:#312E81;color:#F8FAFC}
.ue-sidebar-bottom{border-top:1px solid var(--ue-student-border);padding:18px 15px;margin-top:auto;display:flex;flex-direction:column;gap:9px}.ue-sidebar-bottom p{margin:0;font-weight:800}.ue-sidebar-bottom small{color:var(--ue-student-muted)}
.ue-student-body-container{min-width:0}.ue-student-topbar{min-height:72px;border-bottom:1px solid var(--ue-student-border);background:var(--ue-student-panel);padding:12px clamp(18px,3vw,40px);display:flex;align-items:center;justify-content:space-between;gap:15px}.ue-toptools{display:flex;gap:19px;align-items:center;flex-wrap:wrap}.ue-text-link{border:0;background:none;color:var(--ue-student-accent);font-weight:700;padding:4px;font-size:14px;cursor:pointer;text-decoration:none}.ue-top-icon{font-size:27px;color:var(--ue-student-accent)}.ue-user-chip{font-weight:700;font-size:13px;background:var(--ue-student-page);border:1px solid var(--ue-student-border);border-radius:20px;padding:10px 14px}.ue-topbrand{display:none;font-weight:900;color:var(--ue-student-accent)}.ue-menu-toggle{display:none;background:none;border:1px solid var(--ue-student-border);color:var(--ue-student-ink);border-radius:10px;padding:9px 14px;font-size:22px}
.ue-student-content{padding:34px clamp(18px,3vw,44px) 70px;max-width:1700px;margin:auto}.ue-student-footer{padding:22px;text-align:center;color:var(--ue-student-muted);font-size:13px}.ue-pageheading,.ue-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.ue-pageheading{margin-bottom:30px}.ue-pageheading h1{font-size:clamp(25px,2.4vw,38px);font-weight:900;margin:4px 0}.ue-pageheading .ue-eyebrow{letter-spacing:1.4px;font-size:11px;color:var(--ue-student-accent);font-weight:700}.ue-section-head{margin-bottom:16px}.ue-section-head h2,.ue-s-card h2{font-size:19px;font-weight:800;margin:0}.ue-section-head a{font-weight:700;font-size:14px}
.ue-student-body .ue-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;text-align:center;border:1px solid transparent;border-radius:10px;padding:10px 17px;font-weight:700;font-size:14px;text-decoration:none;cursor:pointer;transition:background .16s,transform .12s}.ue-student-body .ue-action:hover{transform:translateY(-1px)}.ue-action-primary{background:#4F46E5;color:white!important}.ue-action-primary:hover{background:#4338CA}.ue-action-outline{background:var(--ue-student-panel);color:#4F46E5!important;border-color:#C7D2FE!important}.ue-action-outline:hover{background:#EEF2FF}.ue-action-white{background:white;color:#312E81!important}.ue-action-sm{min-height:34px!important;padding:5px 11px!important;font-size:12px!important}.ue-student-body .ue-action:focus-visible,.ue-student-body a:focus-visible,.ue-student-body button:focus-visible,.ue-control:focus-visible{outline:3px solid #0F766E;outline-offset:3px}.ue-student-body button:disabled{opacity:.5;cursor:not-allowed}
.ue-s-card{border:1px solid var(--ue-student-border);border-radius:17px;background:var(--ue-student-panel);box-shadow:var(--ue-student-shadow);min-width:0}.ue-pad{padding:clamp(19px,2.1vw,29px)}.ue-s-card a{color:#4F46E5}.ue-stack{margin-top:25px;display:grid;gap:20px}.ue-muted{color:var(--ue-student-muted)!important}.ue-body-copy{white-space:pre-wrap;line-height:1.8}.ue-welcome{background:linear-gradient(115deg,#312E81,#4F46E5 60%,#0F766E);border-radius:20px;padding:35px;display:flex;align-items:center;justify-content:space-between;gap:25px;color:white}.ue-welcome h2{font-weight:900;font-size:clamp(20px,2.5vw,30px)}.ue-welcome p{margin:0;max-width:560px;opacity:.9}.ue-overline{letter-spacing:1.3px;font-size:11px;font-weight:700;color:#C8FFF6}
.ue-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin:22px 0}.ue-stat-card{display:flex;flex-direction:column;gap:5px;min-height:132px;background:var(--ue-student-panel);border:1px solid var(--ue-student-border);border-radius:15px;padding:21px;box-shadow:var(--ue-student-shadow)}.ue-stat-card span{color:#0F766E;font-size:22px}.ue-stat-card strong{font-size:29px;line-height:1.2}.ue-stat-card small{color:var(--ue-student-muted)}
.ue-dual-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:20px;margin-block:22px}.ue-action-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.ue-action-grid a{background:var(--ue-student-page);border:1px solid var(--ue-student-border);padding:21px 15px;border-radius:13px;font-weight:700;text-decoration:none}.ue-action-grid a:hover{background:#EEF2FF}.ue-mini-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--ue-student-border);padding:15px 0;color:var(--ue-student-ink)!important;text-decoration:none}.ue-mini-row:last-child{border-bottom:0}.ue-mini-row strong,.ue-mini-row span{font-weight:700}.ue-mini-row small{display:block;color:var(--ue-student-muted);font-size:12px}.ue-mini-row form{flex-shrink:0}
.ue-event-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.ue-event-tile{overflow:hidden}.ue-tile-image{height:160px;background:radial-gradient(circle at 15% 25%,#64E2D2 0 8%,transparent 30%),radial-gradient(circle at 90% 80%,#A5B4FC 0 12%,transparent 50%),linear-gradient(140deg,#312E81,#4F46E5 65%,#0F766E);position:relative;background-size:cover;background-position:center}.ue-tile-format{position:absolute;top:14px;inset-inline-start:14px;padding:5px 10px;background:#fff;color:#312E81;border-radius:30px;font-size:12px;font-weight:800}.ue-tile-content{padding:19px}.ue-tile-kicker{font-weight:700;font-size:12px;color:#0F766E}.ue-tile-content h3{font-size:18px;margin:8px 0;font-weight:800;min-height:45px}.ue-tile-content h3 a{color:var(--ue-student-ink);text-decoration:none}.ue-tile-content p{font-size:13px;min-height:45px}.ue-tile-meta{display:flex;flex-direction:column;gap:6px;margin:16px 0;font-size:12px;color:var(--ue-student-muted)}
.ue-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ue-filter-grid label,.ue-form-grid label,.ue-eval-grid label{font-weight:700;font-size:13px;display:block;margin-bottom:7px}.ue-control{width:100%;display:block;border:1px solid var(--ue-student-border);background:var(--ue-student-panel);color:var(--ue-student-ink);padding:11px 13px;min-height:46px;border-radius:10px}.ue-filter-actions{display:flex;gap:9px;align-items:end}.ue-pagination{margin-top:25px}
.ue-details-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}.ue-large-event-image{height:260px;border-radius:13px;margin-bottom:23px;background:radial-gradient(circle at 20% 20%,#14B8A6,transparent 35%),linear-gradient(110deg,#312E81,#4F46E5 55%,#0F766E);background-size:cover;background-position:center}.ue-details-grid h3{font-size:18px;font-weight:800;margin:25px 0 10px}.ue-action-side{display:flex;flex-direction:column;gap:13px}.ue-meta-list{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ue-meta-list dt{color:var(--ue-student-muted);font-size:12px}.ue-meta-list dd{font-weight:700;margin:3px 0}.ue-status{display:inline-flex;align-items:center;padding:5px 10px;border-radius:99px;background:#EEF2FF;color:#4338CA;font-size:12px;font-weight:700;white-space:normal}.ue-status-ok{background:#DCFCE7;color:#166534}.ue-status-muted{background:#E2E8F0;color:#334155}
.ue-note{padding:15px 18px;border-radius:12px;margin:14px 0;font-size:14px;border:1px solid transparent}.ue-note-success{background:#DCFCE7;color:#166534;border-color:#86EFAC}.ue-note-error{background:#FEE2E2;color:#991B1B;border-color:#FCA5A5}.ue-note-warning{background:#FFF7ED;color:#92400E;border-color:#FED7AA}.ue-note-info{background:#E0F2FE;color:#075985;border-color:#BAE6FD}.ue-note p{margin:6px 0}.ue-note ul{margin:0}
.ue-responsive-table{overflow-x:auto}.ue-data-table{width:100%;border-collapse:collapse;min-width:560px}.ue-data-table th,.ue-data-table td{padding:15px 12px;border-bottom:1px solid var(--ue-student-border);text-align:start;font-size:14px}.ue-data-table th{font-size:12px;color:var(--ue-student-muted);background:var(--ue-student-page)}.ue-cell-actions{display:flex;gap:12px;align-items:center}.ue-empty{text-align:center;border:1px dashed var(--ue-student-border);padding:40px 25px;border-radius:15px;color:var(--ue-student-muted)}.ue-empty-symbol{font-size:38px;color:#4F46E5}.ue-empty strong{display:block;color:var(--ue-student-ink);font-size:17px}.ue-empty p{font-size:13px}
.ue-reco-card{display:flex;flex-direction:column;gap:12px}.ue-reco-card h3{font-size:17px;font-weight:800}.ue-reco-progress{background:#E2E8F0;height:7px;border-radius:30px;overflow:hidden}.ue-reco-progress span{display:block;height:100%;background:linear-gradient(90deg,#4F46E5,#14B8A6)}.ue-reasons{padding-inline-start:20px;color:var(--ue-student-muted);font-size:13px}.ue-feedback{display:flex;flex-wrap:wrap;gap:9px;margin-top:auto}.ue-feedback button{border:1px solid var(--ue-student-border);border-radius:8px;background:var(--ue-student-panel);color:var(--ue-student-ink);padding:7px 10px;font-size:12px}.ue-qr-card{max-width:650px;margin:auto;text-align:center}.ue-qr-wrapper{background:#fff;margin:24px auto;padding:25px;border-radius:16px;width:fit-content;border:1px solid #E2E8F0}.ue-eval-grid,.ue-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ue-eval-grid .ue-full,.ue-form-grid .ue-full{grid-column:1/-1}.ue-actions-margin{margin-top:20px}
[data-bs-theme=dark] .ue-note-success{background:#064E3B;color:#DCFCE7}[data-bs-theme=dark] .ue-note-warning{background:#78350F;color:#FFEDD5}[data-bs-theme=dark] .ue-note-info{background:#0C4A6E;color:#E0F2FE}
@media(max-width:1199px){.ue-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ue-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ue-details-grid{grid-template-columns:minmax(0,1fr) 270px}}
@media(max-width:991px){.ue-student-shell{display:block}.ue-student-sidebar{position:fixed;inset-block:0;inset-inline-start:0;width:270px;transform:translateX(-110%);box-shadow:0 10px 40px #0003;transition:transform .2s}.ue-student-sidebar.is-open{transform:translateX(0)}[dir=rtl] .ue-student-sidebar{transform:translateX(110%)}[dir=rtl] .ue-student-sidebar.is-open{transform:translateX(0)}.ue-menu-toggle,.ue-topbrand{display:inline-block}.ue-toptools{gap:10px}.ue-dual-grid,.ue-details-grid{grid-template-columns:1fr}.ue-filter-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.ue-event-grid,.ue-stat-grid,.ue-filter-grid,.ue-eval-grid,.ue-form-grid{grid-template-columns:1fr}.ue-student-topbar{padding:10px 14px}.ue-student-content{padding:24px 15px 48px}.ue-pageheading{align-items:start}.ue-welcome{padding:24px;flex-direction:column;align-items:start}.ue-user-chip{display:none}.ue-pageheading h1{font-size:25px}.ue-tile-image{height:145px}.ue-meta-list{grid-template-columns:1fr}.ue-mini-row{flex-wrap:wrap}.ue-filter-actions{align-items:start}.ue-form-grid .ue-full,.ue-eval-grid .ue-full{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.ue-student-sidebar,.ue-student-body .ue-action{transition:none!important}}

/* Phase 6 root-cause correction: more specific than .ue-student-brand img in this file. */
.ue-student-brand img.ue-brand-dark{display:none}
.ue-student-brand img.ue-brand-light{display:block}
[data-bs-theme="dark"] .ue-student-brand img.ue-brand-light{display:none}
[data-bs-theme="dark"] .ue-student-brand img.ue-brand-dark{display:block}

/* Event image and content system — existing UniEvents indigo/teal brand. */
.ue-polished-card{min-width:0;display:flex;flex-direction:column;overflow:hidden;background:var(--ue-surface);border:1px solid var(--ue-border);border-radius:var(--ue-radius-lg);box-shadow:var(--ue-shadow-sm);transition:box-shadow .2s,transform .2s}
.ue-polished-card:hover{box-shadow:var(--ue-shadow-md);transform:translateY(-2px)}
.ue-polished-media{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:var(--ue-indigo-subtle)}
.ue-polished-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .22s}
.ue-polished-card:hover .ue-polished-media img{transform:scale(1.025)}
.ue-polished-type{position:absolute;top:12px;border-radius:var(--ue-radius-pill);font-size:.72rem;font-weight:800;padding:5px 11px;background:rgba(255,255,255,.95);color:#283575;line-height:1.35;box-shadow:0 2px 10px #0012}
.ue-polished-type{inset-inline-start:12px}
.ue-polished-content{display:flex;flex:1;flex-direction:column;gap:10px;padding:18px 20px 20px}
.ue-polished-chips{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.ue-polished-category{display:inline-flex;border-radius:var(--ue-radius-pill);background:var(--ue-teal-subtle);color:var(--ue-teal-strong);font-size:.75rem;font-weight:800;padding:4px 10px;line-height:1.4}
.ue-polished-status{display:inline-flex;border-radius:var(--ue-radius-pill);background:var(--ue-surface-alt);color:var(--ue-text-muted);font-size:.72rem;font-weight:800;padding:4px 10px;line-height:1.4}
.ue-polished-status.is-open{color:#166534;background:#DCFCE7}
.ue-polished-content h3{font-size:clamp(1rem,1.5vw,1.2rem);font-weight:800;line-height:1.38;margin:0;min-height:2.5em;color:var(--ue-text)}
.ue-polished-content h3 a{color:inherit;text-decoration:none}.ue-polished-content h3 a:hover{text-decoration:underline;color:var(--ue-indigo)}
.ue-polished-teaser{color:var(--ue-text-muted);font-size:.86rem;line-height:1.6;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-height:2.8em}
.ue-polished-meta{display:grid;gap:7px;font-size:.78rem;color:var(--ue-text-muted);margin-top:auto;padding-top:8px}
.ue-polished-meta span{min-width:0;overflow-wrap:anywhere}
.ue-polished-cta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:5px;min-height:40px;border-radius:var(--ue-radius-sm);padding:8px 13px;background:#4F46E5;color:#fff;font-weight:800;font-size:.84rem;text-decoration:none!important}
.ue-polished-cta:hover{background:#4338CA;color:#fff}.ue-polished-saved{font-size:.77rem;color:var(--ue-teal-strong);font-weight:700}
.ue-details-cover{width:100%;display:block;aspect-ratio:16/9;max-height:340px;object-fit:cover;border-radius:var(--ue-radius-md);margin-bottom:18px;background:var(--ue-indigo-subtle)}
.ue-detail-title{font-size:clamp(1.35rem,2.5vw,2rem);font-weight:900;line-height:1.3}
@media(max-width:640px){.ue-polished-content{padding:16px}.ue-polished-card:hover{transform:none}.ue-polished-meta{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){.ue-polished-card,.ue-polished-media img{transition:none!important}.ue-polished-card:hover,.ue-polished-card:hover img{transform:none!important}}
