@font-face { font-family: 'Plex Sans'; src: url('./fonts/plex-sans-400.woff2') format('woff2'); font-weight: 400; }
@font-face { font-family: 'Plex Sans'; src: url('./fonts/plex-sans-600.woff2') format('woff2'); font-weight: 600; }
@font-face { font-family: 'Plex Sans'; src: url('./fonts/plex-sans-700.woff2') format('woff2'); font-weight: 700; }
@font-face { font-family: 'Plex Serif'; src: url('./fonts/plex-serif-400.woff2') format('woff2'); font-weight: 400; }
:root {
  color-scheme: light;
  --ink: #2a1413;
  --deep: #7a1a1a;
  --deep-2: #8f201f;
  --accent: #dc2b2d;
  --paper: #fdeaea;
  --surface: #ffffff;
  --line: #f0d4d3;
  --muted: #7d6362;
  --error: #9c1f1d;
  --success: #466832;
  --success-bg: #dae9d1;
  --alert-bg: #feeeae;
  --alert-text: #987901;
  font-family: 'Plex Sans', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 860px; min-height: 100vh; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, input:focus-visible { outline: 3px solid #dc2b2d; outline-offset: 3px; }
.app-shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--deep); color: #fbeceb; display: flex; flex-direction: column; padding: 32px 28px 28px; position: relative; overflow: hidden; }
.sidebar::after { content: ""; position: absolute; width: 290px; height: 290px; right: -180px; bottom: 140px; border: 1px solid #a1403e; border-radius: 50%; box-shadow: 0 0 0 45px #ffffff05, 0 0 0 90px #ffffff04; pointer-events: none; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 800; letter-spacing: .11em; position: relative; z-index: 1; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; color: #ffffff; background: #ffffff; border-radius: 8px; font-size: 20px; }
.brand-mark img { display: block; width: 20px; height: 20px; }
.brand-light { color: #e3b1af; font-weight: 500; }
.sidebar-middle { margin: auto 0; position: relative; z-index: 1; }
.eyebrow { display: inline-block; color: #cc8886; font-size: 11px; letter-spacing: .17em; font-weight: 800; text-transform: uppercase; }
.eyebrow.light { color: var(--accent); }
h1 { margin: 17px 0 17px; font: 400 43px/.99 'Plex Serif', Georgia, serif; letter-spacing: -.05em; }
.period { color: var(--accent); }
.sidebar-middle p { margin: 0; max-width: 205px; color: #e3bcba; font-size: 14px; line-height: 1.6; }
.sidebar-bottom { display: flex; align-items: flex-start; gap: 10px; border-top: 1px solid #99413f; padding-top: 22px; z-index: 1; }
.connection-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #c08e8c; box-shadow: 0 0 0 4px #ffffff16; }
.connection-dot.ready { background: var(--accent); box-shadow: 0 0 0 4px #dc2b2d2d; }
.connection-dot.connecting { background: #e9c879; }
.sidebar-bottom strong, .sidebar-bottom small { display: block; }
.sidebar-bottom strong { font-size: 13px; }
.sidebar-bottom small { color: #dba6a4; font-size: 11px; margin-top: 4px; line-height: 1.4; }
.workspace { max-width: 860px; width: 100%; margin: 0 auto; padding: 31px 48px 26px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-note { font: 11px Consolas, monospace; color: var(--muted); }
.icon-button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); transition: background .18s, color .18s, border-color .18s; }
.icon-button:hover { background: #fdeaea; color: var(--ink); border-color: #f0d4d3; }
.icon-button .icon { width: 15px; height: 15px; }
.heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 31px 0 22px; }
h2 { font: 400 34px/1.12 'Plex Serif', Georgia, serif; letter-spacing: -.035em; margin: 0 0 8px; }
.heading p { margin: 0; color: var(--muted); font-size: 14px; }
.step-marker { color: #a68684; font: 12px Consolas, monospace; white-space: nowrap; margin-top: 7px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.mode { text-align: left; padding: 15px 17px; display: flex; align-items: center; gap: 13px; background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); transition: background .18s, border-color .18s, transform .18s; }
.mode:hover { transform: translateY(-2px); border-color: #e3a6a4; }
.mode.active { background: var(--surface); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 7px 22px #2a14130c; }
.mode-icon { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #f0d4d3; border-radius: 8px; color: #b2302e; font: 20px Consolas, monospace; }
.mode.active .mode-icon { background: #fbdcdb; border-color: #f3c9c8; }
.mode strong, .mode small { display: block; }
.mode strong { font-size: 14px; }
.mode small { margin-top: 3px; font-size: 11px; color: var(--muted); }
.input-card, .status-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px #2a141308; }
.input-card { padding: 22px 24px 20px; }
label { display: block; margin-bottom: 11px; font-size: 13px; font-weight: 700; }
.input-wrap { display: flex; align-items: stretch; border: 1px solid #e3b6b4; border-radius: 8px; overflow: hidden; height: 49px; transition: border-color .2s, box-shadow .2s; }
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #dc2b2d1c; }
.country { display: flex; align-items: center; padding: 0 14px; background: #fdeaea; border-right: 1px solid #f3d6d6; color: #a83a37; font: 12px Consolas, monospace; white-space: nowrap; }
input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 0 15px; font-size: 17px; letter-spacing: .03em; }
input::placeholder { color: #c79e9c; }
.hint { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.file-picker { width: 100%; border: 1px dashed #e3a6a4; border-radius: 8px; background: #fdf1f1; display: flex; gap: 14px; align-items: center; text-align: left; padding: 15px 17px; color: var(--ink); transition: border-color .18s, background .18s; }
.file-picker:hover { border-color: var(--accent); background: #fde4e4; }
.file-picker-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 8px; background: #fbdcdb; color: #b23230; font-size: 23px; }
.file-picker strong, .file-picker small { display: block; }
.file-picker strong { font-size: 13px; max-width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-picker small { color: var(--muted); font-size: 11px; margin-top: 4px; }
.file-chevron { margin-left: auto; color: #c08482; font-size: 18px; }
.import-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.import-link { border: 0; background: transparent; color: #b8231f; padding: 0; font-size: 11px; font-weight: 700; white-space: nowrap; }
.import-link:hover:not(:disabled) { text-decoration: underline; }
.import-row span { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-row { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.primary { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--deep); border-radius: 8px; background: var(--deep); color: white; padding: 12px 17px; font-size: 13px; font-weight: 700; transition: transform .18s, background .18s; }
.primary:hover:not(:disabled) { background: var(--deep-2); transform: translateY(-2px); }
.primary:disabled { border-color: #c7bcbb; background: #a9a09f; opacity: 1; }
.secondary { border: 0; background: transparent; color: var(--error); font-size: 12px; font-weight: 700; padding: 8px 0; }
.icon { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: none; }
.overlay { position: fixed; inset: 0; background: #1f0f0ed9; display: grid; place-items: center; padding: 24px; z-index: 50; }
.onboarding-card { background: var(--surface); border-radius: 14px; max-width: 480px; width: 100%; padding: 20px 20px 18px; box-shadow: 0 24px 60px #0f1d1640; }
.onboarding-viewport { overflow: hidden; border-radius: 10px; }
.onboarding-track { display: flex; transition: transform .35s ease; }
.onboarding-slide { flex: 0 0 100%; min-width: 0; box-sizing: border-box; padding: 0 2px; }
.onboarding-slide img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.onboarding-slide h2 { font: 400 22px/1.2 'Plex Serif', Georgia, serif; letter-spacing: -.02em; margin: 16px 0 6px; }
.onboarding-slide p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.onboarding-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.onboarding-dots { display: flex; gap: 7px; }
.dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--line); }
.dot.active { width: 20px; border-radius: 4px; background: var(--deep); transition: width .2s ease; }
.onboarding-nav { display: flex; gap: 10px; }
.ghost { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.ghost:disabled { opacity: .35; }
.ghost:hover:not(:disabled) { border-color: #e3a6a4; background: #fdf1f1; }
.ghost.danger { color: var(--error); border-color: #e1b2a9; }
.ghost.danger:hover:not(:disabled) { background: #fff3f1; border-color: var(--error); }
.settings-card { background: var(--surface); border-radius: 14px; max-width: 440px; width: 100%; max-height: calc(100vh - 48px); overflow-y: auto; padding: 22px 24px 26px; box-shadow: 0 24px 60px #0f1d1640; }
.settings-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.settings-head h2 { font: 400 22px/1.2 'Plex Serif', Georgia, serif; letter-spacing: -.02em; margin: 0; }
.settings-block { padding: 18px 0; border-top: 1px solid var(--line); }
.settings-block:first-of-type { border-top: 0; }
.settings-block h3 { margin: 0 0 6px; font-size: 13px; }
.settings-block > p { margin: 0 0 12px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.settings-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.settings-row:last-child { margin-bottom: 0; }
.settings-row input { width: 90px; border: 1px solid #e3b6b4; border-radius: 8px; padding: 9px 12px; font-size: 14px; color: var(--ink); background: transparent; }
.settings-row input:focus-visible { border-color: var(--accent); }
.settings-row input#phone-column-input { width: 100%; max-width: 280px; }
.settings-row-label { font-size: 12px; color: var(--muted); flex: 1; }
.settings-version { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font: 11px Consolas, monospace; color: var(--muted); }
.feedback-ok { color: var(--success) !important; }
.feedback-error { color: var(--error) !important; }
.onboarding-nav .primary { padding: 10px 16px; }
.status-card { margin-top: 15px; padding: 19px 24px 22px; min-height: 158px; }
.status-head { display: flex; align-items: center; justify-content: space-between; }
.badge { border: 1px solid #f0d4d3; border-radius: 100px; color: #8a6361; padding: 5px 10px; font: 11px Consolas, monospace; }
.badge.running { border-color: #cadfb0; color: #437345; background: #f3f8e7; }
.badge.error { border-color: #f0dfa0; color: var(--alert-text); background: var(--alert-bg); }
.empty-state { display: flex; align-items: center; gap: 15px; margin-top: 28px; }
.empty-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; border: 1px solid #f0d4d3; color: #b2615d; font-size: 25px; }
.empty-state strong, .qr-state strong { font-size: 13px; }
.empty-state p, .qr-state p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.qr-placeholder { display: grid; place-items: center; flex: 0 0 180px; width: 180px; height: 180px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 34px; }
.qr-modal { z-index: 90; }
.qr-modal-card { background: var(--surface); border-radius: 14px; max-width: 360px; width: 100%; padding: 26px 24px 22px; box-shadow: 0 24px 60px #0f1d1640; text-align: center; display: flex; flex-direction: column; align-items: center; }
.qr-modal-card .qr-placeholder, .qr-modal-card img { margin: 0 auto 18px; }
.qr-modal-card img { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.qr-modal-card h2 { font: 400 20px/1.2 'Plex Serif', Georgia, serif; letter-spacing: -.02em; margin: 0 0 8px; }
.qr-modal-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.qr-modal-status { margin-top: 14px !important; font: 12px Consolas, monospace !important; color: var(--ink) !important; }
.qr-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.single-state { display: flex; align-items: center; gap: 15px; padding: 24px 0 8px; }
.result-symbol { display: grid; place-items: center; width: 49px; height: 49px; background: var(--success-bg); color: var(--success); border-radius: 50%; font-size: 26px; }
.result-symbol.no { color: var(--error); background: #fbeae5; }
.single-state small, .single-state strong { display: block; }
.single-state small { color: var(--muted); font: 13px Consolas, monospace; margin-bottom: 4px; }
.single-state strong { font-size: 18px; }
.batch-state { padding-top: 21px; }
.batch-totals { display: flex; gap: 40px; }
.batch-totals div { display: flex; align-items: baseline; gap: 7px; }
.batch-totals strong { font: 400 29px 'Plex Serif', Georgia, serif; }
.batch-totals span { color: var(--muted); font-size: 11px; }
.progress-track { margin-top: 14px; height: 8px; border-radius: 100px; background: #f5e0df; overflow: hidden; }
#progress-fill { height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .35s ease; }
.batch-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font: 11px Consolas, monospace; }
.results-actions { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 15px; }
.results-actions button { color: #b8231f; font-size: 12px; font-weight: 700; padding: 0; border: 0; background: transparent; }
.results-actions button:hover:not(:disabled) { text-decoration: underline; }
.error-message { margin: 17px 0 0; padding: 10px 12px; border-left: 3px solid var(--alert-text); background: var(--alert-bg); color: var(--alert-text); font-size: 12px; line-height: 1.45; }
footer { margin-top: 20px; color: #8c7372; font-size: 11px; line-height: 1.4; }
[hidden] { display: none !important; }
@media (max-width: 950px) { .app-shell { grid-template-columns: 235px minmax(0,1fr); } .workspace { padding: 31px 30px 24px; } .sidebar { padding: 28px 23px; } h1 { font-size: 36px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
