/* Erythrocyte adaptation of the supplied Nava + Codex Glass panel designs. */
@font-face{font-family:ReferenceVazir;src:url('/assets/reference-ui/vazirmatn.woff2') format('woff2');font-weight:100 900;font-display:swap}
html[data-theme]{--r-bg:#131216;--r-pane:linear-gradient(120deg,#55505b54,#27242dba);--r-solid:#25212b;--r-ink:#f4eff7;--r-muted:#b4a9bd;--r-line:#ffffff20;--r-accent:#ff907f;--r-shadow:inset 0 1px #ffffff12,0 15px 36px #0002;--r-input:#13101885;--r-active:#ffffff10}
html[data-theme=light]{--r-bg:#f6f5f8;--r-pane:linear-gradient(125deg,#ffffffd9,#faf7fbd9);--r-solid:#fff;--r-ink:#302a36;--r-muted:#82788c;--r-line:#35243f16;--r-accent:#bf4967;--r-shadow:inset 0 1px #fff,0 12px 36px #4f315908;--r-input:#fff9;--r-active:#c56b8c0e}
html[data-theme][data-design] body[data-page=panel]{background:radial-gradient(ellipse at 15% 5%,#54405722,transparent 50%),var(--r-bg)!important;color:var(--r-ink)!important;font-family:ReferenceVazir,Erythro,Tahoma,sans-serif;font-size:14px;line-height:1.85;isolation:isolate}
body[data-page=panel] .reference-scene{position:fixed;inset:0;z-index:-2;overflow:hidden;pointer-events:none;opacity:.36;background:#101014}.reference-scene>div{position:absolute;inset:-60%;display:grid;grid-template-columns:repeat(7,1fr);gap:14px;transform:rotate(-32deg) skew(8deg)}.reference-scene i{min-height:215px;border-radius:18px;background:linear-gradient(145deg,#79717b,#27232b 15%,#151219 70%,#4c4651);border:1px solid #8c7d8e66;box-shadow:inset 2px 2px 2px #d6bde438,inset -3px -3px 3px #0006,0 7px #08070b}.reference-scene i:nth-child(3n){background:linear-gradient(140deg,#18161d,#060509 70%,#47404d)}
html[data-theme=light] .reference-scene{opacity:.11;background:#fff}.reference-scene:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,#19131c88,#18141f22 60%,#09070f99)}html[data-theme=light] .reference-scene:after{background:#fbf7fb99}
html[data-theme][data-design] body[data-page=panel] .portal-header{max-width:1680px;width:calc(100% - 44px);margin:22px auto 0;padding:12px 18px;border:1px solid var(--r-line);border-radius:18px;background:var(--r-pane)!important;box-shadow:var(--r-shadow);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);top:14px;min-height:68px;color:var(--r-ink)}
html[data-theme][data-design] body[data-page=panel] .dashboard:not([hidden]){display:grid;grid-template-columns:252px minmax(0,1fr);gap:22px;max-width:1680px;width:calc(100% - 44px);margin:22px auto;padding:0;align-items:start}
html[data-theme][data-design] body[data-page=panel] .panel-main{min-width:0;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
html[data-theme][data-design] body[data-page=panel] .panel-sidebar{position:sticky;inset:auto;top:112px;width:auto;min-width:0;height:calc(100dvh - 136px);max-height:none;min-height:370px;margin:0;padding:18px 12px;background:var(--r-pane)!important;border:1px solid var(--r-line);border-radius:18px;box-shadow:var(--r-shadow);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);overflow:auto;transform:none;visibility:visible}
html[data-theme][data-design] body[data-page=panel] .panel-sidebar>#sidebar-name{display:block;font-size:17px;padding:10px 10px 2px;margin:0;background:none;border:0;border-radius:0;color:var(--r-ink)}html[data-theme][data-design] body[data-page=panel] .panel-sidebar>#sidebar-role{display:block;padding:0 10px 15px;margin:0 0 15px;border:0;border-bottom:1px solid var(--r-line);border-radius:0;background:none;font-size:11px;color:var(--r-muted)!important}
html[data-theme][data-design] body[data-page=panel] .panel-sidebar .eyebrow{padding:0 10px;font-size:10px;color:var(--r-muted)}
html[data-theme][data-design] body[data-page=panel] .panel-sidebar nav button{display:flex;align-items:center;gap:11px;width:100%;padding:11px 13px;margin:0 0 5px;border:1px solid transparent;border-radius:11px;background:transparent;box-shadow:none;color:var(--r-muted);font-size:12px;text-align:right;line-height:1.8;white-space:normal;transition:background .18s,border-color .18s;color:var(--r-muted)}
html[data-theme][data-design] body[data-page=panel] .panel-sidebar nav button:hover{background:var(--r-active);color:var(--r-ink);transform:none}html[data-theme][data-design] body[data-page=panel] .panel-sidebar nav button.active{background:linear-gradient(120deg,#ffffff13,#ffffff07)!important;border-color:var(--r-line)!important;box-shadow:inset 0 1px #fff1!important;color:var(--r-ink)!important}html[data-theme=light][data-design] body[data-page=panel] .panel-sidebar nav button.active{background:#bd7b9610!important}
.panel-sidebar .reference-nav-text{min-width:0;flex:1}.panel-sidebar .reference-nav-text+span.nav-badge{flex-shrink:0}.panel-sidebar .reference-nav-text:empty{display:none}.panel-sidebar nav button>i{width:19px;flex-shrink:0;text-align:center;font-size:16px}.panel-sidebar nav button.active>i{color:var(--r-accent)!important}
html[data-theme][data-design] .glass-nav-label{font-size:10px;color:var(--r-muted);padding:15px 12px 8px}
.reference-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 20px;padding:0 3px}.reference-heading h1{font-size:23px!important;margin:0 0 3px!important;font-weight:800;line-height:1.8}.reference-heading p{font-size:11px;color:var(--r-muted);margin:0!important}.reference-heading time{font-size:11px;color:var(--r-muted);white-space:nowrap}.reference-heading time:before{content:'';display:inline-block;width:6px;height:6px;background:#50d493;border-radius:50%;margin-inline-end:7px;box-shadow:0 0 0 3px #50d49315}
.reference-panel-search{display:flex;align-items:center;gap:8px;width:min(350px,35vw);min-height:39px;border:1px solid var(--r-line);border-radius:11px;padding:0 12px;color:var(--r-muted);background:var(--r-input);font-size:11px;cursor:pointer}.reference-panel-search svg{width:16px;height:16px;flex-shrink:0}.reference-panel-search kbd{margin-inline-start:auto;font:10px sans-serif;border:1px solid var(--r-line);border-radius:4px;padding:2px 5px}.reference-panel-search:focus-visible{outline:2px solid var(--r-accent);outline-offset:3px}
html[data-theme][data-design] body[data-page=panel] :is(.form-card,.day-card,.stat-tile,.request-card,.res-card,.exam-card,.content-member,.content-task,.user-card){position:relative;min-width:0;padding:23px;border:1px solid var(--r-line)!important;border-top-color:color-mix(in srgb,var(--r-line) 55%,#fff)!important;border-radius:17px!important;background:var(--r-pane)!important;color:var(--r-ink)!important;box-shadow:var(--r-shadow)!important}
html[data-theme][data-design] body[data-page=panel] :is(.form-card,.stat-tile,.request-card):before{pointer-events:none}html[data-theme][data-design] body[data-page=panel] :is(.form-card,.stat-tile):hover{border-color:color-mix(in srgb,var(--r-accent) 35%,var(--r-line))!important}
html[data-theme][data-design] body[data-page=panel] :is(h2,h3){color:var(--r-ink)!important}html[data-theme][data-design] body[data-page=panel] h2{font-size:19px;line-height:1.9}html[data-theme][data-design] body[data-page=panel] :is(.muted,small,.eyebrow){color:var(--r-muted)}
html[data-theme][data-design] body[data-page=panel] :is(input,textarea,select):not([type=checkbox]):not([type=radio]):not([type=range]){background:var(--r-input)!important;color:var(--r-ink)!important;border:1px solid var(--r-line)!important;border-radius:11px!important;padding:10px 12px;font-size:13px;min-width:0;max-width:100%;outline:none;box-shadow:none}html[data-theme][data-design] body[data-page=panel] :is(input,textarea,select):focus-visible{border-color:var(--r-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--r-accent) 12%,transparent)!important}html[data-theme][data-design] body[data-page=panel] select option{background:var(--r-solid);color:var(--r-ink)}
html[data-theme][data-design] body[data-page=panel] .button{border-radius:11px;padding:9px 15px;min-height:40px;font-size:12px;border:1px solid var(--r-line);box-shadow:none;transform:none;transition:filter .18s,background .18s}html[data-theme][data-design] body[data-page=panel] .button:not(.secondary){background:linear-gradient(125deg,#ed8879,#cc526a);color:#fff}html[data-theme][data-design] body[data-page=panel] .button.secondary{background:var(--r-active);color:var(--r-ink)}html[data-theme][data-design] body[data-page=panel] .button:hover{filter:brightness(1.08)}
html[data-theme][data-design] body[data-page=panel] .table-wrap{max-width:100%;overflow:auto;border:1px solid var(--r-line);border-radius:14px}html[data-theme][data-design] body[data-page=panel] table{width:100%;border-collapse:collapse;font-size:12px}html[data-theme][data-design] body[data-page=panel] :is(th,td){padding:14px 13px;border-bottom:1px solid var(--r-line);text-align:right}html[data-theme][data-design] body[data-page=panel] th{font-size:10px;color:var(--r-muted);background:var(--r-active);font-weight:500}html[data-theme][data-design] body[data-page=panel] tr:hover td{background:var(--r-active)}
html[data-theme][data-design] body[data-page=panel] dialog[open]{width:min(760px,calc(100% - 28px));max-height:calc(100dvh - 44px);overflow:auto;border:1px solid var(--r-line);border-radius:20px;background:var(--r-solid);color:var(--r-ink);box-shadow:0 25px 95px #0005;padding:24px}html[data-theme][data-design] body[data-page=panel] dialog::backdrop{background:#100e1b88;backdrop-filter:blur(6px)}
html[data-theme][data-design] body[data-page=panel] .glass-panel-welcome{background:var(--r-pane)!important;border:1px solid var(--r-line);border-radius:17px;padding:25px;box-shadow:var(--r-shadow)}html[data-theme][data-design] body[data-page=panel] .glass-panel-welcome:after{opacity:.3}.reference-collapse{display:flex;align-items:center;gap:8px;width:100%;padding:12px 10px;margin-top:12px;background:none;border:0;border-top:1px solid var(--r-line);color:var(--r-muted);font:11px ReferenceVazir,sans-serif;cursor:pointer}.reference-collapse svg{width:17px;height:17px;flex-shrink:0}
.reference-search-dialog form{display:flex;gap:10px}.reference-search-dialog input{flex:1;width:100%}.reference-search-results{list-style:none;margin:18px 0 0;padding:0}.reference-search-results button{display:flex;width:100%;padding:12px 14px;background:none;border:0;border-radius:10px;color:var(--r-ink);font:inherit;text-align:right;cursor:pointer}.reference-search-results button:hover,.reference-search-results button:focus-visible{background:var(--r-active);outline:1px solid var(--r-line)}.reference-search-dialog .reference-close{float:left;width:34px;height:34px;border:0;border-radius:9px;background:var(--r-active);color:var(--r-ink);font-size:22px;cursor:pointer}
.reference-credit-pill{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border:1px solid var(--r-line);border-radius:999px;background:var(--r-active);color:var(--r-accent);font-size:10px;text-decoration:none;white-space:nowrap}
@media(min-width:761px){html[data-theme][data-design] body.reference-sidebar-compact .dashboard:not([hidden]){grid-template-columns:82px minmax(0,1fr)}.reference-sidebar-compact .panel-sidebar :is(.eyebrow,#sidebar-name,#sidebar-role,.advisor-under-name,.glass-nav-label,.reference-nav-text,.reference-collapse span,.nav-badge){display:none!important}.reference-sidebar-compact .panel-sidebar nav button{justify-content:center!important;padding:13px 8px!important}.reference-sidebar-compact .panel-sidebar>#shop-panel-link,.reference-sidebar-compact .panel-sidebar>#logout{font-size:0!important;min-height:40px}.reference-sidebar-compact .panel-sidebar>#shop-panel-link:after{content:'↗';font-size:20px}.reference-sidebar-compact .panel-sidebar>#logout:after{content:'⏻';font-size:20px}.reference-sidebar-compact .reference-collapse{justify-content:center}.reference-sidebar-compact .reference-collapse svg{transform:rotate(180deg)}}
@media(max-width:1100px) and (min-width:761px){html[data-theme][data-design] body[data-page=panel] .dashboard:not([hidden]){grid-template-columns:218px minmax(0,1fr);gap:16px}.reference-panel-search{width:220px}.reference-panel-search kbd{display:none}}
@media(max-width:760px){html[data-theme][data-design] body[data-page=panel] .reference-scene{display:none}html[data-theme][data-design] body[data-page=panel] .portal-header{width:calc(100% - 24px);margin:12px auto 0;padding:9px 12px;min-height:61px;border-radius:16px;top:8px;backdrop-filter:none;-webkit-backdrop-filter:none}html[data-theme][data-design] body[data-page=panel] .dashboard:not([hidden]){display:block;width:calc(100% - 24px);padding-top:0;margin:18px auto}html[data-theme][data-design] body[data-page=panel] .panel-sidebar{position:fixed;top:0;right:0;bottom:0;left:auto;width:min(320px,86vw);height:100dvh;min-height:0;border-radius:20px 0 0 20px;padding:26px 15px 35px;z-index:85;background:var(--r-solid)!important;transform:translateX(105%);visibility:hidden;backdrop-filter:none;-webkit-backdrop-filter:none;transition:transform .22s,visibility .22s}html[data-theme][data-design] body[data-page=panel].glass-menu-open .panel-sidebar{transform:translateX(0);visibility:visible}.reference-panel-search{width:38px;padding:8px;justify-content:center;border-radius:10px;min-height:37px}.reference-panel-search span,.reference-panel-search kbd{display:none}.reference-heading{margin-bottom:15px;align-items:start}.reference-heading h1{font-size:20px!important}.reference-heading p{font-size:10px}.reference-heading time{font-size:9px;max-width:110px;white-space:normal;text-align:left}.reference-collapse{display:none}html[data-theme][data-design] body[data-page=panel] :is(.form-card,.day-card,.stat-tile,.request-card,.res-card,.exam-card,.content-member,.content-task){padding:17px;border-radius:15px!important}html[data-theme][data-design] body[data-page=panel] :is(input,textarea,select):not([type=checkbox]):not([type=radio]){font-size:16px!important}html[data-theme][data-design] body[data-page=panel] dialog[open]{max-height:calc(100dvh - 28px);padding:18px}.reference-credit-pill{padding:6px 9px;font-size:9px}.reference-heading+.glass-panel-welcome{margin-top:0}}
html[data-theme][data-design] body[data-page=panel] [hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){body[data-page=panel] *,body[data-page=panel] *:before,body[data-page=panel] *:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Override the previous tile navigation while retaining its native buttons. */
html[data-theme][data-design] body[data-page=panel] #admin-nav{display:flex;flex-direction:column;gap:8px;margin:14px 0}
html[data-theme][data-design] body[data-page=panel] #admin-nav .glass-nav-group,html[data-theme][data-design] body[data-page=panel] #admin-nav .delegated-nav{display:flex;flex-direction:column;gap:2px}
html[data-theme][data-design] body[data-page=panel] #admin-nav button{min-height:43px;flex-direction:row;justify-content:flex-start;text-align:right;padding:10px 12px;gap:10px;border-radius:11px;background:transparent;border:1px solid transparent;font-size:12px;transform:none;box-shadow:none}
html[data-theme][data-design] body[data-page=panel] #admin-nav button i.fas{font-size:17px;width:19px}
html[data-theme][data-design] body[data-page=panel] #admin-nav .glass-nav-label{padding:13px 12px 6px;font-size:10px}
@media(max-width:760px){html[data-theme][data-design] body[data-page=panel] .glass-menu-toggle{display:grid;place-items:center;width:35px;height:35px;padding:7px;border:1px solid var(--r-line);border-radius:10px;background:transparent;color:var(--r-ink)}.glass-menu-toggle svg{width:20px;height:20px}html[data-theme][data-design] body[data-page=panel] .portal-header .header-links{gap:5px}html[data-theme][data-design] body[data-page=panel] .portal-header .header-links>a.button,html[data-theme][data-design] body[data-page=panel] .portal-header .header-links>.quiet{display:none}}
