/* ── ihatepdf clone — dark zinc theme ─────────────────────────── */
:root {
  --bg: #09090b;
  --panel: #18181b;
  --panel-hover: #1c1c1f;
  --border: #27272a;
  --border-hover: #3f3f46;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --green: #22c55e;
  --text: #fafafa;
  --text-body: #a1a1aa;
  --text-dim: #71717a;
  --text-faint: #52525b;
  --danger: #ef4444;
  --warn: #eab308;
  --radius: 10px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* ── header / footer ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-dot { color: var(--accent); }
.top-nav { display: flex; gap: 20px; margin-left: auto; }
.top-nav a { color: var(--text-body); font-size: 0.9rem; transition: color .15s; }
.top-nav a:hover { color: var(--text); }
.privacy-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text-body); font-size: 0.78rem;
  border-radius: 999px; padding: 5px 13px; white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

.site-footer { border-top: 1px solid var(--border); margin-top: 72px; padding: 40px 0 48px; }
.footer-brand { font-weight: 600; margin: 0 0 8px; }
.footer-note { color: var(--text-dim); font-size: 0.85rem; max-width: 720px; margin: 0 0 10px; line-height: 1.6; }
.footer-meta { color: var(--text-faint); font-size: 0.78rem; margin: 0; }

/* ── hero ────────────────────────────────────────────────────── */
.hero { padding: 56px 0 8px; }
.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 14px;
}
.hero h1 .hl { color: var(--accent); }
.tagline { color: var(--text-body); max-width: 680px; margin: 0 0 24px; line-height: 1.65; }
.tagline strong { color: var(--text); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 36px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px; font-size: 0.8rem; color: var(--text-body);
}

.search-wrap { position: relative; max-width: 460px; margin-bottom: 44px; }
.search-wrap input {
  width: 100%; background: var(--panel); border: 1px solid var(--border);
  color: var(--text); border-radius: 999px; padding: 11px 18px 11px 42px;
  font-size: 0.92rem; outline: none; transition: border-color .15s;
}
.search-wrap input:focus { border-color: var(--accent); }
.search-wrap svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); opacity: .5; }

/* ── tool grid ───────────────────────────────────────────────── */
.category { margin-bottom: 48px; scroll-margin-top: 80px; }
.category h2 {
  font-size: 0.95rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-faint); margin: 0 0 16px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

.card {
  display: block; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; transition: border-color .15s, background .15s;
}
.card:hover { border-color: var(--border-hover); background: var(--panel-hover); }
.card-name { font-size: 0.95rem; font-weight: 600; color: #e4e4e7; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.card-desc { font-size: 0.82rem; color: var(--text-dim); line-height: 1.45; margin: 0; }
.card-soon { opacity: .55; }
.soon-tag {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  color: var(--warn); border: 1px solid rgba(234, 179, 8, .35);
  border-radius: 4px; padding: 1px 5px; letter-spacing: .06em;
}
.ready-tag {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  color: var(--green); border: 1px solid rgba(34, 197, 94, .35);
  border-radius: 4px; padding: 1px 5px; letter-spacing: .06em;
}
.no-results { color: var(--text-dim); padding: 32px 0; text-align: center; }

/* ── prose sections ──────────────────────────────────────────── */
.prose { margin-bottom: 56px; scroll-margin-top: 80px; }
.prose h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.01em; }
.prose p { color: var(--text-body); font-size: 0.93rem; line-height: 1.7; margin: 0 0 12px; max-width: 800px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 8px 28px; max-width: 900px; }
.feature-list li { color: var(--text-body); font-size: 0.92rem; line-height: 1.55; padding-left: 22px; position: relative; }
.feature-list li::before { content: "\2022"; color: var(--accent); position: absolute; left: 4px; font-weight: bold; }

/* ── tool page ───────────────────────────────────────────────── */
.tool-page { padding-top: 40px; }
.crumbs { color: var(--text-faint); font-size: 0.8rem; margin-bottom: 18px; }
.crumbs a:hover { color: var(--text-body); }
.tool-head h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.tool-desc { color: var(--text-body); max-width: 720px; margin: 0 0 28px; line-height: 1.65; }

