:root {
  --bg: #111820;
  --bg-soft: #17212b;
  --panel: #1b2732;
  --panel-2: #22313d;
  --sidebar: #2b3944;
  --sidebar-deep: #25323c;
  --line: #344552;
  --line-soft: rgba(255,255,255,.08);
  --text: #f7f8fa;
  --muted: #9dacb9;
  --muted-2: #718392;
  --accent: #ec3b6f;
  --accent-2: #ff6d4a;
  --green: #46d69b;
  --yellow: #ffbd59;
  --red: #ff6d6d;
  --blue: #62a8ff;
  --shadow: 0 20px 60px rgba(0,0,0,.28);
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-width: 320px; }
button, input, select { font: inherit; }
button { color: inherit; }
button, label.file-button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hidden { display: none !important; }
.mobile-only { display: none !important; }
.muted { color: var(--muted); line-height: 1.55; }
.eyebrow { margin: 0 0 7px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .15em; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 274px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 274px; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-deep) 100%); border-left: 4px solid var(--accent); box-shadow: 10px 0 30px rgba(0,0,0,.15); z-index: 30; }
.brand { height: 84px; display: flex; align-items: center; gap: 13px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08); letter-spacing: .03em; }
.brand > span:last-child { display: flex; flex-direction: column; font-size: 17px; }
.brand small { color: var(--muted); font-size: 8px; letter-spacing: .2em; margin-top: 3px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: white; background: linear-gradient(145deg, var(--accent), #b52e94); font-family: Georgia, serif; font-size: 21px; font-weight: 800; box-shadow: 0 8px 20px rgba(236,59,111,.26); }
.brand-mark.large { width: 54px; height: 54px; margin: 0 auto 18px; font-size: 30px; }
.server-chip { margin: 16px 16px 10px; padding: 13px 14px; display: flex; align-items: center; gap: 11px; background: rgba(8,15,20,.26); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; }
.server-chip > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.server-chip strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-chip small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,189,89,.12); }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 4px rgba(70,214,155,.12); }
.status-dot.offline { background: var(--red); box-shadow: 0 0 0 4px rgba(255,109,109,.12); }

