@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&family=Tektur:wght@500;600;700&display=swap');
:is(#pd-cabinet.pd-cab--project,#pd-student-layout){
 --bg:#070b15;--text:#eff3fc;--muted:#aebbd2;--faint:#7e90ae;--cyan:#8ed8ff;--green:#75d7b1;--amber:#f4cd78;--red:#ff9ca7;
 --sh-panel:#111827;--sh-edge:#303e54;--sh-soft:#19283e;--sh-hero-a:#1a2d48;--sh-hero-b:#1c2036;--sh-hero-edge:#52718f;
 --sh-nav:#0c1322ed;--sh-hover:#1b2a40;--sh-grid:#d3e3ff06;--sh-glow:#243e7940;
 color-scheme:dark;color:var(--text);font:400 16px/1.5 'Exo 2',sans-serif;
}
:is(#pd-cabinet.pd-cab--project,#pd-student-layout)[data-theme=light]{
 --bg:#f4f7fc;--text:#172942;--muted:#53657f;--faint:#66758d;--cyan:#155497;--green:#17694d;--amber:#7c5311;--red:#aa293f;
 --sh-panel:#fff;--sh-edge:#cbd6e4;--sh-soft:#e5eef8;--sh-hero-a:#e3f1ff;--sh-hero-b:#eeecfb;--sh-hero-edge:#a3bdd4;
 --sh-nav:#f7faffed;--sh-hover:#e7effa;--sh-grid:#173b6908;--sh-glow:#cbdffc55;color-scheme:light;
}
#pd-student-layout{min-height:100vh;background:radial-gradient(ellipse at 0 0,var(--sh-glow),transparent 55%),linear-gradient(var(--sh-grid) 1px,transparent 1px),linear-gradient(90deg,var(--sh-grid) 1px,transparent 1px),var(--bg);background-size:auto,64px 64px,64px 64px,auto;isolation:isolate}
[data-student-header], [data-student-header] *{box-sizing:border-box}
[data-student-header] [hidden]{display:none!important}
:is(#pd-cabinet.pd-cab--project,#pd-student-layout) .sh-top{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:30;background:var(--sh-nav);backdrop-filter:blur(16px);border-bottom:1px solid var(--sh-edge);padding:18px 32px;min-height:88px;gap:22px}
[data-student-header] :is(a,button){-webkit-tap-highlight-color:transparent;text-decoration:none}
[data-student-header] :is(a,button):focus-visible{outline:3px solid var(--cyan);outline-offset:4px}
[data-student-header] .pd-brand{font:700 14px/1.4 'Tektur',sans-serif;letter-spacing:.04em;white-space:nowrap;color:var(--text)}
[data-student-header] .pd-brand em{margin:0 6px;color:var(--cyan);font-style:normal}
[data-student-header] .pd-brand:hover{color:var(--cyan)}
/* Tilda link colours must not mute the portal name or recolour its separator. */
:is(#pd-cabinet.pd-cab--project,#pd-student-layout) [data-student-header] a.pd-brand,
:is(#pd-cabinet.pd-cab--project,#pd-student-layout) [data-student-header] a.pd-brand em{color:var(--text)!important;opacity:1}
[data-student-header] .sh-top-actions{display:flex;align-items:center;gap:18px;margin-left:auto}
[data-student-header] svg{width:20px;height:20px;flex:none}
[data-student-header] .sh-theme{position:relative;display:grid;grid-template-columns:34px 34px;column-gap:8px;align-items:center;justify-items:center;width:86px;min-width:86px;height:44px;min-height:44px;padding:4px;border:1px solid var(--sh-edge);border-radius:30px;background:var(--sh-soft);color:var(--muted);cursor:pointer}
[data-student-header] .sh-theme-thumb{position:absolute;left:4px;top:4px;width:34px;height:34px;aspect-ratio:1;border-radius:50%;background:#9ed5ff;transition:transform .16s ease}
[data-student-header] .sh-theme>span:not(.sh-theme-thumb){display:grid;place-items:center;position:relative;z-index:1}
[data-student-header] .sh-theme svg{width:18px;height:18px}
[data-student-header] .sh-theme-moon{color:#122944}
[data-theme=light] [data-student-header] .sh-theme-thumb{transform:translateX(42px);background:#fff;box-shadow:0 1px 4px #21406625}
[data-theme=light] [data-student-header] .sh-theme-moon{color:var(--muted)}
[data-theme=light] [data-student-header] .sh-theme-sun{color:#925b08}
[data-student-header] .sh-bell{appearance:none;border:0;padding:0;background:transparent;font:inherit;cursor:pointer;position:relative;display:grid;place-items:center;width:40px;min-height:44px;color:var(--muted);border-radius:10px}
[data-student-header] .sh-bell:hover,[data-student-header] .sh-bell[aria-expanded=true]{background:var(--sh-hover);color:var(--cyan)}
[data-student-header] #pd-cabinet-notification-count{position:absolute;top:0;right:-4px;min-width:19px;padding:1px 4px;border-radius:10px;background:#9ed5ff;color:#10233d;font-size:11px;font-weight:700;text-align:center}
[data-student-header] .sh-profile{min-width:0;display:flex;align-items:center;gap:10px;position:relative;min-height:44px;color:var(--text)}
[data-student-header] .sh-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,#9edaff,#d9beff);color:#122541;font:700 16px/1 'Exo 2',sans-serif;flex:none}
[data-student-header] .sh-profile-copy{display:flex;flex-direction:column;gap:2px;min-width:0;max-width:320px;font-size:14px}
[data-student-header] #pd-user-name{overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;font:500 14px/1.45 'Exo 2',sans-serif;color:var(--text)}
[data-student-header] #pd-user-group{color:var(--muted);font-size:12px;line-height:1.4;text-align:left;overflow-wrap:anywhere}
[data-student-header] #pd-cabinet-profile-badge{position:absolute;top:2px;left:32px;width:8px;height:8px;border-radius:50%;background:var(--green);padding:0;overflow:hidden;font-size:0}
[data-student-header] #pd-logout{background:transparent;border:1px solid var(--sh-edge);color:var(--muted);padding:9px 13px;font:400 13px 'Exo 2',sans-serif;min-height:44px;border-radius:12px;white-space:nowrap;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
[data-student-header] #pd-logout:not(:disabled):is(:hover,:focus-visible){background:#ffe6e8;border-color:#efb1ba;color:#9f2938}
[data-student-header] .sh-notifications{position:fixed;inset:auto;margin:0;padding:0;border:1px solid var(--sh-edge);border-radius:20px;background:var(--sh-panel);color:var(--text);box-shadow:0 16px 60px #0003;overflow-y:auto;overscroll-behavior:contain;max-width:calc(100vw - 24px);font:400 14px/1.5 'Exo 2',sans-serif}
[data-student-header] .sh-notifications:not(:popover-open){display:none}
[data-student-header] .sh-notifications:popover-open{display:block}
[data-student-header] .sh-notifications-close{position:absolute;top:9px;right:9px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--muted);cursor:pointer;z-index:1}
[data-student-header] .sh-notifications-close:hover{background:var(--sh-hover);color:var(--text)}
[data-student-header] #pd-cabinet-notifications{position:relative;z-index:0;background:transparent;border:0;box-shadow:none;border-radius:0;padding:20px;margin:0}
[data-student-header] .pd-cn{--cm-text:var(--text);--cm-muted:var(--muted);--cm-line:var(--sh-edge);--cm-surface:var(--sh-soft);--cm-accent:var(--cyan)}
[data-student-header] .pd-cn-head{padding-right:33px;margin-bottom:16px;align-items:center}
[data-student-header] .pd-cn-head h2{margin:0;font:600 19px/1.4 'Exo 2',sans-serif}
[data-student-header] .pd-cn-lead{display:none}
[data-student-header] .pd-cm-tab{font-size:12px;padding:7px 11px;min-height:34px}
[data-student-header] .pd-cn-filters{margin:0 0 16px;gap:8px}
[data-student-header] .pd-cm-card{padding:14px}
[data-student-header] .pd-cm-card h3{font-size:15px;line-height:1.45}
[data-student-header] .pd-cm-body{font-size:13px;line-height:1.6}
[data-student-header] .pd-cm-actions{gap:8px 14px}
[data-student-header] .pd-cm-link{font-size:13px}
@media(max-width:1100px){[data-student-header] .sh-profile-copy{max-width:290px}}
@media(max-width:900px){:is(#pd-cabinet.pd-cab--project,#pd-student-layout) .sh-top{display:grid;grid-template-columns:minmax(0,1fr) 86px 40px auto;gap:12px}[data-student-header] .sh-top-actions{display:contents;margin:0}[data-student-header] .pd-brand{grid-column:1;grid-row:1;max-width:none;white-space:normal}[data-student-header] .sh-theme{grid-column:2;grid-row:1;margin:0}[data-student-header] .sh-bell{grid-column:3;grid-row:1}[data-student-header] #pd-logout{grid-column:4;grid-row:1}[data-student-header] .sh-profile{grid-column:1/-1;grid-row:2;width:100%}[data-student-header] .sh-profile-copy{max-width:none}}
@media(max-width:780px){:is(#pd-cabinet.pd-cab--project,#pd-student-layout) .sh-top{padding:16px 22px}}
@media(max-width:620px){:is(#pd-cabinet.pd-cab--project,#pd-student-layout) .sh-top{padding:13px 16px;gap:12px;min-height:79px}[data-student-header] .pd-brand{font-size:12px}[data-student-header] #pd-logout{font-size:12px;padding:8px 9px}}
@media(max-width:380px){:is(#pd-cabinet.pd-cab--project,#pd-student-layout) .sh-top{column-gap:8px}}
@media(prefers-reduced-motion:reduce){[data-student-header] *{transition:none!important}}
