/* Dashboard presentation. Theme accents and Minecraft assets are shared with style.css. */
.workspace-look>summary { display:flex; align-items:center; gap:12px; cursor:pointer; list-style:none; min-height:32px; font-size:14px; }
.workspace-look>summary::-webkit-details-marker { display:none; }
.workspace-look>summary>span:first-child { display:flex; align-items:center; gap:10px; font-weight:600; }
.workspace-look>summary>svg { width:16px; color:var(--muted); }
.workspace-look[open]>summary>svg { transform:rotate(180deg); }
.direction-summary { margin-left:auto; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.direction-expanded { padding-top:16px; }
body .workspace-main>.workspace-look { padding:12px 20px; }
body .workspace-look .direction-layout { grid-template-columns:160px minmax(0,1fr); gap:20px; }
body .workspace-look .direction-pad { height:150px; }
body .workspace-look .direction-controls { gap:12px; }
body .workspace-look .direction-description { font-size:12px; margin:0 0 12px; }
body .workspace-look .direction-status { margin-top:12px; padding-top:10px; font-size:11px; }
.workspace-vital-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
.workspace-vital-grid>div { display:grid; grid-template-columns:1fr auto; align-items:center; }
.workspace-vital-grid strong { margin:0; }
.minecraft-hearts, .workspace-hunger { display:flex; flex-wrap:nowrap; gap:0; margin-top:8px; grid-column:1/-1; }
.heart-pip, .workspace-hunger .hunger-pip { display:block; flex:none; width:18px; height:18px; image-rendering:pixelated; background-position:center; background-size:18px 18px; background-repeat:no-repeat; }
.heart-pip { background-image:url('assets/hud/heart_container.png'); }
.heart-pip.full { background-image:url('assets/hud/hardcore_full.png'),url('assets/hud/heart_container.png'); }
.heart-pip.half { background-image:url('assets/hud/hardcore_half.png'),url('assets/hud/heart_container.png'); }
body .workspace-panel.workspace-chat { padding:0; overflow:hidden; }
.workspace-chat .workspace-section-title { padding:18px 20px; margin:0; border-bottom:1px solid var(--ui-line); }
.workspace-chat .command-description { padding:10px 20px; margin:0; font-size:12px; }
.chat-live-badge { display:flex; gap:6px; align-items:center; color:var(--muted); font-size:12px; }
.chat-live-badge>span { width:6px; height:6px; border-radius:50%; background:#8be6b1; }
.chat-live-badge.offline>span { background:var(--muted); }
.session-chat-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; justify-content:flex-end; }
.session-chat-clear { display:inline-flex; align-items:center; gap:7px; min-height:36px; white-space:nowrap; }
.session-chat-clear svg { width:14px; height:14px; }
.chat-feed { position:relative; }
body .workspace-chat .command-history.minecraft-chat { border:0; border-radius:0; height:420px; min-height:280px; max-height:65vh; padding:12px 20px 20px; background:#101011; overflow-y:auto; overscroll-behavior:contain; white-space:normal; scrollbar-width:thin; }
body .minecraft-chat-line { display:flex; align-items:baseline; gap:12px; padding:6px 0; border:0; background:transparent; line-height:1.7; }
body .minecraft-chat-line time { width:auto; min-width:56px; flex-shrink:0; color:#9a969f; font:11px var(--font); }
body .minecraft-chat-line>span { color:#fff; font:12px/1.8 Monocraft,monospace; overflow-wrap:anywhere; min-width:0; white-space:pre-wrap; text-shadow:1px 1px #000; }
.mc-run { font-weight:400; font-style:normal; text-decoration:none; }
.mc-bold { font-weight:700; }.mc-italic { font-style:italic; }.mc-underlined { text-decoration:underline; }.mc-strikethrough { text-decoration:line-through; }.mc-underlined.mc-strikethrough { text-decoration:underline line-through; }
body .minecraft-chat-line.sent>span { color:var(--muted); font:12px var(--font); text-shadow:none; }
.chat-jump { position:absolute; bottom:12px; left:50%; transform:translateX(-50%); box-shadow:0 3px 12px #0008; white-space:nowrap; background:var(--panel)!important; font-size:12px; }
.chat-jump[hidden] { display:none; }
body .workspace-chat .command-form { display:flex; gap:10px; padding:16px 20px 10px; margin:0; border-top:1px solid var(--ui-line); background:var(--ui-surface); }
body .workspace-chat .command-form input { flex:1; min-width:0; font-size:14px; background:var(--ui-inset); }
.workspace-chat .command-form button { width:auto; min-width:84px; height:44px; flex:0 0 auto; padding:8px 14px; white-space:nowrap; }
.command-feedback { min-height:24px; margin:0; padding:0 20px 10px; font-size:12px; }
@media(max-width:600px){body .workspace-look .direction-layout { grid-template-columns:1fr; }.workspace-chat .command-form button { font-size:0; width:44px; min-width:44px; padding:0; }.workspace-chat .command-form button svg { width:18px; }body .workspace-chat .command-history.minecraft-chat { padding:10px 14px; height:380px; }body .minecraft-chat-line { gap:8px; }body .minecraft-chat-line time { font-size:10px; min-width:44px; }body .minecraft-chat-line>span { font-size:11px; }body .workspace-chat .command-form input { font-size:16px; }.direction-summary { font-size:11px; } }
.direction-description { font-size: 14px; margin: -4px 0 20px; }
.direction-layout { display: grid; grid-template-columns: minmax(190px, .85fr) minmax(240px, 1.15fr); gap: 24px; }
.direction-aim { min-width: 0; }
.direction-pad { position: relative; height: 200px; overflow: hidden; touch-action: none; cursor: crosshair; border: 1px solid var(--ui-line); border-radius: 8px; background: var(--ui-inset); user-select: none; --aim-x: 50%; --aim-y: 50%; }
.direction-pad:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.direction-pad-up, .direction-pad-down { position: absolute; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); pointer-events: none; }
.direction-pad-up { top: 10px; }.direction-pad-down { bottom: 10px; }
.direction-cross { position: absolute; background: var(--ui-line); pointer-events: none; }
.direction-cross.horizontal { top: 50%; left: 12px; right: 12px; height: 1px; }
.direction-cross.vertical { left: 50%; top: 12px; bottom: 12px; width: 1px; }
.direction-stick { position: absolute; left: clamp(15px,var(--aim-x),calc(100% - 15px)); top: clamp(15px,var(--aim-y),calc(100% - 15px)); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--accent); background: var(--raised); transform: translate(-50%,-50%); pointer-events: none; display: grid; place-items: center; }
.direction-stick>span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.direction-aim>small { display: block; font-size: 11px; color: var(--muted); margin-top: 8px; text-align: center; }
.direction-controls { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.direction-presets { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; }
.direction-presets button { min-width: 0; min-height: 36px; font-size: 12px; padding: 6px 4px; background: transparent; }
.direction-presets button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--raised); }
.direction-angles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.direction-angles label { font-size: 13px; }.direction-angles label>span { display: block; color: var(--muted); font-size: 11px; margin: 3px 0 6px; }
.direction-angles input { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; background: var(--ui-inset); font-variant-numeric: tabular-nums; }
.direction-submit { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.direction-submit button { font-size: 12px; padding: 8px 10px; }
.direction-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 16px; margin-top: 20px; border-top: 1px solid var(--ui-line); font-size: 12px; color: var(--muted); }
.direction-feedback { color: var(--ui-secondary); }
@media(max-width:1100px) { .direction-layout { grid-template-columns: 1fr; gap: 20px; }.direction-pad { height: 180px; }.direction-submit button { flex: 1; } }
@media(max-width:600px) { .direction-presets button, .direction-submit button { min-height: 44px; }.direction-angles input { font-size: 16px; min-height: 44px; } }
body {
  --ui-surface: color-mix(in srgb, var(--accent) 3%, #151516);
  --ui-inset: #101011;
  --ui-line: color-mix(in srgb, var(--accent) 8%, #303033);
  --ui-secondary: #b9b7bd;
  --ui-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
}
body:not([data-theme]), body[data-theme="crimson"] {
  --bg: #0d0d0d;
  --side: #111112;
  --panel: #171516;
  --raised: #23191c;
  --border: #383034;
  --accent: #ff738b;
  --muted: #b4acb0;
}
body[data-theme] {
  --side: color-mix(in srgb, var(--accent) 2%, #111112);
  --panel: var(--ui-surface);
  --border: var(--ui-line);
  --raised: color-mix(in srgb, var(--accent) 7%, #202023);
}
button, input, select, textarea { border-radius: 6px; }
button { min-height: 38px; font-size: 14px; font-weight: 600; }
button:active:not(:disabled) { filter: brightness(.9); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, .account-card:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
body .primary { background: #eb0029; border: 1px solid #eb0029; color: white; box-shadow: none; }
body .primary:hover { background: #cc0024; border-color: #ff738b; }
body .secondary { border-color: var(--ui-line); background: transparent; }
body .secondary:hover { background: var(--raised); border-color: var(--muted); }
.icon-button { width: 38px; height: 38px; min-width: 38px; padding: 9px; }
.switch { min-height: 0; height: 22px; width: 38px; border-radius: 4px; }
.switch:after { width: 14px; height: 14px; top: 3px; left: 3px; }
.switch[aria-checked="true"]:after { left: 19px; }
.small { font-size: 13px; }
body .sidebar { width: 224px; padding: 28px 16px 18px; background: var(--side); border-color: var(--ui-line); }
.brand { font-size: 20px; gap: 10px; }
.brand small { font-size: 11px; letter-spacing: 0; }
.brand-light { color: var(--text); }
body .workspace { margin: 28px 0 24px; padding: 12px; background: transparent; border-color: var(--ui-line); }
.workspace-icon { background: var(--raised); color: var(--accent); border-color: var(--ui-line); }
.nav-label { font-size: 12px; color: var(--muted); padding-left: 12px; }
nav a { min-height: 44px; font-size: 14px; padding: 10px 12px; gap: 12px; margin: 4px 0; }
body nav a.active { background: var(--raised); color: var(--text); box-shadow: none; }
nav a.active:before { left: -16px; top: 12px; height: 20px; width: 3px; }
nav a.active svg { color: var(--accent); }
.nav-count { font: 12px/1.7 var(--font); background: var(--ui-inset); color: var(--ui-secondary); }
nav a:last-child { margin-top: 24px; }
body .demo-note { border: 0; border-top: 1px solid var(--ui-line); border-radius: 0; padding: 16px 0 0; font-size: 12px; margin: 0 4px 20px; }
.demo-note small { font-size: 12px; line-height: 1.5; }
.profile { padding: 16px 4px 0; font-size: 13px; border-color: var(--ui-line); }
.profile small { font-size: 12px; }
.shell { margin-left: 224px; }
body .topbar { height: 64px; padding: 0 32px; background: var(--bg); border-color: var(--ui-line); gap: 16px; }
.breadcrumb { font-size: 13px; gap: 12px; }
.preview-tag { font-size: 12px; }
.topbar-right { margin-left: auto; gap: 14px; }
#live-signout { font-size: 12px; padding: 6px 10px; }
main { padding: 32px; max-width: 1440px; }
h1 { font-size: 28px; font-weight: 650; letter-spacing: -.6px; line-height: 1.25; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 16px; }
.page-heading { gap: 24px; margin-bottom: 28px; align-items: flex-start; }
.page-heading p { font-size: 14px; margin-top: 8px; max-width: 60ch; }
.heading-actions { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.heading-actions button { white-space: nowrap; }
body .hero { height: auto; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; background: var(--ui-surface); border-color: var(--ui-line); border-radius: var(--ui-radius); }
.hero:before { display: none; }
.hero-content { padding: 0; max-width: none; }
.hero .hero-eyebrow { font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 3px; display: flex; gap: 8px; }
.hero-eyebrow svg { color: var(--accent); width: 16px; }
.hero p { font-size: 13px; line-height: 1.5; max-width: none; }
.hero .hero-status { position: static; font: 13px var(--font); background: var(--ui-inset); border: 1px solid var(--ui-line); padding: 7px 10px; border-radius: 5px; color: var(--ui-secondary); white-space: nowrap; }
.stats-row { gap: 16px; margin: 20px 0 28px; }
body .stat { padding: 20px; background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--ui-radius); }
.stat-top { font-size: 13px; color: var(--ui-secondary); }
.stat-top svg { width: 17px; color: var(--muted); }
.stat-number { font: 600 32px/1.2 var(--font); letter-spacing: -.6px; margin: 14px 0 8px; font-variant-numeric: tabular-nums; }
.stat-foot, .stat-foot.neutral { font-size: 12px; color: var(--ui-secondary); }
.lower-grid { gap: 20px; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
body .panel { background: var(--ui-surface); border-color: var(--ui-line); border-radius: var(--ui-radius); box-shadow: none; }
.panel-header { min-height: 62px; padding: 18px 20px; border-color: var(--ui-line); }
.panel-header h2 { font-size: 16px; gap: 10px; }
.text-button { font-size: 13px; }
.health-body { padding: 20px; }
.health-line { font-size: 13px; }
.health-line strong { font-size: 13px; }
.health-foot { font-size: 12px; gap: 16px; }
.health-foot span:last-child { color: var(--muted); }
.activity-row { padding: 18px 20px; gap: 12px; font-size: 14px; border-color: var(--ui-line); }
.activity-detail, .activity-time { font-size: 12px; }
.tools { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.search { flex: 1; max-width: 360px; padding: 0 12px; min-height: 42px; background: var(--ui-inset); border-color: var(--ui-line); }
.search input { padding: 10px 0; font-size: 14px; background: transparent; }
.filter-select { min-height: 42px; padding: 8px 12px; font-size: 14px; background: var(--ui-inset); border-color: var(--ui-line); }
.account-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 20px; align-items: stretch; }
body .account-card { display: flex; flex-direction: column; min-width: 0; background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--ui-radius); box-shadow: none; transition: border-color .15s ease; }
body .account-card:hover { transform: none; background: var(--ui-surface); border-color: var(--muted); box-shadow: none; }
.account-head { padding: 20px 20px 16px; gap: 12px; }
.account-head>div:nth-child(2) { min-width: 0; flex: 1; }
.account-name { font-size: 17px; overflow-wrap: anywhere; letter-spacing: -.2px; }
.account-card .account-caption { font-size: 12px; text-transform: none; letter-spacing: 0; margin-top: 3px; }
.skin-wrap { flex-shrink: 0; }
.account-head .skin { width: 44px; height: 44px; border: 1px solid var(--ui-line); border-radius: 5px; box-shadow: none; }
.account-head>.status-pill { margin-left: auto; flex-shrink: 0; font-size: 12px; padding: 3px 8px; }
.account-head .account-remove { width: 32px; height: 36px; min-width: 32px; padding: 7px; margin-right: -8px; color: var(--muted); }
.account-remove svg { width: 15px; }
.account-body { flex: 1; padding: 0 20px 20px; }
.server-row { font-size: 13px; gap: 8px; }
.server-row svg { width: 16px; }
.server-badge { color: var(--muted); background: transparent; border-color: var(--ui-line); font-size: 11px; }
.account-metrics { margin-top: 20px; padding-top: 16px; border-color: var(--ui-line); gap: 12px; grid-template-columns: 1fr .85fr 1.15fr; }
.account-metrics>div, .account-metrics>div+div { padding: 0; border: 0; }
.metric-label { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.metric-value { font-size: 16px; font-weight: 550; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.offline-info { min-height: 74px; padding-top: 20px; font-size: 13px; line-height: 1.6; color: var(--ui-secondary); }
.offline-info svg { width: 16px; }
.account-preference { padding: 12px 20px; font-size: 13px; border-color: var(--ui-line); }
.account-preference small { font-size: 12px; }
body .account-card .account-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 20px 16px; background: transparent; border-color: var(--ui-line); }
.account-card .account-actions>button { width: 100%; min-width: 0; padding: 8px; font-size: 12px; gap: 5px; margin: 0; }
.account-actions>button svg { width: 15px; height: 15px; }
.account-actions>.inspect-button { grid-column: 1 / -1; justify-content: space-between; min-height: 36px; padding: 8px 0 0; border: 0; border-top: 1px solid var(--ui-line); border-radius: 0; color: var(--ui-secondary); background: transparent; }
.account-actions>.inspect-button:hover { color: var(--accent); background: transparent; }
.account-actions:not(:has([data-tab="inventory"]))>[data-tab="commands"] { grid-column: span 2; }
/* Connection state uses the same semantics in every colour theme. */
body .status-pill { color: #89e2b2; background: #15271e; border: 1px solid #2b4d3a; font-size: 12px; border-radius: 4px; }
body .status-pill.offline, body .status-pill.unknown { color: #bbb7be; background: #252327; border-color: #444047; }
body .status-pill.connecting { color: #f3cf86; background: #2d2718; border-color: #62512b; }
.status-dot.online, .status-pill:not(.offline):not(.unknown):not(.connecting) .status-dot { background: #89e2b2; }
body .sellaxe-gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 360px)); }
body .sellaxe-card { padding: 24px; gap: 20px; background: var(--ui-surface); border-color: var(--ui-line); border-radius: var(--ui-radius); box-shadow: none; }
.sellaxe-card-icon { background: var(--raised); border-color: var(--ui-line); border-radius: 6px; }
.sellaxe-network { font-size: 12px; color: var(--muted); }
.sellaxe-card>.sellaxe-card-description { font-size: 14px; line-height: 1.6; color: var(--ui-secondary); }
.sellaxe-card-summary { border-color: var(--ui-line); padding: 16px 0; }
.sellaxe-card-summary>div+div { border-color: var(--ui-line); }
.sellaxe-card-summary span, .sellaxe-card-summary strong small { font-size: 12px; color: var(--muted); }
.sellaxe-card-summary strong { font-size: 14px; color: var(--text); }
.sellaxe-account-field>label { font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ui-secondary); }
.sellaxe-card .sellaxe-account-select { background: var(--ui-inset); border-color: var(--ui-line); min-height: 44px; }
.sellaxe-card .sellaxe-account-select select { font-size: 14px; color: var(--text); }
.sellaxe-card-footer>.live-automation-status { font-size: 12px; max-width: 180px; color: var(--ui-secondary); }
.sellaxe-card-footer>button { min-height: 40px; font-size: 13px; background: transparent; border-color: var(--ui-line); }
.sellaxe-gallery-note { font-size: 12px; color: var(--muted); max-width: 360px; }
body .settings-panel { padding: 28px; }
.settings-panel>p, .switch-row p { font-size: 14px; line-height: 1.6; }
.settings-nav button { min-height: 44px; font-size: 14px; }
.settings-nav button.active { color: var(--accent); }
.settings-save { border-color: var(--ui-line); gap: 12px; }
.settings-save span { font-size: 12px; }
.theme-choice { font-size: 14px; }
label, .form-field label { font-size: 14px; }
.form-field input, .form-field select, .form-field textarea { min-height: 44px; font-size: 15px; }
.form-field small, .field-hint { font-size: 13px; }
.modal-header, .modal-footer { border-color: var(--ui-line); }
body dialog { background: var(--ui-surface); border-color: var(--ui-line); border-radius: 10px; box-shadow: 0 24px 80px #0008; }
.modal-header { padding: 20px 24px; }
.modal-body { padding: 24px; font-size: 15px; }
.modal-footer { padding: 16px 24px; }
body .sellaxe-dialog .modal-header, body .sellaxe-dialog .modal-footer { background: var(--ui-surface); border-color: var(--ui-line); }
.sellaxe-dialog .form-field label, .sellaxe-option-panel>.switch-row strong { font-size: 14px; }
.sellaxe-dialog .form-field small, .sellaxe-option-panel>.switch-row p, .sellaxe-intro { font-size: 13px; }
.sellaxe-option-panel { background: var(--ui-inset); border-color: var(--ui-line); }
.sellaxe-dialog .form-field select, .sellaxe-dialog .form-field input { background: var(--ui-surface); border-color: var(--ui-line); font-size: 15px; }
body .workspace-top { height: 60px; padding: 0 28px; background: var(--side); border-color: var(--ui-line); }
.workspace-shell { max-width: 1440px; padding: 28px; }
.workspace-hero { margin-bottom: 24px; }
.workspace-identity h1 { font: 650 28px/1.2 var(--font); letter-spacing: -.5px; }
.workspace-identity p { font-size: 13px; }
body .workspace-identity>.skin { width: 60px; height: 60px; border-radius: 6px; box-shadow: none; border: 1px solid var(--ui-line); }
.workspace-eyebrow { font-size: 11px; letter-spacing: .5px; }
body .workspace-summary { background: var(--ui-surface); border-color: var(--ui-line); border-radius: var(--ui-radius); margin-bottom: 24px; }
.workspace-stat { padding: 18px 20px; border-color: var(--ui-line); gap: 12px; }
.workspace-stat span { font-size: 12px; }
.workspace-stat strong { font: 600 22px/1.4 var(--font); }
.workspace-stat .ping-value { font-size: 22px; }
.workspace-tabs { margin-bottom: 20px; border-color: var(--ui-line); }
.workspace-tabs button { min-height: 44px; font-size: 14px; padding: 10px 16px; }
.account-workspace .workspace-body { gap: 20px; grid-template-columns: minmax(0, 1fr) 288px; }
body .workspace-panel { padding: 20px; background: var(--ui-surface); border-color: var(--ui-line); border-radius: var(--ui-radius); }
.workspace-main, .workspace-rail { gap: 20px; }
.workspace-section-title { margin-bottom: 16px; }
.workspace-section-title h3 { font: 600 15px var(--font); letter-spacing: 0; text-transform: none; }
.workspace-section-title>span, .workspace-section-title small { font-size: 12px; }
.workspace-connection .detail-list, .workspace-coordinates { font-size: 13px; }
.workspace-connection .detail-list>div { padding: 12px 0; }
.workspace-manage { font-size: 12px; gap: 10px; }
.workspace-chat .command-history { font-size: 13px; min-height: 220px; }
.workspace-chat .command-form input { min-height: 44px; font-size: 14px; }
.inventory-hotbar-toolbar label { font-size: 12px; }
.inventory-hotbar-toolbar select { font-size: 13px; min-height: 38px; }
.workspace-inventory .inventory-nine { max-width: 680px; }
.inventory-live-notice { font-size: 13px; }
.footer { padding: 20px 32px; font-size: 12px; border-color: var(--ui-line); }
body.compact .account-head { padding-top: 16px; padding-bottom: 12px; }
body.compact .account-body { padding-bottom: 12px; }
body.compact .account-metrics { margin-top: 12px; padding-top: 12px; }
@media (min-width: 1440px) { .account-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .page-heading { flex-direction: column; gap: 16px; }
  .heading-actions { justify-content: flex-start; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lower-grid { grid-template-columns: 1fr; }
  .account-workspace .workspace-body { grid-template-columns: minmax(0, 1fr) 260px; }
  .workspace-stat { padding: 16px; }
}
@media (max-width: 900px) {
  body .sidebar { width: 224px; transform: translateX(-100%); visibility: hidden; }
  body .sidebar.open { transform: translateX(0); visibility: visible; }
  .shell { margin-left: 0; }
  .mobile-menu { display: inline-flex; }
  .account-workspace .workspace-body { grid-template-columns: 1fr; }
  .workspace-rail { display: grid; grid-template-columns: 1fr 1fr; }
  .workspace-manage { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  main { padding: 24px 16px; }
  body .topbar { padding: 0 16px; gap: 8px; }
  .topbar-right { gap: 8px; }
  .topbar .top-divider, .top-avatar, .topbar .breadcrumb>svg, .breadcrumb>span:not(.slash) { display: none; }
  .breadcrumb { gap: 8px; }
  .preview-tag { font-size: 11px; }
  #live-signout { padding: 6px 8px; font-size: 11px; }
  h1 { font-size: 25px; }
  .heading-actions { width: 100%; gap: 8px; }
  .heading-actions button { min-height: 44px; font-size: 13px; padding: 10px; flex: 1; }
  .heading-actions .secondary { display: inline-flex; }
  .heading-actions button svg { width: 15px; }
  .page-heading { margin-bottom: 24px; }
  body .hero { align-items: flex-start; flex-direction: column; gap: 12px; padding: 16px; }
  .stats-row { gap: 12px; margin: 16px 0 24px; }
  body .stat { padding: 16px; }
  .stat-top { font-size: 12px; }
  .stat-top svg { display: none; }
  .stat-number { font-size: 28px; }
  .tools { gap: 8px; }
  .search { min-width: 0; }
  .search input { min-width: 0; width: 100%; font-size: 16px; }
  .filter-select { max-width: 145px; font-size: 14px; }
  .account-grid { grid-template-columns: 1fr; gap: 16px; }
  .account-head, .account-body { padding-left: 16px; padding-right: 16px; }
  .account-preference { padding: 12px 16px; }
  body .account-card .account-actions { padding: 12px 16px 16px; }
  .account-actions>button { min-height: 44px; }
  .account-head .account-remove { width: 36px; min-width: 36px; height: 44px; }
  .account-head { gap: 10px; }
  .account-name { font-size: 16px; }
  .account-caption { font-size: 11px; }
  .account-head>.status-pill { font-size: 11px; padding: 3px 6px; }
  .account-head .skin { width: 40px; height: 40px; }
  body .settings-panel { padding: 20px; }
  .settings-layout { min-width: 0; }
  .settings-nav { overflow-x: auto; padding: 3px; gap: 4px; }
  .settings-nav button { font-size: 13px; padding: 8px 12px; }
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; }
  body .sellaxe-gallery { grid-template-columns: 1fr; }
  body .sellaxe-card { padding: 20px; }
  .sellaxe-card .sellaxe-account-select select { font-size: 16px; }
  body .workspace-top { padding: 0 16px; }
  .workspace-shell { padding: 24px 16px; }
  .workspace-identity h1 { font-size: 24px; }
  .workspace-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-stat { padding: 16px; }
  .workspace-stat strong { font-size: 19px; }
  .workspace-rail { grid-template-columns: 1fr; }
  .workspace-tabs button { font-size: 13px; min-height: 44px; }
  .workspace-panel { min-width: 0; }
  .workspace-inventory .inventory-nine { gap: 3px; }
  .workspace-inventory .live-item-count { font-size: 10px; }
  .inventory-hotbar-toolbar { gap: 8px; }
  .inventory-hotbar-toolbar select { max-width: 170px; min-height: 44px; }
  .footer { padding: 16px; flex-wrap: wrap; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; }
}

/* Server sessions share a saved identity, never runtime controls. */
.session-selector{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid var(--ui-line);margin-bottom:20px}
.session-choice{display:flex;align-items:center;gap:9px;min-height:44px;padding:10px 14px;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-inset);color:var(--text);text-align:left;cursor:pointer}
.session-choice.active{border-color:var(--accent);box-shadow:inset 0 -2px var(--accent)}
.session-choice small{color:var(--muted);font-size:12px;margin-left:auto}
.account-sessions{display:grid;gap:6px;padding:0 18px 12px}.account-sessions .session-choice{width:100%}
.workspace-manage{display:flex;flex-wrap:wrap;gap:12px}
@media(max-width:600px){.session-selector .session-choice{flex:1 1 140px}.session-selector>.secondary{width:100%}}

.scheduled-command-card .sellaxe-card-icon svg{width:24px;height:24px;color:var(--accent)}
.scheduled-interval{display:grid;grid-template-columns:1fr 1fr;gap:16px}.scheduled-enabled{display:flex;align-items:center;gap:12px;min-height:44px;font-size:14px}.scheduled-enabled input{width:18px;height:18px;accent-color:var(--accent)}.scheduled-form-error{color:#ff8a9c;font-size:14px;min-height:20px}.scheduled-command-status{overflow-wrap:anywhere}

#scheduled-command-form .modal-actions,#auto-eat-form .modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 20px;border-top:1px solid var(--ui-line)}
.scheduled-command-input{display:flex;align-items:center;gap:10px}.scheduled-command-input input{flex:1;min-width:0}.scheduled-command-input button{flex:none;min-height:44px;white-space:nowrap}.scheduled-test-feedback{min-height:20px;margin:6px 0 0;font-size:13px;color:var(--muted)}
@media(max-width:600px){.scheduled-command-input{align-items:stretch;flex-direction:column}.scheduled-command-input button{justify-content:center}}

/* Server artwork supplied by the workspace owner. */
.server-logo{display:inline-block;width:20px;height:20px;flex:0 0 20px;object-fit:contain;vertical-align:middle}
.server-tile .server-logo{width:30px;height:30px;flex-basis:30px}
.session-choice .server-logo,.sellaxe-network .server-logo{width:16px;height:16px;flex-basis:16px}
.workspace-identity p .server-logo{margin-right:7px}
.scheduled-command-icon{width:24px;height:24px;object-fit:contain;vertical-align:middle;margin-right:8px;image-rendering:pixelated}
.minecraft-money{color:#55ff55;font-family:Monocraft,monospace;font-size:1em;white-space:nowrap}
.donut-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid var(--ui-line)}
.donut-metrics>div{min-width:0}.donut-metrics small{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;min-height:24px;margin-bottom:10px}
.donut-metrics img{width:24px;height:24px;object-fit:contain;image-rendering:pixelated}
.donut-metrics strong{font-size:18px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.donut-stats-age{grid-column:1/-1;color:var(--muted);font-size:12px;margin:4px 0 0}
body .account-metrics.donut-connection-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
body .workspace-summary:has(.donut-metrics){grid-template-columns:repeat(2,minmax(0,1fr))}
.workspace-summary>.donut-metrics{grid-column:1/-1;margin:0;padding:22px 24px;row-gap:16px}
.workspace-summary>.donut-metrics small{font-size:14px;min-height:30px}
.workspace-summary>.donut-metrics img{width:30px;height:30px}
.workspace-summary>.donut-metrics strong{font-size:28px}
.workspace-summary .workspace-stat small{font-size:14px}
.workspace-summary .workspace-stat>svg{width:22px;height:22px}
@media(max-width:600px){.workspace-summary>.donut-metrics{padding:18px 16px;gap:12px}.workspace-summary>.donut-metrics strong{font-size:20px}.workspace-summary>.donut-metrics small{font-size:13px;min-height:24px}.workspace-summary>.donut-metrics img{width:24px;height:24px}.donut-metrics{gap:8px}.donut-metrics small{font-size:12px}.workspace-summary .workspace-stat small{font-size:13px}}
@supports(appearance:base-select){
  select:has(selectedcontent){min-height:44px}
  select:has(selectedcontent)>button{background:none;border:0;border-radius:0;padding:0;box-shadow:none;justify-content:flex-start;color:inherit}
  select selectedcontent{display:flex;align-items:center;gap:8px;min-width:0}
  select option:has(.server-logo){display:flex;align-items:center;gap:8px;min-height:44px}
  select .server-logo{width:20px;height:20px;flex:0 0 20px}
  .sellaxe-account-select option{display:flex;align-items:center;gap:10px;min-height:44px}
  .sellaxe-account-select selectedcontent{width:100%;overflow:hidden}
  .sellaxe-account-select selectedcontent>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sellaxe-account-select select .skin{width:25px;height:25px;flex:0 0 25px;image-rendering:pixelated}
}

.public-server-status { display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:600; }
.public-server-status.online { color:#8be6b1; }.public-server-status.offline { color:#f29aa9; }.public-server-status.unknown { color:var(--muted); }
.public-server-status .status-dot { background:currentColor; position:static; }
.public-player-count { display:block; margin-top:5px; color:var(--muted); font-size:11px; white-space:nowrap; }
.server-info-heading { display:flex; align-items:center; gap:12px; }.server-info-heading .server-logo { width:36px; height:36px; }
.server-motd { white-space:pre-line; padding:14px; border:1px solid var(--border); border-radius:6px; overflow-wrap:anywhere; }
.server-public-details { display:grid; gap:0; margin:20px 0; }.server-public-details>div { display:grid; grid-template-columns:130px minmax(0,1fr); gap:12px; padding:10px 0; border-bottom:1px solid var(--border); }
.server-public-details dt { color:var(--muted); font-size:12px; }.server-public-details dd { margin:0; font-size:12px; overflow-wrap:anywhere; }.server-info-link { margin-top:16px; }

.workspace-nearby .workspace-section-title { align-items:center; margin-bottom:10px; }
.nearby-subtitle { margin:5px 0 0; font-size:11px; color:var(--muted); font-weight:400; }
.nearby-count { display:grid; place-items:center; min-width:28px; height:28px; padding:0 8px; border:1px solid var(--border); border-radius:8px; background:var(--raised); color:var(--text); font-size:12px; font-variant-numeric:tabular-nums; }
.nearby-player-list { list-style:none; margin:0; padding:0; max-height:280px; overflow-y:auto; scrollbar-width:thin; }
.nearby-player-list li { display:flex; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid var(--border); min-width:0; }
.nearby-player-list li:last-child { border-bottom:0; }
.nearby-avatar { display:grid; place-items:center; position:relative; flex:none; width:38px; height:38px; border:1px solid var(--border); border-radius:6px; overflow:hidden; background:var(--raised); }
.nearby-avatar img { position:absolute; inset:2px; width:32px; height:32px; image-rendering:pixelated; border-radius:3px; }
.nearby-initials { font-size:11px; font-weight:650; color:var(--muted); }
.nearby-identity { min-width:0; flex:1; }.nearby-name { display:block; overflow:hidden; text-overflow:ellipsis; font-size:12px; font-weight:600; min-width:0; }
.nearby-distance { margin-left:auto; flex:none; min-width:45px; text-align:right; font-size:15px; font-weight:600; line-height:1.3; font-variant-numeric:tabular-nums; }.nearby-distance small { display:block; margin-top:3px; color:var(--muted); font-size:10px; font-weight:400; }
.nearby-empty { color:var(--muted); font-size:12px; margin:14px 0 0; line-height:1.6; }.nearby-caption { color:var(--muted); font-size:10px; line-height:1.6; margin:14px 0 0; }

.inventory-live-notice:has([data-action="inventory-recover"]) { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }

/* Minecraft-style experience meter, driven by the server experience packet. */
body .workspace-experience { display:grid; grid-template-columns:1fr; gap:10px; margin:24px 0 19px; }
body .experience-label { grid-area:1/1; align-self:center; justify-self:start; color:var(--muted); font-size:11px; }
body .experience-level { grid-area:1/1; justify-self:center; color:#80ff20; font-size:18px; line-height:1; text-shadow:2px 2px #163500; font-weight:400; }
.minecraft-experience-bar { position:relative; grid-column:1/-1; width:100%; height:10px; background:url('assets/hud/experience_background.png') center/100% 100% no-repeat; image-rendering:pixelated; }
.minecraft-experience-bar>svg { display:block; width:100%; height:100%; }
body .profile img, body .top-avatar, body .dashboard-profile-image { image-rendering:auto; object-fit:cover; border-radius:8px; }
body .dashboard-profile-image { width:36px; height:36px; }

/* Compact facing component, adapted from the supplied facing-direction-compact.html. */
body .workspace-look .direction-expanded{padding-top:16px;border-top:1px solid var(--ui-line);margin-top:12px}
.direction-live-badge{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;font-weight:400}
.direction-live-badge i{width:6px;height:6px;border-radius:50%;background:var(--muted)}
.direction-live-badge[data-online="true"] i{background:var(--success,#62d6a1)}
.direction-reset{display:inline-flex;align-items:center;gap:6px;background:transparent;border:0;padding:6px 8px;min-height:36px;font-size:12px;color:var(--muted)}
.direction-reset svg{width:14px;height:14px}.workspace-look[open] .direction-summary{display:none}.workspace-look[open] .direction-reset{margin-left:auto}
body .workspace-look .direction-layout{display:grid;grid-template-columns:minmax(130px,.85fr) minmax(0,2fr);align-items:start;gap:20px;height:auto;min-height:0}
.direction-layout h3{font-size:13px;margin:0 0 10px;font-weight:600}
.direction-model{min-width:0;align-self:start;display:flex;flex-direction:column;gap:8px;border-right:1px solid var(--ui-line);padding-right:20px;text-align:left}
.direction-model-label.sr-only{position:absolute}
.direction-model-host{width:100%;height:256px;max-height:256px;min-height:0;position:relative;overflow:hidden}
.direction-model-host:before{content:"";position:absolute;width:90px;height:10px;left:50%;bottom:18px;transform:translateX(-50%);background:#0005;filter:blur(6px);border-radius:50%}
.direction-model-host canvas{display:block;position:relative;pointer-events:none;max-width:100%}
.direction-model-status{font-size:11px;line-height:1.5;color:var(--muted);min-height:18px;text-align:center}
body .workspace-look .direction-controls{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 18px;align-items:start}
.direction-aim,.direction-preset-visual{min-width:0}
body .workspace-look .direction-pad,.workspace-look .direction-compass{width:100%;max-width:200px;aspect-ratio:1;height:auto;margin:0 auto;position:relative}
body .workspace-look .direction-pad{border-radius:11px;background:var(--ui-inset);border-color:var(--border)}
.direction-pad:before{content:"";position:absolute;top:50%;left:50%;width:68%;aspect-ratio:1;border:1px dashed var(--border);border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}
.direction-pad-up,.direction-pad-down{text-transform:uppercase;letter-spacing:.04em;font-size:10px}.direction-pad-up{top:6px}.direction-pad-down{bottom:6px}
.direction-cross.horizontal{left:10%;right:10%}.direction-cross.vertical{top:12%;bottom:12%}
.direction-stick{width:30px;height:30px;background:color-mix(in srgb,var(--accent) 13%,transparent);border-color:var(--accent)}.direction-stick>span{width:10px;height:10px}
.workspace-look .direction-compass{display:block;gap:0}
.workspace-look .direction-compass button{position:absolute;width:24%;height:24%;min-width:40px;min-height:40px;transform:translate(-50%,-50%);font-size:11px;font-weight:600;padding:0;border-radius:8px}
.direction-compass [data-direction-preset="N"]{left:50%;top:13%}.direction-compass [data-direction-preset="NE"]{left:76.16%;top:23.84%}.direction-compass [data-direction-preset="E"]{left:87%;top:50%}.direction-compass [data-direction-preset="SE"]{left:76.16%;top:76.16%}
.direction-compass [data-direction-preset="S"]{left:50%;top:87%}.direction-compass [data-direction-preset="SW"]{left:23.84%;top:76.16%}.direction-compass [data-direction-preset="W"]{left:13%;top:50%}.direction-compass [data-direction-preset="NW"]{left:23.84%;top:23.84%}
.direction-compass-center{position:absolute;left:50%;top:50%;width:26%;height:26%;border:1px solid var(--border);border-radius:50%;transform:translate(-50%,-50%);display:grid;place-items:center}
.direction-compass-pointer{width:62%;height:62%;background:var(--accent);clip-path:polygon(50% 0,100% 100%,50% 75%,0 100%);transform:rotate(var(--bearing,180deg));transition:transform .08s linear}
.direction-angle-field{display:block;min-width:0}.direction-angle-field>span:first-child{display:block;font-size:11px;margin:0 0 6px;color:var(--muted)}
.direction-stepper{display:flex;align-items:center;height:38px;border:1px solid var(--border);border-radius:8px;background:var(--ui-inset);overflow:hidden}
.direction-stepper button{width:32px;height:100%;min-height:0;flex-shrink:0;border:0;border-radius:0;background:transparent;padding:0;font-size:18px}
.direction-angle-field .direction-stepper input{width:100%;min-width:0;min-height:0;height:100%;appearance:textfield;border:0;background:transparent;padding:0;text-align:center;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.direction-stepper input::-webkit-inner-spin-button{appearance:none}
.direction-pitch-segments{display:flex;gap:3px;border:1px solid var(--border);border-radius:8px;padding:3px;margin-top:8px}
.direction-pitch-segments button{flex:1;min-width:0;padding:6px 2px;font-size:11px;background:transparent;border-color:transparent;min-height:30px;border-radius:6px}
.direction-pitch-segments button[aria-pressed="true"]{background:var(--raised);border-color:var(--accent);color:var(--accent)}
@media(max-width:620px){body .workspace-main>.workspace-look{padding:12px 14px}body .workspace-look .direction-layout{gap:12px;grid-template-columns:minmax(105px,.65fr) minmax(0,2fr)}.direction-model{padding-right:10px}.direction-model-host{height:205px;max-height:205px}body .workspace-look .direction-controls{gap:12px 8px}.direction-layout h3{font-size:12px}.direction-pitch-segments button{font-size:10px}.direction-stepper{height:44px}.direction-stepper button{width:32px}.direction-angle-field .direction-stepper input{font-size:16px}.direction-reset{min-height:44px}.direction-live-badge,.direction-summary{font-size:10px}}
@media(max-width:440px){body .workspace-look .direction-layout{grid-template-columns:1fr}.direction-model{border-right:0;border-bottom:1px solid var(--ui-line);padding:0 0 12px}.direction-model-host{height:185px;max-height:185px}.direction-model-status{font-size:11px}.workspace-look .direction-compass button{min-width:44px;min-height:44px}.direction-pitch-segments button{min-height:38px}}
@media(prefers-reduced-motion:reduce){.direction-compass-pointer{transition:none}}