nav { padding: 3px 0 20px; overflow-y: auto; }
.nav-item { width: 100%; min-height: 52px; position: relative; display: grid; grid-template-columns: 38px 1fr 18px; align-items: center; gap: 4px; padding: 0 18px; border: 0; border-left: 3px solid transparent; background: transparent; color: #f5f7f8; cursor: pointer; text-align: left; font-size: 15px; font-weight: 650; transition: .16s ease; }
.nav-item:hover { background: rgba(255,255,255,.055); }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(236,59,111,.15), rgba(236,59,111,0)); border-left-color: var(--accent); }
.nav-icon { width: 28px; text-align: center; font-size: 22px; color: white; line-height: 1; }
.terminal-icon { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 18px; font-weight: 800; }
.nav-item b { font-size: 25px; font-weight: 400; }
.nav-warning { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #16202a; background: var(--accent-2); font-size: 11px; font-style: normal; font-weight: 900; }
.sidebar-footer { margin-top: auto; padding: 16px 20px 20px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.main-area { grid-column: 2; min-width: 0; }
.topbar { height: 84px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 34px; background: rgba(17,24,32,.9); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(16px); }
.topbar h1 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.topbar .eyebrow { margin-bottom: 3px; color: var(--muted-2); font-size: 9px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.connection-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(70,214,155,.22); border-radius: 8px; color: #a6e6cb; background: rgba(70,214,155,.07); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.connection-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); cursor: pointer; color: var(--muted); font-size: 18px; }
.icon-button:hover { color: white; border-color: #506677; }

.view { display: none; padding: 34px; max-width: 1500px; margin: 0 auto; }
.view.active { display: block; animation: view-in .2s ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.section-intro { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.section-intro h2 { margin: 0 0 5px; font-size: 29px; letter-spacing: -.035em; }
.section-intro p { margin-top: 5px; margin-bottom: 0; }

.hero-card { min-height: 214px; display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 38px 42px; border: 1px solid #394958; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 82% 20%, rgba(236,59,111,.15), transparent 30%), linear-gradient(135deg, #22313d, #17232d); box-shadow: var(--shadow); }
.hero-card h2 { max-width: 700px; margin: 0 0 13px; font-size: clamp(30px, 4vw, 47px); line-height: 1.05; letter-spacing: -.045em; }
.hero-card p.muted { max-width: 620px; margin: 0; }
.hero-state { min-width: 210px; display: flex; align-items: center; gap: 17px; padding: 18px 20px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(11,17,22,.36); }
.hero-state > div { display: flex; flex-direction: column; }
.hero-state strong { font-size: 20px; }
.hero-state small { margin-top: 4px; color: var(--muted); }
.large-status-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 8px rgba(255,189,89,.09), 0 0 20px rgba(255,189,89,.2); }
.large-status-dot.online { background: var(--green); box-shadow: 0 0 0 8px rgba(70,214,155,.09), 0 0 20px rgba(70,214,155,.2); }
.large-status-dot.offline { background: var(--red); box-shadow: 0 0 0 8px rgba(255,109,109,.09), 0 0 20px rgba(255,109,109,.2); }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.primary-button, .secondary-button, .danger-button, label.file-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 16px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; font-size: 13px; font-weight: 750; text-decoration: none; transition: transform .12s ease, filter .12s ease, border-color .12s ease; }
.primary-button { color: white; background: linear-gradient(135deg, var(--accent), #c62f86); box-shadow: 0 7px 18px rgba(236,59,111,.18); }
.secondary-button, label.file-button { color: #e8edf1; background: var(--panel-2); border-color: #405363; }
.danger-button { color: #ffb9b9; background: rgba(255,109,109,.1); border-color: rgba(255,109,109,.3); }
.primary-button:hover, .secondary-button:hover, .danger-button:hover, label.file-button:hover { filter: brightness(1.1); transform: translateY(-1px); }
button:disabled { opacity: .48; cursor: wait; transform: none !important; }
.text-button { padding: 3px 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 750; }
.full-width { width: 100%; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid.compact .wide-metric { grid-column: 1 / -1; }
.metric-card { min-height: 122px; display: flex; flex-direction: column; justify-content: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, var(--panel), #18232c); }
.metric-card > span { color: var(--muted-2); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.metric-card strong { margin: 9px 0 4px; font-size: 25px; letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; }
.metric-card small { color: var(--muted); font-size: 11px; }
.two-column, .drop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.drop-grid.single-column { grid-template-columns: 1fr; }
.panel-card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.panel-card h3 { margin: 0 0 7px; font-size: 18px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.card-heading h3 { margin: 0; }
.mini-console, .console-output { margin: 0; color: #b9d4c8; background: #0c1319; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow: auto; scrollbar-color: #3b5261 #101820; }
.mini-console { min-height: 218px; max-height: 218px; padding: 16px; border-radius: 9px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.shortcut-grid button { min-height: 104px; display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #17232d; text-align: left; cursor: pointer; }
.shortcut-grid button:hover { border-color: #557083; background: #1c2a35; }
.shortcut-grid span { grid-row: 1 / 3; align-self: center; color: var(--accent); font-size: 24px; text-align: center; }
.shortcut-grid strong { font-size: 13px; }
.shortcut-grid small { color: var(--muted); font-size: 10px; margin-top: 3px; }

.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.settings-grid label, .player-action-card label, .password-card label, .login-card label { display: flex; flex-direction: column; gap: 8px; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.settings-grid label > span, .player-action-card label > span, .password-card label > span, .login-card label > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.settings-grid .wide { grid-column: span 2; }
input, select { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid #405261; border-radius: 8px; color: var(--text); background: #121c24; }
select { cursor: pointer; }
.toggle-label { min-height: 84px; position: relative; flex-direction: row !important; align-items: center; justify-content: space-between; }
.toggle-label input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-label i { width: 43px; height: 23px; position: relative; border-radius: 20px; background: #394956; transition: .16s ease; }
.toggle-label i::after { content: ''; width: 17px; height: 17px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: white; transition: .16s ease; }
.toggle-label input:checked + i { background: var(--accent); }
.toggle-label input:checked + i::after { transform: translateX(20px); }
.notice { margin-top: 15px; padding: 13px 15px; border: 1px solid rgba(98,168,255,.2); border-radius: 9px; color: #b8cee3; background: rgba(98,168,255,.07); font-size: 12px; }
.notice.warning { margin: 0 0 17px; border-color: rgba(255,189,89,.22); color: #e3c890; background: rgba(255,189,89,.07); }

.state-pill, .count-badge { padding: 7px 10px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); background: var(--panel); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.console-shell { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #0c1319; box-shadow: var(--shadow); }
.console-toolbar { min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #25323c; color: var(--muted); background: #151f27; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.console-toolbar > div { display: flex; gap: 16px; }
.console-output { height: calc(100vh - 300px); min-height: 390px; padding: 19px; }
.console-output.tall { height: calc(100vh - 245px); border: 1px solid var(--line); border-radius: var(--radius); }
.command-bar { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 6px; padding: 12px; border-top: 1px solid #25323c; background: #111a21; }
.command-bar > span { color: var(--green); font: 800 20px ui-monospace, monospace; text-align: center; }
.command-bar input { border-color: transparent; background: transparent; }
.data-copy { min-height: 60px; margin: 14px 0 0; color: #cbd6de; line-height: 1.6; white-space: pre-wrap; }
.player-action-card { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 13px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.player-action-card label { padding: 0; border: 0; background: transparent; }

.drop-zone, .file-browser-drop { min-height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; border: 1px dashed #526878; border-radius: 11px; color: var(--muted); background: rgba(98,168,255,.035); cursor: pointer; text-align: center; transition: .16s ease; }
.drop-zone strong, .file-browser-drop strong { color: #dce4ea; font-size: 13px; }
.drop-zone span, .file-browser-drop span { font-size: 11px; }
.drop-zone:hover, .drop-zone.dragging, .file-browser-drop:hover, .file-browser-drop.dragging { border-color: var(--accent); background: rgba(236,59,111,.07); }
.drop-zone.large { min-height: 190px; margin-bottom: 18px; }
.item-list { margin-top: 14px; }
.list-row { min-height: 45px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; border-top: 1px solid var(--line-soft); font-size: 12px; }
.list-row:first-child { border-top: 0; }
.list-row small { color: var(--muted); }
.list-row button, .table-action { border: 0; background: transparent; color: var(--red); cursor: pointer; font-size: 12px; }
.danger-zone { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-color: rgba(255,189,89,.2); }
.danger-zone p { margin-bottom: 0; }

.inline-actions { display: flex; gap: 9px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.breadcrumbs button { padding: 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 12px; }
.breadcrumbs i { color: var(--muted-2); font-style: normal; }
.file-browser-drop { min-height: 92px; margin-bottom: 14px; }
.table-shell { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 13px 16px; color: var(--muted-2); background: #17222b; font-size: 9px; letter-spacing: .12em; text-align: left; }
td { height: 53px; padding: 8px 16px; border-top: 1px solid var(--line-soft); color: #cbd5dc; }
td:first-child { min-width: 270px; color: white; font-weight: 650; }
.file-name-button { display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.file-actions { display: flex; justify-content: flex-end; gap: 12px; white-space: nowrap; }
.file-actions button, .file-actions a { border: 0; background: transparent; color: var(--blue); cursor: pointer; text-decoration: none; font-size: 11px; }
.file-actions .delete { color: var(--red); }

.card-list { display: grid; gap: 11px; }
.resource-card { min-height: 80px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.resource-card > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: rgba(98,168,255,.08); font-size: 21px; }
.resource-card h3 { margin: 0 0 4px; font-size: 14px; }
.resource-card p { margin: 0; color: var(--muted); font-size: 11px; }
.resource-card .resource-actions { display: flex; align-items: center; gap: 9px; }
.active-tag { padding: 4px 7px; border-radius: 20px; color: #9de5c8; background: rgba(70,214,155,.1); font-size: 9px; font-weight: 850; letter-spacing: .08em; }

.access-card { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 15px; }
.access-card h3 { word-break: break-all; }
.access-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: rgba(70,214,155,.08); font-size: 24px; }
.password-card { margin-top: 18px; display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; align-items: end; gap: 14px; }
.password-card label { padding: 0; border: 0; background: transparent; }
.connectivity-card { margin-top: 18px; }
.connectivity-card label { display: grid; gap: 8px; margin: 18px 0; }
.connectivity-card label > span { font-size: 12px; font-weight: 750; color: var(--muted); }
.connectivity-card small { color: var(--muted); font-size: 11px; }
.connectivity-card textarea { width: 100%; padding: 12px; border: 1px solid #405261; border-radius: 8px; color: var(--text); background: #121c24; font: 12px/1.5 ui-monospace, monospace; resize: vertical; }

.login-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 20%, #2b3d4b, #111820 55%); }
.login-overlay.authenticated { display: none; }
.login-card { width: min(420px, 100%); padding: 34px; border: 1px solid #405464; border-radius: 17px; background: rgba(27,39,50,.96); box-shadow: 0 35px 100px rgba(0,0,0,.45); text-align: center; }
.login-card h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.035em; }
.login-card > p:not(.eyebrow):not(.form-error) { margin: 0 0 23px; color: var(--muted); }
.login-card label { padding: 0; border: 0; background: transparent; text-align: left; }
.login-card button { margin-top: 14px; }
.login-card > small { display: block; margin-top: 18px; color: var(--muted-2); }
.form-error { min-height: 18px; margin: 10px 0 0; color: #ff9a9a; font-size: 12px; }

.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: rgba(5,8,11,.72); backdrop-filter: blur(5px); }
.modal-card { width: min(440px, 100%); padding: 26px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); box-shadow: var(--shadow); }
.modal-card h3 { margin: 0 0 10px; }
.modal-card p { color: var(--muted); line-height: 1.55; white-space: pre-line; }
.modal-card > div { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.modal-card input { margin-top: 10px; }

.toast-region { position: fixed; top: 96px; right: 24px; z-index: 90; display: grid; gap: 9px; pointer-events: none; }
.toast { min-width: 260px; max-width: 430px; padding: 13px 15px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 9px; color: #dbe5eb; background: #1d2a34; box-shadow: var(--shadow); font-size: 12px; animation: toast-in .2s ease; }
.toast.error { border-left-color: var(--red); }
.upload-progress { position: fixed; bottom: 22px; right: 22px; z-index: 105; width: min(420px, calc(100vw - 44px)); display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.upload-progress strong { overflow-wrap: anywhere; }
.upload-progress progress, .upload-progress small { grid-column: 1 / -1; width: 100%; }
.upload-progress progress { accent-color: var(--accent); }
.upload-progress small { color: var(--muted); }
@keyframes toast-in { from { opacity: 0; transform: translateX(10px); } }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid.compact { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wide-metric { grid-column: 1 / -1; }
  .settings-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .password-card { grid-template-columns: 1fr 1fr; }
  .password-card > div { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .mobile-only { display: grid !important; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-102%); transition: transform .2s ease; box-shadow: 20px 0 60px rgba(0,0,0,.45); }
  .sidebar.open { transform: none; }
  .main-area { width: 100%; }
  .topbar { height: 72px; padding: 0 16px; }
  .topbar h1 { font-size: 18px; }
  .connection-badge { display: none; }
  .view { padding: 22px 16px 35px; }
  .hero-card { min-height: auto; flex-direction: column; align-items: flex-start; padding: 26px; }
  .hero-state { width: 100%; }
  .metric-grid, .metric-grid.compact, .two-column, .drop-grid, .settings-grid { grid-template-columns: 1fr; }
  .settings-grid .wide, .wide-metric { grid-column: auto; }
  .section-intro { align-items: flex-start; flex-direction: column; }
  .section-intro > button { width: 100%; }
  .player-action-card { grid-template-columns: 1fr; }
  .danger-zone { flex-direction: column; align-items: flex-start; }
  .danger-zone label { width: 100%; }
  .inline-actions { width: 100%; }
  .inline-actions > * { flex: 1; }
  .resource-card { grid-template-columns: 38px 1fr; }
  .resource-card .resource-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .access-card { grid-template-columns: 45px 1fr; }
  .access-card > button { grid-column: 1 / -1; }
  .password-card { grid-template-columns: 1fr; }
  .password-card > div { grid-column: auto; }
  .console-output { height: 55vh; }
  .toast-region { left: 14px; right: 14px; top: 82px; }
  .toast { min-width: 0; }
  td:nth-child(2), th:nth-child(2), td:nth-child(3), th:nth-child(3) { display: none; }
  td:first-child { min-width: 185px; }
}

@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: 1fr; }
  .action-row > button { flex: 1 1 44%; }
  .command-bar { grid-template-columns: 18px 1fr; }
  .command-bar button { grid-column: 1 / -1; width: 100%; }
}
.desktop-unlock { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(180px, 260px) auto; gap: 20px; align-items: end; }
.desktop-unlock h3 { margin: 0 0 8px; }
.desktop-unlock p { margin: 0; }
.desktop-unlock .form-error { grid-column: 1 / -1; }
.desktop-toolbar, .desktop-toolbar > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.desktop-toolbar { justify-content: space-between; margin-bottom: 12px; }
.desktop-toolbar label { display: flex; align-items: center; gap: 8px; }
.desktop-toolbar select { width: auto; }
.desktop-screen { height: min(72vh, 1000px); min-height: 320px; background: #10151b; border: 1px solid #344654; border-radius: 10px; overflow: hidden; }
.desktop-screen:fullscreen { height: 100vh; width: 100vw; border: 0; border-radius: 0; }
.desktop-clipboard { display: flex; gap: 12px; align-items: end; margin-top: 14px; }
.desktop-clipboard label { flex: 1; }
@media (max-width: 850px) { .desktop-unlock { grid-template-columns: 1fr; } .desktop-screen { min-height: 250px; height: 60vh; } .desktop-clipboard { align-items: stretch; flex-direction: column; } }
