/*
 * VeltrixMTA – classic UCP theme
 * A compact, top-navigation layout inspired by traditional MTA control panels.
 */
:root{
  --bg:#171a1f;
  --surface:#101216;
  --surface-2:#14171c;
  --surface-3:#1c2025;
  --line:#2c3138;
  --line-strong:#394047;
  --text:#f4f6f7;
  --muted:#8e979e;
  --muted-2:#646d74;
  --purple:#31c998;
  --purple-2:#1fae80;
  --cyan:#36bde1;
  --green:#31c998;
  --orange:#e9bd54;
  --danger:#df6370;
  --radius:2px;
  --radius-sm:2px;
  --shadow:0 3px 12px rgba(0,0,0,.18);
}

html{background:#171a1f}
body{
  color:#f4f6f7;
  background:#171a1f;
  font-family:Arial,Helvetica,sans-serif;
  font-feature-settings:normal;
  letter-spacing:0;
}
body:before{display:none}

/* Top masthead: the original sidebar becomes a compact horizontal navigation. */
.sidebar{
  position:relative;
  inset:auto;
  z-index:20;
  width:100%;
  min-height:82px;
  padding:0 22px;
  display:flex;
  align-items:center;
  flex-direction:row;
  gap:20px;
  overflow:visible;
  border:0;
  border-top:3px solid var(--green);
  border-bottom:1px solid #0b0d10;
  background:
    linear-gradient(135deg,transparent 0 16%,rgba(255,255,255,.025) 16% 31%,transparent 31% 49%,rgba(255,255,255,.02) 49% 66%,transparent 66%),
    #25282e;
  box-shadow:0 3px 15px rgba(0,0,0,.32);
}
.nav-brand{
  flex:0 0 180px;
  margin:0;
  padding:0;
  border:0;
  gap:9px;
  font-size:12px;
  letter-spacing:.3px;
}
.nav-brand .brand-logo{
  width:46px;
  height:46px;
  border-radius:0;
  box-shadow:none;
}
.nav-brand:after{display:none}
.brand b{color:var(--green)}
.sidebar nav{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:2px;
  flex:1;
  min-width:0;
  width:calc(100% - 200px);
  padding:0;
  overflow:visible;
}
.sidebar nav small{display:none}
.sidebar nav a,
.sidebar nav .info-nav{
  width:auto;
  min-height:34px;
  padding:8px 8px;
  gap:6px;
  border:0;
  border-radius:2px;
  color:#b4bac0;
  background:transparent;
  font-size:9px;
  font-weight:700;
  white-space:nowrap;
}
.sidebar nav a>span,
.sidebar nav .info-nav>span{
  width:15px;
  height:15px;
  flex:0 0 15px;
  border-radius:0;
  background:transparent;
  color:#d5d9dc;
}
.sidebar nav a>b{
  margin-left:0;
  padding:2px 5px;
  border:0;
  border-radius:8px;
  color:#101512;
  background:var(--green);
}
.sidebar nav a:hover{
  color:#fff;
  background:rgba(0,0,0,.2);
  border:0;
  transform:none;
}
.sidebar nav a.active{
  color:#fff;
  border:0;
  background:#121418;
  box-shadow:inset 0 -2px var(--green);
}
.sidebar nav a.active>span{color:var(--green);background:transparent}
.account-menu{position:relative;flex:0 0 auto}
.account-menu-toggle{display:flex;align-items:center;gap:6px;min-height:34px;padding:8px;border:0;border-radius:2px;background:transparent;color:#b4bac0;font-size:11px;font-weight:700;cursor:pointer}
.account-menu-toggle>.v-icon{width:15px;height:15px}.account-menu-toggle>span{margin-left:2px;color:#727b82}
.account-menu:hover .account-menu-toggle,.account-menu:focus-within .account-menu-toggle,.account-menu.active .account-menu-toggle{color:#fff;background:#121418;box-shadow:inset 0 -2px var(--green)}
.account-menu-dropdown{position:absolute;z-index:50;top:100%;left:0;display:none;width:175px;padding:5px;border:1px solid #363c42;background:#15181c;box-shadow:0 14px 35px rgba(0,0,0,.55)}
.account-menu:hover .account-menu-dropdown,.account-menu:focus-within .account-menu-dropdown,.account-menu.open .account-menu-dropdown{display:grid}
.sidebar nav .account-menu-dropdown a,.sidebar nav .account-menu-dropdown .info-nav{width:100%;min-height:34px;padding:8px 9px;font-size:10px}
.account-menu-dropdown a.active{box-shadow:inset 2px 0 var(--green)}

/* Account bar and page frame. */
.app-shell{margin-left:0;min-height:calc(100vh - 82px)}
.app-shell header{
  position:relative;
  top:auto;
  z-index:4;
  height:38px;
  padding:0 22px;
  border-bottom:1px solid #282c31;
  background:#0f1114;
  box-shadow:none;
}
.header-user{display:flex!important;align-items:center;gap:7px}
.header-user small{display:none}
.header-user strong{font-size:10px;color:#c8cdd1}
.header-account-id{padding:3px 6px;border:1px solid #343a40;border-radius:2px;background:#202429;color:#858e96;font-size:7px;font-weight:800;letter-spacing:.35px}
.header-actions{gap:7px}
.points{
  padding:4px 7px;
  border:0;
  border-radius:2px;
  color:#111813;
  background:var(--green);
  font-size:8px;
  font-weight:800;
}
.avatar{width:22px;height:22px;border-radius:2px;background:#292e34;color:#e7e9eb;font-size:8px}
.header-logout{
  height:24px;
  padding:4px 7px;
  border:0;
  border-radius:2px;
  background:#25292e;
  color:#aeb5bb;
  font-size:8px;
}
.header-character{
  display:flex;
  align-items:center;
  gap:5px;
  height:24px;
  padding:4px 8px;
  border:1px solid rgba(49,201,152,.35);
  border-radius:2px;
  color:#78ddbc;
  background:rgba(49,201,152,.08);
  font-size:8px;
  font-weight:800;
}
.header-character .v-icon{width:11px;height:11px}
.header-character:hover{color:#07130e;background:var(--green)}
.content{
  flex:1;
  padding:28px 24px 80px;
  background:#171a1f;
}
.content>:not(dialog),
.content>.page-title,
.info-page-title,
.info-section{
  width:min(100%,1100px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
footer{
  min-height:88px;
  padding:30px 20px;
  border-top:1px solid #202329;
  background:#0e1013;
  color:#777f85;
  font-size:9px;
}

/* Typography and compact surfaces. */
.eyebrow{color:var(--green);font-size:8px;letter-spacing:.9px}
.page-title{
  min-height:0;
  margin-bottom:18px;
  align-items:center;
}
.page-title h1{
  margin:3px 0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:25px;
  line-height:1.1;
  letter-spacing:0;
}
.page-title p{font-size:10px;color:#858e95}
.panel,.entity-card,.pp-package{
  border:1px solid #25292f;
  border-radius:2px;
  background:#101216;
  box-shadow:var(--shadow);
}
.panel{padding:14px}
.panel-head{
  min-height:34px;
  padding:0 0 9px;
  border-bottom:1px solid #343940;
}
.panel-head h2,.form-panel h2{font-size:12px}
.panel-head small{font-size:7px}

/* Dashboard resembles the dense cards and rows of the reference. */
.stats-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}
.stats-grid article{
  min-height:72px;
  padding:12px;
  gap:10px;
  border:1px solid #272c32;
  border-radius:2px;
  background:#101216;
}
.stat-icon{width:31px;height:31px;border-radius:2px}
.stats-grid strong{font-size:14px}
.stats-grid article small,.stat-note{font-size:7px}
.dashboard-grid{gap:10px}
.dynamic-news{padding:13px 2px}
.dynamic-news>span{
  border-radius:2px;
  color:#0c1712;
  background:var(--green);
}
.dynamic-news h3{font-size:13px}.dynamic-news p{font-size:10px}

/* Entity pages and log tables. */
.card-grid,.character-list,.news-admin-grid,.request-admin-grid{gap:10px}
.entity-card{padding:12px}
.entity-card:hover,.news-admin-card:hover,.pp-package:hover{border-color:#41484f;box-shadow:var(--shadow)}
.character-detail{border-radius:2px}
.character-main{grid-template-columns:180px 1fr;min-height:245px}
.skin-showcase{background:#20242a}
.character-info{padding:20px}
.character-info h2{font-family:Georgia,"Times New Roman",serif;font-size:21px}
.entity-stats span{padding:10px 5px}
.vehicle-visual,.property-visual{height:130px;border-radius:2px;background:#20242a}
.status,.request-status,.ticket-status{
  border:0;
  border-radius:2px;
  padding:4px 7px;
  font-size:7px;
}
.status.on,.request-status.approved,.ticket-status.answered{color:#0b1712;background:var(--green)}
.request-status.pending,.ticket-status.open{color:#17130a;background:var(--orange)}
.request-status.rejected{color:#fff;background:var(--danger)}
.admin-table-wrap{padding:7px 10px 10px;border-radius:2px}
.admin-table th{
  height:32px;
  padding:7px;
  color:#dce0e3;
  background:#272c31;
  font-size:8px;
}
.admin-table td{padding:9px 7px;border-color:#282d33;font-size:8px}
.admin-table tbody tr:nth-child(even){background:#15181c}
.admin-table tbody tr:hover{background:#1b2024}
.empty{min-height:90px;border-radius:2px}

/* Forms and controls. */
input,select,textarea{
  min-height:37px;
  padding:9px 11px;
  border:1px solid #343a41;
  border-radius:2px;
  background:#171a1f;
}
input:focus,select:focus,textarea:focus{
  border-color:var(--green);
  background:#171a1f;
  box-shadow:0 0 0 2px rgba(49,201,152,.1);
}
.primary{
  min-height:34px;
  padding:8px 13px;
  border-radius:2px;
  color:#07130f;
  background:var(--green);
  box-shadow:none;
  font-size:9px;
}
.primary:hover{background:#45d9aa;box-shadow:none}
.secondary-action,.approve-button,.reject-button,.mini-button,.maintenance-button{border-radius:2px}

/* Login follows the same dark, geometric masthead language. */
.login-shell{grid-template-columns:minmax(0,1.15fr) minmax(380px,.65fr)}
.hero-panel{
  border-right:1px solid #30353b;
  background:
    linear-gradient(135deg,transparent 0 22%,rgba(255,255,255,.025) 22% 39%,transparent 39%),
    #24282e;
}
.hero-panel:before{display:block;opacity:.18}
.hero-panel:after{border-color:rgba(49,201,152,.16);box-shadow:0 0 0 100px rgba(49,201,152,.025),0 0 0 200px rgba(49,201,152,.012)}
.brand-logo{border-radius:0;box-shadow:none}
.hero-copy h1{font-family:Georgia,"Times New Roman",serif;letter-spacing:-2px}
.hero-copy h1 em{color:var(--green)}
.server-showcase,.login-card{
  border-radius:2px;
  border-color:#343a40;
  background:#101216;
}
.showcase-head img{border-radius:0}
.login-panel{background:#171a1f}
.login-card{padding:32px}
.login-card h2{font-family:Georgia,"Times New Roman",serif;font-size:34px;letter-spacing:-1px}
.showcase-links a>span{color:var(--green)}

/* Full character profile */
.ucp-profiles{display:grid;gap:38px}
.ucp-profile-heading{margin-bottom:-26px}
.ucp-profile-heading h1{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:25px}
.ucp-profile-heading p{margin:4px 0 0;color:var(--muted);font-size:9px}
.ucp-profile-layout{display:grid;grid-template-columns:250px minmax(0,1fr);align-items:start;gap:12px}
.ucp-profile-side,.ucp-profile-main{display:grid;gap:10px}
.ucp-box{min-width:0;border:1px solid #252a30;background:#101216;box-shadow:0 3px 12px rgba(0,0,0,.16)}
.ucp-box>h2{display:flex;align-items:center;gap:7px;min-height:37px;margin:0;padding:9px 11px;border-bottom:1px solid #343940;font-size:10px}
.ucp-box>h2 .v-icon{width:12px;height:12px;color:#dce1e3}
.ucp-box>h2 small{color:#788188;font-size:8px}
.ucp-portrait{position:relative;height:248px;overflow:hidden;border:1px solid #292e34;background:#20242a}
.ucp-portrait img{width:100%;height:100%;display:block;object-fit:cover}
.ucp-portrait .status{position:absolute;right:8px;bottom:8px;background:#282d32;color:#c3c8cc}
.ucp-portrait .status.on{background:var(--green);color:#07130e}
.ucp-facts{display:grid;gap:0;margin:0;padding:8px 10px}
.ucp-facts>div{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:25px;border-bottom:1px solid #24292e}
.ucp-facts>div:last-child{border-bottom:0}
.ucp-facts dt{color:#929aa0;font-size:8px}.ucp-facts dd{margin:0;color:#eef1f2;font-size:8px;font-weight:700;text-align:right}
.tag{display:inline-flex;align-items:center;min-height:17px;padding:3px 6px;border-radius:2px;font-size:7px!important;font-weight:800;white-space:nowrap}
.tag.green{background:#34c99a;color:#07140f}.tag.cyan{background:#34b8dc;color:#071319}.tag.gold{background:#e5bf54;color:#171407}.tag.red{background:#d95c68;color:#fff}.tag.custom{background:#a63dca;color:#fff}
.property-report-mark{justify-content:center;min-width:24px;font-size:12px!important}
.weapon-skill-list{display:grid;gap:9px;padding:12px}
.weapon-skill-row{display:grid;grid-template-columns:150px 1fr 38px;align-items:center;gap:12px;font-size:10px}
.weapon-skill-row strong{color:#dce0e2}.weapon-skill-row>b{text-align:right;color:#fff}
.weapon-skill-row>i{display:block;height:6px;overflow:hidden;background:#292f34}
.weapon-skill-row>i>em{display:block;height:100%;background:linear-gradient(90deg,var(--green),#3bbfe3)}
.weapon-skills .ucp-none{padding:24px;text-align:center;color:#7b848b;font-size:10px}
.character-group-card{padding:12px 10px;border-bottom:1px solid #282d32}.character-group-card:last-of-type{border-bottom:0}
.character-group-name{display:flex;align-items:center;justify-content:center;gap:6px;width:max-content;max-width:100%;margin:0 auto 10px;padding:6px 9px;border-radius:3px;background:#363a3d;color:#fff;font-size:10px;font-weight:800}
.character-group-name>span{padding-left:6px;border-left:1px solid #555b5f;color:#e4bd52;font-size:8px}
.character-group-facts{display:grid;gap:6px;margin:0}
.character-group-facts>div{display:flex;align-items:stretch;width:max-content;max-width:100%}
.character-group-facts dt,.character-group-facts dd{display:flex;align-items:center;min-height:26px;margin:0;padding:6px 8px;font-size:9px;font-weight:800}
.character-group-facts dt{border-radius:2px 0 0 2px;background:#35393c;color:#fff}
.character-group-facts dd{border-radius:0 2px 2px 0;background:#35b9dc;color:#fff}
.character-group-empty{padding:18px 10px;text-align:center;color:#737c83;font-size:9px}
.ucp-meter{padding:9px 10px 0}.ucp-meter:last-child{padding-bottom:11px}
.ucp-meter>span{display:flex;justify-content:space-between;margin-bottom:5px;color:#91999f;font-size:8px}.ucp-meter b{color:#dce0e2}
.ucp-meter>i{display:block;height:4px;overflow:hidden;background:#292e33}
.ucp-meter em{display:block;height:100%;background:var(--green)}
.ucp-meter.armor em{background:#35bce1}.ucp-meter.hunger em{background:#e2bc51}
.ucp-jail{border-color:#593039}.ucp-jail p{margin:10px 10px 4px;color:#c7cbd0;font-size:8px}.ucp-jail>strong{display:block;margin:0 10px 11px;color:#e47782;font-size:8px}
.ucp-table-wrap{overflow-x:auto;padding:8px 10px 10px}
.ucp-table{width:100%;border-collapse:collapse;font-size:8px}
.ucp-table th{height:27px;padding:6px 7px;text-align:left;color:#d9dde0;background:#282d32;font-size:7px}
.ucp-table td{height:30px;padding:6px 7px;border-bottom:1px solid #252a2f;color:#b9c0c5}
.ucp-table tbody tr:nth-child(even){background:#15181c}.ucp-table tbody tr:hover{background:#1b2024}
.ucp-table td strong{color:#f1f3f4}.ucp-table td small{display:block;margin-top:2px;color:#717a81;font-size:6px}.ucp-table code{color:#dfe3e5;font-size:7px}
.ucp-table .ucp-none{height:48px;text-align:center;color:#737c83}
.ucp-row-link{display:grid;place-items:center;width:19px;height:19px;margin-left:auto;background:#282d32;color:#e4e7e9;font-size:15px}
.ucp-row-link{padding:0;border:0;cursor:pointer}
.ucp-row-link:hover{background:var(--green);color:#07130e}
.ucp-inventory{min-height:310px}
.ucp-inventory-board{width:max-content;max-width:100%;margin:16px auto;padding:0 4px 4px;background:#171a1e}
.ucp-inventory-tabs{display:flex;align-items:center;justify-content:center;gap:22px;height:42px;color:#747b80}
.ucp-inventory-tabs button{display:grid;place-items:center;width:28px;height:30px;padding:0;border:0;background:transparent;color:#747b80;cursor:pointer}
.ucp-inventory-tabs button.active{color:var(--green)}
.ucp-inventory-tabs .v-icon{width:21px;height:21px;stroke-width:1.8}
.ucp-item-grid{display:none;grid-template-columns:repeat(10,38px);gap:3px;justify-content:center;padding:0}
.ucp-item-grid.active{display:grid}
.ucp-item{position:relative;display:grid;place-items:center;width:38px;height:38px;border:1px solid #282e33;background:
  linear-gradient(rgba(255,255,255,.025),rgba(255,255,255,0)),#191d21}
.ucp-item img{max-width:33px;max-height:33px;object-fit:contain}.ucp-item>span{position:absolute;right:2px;bottom:1px;color:#fff;font-size:9px;font-weight:800;text-shadow:0 1px 2px #000}
.ucp-item.empty-slot{opacity:.55}

/* Vehicle detail window */
.vehicle-card h2 small{color:#697279;font-size:12px}
.vehicle-details-button{width:100%;margin-top:12px;padding:8px 10px;border:0;border-radius:2px;background:var(--green);color:#07130e;font-size:8px;font-weight:800;cursor:pointer}
.vehicle-details-button:hover{background:#48d9ac}
.vehicle-dialog{width:min(760px,calc(100% - 24px));max-height:calc(100vh - 30px);padding:0;border:1px solid #384047;border-radius:3px;background:#22272b;color:#fff;box-shadow:0 25px 90px rgba(0,0,0,.75)}
.vehicle-dialog::backdrop{background:rgba(4,6,8,.8);backdrop-filter:blur(3px)}
.vehicle-dialog-head{display:flex;align-items:center;justify-content:space-between;height:48px;padding:0 16px;background:#171a1e;font-size:14px}
.vehicle-dialog-head button{display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;background:transparent;color:#e7e9ea;font-size:20px;cursor:pointer}
.vehicle-dialog-body{padding:20px 24px 22px}
.vehicle-dialog-body>h2{margin:0;font-size:25px}.vehicle-dialog-body>h2 span{color:#747d84}
.vehicle-dialog-id{margin:6px 0 23px;color:#a9d0ef;font-size:16px}
.vehicle-detail-columns{display:grid;grid-template-columns:1fr 1fr;gap:34px}
.vehicle-tuning-columns{margin-top:24px}
.vehicle-dialog h3{margin:0 0 11px;font-size:15px}
.vehicle-facts{display:grid;gap:8px;margin:0}
.vehicle-facts>div{display:flex;align-items:center}
.vehicle-facts dt{padding:7px 9px;border-radius:2px 0 0 2px;background:#34383b;color:#fff;font-size:11px;font-weight:800}
.vehicle-facts dd{margin:0;border-radius:0 2px 2px 0;min-height:29px;font-size:10px!important}
.vehicle-facts .tag:not(.green):not(.cyan):not(.gold):not(.red):not(.custom){background:#555a61;color:#fff}
.vehicle-facts .tag.custom{background:#a63dca;color:#fff}
.vehicle-inventory{margin-top:24px}
.vehicle-item-grid{display:grid;grid-template-columns:repeat(8,44px);gap:3px;width:max-content;max-width:100%;margin:0 auto;padding:5px;border:4px solid #101215;background:#15181b}
.vehicle-item{position:relative;display:grid;place-items:center;width:44px;height:44px;border:1px solid #30363c;background:#1d2226}
.vehicle-item img{max-width:37px;max-height:37px;object-fit:contain}.vehicle-item span{position:absolute;right:2px;bottom:1px;font-size:10px;font-weight:800;text-shadow:0 1px 2px #000}
.vehicle-item.empty-slot{opacity:.45}
.vehicle-grid{display:grid;grid-template-columns:1fr!important;gap:16px}
.vehicle-detail-page{display:block;width:100%;max-height:none;margin:0;box-shadow:0 8px 26px rgba(0,0,0,.22)}
.vehicle-detail-page .vehicle-dialog-head>span{color:#9ba3a9;font-size:8px;font-weight:800}
.character-vehicle-popup{width:min(780px,calc(100% - 30px));max-height:calc(100vh - 30px);padding:0;border:1px solid #3b4349;border-radius:3px;background:#22272b;color:#fff;box-shadow:0 30px 100px rgba(0,0,0,.8)}
.character-vehicle-popup::backdrop{background:rgba(5,7,9,.76);backdrop-filter:blur(5px)}
.character-vehicle-popup-head{display:flex;align-items:center;justify-content:space-between;height:48px;padding:0 16px;background:#171a1e;font-size:14px}
.character-vehicle-popup-head button{width:27px;height:27px;padding:0;border:0;background:transparent;color:#fff;font-size:20px;cursor:pointer}
.character-vehicle-popup iframe{display:block;width:100%;height:min(760px,calc(100vh - 90px));border:0;background:#22272b}
.vehicle-embed>.sidebar,.vehicle-embed>.app-shell>header,.vehicle-embed>.app-shell>footer,.vehicle-embed .page-title{display:none!important}
.vehicle-embed .app-shell{margin:0!important;min-height:0!important}
.vehicle-embed .content{padding:0!important;background:#22272b}
.vehicle-embed .content>:not(dialog){width:100%!important}
.vehicle-embed .vehicle-grid{gap:0}
.vehicle-embed .vehicle-detail-page{border:0;box-shadow:none}
.vehicle-embed .vehicle-dialog-head{display:none}

/* Readability pass: primary UI text is larger, metadata remains compact. */
.sidebar nav a,.sidebar nav .info-nav{font-size:11px}
.header-user strong{font-size:12px}
.header-character,.header-logout,.points{font-size:10px}
.page-title h1{font-size:29px}
.page-title p{font-size:12px}
.eyebrow{font-size:9px}
.panel-head h2,.form-panel h2{font-size:14px}
.stats-grid strong{font-size:17px}
.stats-grid article small,.stat-note{font-size:8px}
.ucp-profile-heading h1{font-size:29px}
.ucp-profile-heading p{font-size:9px}
.ucp-box>h2{font-size:12px}
.ucp-box>h2 small{font-size:8px}
.ucp-facts dt,.ucp-facts dd{font-size:10px}
.ucp-meter>span{font-size:10px}
.ucp-table{font-size:10px}
.ucp-table th{font-size:9px}
.ucp-table td{font-size:10px}
.ucp-table td small{font-size:7px}
.tag{font-size:9px!important}
.admin-table th{font-size:9px}
.admin-table td{font-size:10px}
.dynamic-news h3{font-size:15px}
.dynamic-news p{font-size:11px}
.vehicle-detail-page .vehicle-dialog-head>span{font-size:9px}

@media(max-width:1050px){
  .sidebar{gap:14px;padding-inline:18px}
  .sidebar nav a,.sidebar nav .info-nav{padding-inline:7px;font-size:0}
  .sidebar nav a>span,.sidebar nav .info-nav>span{width:17px;height:17px;flex-basis:17px}
  .sidebar nav a>b{font-size:7px}
}
@media(max-width:1450px) and (min-width:761px){
  .sidebar{min-height:112px;padding-block:10px;align-items:flex-start}
  .nav-brand{margin-top:16px}
  .sidebar nav{align-content:center;align-items:center;justify-content:flex-start;flex-wrap:wrap;width:calc(100% - 200px);height:90px;overflow:hidden}
  .sidebar nav a,.sidebar nav .info-nav{font-size:10px}
  .app-shell{min-height:calc(100vh - 112px)}
}
@media(max-width:760px){
  .sidebar{
    position:fixed;
    inset:0 auto 0 0;
    width:min(290px,87vw);
    min-height:100vh;
    padding:24px 16px;
    display:flex;
    align-items:stretch;
    flex-direction:column;
    transform:translateX(-100%);
    border-top:0;
    border-right:1px solid #30353b;
    overflow-y:auto;
  }
  .sidebar.open{transform:none}
  .sidebar nav{display:grid;justify-content:stretch;align-items:stretch}
  .sidebar nav small{display:block}
  .sidebar nav a,.sidebar nav .info-nav{width:100%;font-size:10px}
  .account-menu{width:100%}
  .account-menu-toggle{width:100%;font-size:10px}
  .account-menu-dropdown{position:static;display:grid;width:100%;margin-top:3px;padding-left:12px;border:0;background:transparent;box-shadow:none}
  .app-shell{min-height:100vh}
  .app-shell header{height:52px;padding-inline:14px;border-top:3px solid var(--green)}
  .menu{display:block}
  .content{padding:24px 14px 50px}
  .stats-grid{grid-template-columns:1fr}
  .character-main{display:block}
  .ucp-profile-layout{grid-template-columns:1fr}
  .ucp-profile-side{grid-template-columns:180px 1fr}
  .ucp-portrait{grid-row:span 3;height:100%;min-height:250px}
  .ucp-item-grid{grid-template-columns:repeat(10,38px)}
  .login-panel{padding:20px 15px}
  .login-card{padding:25px 20px}
}
@media(max-width:520px){
  .header-character{font-size:0;width:26px;padding:5px;justify-content:center}
  .ucp-profile-side{grid-template-columns:1fr}
  .ucp-portrait{grid-row:auto;height:300px}
  .ucp-inventory-board{overflow-x:auto;width:100%}
  .ucp-item-grid{width:max-content;grid-template-columns:repeat(10,38px)}
  .vehicle-detail-columns{grid-template-columns:1fr;gap:22px}
  .vehicle-item-grid{grid-template-columns:repeat(5,44px)}
  .vehicle-dialog-body{padding:18px 14px}
}
