
/* FrozenMine — unified compact theme and controlled scroll surfaces. */
:root{color-scheme:dark;--bg:#090f18;--panel:#121d2b;--surface:#121d2b;--raised:#1a293b;--line:#293b50;--text:#eef5fd;--muted:#9aafc6;--subtle:#7088a0;--accent:#9bd6ff;--red:#f0a7b6;--green:#99e3bd;--nav-height:80px;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px}
*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#46627d transparent}html{min-height:100%;overflow-x:hidden;scrollbar-gutter:stable}body{margin:0;background:var(--bg);color:var(--text);line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:clip}html.modal-open,html.modal-open body,html:has(dialog[open]),body:has(dialog[open]){overflow:hidden;overscroll-behavior:none}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;color:inherit}button:disabled{cursor:default;opacity:.42}a{color:var(--accent)}h1,h2,h3,p{margin:0}fieldset{border:0;margin:0;padding:0;min-width:0}button,input,textarea,select{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #a5dbff;outline-offset:3px}input,textarea,select{min-width:0;max-width:100%}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}.muted,.helper{color:var(--muted)}.helper{font-size:12px;line-height:1.75}.overline,.eyebrow{display:block;color:#8ab5d6;font-size:9px;font-weight:700;letter-spacing:.15em;line-height:1.5}.surface{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}
*::-webkit-scrollbar{width:5px;height:5px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:#3d5871;border:1px solid transparent;background-clip:padding-box;border-radius:20px}*::-webkit-scrollbar-thumb:hover{background:#6c95b7}*::-webkit-scrollbar-button{display:none;width:0;height:0}*::-webkit-scrollbar-corner{background:transparent}
/* Shell and shared controls */
.app-header{height:64px;padding:0 20px;position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;background:#090f18f5;border-bottom:1px solid #203044;backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:9px;background:none;padding:0;font-weight:750;font-size:17px;letter-spacing:-.04em}.brand img{width:29px;height:29px;border-radius:8px}.header-actions{display:flex;align-items:center;gap:10px}.connection{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted)}.connection>i{width:5px;height:5px;border-radius:50%;background:#788a9a}.connection.live>i{background:#9bdbbd}.connection.offline>i{background:var(--red)}main{width:100%;max-width:800px;margin:0 auto;padding:22px 18px calc(108px + env(safe-area-inset-bottom))}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:8px 0 24px}.page-heading h1{font-size:30px;letter-spacing:-.05em;line-height:1.15;font-weight:750;margin-top:6px}.heading-icon{color:var(--accent)}.heading-icon .icon{width:25px;height:25px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:24px 0 13px}.section-heading h2{font-size:14px;font-weight:700;letter-spacing:-.02em}.section-heading>.muted{font-size:11px}.section-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px}.page-footer{padding:22px 0 0;font-size:10px;text-align:center;color:var(--subtle)}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:12px 17px;border-radius:12px;font-size:13px;font-weight:650;line-height:1.35;transition:background .15s,border-color .15s,transform .12s}.button:active:not(:disabled){transform:translateY(1px)}.button .icon{width:18px;height:18px}.primary{color:#102a40;background:#a5dbff;border:1px solid #a5dbff}.primary:hover:not(:disabled){background:#c0e7ff}.secondary{background:#1a2a3e;border:1px solid #34516f;color:#dfedfc}.secondary:hover:not(:disabled){background:#243a52}.button.danger,.session-stop,.category-stop{background:#432833;border:1px solid #794958;color:#ffd0d9}.button.danger:hover:not(:disabled),.session-stop:hover:not(:disabled),.category-stop:hover:not(:disabled){background:#5b303e}.compact{min-height:40px;padding:10px 13px;font-size:11px}.full{width:100%}.text-button{background:none;color:var(--accent);font-size:12px;padding:7px 0;line-height:1.5;display:inline-flex;align-items:center;gap:6px}.text-button .icon{width:15px;height:15px}.danger-text{color:var(--red)}.icon-button{width:40px;height:40px;background:none;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--muted)}.icon-button:hover{background:var(--raised);color:var(--text)}
.membership{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#112135;border:1px solid #2a435b;border-radius:15px;padding:13px 16px;margin-bottom:22px}.membership strong{display:block;font-size:13px;margin-top:3px}.membership p{font-size:10px;color:var(--muted);margin-top:4px;line-height:1.7}.membership-symbol{font-size:24px;color:#aedaff}.membership.expired{border-color:#7e6340;background:#30291f}.membership.expired .membership-symbol{color:#e3c28f}.notice{display:flex;align-items:flex-start;gap:10px;padding:14px 15px;border:1px solid #35506a;border-radius:13px;background:#172a3b;color:#b5ccdf;font-size:12px;line-height:1.7;margin:14px 0}.notice>.icon,.notice>span{flex-shrink:0}.notice p{flex:1}.notice.warning{border-color:#78623c;background:#30291e;color:#e4ca9e}.notice.error{border-color:#784553;background:#33212a;color:#f6bbc5}.context-note{font-size:11px;color:var(--muted);margin:12px 0}
.overview-summary{padding:20px 19px 0;border-radius:20px;background:#15283c;overflow:clip;border-color:#34506c}.summary-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#b6cde2;font-size:11px}.main-stat{position:relative;margin:22px 0 19px;display:flex;align-items:baseline;gap:10px}.main-stat>strong{font-size:52px;line-height:1;font-weight:650;letter-spacing:-.075em}.main-stat>span{font-size:13px;color:#adc8e1}.main-stat small{font-size:10px;color:#95b2ce}.stat-symbol{display:none}.summary-bottom{display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid #38516a;padding:16px 0}.summary-bottom>div{display:flex;align-items:baseline;gap:8px}.summary-bottom strong{font-size:22px;line-height:1;letter-spacing:-.04em}.summary-bottom span{font-size:10px;color:#9db5cd}.summary-bottom .icon{width:15px;height:15px}.summary-bottom small{color:var(--subtle);font-size:10px}
/* Lists */

.search{display:flex;align-items:center;gap:10px;min-height:50px;padding:0 14px;border:1px solid var(--line);background:#111d2b;border-radius:13px}.search>.icon{color:var(--muted);width:18px}.search input{width:100%;flex:1;border:0;outline:0!important;background:none;padding:13px 0;font-size:13px}.search .icon-button{width:26px;height:30px}.filter-row{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0 19px}.filter-row button{display:flex;align-items:center;gap:7px;background:transparent;color:var(--muted);padding:9px 11px;border-radius:9px;font-size:11px}.filter-row button[aria-pressed=true]{background:#203249;color:#e7f4ff}.filter-row button span{color:#829eb7;font-size:10px}.fleet-tools{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:23px}.fleet-tools>label{grid-column:1/-1;display:block;font-size:10px;color:var(--muted)}.fleet-tools label select{display:block;width:100%;margin-top:7px;min-height:44px}.fleet-tools .button{min-height:41px;font-size:11px}.account-list{display:grid;gap:12px}.grouped-list{display:block}.fleet-group{margin-bottom:25px}.fleet-group-heading{display:flex;align-items:center;gap:8px;margin:0 1px 12px}.fleet-group-heading h3{font-size:12px;font-weight:650;color:#bdd2e7}.count,.account-number{display:inline-flex;align-items:center;justify-content:center;min-width:21px;border-radius:6px;padding:2px 6px;background:#253e56;color:#acd4f6;font-size:10px}.group-heading-settings{margin-left:auto;font-size:10px;padding:3px 0}.account-card{display:block;width:100%;min-width:0;min-height:114px;padding:17px;text-align:left;background:#121e2c;border:1px solid #2a4059;border-radius:17px;transition:background .15s,border-color .15s}.account-card:hover{background:#192c3f;border-color:#527b9d}.account-card.selected{background:#1a3851;border-color:#8ac8f5}.account-top{display:flex;align-items:center;gap:12px;min-width:0}.account-avatar{width:43px;height:43px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:12px;background:#203c55;border:1px solid #345a78;color:#b9e0ff;font-size:13px;font-weight:750;letter-spacing:-.025em}.account-avatar.large{width:52px;height:52px;font-size:16px;border-radius:15px}.account-info{flex:1;min-width:0}.account-info strong{display:block;font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-info small{display:block;margin-top:4px;color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-chevron{color:var(--subtle)}.account-chevron .icon,.account-top>.icon{width:17px;color:#88aac5}.account-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #263b50;padding-top:12px;margin-top:14px;font-size:11px;color:var(--muted)}.account-ores{display:flex;align-items:center;gap:5px;max-width:60%;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-ores .icon{width:13px;height:13px}.badge{display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:100%;font-size:10px;line-height:1.3;padding:5px 8px;border:1px solid transparent;background:#243145;color:#a6b9cc;border-radius:7px}.badge.online,.badge.mining{background:#173a30;color:#a8eccb;border-color:#2b5949}.badge.reconnecting{background:#3a301d;color:#efd298;border-color:#6e5934}.empty,.event-empty{padding:34px 22px;text-align:center;color:var(--muted)}.empty-icon{display:flex;justify-content:center;color:var(--accent);margin-bottom:14px}.empty-icon .icon{width:32px;height:32px}.empty h3,.event-empty h3{font-size:16px;color:var(--text);letter-spacing:-.03em}.empty p,.event-empty p{font-size:12px;line-height:1.75;margin:9px auto 20px;max-width:320px}.event-empty>.icon{width:26px;height:26px;color:var(--accent);margin-bottom:13px}
/* Category operations */
.scope-card{padding:17px;margin-bottom:23px;background:#142b3e;border:1px solid #3d5a75;border-radius:18px}.scope-card-heading{display:flex;align-items:center;gap:12px}.scope-card-heading>.icon{width:21px;color:#addaff}.scope-card-heading>div{flex:1;min-width:0}.scope-card-heading .overline{font-size:8px}.scope-card-heading strong{display:block;margin-top:4px;font-size:16px;line-height:1.4}.scope-card-heading .text-button{font-size:10px}.scope-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:17px 0}.scope-metrics>div{border-left:1px solid #36526d;padding-left:12px}.scope-metrics>div:first-child{border:0;padding-left:0}.scope-metrics strong{display:block;font-size:23px;font-weight:700;letter-spacing:-.05em}.scope-metrics span{display:block;margin-top:3px;font-size:9px;color:#a2bcd2}.scope-card>.button{font-size:12px;min-height:44px}.category-actions,.category-inline-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:13px}.category-actions .button,.category-inline-actions .button{padding:11px 8px;font-size:11px;min-height:44px;line-height:1.4;gap:6px;white-space:normal}.category-actions .icon,.category-inline-actions .icon{width:15px;height:15px}.category-pick{font-size:10px!important}.category-select-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}.category-select-tools .text-button{font-size:11px}.category-control-list{border:1px solid var(--line);border-radius:13px;overflow:clip;max-height:none}.category-control-row{display:flex;align-items:center;gap:12px;padding:14px;border-bottom:1px solid var(--line);cursor:pointer}.category-control-row:last-child{border:0}.category-control-row input{width:19px;height:19px;min-height:0;accent-color:var(--accent);flex-shrink:0}.category-control-row strong{display:block;font-size:13px}.category-control-row small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.category-action-result{white-space:pre-line;font-size:11px}.category-select-search{margin:15px 0 0}.category-select-search input{font-size:12px}.bulk-panel{padding:17px;border:1px solid #4b7395;background:#142c42;border-radius:16px;margin-bottom:22px}.bulk-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.bulk-top strong{font-size:12px}.bulk-panel>label,.field-row>label{display:block;font-size:11px;color:var(--muted)}.bulk-panel select,.bulk-panel input{display:block;width:100%;margin-top:7px}.bulk-panel .helper{font-size:10px;margin:13px 0}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:13px}.category-rows{margin-top:18px}.category-row{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:10px 0}.category-row>strong{flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere}.category-row>.text-button{font-size:10px}
/* Account profile */

.back-button{display:inline-flex;align-items:center;gap:5px;background:none;padding:0;margin:0 0 20px;color:var(--muted);font-size:11px}.back-button .icon{width:15px;height:15px}.profile-heading{display:flex;align-items:center;gap:12px;min-width:0}.profile-identity{flex:1;min-width:0}.profile-identity h1{font-size:24px;letter-spacing:-.045em;overflow-wrap:anywhere}.profile-identity p{font-size:11px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.profile-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0 21px;font-size:11px;color:var(--muted)}.segmented{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:5px;background:#121f2d;border:1px solid #293e54;border-radius:14px;margin-bottom:22px}.segmented button{background:none;color:var(--muted);border-radius:9px;min-width:0;padding:12px 4px;font-size:11px;font-weight:600;position:relative}.segmented [aria-selected=true]{background:#2a4862;color:#f0f8ff}.segmented button>span{position:absolute;right:5px;top:6px;width:5px;height:5px;background:#a2d8ff;border-radius:50%}.activity-card{padding:20px 18px 0;background:#132236;border:1px solid #304761;border-radius:18px;overflow:clip}.activity-top{display:flex;align-items:flex-start;gap:12px}.activity-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:#20394e;color:#a9d7f7;border-radius:12px;flex-shrink:0}.activity-icon.active{background:#1a3d35;color:#a2e6c2}.activity-top h2{font-size:17px;line-height:1.4;letter-spacing:-.03em}.activity-top p{font-size:12px;color:var(--muted);line-height:1.75;margin-top:5px;overflow-wrap:anywhere}.session-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0 0}.session-controls .button{font-size:14px;min-height:48px}.session-hint{font-size:10px;line-height:1.7;color:var(--muted);margin:10px 0 14px}.controls{display:grid;gap:9px;margin:16px 0}.mining-controls{margin:0 0 16px}.mining-controls .button{font-size:12px}.activity-footer{display:flex;align-items:center;gap:7px;padding:13px 18px;margin:0 -18px;border-top:1px solid #2d435b;color:var(--subtle);font-size:10px}.activity-footer .icon{width:13px;height:13px}.detail-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.detail-stats>article{padding:16px}.detail-stats>article>span{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}.detail-stats .icon{width:15px;height:15px}.detail-stats strong{display:block;font-size:32px;letter-spacing:-.055em;margin:9px 0 3px;line-height:1.3}.detail-stats small{font-size:10px;color:var(--subtle)}.vitals{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:17px;margin-top:15px}.vitals span{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:10px}.vitals .icon{width:14px;height:14px}.vitals strong{display:block;font-size:15px;margin:7px 0}.vitals meter{width:100%;height:5px;appearance:none;border:0;border-radius:8px;background:#2b4055;overflow:hidden}.vitals meter::-webkit-meter-bar{border:0;background:#2b4055;border-radius:8px}.vitals meter::-webkit-meter-optimum-value{background:#99dabc;border-radius:8px}.location-card{padding:18px;margin-top:15px}.coordinates{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:15px 0}.coordinates>div{background:#0e1a28;border:1px solid #273d54;border-radius:10px;padding:10px 11px}.coordinates span{display:block;color:var(--subtle);font-size:9px}.coordinates strong{display:block;font-size:15px;margin-top:4px;font-variant-numeric:tabular-nums}.development-line{border-top:1px solid var(--line);padding-top:12px;display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted)}.development-line strong{color:#c6ddef;font-weight:500;max-width:65%;text-align:right;overflow-wrap:anywhere}.inventory-panel{padding:14px}.inventory-panel>.helper{font-size:10px;margin-top:12px}.inventory{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:4px}.inventory>button{position:relative;aspect-ratio:1;min-width:0;padding:0;border-radius:6px;border:1px solid #31465c;background:#1b2a39;color:#a7bfd5;display:flex;align-items:center;justify-content:center;overflow:clip}.inventory .icon{width:17px;height:17px}.inventory small{position:absolute;bottom:1px;right:3px;font-size:7px;color:#e0eaf4}.inventory .hotbar{border-color:#45617b;background:#24384b}.inventory .held{border-color:#addaff;box-shadow:inset 0 0 0 1px #addaff}.panel{padding:17px;margin-top:18px}.panel>.section-heading{margin-top:0}.container-slots{display:grid;gap:5px;grid-template-columns:repeat(9,minmax(0,1fr))}.container-slots button{padding:8px 3px;min-height:48px;display:flex;flex-direction:column;align-items:center;gap:4px;background:var(--raised);border:1px solid #38546b;border-radius:8px;overflow-wrap:anywhere;font-size:8px}.container-slots .icon{width:16px;height:16px}.container-slots small{font-size:8px}
/* Forms */

input,select,textarea{background:#0d1927;color:var(--text);border:1px solid #314a64;border-radius:11px;padding:12px 13px;outline:none;min-height:46px;transition:border-color .15s}input::placeholder,textarea::placeholder{color:#6f879f;opacity:1}input:hover,select:hover,textarea:hover{border-color:#4a6a87}input:focus,select:focus,textarea:focus{border-color:#8ac7f6}input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--accent);padding:0}select{appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239bb4ca' stroke-width='1.7'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-size:16px;background-repeat:no-repeat}.field,.select-label{display:block;font-size:12px;font-weight:500;margin-bottom:18px}.field>input,.field>textarea,.field>select,.select-label>select{display:block;width:100%;margin-top:8px;font-size:13px}.field small{display:block;color:var(--muted);font-size:10px;font-weight:400;line-height:1.75;margin-top:7px}.field input[type=password]{letter-spacing:.03em}.form-error{font-size:12px;line-height:1.7;color:#ffbbc8;padding:11px 13px;border:1px solid #754653;border-radius:10px;background:#36232c;margin:12px 0}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:12px;cursor:pointer;margin:13px 0}.switch-row>span{flex:1}.switch-row small{display:block;color:var(--muted);font-size:10px;line-height:1.7;margin-top:5px}.switch-row input{appearance:none;position:relative;flex:0 0 35px;width:35px;height:21px;border-radius:20px;background:#334655;border:1px solid #526777;min-height:0;margin:0}.switch-row input:before{content:'';display:block;position:absolute;top:2px;left:2px;width:15px;height:15px;border-radius:50%;background:#becbd5;transition:transform .15s}.switch-row input:checked{background:#5489af;border-color:#7fb3d9}.switch-row input:checked:before{background:#e6f5ff;transform:translateX(14px)}.settings-group{background:#142235;border:1px solid #2c435c;border-radius:14px;margin:12px 0;overflow:clip}.settings-group>summary{display:flex;align-items:center;gap:11px;list-style:none;cursor:pointer;padding:17px}.settings-group>summary::-webkit-details-marker{display:none}.settings-group>summary>.icon{width:19px;color:#a6c6df}.settings-group>summary>div{flex:1;min-width:0}.settings-group>summary strong{display:block;font-size:12px;line-height:1.5}.settings-group>summary small{display:block;font-size:10px;color:#9eb7cf;margin-top:3px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chevron{width:14px!important;transition:transform .15s}.settings-group[open]>summary{border-bottom:1px solid #35516c}.settings-group[open]>summary .chevron{transform:rotate(180deg)}.settings-content{padding:17px}.settings-content>.field:last-child{margin-bottom:0}.settings-help{font-size:11px;margin:12px 0}.ore-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ore-choice{display:block;cursor:pointer;position:relative}.ore-choice input{position:absolute;opacity:0;pointer-events:none}.ore-choice>span{display:flex;align-items:center;gap:7px;border:1px solid #314b63;border-radius:10px;background:#102031;color:var(--muted);font-size:10px;padding:11px 8px}.ore-choice .icon{width:15px;height:15px}.ore-choice input:checked+span{background:#25445e;border-color:#81b6de;color:#e1f2ff}.ore-choice input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}.settings-danger{margin:28px 0}.settings-danger .helper{font-size:10px;margin-top:7px}.save-bar{position:fixed;bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 10px);left:50%;transform:translateX(-50%);z-index:25;display:flex;align-items:center;gap:12px;width:calc(100% - 28px);max-width:720px;padding:12px 14px;background:#17334b;border:1px solid #638fb0;border-radius:14px;box-shadow:0 8px 30px #0006}.save-bar>span{font-size:10px;flex:1}.save-bar .text-button{font-size:10px}.save-bar .button{font-size:11px;min-height:37px;padding:8px 12px}.dirty main{padding-bottom:175px}.category-fields{transition:opacity .15s}.category-fields:disabled{opacity:.42}.category-fields>.switch-row{margin-bottom:20px}.group-settings-summary{font-size:12px;color:#aac7de;line-height:1.75;margin:0 0 17px}.group-settings-sheet .notice{font-size:11px;margin:14px 0 19px}.group-settings-sheet .settings-content>.switch-row{padding-bottom:16px;margin-top:0;border-bottom:1px solid #2b445e}.group-settings-footer{position:sticky;bottom:-20px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:13px;background:#122033;border-top:1px solid #37516c;margin-top:20px;padding:14px 0 max(12px,env(safe-area-inset-bottom));box-shadow:0 -12px 20px #122033}.group-settings-footer>span{max-width:46%;font-size:10px;color:#a6bed2;line-height:1.65}.group-settings-footer>.button{font-size:12px;min-width:125px}
/* Modal scroll is separate from the locked background. */

dialog{color:var(--text);border:1px solid #3b526d;outline:0;background:#122033;box-shadow:0 22px 70px #0007}dialog::backdrop{background:#030912bd;backdrop-filter:blur(4px)}.sheet{position:fixed;inset:auto 8px 8px;margin:0 auto;width:calc(100% - 16px);max-width:570px;max-height:calc(100dvh - 16px);padding:20px;border-radius:20px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.sheet-handle{width:32px;height:3px;background:#4b6074;border-radius:8px;margin:-8px auto 15px}.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 21px}.sheet-heading h2{font-size:21px;line-height:1.3;letter-spacing:-.04em}.sheet-heading .overline{margin-bottom:5px}.sheet-heading .icon-button{width:34px;height:34px;border-radius:10px}.sheet-footer{border-top:1px solid var(--line);margin-top:18px;padding-top:16px;display:flex;justify-content:space-between;font-size:10px;color:var(--subtle)}.identity-row{display:flex;align-items:center;gap:12px;padding:15px;background:#1c3041;border:1px solid #304c64;border-radius:13px;margin-bottom:16px}.user-avatar{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#284a64;color:#c1e6ff;font-weight:700;font-size:13px;flex-shrink:0}.identity-row>div{flex:1;min-width:0}.identity-row strong{font-size:13px}.identity-row div>span{display:block;color:var(--muted);font-size:10px;margin-top:3px}.identity-row>.icon{width:16px;color:#9dc4df}.menu-row{display:flex;align-items:center;gap:13px;width:100%;min-height:58px;text-align:left;padding:14px 9px;background:none;border-radius:12px}.menu-row:hover{background:#20354b}.menu-row>.icon{width:19px;color:var(--muted)}.menu-row>span{font-size:13px}.menu-row small{display:block;font-size:10px;line-height:1.6;color:var(--muted);margin-top:4px}.advanced{border-top:1px solid var(--line);margin:18px 0;padding-top:8px}.advanced>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;padding:10px 0;color:var(--muted);font-size:12px}.advanced>summary .icon{width:14px}.advanced>summary::-webkit-details-marker{display:none}.confirm-dialog{position:fixed;inset:0;margin:auto;width:calc(100% - 32px);max-width:390px;max-height:calc(100dvh - 32px);padding:25px 22px;border-radius:20px;overflow:auto;text-align:center}.confirm-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:14px;background:#24435d;color:#b3defe;margin:0 auto 17px}.confirm-icon.danger{background:#4b2e39;color:#ffbcca}.confirm-icon .icon{width:23px;height:23px}.confirm-dialog h2{font-size:19px;letter-spacing:-.035em}.confirm-dialog>p{font-size:12px;line-height:1.8;color:var(--muted);margin:12px 0 23px}.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dialog-actions .button{font-size:12px;padding:11px 8px}.item-view-icon{display:flex;justify-content:center;color:var(--accent);margin:18px 0}.item-view-icon .icon{width:36px;height:36px}.item-title{font-size:15px;font-weight:650;overflow-wrap:anywhere}.item-id{font-size:10px;color:var(--subtle);margin-top:8px;overflow-wrap:anywhere}.item-count{font-size:12px;margin-top:14px;color:var(--muted)}.textarea-tools{display:flex;justify-content:flex-end;margin-top:6px}.textarea-tools .text-button{padding:3px 0;font-size:10px;color:#a7c9e4}.textarea-tools .icon{width:13px;height:13px}.full-editor[open]{display:flex;flex-direction:column;height:calc(100dvh - 16px);overflow:hidden;scrollbar-gutter:auto}.full-editor>.sheet-heading{flex-shrink:0;margin-bottom:14px}.full-editor textarea{flex:1;min-height:0;width:100%;resize:none;line-height:1.8;font-size:14px;background:#0b1725}.editor-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:14px;flex-shrink:0}.editor-footer>span{font-size:11px;color:var(--muted)}
/* Feed and chat */
.event-list{border-radius:15px;overflow:clip}.event-row{display:flex;align-items:flex-start;gap:11px;padding:15px;border-bottom:1px solid #283d50;text-align:left;width:100%;background:none}.event-row:last-child{border:0}.event-mark{display:flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:8px;background:#223644;color:#94b5cc;flex-shrink:0}.event-mark .icon{width:13px;height:13px}.event-mark.error{background:#432b36;color:var(--red)}.event-content{flex:1;min-width:0}.event-content p{font-size:11px;line-height:1.8;color:#c6d7e7;overflow-wrap:anywhere}.event-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:9px;color:var(--subtle);margin-top:7px}.event-meta strong{color:#92bbdc;font-weight:500;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.event-helper{margin-bottom:18px}.event-date{font-size:10px;padding:10px 15px;background:#172637;color:var(--muted);border-bottom:1px solid var(--line)}.chat-panel{border-radius:17px;overflow:clip}.chat-messages{min-height:260px;max-height:55dvh;overflow-y:auto;overscroll-behavior:contain;border-radius:0}.chat-messages .event-mark{display:none}.chat-messages .event-content p{font-size:13px;line-height:1.8;white-space:pre-wrap}.chat-messages .event-meta{justify-content:flex-end;margin-top:5px}.chat-composer{padding:13px;border-top:1px solid var(--line);background:#0f1e2e}.command-input{display:flex;gap:8px;align-items:center}.command-input>input{width:100%;flex:1;font-size:12px;min-height:45px}.command-input .icon-button{width:43px;height:43px;color:#a9dcff;background:#24445e;border:1px solid #426785;border-radius:11px}.chat-composer>.form-error{margin:10px 0 0}
/* Warehouse and registration */

.supply-guide{display:flex;align-items:flex-start;gap:12px;padding:18px;margin-bottom:22px}.supply-guide>.icon{width:24px;height:24px;color:var(--accent)}.supply-guide strong{font-size:13px}.supply-guide p{font-size:11px;line-height:1.8;margin-top:6px;color:var(--muted)}.supply-jobs{padding:5px 14px;border-radius:15px}.supply-jobs>.helper{padding:13px 0}.supply-job{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px;width:100%;padding:14px 0;background:none;text-align:left;border-bottom:1px solid var(--line)}.supply-job:last-child{border:0}.supply-job strong{font-size:12px}.supply-job span{font-size:10px;color:var(--accent)}.supply-job small{flex-basis:100%;font-size:10px;line-height:1.7;color:var(--muted)}.supply-status{border:1px solid #3b5b76;background:#163048;border-radius:15px;padding:17px;margin:16px 0}.supply-status strong{display:block;font-size:14px;margin:7px 0}.supply-status>.button{margin-top:12px;font-size:11px}.supply-status .helper{font-size:11px}.autoreg-intro{display:flex;align-items:flex-start;gap:13px;padding:18px;margin-bottom:20px}.autoreg-symbol{color:var(--accent)}.autoreg-intro strong{font-size:13px}.autoreg-intro p{font-size:11px;color:var(--muted);line-height:1.8;margin-top:7px}.autoreg-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:21px}.autoreg-stats>div{padding:15px 13px;border-radius:14px}.autoreg-stats strong{display:block;font-size:25px;letter-spacing:-.055em;line-height:1.4}.autoreg-stats span{font-size:10px;color:var(--muted)}.autoreg-list{display:grid;gap:15px}.autoreg-card{padding:18px}.autoreg-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}.autoreg-card h2{font-size:17px;letter-spacing:-.035em;line-height:1.4;margin-top:4px;overflow-wrap:anywhere}.autoreg-progress{display:block;width:100%;height:5px;margin:19px 0 9px;border:0;border-radius:8px;overflow:hidden;accent-color:#9bd5ff;background:#263d54}.autoreg-progress::-webkit-progress-bar{background:#263d54}.autoreg-progress::-webkit-progress-value{background:#9bd5ff;border-radius:8px}.autoreg-card>.helper{font-size:10px}.autoreg-stock{padding:11px 12px;border:1px solid #31584e;border-radius:10px;background:#143129;color:#acd7c5;font-size:11px;line-height:1.8;margin-top:13px}.autoreg-message{color:#e4c392;font-size:11px;line-height:1.8;border-left:2px solid #9a804d;padding-left:11px;margin:14px 0;overflow-wrap:anywhere}.autoreg-actions{display:flex;gap:9px;margin-top:16px}.autoreg-members{border-top:1px solid var(--line);margin-top:18px;padding-top:14px}.autoreg-members summary{font-size:11px;color:var(--muted);cursor:pointer}.autoreg-member{display:flex;align-items:center;flex-wrap:wrap;gap:7px 11px;border-top:1px solid var(--line);padding:12px 0;margin-top:8px}.autoreg-member .text-button{font-size:12px;padding:0}.autoreg-member span{margin-left:auto;color:var(--accent);font-size:10px}.autoreg-member small{flex-basis:100%;font-size:9px;color:var(--subtle)}.autoreg-empty{text-align:center;padding:30px 22px}.autoreg-empty>.icon{width:33px;height:33px;color:var(--accent);margin-bottom:15px}.autoreg-empty h2{font-size:17px;letter-spacing:-.03em}.autoreg-empty p{font-size:12px;color:var(--muted);line-height:1.8;margin:12px 0 22px}.autoreg-step{display:flex;align-items:center;gap:10px;margin:25px 0 17px}.autoreg-step span{font-size:10px;border:1px solid #3f6280;color:var(--accent);padding:4px 7px;border-radius:7px}.autoreg-step strong{font-size:12px}.autoreg-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}#autoregForm textarea{display:block;width:100%;resize:vertical;min-height:125px;max-height:260px;line-height:1.85;font-family:inherit;font-size:12px;scrollbar-width:none}#autoregForm textarea::-webkit-scrollbar{display:none}#autoregForm>.helper{font-size:10px;margin-top:15px}.nick-generator{display:flex;align-items:flex-end;gap:10px;margin:15px 0 10px}.nick-generator .field{flex:0 0 86px;margin:0}.nick-generator .button{flex:1;font-size:11px;min-height:47px;padding:10px;white-space:normal;line-height:1.5}#nicknameStatus{color:var(--accent);font-size:11px;line-height:1.8;margin:10px 0 14px}
.account-profile-info{padding:17px}.account-profile-row{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:12px 0;font-size:11px;color:var(--muted)}.account-profile-row:last-child{border:0}.account-profile-row>strong{color:var(--text);max-width:65%;text-align:right;font-weight:550;overflow-wrap:anywhere}
/* Floating navigation and service states */
.bottom-nav{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(9px + env(safe-area-inset-bottom));z-index:30;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:calc(100% - 24px);max-width:620px;min-height:65px;padding:7px 5px;background:#122033f5;border:1px solid #34506a;border-radius:19px;box-shadow:0 8px 30px #0006;backdrop-filter:blur(16px)}.bottom-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:3px;color:#8da6be;background:none;border-radius:12px;font-size:9px;font-weight:550}.bottom-nav button>span:first-child{display:flex;align-items:center;justify-content:center;height:27px;width:42px;border-radius:10px}.bottom-nav .icon{width:19px;height:19px}.bottom-nav [aria-current=page]{color:#b6e3ff}.bottom-nav [aria-current=page]>span:first-child{background:#264861}.toast{position:fixed;bottom:calc(90px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:100;display:flex;align-items:center;gap:9px;background:#1c3b55;color:#e6f4ff;border:1px solid #6085a5;border-radius:13px;box-shadow:0 8px 25px #0005;padding:12px 15px;max-width:calc(100% - 32px);width:max-content;font-size:12px;line-height:1.6}.toast .icon{width:17px;height:17px}.toast.error{background:#442d37;border-color:#875262;color:#ffcfda}.gate{min-height:100dvh;padding:36px 25px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:#090f18}.gate img{width:65px;height:65px;border-radius:16px}.wordmark{font-size:18px;font-weight:700;letter-spacing:-.04em;margin-top:14px}.gate h1{font-size:30px;letter-spacing:-.055em;line-height:1.3;margin:30px 0 16px}.gate>p{color:var(--muted);font-size:13px;line-height:1.8;max-width:330px}.gate>.button{margin-top:23px}.gate-foot{display:flex;align-items:center;gap:6px;margin-top:38px;color:var(--subtle);font-size:10px}.gate-foot .icon{width:13px;height:13px}

@media(min-width:650px){main{padding:28px 28px 115px}.app-header{padding:0 max(28px,calc((100% - 744px)/2))}.account-list:not(.grouped-list){grid-template-columns:repeat(2,minmax(0,1fr))}.sheet{inset:24px 0 auto;max-height:calc(100dvh - 48px);padding:24px;border-radius:22px}.group-settings-footer{bottom:-24px}.full-editor[open]{height:calc(100dvh - 48px)}.page-heading h1{font-size:34px}.fleet-tools{grid-template-columns:1fr auto auto;align-items:end}.fleet-tools>label{grid-column:auto}.scope-card{padding:21px}.scope-card .category-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.detail-stats strong{font-size:36px}.sheet .account-list{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}



.create-category-button{margin:0 0 14px;min-height:46px;border-style:dashed}#categoryImportForm textarea{min-height:240px;resize:vertical;font-family:ui-monospace,Consolas,monospace;font-size:13px;line-height:1.8}

#categoryImportForm textarea{max-height:260px;scrollbar-width:none}#categoryImportForm textarea::-webkit-scrollbar{display:none}
