:root {
  color-scheme: dark;
  --bg: #070a12;
  --panel: #111621;
  --panel-2: #151b28;
  --panel-3: #0c111a;
  --line: #242d3d;
  --line-soft: #1b2230;
  --text: #f5f7fb;
  --muted: #8d98ae;
  --muted-2: #667188;
  --brand: #5377ff;
  --brand-2: #7658ff;
  --green: #38d997;
  --red: #ff5d72;
  --yellow: #ffca61;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 70% -20%, rgba(83,119,255,.09), transparent 35%), var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 15%, rgba(83,119,255,.18), transparent 38%); }
.login-card { width: min(460px, 100%); padding: 42px; border: 1px solid var(--line); border-radius: 28px; background: rgba(17,22,33,.94); box-shadow: 0 35px 90px rgba(0,0,0,.38); }
.login-card > .brand-mark { margin-bottom: 24px; }
.login-card h1 { margin: 6px 0 12px; font-size: clamp(2rem, 7vw, 3rem); letter-spacing: -.055em; }
.login-copy { margin: 0 0 30px; color: var(--muted); font-size: 1rem; line-height: 1.6; }

.brand-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; overflow: hidden; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 9px 30px rgba(83,119,255,.28); }
.brand-mark span, .brand-mark i { position: absolute; display: block; border: 2px solid white; border-top-color: transparent; border-bottom-color: transparent; border-radius: 50%; }
.brand-mark span:nth-child(1), .brand-mark i:nth-child(1) { width: 7px; height: 7px; background: white; border: none; }
.brand-mark span:nth-child(2), .brand-mark i:nth-child(2) { width: 20px; height: 20px; opacity: .9; }
.brand-mark span:nth-child(3), .brand-mark i:nth-child(3) { width: 31px; height: 31px; opacity: .55; }
.eyebrow { margin: 0; color: #8296dd; font-size: .72rem; font-weight: 800; letter-spacing: .15em; }

.form-stack { display: grid; gap: 18px; }
.form-stack.compact { gap: 14px; }
label > span, fieldset legend { display: block; margin-bottom: 8px; color: #b6bfd1; font-size: .87rem; font-weight: 700; }
label small { display: block; margin-top: 7px; color: var(--muted-2); line-height: 1.45; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: none; background: #0a0e16; color: var(--text); padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(83,119,255,.14); }
.form-error { min-height: 1.2em; margin: 0; color: #ff8393; font-size: .86rem; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; padding: 10px 15px; cursor: pointer; font-weight: 750; transition: transform .16s, background .2s, border-color .2s, opacity .2s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button.primary { background: linear-gradient(135deg, #4b75ff, #635bff); color: white; box-shadow: 0 10px 25px rgba(79,113,255,.2); }
.button.secondary { border-color: #34415a; background: #202a3c; }
.button.ghost { border-color: var(--line); background: transparent; color: #bbc4d6; }
.button.danger { border-color: rgba(255,93,114,.28); background: rgba(255,93,114,.08); color: #ff8292; }
.button.wide { width: 100%; }

.app-shell { min-height: 100vh; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 24px; padding: 0 28px; border-bottom: 1px solid var(--line-soft); background: rgba(7,10,18,.91); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 13px; }
.brand > div:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 1.02rem; letter-spacing: -.02em; }
.brand span { color: var(--muted-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .62rem; letter-spacing: .13em; }
.topbar-status { display: flex; align-items: center; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: #abb5c9; background: #10151f; font-size: .82rem; font-weight: 700; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.status-pill.live { border-color: rgba(56,217,151,.23); color: var(--green); background: rgba(56,217,151,.08); }
.status-pill.live i { background: var(--green); box-shadow: 0 0 0 4px rgba(56,217,151,.12); }
.icon-button, .small-icon-button, .user-button { border: 1px solid var(--line); background: #0d121b; cursor: pointer; }
.icon-button { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--muted); }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.icon-button.loading svg { animation: spin .8s linear infinite; }
.user-button { display: flex; height: 44px; align-items: center; gap: 10px; border-radius: 999px; padding: 4px 10px 4px 5px; }
.user-button > span { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-size: .78rem; font-weight: 800; }
.user-button b { font-size: .84rem; }
.user-button svg { width: 15px; fill: none; stroke: var(--muted); stroke-width: 2; }

.workspace { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 22px; width: min(1800px, 100%); min-height: calc(100vh - 74px); margin: 0 auto; padding: 24px 28px 30px; }
.panel { border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(17,22,33,.83); box-shadow: 0 15px 42px rgba(0,0,0,.12); }
.source-panel { position: sticky; top: 98px; display: flex; height: calc(100vh - 128px); min-height: 560px; flex-direction: column; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 18px; border-bottom: 1px solid var(--line-soft); }
.panel-heading h2 { margin: 5px 0 0; font-size: 1.04rem; letter-spacing: -.02em; }
.count { display: inline-grid; min-width: 24px; height: 24px; place-items: center; margin-left: 5px; border-radius: 8px; background: rgba(83,119,255,.15); color: #89a0ff; font-size: .73rem; }
.small-icon-button { width: 36px; height: 36px; border-radius: 10px; color: #aec0ff; font-size: 1.4rem; line-height: 1; }
.source-list { flex: 1; overflow-y: auto; padding: 9px; }
.source-item { width: 100%; margin-bottom: 7px; border: 1px solid transparent; border-radius: 13px; background: transparent; padding: 14px; color: inherit; cursor: pointer; text-align: left; }
.source-item:hover { background: #171e2b; }
.source-item.active { border-color: rgba(83,119,255,.32); background: linear-gradient(110deg, rgba(83,119,255,.18), rgba(83,119,255,.06)); }
.source-item-top { display: flex; align-items: center; gap: 9px; }
.source-item-top i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #596477; }
.source-item.online .source-item-top i { background: var(--green); box-shadow: 0 0 0 4px rgba(56,217,151,.1); }
.source-item strong { overflow: hidden; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .91rem; text-overflow: ellipsis; white-space: nowrap; }
.source-item-meta { display: flex; align-items: center; gap: 8px; margin: 10px 0 0 17px; color: var(--muted-2); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.source-item-meta b { border-radius: 6px; padding: 3px 6px; background: rgba(83,119,255,.12); color: #718dff; }
.server-card { display: flex; align-items: center; gap: 12px; margin: 10px; margin-top: auto; border: 1px solid var(--line-soft); border-radius: 13px; background: #0c1119; padding: 13px; }
.server-card > span { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(56,217,151,.08); }
.server-card div { display: grid; gap: 3px; }
.server-card strong { font-size: .8rem; }
.server-card small { color: var(--muted-2); font-size: .71rem; }

.empty-card { margin: 18px; padding: 28px 18px; border: 1px dashed #303a4d; border-radius: 15px; color: var(--muted); text-align: center; }
.empty-card strong { display: block; color: var(--text); }
.empty-card p { font-size: .83rem; line-height: 1.5; }
.empty-icon { display: grid; width: 40px; height: 40px; place-items: center; margin: 0 auto 12px; border-radius: 12px; background: rgba(83,119,255,.12); color: #88a0ff; }

.main-panel { min-width: 0; overflow: hidden; }
.main-empty { display: grid; min-height: calc(100vh - 130px); place-content: center; justify-items: center; padding: 30px; color: var(--muted); text-align: center; }
.main-empty h2 { margin: 22px 0 8px; color: var(--text); font-size: 1.35rem; }
.main-empty p { max-width: 490px; margin: 0; line-height: 1.6; }
.signal-orbit { position: relative; display: grid; width: 76px; height: 76px; place-items: center; border: 1px solid #33405a; border-radius: 50%; }
.signal-orbit::before, .signal-orbit::after { position: absolute; border: 1px solid rgba(83,119,255,.18); border-radius: 50%; content: ""; }
.signal-orbit::before { inset: -13px; }
.signal-orbit::after { inset: -28px; }
.signal-orbit span { width: 11px; height: 11px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 30px rgba(83,119,255,.9); }
.detail-head { display: flex; min-height: 90px; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 26px; }
.path-line { display: flex; align-items: center; gap: 10px; }
.path-line h1 { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(1.1rem, 2.1vw, 1.4rem); letter-spacing: -.035em; }
.mode-badge, .offline-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; padding: 5px 8px; font-size: .66rem; font-weight: 850; letter-spacing: .08em; }
.mode-badge { background: rgba(83,119,255,.12); color: #7791ff; }
.offline-badge { background: #1b2230; color: #929db3; }
.offline-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.offline-badge.online { background: rgba(56,217,151,.11); color: var(--green); }
.detail-subtitle { margin: 7px 0 0; color: var(--muted); font-size: .84rem; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #151b27; }
.tab { position: relative; min-height: 66px; border: 0; background: transparent; color: #818ba0; cursor: pointer; font-size: .76rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.tab::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: transparent; content: ""; }
.tab.active { color: #7190ff; background: rgba(83,119,255,.035); }
.tab.active::after { background: var(--brand); }
.tab span { margin-right: 7px; }
.tab b { display: inline-grid; min-width: 21px; height: 21px; place-items: center; margin-left: 5px; border-radius: 7px; background: #222b3b; font-size: .67rem; }
.tab-content { display: none; padding: 26px; }
.tab-content.active { display: block; }
.stream-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; }
.preview-card { position: relative; min-height: 500px; overflow: hidden; border: 1px solid #1e2635; border-radius: 16px; background: #03050a; }
.preview-card iframe { width: 100%; height: 100%; min-height: 500px; border: 0; background: black; }
.preview-offline { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; padding-bottom: 42px; color: var(--muted); text-align: center; }
.preview-offline strong { color: #dfe4ee; font-size: 1.05rem; }
.preview-offline p { margin: 8px 0 0; font-size: .82rem; }
.offline-symbol { display: grid; width: 56px; height: 56px; place-items: center; margin-bottom: 15px; border: 1px solid #293345; border-radius: 50%; color: #6f7a90; font-size: 1.6rem; }
.preview-bar { position: absolute; right: 0; bottom: 0; left: 0; display: flex; height: 48px; align-items: center; justify-content: space-between; padding: 0 15px; border-top: 1px solid #171e2a; background: rgba(7,10,16,.93); }
.preview-bar span { display: flex; align-items: center; gap: 8px; font-size: .69rem; letter-spacing: .1em; }
.preview-bar i { width: 7px; height: 7px; border-radius: 50%; background: #596477; }
.preview-bar i.live { background: var(--green); }
.preview-bar button { border: 0; background: transparent; color: #8397dc; cursor: pointer; font-size: .73rem; font-weight: 700; }
.metrics-grid { display: grid; align-content: start; gap: 14px; }
.metric-card { min-height: 130px; border: 1px solid var(--line); border-radius: 15px; padding: 18px; background: #101620; }
.metric-card.blue { border-color: rgba(83,119,255,.37); background: linear-gradient(135deg, rgba(83,119,255,.12), rgba(83,119,255,.03)); }
.metric-card.green { border-color: rgba(56,217,151,.3); background: linear-gradient(135deg, rgba(56,217,151,.11), rgba(56,217,151,.025)); }
.metric-card.violet { border-color: rgba(145,90,255,.28); background: linear-gradient(135deg, rgba(145,90,255,.1), rgba(145,90,255,.025)); }
.metric-label { color: #b1bdd4; font-size: .68rem; font-weight: 850; letter-spacing: .09em; }
.metric-card > strong { display: block; margin: 15px 0 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem; }
.metric-card small { color: var(--muted-2); }
.metric-card dl { display: grid; gap: 10px; margin: 16px 0 0; }
.metric-card dl div { display: flex; justify-content: space-between; gap: 16px; }
.metric-card dt { color: var(--muted); font-size: .78rem; }
.metric-card dd { margin: 0; color: #d0d6e2; font-size: .78rem; font-weight: 750; }

.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.toolbar-actions { display: flex; align-items: center; gap: 9px; }
.section-toolbar h2 { margin: 0; font-size: 1.12rem; }
.section-toolbar p { margin: 6px 0 0; color: var(--muted); font-size: .84rem; }
.target-list, .account-list { display: grid; gap: 11px; }
.target-item, .account-item { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line-soft); border-radius: 14px; background: #0e131d; padding: 15px; }
.platform-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: #25304a; font-size: .75rem; font-weight: 900; }
.platform-icon.youtube { background: #e83333; color: white; }
.platform-icon.facebook { background: #2377ec; color: white; font-family: Georgia, serif; font-size: 1.25rem; }
.target-info, .account-info { min-width: 0; flex: 1; }
.target-info strong, .account-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.target-info p, .account-info p { margin: 4px 0 0; color: var(--muted); font-size: .77rem; }
.target-info .target-error { overflow: hidden; color: #ff8998; text-overflow: ellipsis; white-space: nowrap; }
.target-actions { display: flex; align-items: center; gap: 8px; }
.running-label { display: inline-flex; align-items: center; gap: 7px; margin-right: 4px; color: var(--muted); font-size: .73rem; font-weight: 750; }
.running-label i { width: 7px; height: 7px; border-radius: 50%; background: #667188; }
.running-label.live { color: var(--green); }
.running-label.live i { background: var(--green); box-shadow: 0 0 0 4px rgba(56,217,151,.1); }
.wide-empty { display: grid; justify-items: center; padding: 60px 20px; border: 1px dashed #30394a; border-radius: 16px; color: var(--muted); text-align: center; }
.wide-empty > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: rgba(83,119,255,.1); color: #8099ff; font-size: 1.4rem; }
.wide-empty h3 { margin: 14px 0 5px; color: #dfe4ee; }
.wide-empty p { margin: 0; font-size: .84rem; }
.connect-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.connect-card { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 15px; background: #0d121b; padding: 17px; transition: border-color .2s, transform .2s; }
.connect-card:hover { transform: translateY(-2px); }
.connect-card > div { display: grid; flex: 1; gap: 4px; }
.connect-card small { color: var(--muted); }
.connect-card.google:hover { border-color: #61789e; }
.connect-card.facebook:hover { border-color: #287df0; }
.platform-logo { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: white; color: #3478ed; font-size: 1.2rem; font-weight: 900; }
.connect-card.facebook .platform-logo { background: #2377ec; color: white; font-family: Georgia, serif; }
.connect-card.disabled { pointer-events: none; opacity: .42; }
.notice { margin: 0 0 20px; border: 1px solid rgba(255,202,97,.22); border-radius: 13px; background: rgba(255,202,97,.07); padding: 13px 15px; color: #dbc68f; font-size: .82rem; line-height: 1.5; }
.integration-note { border: 1px solid rgba(83,119,255,.24); border-radius: 13px; background: rgba(83,119,255,.07); padding: 14px 15px; }
.integration-note strong { color: #c9d4ff; font-size: .82rem; }
.integration-note p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }

.modal { width: min(620px, calc(100vw - 28px)); max-height: calc(100vh - 28px); margin: auto; overflow: auto; border: 1px solid #2a3343; border-radius: 20px; background: #111620; color: var(--text); padding: 0; box-shadow: 0 35px 100px rgba(0,0,0,.55); }
.modal::backdrop { background: rgba(2,4,9,.75); backdrop-filter: blur(7px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 26px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 6px 0 0; font-size: 1.25rem; }
.modal-close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.6rem; }
.modal-close:hover { background: #1c2330; color: white; }
.modal-body { padding: 24px 26px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 17px 26px; border-top: 1px solid var(--line); }
.secure-note { display: flex; gap: 12px; margin-bottom: 20px; border: 1px solid rgba(255,202,97,.23); border-radius: 13px; background: rgba(255,202,97,.07); padding: 13px; color: #d9c58e; }
.secure-note > span { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: rgba(255,202,97,.16); font-weight: 850; }
.secure-note p { margin: 1px 0 0; font-size: .82rem; line-height: 1.5; }
.copy-field { display: block; margin-top: 16px; }
.copy-field > div { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #080c13; }
.copy-field code { min-width: 0; flex: 1; overflow: auto; padding: 14px; color: #b8c6f6; white-space: nowrap; }
.copy-field button { border: 0; border-left: 1px solid var(--line); background: #171e2a; color: #9eb0ed; cursor: pointer; padding: 0 14px; font-size: .75rem; font-weight: 750; }
.target-modal { width: min(720px, calc(100vw - 28px)); }
.platform-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin: 0 0 22px; border: 0; padding: 0; }
.platform-picker legend { grid-column: 1 / -1; }
.platform-option { display: grid; min-height: 105px; place-content: center; justify-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 14px; background: #0c111a; cursor: pointer; }
.platform-option.selected { border-color: var(--brand); background: rgba(83,119,255,.08); box-shadow: inset 0 0 0 1px rgba(83,119,255,.25); }
.platform-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.platform-option span { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 10px; background: #2c364a; font-size: .72rem; font-weight: 900; }
.platform-option span.youtube { background: #eb3333; color: white; }
.platform-option span.facebook { background: #2377ec; color: white; font-family: Georgia, serif; font-size: 1.2rem; }
.platform-option b { font-size: .82rem; }

.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; width: min(370px, calc(100vw - 44px)); gap: 9px; }
.toast { display: flex; align-items: flex-start; gap: 11px; border: 1px solid #2c374b; border-radius: 13px; background: #151c28; padding: 13px 15px; box-shadow: 0 20px 50px rgba(0,0,0,.35); animation: toast-in .25s ease-out; }
.toast::before { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 6px; border-radius: 50%; background: var(--green); content: ""; }
.toast.error::before { background: var(--red); }
.toast div { color: #d5dbe7; font-size: .84rem; line-height: 1.45; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1050px) {
  .workspace { grid-template-columns: 270px minmax(0, 1fr); padding-inline: 18px; }
  .stream-layout { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-card { min-height: 120px; }
}

@media (max-width: 780px) {
  .topbar { padding: 0 14px; }
  .brand > div:last-child span, .user-button b, .status-pill { display: none; }
  .workspace { display: block; padding: 12px; }
  .source-panel { position: static; height: auto; min-height: 0; margin-bottom: 12px; }
  .source-list { display: flex; gap: 8px; overflow-x: auto; }
  .source-item { min-width: 230px; margin: 0; }
  .server-card { display: none; }
  .main-empty { min-height: 430px; }
  .detail-head { align-items: flex-start; padding: 17px; }
  .detail-head .button { padding-inline: 11px; font-size: .74rem; }
  .path-line { flex-wrap: wrap; }
  .tab { min-height: 59px; font-size: .67rem; }
  .tab-content { padding: 14px; }
  .preview-card, .preview-card iframe { min-height: 330px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 0; }
  .connect-grid { grid-template-columns: 1fr; }
  .target-item { align-items: flex-start; flex-wrap: wrap; }
  .target-actions { width: 100%; justify-content: flex-end; border-top: 1px solid var(--line-soft); padding-top: 12px; }
  .platform-picker { grid-template-columns: 1fr 1fr 1fr; }
  .platform-option { min-height: 90px; }
}

@media (max-width: 500px) {
  .login-card { padding: 30px 22px; }
  .brand strong { font-size: .9rem; }
  .topbar-status { gap: 6px; }
  .icon-button { width: 39px; height: 39px; }
  .user-button { height: 40px; }
  .section-toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions .button { flex: 1; font-size: .73rem; }
  .tabs { overflow-x: auto; }
  .tab { min-width: 110px; }
  .modal-head, .modal-body, .modal-actions { padding-inline: 18px; }
  .platform-option b { font-size: .7rem; }
  .modal-actions .button { flex: 1; }
}