.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 18px;
}
.panel h3 { margin: 0 0 14px; font-size: 0.95rem; font-weight: 600; }

.dropzone {
  border: 2px dashed var(--border-hover); border-radius: var(--radius);
  padding: 44px 20px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s; color: var(--text-dim);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .dz-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.dropzone .dz-main { color: var(--text); font-weight: 600; margin-bottom: 4px; }
.dropzone .dz-sub { font-size: 0.82rem; }

.file-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px; font-size: 0.86rem;
}
.file-item .fi-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.file-item .fi-size { color: var(--text-faint); font-size: 0.78rem; white-space: nowrap; }
.icon-btn {
  background: none; border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 6px; cursor: pointer; padding: 3px 8px; font-size: 0.8rem; line-height: 1.3;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-hover); }
.icon-btn.remove:hover { color: var(--danger); border-color: var(--danger); }

.opts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 18px; }
.opt label { display: block; font-size: 0.78rem; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
.opt input[type="text"], .opt input[type="number"], .opt input[type="password"],
.opt select, .opt textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 9px 12px; font-size: 0.88rem; outline: none;
  font-family: inherit;
}
.opt input:focus, .opt select:focus, .opt textarea:focus { border-color: var(--accent); }
.opt input[type="color"] { width: 100%; height: 38px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; cursor: pointer; }
.opt input[type="range"] { width: 100%; accent-color: var(--accent); }
.opt-check { display: flex; align-items: center; gap: 8px; color: var(--text-body); font-size: 0.88rem; padding-top: 22px; }
.opt-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.opt-wide { grid-column: 1 / -1; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-primary {
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 11px 26px; font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: filter .15s;
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-secondary {
  background: var(--panel); color: var(--text-body); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 22px; font-size: 0.88rem; font-weight: 500; cursor: pointer;
}
.btn-secondary:hover { color: var(--text); border-color: var(--border-hover); }

.status { margin: 16px 0 0; font-size: 0.88rem; color: var(--text-dim); min-height: 1.3em; }
.status.ok { color: var(--green); }
.status.err { color: var(--danger); }
.progress-bar { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress-bar > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }

.results { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.result-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.88rem;
}
.result-item .ri-name { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-item .ri-size { color: var(--text-faint); font-size: 0.78rem; white-space: nowrap; }

.text-output {
  width: 100%; min-height: 260px; resize: vertical;
  background: var(--bg); border: 1px solid var(--border); color: var(--text-body);
  border-radius: var(--radius-sm); padding: 14px; font-size: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap; outline: none; line-height: 1.55;
}

.meta-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.meta-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.meta-table td:first-child { color: var(--text-dim); width: 180px; font-weight: 600; }
.meta-table td:last-child { color: var(--text-body); word-break: break-all; }
.flag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.flag {
  font-size: 0.76rem; border-radius: 999px; padding: 4px 12px;
  border: 1px solid var(--border); color: var(--text-dim);
}
.flag.bad { border-color: rgba(239, 68, 68, .45); color: var(--danger); }
.flag.good { border-color: rgba(34, 197, 94, .45); color: var(--green); }

.back-link { display: inline-block; margin: 26px 0 8px; color: var(--text-faint); font-size: 0.85rem; }
.back-link:hover { color: var(--text-body); }

.coming-panel { text-align: center; padding: 56px 24px; }
.coming-panel .big { font-size: 2.4rem; margin-bottom: 12px; }
.coming-panel h2 { margin: 0 0 10px; }
.coming-panel p { color: var(--text-dim); max-width: 480px; margin: 0 auto 22px; font-size: 0.92rem; }

/* ── FAQ / guides / rating ───────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 8px; background: var(--panel); max-width: 800px;
}
.faq-item summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 0.92rem; color: #e4e4e7; }
.faq-item p { padding: 0 16px 14px; color: var(--text-body); font-size: 0.88rem; line-height: 1.6; margin: 0; }
.guide-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.guide-list a { color: var(--accent); font-size: 0.95rem; }
.guide-list a:hover { text-decoration: underline; }

.rate-row { display: flex; align-items: center; gap: 12px; margin: 20px 0; padding: 12px 16px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.85rem; color: var(--text-body); }
.stars { display: inline-flex; gap: 2px; }
.star { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--border-hover); padding: 0 3px; transition: transform .1s; }
.star:hover { transform: scale(1.2); }
.star.on { color: #f59e0b; }
.rate-note { color: var(--text-faint); font-size: 0.78rem; }

.related { margin-top: 36px; }
.related h2 { font-size: 1.05rem; margin: 0 0 14px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 10px 0; }
.footer-links a { color: var(--text-dim); font-size: 0.82rem; }
.footer-links a:hover { color: var(--text-body); }

.muted-note { color: var(--text-faint); font-size: 0.8rem; line-height: 1.55; margin: 8px 0 14px; }

/* ── rich editor / create-pdf ────────────────────────────────── */
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.editor-toolbar button {
  background: var(--bg); border: 1px solid var(--border); color: var(--text-body);
  border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: 0.85rem;
}
.editor-toolbar button:hover { color: var(--text); border-color: var(--border-hover); }
.rich-editor {
  min-height: 320px; background: #fdfdfd; color: #16181d;
  border-radius: var(--radius-sm); padding: 26px 30px; outline: none;
  font-family: Georgia, serif; line-height: 1.6; overflow-y: auto;
}
.rich-editor:focus { box-shadow: 0 0 0 2px var(--accent-soft), inset 0 0 0 1px var(--accent); }

/* ── page editor (edit/redact) ───────────────────────────────── */
.ed-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.ed-toolbar button {
  background: var(--panel); border: 1px solid var(--border); color: var(--text-body);
  border-radius: 6px; padding: 7px 13px; cursor: pointer; font-size: 0.84rem;
}
.ed-toolbar button:hover { color: var(--text); border-color: var(--border-hover); }
.ed-toolbar button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.ed-toolbar button[data-save] { margin-left: auto; }
.ed-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.ed-stage, .red-stage {
  background: #141417; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; overflow: auto; text-align: center;
}
.ed-page { position: relative; display: inline-block; box-shadow: 0 4px 24px rgba(0,0,0,.5); }
.ed-page canvas { display: block; max-width: 100%; }
.ed-overlay { position: absolute; inset: 0; cursor: crosshair; }
.ov-text {
  position: absolute; outline: 1px dashed rgba(59,130,246,.7); background: rgba(255,255,255,.06);
  font-family: Helvetica, Arial, sans-serif; line-height: 1.15; min-width: 40px; padding: 0 2px;
  cursor: text; white-space: pre;
}
.ov-text:focus { outline: 1px solid var(--accent); background: rgba(255,255,255,.9); }
.ov-white { position: absolute; background: #fff; border: 1px dashed #999; }
.ov-white.dragging { background: rgba(255,255,255,.75); }
.ov-img { position: absolute; touch-action: none; }
.ov-img img { display: block; pointer-events: none; user-select: none; }
.ov-redact { position: absolute; background: #000; border: 1px dashed #ef4444; }
.ov-redact.dragging { background: rgba(0,0,0,.65); }

.modal-back {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px);
}
.modal-card {
  background: var(--panel); border: 1px solid var(--border-hover); border-radius: var(--radius);
  padding: 22px; max-width: 500px; width: calc(100% - 40px);
}
.modal-card h3 { margin: 0 0 14px; }
.sig-pad { width: 100%; background: #fff; border-radius: var(--radius-sm); touch-action: none; cursor: crosshair; }
.modal-card .actions { margin-top: 14px; }

/* ── compare view ────────────────────────────────────────────── */
.compare-head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: .82rem; color: var(--text-dim); padding: 8px 2px; }
.compare-scroll { max-height: 72vh; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; background: #101013; }
.compare-cell { position: relative; background: #fff; border-radius: 6px; overflow: hidden; min-height: 60px; }
.compare-cell.empty { background: #1a1a1e; }
.compare-tag { position: sticky; top: 0; z-index: 2; font-size: .68rem; color: #ddd; background: rgba(20,20,23,.85);
  padding: 3px 8px; backdrop-filter: blur(4px); }
.compare-none { display: grid; place-items: center; height: 200px; color: #44474f; font-size: 1.6rem; }
.compare-cell canvas { display: block; }

/* ── camera scanner ──────────────────────────────────────────── */
.cam-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; max-width: 560px; }
.cam-wrap video { display: block; width: 100%; }
.cam-actions { display: flex; align-items: center; gap: 16px; padding: 12px; justify-content: center; }
.thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 0; }
.thumb { position: relative; }
.thumb img { width: 96px; height: 128px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-hover); }
.thumb button { position: absolute; top: -6px; right: -6px; background: var(--bg); }

/* ── chat ────────────────────────────────────────────────────── */
.chat-box { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.chat-log { max-height: 380px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 9px 14px; border-radius: 12px; font-size: 0.88rem; line-height: 1.55; white-space: pre-wrap; }
.msg.bot { background: var(--panel); border: 1px solid var(--border); align-self: flex-start; color: var(--text-body); }
.msg.user { background: var(--accent); color: #fff; align-self: flex-end; }
.chat-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-q { flex: 1; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.9rem; outline: none; }
.chat-q:focus { border-color: var(--accent); }
.chat-settings { padding: 10px 14px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-dim); }
.chat-settings summary { cursor: pointer; }
.chat-settings .radio { display: block; margin: 8px 0 4px; }
.chat-settings input[type="password"] {
  width: 100%; margin-top: 8px; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; padding: 8px 10px; outline: none;
}

/* ── audio player / recorder ─────────────────────────────────── */
.player-panel, .rec-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.player-info { color: var(--text-body); font-size: .86rem; margin-bottom: 12px; }
.player-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.player-controls label { color: var(--text-dim); font-size: .8rem; display: flex; align-items: center; gap: 6px; }
.player-controls select { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 5px; max-width: 220px; }
.player-status { margin-top: 10px; color: var(--text-faint); font-size: .8rem; }
.rec-hint { color: var(--text-faint); font-size: .78rem; margin-left: 10px; }

/* ── P2P ─────────────────────────────────────────────────────── */
.p2p-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.p2p-pane { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.p2p-pane legend { color: var(--text-body); font-size: .85rem; font-weight: 600; padding: 0 6px; }
.p2p-pane textarea {
  width: 100%; height: 74px; resize: vertical; background: var(--bg); border: 1px solid var(--border);
  color: var(--text-body); border-radius: 6px; padding: 8px 10px; font-size: .72rem;
  font-family: ui-monospace, monospace; word-break: break-all; outline: none;
}
.send-progress { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; display: none; }
.send-progress.active { display: block; }
.send-progress div { height: 100%; width: 0; background: var(--accent); transition: width .15s; }

/* ── whiteboard ──────────────────────────────────────────────── */
.wb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.wb-bar label { display: flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: .8rem; }
.wb-bar input[type="text"] { background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 6px 10px; width: 130px; outline: none; }
.wb-bar input[type="color"] { width: 34px; height: 30px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); padding: 2px; cursor: pointer; }
.wb-stage { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.wb-stage canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; }

/* ── invoice & POS forms ─────────────────────────────────────── */
.inv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.inv-grid label { display: flex; flex-direction: column; gap: 5px; color: var(--text-dim); font-size: .76rem; font-weight: 600; }
.inv-grid input, .inv-grid select { background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 8px 11px; font-size: .88rem; outline: none; }
.inv-grid input:focus { border-color: var(--accent); }
.items-box { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 16px; }
.items-box legend { color: var(--text-body); font-size: .82rem; font-weight: 600; padding: 0 6px; }
.items-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.items-table th { text-align: left; color: var(--text-faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; padding: 4px 6px; }
.items-table td { padding: 3px 6px; }
.items-table input, .items-table select {
  width: 100%; min-width: 50px; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 7px 9px; font-size: .84rem; outline: none;
}
.items-table input:first-child { min-width: 180px; }

.pos-add { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; margin-bottom: 14px; }
.pos-add input { background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 8px 11px; font-size: .86rem; outline: none; }
.cart-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.cart-item { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px; font-size: .86rem; color: var(--text-body); }
.cart-item span { flex: 1; }
.cart-total { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }

@media (max-width: 720px) {
  .pos-add { grid-template-columns: 1fr 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .top-nav { display: none; }
  .hero { padding-top: 36px; }
  .header-inner { justify-content: space-between; }
}
