:root{
  --primary:#1358b8;--primary-2:#1d6ed8;--primary-3:#0d3f88;--accent:#ffca16;
  --bg:#eef4fb;--surface:#ffffff;--surface-2:#f7f9fc;--text:#19243a;--muted:#68758a;
  --line:#dce4ef;--success:#0b8a4b;--danger:#c83b4b;--warning:#b67600;--info:#2e6bb6;
  --sidebar:#0b2f62;--sidebar-2:#0e3d7d;--shadow:0 10px 28px rgba(22,53,92,.09);
  --radius:14px;--sidebar-width:270px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.45}a{color:var(--primary);text-decoration:none}button,input,select,textarea{font:inherit}.app-shell{display:flex;min-height:100vh}
.sidebar{width:var(--sidebar-width);background:linear-gradient(180deg,var(--sidebar) 0%,#08254d 100%);color:#dfeaff;position:fixed;inset:0 auto 0 0;z-index:50;overflow:auto;box-shadow:8px 0 25px rgba(4,28,61,.08)}
.brand{height:78px;display:flex;align-items:center;gap:12px;padding:14px 18px;color:#fff;border-bottom:1px solid rgba(255,255,255,.09)}.brand:hover{color:#fff}.brand-logo{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,#1b73df,#0d55b0);box-shadow:0 8px 18px rgba(0,0,0,.16);font-size:20px}.brand b{font-size:18px;letter-spacing:.2px}.brand small{display:block;color:#a9bfdc;margin-top:2px;font-size:10px}
.sidebar-scroll{padding:12px 10px 24px}.nav-section{padding:13px 12px 5px;color:#7fa0c6;text-transform:uppercase;font-size:9px;font-weight:800;letter-spacing:.13em}.nav-link,.submenu a{display:flex;align-items:center;gap:11px;color:#d9e7f9;padding:10px 12px;border-radius:10px;margin:2px 0;transition:.15s ease}.nav-link i:first-child{width:20px;text-align:center}.nav-link:hover,.submenu a:hover{background:rgba(255,255,255,.09);color:#fff}.nav-item.active>.nav-link,.submenu a.active{background:linear-gradient(90deg,#1764c7,#1b70db);color:#fff;box-shadow:0 7px 18px rgba(0,0,0,.13)}.chev{margin-left:auto;font-size:10px;transition:.2s}.nav-item.expanded>.nav-link .chev{transform:rotate(180deg)}.submenu{display:none;padding:2px 0 5px 30px}.nav-item.expanded>.submenu{display:block}.submenu a{font-size:12px;padding:8px 10px;color:#bfd1e8}.submenu a:before{content:"";width:5px;height:5px;border-radius:50%;background:#6c93c0}.submenu a.active:before{background:#fff}.sidebar-footer{margin:12px 10px 0;padding:12px;border-top:1px solid rgba(255,255,255,.08);color:#8ba9ca;font-size:10px}
.main-wrap{margin-left:var(--sidebar-width);min-width:0;flex:1;display:flex;flex-direction:column;min-height:100vh}.topbar{height:66px;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:sticky;top:0;z-index:40;backdrop-filter:blur(10px)}.topbar-left{display:flex;align-items:center;gap:11px}.topbar-title{font-size:16px;font-weight:800}.topbar small{display:block;color:var(--muted);font-size:10px}.top-actions{display:flex;align-items:center;gap:8px}.icon-btn{border:1px solid var(--line);background:#fff;color:var(--text);width:38px;height:38px;border-radius:11px;display:grid;place-items:center;position:relative;cursor:pointer;transition:.15s}.icon-btn:hover{border-color:#bdd0e8;background:#f5f9fe}.notif-count{position:absolute;right:-4px;top:-5px;background:#e3384f;color:#fff;border-radius:10px;min-width:18px;height:18px;padding:0 4px;font-size:9px;display:grid;place-items:center;border:2px solid #fff}.user-chip{display:flex;align-items:center;gap:9px;border:1px solid var(--line);padding:4px 9px 4px 5px;border-radius:12px;background:#fff;min-width:160px}.avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(145deg,var(--primary),var(--primary-2));color:#fff;display:grid;place-items:center;font-weight:800}.content{padding:18px;flex:1;max-width:1800px;width:100%;margin:0 auto}
.hero{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(105deg,#1457b4 0%,#1968ce 62%,#2479e5 100%);color:#fff;padding:21px 22px;border-radius:16px;box-shadow:0 11px 26px rgba(19,88,184,.18);margin-bottom:14px;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;right:-70px;top:-110px;border:30px solid rgba(255,255,255,.06)}.hero>*{position:relative;z-index:1}.hero h1{margin:0;font-size:24px;line-height:1.2}.hero p{margin:6px 0 0;color:#dcecff;font-size:12px;max-width:920px}.hero .actions{justify-content:flex-end}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:2px 0 14px}.page-head h1{margin:0;font-size:24px}.page-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.page-tools{display:flex;gap:7px;flex-wrap:wrap}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:13px 0}.card,.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.stat{padding:15px 16px;position:relative;overflow:hidden}.stat:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--primary)}.stat .label{text-transform:uppercase;color:#667487;font-size:9px;font-weight:900;letter-spacing:.08em}.stat .value{font-size:25px;font-weight:850;margin:5px 0 1px;color:#16233a}.stat small{color:var(--muted);font-size:10px}.stat-icon{position:absolute;right:13px;top:13px;width:36px;height:36px;border-radius:11px;background:#eaf3ff;color:var(--primary);display:grid;place-items:center}.panel{padding:15px;margin-bottom:14px}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.panel h2,.panel h3{margin:0 0 11px}.panel-title h2,.panel-title h3{margin:0}.muted{color:var(--muted)}.small{font-size:11px}.divider{height:1px;background:var(--line);margin:13px 0}
.filters,.form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.filters{grid-template-columns:repeat(6,minmax(0,1fr));align-items:end}.form-group label{display:block;font-size:10px;font-weight:800;margin:0 0 5px;color:#56647a}.form-control,select,textarea,input[type=file]{width:100%;border:1px solid #ccd7e5;border-radius:9px;padding:8px 10px;background:#fff;color:#1a2637;min-height:38px;outline:none;transition:.15s}.form-control:focus,select:focus,textarea:focus{border-color:#6ba2e4;box-shadow:0 0 0 3px rgba(28,105,207,.09)}textarea{min-height:105px;resize:vertical}input[type=file]{padding:6px}.field-help{display:block;color:var(--muted);font-size:10px;margin-top:4px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:9px;padding:8px 12px;font-weight:750;font-size:12px;text-decoration:none;cursor:pointer;white-space:nowrap;transition:.15s}.btn:hover{transform:translateY(-1px)}.btn-primary{background:linear-gradient(180deg,#1969d1,#1256ae);color:#fff}.btn-success{background:#0d8e4d;color:#fff}.btn-danger{background:#c94150;color:#fff}.btn-warning{background:#ffca16;color:#332800}.btn-light{background:#f5f8fc;color:#26364c;border-color:#d5e0ec}.btn-outline{background:#fff;color:var(--primary);border-color:#b9cde6}.btn-sm{padding:6px 9px;font-size:11px}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.search-wrap{position:relative}.search-wrap i{position:absolute;left:10px;top:12px;color:#8593a6}.search-wrap input{padding-left:31px}.summary-strip{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:8px 0;color:var(--muted);font-size:11px}.summary-strip b{color:var(--text)}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:11px;background:#fff}.table{width:100%;border-collapse:collapse;min-width:900px}.table th{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#5a687d;background:#f7f9fc;text-align:left;padding:10px;border-bottom:1px solid var(--line);white-space:nowrap}.table td{padding:9px 10px;border-bottom:1px solid #edf1f6;vertical-align:middle;font-size:11px}.table tr:last-child td{border-bottom:0}.table tr:hover td{background:#fbfdff}.table b{font-size:11px}.table small{font-size:9px;color:var(--muted)}.table-empty{padding:30px;text-align:center;color:var(--muted)}
.badge{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:20px;font-size:9px;font-weight:850;background:#e8edf4;color:#506078;white-space:nowrap}.badge-active,.badge-approved,.badge-used,.badge-published,.badge-current-student{background:#dcf7e8;color:#087a42}.badge-pending,.badge-submitted,.badge-24-hour-reminder,.badge-nd-graduate{background:#fff1bd;color:#875d00}.badge-rejected,.badge-disabled,.badge-suspended,.badge-missed,.badge-48-hour-missed{background:#ffe0e4;color:#a32132}.badge-unused,.badge-draft,.badge-inactive{background:#e9edf3;color:#5d6a7d}
.alert{padding:10px 13px;border-radius:10px;margin-bottom:11px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.alert-success{background:#ddf7e8;color:#086d39}.alert-error{background:#ffe2e6;color:#a21e31}.alert-info{background:#e2efff;color:#1b5597}.alert-warning{background:#fff2c6;color:#765700}.alert button{border:0;background:transparent;font-size:18px;cursor:pointer;color:inherit}.empty{padding:28px;text-align:center;color:var(--muted)}
.pagination{display:flex;gap:5px;margin-top:11px;align-items:center;flex-wrap:wrap}.pagination a,.pagination span{padding:6px 9px;border:1px solid var(--line);border-radius:7px;color:var(--text);background:#fff;font-size:11px}.pagination .active{background:var(--primary);color:#fff;border-color:var(--primary)}
.split{display:grid;grid-template-columns:310px 1fr;gap:14px}.chat-list{max-height:640px;overflow:auto}.chat-contact{display:block;padding:10px;border-bottom:1px solid var(--line);color:var(--text)}.chat-contact.active{background:#eaf3ff}.chat-box{height:450px;overflow:auto;padding:10px;background:#f5f8fc;border-radius:10px}.bubble{max-width:74%;padding:8px 10px;margin:7px;border-radius:12px;background:#fff;border:1px solid var(--line);font-size:12px}.bubble.me{margin-left:auto;background:#dceaff;border-color:#c5daf8}.bubble small{display:block;color:var(--muted);margin-top:4px;font-size:9px}
.kpi-grid{display:grid;grid-template-columns:2fr 1fr;gap:14px}.progress-list{display:grid;gap:10px}.progress-row{display:grid;grid-template-columns:160px 1fr 52px;align-items:center;gap:10px}.progress-track{height:8px;background:#edf2f8;border-radius:20px;overflow:hidden}.progress-bar{height:100%;background:linear-gradient(90deg,#1766ca,#2c81e8);border-radius:20px}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.quick-card{border:1px solid var(--line);border-radius:11px;padding:11px;background:#fbfdff;color:var(--text);display:flex;gap:9px;align-items:center}.quick-card i{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#eaf3ff;color:var(--primary)}.quick-card b{display:block;font-size:11px}.quick-card small{display:block;color:var(--muted);font-size:9px}
footer{padding:12px 18px;background:#fff;border-top:1px solid var(--line);font-size:10px;color:var(--muted);display:flex;justify-content:space-between;gap:10px}.mobile-menu{display:none}.overlay{display:none}
.auth-page{min-height:100vh;background:linear-gradient(135deg,#eef5ff,#f9fbfe);display:grid;place-items:center;padding:24px}.auth-shell{width:min(980px,100%);display:grid;grid-template-columns:1.05fr .95fr;background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 20px 60px rgba(19,59,107,.16);border:1px solid #dbe5f0}.auth-brand{padding:48px;background:linear-gradient(145deg,#0d438f,#1768ce);color:#fff;display:flex;flex-direction:column;justify-content:center;min-height:560px;position:relative;overflow:hidden}.auth-brand:after{content:"";position:absolute;right:-80px;bottom:-100px;width:300px;height:300px;border:50px solid rgba(255,255,255,.06);border-radius:50%}.auth-brand h1{font-size:38px;margin:0 0 10px}.auth-brand p{color:#d9e9ff;max-width:520px}.auth-features{margin-top:24px;display:grid;gap:10px}.auth-feature{display:flex;gap:9px;align-items:center;font-size:12px}.auth-feature i{width:27px;height:27px;border-radius:8px;background:rgba(255,255,255,.12);display:grid;place-items:center}.auth-form{padding:45px 38px;display:flex;align-items:center}.auth-card{width:100%}.auth-card h2{font-size:26px;margin:0 0 5px}.auth-card .form-group{margin-bottom:12px}.auth-note{color:var(--muted);font-size:11px;margin-bottom:18px}.auth-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:13px;font-size:11px}
.dark{--bg:#101827;--surface:#162132;--surface-2:#1a2639;--text:#edf3fb;--muted:#9eacc0;--line:#2a3a50;--shadow:0 10px 28px rgba(0,0,0,.13)}.dark .topbar,.dark footer,.dark .panel,.dark .card,.dark .table-wrap,.dark .table td,.dark .table th,.dark .icon-btn,.dark .user-chip,.dark .form-control,.dark select,.dark textarea,.dark input[type=file],.dark .pagination a,.dark .pagination span{background:#162132;color:#edf3fb;border-color:#2a3a50}.dark .table th{background:#1a2639}.dark .table tr:hover td{background:#1a293d}.dark .quick-card,.dark .chat-box{background:#142033;border-color:#2a3a50}.dark .stat .value{color:#fff}
@media(max-width:1250px){.cards{grid-template-columns:repeat(2,1fr)}.filters{grid-template-columns:repeat(3,1fr)}.form-grid{grid-template-columns:repeat(3,1fr)}.kpi-grid{grid-template-columns:1fr}.quick-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:translateX(0)}.overlay.show{display:block;position:fixed;inset:0;background:rgba(7,25,49,.42);z-index:45}.main-wrap{margin-left:0}.mobile-menu{display:grid}.content{padding:12px}.filters,.form-grid{grid-template-columns:repeat(2,1fr)}.user-chip{min-width:0}.user-chip>div:last-child{display:none}.auth-shell{grid-template-columns:1fr}.auth-brand{min-height:auto;padding:32px}.auth-form{padding:30px}.hero{flex-direction:column;align-items:flex-start}.hero .actions{justify-content:flex-start}.split{grid-template-columns:1fr}.chat-list{max-height:230px}}
@media(max-width:560px){.cards,.filters,.form-grid,.quick-grid{grid-template-columns:1fr}.content{padding:10px}.topbar{padding:0 9px}.topbar-title{font-size:13px}.topbar-left small{display:none}.hero{padding:18px}.hero h1,.page-head h1{font-size:20px}.page-head{flex-direction:column}.table{min-width:760px}.progress-row{grid-template-columns:110px 1fr 45px}.auth-page{padding:0}.auth-shell{border-radius:0;min-height:100vh}.auth-brand{padding:24px}.auth-brand h1{font-size:30px}.auth-form{padding:25px 20px}.logout-btn{display:none}}

/* V3.1 visual refinement — aligned with the supplied SIWES admin reference */
body{background:linear-gradient(180deg,#f3f7fd 0,#eef4fb 220px,#edf3f9 100%)}
.content{padding:20px 22px 24px}.topbar{box-shadow:0 4px 18px rgba(35,64,102,.045)}
.hero{min-height:88px;border-radius:17px;background:linear-gradient(100deg,#1254ad 0%,#1664c8 56%,#1d73dc 100%);border:1px solid rgba(255,255,255,.08)}
.hero h1 i{margin-right:8px}.hero .btn-light{background:#fff;color:#194a8d;border-color:#fff}.hero .btn-warning{box-shadow:0 7px 16px rgba(95,76,0,.13)}
.card,.panel{border-color:#dfe6ef;box-shadow:0 8px 22px rgba(38,64,94,.065)}
.stat{min-height:82px;padding:16px 17px}.stat:before{display:none}.stat .label{color:#5c697a}.stat .value{font-size:24px;letter-spacing:-.02em}.stat-icon{background:#edf5ff;border:1px solid #dcecff}
.filters{background:#fff}.form-control,select,textarea,input[type=file]{border-color:#d6dee9;background:#fff}.form-control:hover,select:hover,textarea:hover{border-color:#b8c8dc}
.btn{min-height:36px;border-radius:10px}.btn-primary{background:#1767c9;border-color:#1767c9;box-shadow:0 5px 12px rgba(23,103,201,.13)}.btn-light{background:#fff;border-color:#d8e1ec}.btn-outline{background:#f8fbff}
.table-wrap{border-radius:12px}.table thead th{position:sticky;top:0;z-index:2;background:#f6f8fc}.table td{height:51px}.table tr:hover td{background:#f8fbff}
.badge{border:1px solid rgba(0,0,0,.025)}.badge-open,.badge-in-progress{background:#e5f0ff;color:#1b5fa8}.badge-resolved,.badge-low{background:#ddf7e8;color:#087a42}.badge-closed{background:#e9edf3;color:#59667a}.badge-high{background:#fff0c2;color:#8a6100}.badge-urgent{background:#ffe0e4;color:#a32132}.badge-normal{background:#e8edf4;color:#506078}
.sidebar{background:linear-gradient(180deg,#0a3268 0%,#082852 100%)}.brand{background:rgba(255,255,255,.025)}.nav-link,.submenu a{border:1px solid transparent}.nav-link:hover,.submenu a:hover{border-color:rgba(255,255,255,.05)}
.nav-item.active>.nav-link,.submenu a.active{background:linear-gradient(90deg,#1866c8,#2078e2)}
.user-chip{box-shadow:0 3px 12px rgba(33,58,91,.04)}
.auth-page{background:radial-gradient(circle at 15% 20%,#dbeaff 0,transparent 34%),linear-gradient(135deg,#eff5fd,#f9fbfe)}
.auth-shell{box-shadow:0 25px 80px rgba(19,59,107,.18)}.auth-brand{background:linear-gradient(145deg,#0c3d83,#1768ce 60%,#1c75db)}
.chat-box{border:1px solid var(--line)}
@media(max-width:900px){.content{padding:12px}.topbar{height:62px}.hero{min-height:auto}.table thead th{position:static}}

/* V4 Real SIWES Hardcopy Logbook */
.lb-shell{display:grid;grid-template-columns:260px minmax(0,1fr);gap:14px;align-items:start}.lb-nav{position:sticky;top:80px}.lb-nav a{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:9px;color:var(--text);font-size:11px;margin:2px 0}.lb-nav a:hover,.lb-nav a.active{background:#eaf3ff;color:var(--primary)}.lb-nav .week-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:8px}.lb-nav .week-grid a{justify-content:center;padding:7px 4px;border:1px solid var(--line);background:#fff}.lb-nav .week-grid a.done{background:#e2f6ea;color:#087a42;border-color:#c4ead4}.lb-paper{background:#fff;color:#111;border:1px solid #d7d7d7;border-radius:15px;box-shadow:0 8px 26px rgba(25,37,50,.08);padding:26px;margin:0 auto 15px;max-width:900px}.lb-paper *{box-sizing:border-box}.lb-paper h2,.lb-paper h3{font-family:Arial,sans-serif;color:#111;text-align:center;margin:0}.lb-paper h2{font-size:24px}.lb-paper h3{font-size:17px;margin-top:4px}.lb-paper .lb-subtitle{text-align:center;font-weight:700;font-size:13px;margin:4px 0 12px}.lb-line-row{display:grid;grid-template-columns:220px 1fr;gap:10px;align-items:end;margin:9px 0}.lb-line-row label{font-weight:600}.lb-line-row input,.lb-line-row textarea,.lb-paper input,.lb-paper select,.lb-paper textarea{border:0;border-bottom:1px solid #222;border-radius:0;background:#fff;color:#111;padding:5px 4px;box-shadow:none}.lb-paper textarea{border:1px solid #bbb;min-height:80px;line-height:1.55}.lb-paper input:focus,.lb-paper textarea:focus,.lb-paper select:focus{outline:2px solid #8ab9ef;box-shadow:none}.lb-hard-table{width:100%;border-collapse:collapse;margin-top:10px}.lb-hard-table th,.lb-hard-table td{border:1px solid #111;padding:5px;vertical-align:top;color:#111}.lb-hard-table th{background:#fff;text-align:center}.lb-hard-table .day-cell{width:130px;font-weight:700}.lb-hard-table .activity-cell textarea{min-height:115px;border:0;width:100%;resize:vertical;background:repeating-linear-gradient(to bottom,#fff 0,#fff 23px,#d7d7d7 24px)}.lb-hard-table .date-mini{font-size:11px;margin-top:6px}.lb-voice{margin-top:6px;font-size:10px;padding:5px 8px}.lb-summary-pad{min-height:420px;border:1px solid #222;padding:10px;background:repeating-linear-gradient(to bottom,#fff 0,#fff 25px,#ddd 26px)}.lb-summary-pad textarea{border:0;background:transparent;min-height:390px;width:100%;resize:vertical}.lb-statusbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:10px 0}.lb-status{padding:5px 8px;border-radius:20px;font-size:10px;font-weight:800;background:#edf2f8}.lb-status.ok{background:#def6e8;color:#0a7942}.lb-status.lock{background:#ffe4e7;color:#a52235}.lb-status.wait{background:#fff1bd;color:#805b00}.lb-progress{height:10px;background:#e9eef5;border-radius:20px;overflow:hidden}.lb-progress>span{display:block;height:100%;background:linear-gradient(90deg,#1766ca,#2e81df)}.lb-week-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.lb-week-card{display:block;border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff;color:var(--text)}.lb-week-card b{display:block}.lb-week-card small{color:var(--muted)}.lb-preview-page{width:min(100%,816px);margin:0 auto 18px;background:#fff;box-shadow:0 7px 24px rgba(0,0,0,.15);page-break-after:always}.lb-preview-page img{display:block;width:100%;height:auto}.lb-print-gate{border-left:4px solid var(--accent);padding-left:12px}.lb-fieldset{border:1px solid #cfcfcf;border-radius:10px;padding:12px;margin-top:12px}.lb-fieldset legend{padding:0 7px;font-weight:800;color:#111}.lb-inline-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.lb-inline-3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.lb-attendance-table input{min-width:82px}.lb-paper .muted{color:#555}.lb-template-note{font-size:10px;color:#555;text-align:center;margin-top:8px}
@media(max-width:1050px){.lb-shell{grid-template-columns:1fr}.lb-nav{position:static}.lb-week-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.lb-paper{padding:14px;border-radius:10px}.lb-line-row{grid-template-columns:1fr;gap:2px}.lb-hard-table{font-size:11px}.lb-hard-table .day-cell{width:86px}.lb-inline-2,.lb-inline-3{grid-template-columns:1fr}.lb-week-cards{grid-template-columns:1fr}.lb-nav .week-grid{grid-template-columns:repeat(4,1fr)}}
@media print{body{background:#fff!important}.sidebar,.topbar,footer,.no-print,.page-head,.hero{display:none!important}.main-wrap{margin:0!important}.content{padding:0!important;max-width:none!important}.lb-preview-page{box-shadow:none;margin:0 auto;page-break-after:always}.lb-preview-page:last-child{page-break-after:auto}}
.lb-preview-stack{padding:4px 0 30px}.lb-preview-page{position:relative;overflow:hidden}.lb-page-number{position:absolute;right:9px;top:9px;background:rgba(11,47,98,.88);color:#fff;border-radius:18px;padding:5px 9px;font-size:10px}.lb-assess-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0}.lb-paper hr{border:0;border-top:1px solid #bbb;margin:18px 0}.lb-paper fieldset:disabled{opacity:.82}.lb-paper select{min-height:36px}
@media(max-width:760px){.lb-assess-grid{grid-template-columns:1fr}}
@media print{@page{margin:0}.lb-preview-stack{padding:0}.lb-preview-page{width:100%;max-width:none;margin:0!important}.lb-preview-page img{width:100%;max-height:100vh;object-fit:contain}}

/* V5 Student portal - role-specific dashboard and document centre */
.student-status-strip{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:12px;padding:11px 14px;margin-bottom:14px;box-shadow:0 5px 16px rgba(30,62,95,.04)}
.student-status-strip span:first-child{background:#eaf3ff;color:#1259ad;border-radius:20px;padding:7px 10px;font-weight:800;font-size:11px}.student-status-strip b{font-size:12px}.student-status-strip span:last-child{color:var(--muted);font-size:11px}
.panel-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.student-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:13px}.student-action-grid.nd-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.student-action-card{display:flex;gap:13px;align-items:flex-start;background:#fff;border:1px solid #dce5f0;border-radius:13px;padding:15px;color:var(--text);min-height:103px;transition:.16s;box-shadow:0 4px 14px rgba(31,58,87,.035)}.student-action-card:hover{transform:translateY(-2px);border-color:#aac8eb;box-shadow:0 9px 22px rgba(31,82,139,.10)}.student-action-card>i{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;background:#eaf3ff;color:#1767c9;font-size:17px;flex:0 0 auto}.student-action-card b{display:block;font-size:13px;margin:2px 0 5px}.student-action-card small{display:block;line-height:1.45;color:var(--muted)}.student-action-card.primary{border-color:#bed8f6;background:linear-gradient(145deg,#f7fbff,#edf6ff)}.student-action-card.primary>i{background:#1767c9;color:#fff}
.student-doc-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.student-doc-shortcuts>a{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:12px;color:var(--text)}.student-doc-shortcuts>a:hover{border-color:#b3cdea;background:#f8fbff}.student-doc-shortcuts i{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#eaf3ff;color:#1767c9}.student-doc-shortcuts b,.student-doc-shortcuts small{display:block}.student-doc-shortcuts small{margin-top:3px;color:var(--muted);font-size:10px}
.doc-personalized{display:inline-flex;align-items:center;gap:5px;margin-top:5px;color:#0a7b48;font-size:10px;font-weight:800}.empty-state{padding:28px;text-align:center;color:var(--muted)}
.doc-admin-settings{display:grid;grid-template-columns:95px 90px 120px 90px 72px 90px auto auto;gap:5px;align-items:center;min-width:850px}.doc-admin-settings .form-control,.doc-admin-settings select{min-width:0}
.dark .student-status-strip,.dark .student-action-card,.dark .student-doc-shortcuts>a{background:#162132;border-color:#2a3a50}.dark .student-action-card.primary{background:#16283d}.dark .student-action-card>i,.dark .student-doc-shortcuts i{background:#203b5d}
@media(max-width:1180px){.student-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.student-doc-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.student-action-grid,.student-action-grid.nd-grid,.student-doc-shortcuts{grid-template-columns:1fr}.student-action-card{min-height:auto}.student-status-strip{align-items:flex-start;flex-direction:column}}
/* V12 mobile usability */
.student-action-card.session-locked{opacity:.78;border-style:dashed;background:#f4f6f9;cursor:not-allowed}.student-action-card.session-locked i{color:#7f8b99}
@media(max-width:560px){
  .top-actions{gap:5px}.top-actions .user-chip{display:none!important}.top-actions .logout-btn{display:grid!important}.icon-btn{width:36px;height:36px}.sidebar-footer{padding-bottom:22px}
  .page-tools,.actions{flex-wrap:wrap}.btn{max-width:100%}
}
