/* Sidebar, kartu identitas, dan ringkasan untuk ruang layanan. */
body.admin-mode, .public-service-mode .portal-main {
 --work-bg:#f3f6fb;
 --work-ink:#101a37;
 --work-muted:#526587;
 --work-line:#e0e8f4;
 --work-accent:#2552d7;
 --work-accent-soft:#ecf2ff;
 --work-shadow:0 1px 2px #223c6710,0 12px 26px -20px #27457d46;
 --green:var(--work-accent);
 --green-dark:#1940ad;
 --green-soft:var(--work-accent-soft);
 --line:var(--work-line);
 --muted:var(--work-muted);
}
body.admin-mode {color:var(--work-ink);background:var(--work-bg)}
.work-shell {
 --work-sidebar-width:272px;
 display:grid;grid-template-columns:var(--work-sidebar-width) minmax(0,1fr);min-height:100dvh;
}
.work-shell[data-compact="1"] {--work-sidebar-width:84px}
.work-body {grid-column:2;min-width:0}
.work-sidebar {
 position:fixed;inset:0 auto 0 0;z-index:65;
 display:flex;flex-direction:column;gap:14px;width:var(--work-sidebar-width);height:100dvh;
 padding:22px 14px 14px;overflow:hidden;color:#d2dcf5;
 background:radial-gradient(ellipse at 0 0,#263451,transparent 45%),linear-gradient(180deg,#11192d,#10182c);
}
.work-side-brand {
 display:flex;align-items:center;gap:10px;padding:6px 8px 14px;border-bottom:1px solid #ffffff16;flex:none;min-width:0;
}
.work-side-brand img {width:42px;height:42px;object-fit:contain;border-radius:10px;background:#fff;flex:none;padding:3px}
.work-side-brand span, .work-profile > div, .work-mobile-brand > span {min-width:0}
.work-side-brand strong,.work-side-brand small {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.work-side-brand strong {color:#fff;font-size:17px;letter-spacing:-.25px;font-weight:800}
.work-side-brand small {color:#aebfe4;font-size:11px}
.work-menu {display:grid;align-content:start;gap:5px;flex:1;min-height:0;padding:2px 3px 8px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ffffff2c transparent}
.work-menu-group {border-radius:13px;border:1px solid transparent;min-width:0}
.work-menu-group[open] {background:#ffffff06;border-color:#ffffff12}
.work-menu-group > summary {
 display:flex;align-items:center;min-height:45px;gap:10px;cursor:pointer;list-style:none;
 border-radius:11px;padding:8px 10px;color:#d1dcf7;font-weight:750;font-size:13px;
}
.work-menu-group > summary::-webkit-details-marker {display:none}
.work-menu-group > summary > span {flex:1;min-width:0;overflow-wrap:anywhere}
.work-menu-group > summary > .icon {width:19px;height:19px;flex:none}
.work-menu-group > summary > .work-chevron {width:14px;height:14px;transition:transform .18s}
.work-menu-group[open] > summary > .work-chevron {transform:rotate(180deg)}
.work-menu-group.has-active > summary {background:#283957;color:#fff}
.work-menu-group > summary:hover,.work-menu-group > summary:focus-visible {background:#ffffff15;color:white}
.work-menu-items {padding:2px 5px 6px 10px}
.work-menu-section + .work-menu-section {border-top:1px solid #ffffff14;margin-top:6px;padding-top:5px}
.work-menu-section > p {font-size:10px;font-weight:750;color:#a6b8df;margin:6px 8px 4px}
.work-sidebar .work-link {
 display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:42px;min-width:0;
 padding:6px 8px;border-radius:10px;color:#d2dcf5;font-size:12px;line-height:1.4;
}
.work-sidebar .work-link > span {display:block;flex:1;min-width:0;overflow-wrap:anywhere}
.work-sidebar .work-link > .icon {width:18px;height:18px;color:#aebfea;flex:none}
.work-sidebar .work-link:hover {background:#ffffff14;color:#fff}
.work-sidebar .work-link.active {
 color:#fff;border-color:#8599f4;
 background:linear-gradient(135deg,#4159d2,#273d86 75%);box-shadow:0 4px 14px #07122c50,inset 0 1px #ffffff16;
}
.work-sidebar .work-link.active > .icon {color:#fff}
.work-nav-count {background:#ffffff18;border-radius:12px;flex:none;padding:2px 6px;font-size:10px;color:#e1ebff}
.work-sidebar :is(a,summary,button):focus-visible {outline:2px solid #acbdff;outline-offset:-2px}
.work-side-footer {flex:none;display:flex;justify-content:space-between;gap:8px;border-top:1px solid #ffffff16;padding-top:10px}
.work-side-footer a {display:flex;align-items:center;gap:7px;min-height:36px;padding:0 6px;font-size:11px;font-weight:700;color:#d2dcf5}
.work-side-footer .icon {width:17px;height:17px;flex:none}
.work-compact-toggle,.work-drawer-close {
 display:grid;place-items:center;border:0;border-radius:9px;background:#ffffff14;color:#e5edff;cursor:pointer;
 min-width:36px;min-height:36px;padding:6px;
}
.work-compact-toggle:hover,.work-drawer-close:hover {background:#ffffff28}
.work-drawer-close,.work-drawer-backdrop,.work-mobile-menu,.work-mobile-brand,.work-tabs {display:none}
.work-topbar {
 display:flex;justify-content:space-between;align-items:center;gap:14px;
 position:sticky;top:0;z-index:26;min-height:62px;padding:7px 22px;
 background:#ffffffed;backdrop-filter:blur(12px);border-bottom:1px solid #dce5f8;
}
.work-top-start,.work-top-actions,.work-profile {display:flex;align-items:center;gap:11px;min-width:0}
.work-top-actions {flex:none}
.work-location {
 display:flex;align-items:center;gap:8px;padding:7px 12px;min-width:0;border-radius:10px;
 background:#f3f6fe;color:var(--work-muted);font-size:12px;
}
.work-location .icon,.work-date .icon {flex:none;width:17px;height:17px;color:#3e65d7}
.work-location .icon:nth-of-type(2) {width:12px;height:12px;color:#7386b0}
.work-location strong,.work-profile strong {min-width:0;color:var(--work-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:750}
.work-date {display:flex;align-items:center;gap:6px;color:var(--work-muted);font-size:11px;white-space:nowrap;margin-right:4px}
.work-profile {padding-left:10px;border-left:1px solid var(--work-line)}
.work-profile strong,.work-profile small {display:block;max-width:180px}
.work-profile strong {font-size:12px}
.work-profile small {font-size:10px;color:var(--work-muted)}
.work-avatar {
 display:grid;place-items:center;width:39px;height:39px;border-radius:50%;
 background:#e5eeff;color:#224acf;font-size:14px;font-weight:800;flex:none;
}
.work-logout,.work-mobile-menu {
 place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:10px;color:#244780;background:transparent;cursor:pointer;flex:none;
}
.work-logout {display:grid}
.work-logout:hover,.work-mobile-menu:hover {background:var(--work-accent-soft)}
.work-logout .icon,.work-mobile-menu .icon {width:21px;height:21px}
body.admin-mode .work-content {width:100%;max-width:1512px;min-width:0;padding:18px 22px 38px;margin:0 auto}
body.admin-mode .admin-page-header h1 {font-size:clamp(21px,2.5vw,27px);line-height:1.2}
body.admin-mode .admin-card,.work-panel,.work-stat {border-radius:16px;border:1px solid var(--work-line);box-shadow:var(--work-shadow);background:#fff;min-width:0}

.work-dashboard {display:grid;gap:15px;min-width:0}
.work-identity {
 position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;min-height:242px;
 border-radius:23px;color:#fff;
 background:linear-gradient(78deg,#0341b6 0%,#0065df 65%,#65c6f3 100%);
 box-shadow:0 14px 25px -21px #254a8d99;
}
.work-identity.is-night {background:linear-gradient(78deg,#040912 0%,#0a1527 65%,#182e4a 100%);box-shadow:0 14px 25px -21px #0009}
.work-identity-copy {position:relative;z-index:2;width:min(64%,680px);min-width:0;padding:25px 0 26px 28px}
.work-identity-brand {
 display:flex;align-items:center;gap:7px;color:#fff;font-size:10.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;margin-bottom:9px
}
.work-identity-brand img {object-fit:contain;border-radius:5px;background:#fff;padding:2px;flex:none}
.work-greeting {font-size:14px;color:#ecf4ff;margin:0;font-weight:650}
.work-identity h1 {font-size:clamp(23px,3.35vw,36px);font-weight:800;color:#fff;line-height:1.13;letter-spacing:-.045em;margin:4px 0 9px;overflow-wrap:anywhere}
.work-identity-label {
 width:fit-content;max-width:100%;border:1px solid #ffffff61;border-radius:99px;
 background:#ffffff20;color:#fff;padding:4px 9px;font-size:11px;line-height:1.45;font-weight:700;margin:0;overflow-wrap:anywhere;
}
.work-identity-message {color:#f1f6ff;font-size:13px;max-width:43ch;margin:10px 0 0;line-height:1.5;overflow-wrap:anywhere}
.work-identity-actions {margin-top:12px;display:flex;flex-wrap:wrap;gap:8px}
.work-identity-actions .btn {
 border:1px solid #ffffff80;background:#f3f7ff;color:#153f8b;font-size:12px;border-radius:11px;min-height:39px;
 padding:7px 11px;box-shadow:0 5px 15px -10px #001a52;font-weight:750;white-space:normal
}
.work-identity-actions .btn:hover {background:white;color:#1545d0}
.work-identity :is(a,button):focus-visible {outline:2px solid #fff;outline-offset:3px}
.work-sky {position:absolute;z-index:0;inset:0;pointer-events:none}
.work-sky::before {
 content:'';position:absolute;inset:0;
 background:radial-gradient(ellipse at 88% 96%,#a7deff63,transparent 57%),radial-gradient(ellipse at 81% 14%,#aeedff3d,transparent 38%);
}
.is-night .work-sky::before {background:radial-gradient(ellipse at 79% 100%,#3981d934,transparent 57%)}
.work-scenery {position:absolute;right:2%;bottom:0;height:100%;width:auto;max-width:none}
.work-sky-cloud {fill:#d4f1ff87}.work-sky-side {fill:#246bbc57}.work-sky-wall {fill:#65b9ff66}
.work-sky-roof {fill:#9fd9ffa6}.work-sky-window {fill:#b6e7ff80}.work-sky-trees {fill:#2f83c99e}
.is-night .work-scenery {opacity:.48}
.work-celestial {
 position:absolute;top:12%;right:6%;width:38px;height:38px;border-radius:50%;
 background:radial-gradient(circle at 36% 37%,#fff1ac,#ffcd46);box-shadow:0 0 28px #ffe48cab,0 0 0 7px #ffec9d37
}
.is-night .work-celestial {background:transparent;box-shadow:inset 9px -5px #f7efc7;transform:rotate(-13deg)}
.work-star {display:none}
.is-night .work-star {
 display:block;position:absolute;left:63%;top:14%;width:3px;height:3px;border-radius:50%;background:#e2edff;
 box-shadow:34px 32px #e2edffba,69px -7px #e2edff,105px 15px #e2edff6d,126px 45px #e2edff,167px 23px #e2edff80;
}
.work-character {
 position:absolute;z-index:1;right:10%;bottom:8%;height:65%;max-width:43%;width:auto;
 object-fit:contain;object-position:bottom;filter:drop-shadow(0 9px 13px #0d234a5e);pointer-events:none;
}
.work-identity.has-person .work-character {right:7%;bottom:0;height:96%;max-width:43%}
.work-panel {padding:15px 16px}
.work-panel-head {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:9px;color:var(--work-muted);font-size:11px}
.work-panel-head h2 {min-width:0;margin:0;font-size:15px;line-height:1.32;letter-spacing:-.023em;color:var(--work-ink);font-weight:800}
.work-panel-link {display:inline-flex;align-items:center;gap:5px;color:#234eae;font-size:11px;font-weight:750;padding:5px 8px;border:1px solid #dce7ff;border-radius:8px;background:#f4f7ff}
.work-panel-link .icon {width:14px;height:14px}
.work-panel-link:hover {background:#e7efff}
.work-panel-grid {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:14px;align-items:start}
.work-tile {
 display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:14px;color:#2854e4;background:#e5eeff;
}
.work-tile .icon {width:23px;height:23px}
.work-tile.tone-violet {color:#6335bf;background:#f0e9ff}
.work-tile.tone-gold {color:#936000;background:#fff2d9}
.work-tile.tone-green {color:#08734d;background:#e0f9ed}
.work-tile.tone-red {color:#a82b49;background:#ffe8ee}
.work-stat-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.work-stat {display:flex;align-items:center;gap:10px;min-height:88px;padding:12px}
.work-stat > div {min-width:0}
.work-stat strong,.work-stat span:not(.work-tile) {display:block;overflow-wrap:anywhere}
.work-stat strong {line-height:1.2;color:var(--work-ink);font-size:clamp(16px,2vw,25px);font-weight:800;letter-spacing:-.035em}
.work-stat span:not(.work-tile) {font-size:11px;color:var(--work-muted);margin-top:3px;font-weight:650}
.work-shortcut-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(94px,100%),1fr));gap:6px}
.work-shortcut-grid :is(a,button) {
 display:grid;justify-items:center;align-content:start;gap:6px;min-width:0;padding:7px 5px;
 border:0;border-radius:12px;background:transparent;color:var(--work-ink);font:inherit;font-size:11.5px;font-weight:750;
 line-height:1.4;text-align:center;cursor:pointer;overflow-wrap:anywhere;
}
.work-shortcut-grid :is(a,button):hover {background:#f2f6ff}
.work-story-list {display:grid}
.work-story {
 display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;min-width:0;width:100%;text-align:left;
 padding:8px 2px;border:0;border-top:1px solid var(--work-line);background:none;color:var(--work-ink);font:inherit;cursor:pointer;
}
.work-story img {width:44px;height:44px;border-radius:11px;object-fit:cover}
.work-story strong,.work-story small {display:block;min-width:0;overflow-wrap:anywhere}
.work-story strong {font-size:12px;line-height:1.35}
.work-story small {color:var(--work-muted);font-size:10px;margin-top:4px}
.work-story:hover strong {color:var(--work-accent)}
.work-empty {font-size:12px;color:var(--work-muted);margin:6px 0 10px}
.work-state {font-size:10px;font-weight:750;color:#445b7d;background:#edf2fa;padding:3px 8px;border-radius:12px}
.work-state.is-open {color:#086448;background:#e3f7ed}

.public-service-mode .work-identity {margin:10px 0 18px;min-height:210px}
.public-service-mode .service-indicator {border:1px solid #ffffff70;color:#fff;background:#194b9e7d}
.public-service-mode .service-card,.student-mode .service-card {border-radius:16px;border-color:var(--work-line);box-shadow:var(--work-shadow)}
.student-mode .service-card {margin:0}
.student-mode .service-code-card {background:#eff5ff;border-color:#cfdefa}
.student-mode .student-application,.student-mode .service-details {min-width:0}
.student-mode .student-application h3 {margin:0;font-size:13px}
.student-mode .student-status .student-application {padding:12px 0}
:is(.public-service-mode,.student-mode) .service-ai-trigger {background:#174bb9;border-color:#e0ebff;box-shadow:0 8px 20px #1b46884d}
.drawer-open .work-body .service-ai-trigger {visibility:hidden}

@media (min-width:768px) {
 .work-shell[data-compact="1"] .work-side-brand {padding-inline:0;justify-content:center}
 .work-shell[data-compact="1"] :is(.work-side-brand span,.work-link > span,.work-nav-count,.work-menu-section p,.work-menu-group summary span,.work-chevron,.work-side-footer a span) {display:none}
 .work-shell[data-compact="1"] :is(.work-menu-group summary,.work-link) {justify-content:center;padding-inline:6px}
 .work-shell[data-compact="1"] .work-menu-items {padding-inline:2px}
 .work-shell[data-compact="1"] .work-side-footer {display:grid;justify-items:center;justify-content:center}
 .work-shell[data-compact="1"] .work-compact-toggle .icon {transform:rotate(180deg)}
}
@media (max-width:1080px) {
 .work-stat-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 .work-date {display:none}
}
@media (min-width:768px) and (max-width:950px) {
 .work-shell[data-compact="0"] {--work-sidebar-width:224px}
 .work-panel-grid {grid-template-columns:1fr}
 .work-topbar {padding-inline:14px}
}
@media (max-width:767px) {
 body.drawer-open {overflow:hidden}
 .work-shell {display:block}
 .work-sidebar {width:min(310px,calc(100vw - 32px));padding:14px 12px 12px;gap:12px;visibility:hidden;transform:translateX(-100%);transition:transform .23s ease}
 .drawer-open .work-sidebar {visibility:visible;transform:none}
 .work-drawer-close {display:grid;position:absolute;top:12px;right:12px;width:42px;height:42px}
 .work-side-brand {padding-right:45px;min-height:56px}
 .work-drawer-backdrop {position:fixed;inset:0;z-index:60;border:0;background:#07152b82;backdrop-filter:blur(2px)}
 .drawer-open .work-drawer-backdrop {display:block}
 .work-compact-toggle,.work-location,.work-profile > div {display:none}
 .work-topbar {min-height:59px;padding:6px 11px;gap:7px}
 .work-top-start,.work-top-actions {gap:6px}
 .work-mobile-menu {display:grid}
 .work-profile {border:0;padding:0;gap:0}
 .work-mobile-brand {display:flex;align-items:center;gap:6px;min-width:0}
 .work-mobile-brand img {object-fit:contain;flex:none}
 .work-mobile-brand strong,.work-mobile-brand small {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .work-mobile-brand strong {font-size:13px;line-height:1.2;color:var(--work-ink);font-weight:800}
 .work-mobile-brand small {font-size:10px;color:var(--work-muted);margin-top:1px}
 .work-avatar {width:34px;height:34px;font-size:12px}
 .work-logout,.work-mobile-menu {width:36px;height:41px}
 .work-tabs {
  position:fixed;z-index:32;inset:auto 0 0;display:flex;overflow:hidden;
  border:1px solid #dce6fa;border-bottom:0;border-radius:19px 19px 0 0;
  background:#ffffffef;backdrop-filter:blur(15px);box-shadow:0 -8px 24px -18px #324c9565;
  padding:5px 3px max(6px,env(safe-area-inset-bottom));
 }
 .work-tabs :is(a,button) {
  display:flex;flex:1 1 0;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:49px;
  border:0;border-radius:8px;padding:3px 2px;background:none;font:inherit;font-size:10px;font-weight:750;line-height:1.16;
  color:#516892;text-align:center;cursor:pointer;
 }
 .work-tabs :is(a,button) .icon {width:21px;height:21px}
 .work-tabs a[aria-current="page"] {color:#2151d6}
 .work-tabs a[aria-current="page"] .icon {width:28px;height:25px;padding:3px;border-radius:7px;background:#e9f0ff}
 .work-tabs :is(a,button):focus-visible {outline:2px solid #3663db;outline-offset:-2px}
 body.admin-mode .work-content {padding:12px 12px calc(86px + env(safe-area-inset-bottom))}
 .work-dashboard,.work-panel-grid {gap:11px}
 .work-panel-grid {grid-template-columns:minmax(0,1fr)}
 .work-identity {min-height:208px;border-radius:19px}
 .work-identity-copy {width:65%;padding:16px 0 16px 15px}
 .work-greeting {font-size:12px}
 .work-identity-brand {font-size:9.5px;margin-bottom:6px}
 .work-identity-brand img {width:19px;height:19px}
 .work-identity h1 {font-size:clamp(19px,5.2vw,25px);margin-bottom:6px}
 .work-identity-label {font-size:10px}
 .work-identity-message {font-size:11px;margin-top:8px}
 .work-identity-actions {margin-top:8px}
 .work-identity-actions .btn {min-height:36px;padding:5px 8px;font-size:10px}
 .work-celestial {height:25px;width:25px;right:7%;top:14%}
 .work-scenery {height:83%;right:-16%}
 .work-character {right:5%;height:53%;max-width:36%;bottom:7%}
 .work-identity.has-person .work-character {right:-2%;height:79%;max-width:45%}
 .work-stat-grid {gap:8px}
 .work-stat {padding:9px;gap:7px;min-height:67px}
 .work-stat strong {font-size:18px}
 .work-stat span:not(.work-tile) {font-size:10px}
 .work-stat .work-tile {width:33px;height:33px;border-radius:10px}
 .work-stat .work-tile .icon {width:18px;height:18px}
 .work-panel {padding:12px}
 .work-shortcut-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
 .student-mode .service-ai-trigger {bottom:calc(72px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce) {
 .work-menu-group > summary > .work-chevron,.work-sidebar {transition:none}
}
