/* Cabinet: one type family, clear hierarchy, separate desktop/mobile layouts. */
body[data-page="app"] {
  --bg:#0c0e13; --ink:#f5f6f6; --muted:#acb2b1; --line:#ffffff12;
  --green:#79e5bd; --radius:18px;
  background:var(--bg); font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased;
}
body[data-page="app"] h1,body[data-page="app"] h2,body[data-page="app"] h3 {font-family:inherit;letter-spacing:-.035em;font-weight:650;line-height:1.15}
body[data-page="app"] h1 {font-size:clamp(32px,3vw,44px)}
body[data-page="app"] p {color:var(--muted);font-size:16px;line-height:1.65}
body[data-page="app"] .eyebrow {font-family:inherit;font-size:12px;letter-spacing:.08em;font-weight:600;color:#9ba3a0}
body[data-page="app"] .topbar,body[data-page="app"] .footer {display:none}
body[data-page="app"] .shell {display:block;max-width:none;padding:16px 16px 16px 256px;min-height:100dvh;margin:0}
body[data-page="app"] .sidebar {position:fixed;inset:0 auto 0 0;width:240px;padding:27px 16px 20px;display:flex;flex-direction:column;gap:0;overflow-y:auto;scrollbar-width:thin}
.account-brand {display:flex;align-items:center;gap:9px;padding:0 10px;margin-bottom:27px;font-size:25px;font-weight:700;letter-spacing:-1px}
.account-brand img {object-fit:contain;flex:none}
.sidebar-profile {border:1px solid #ffffff20;border-radius:14px;margin-bottom:22px;overflow:hidden}
.profile-identity {display:flex;align-items:center;gap:10px;padding:14px 12px;min-width:0}
.profile-identity>div {min-width:0;flex:1}
.profile-identity strong {display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:600}
.profile-identity>div>span {display:block;font-size:12px;color:#a3aaa6;margin-top:2px}
.avatar,.mobile-avatar {display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:#79e5bd18;color:#96edcf;font-size:15px;font-weight:650}
.sidebar-balance {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;border-top:1px solid #ffffff15;font-size:13px;color:#aab3ad}
.sidebar-balance strong {color:#fff;font-size:19px;font-weight:600;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.account-navigation {display:flex;flex-direction:column;gap:5px}
body[data-page="app"] .nav-item {display:flex;align-items:center;gap:13px;min-height:48px;padding:11px 13px;border-radius:10px;border:0;background:transparent;color:#aab2af;font-size:14px;font-weight:500;text-align:left;white-space:normal;width:100%;transition:color .16s,background .16s}
body[data-page="app"] .nav-item.active {color:#f9fffc;background:#ffffff0d;font-weight:600}
body[data-page="app"] .nav-item.active .ui-icon {color:#79e5bd}
body[data-page="app"] .nav-item:hover {color:#fff;background:#ffffff08}
.nav-item small {margin-left:auto;background:#79e5bd12;padding:1px 7px;border-radius:5px;color:#a8dfc9;font-size:12px}
.ui-icon {width:21px;height:21px;display:inline-block;vertical-align:middle;flex:none}
body[data-page="app"] .sidebar-bottom {margin-top:auto;padding:30px 0 0;border:0;color:var(--muted)}
body[data-page="app"] .sidebar-bottom p {font-size:11px;text-align:center;line-height:1.4;margin-top:17px;color:#858d89}
body[data-page="app"] .workspace {background:#14171f;min-height:calc(100dvh - 32px);border:1px solid #ffffff07;border-radius:22px;padding:36px clamp(24px,3vw,48px) 48px;min-width:0}
body[data-page="app"] .workspace[aria-busy="true"] {opacity:.6;pointer-events:none}
body[data-page="app"] .page-heading {margin-bottom:32px;align-items:center}
body[data-page="app"] .page-heading h1 {margin:8px 0 13px;line-height:1.17}
body[data-page="app"] .page-heading p {font-size:16px;max-width:750px}
body[data-page="app"] .page-heading>.badge {font-size:12px;background:#79e5bd0b;border-color:#79e5bd20;color:#a6e3cb;padding:9px 12px;border-radius:8px}
body[data-page="app"] .panel {background:#1d212b;border:1px solid #ffffff08;border-radius:18px;padding:28px;box-shadow:none;transition:border-color .2s}
body[data-page="app"] .panel:hover {border-color:#ffffff18}
body[data-page="app"] .panel h2 {font-size:28px;margin-bottom:16px;font-weight:600}
body[data-page="app"] .panel h3 {font-size:21px}
body[data-page="app"] .panel p {font-size:16px}
body[data-page="app"] .button {min-height:46px;border-radius:10px;padding:11px 19px;background:#2c3340;border:1px solid #ffffff0b;color:#f3f8f5;box-shadow:none;font-size:15px;font-weight:550;gap:11px;transform:none}
body[data-page="app"] .button:hover {background:#363f50;transform:none;border-color:#ffffff25;box-shadow:none}
body[data-page="app"] .button.primary {background:#e6f8ee;border-color:#e6f8ee;color:#10291c;min-height:48px;padding:12px 21px;font-size:15px;box-shadow:none}
body[data-page="app"] .button.primary:hover {background:#bdebd4;border-color:#bdebd4;box-shadow:none}
body[data-page="app"] .button.small {font-size:14px;min-height:42px;padding:10px 14px}
body[data-page="app"] .button.danger {background:#ef808b0c;color:#ffb4b9;border-color:#ef808b20}
body[data-page="app"] .button.danger:hover {background:#ef808b18}
body[data-page="app"] .inline-link {display:inline-flex;align-items:center;gap:10px;font-size:15px;font-weight:550;color:#d7eade;min-height:40px;margin-top:17px}
body[data-page="app"] .inline-link:hover {color:#79e5bd}
.overview-main {display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:22px}
body[data-page="app"] .subscription-card {display:flex;flex-direction:column;grid-column:auto;padding:30px;background:#1c2636;border:1px solid #79e5bd24;gap:0;position:relative}
body[data-page="app"] .subscription-card:after {display:none}
.subscription-top {display:flex;align-items:center;justify-content:space-between;gap:15px}
.status-pill {display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#b2efd4;background:#79e5bd0d;border:1px solid #79e5bd20;border-radius:7px;padding:7px 10px}
.plan-label {font-size:11px;letter-spacing:.12em;font-weight:550;color:#a1b2a8}
.subscription-body {display:flex;align-items:center;justify-content:space-between;gap:20px;margin:29px 0 27px}
body[data-page="app"] .subscription-body h2 {font-size:clamp(25px,2.2vw,34px);margin:0 0 14px;letter-spacing:-.04em}
body[data-page="app"] .subscription-body p {font-size:15px;color:#b4c3ba}
.connection-symbol {display:grid;place-items:center;width:80px;height:80px;flex:none;border-radius:50%;border:1px solid #79e5bd38;background:#79e5bd0c;box-shadow:0 0 0 10px #79e5bd03;color:#8ae6be}
.connection-symbol .ui-icon {width:35px;height:35px}
.subscription-key {margin-top:auto}
.field-caption,.card-overline {font-size:12px;color:#b0b9b5;font-weight:550;letter-spacing:.08em}
body[data-page="app"] .key-box {border:1px solid #ffffff12;border-radius:10px;background:#0c142255;padding:10px 12px 10px 16px;margin:12px 0 20px;gap:10px}
body[data-page="app"] .key-box code {font-family:ui-monospace,"Cascadia Code",Consolas,monospace;font-size:13px;color:#d1e5d8}
body[data-page="app"] .icon-button {display:inline-flex;align-items:center;justify-content:center;background:#ffffff08;border:1px solid #ffffff12;border-radius:8px;min-width:42px;min-height:42px;color:#d3e9dc}
body[data-page="app"] .icon-button:hover {background:#ffffff12}
.subscription-footer {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.subscription-footer>span {color:#edf8f2;font-size:22px;font-weight:600;white-space:nowrap}
.subscription-footer small {font-size:12px;font-weight:400;color:#b1c0b8}
body[data-page="app"] .quick-start {padding:28px}
body[data-page="app"] .quick-start h2 {font-size:28px;margin-top:17px;line-height:1.18;margin-bottom:23px}
.quick-step {display:flex;gap:13px;align-items:flex-start;margin:18px 0}
.quick-step>span {display:grid;place-items:center;border:1px solid #ffffff15;border-radius:8px;width:29px;height:29px;font-size:13px;flex:none;color:#cad9d1}
.quick-step strong {font-size:14px;font-weight:550;display:block;color:#edf3f0}
body[data-page="app"] .quick-step p {font-size:13px;color:#a8b2ac;margin-top:3px}
.quick-start .inline-link {margin-top:4px}
.overview-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:22px}
body[data-page="app"] .overview-grid .panel {padding:27px}
body[data-page="app"] .overview-grid .panel-top .ui-icon {color:#a4c4b4}
body[data-page="app"] .metric {font-size:48px;font-weight:600;letter-spacing:-2px;line-height:1.15;margin:20px 0 12px;color:#f6f9f7;font-variant-numeric:tabular-nums}
body[data-page="app"] .metric small {font-size:22px;font-weight:400;color:#9aa7a0}
body[data-page="app"] .overview-grid h2 {margin:22px 0 14px;font-size:28px}
body[data-page="app"] .overview-grid p {font-size:14px}
.quota-track {display:block;width:100%;height:4px;margin:23px 0 6px;border:0;border-radius:4px;overflow:hidden;background:#ffffff10;accent-color:#79e5bd}
.quota-track::-webkit-progress-bar {background:#ffffff10;border-radius:4px}
.quota-track::-webkit-progress-value {background:#79e5bd;border-radius:4px}
.quota-track::-moz-progress-bar {background:#79e5bd;border-radius:4px}
body[data-page="app"] .two-col {gap:22px}
body[data-page="app"] .list {gap:12px;margin-top:22px}
body[data-page="app"] .list-row {background:#1d212b;border:1px solid #ffffff0b;border-radius:14px;padding:22px;gap:18px}
body[data-page="app"] .list-row h3 {font-size:18px;margin-bottom:7px;font-weight:600}
body[data-page="app"] .list-row p {font-size:14px;line-height:1.5}
body[data-page="app"] .empty {background:#ffffff02;border:1px dashed #ffffff20;padding:45px 25px}
body[data-page="app"] .empty-icon {color:#86ad98;font-size:inherit;display:grid;place-items:center}
body[data-page="app"] .empty-icon .ui-icon {width:32px;height:32px}
body[data-page="app"] .empty h3 {font-size:23px}
body[data-page="app"] .empty p {font-size:16px}
body[data-page="app"] .limit-control {gap:15px}
body[data-page="app"] .limit-control strong {font-size:30px;font-weight:600;font-variant-numeric:tabular-nums}
body[data-page="app"] .device-tabs {gap:9px;margin:26px 0}
body[data-page="app"] .device-tabs button {background:#1d212b;color:#bcc8c0;border:1px solid #ffffff12;border-radius:9px;min-height:46px;font-size:15px;font-weight:500;padding:11px 18px}
body[data-page="app"] .device-tabs button.active {background:#e6f8ee;border-color:#e6f8ee;color:#10291c}
body[data-page="app"] .guide-step {gap:25px;border-color:var(--line);padding:28px 0}
body[data-page="app"] .guide-step:first-child {border-top:0;padding-top:4px}
body[data-page="app"] .guide-step>span {font-family:inherit;font-size:21px;color:#9ae5bf;font-weight:500}
body[data-page="app"] .guide-step h3 {font-size:22px}
body[data-page="app"] .guide-step p {font-size:16px}
body[data-page="app"] .profile-pair {font-size:16px;padding:19px 0;border-color:var(--line)}
body[data-page="app"] .profile-pair span {color:#a9b1ad}
body[data-page="app"] .profile-pair strong {font-weight:550;color:#edf3ef;max-width:65%}
body[data-page="app"] .fine {font-size:14px!important;color:#a8b2ac;line-height:1.65}
body[data-page="app"] label {font-size:15px;font-weight:500;color:#c8d1cb;margin-bottom:9px}
body[data-page="app"] input,body[data-page="app"] select,body[data-page="app"] textarea {background:#111620;border:1px solid #ffffff21;border-radius:10px;font-size:16px;color:#f4f8f5;padding:13px 15px;min-height:48px}
body[data-page="app"] input::placeholder {color:#89968d}
body[data-page="app"] input:focus,body[data-page="app"] textarea:focus {border-color:#79e5bd}
body[data-page="app"] .form-grid {gap:22px}
body[data-page="app"] .note {background:#79e5bd09;border:1px solid #79e5bd16;color:#bfd8cb;font-size:15px;padding:18px 21px;border-radius:11px;line-height:1.6}
body[data-page="app"] .admin-tabs {gap:5px;padding:5px;background:#10141c;border-radius:12px;width:fit-content;max-width:100%;margin-bottom:27px}
body[data-page="app"] .admin-tabs .button {border:0;background:transparent;color:#b3bdb7;min-height:43px;padding:11px 18px;font-size:14px}
body[data-page="app"] .admin-tabs .button.active {background:#2e3747;color:#f0faf4;border:0}
body[data-page="app"] .stat-grid {gap:20px}
body[data-page="app"] .stat-grid .metric {font-size:43px;color:#e5f6ec}
body[data-page="app"] .table-wrap {margin-top:22px}
body[data-page="app"] .data-table {font-size:14px;line-height:1.55}
body[data-page="app"] .data-table th {font-size:13px;font-weight:500;letter-spacing:0;text-transform:none;color:#a3b0a8;padding:16px 14px;border-color:var(--line)}
body[data-page="app"] .data-table td {padding:19px 14px;border-color:var(--line);font-variant-numeric:tabular-nums}
body[data-page="app"] .users-table td:first-child {max-width:250px;white-space:normal;overflow-wrap:anywhere}
body[data-page="app"] .users-table td:first-child .text-muted {font-size:13px}
body[data-page="app"] .data-table .button {font-size:13px;min-height:40px;padding:10px 12px}
body[data-page="app"] .user-actions {white-space:normal;min-width:290px}
body[data-page="app"] .user-actions .button {margin:3px}
body[data-page="app"] .pagination {font-size:14px;gap:17px}
body[data-page="app"] .searchbar {align-items:center}
body[data-page="app"] .searchbar .button {white-space:nowrap;flex:none}
body[data-page="app"] .loading {padding:70px 24px;font-size:16px}
.mobile-nav,.mobile-more {display:none}
/* Financial operation is a real modal, with an explicit preview. */
body[data-page="app"] dialog {font-family:inherit;background:#1c202a;color:#f5faf7;border:1px solid #ffffff26;box-shadow:0 30px 100px #0009;border-radius:20px;padding:32px}
body[data-page="app"] dialog::backdrop {background:#080a10c9;backdrop-filter:blur(5px)}
body[data-page="app"] dialog h2 {font-size:30px;margin:16px 0 12px}
body[data-page="app"] dialog p {font-size:15px;line-height:1.55}
body[data-page="app"] dialog .close {color:#b4c3b9;width:42px;height:42px}
.balance-dialog {width:min(510px,calc(100% - 32px));max-height:calc(100dvh - 32px)}
.modal-kicker {font-size:11px;letter-spacing:.1em;color:#a5b4aa;font-weight:550}
body[data-page="app"] #balance-user {overflow-wrap:anywhere;color:#bbc8bf;margin-bottom:25px}
.balance-summary,.balance-preview {display:flex;align-items:center;justify-content:space-between;gap:18px;background:#141923;border-radius:11px;padding:18px;margin:0 0 23px;font-size:14px;color:#b6c5bb}
.balance-summary strong {font-size:27px;color:#f2faf5;font-weight:600;font-variant-numeric:tabular-nums}
.balance-modes {display:flex;background:#111620;border:1px solid #ffffff0d;border-radius:11px;padding:5px;gap:5px;margin-bottom:25px}
.balance-modes button {flex:1;min-height:45px;border:0;border-radius:7px;background:transparent;color:#acbbb2;font-size:15px;font-weight:550}
.balance-modes button[aria-pressed="true"] {background:#2f4354;color:#e8fff0}
.balance-modes button[data-value="debit"][aria-pressed="true"] {background:#493235;color:#ffd7dc}
.amount-input {position:relative}
body[data-page="app"] .amount-input input {width:100%;max-width:none;height:62px;padding:14px 43px 14px 17px;margin-bottom:0;font-size:27px;font-weight:600}
.amount-input>span {position:absolute;right:18px;top:17px;color:#b6cbbc;font-size:23px;pointer-events:none}
body[data-page="app"] .balance-hint {font-size:13px;color:#a7b7ac;margin:10px 0 23px}
.balance-preview {background:transparent;padding:16px 0;margin-bottom:0;border-top:1px solid #ffffff15;border-bottom:1px solid #ffffff15;border-radius:0;font-size:14px}
.balance-preview strong {font-size:23px;color:#9aebbe;font-weight:550;font-variant-numeric:tabular-nums}
.balance-preview strong.negative {color:#ffb1bc}
body[data-page="app"] #balance-error {color:#ffb4bd;min-height:24px;font-size:14px;margin:14px 0 20px}
.modal-actions {display:flex;justify-content:flex-end;gap:11px}
body[data-page="app"] #toast {font-family:inherit;background:#e4f8ed;color:#15291c;border-color:#a7d6bd;font-size:15px;border-radius:11px}
body[data-page="app"] :focus-visible {outline:2px solid #8ae6be;outline-offset:4px}
@media(min-width:1700px){body[data-page="app"] .workspace{padding:42px 52px 55px}.overview-main{grid-template-columns:minmax(0,1.7fr) minmax(330px,1fr)}body[data-page="app"] .subscription-body h2{font-size:39px}.subscription-body{margin:35px 0}.connection-symbol{width:96px;height:96px}.connection-symbol .ui-icon{width:41px;height:41px}}
@media(max-width:1280px) and (min-width:901px){body[data-page="app"] .shell{padding-left:220px}body[data-page="app"] .sidebar{width:204px;padding-left:10px;padding-right:10px}.overview-main{grid-template-columns:1fr}.overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-page="app"] .quick-start h2 br{display:none}body[data-page="app"] .quick-start{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.quick-start>.card-overline,.quick-start>h2,.quick-start>.inline-link{grid-column:1/-1}.quick-step{margin:12px 0}body[data-page="app"] .page-heading>.badge{display:none}body[data-page="app"] .two-col{grid-template-columns:1fr}}
/* Phone/tablet: fixed thumb navigation and vertical cards, no shrunk desktop. */
@media(max-width:900px){
  body[data-page="app"]{background:#0e1118;font-size:16px}
  body[data-page="app"] .sidebar,body[data-page="app"] .footer{display:none}
  body[data-page="app"] .topbar{position:fixed;inset:0 0 auto;height:70px;display:flex;padding:0 22px;background:#0e1118f5;border-bottom:1px solid #ffffff0b;max-width:none;margin:0;z-index:20;gap:16px}
  body[data-page="app"] .topbar .brand{font-family:inherit;font-size:23px;letter-spacing:-.7px;font-weight:650;gap:7px}
  body[data-page="app"] .brand img{width:29px;height:29px;mix-blend-mode:normal;object-fit:contain}
  body[data-page="app"] .topnav{display:none}
  body[data-page="app"] #header-login{padding:0;background:transparent;border:0;max-width:190px;gap:9px;min-height:40px;color:#dfe9e2}
  .mobile-username{max-width:125px;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:500}
  .mobile-avatar{width:30px;height:30px;border-radius:9px;font-size:14px}
  body[data-page="app"] .shell{padding:70px 0 calc(94px + env(safe-area-inset-bottom));min-height:100dvh}
  body[data-page="app"] .workspace{padding:30px 24px 36px;border:0;border-radius:0;min-height:calc(100dvh - 164px);background:#0e1118}
  body[data-page="app"] .page-heading{margin-bottom:26px;display:block}
  body[data-page="app"] .page-heading h1{font-size:32px;margin:10px 0 13px;line-height:1.17}
  body[data-page="app"] .page-heading>.badge{display:none}
  body[data-page="app"] .page-heading p{font-size:15px;line-height:1.6}
  body[data-page="app"] .panel{padding:24px;border-radius:17px}
  body[data-page="app"] .panel h2{font-size:27px}
  .overview-main{grid-template-columns:1fr;gap:17px}
  body[data-page="app"] .subscription-card{padding:25px}
  .subscription-body{margin:26px 0 23px;gap:18px}
  body[data-page="app"] .subscription-body h2{font-size:29px;line-height:1.2;margin-bottom:13px}
  .connection-symbol{width:69px;height:69px;box-shadow:0 0 0 7px #79e5bd03}
  .connection-symbol .ui-icon{width:30px;height:30px}
  .overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-top:17px}
  body[data-page="app"] .overview-grid .panel{padding:24px}
  .help-card{grid-column:1/-1}
  body[data-page="app"] .quick-start{display:none}
  body[data-page="app"] .two-col{grid-template-columns:1fr;gap:17px}
  body[data-page="app"] .button,body[data-page="app"] .button.small{min-height:46px;font-size:15px;padding:11px 16px}
  body[data-page="app"] .button.primary{min-height:48px;padding:13px 18px}
  body[data-page="app"] .icon-button{min-width:44px;min-height:44px}
  body[data-page="app"] .list-row{padding:20px;align-items:flex-start;flex-wrap:wrap}
  body[data-page="app"] .list-row>div{min-width:0;flex:1 1 180px}
  body[data-page="app"] .list-row h3{font-size:18px;overflow-wrap:anywhere}
  body[data-page="app"] .list-row p{font-size:14px;overflow-wrap:anywhere}
  body[data-page="app"] .device-tabs{gap:8px;margin:22px 0}
  body[data-page="app"] .device-tabs button{flex:1 0 25%;font-size:15px;padding:10px 12px;min-height:46px}
  body[data-page="app"] .guide-step{gap:17px;padding:25px 0}
  body[data-page="app"] .guide-step h3{font-size:21px;line-height:1.25}
  body[data-page="app"] .guide-step p{font-size:15px}
  body[data-page="app"] .stat-grid{grid-template-columns:1fr;gap:12px}
  body[data-page="app"] .stat-grid .panel{display:flex;align-items:center;justify-content:space-between;gap:15px}
  body[data-page="app"] .stat-grid .metric{margin:0;font-size:37px}
  body[data-page="app"] .form-grid{grid-template-columns:1fr;gap:17px}
  body[data-page="app"] .admin-tabs{width:100%;display:flex;flex-wrap:nowrap;overflow:auto;scrollbar-width:none;padding:5px;gap:3px;border-radius:11px}
  body[data-page="app"] .admin-tabs .button{font-size:14px;padding:11px 14px;flex:none;white-space:nowrap}
  body[data-page="app"] .searchbar{display:flex;flex-wrap:nowrap;gap:8px}
  body[data-page="app"] .searchbar input{min-width:0;margin:0;width:100%;flex:1;font-size:15px;padding:12px}
  body[data-page="app"] .searchbar .button{width:auto;padding:11px 14px;font-size:14px}
  body[data-page="app"] .users-table,body[data-page="app"] .users-table tbody{display:block;width:100%;white-space:normal}
  body[data-page="app"] .users-table thead{display:none}
  body[data-page="app"] .users-table tr{display:block;border:1px solid #ffffff13;border-radius:13px;margin-bottom:14px;padding:5px 17px 16px;background:#141a24}
  body[data-page="app"] .users-table td{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #ffffff0b;padding:13px 0;font-size:15px;max-width:none;min-width:0;white-space:normal}
  body[data-page="app"] .users-table td:before{content:attr(data-label);color:#adbdb3;font-size:13px;flex:none}
  body[data-page="app"] .users-table td:first-child{display:block;max-width:none;font-size:18px;font-weight:600;overflow-wrap:anywhere}
  body[data-page="app"] .users-table td:first-child:before{display:none}
  body[data-page="app"] .users-table td:first-child .text-muted{font-size:13px;font-weight:400}
  body[data-page="app"] .users-table .user-actions{display:grid;grid-template-columns:1fr;gap:8px;border:0;padding-bottom:0}
  body[data-page="app"] .users-table .user-actions:before{display:none}
  body[data-page="app"] .users-table .user-actions .button{width:100%;margin:0;font-size:14px;min-height:44px}
  .mobile-nav{display:flex;position:fixed;inset:auto 0 0;z-index:30;background:#171c27f7;border-top:1px solid #ffffff12;padding:8px max(10px,env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));justify-content:space-around;gap:4px}
  .mobile-nav>a,.mobile-nav>button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;flex:1;min-width:0;min-height:56px;padding:6px 0;border:0;border-radius:10px;background:transparent;color:#a7b8ae;font-size:12px;font-weight:500;line-height:1.2}
  .mobile-nav>a.active,.mobile-nav.more-active>button{background:#79e5bd0c;color:#a0efc9}
  .mobile-nav .ui-icon{width:21px;height:21px}
  .mobile-more{display:block;position:fixed;z-index:29;bottom:calc(85px + env(safe-area-inset-bottom));left:14px;right:14px;padding:14px;border:1px solid #ffffff20;border-radius:17px;background:#232a38;box-shadow:0 -30px 100px #0007;max-height:65dvh;overflow:auto}
  .more-heading{display:flex;align-items:center;justify-content:space-between;padding:2px 11px 10px;font-size:18px;font-weight:600}
  .more-heading button{background:none;border:0;min-width:40px;min-height:40px;font-size:27px;color:#b9cbbf}
  body[data-page="app"] .mobile-more .nav-item{font-size:15px;min-height:50px}
  body[data-page="app"] #toast{bottom:calc(95px + env(safe-area-inset-bottom));font-size:14px;width:max-content;text-align:center}
  body[data-page="app"] dialog{padding:28px 24px;max-height:calc(100dvh - 28px)}
  body[data-page="app"] dialog h2{font-size:28px;line-height:1.2}
  .modal-actions{display:grid;grid-template-columns:1fr 1.5fr;gap:9px}
  body[data-page="app"] .modal-actions .button{font-size:14px;padding:12px 10px}
}
@media(max-width:520px){
  body[data-page="app"] .workspace{padding:27px 16px 30px}
  body[data-page="app"] .topbar{padding:0 18px;height:64px}
  body[data-page="app"] .shell{padding-top:64px}
  .mobile-username{display:none}
  body[data-page="app"] .page-heading h1{font-size:29px}
  body[data-page="app"] .page-heading p{font-size:15px}
  body[data-page="app"] .panel,body[data-page="app"] .subscription-card{padding:21px}
  .subscription-top{gap:10px}.status-pill{font-size:12px;padding:7px 9px}.plan-label{font-size:9px;letter-spacing:.08em}
  body[data-page="app"] .subscription-body h2{font-size:27px}.subscription-body{gap:14px;margin:27px 0 23px}
  .connection-symbol{width:52px;height:52px;box-shadow:none}.connection-symbol .ui-icon{width:25px;height:25px}
  body[data-page="app"] .subscription-body p{font-size:14px}
  .subscription-footer{display:grid;grid-template-columns:1fr;gap:18px}.subscription-footer>.button{width:100%;font-size:14px!important}
  .subscription-footer>span{font-size:21px}.subscription-footer small{font-size:12px}
  .overview-grid{grid-template-columns:1fr;gap:14px}.help-card{grid-column:auto}
  body[data-page="app"] .overview-grid .panel{padding:23px}
  body[data-page="app"] .overview-grid h2 br{display:none}
  body[data-page="app"] .overview-grid h2{font-size:25px;margin:20px 0 12px}
  body[data-page="app"] .profile-pair{font-size:14px;gap:12px}
  body[data-page="app"] .profile-pair strong{max-width:61%}
  body[data-page="app"] .panel-top:has(.limit-control){align-items:flex-start;flex-wrap:wrap}
  body[data-page="app"] .panel-top:has(.limit-control) h2{font-size:24px}
  body[data-page="app"] .limit-control{margin-top:10px}
  body[data-page="app"] .guide-step{gap:13px}.guide-step>span{font-size:18px!important}
  .balance-summary strong{font-size:24px}.balance-summary{padding:16px}.balance-preview strong{font-size:21px}
}
@media(prefers-reduced-motion:reduce){body[data-page="app"] *,body[data-page="app"] *:before,body[data-page="app"] *:after{animation:none!important;transition:none!important}}
/* Shrink flex contents around long subscription URLs instead of widening the viewport. */
body[data-page="app"] .guide-step {min-width:0}
body[data-page="app"] .guide-step>div {min-width:0;flex:1}
body[data-page="app"] .guide-step>span {flex:none}
body[data-page="app"] .key-box {width:100%;min-width:0}
body[data-page="app"] .plain-text {min-width:0;overflow-wrap:anywhere}
body[data-page="app"] .connection-symbol {box-shadow:none}
body[data-page="app"] .subscription-card {border-color:#7f9dc838}
body[data-page="app"] .confirm-dialog {width:min(460px,calc(100% - 32px))}
body[data-page="app"] .confirm-dialog h2 {font-size:28px;margin:20px 0 16px}
body[data-page="app"] .confirm-dialog p {margin:0 0 29px;line-height:1.65}
body[data-page="app"] .confirm-dialog .button.danger {background:#57363f;color:#ffe6eb;border-color:#99556866}
body[data-page="app"] .confirm-dialog .button.danger:hover {background:#71444f}
@media(max-width:900px){
 body[data-page="app"] .mobile-nav {position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;max-width:100vw;flex-shrink:0;transform:none}
 body[data-page="app"] .guide-step .key-box {padding-left:12px}
}
