/* Biru Aktif shell + Cobalt Glass account surfaces.
   Screen-only styling preserves existing receipt/card/report print layouts. */
@media screen {
  :root { --green:#1263ba; --ink:#20324b; --muted:#62758c; --bg:#f3f7fc; --line:#dfe7f1; --sidebar:238px; }
  .app-shell,.login-page {font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.55;color:var(--ink);background:var(--bg);font-variant-numeric:tabular-nums}
  .app-shell *, .login-page * {box-sizing:border-box}
  .app-shell [hidden],.login-page [hidden] {display:none!important}
  .app-shell .dashboard {max-width:1320px;margin:0 auto;padding:26px 28px 36px;min-width:0}
  .app-shell h1 {font-size:clamp(25px,3vw,34px);letter-spacing:-.8px;line-height:1.2;margin-bottom:10px}
  .app-shell h2 {font-size:20px;letter-spacing:-.4px;line-height:1.35}
  .app-shell h3 {font-size:16px;letter-spacing:-.2px}
  .app-shell p {overflow-wrap:anywhere}
  .app-shell .muted,.app-shell .footnote,.app-shell .field-help,.app-shell .permission-note {color:var(--muted)}
  .app-shell .eyebrow {color:#5e7d9d;font-size:10px;letter-spacing:.12em}
  .app-shell a {text-underline-offset:3px}
  .app-shell .button,.app-shell button,.login-page button {min-height:44px;border-radius:10px;font-size:13px;font-weight:650;line-height:1.4;touch-action:manipulation}
  .app-shell .button,.app-shell button:not(.icon-button):not(.product-tile):not([data-nav-open]):not([data-nav-close]):not(.balance-toggle) {background:#1263ba;color:white}
  .app-shell .button.secondary,.app-shell button.secondary {background:#eaf2fd!important;color:#145a9f!important;border:1px solid #d4e4f8}
  .app-shell .danger,.app-shell button.danger {background:#b83e43!important;color:white!important}
  .app-shell button:disabled {opacity:.48;cursor:not-allowed}
  .app-shell a:focus-visible,.app-shell button:focus-visible,.app-shell input:focus-visible,.app-shell select:focus-visible,.app-shell textarea:focus-visible,.login-page :focus-visible {outline:3px solid #e9a43c;outline-offset:3px}
  .app-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.app-shell select,.app-shell textarea,.login-page input:not([type=hidden]) {font:inherit;font-size:16px;color:#263d57;background:#fff;border:1px solid #cbd8e7;border-radius:10px;padding:11px 12px;max-width:100%;min-width:0;min-height:46px;box-shadow:inset 0 1px 2px #132c4803}
  .app-shell input[type=file] {white-space:normal;font-size:13px!important}
  .app-shell input[type=file]::file-selector-button,.login-page input[type=file]::file-selector-button {background:#eaf2fd;color:#1b5b9d;border:0;border-radius:6px;padding:8px 10px;margin-right:8px}
  .app-shell input[type=checkbox],.app-shell input[type=radio] {accent-color:#1263ba}
  .app-shell label {font-size:13px;font-weight:600;color:#354c67}
  .app-shell .checks label {background:#f3f7fd;border:1px solid #e3eaf4}
  .app-shell fieldset {border-color:var(--line);border-radius:12px;min-width:0}
  .app-shell legend {color:#234b79}
  .app-shell .form-card,.app-shell .account,.app-shell .student-card,.app-shell .module:nth-child(n),.app-shell .pos-cart,.app-shell .pos-stat,.app-shell .report-chart,.app-shell .report-detail,.app-shell .search-panel {background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 4px 17px #1f406305;min-width:0}
  .app-shell .form-card,.app-shell .account {padding:24px}
  .app-shell .core-form {max-width:850px}
  .app-shell .form-columns,.app-shell .core-grid,.app-shell .designer-layout,.app-shell .pos-layout {gap:20px;min-width:0}
  .app-shell .field-grid {gap:4px 16px}
  .app-shell .form-actions,.app-shell .core-actions,.app-shell .card-actions {flex-wrap:wrap;gap:10px}
  .app-shell .form-actions>* {min-width:0}
  .app-shell .page-heading {gap:16px;margin-bottom:22px}
  .app-shell .page-heading .muted {font-size:13px;max-width:740px}
  .app-shell .form-section-title>span {background:#eaf2ff;color:#1d62ad}
  .app-shell .back-link {color:#536f8e;font-size:12px;margin-bottom:15px;min-height:38px}
  .app-shell .back-link .ui-icon {width:16px;height:16px}
  .app-shell .sidebar {background:#fff;padding:26px 15px 20px;border-right:1px solid #dfe7f1}
  .sidebar .sidebar-brand {padding:0 10px 25px;gap:10px;color:#195da5;line-height:1.2}
  .sidebar-brand>span {font-size:17px;letter-spacing:-.5px;min-width:0}
  .sidebar-brand small {font-size:8px;color:#6c839c;letter-spacing:.5px}
  .sidebar .small-mark,.app-topbar .small-mark {width:36px;height:36px;min-width:36px;border-radius:11px;font-size:20px;background:#e9f3ff;color:#1c65b5;border:0}
  .sidebar .nav-label {font-size:9px;color:#7b8da3;letter-spacing:1px;margin:12px 0}
  .sidebar .nav-item {font-size:12px;color:#5a6d84;gap:11px;padding:10px 12px;border-radius:9px;min-height:42px}
  .sidebar .nav-item.active {color:#125caa;background:#eaf3ff;font-weight:700;box-shadow:inset 3px 0 #2374ce}
  .sidebar .nav-item:hover {color:#125caa;background:#f1f6fd}
  .sidebar .nav-item .ui-icon {width:19px;height:19px}
  .sidebar-account {border-color:var(--line);padding:18px 5px 12px;margin-top:20px}
  .sidebar-account strong {font-size:12px;overflow-wrap:anywhere}
  .sidebar-account small {font-size:10px;color:#74869c}
  .sidebar-account .avatar,.greeting-avatar {background:#e9f3ff;color:#1b64b5;border-radius:50%;font-weight:700}
  .app-shell .logout-form button {background:#fff1f1!important;color:#a34a51!important;min-height:40px!important}
  .app-shell .topbar-logout button {background:#ffffff16!important;color:#fff!important;border:1px solid #ffffff2b}
  .app-topbar {height:auto;min-height:68px;padding:12px 28px;background:linear-gradient(110deg,#0758b3,#0878cf);color:white;border-bottom:1px solid #ffffff24;box-shadow:none;backdrop-filter:none}
  .app-topbar .desktop-title {font-size:15px;font-weight:600}
  .app-topbar .mobile-brand {color:white;gap:10px}
  .app-topbar .mobile-brand>span {font-size:15px;font-weight:750;line-height:1.2;letter-spacing:-.25px}
  .app-topbar .mobile-brand small {color:#dfedff;font-size:10px;font-weight:400;letter-spacing:0}
  .app-topbar .icon-button {color:white!important;background:#ffffff12!important}
  .app-topbar .account-chip {display:flex;align-items:center;justify-content:center;color:white;background:#ffffff18;border-radius:50%;width:36px;height:36px;padding:8px}
  .app-topbar .account-chip span {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
  .app-topbar .account-chip .ui-icon {width:20px;height:20px}
  .app-shell.is-home {background:linear-gradient(110deg,#0758b3,#0878cf) var(--sidebar) 0/calc(100% - var(--sidebar)) 260px no-repeat,var(--bg)}
  .home-greeting {display:flex;align-items:center;justify-content:space-between;gap:12px;color:white;margin-bottom:24px}
  .home-greeting p {font-size:12px;color:#deedff;margin-bottom:4px}
  .home-greeting h1 {font-size:28px;font-weight:700;letter-spacing:-.6px;margin:0}
  .greeting-avatar {width:38px;height:38px;display:grid;place-items:center;flex:none;background:#ffffff20;color:#fff;border:1px solid #ffffff40}
  .home-layout {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px;align-items:start}
  .home-balances {display:grid;gap:18px;min-width:0}
  .balance-card {border-radius:18px;padding:23px 23px 0;background:radial-gradient(ellipse at 110% -20%,#6abaff40,transparent 65%),linear-gradient(120deg,#216bdc,#114caa);color:white;border:1px solid #5c98e8;box-shadow:0 8px 23px #154a8d23;min-width:0}
  .balance-label {display:flex;align-items:center;gap:9px;font-size:12px;color:#eaf3ff}
  .app-shell .balance-toggle {display:grid;place-items:center;min-width:40px;min-height:32px;padding:4px;background:none;color:white;box-shadow:none}
  .balance-toggle .ui-icon {width:18px;height:18px}
  .app-shell .balance-value {font-size:clamp(28px,3vw,40px);font-weight:750;letter-spacing:-1px;line-height:1.25;margin:7px 0 18px;color:white;overflow-wrap:anywhere}
  .balance-value small {font-size:.55em;letter-spacing:0;font-weight:500}
  .balance-identity {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
  .balance-identity>div {min-width:0}
  .balance-identity strong {display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}
  .balance-identity small {display:block;font-size:11px;color:#d4e5ff;margin-top:3px}
  .app-shell .balance-action {background:#ff8c3b!important;color:white!important;display:inline-flex;align-items:center;gap:7px;padding:10px 13px;flex-shrink:0;min-height:42px;font-size:12px;border:1px solid #ffa86a}
  .balance-action .ui-icon {width:16px;height:16px}
  .balance-links {display:flex;justify-content:space-between;gap:12px;border-top:1px solid #ffffff2b;padding:8px 0}
  .balance-links a {display:flex;align-items:center;gap:9px;min-height:36px;color:white;font-size:12px;font-weight:600}
  .balance-links a span {font-size:21px}
  .home-services {background:white;padding:22px;border:1px solid #e0e8f3;border-radius:18px;min-width:0}
  .app-shell .home-services h2 {font-size:17px;margin:0 0 20px}
  .service-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 14px}
  .service-link {display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;min-width:0;font-size:11px;color:#254767;font-weight:600;line-height:1.4}
  .service-link>span:last-child {overflow-wrap:anywhere}
  .home-welcome {padding:24px;border-radius:18px;background:#fff;border:1px solid var(--line)}
  .home-summary {grid-column:1/-1}
  .home-summary>h2 {font-size:18px;margin:0 0 12px}
  .app-shell .home-summary .overview {grid-template-columns:repeat(3,minmax(0,1fr));margin:0}
  .app-shell .overview .module h3 {font-size:12px;color:var(--muted)}
  .app-shell .overview .module h2 {font-size:23px;color:#1e568d}
  .home-chart {grid-column:1/-1}
  .home-chart>svg {width:100%;max-height:230px;display:block}
  .home-chart summary {padding:12px 0;cursor:pointer;color:#175ea5}
  .app-shell .cards {grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-shell .module:nth-child(n) {color:var(--ink);background:#fff}
  .app-shell .module p {opacity:1;color:var(--muted);font-size:13px}
  .app-shell .module .button {background:#eaf2fd;color:#1258a4;min-height:42px;font-size:12px}
  .app-shell .student-grid {gap:18px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-shell .student-card {padding:20px}
  .app-shell .student-card h2 {color:#244667;font-size:18px}
  .app-shell .student-meta {border-color:#e7edf5;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .app-shell .student-meta span {color:#6a7f95;font-size:11px}
  .app-shell .student-meta b {font-size:14px;color:#294964}
  .app-shell .edit-link {color:#1763b2;border-color:#e7edf5;font-size:12px;gap:12px}
  .app-shell .student-identity .avatar {width:52px;height:60px;border-radius:12px}
  .app-shell .placeholder {background:#edf4ff;color:#2469b5}
  .app-shell .wallet-amount {background:linear-gradient(115deg,#f0f6ff,#e5effe);border:1px solid #d7e6fb;border-radius:12px;padding:15px;color:#185998}
  .app-shell .wallet-amount strong {color:#14559e;font-size:26px;overflow-wrap:anywhere}
  .app-shell .wallet-amount small {color:#587796}
  .app-shell .wallet-status,.app-shell .tag {background:#e6f5ef;color:#24785c;border:1px solid #d5ebdf;font-size:11px;border-radius:20px;padding:4px 10px}
  .app-shell .is-suspended,.app-shell .tag.off {background:#fff1e7;color:#a75a28;border-color:#f3ddc9}
  .app-shell .success {background:#e7f6ee;color:#206a4c;border:1px solid #c5e5d3;box-shadow:none}
  .app-shell .alert {background:#fff1f0;color:#a33d43;border:1px solid #efcbd0;border-radius:12px}
  .app-shell .core-note,.app-shell .notice,.app-shell .payment-note {background:#eef5ff;color:#426888;border:1px solid #dae7f8;border-radius:12px;line-height:1.65}
  .app-shell .empty-state {background:white;border-color:#cbd8e8;border-radius:18px}
  .app-shell .empty-state h2 {font-size:20px}
  .app-shell .filters,.app-shell .transaction-filters {background:#fff;padding:16px;border:1px solid var(--line);border-radius:13px}
  .app-shell .search-panel {padding:17px}
  .app-shell .table-wrap,.app-shell .report-table-wrap,.ui-table-scroll {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-radius:12px;border:1px solid #dce6f1;background:#fff}
  .ui-table-scroll {margin:12px 0}
  .app-shell th,.app-shell .report-table th {background:#edf4fe;color:#285e93;border-color:#dce7f4;font-size:12px}
  .app-shell td,.app-shell .report-table td {border-color:#e7edf5}
  .app-shell .report-table tr:nth-child(even) td {background:#f8fbff}
  .app-shell .report-table tfoot {background:#eef4fc}
  .app-shell .pagination {flex-wrap:wrap;justify-content:center;align-items:center;gap:12px}
  .app-shell .pagination a {min-height:44px;display:inline-flex;align-items:center;padding:8px 12px;background:#fff;border:1px solid var(--line);border-radius:9px;color:#2363a3}
  .app-shell .pos-cart {padding:22px;top:88px}
  .app-shell .pos-stat strong,.app-shell .pos-total strong,.app-shell .product-price {color:#185da8}
  .app-shell .product-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .app-shell .product-tile {background:white;color:#263d57;border:1px solid #dce6f1;border-radius:13px;padding:13px;box-shadow:0 3px 9px #19395d05}
  .app-shell .product-tile span {color:#1262b8;font-weight:700}
  .app-shell .product-tile small {color:#6a7b90}
  .app-shell .product-tile:hover {background:#f5f9ff;border-color:#7ea9dc}
  .app-shell .product-tile img,.app-shell .product-visual {background:#f2f6fb;border-radius:9px}
  .app-shell .qty-controls button {min-width:38px;min-height:38px}
  .app-shell .transaction-row {border-color:#dce6f1;border-radius:14px;padding:20px;background:white}
  .app-shell .transaction-row h2 {font-size:18px}
  .app-shell .debit-amount {color:#ad4e3e!important}
  .app-shell .credit-amount {color:#238266!important}
  .app-shell .report-chart,.app-shell .report-detail {padding:22px}
  .app-shell .chart-line {stroke:#1769c1}
  .app-shell .chart-dot {fill:#1769c1}
  .app-shell .grid-line {stroke:#e2eaf4}
  .app-shell .report-chart summary {color:#1d62a9}
  .app-shell .chart-scroll {border-radius:8px}
  .app-shell .report-table-wrap {border:0}
  .app-shell .card-preview {box-shadow:0 10px 24px #1c3b5d1a;border-radius:16px}
  .app-shell .icon-picker label {border-color:#dce6f1;background:#f9fbff}
  .app-shell .icon-picker label:has(input:checked) {background:#eaf3ff;border-color:#397ec7}
  .app-shell .page-footer {font-size:11px;color:#7e90a5;padding:30px 0 6px}
  .app-shell .sticky-nav {display:none}
  .login-page {min-height:100vh;min-height:100svh;display:grid;place-items:center;padding:28px;background:radial-gradient(ellipse at top right,#91ceff3d,transparent 55%),#eef4fc}
  .login-page .login-shell {width:min(100%,1000px);display:grid;grid-template-columns:1fr 1fr;border:1px solid #d9e5f3;border-radius:25px;box-shadow:0 20px 70px #144b8017;overflow:hidden;margin:auto}
  .login-page .intro {background:radial-gradient(ellipse at 120% 0%,#68baff50,transparent 60%),linear-gradient(130deg,#1463c7,#0b3d8b);padding:45px 38px;display:flex;flex-direction:column;justify-content:center}
  .login-page .intro h1 {font-size:38px;letter-spacing:-1.2px}
  .login-page .intro-note {display:block}
  .login-page .login-card {background:white;padding:42px}
  .login-page .login-card h2 {font-size:27px;letter-spacing:-.7px}
  .login-page .login-card button {background:linear-gradient(115deg,#176ac8,#0b50aa);color:white;box-shadow:0 4px 10px #175ba91a}
  .login-page .login-card label {font-size:13px;color:#3f5873}
  .login-page .login-card .pill {background:#eaf3ff;color:#1d63a7}
  .login-page .login-methods span {background:#f0f5fd;color:#547393}
  .login-page .help,.login-page .secure,.login-page .muted {color:#657b92}
  .login-page .password-field {position:relative}
  .login-page .password-field input {padding-right:74px}
  .login-page .password-field button {position:absolute;right:5px;top:5px;bottom:5px;width:auto;margin:0;min-height:34px;background:#eef4fd;color:#245e9a;padding:5px 9px;font-size:11px;box-shadow:none;border-radius:7px}
  @media (min-width:1024px) {
    .app-shell {padding-left:var(--sidebar)}
    .app-shell .sidebar {visibility:visible;transform:none}
  }
  @media (max-width:1023px) {
    .app-shell.is-home {background:linear-gradient(110deg,#0758b3,#0878cf) 0 0/100% 239px no-repeat,var(--bg)}
    .app-shell {padding-left:0}
    .app-shell .dashboard {padding:22px 20px calc(105px + env(safe-area-inset-bottom))}
    .app-topbar {padding:11px 18px;min-height:64px}
    .app-topbar .topbar-logout {display:none}
    .home-layout {grid-template-columns:minmax(0,1fr)}
    .home-greeting h1 {font-size:25px}
    .home-greeting {margin-bottom:21px}
    .home-balances {grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
    .app-shell .sticky-nav {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;left:0;right:0;padding:7px 6px max(7px,env(safe-area-inset-bottom));min-height:73px;background:#fffffff7;backdrop-filter:blur(18px);border-top:1px solid #dce6f1;box-shadow:0 -3px 14px #23456c08}
    .app-shell .sticky-nav>a,.app-shell .sticky-nav>button {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#74879d;background:transparent!important;font-size:10px;font-weight:500;padding:0;min-width:0;min-height:48px}
    .app-shell .sticky-nav [aria-current=page] {color:#0c60b9;font-weight:700}
    .sticky-nav .ui-icon {width:20px;height:20px}
    .app-shell .sticky-nav .nav-primary {margin-top:-24px;color:#155da9;font-weight:650;gap:2px}
    .sticky-nav .nav-primary .ui-icon {width:57px;height:57px;padding:14px;background:linear-gradient(135deg,#217bdd,#094f9f);color:white;border:4px solid white;border-radius:19px;box-shadow:0 3px 9px #164a8429}
    .app-shell .pos-layout {grid-template-columns:minmax(0,1fr)}
    .app-shell .pos-cart {position:static}
    .app-shell .designer-layout {grid-template-columns:minmax(0,1fr)}
    .app-shell .designer-preview {position:static}
    .login-page .login-shell {grid-template-columns:1fr;max-width:440px}
    .login-page .intro {display:none}
    .login-page .login-card {padding:30px}
    .login-page .mobile-login-brand {display:flex;align-items:center;flex-direction:column;gap:10px;margin-bottom:25px;text-align:center}
    .login-page .mobile-login-brand p {font-size:14px;color:#1763b3;letter-spacing:0;margin:0}
    .login-page .mobile-login-brand .small-mark {background:linear-gradient(130deg,#1a6ac9,#0f489d);color:white;border:0;border-radius:18px;width:56px;height:56px;font-size:29px}
    .login-page .login-card>.muted {display:block;font-size:13px;margin-bottom:22px}
    .login-page .login-card>.pill,.login-page .login-methods {display:none}
    .login-page .login-card h2 {text-align:center;font-size:27px}
    .login-page .login-card .secure {display:block}
  }
  @media (max-width:599px) {
    .app-shell .dashboard {padding-left:17px;padding-right:17px}
    .app-shell .page-heading {align-items:flex-start;flex-direction:column}
    .app-shell .page-heading>div {width:100%}
    .app-shell .page-heading h1 {font-size:27px}
    .app-shell .form-card,.app-shell .account,.app-shell .student-card,.app-shell .pos-cart {padding:18px}
    .app-shell .form-columns,.app-shell .core-grid,.app-shell .student-grid,.app-shell .cards {grid-template-columns:minmax(0,1fr)}
    .app-shell .field-grid {grid-template-columns:minmax(0,1fr)}
    .app-shell .checks {grid-template-columns:minmax(0,1fr)}
    .app-shell .product-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
    .app-shell .transaction-row {align-items:flex-start;flex-direction:column}
    .app-shell .transaction-row>* {max-width:100%}
    .app-shell .pos-stats {grid-template-columns:repeat(2,minmax(0,1fr))}
    .app-shell .home-summary .overview {grid-template-columns:minmax(0,1fr);gap:9px}
    .app-shell .home-summary .module {display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:12px;padding:15px}
    .app-shell .home-summary .module h3 {margin:0;max-width:45%}
    .app-shell .home-summary .module h2 {font-size:19px;text-align:right;margin:0}
    .balance-card {padding:18px 18px 0;border-radius:16px}
    .app-shell .balance-value {font-size:32px;margin:5px 0 13px}
    .balance-identity strong {font-size:13px}
    .balance-identity small {font-size:10px}
    .app-shell .balance-action {font-size:11px;padding:8px 10px;min-height:40px}
    .balance-links a {font-size:11px}
    .home-services {padding:17px 13px;border-radius:15px}
    .app-shell .home-services h2 {font-size:16px;margin-bottom:16px}
    .service-grid {gap:17px 7px}
    .service-link {font-size:10px;gap:7px}
    .home-layout {gap:19px}
    .app-shell .report-chart,.app-shell .report-detail {padding:17px}
    .app-shell .report-filters {grid-template-columns:minmax(0,1fr)}
    .app-shell .filters label,.app-shell .transaction-filters label {min-width:0;flex-basis:100%}
    .app-shell .form-actions {justify-content:flex-start}
    .app-shell .form-actions>.button,.app-shell .form-actions>button {flex:1 1 130px}
    .app-shell .sale-meter {grid-template-columns:70px minmax(0,1fr) auto;gap:7px;font-size:11px}
    .app-shell .cart-line {grid-template-columns:minmax(0,1fr)}
    .app-shell .qty-controls {grid-column:1;grid-row:auto;justify-content:flex-start}
    .app-shell .pos-total {align-items:flex-start;flex-wrap:wrap}
    .app-shell .identity-card {max-width:100%}
    .app-shell .identity-body {gap:10px}
    .app-shell .identity-person {min-width:0}
    .app-shell .identity-person h2 {overflow-wrap:anywhere;font-size:17px}
    .login-page {padding:16px}
    .login-page .login-card {padding:26px 22px}
  }
  @media (max-width:359px) {
    .app-topbar {padding-left:12px;padding-right:12px}
    .app-topbar .mobile-brand>span {font-size:12px}
    .app-topbar .mobile-brand small {font-size:9px}
    .app-shell .dashboard {padding-left:12px;padding-right:12px}
    .balance-identity {flex-wrap:wrap}
    .service-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
    .app-shell .pos-stats {grid-template-columns:minmax(0,1fr)}
  }
  @media (hover:hover) {
    .service-link:hover {color:#1263ba}
    .service-link:hover .object-icon {transform:translateY(-2px)}
    .app-shell .button:hover {filter:brightness(.97)}
  }
  @media (prefers-reduced-motion:no-preference) {
    .service-link .object-icon,.app-shell .button,.app-shell .nav-item {transition:transform .16s ease,background-color .16s ease,box-shadow .16s ease}
    .balance-card {animation:balance-enter .28s ease both}
    @keyframes balance-enter {from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}
  }
}
@media print {
  .ui-table-scroll {overflow:visible;border:0;max-width:none}
  .balance-toggle {display:none!important}
}

@media screen {
 .wallet-stack {display:grid;gap:18px;min-width:0}
 .wallet-hint {display:none}
 .app-shell .bank-card {background:linear-gradient(120deg,#1769df,#124baf);color:white}
 .app-shell .bank-card .eyebrow {color:#dbeaff}
}
@media screen and (max-width:1023px) {
 .home-balances.has-many {display:block;min-width:0}
 .has-many .wallet-stack {display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding-bottom:8px;scrollbar-width:thin}
 .has-many .wallet-stack > * {flex-basis:100%;min-width:0;scroll-snap-align:start}
 .has-many .wallet-stack > * {flex:0 0 100%;box-sizing:border-box}
 .wallet-hint {display:block;margin:6px 2px 0;color:#526b8e;font-size:12px}
}

/* Refined service system: one optical canvas, stable label baselines. */
@media screen {
 .service-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px;align-items:stretch}
 .service-grid:has(>a:nth-child(4):last-child) {grid-template-columns:repeat(2,minmax(0,1fr))}
 .service-link {display:grid;grid-template-rows:64px minmax(36px,auto);align-content:start;justify-items:center;align-items:start;gap:8px;padding:10px 2px 8px;border-radius:14px;font-size:12px;line-height:1.45;font-weight:550;transition:background .2s,transform .2s}
 .service-link>span:last-child {display:block;width:100%;max-width:120px;min-height:36px;overflow-wrap:normal;word-break:normal}
 .service-art {width:64px;height:64px;display:block;overflow:visible;filter:drop-shadow(0 3px 2px #26486612)}
 .home-services {background:linear-gradient(155deg,#fff 55%,#eef6ff);padding:20px 16px 14px;box-shadow:0 8px 28px #1a4d8410;border:1px solid #dbe7f5}
 .app-shell .home-services h2 {display:flex;align-items:center;gap:10px;padding:0 4px 16px;margin:0 0 10px;border-bottom:1px solid #e4edf7;font-size:17px;letter-spacing:-.3px}
 .home-services h2:before {content:'';width:4px;height:19px;border-radius:4px;background:linear-gradient(#1877dd,#47c9cb)}
 .fintech-mark {display:block;width:42px;height:46px;flex:none;filter:drop-shadow(0 2px 3px #003d8120)}
 .app-topbar .mobile-brand {gap:8px;min-width:0}
 .app-topbar .mobile-brand>span,.sidebar-brand>span {font-family:'Segoe UI',Arial,sans-serif;font-style:italic;font-size:19px;font-weight:800;letter-spacing:-.6px;line-height:1.1}
 .app-topbar .mobile-brand small,.sidebar-brand small {font-style:normal;font-weight:500;font-size:8px;letter-spacing:.35px;line-height:1.5;margin-top:4px;display:block}
 .sidebar .sidebar-brand {gap:9px;padding-left:4px;padding-right:4px}
 .sidebar-brand .fintech-mark {width:40px}
 .app-topbar {background:radial-gradient(ellipse at 70% -80%,#31a6e966,transparent 65%),linear-gradient(110deg,#0758b3,#0878cf)}
 .app-shell .form-card,.app-shell .account,.app-shell .report-chart,.app-shell .report-detail,.app-shell .search-panel,.app-shell .pos-cart {background:linear-gradient(145deg,#fff 70%,#f6faff);box-shadow:0 7px 24px #1b47750a;border-color:#dce6f2}
 .app-shell .page-heading {padding:18px 20px;border:1px solid #deebf7;border-radius:16px;background:linear-gradient(115deg,#eaf3ff,#fafdff 78%);box-shadow:inset 4px 0 #3784ce}
 .app-shell .page-heading h1 {margin-top:5px}
 .app-shell .form-section-title {padding-bottom:14px;border-bottom:1px solid #e3ecf6}
 .app-shell .overview .module {background:linear-gradient(140deg,#fff,#f1f7ff);border-top:3px solid #7eb4eb}
 .app-shell .overview .module:nth-child(2) {border-top-color:#6ccbbb}
 .app-shell .overview .module:nth-child(3) {border-top-color:#efb56b}
 .app-shell thead th {background:#eaf2fc;color:#315a86;font-size:12px}
 .app-shell tbody tr:nth-child(even) {background:#f8fbff}
 .app-shell tbody tr:hover {background:#eff6ff}
 .app-shell .student-card {background:radial-gradient(ellipse at top right,#eaf5ff,transparent 65%),#fff}
 .app-shell .product-tile {border-color:#dce7f4;box-shadow:0 4px 12px #24548508}
 .login-page .mobile-login-brand .fintech-mark {width:65px;height:70px;margin:auto}
 .login-page .mobile-login-brand p {font-size:22px;font-weight:800;font-style:italic;letter-spacing:-.6px}
 .login-page .brand-mark .fintech-mark {width:80px;height:88px}
 .login-page .login-card {border-top:4px solid #439bdc}
}
@media screen and (min-width:1200px) {
 .service-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
 .service-grid:has(>a:nth-child(6):last-child) {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media screen and (max-width:599px) {
 .home-services {padding:18px 12px 12px}
 .service-link {font-size:11px;padding:8px 1px;grid-template-rows:58px minmax(34px,auto);gap:7px}
 .service-art {width:58px;height:58px}
 .service-link>span:last-child {min-height:34px;max-width:100px}
 .app-shell .page-heading {padding:16px}
 .app-topbar .mobile-brand>span {font-size:18px}
 .app-topbar .mobile-brand small {font-size:8px}
 .app-topbar .fintech-mark {width:35px;height:40px}
 .app-topbar .mobile-brand {gap:6px}
}
@media screen and (max-width:359px) {
 .app-topbar .mobile-brand>span {font-size:16px}
 .app-topbar .mobile-brand small {font-size:7px}
 .app-topbar .fintech-mark {width:31px;height:37px}
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
 .service-link:hover {background:#e8f2ff;transform:translateY(-2px)}
}

/* Four services per row across all roles and viewport sizes. */
@media screen {
 .app-shell .service-grid,.app-shell .service-grid:has(>a:nth-child(4):last-child),.app-shell .service-grid:has(>a:nth-child(6):last-child) {grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px}
}
@media screen and (max-width:599px) {
 .app-shell .service-grid {column-gap:5px}
 .service-link {font-size:10px;line-height:1.4;grid-template-rows:54px minmax(42px,auto);gap:6px}
 .service-art {width:54px;height:54px}
 .service-link>span:last-child {min-height:42px;max-width:100%;overflow-wrap:normal}
}
@media screen and (max-width:359px) {
 .service-art {width:46px;height:46px}
 .service-link {grid-template-rows:46px minmax(42px,auto);font-size:9px}
 .app-shell .service-grid {column-gap:4px}
}

/* Deep navy / royal blue balance card, distinct from the active-blue header. */
@media screen {
 .app-shell .balance-card {
  background:radial-gradient(ellipse at 110% -20%,#638aff30,transparent 65%),linear-gradient(125deg,#172c5c 0%,#203e7a 58%,#2b50a0 100%);
  border:1px solid #809bdd70;
  box-shadow:0 12px 28px #12285930,inset 0 1px 0 #ffffff14;
 }
 .app-shell .balance-label {color:#e5edff}
 .app-shell .balance-identity small {color:#c8d7f6}
 .app-shell .balance-links {border-top-color:#c2d3fa33}
 .app-shell .balance-links a {color:#edf2ff}
}

/* Selected design: Cobalt Contour. Decorative lines never intercept controls. */
@media screen {
 .app-shell .balance-card {position:relative;overflow:hidden;background:linear-gradient(125deg,#18376d,#244c98);border-color:#83a9ea80}
 .app-shell .balance-card:before,.app-shell .balance-card:after {content:"";position:absolute;border:1px solid #c8dcff17;border-radius:50%;width:300px;height:300px;right:-165px;top:-130px;pointer-events:none}
 .app-shell .balance-card:after {width:240px;height:240px;right:-135px;top:-100px}
 .app-shell .balance-card>* {position:relative;z-index:1}
}
