:root {
  color-scheme: light;
  --ink: #162b25;
  --muted: #5c6d65;
  --paper: #f7f9f8;
  --panel: #ffffff;
  --line: #e2e9e5;
  --accent: #0d806c;
  --accent-dark: #075f51;
  --accent-soft: #e7f3ed;
  --warm: #9a641d;
  --danger: #a33a31;
  --scrim: rgb(22 43 37 / 28%);
  --panel-width: 284px;
  --topbar-height: 76px;
  --motion-fast: 150ms;
  --motion-standard: 200ms;
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --z-toolbar: 10;
  --z-floating: 20;
  --z-backdrop: 30;
  --z-drawer: 40;
  --z-popover: 50;
  --z-toast: 60;
  --z-auth: 70;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100dvh; overflow: hidden; color: var(--ink); background: var(--paper); }
body[data-chrome-open="false"] { grid-template-rows: 0 minmax(0, 1fr); }
body[data-chrome-open="false"] .topbar { display: none; }
body[data-chrome-open="false"] .quick-actions { display: none; }
body[data-viewer-immersive="true"] :is(.chrome-toggle, .panel-toggle-floating, .topbar, .control-panel, .panel-backdrop) { opacity: 0; visibility: hidden; pointer-events: none; }
body[data-viewer-immersive="true"] .quick-actions { display: none; }
body[data-authenticated="false"] :is(.topbar, .workspace, .quick-actions, .chrome-toggle, .panel-toggle-floating) { visibility: hidden; }
button, input, select { font: inherit; }
button, summary, select { cursor: pointer; }
button { min-height: 44px; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .45; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { transition: background var(--motion-fast), color var(--motion-fast); }
:where(button, input, select, a, summary):focus-visible { outline: 3px solid #0d806c; outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.topbar { grid-row: 1; min-height: var(--topbar-height); display: grid; grid-template-columns: 180px minmax(180px, 1fr) auto; align-items: center; gap: 28px; padding: 12px 24px 12px 64px; background: var(--panel); border-bottom: 1px solid var(--line); position: relative; z-index: var(--z-toolbar); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand strong { font-size: 17px; font-weight: 650; letter-spacing: -.035em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--accent); color: white; border-radius: 10px; }
.brand-mark .icon { width: 22px; height: 22px; }
.url-form { display: flex; gap: 8px; align-items: center; min-width: 0; padding: 4px 4px 4px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.url-form:focus-within { border-color: var(--accent); }
.address-icon { width: 18px; color: var(--muted); }
.url-form input { width: 100%; min-width: 0; height: 36px; padding: 0 2px; color: var(--ink); background: transparent; border: 0; font-size: 13px; }
.url-form input:focus-visible { outline: none; }
input::placeholder { color: var(--muted); opacity: 1; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 18px; border: 0; border-radius: 8px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.primary-button { background: var(--accent); color: white; }
.primary-button:hover { background: var(--accent-dark); }
.secondary-button { background: var(--accent-soft); color: var(--accent-dark); }
.secondary-button:hover { background: #d5e9de; }
.url-form .primary-button { min-height: 36px; gap: 8px; padding: 0 13px; }
.url-form .icon { width: 18px; }
.topbar-meta { display: flex; align-items: center; gap: 20px; }
.connection-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.connection-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #728479; }
.connection-status[data-tone="ready"]::before { background: var(--accent); }
.connection-status[data-tone="loading"]::before { background: var(--warm); animation: pulse 1.5s ease-in-out infinite; }
.connection-status[data-tone="error"]::before { background: var(--danger); }
.account-menu { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
#account-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu button { min-height: 36px; padding: 4px 8px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font-size: 11px; }
.account-menu button:hover { color: var(--ink); background: var(--paper); }
.chrome-toggle, .panel-toggle-floating { position: fixed; top: 16px; left: 12px; z-index: var(--z-floating); width: 40px; height: 44px; display: grid; place-items: center; padding: 0; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.chrome-toggle:hover, .panel-toggle-floating:hover { color: var(--accent-dark); background: var(--accent-soft); }
.chrome-toggle svg { transition: transform var(--motion-standard) var(--ease-out); }
body[data-chrome-open="true"] .chrome-toggle svg { transform: rotate(180deg); }
.panel-toggle-floating { left: 60px; display: none; }
.panel-toggle-floating:not([hidden]) { display: grid; }
body[data-chrome-open="true"] .panel-toggle-floating { display: none; }
.workspace { grid-row: 2; min-height: 0; display: grid; grid-template-columns: var(--panel-width) minmax(0, 1fr); overflow: hidden; }
.workspace[data-panel-open="false"] { grid-template-columns: 0 minmax(0, 1fr); }
.control-panel { min-width: 0; width: var(--panel-width); overflow-y: auto; padding: 0 20px 20px; background: var(--panel); border-right: 1px solid var(--line); transform: translateX(0); opacity: 1; visibility: visible; transition: transform var(--motion-standard) var(--ease-out), opacity var(--motion-fast), visibility 0s; }
.workspace[data-panel-open="false"] .control-panel { transform: translateX(-100%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform var(--motion-standard) var(--ease-out), opacity var(--motion-fast), visibility 0s var(--motion-standard); }
.control-panel-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 8px; font-weight: 650; font-size: 13px; }
.panel-close, .icon-button { display: grid; place-items: center; width: 44px; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 8px; }
.panel-close:hover, .icon-button:hover { background: var(--paper); }
.panel-close .icon { width: 17px; height: 17px; }
.panel-tabs { display: flex; padding: 3px; gap: 2px; border-radius: 8px; background: #f0f4f1; }
.panel-tabs button { flex: 1; min-width: 0; padding: 0 3px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.panel-tabs button[aria-selected="true"] { color: var(--accent-dark); background: white; }
.panel-tabs button:hover { color: var(--accent-dark); }
.panel-intro { padding: 26px 0 22px; border-bottom: 1px solid var(--line); }
.panel-kicker { display: block; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.panel-intro h1 { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; }
.site-address { overflow: hidden; margin: 5px 0 0; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.control-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-heading h2 { margin: 0; font-size: 13px; font-weight: 650; }
.section-help { margin: 8px 0 14px; font-size: 11px; line-height: 1.65; color: var(--muted); }
.count-badge { min-width: 22px; padding: 3px 6px; color: var(--muted); background: #f0f4f1; border-radius: 5px; text-align: center; font-size: 10px; }
.empty-state { margin: 0; padding: 18px 14px; color: var(--muted); background: var(--paper); border-radius: 8px; font-size: 12px; line-height: 1.7; }
.empty-state.compact { padding: 0; background: transparent; font-size: 11px; }
.picker-button { width: 100%; min-height: 46px; border: 1px solid #b5d9cc; border-radius: 8px; color: var(--accent-dark); background: var(--accent-soft); font-size: 12px; font-weight: 600; }
.picker-button:hover { background: #d5e9de; }
.picker-button[data-active="true"] { color: white; background: var(--accent); border-color: var(--accent); }
.manual-list { margin-top: 14px; }
.region-row, .manual-row { display: flex; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid var(--line); }
.region-row:last-child, .manual-row:last-child { border-bottom: 0; }
.region-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.region-row label { display: flex; align-items: center; justify-content: space-between; flex: 1; min-height: 48px; gap: 8px; font-size: 13px; cursor: pointer; }
.region-row small { font-size: 11px; color: var(--muted); }
.manual-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, monospace; font-size: 11px; }
.manual-row button { padding: 0 8px; color: var(--accent-dark); background: transparent; border: 0; font-size: 12px; }
.reset-button { width: 100%; margin-top: 12px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; }
.reset-button:hover { color: var(--danger); background: #fcf1ef; }
.panel-footnote { margin: 0; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.7; }
.vpn-label { display: block; margin: 15px 0 8px; color: var(--muted); font-size: 11px; }
.vpn-select { width: 100%; min-height: 44px; padding: 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.vpn-detail { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.vpn-status { padding: 4px 7px; border-radius: 5px; background: var(--paper); color: var(--muted); font-size: 10px; }
.vpn-status[data-tone="ready"] { color: var(--accent-dark); background: var(--accent-soft); }
.vpn-status[data-tone="loading"] { color: #80501b; background: #fff2e0; }
.vpn-status[data-tone="error"] { color: var(--danger); background: #fcf1ef; }
.session-actions, .vpn-admin-actions { display: flex; gap: 8px; margin-top: 18px; }
.session-actions button, .vpn-admin-actions button { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 11px; background: white; color: var(--muted); }
.session-actions .session-restore, .vpn-admin-actions button:last-child { background: var(--accent); border-color: var(--accent); color: white; }
.session-clear:hover { color: var(--danger); }
.vpn-monitor-list { max-height: 280px; overflow: auto; margin: 14px 0 0; padding: 0; list-style: none; }
.vpn-monitor-row { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.vpn-monitor-row span { color: var(--muted); font-size: 10px; }
.vpn-monitor-row small { color: var(--accent-dark); }
.vpn-monitor-row[data-state="selected"] strong { color: var(--accent-dark); }
.safety-note { padding: 20px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.safety-note summary { padding: 10px 0; }
.panel-backdrop { display: none; }
.preview-shell { grid-column: 2; min-width: 0; min-height: 0; position: relative; overflow: auto; background: var(--paper); }
#proxy-frame { display: block; width: 100%; height: 100%; border: 0; background: white; }
.welcome-card { width: min(640px, calc(100% - 72px)); margin: 48px auto 28px; text-align: center; }
.welcome-art { height: 220px; overflow: hidden; border-radius: 12px; background: #e9efea; }
.welcome-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 59%; }
.welcome-copy { padding: 32px 0 0; }
.welcome-label { color: var(--accent-dark); font-size: 12px; font-weight: 550; }
.welcome-copy h2 { margin: 12px 0; font-size: 29px; font-weight: 650; letter-spacing: -.035em; line-height: 1.35; }
.welcome-copy > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.welcome-actions { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 24px 0 0; }
.text-button { padding: 8px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; }
.text-button:hover { color: var(--accent-dark); background: var(--accent-soft); }
.welcome-hint { margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.loading-card, .error-card { width: min(420px, calc(100% - 40px)); margin: max(60px, 15vh) auto 40px; text-align: center; }
.loading-card strong, .loading-card small, .error-card strong { display: block; }
.loading-card strong, .error-card strong { font-size: 17px; font-weight: 600; }
.loading-card small, .error-card p { margin: 12px 0 20px; color: var(--muted); line-height: 1.7; font-size: 12px; overflow-wrap: anywhere; }
.error-card > .icon { width: 32px; height: 32px; margin-bottom: 18px; color: var(--danger); }
.loading-document { width: 112px; padding: 22px 16px; margin: 0 auto 24px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.loading-document span { display: block; height: 6px; margin-bottom: 12px; background: #dce8e0; border-radius: 2px; animation: pulse 1.5s ease-in-out infinite; }
.loading-document span:first-child { width: 50%; background: #81b49b; }
.loading-document span:last-child { width: 70%; margin: 0; }
.quick-actions { grid-row: 3; position: relative; z-index: var(--z-toolbar); display: grid; grid-template-columns: repeat(4, minmax(0, 132px)); justify-content: center; align-items: center; gap: 8px; padding: 8px 20px max(8px, env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
.quick-action { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 132px; padding: 8px 16px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; font-size: 12px; font-weight: 550; }
.quick-action:hover { background: var(--paper); color: var(--ink); }
.quick-action[data-active="true"], .bookmark-toggle[aria-expanded="true"], #focus-button[aria-pressed="true"] { color: var(--accent-dark); background: var(--accent-soft); }
.picker-guide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; color: var(--accent-dark); background: var(--accent-soft); border: 1px solid #b5d9cc; border-radius: 10px; }
.picker-guide strong, .picker-guide span { display: block; line-height: 1.6; }
.picker-guide strong { font-size: 13px; }
.picker-guide span { font-size: 12px; }
.picker-guide button { flex: 0 0 auto; padding: 0 12px; color: var(--accent-dark); background: white; border: 1px solid #b5d9cc; border-radius: 6px; font-size: 12px; }
.bookmark-menu { position: relative; }
.bookmark-panel { position: absolute; bottom: calc(100% + 18px); left: 50%; transform: translateX(-50%); z-index: var(--z-popover); width: 340px; max-height: min(65dvh, 520px); padding: 16px; background: white; border: 1px solid #c9d8ce; border-radius: 12px; }
.bookmark-panel .section-heading { margin-bottom: 8px; }
.bookmark-save { width: 100%; padding: 10px; color: white; background: var(--accent); border: 0; border-radius: 8px; font-size: 12px; }
.bookmark-list { max-height: min(40dvh, 320px); overflow-y: auto; margin: 12px 0 0; padding: 0; list-style: none; }
.bookmark-empty { padding: 24px 8px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
.bookmark-row { display: flex; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.bookmark-delete { width: 44px; flex-shrink: 0; padding: 0; color: var(--danger); background: transparent; border: 0; border-radius: 6px; font-size: 18px; }
.bookmark-open { flex: 1; min-width: 0; padding: 8px; text-align: left; color: var(--ink); background: transparent; border: 0; border-radius: 6px; }
.bookmark-open:hover { background: var(--paper); }
.bookmark-open strong, .bookmark-open small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bookmark-open strong { font-size: 12px; }
.bookmark-open small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.toast { position: fixed; left: 50%; bottom: 82px; transform: translateX(-50%); z-index: var(--z-toast); width: max-content; max-width: calc(100vw - 32px); padding: 13px 18px; color: white; background: var(--ink); border-radius: 8px; font-size: 12px; line-height: 1.5; transition-property: none; }
body[data-picker-active="true"] .toast { bottom: calc(172px + env(safe-area-inset-bottom, 0px)); }
.auth-gate { position: fixed; inset: 0; z-index: var(--z-auth); display: grid; grid-template-columns: 55% 45%; overflow-y: auto; background: white; }
.auth-art { min-height: 100%; position: relative; overflow: hidden; background: #e5ebe5; }
.auth-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% center; }
.auth-brand { position: absolute; top: 44px; left: 48px; }
.auth-art-copy { position: relative; z-index: 1; margin: 160px 48px 100px; }
.art-caption { font-size: 12px; color: #405b4e; }
.auth-art-copy h2 { margin: 18px 0 16px; font-size: 44px; font-weight: 550; line-height: 1.3; letter-spacing: -.035em; }
.auth-art-copy p { font-size: 13px; color: #405b4e; }
.art-signature { position: absolute; bottom: 36px; left: 48px; color: white; font-size: 12px; }
.auth-form-wrap { display: grid; place-items: center; padding: 48px; }
.auth-card { width: min(100%, 340px); }
.auth-greeting { color: var(--accent-dark); font-size: 13px; }
.auth-card h1 { margin: 12px 0; font-size: 30px; font-weight: 650; letter-spacing: -.035em; }
.auth-card > p:not(.auth-error):not(.auth-footnote) { margin: 0 0 36px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.auth-card > label:not(.remember-row) { display: block; margin: 20px 0 9px; font-size: 12px; font-weight: 600; }
.auth-card > input { width: 100%; height: 48px; padding: 12px 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.remember-row { display: flex; align-items: center; gap: 7px; min-height: 44px; margin: 10px 0 14px; color: var(--muted); font-size: 12px; cursor: pointer; }
.remember-row input { width: 16px; height: 16px; accent-color: var(--accent); }
.auth-actions { display: grid; gap: 10px; }
.auth-actions .primary-button { min-height: 48px; justify-content: space-between; }
.auth-actions .text-button strong { margin-left: 5px; color: var(--accent-dark); font-weight: 600; }
.auth-card .auth-footnote { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 44px 0 0; color: var(--muted); font-size: 10px; }
.auth-footnote .icon { width: 14px; height: 14px; }
.auth-error { padding: 12px; color: var(--danger); background: #fcf1ef; border-radius: 8px; font-size: 12px; line-height: 1.5; }
@keyframes pulse { 50% { opacity: .4; } }
@media (min-width: 1400px) { .welcome-card { margin-top: 64px; } .welcome-art { height: 260px; } }
@media (max-width: 1150px) { .topbar { gap: 18px; grid-template-columns: 160px minmax(180px, 1fr) auto; } .topbar-meta { gap: 10px; } #account-name { display: none; } }
@media (max-width: 900px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px 16px 12px; }
  .topbar > .brand { margin-left: 42px; }
  .topbar-meta { grid-column: 2; grid-row: 1; }
  .url-form { grid-column: 1 / -1; grid-row: 2; }
  .url-form input { height: 38px; }
  .url-form .primary-button { min-height: 40px; }
  .chrome-toggle { top: 9px; left: 10px; border: 0; }
  .panel-toggle-floating { top: 9px; }
  .brand strong { font-size: 15px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .workspace, .workspace[data-panel-open="false"] { grid-template-columns: minmax(0, 1fr); }
  .control-panel { position: fixed; inset: 0 auto 0 0; z-index: var(--z-drawer); width: min(88vw, 360px); height: 100dvh; padding: 0 24px 24px; }
  .panel-backdrop { display: block; position: fixed; inset: 0; z-index: var(--z-backdrop); width: 100%; height: 100%; padding: 0; border: 0; background: var(--scrim); }
  .preview-shell { grid-column: 1; }
  .panel-tabs button { font-size: 12px; }
  .panel-intro h1 { font-size: 17px; }
  .section-heading h2 { font-size: 14px; }
  .section-help, .vpn-detail, .empty-state { font-size: 12px; }
  .welcome-card { margin-top: 28px; }
  .auth-art-copy { margin: 150px 32px 80px; }
  .auth-art-copy h2 { font-size: 36px; }
  .auth-brand { left: 32px; }
  .auth-form-wrap { padding: 32px; }
}
@media (max-width: 700px) {
  .auth-gate { grid-template-columns: 1fr; grid-template-rows: 168px 1fr; }
  .auth-art > img { object-position: center 55%; }
  .auth-brand { top: 24px; left: 24px; }
  .auth-art-copy { display: none; }
  .auth-art-copy h2 { margin: 8px 0 0; font-size: 25px; line-height: 1.3; }
  .auth-art-copy h2 br { display: none; }
  .art-caption { font-size: 11px; }
  .auth-art-copy p, .art-signature { display: none; }
  .auth-form-wrap { padding: 30px 28px; align-items: start; }
  .auth-card h1 { font-size: 26px; margin-top: 8px; }
  .auth-card > p:not(.auth-error):not(.auth-footnote) { margin-bottom: 20px; }
  .auth-card .auth-footnote { margin-top: 24px; }
  .auth-greeting { display: none; }
}
@media (max-width: 600px) {
  .quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 5px 8px max(5px, env(safe-area-inset-bottom)); }
  .quick-actions > * { flex: 1; min-width: 0; }
  .quick-action { width: 100%; min-width: 0; min-height: 58px; flex-direction: column; gap: 5px; padding: 7px 2px; font-size: 11px; }
  .quick-action .icon { width: 20px; height: 20px; }
  .bookmark-panel { position: fixed; bottom: calc(80px + env(safe-area-inset-bottom)); left: 12px; right: 12px; width: auto; transform: none; }
  .welcome-card { width: calc(100% - 40px); margin: 24px auto; }
  .welcome-art { height: 156px; }
  .welcome-copy { padding-top: 25px; }
  .welcome-copy h2 { font-size: 23px; }
  .welcome-copy > p { font-size: 12px; }
  .welcome-actions { gap: 8px; margin-top: 20px; }
  .welcome-actions .primary-button { padding: 0 12px; font-size: 12px; }
  .welcome-hint { margin-top: 24px; padding-top: 16px; font-size: 10px; }
  .connection-status { font-size: 10px; }
}
@media (max-height: 740px) and (min-width: 901px) { .welcome-card { margin-top: 24px; } .welcome-art { height: 160px; } .welcome-copy { padding-top: 22px; } .welcome-hint { margin-top: 22px; } .auth-art-copy { margin-top: 125px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.auto-filter-control { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; }
.auto-filter-control strong { display: block; font-size: 13px; font-weight: 650; }
.auto-filter-control small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.auto-filter-control input { appearance: none; flex: 0 0 auto; width: 40px; height: 24px; margin: 0; padding: 3px; border: 0; border-radius: 99px; background: #98a99f; cursor: pointer; }
.auto-filter-control input::before { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: white; transition: transform var(--motion-fast) var(--ease-out); }
.auto-filter-control input:checked { background: var(--accent); }
.auto-filter-control input:checked::before { transform: translateX(16px); }
.auto-filter-control input:disabled { opacity: .4; cursor: not-allowed; }
.auto-filter-summary { margin: 14px 0 0; color: var(--accent-dark); font-size: 11px; line-height: 1.7; }
.auto-filter-details { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.auto-filter-details summary { display: list-item; min-height: 36px; padding: 8px 0; }
.auto-filter-details p { margin: 4px 0; }
@media (prefers-reduced-motion: reduce) { .auto-filter-control input::before { transition: none; } }
