:root {
  --paper: #f6f7f6;
  --ink: #1a1e1c;
  --muted: #4e5853;
  --faint: #7a837e;
  --line: #e1e4e2;
  --line-strong: #c9cfcb;
  --green: #1e4636;
  --green-soft: #e6f0eb;
  --today: #8c3418;
  --soon: #7a4e0f;
  --serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
  --pad: 32px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
}

img { max-width: 100%; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: var(--green); }

h1, h2, h3, p { margin: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 10px;
  z-index: 10;
}

.skip:focus { top: 12px; }

.app { display: flex; min-height: 100vh; background: #fff; }

.side {
  width: 228px;
  flex: none;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--line);
  padding: 22px 14px 28px;
  background: #fff;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 2px 8px 14px;
}

.brand img { width: 36px; height: 36px; display: block; }

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 11px;
}

.nav-label {
  margin: 16px 10px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.nav a {
  display: block;
  padding: 6px 10px;
  text-decoration: none;
  color: var(--ink);
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
}

.nav a:hover { background: var(--paper); }

.nav a[aria-current="page"] {
  border-left-color: var(--green);
  color: var(--green);
  font-weight: 600;
}

.main { flex: 1; min-width: 0; background: var(--paper); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--pad) 36px 72px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 16px;
}

h1 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lead {
  margin-top: 8px;
  max-width: 42rem;
  color: var(--muted);
}

.today-label {
  margin: 0;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.crumb {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--green); }
.crumb span { margin: 0 4px; color: var(--faint); }

.block { margin-top: 28px; }

.block h2,
.sheet h2,
.month h3,
.ledger h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.block h2 { margin-bottom: 6px; }

.sub, .hint, .empty, .date, .who-device, .muted {
  color: var(--muted);
}

.sub { margin-bottom: 4px; font-size: 14px; }

.hint { margin-top: 6px; font-size: 13px; }

.empty { padding: 8px 0 2px; }

.jumps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.jump {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.jump:hover { border-color: var(--green); }

.jump strong { display: block; font-size: 14px; font-weight: 600; }

.jump span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.control {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(148px, auto) auto;
  gap: 8px 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.earbox { display: flex; flex-direction: column; gap: 4px; }

.ear {
  display: block;
  text-align: center;
  padding: 3px 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  background: #fff;
}

.ear.on {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-soft);
}

.who-name {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.who-name:hover { text-decoration: underline; }

.who-device { margin: 2px 0 6px; font-size: 14px; }

.sn-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sn-row + .sn-row { margin-top: 2px; }

.sn {
  font-family: var(--mono);
  line-height: 1;
}

.sn-head {
  color: var(--faint);
  font-size: 13px;
}

.sn b {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.sn-ear {
  width: 28px;
  flex: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.when { text-align: right; }

.interval { font-weight: 600; }

.when .date { font-size: 13px; margin-top: 2px; }

.act { text-align: right; }

.next-note {
  margin-top: 6px;
  max-width: 220px;
  margin-left: auto;
  font-size: 12px;
  color: var(--green);
}

.is-late { color: var(--today); font-weight: 600; }
.is-soon { color: var(--soon); font-weight: 600; }
.is-ok { color: var(--green); font-weight: 600; }

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.2;
  white-space: nowrap;
}

.btn:hover { border-color: var(--green); }

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn-primary:hover { background: #17382b; color: #fff; }

.btn.is-on,
.btn[aria-pressed="true"] {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.search { min-width: min(320px, 100%); }

.search span,
.field label,
.checkline strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}

textarea { min-height: 96px; resize: vertical; }

.table, .book {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.book th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.table td,
.book td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table tbody tr:hover td,
.book tbody tr:hover td { background: #f3f6f4; }

.num, .bar-n, .book td.num, .table td.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.table td.num, .book td.num, .table th.num, .book th.num, .bar-n {
  text-align: right;
  white-space: nowrap;
}

.tc {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.link-ink { color: inherit; text-decoration: none; font-weight: 600; }
.link-ink:hover { text-decoration: underline; }

.strike {
  color: var(--faint);
  text-decoration: line-through;
  margin-right: 6px;
  font-size: 12px;
}

.nil { color: var(--faint); }

.sheet {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sheet h2 { margin-bottom: 14px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.span-2 { grid-column: 1 / -1; }

.dl {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}

.dl dt { color: var(--muted); }
.dl dd { margin: 0; }

.device { padding: 18px 0; border-top: 1px solid var(--line); }

.device-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.device h3 { font-size: 18px; font-weight: 600; }

.device .dl { margin-top: 14px; }

.shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.shot, .shots img, .preview-shot {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f3f5f4;
}

.shot { position: relative; margin: 0; }

.shot img { width: 100%; height: 100%; display: block; }

.shot figcaption, .fine {
  font-size: 12px;
  color: var(--muted);
}

.shot button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  line-height: 1;
}

.shots-wrap { margin-top: 14px; }

.picks, .filters { display: flex; flex-wrap: wrap; gap: 8px; }

.pick { position: relative; }

.pick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pick span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  font-weight: 600;
}

.pick input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.pick input:focus-visible + span {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cats .pick span { width: 100%; min-width: 0; }

.checkline {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.checkline input { width: 18px; height: 18px; margin-top: 2px; flex: none; }

.checkline small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.checkline:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
}

.sn-preview { font-size: 13px; color: var(--muted); }
.sn-preview .sn b { font-size: 18px; }

.form-error {
  margin: 0;
  color: var(--today);
  font-weight: 600;
}

.banner {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--green-soft);
}

.preview { margin-top: 16px; }

.filters { margin: 12px 0; }

.balance strong {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.balance { text-align: right; color: var(--muted); font-size: 13px; }

.month { margin-top: 22px; }
.month h3 { margin-bottom: 6px; }

.kind {
  display: inline-block;
  margin-right: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
}

.bars { list-style: none; margin: 8px 0 0; padding: 0; }

.bars li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(80px, 1.3fr) 2.2rem;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
}

.bar { display: block; height: 6px; background: var(--line); }
.bar > span { display: block; height: 100%; background: var(--green); }

.table tr.total td {
  font-weight: 600;
  border-bottom: 0;
  padding-top: 14px;
}

.az { margin-left: 6px; font-size: 12px; font-weight: 600; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

[hidden] { display: none !important; }

@media (max-width: 860px) {
  .app { display: block; }
  .side {
    position: sticky;
    top: 0;
    z-index: 5;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand { padding: 0 4px 0 0; flex: none; }
  .brand em, .brand small { display: none; }
  .nav {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    flex: 1;
  }
  .nav-label { display: none; }
  .nav a {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 8px 10px;
  }
  .nav a[aria-current="page"] {
    border-left-color: transparent;
    border-bottom-color: var(--green);
  }
  .wrap { padding: 20px 16px 56px; }
}

@media (max-width: 720px) {
  h1 { font-size: 30px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .today-label, .balance, .when, .act { text-align: left; }
  .next-note { margin-left: 0; }
  .control { grid-template-columns: 72px minmax(0, 1fr); }
  .when, .act { grid-column: 2; }
  .form-grid, .split, .dl, .cats { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .table-people thead, .book thead { display: none; }
  .table-people tr, .book tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .table-people td, .book td {
    display: block;
    border: 0;
    padding: 2px 0;
    text-align: left;
  }
  .table-people td.num, .book td.num { text-align: left; }
  .table-people td[data-label]::before,
  .book td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* Web paneli: sakin yeşil, açık yüzeyler ve cihaz takibine odaklı düzen. */
:root {
  --paper: #f5f7f8; --ink: #223c36; --muted: #687a74; --faint: #81918b;
  --line: #e6ece9; --line-strong: #d5dfda; --green: #227458; --green-soft: #eaf4ee;
  --today: #a15134; --soon: #9a6826;
  --serif: "Avenir Next", "Segoe UI", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { font-size: 14px; line-height: 1.55; }
.icon { width: 19px; height: 19px; flex-shrink: 0; vertical-align: middle; }
.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; }
.side { width: 238px; padding: 34px 20px 20px; display: flex; flex-direction: column; }
.brand { padding: 0 3px 30px; gap: 10px; }
.brand img { width: 40px; height: 40px; }
.brand strong { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: -.8px; }
.brand em { font-size: 8px; letter-spacing: 2px; margin-top: 8px; }
.nav-label { font-size: 10px; letter-spacing: 1.7px; margin: 23px 12px 10px; color: var(--faint); }
.nav a { display: flex; gap: 13px; align-items: center; padding: 12px; border: 0; border-radius: 7px; margin: 3px 0; color: #60716a; font-size: 13px; }
.nav a[aria-current="page"] { background: var(--green-soft); color: var(--green); }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); margin-left: auto; }
.side-quick { margin-top: 25px; border-top: 1px solid var(--line); }
.side-bottom { margin-top: auto; padding-top: 45px; }
.side-bottom > small { display: block; font-size: 11px; padding-left: 28px; color: var(--faint); margin-top: 5px; }
.private-label { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.private-label .icon { width: 15px; height: 15px; }
.profile { display: flex; align-items: center; gap: 10px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); font-size: 11px; }
.profile small { display: block; color: var(--muted); margin-top: 2px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; background: #edf2ee; font-family: var(--serif); font-weight: 700; font-size: 14px; flex-shrink: 0; color: #4e7763; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 36px; background: #fff; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.topbar b { color: var(--ink); font-weight: 500; }
.top-separator { margin: 0 14px; color: #bcc9c2; }
.top-date { display: flex; align-items: center; gap: 8px; }
.top-date .icon { width: 15px; }
.wrap { max-width: 1510px; padding: 23px 36px 25px; }
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); margin-bottom: 25px; }
.demo-banner > span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.demo-banner strong { font-weight: 500; color: var(--green); }
.demo-dot { background: #70a48a; width: 6px; height: 6px; border-radius: 50%; }
.text-button { padding: 2px 0; background: none; border: 0; color: var(--green); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; white-space: nowrap; }
h1 { font-family: var(--serif); font-size: 31px; letter-spacing: -1.1px; font-weight: 650; line-height: 1.25; }
.page-head { align-items: center; padding-bottom: 25px; }
.lead { font-size: 13px; margin-top: 6px; color: var(--muted); }
.btn { min-height: 39px; padding: 10px 15px; font-size: 12px; font-weight: 550; border-radius: 7px; transition: background .15s, border-color .15s; }
.btn-primary { box-shadow: 0 2px 3px #15472c0a; }
.btn-small { min-height: 33px; padding: 7px 10px; font-size: 11px; }
.btn-small .icon { width: 14px; height: 14px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 25px; }
.metrics-three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.metric { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 20px; min-width: 0; }
.metric-label { font-size: 12px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; align-items: center; color: var(--muted); }
.metric-label .icon { color: #769886; width: 18px; height: 18px; }
.metric strong { font-size: 31px; font-family: var(--serif); display: block; line-height: 1.25; margin: 12px 0 8px; font-weight: 600; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.metric > span { font-size: 10px; color: var(--muted); display: block; }
.metric.accent { background: #edf6f0; border-color: #d9e9df; }
.metric.accent strong { color: var(--green); }
.metric.warm { background: #fbf5ee; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr) 286px; gap: 22px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 23px; }
.panel-heading h2 { font-size: 15px; font-family: var(--serif); font-weight: 650; letter-spacing: -.25px; text-transform: none; color: var(--ink); margin: 0; }
.panel-heading p { font-size: 11px; margin-top: 5px; color: var(--muted); }
.panel-heading .muted { font-size: 11px; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 5px; color: #557263; background: #eef4ef; font-size: 10px; font-weight: 500; white-space: nowrap; vertical-align: middle; }
.badge-warn { background: #fbf1e6; color: #a06a2d; }
.control-tabs { display: flex; gap: 20px; padding: 0 23px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.control-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 5px 0 13px; display: flex; align-items: center; gap: 7px; color: var(--muted); white-space: nowrap; font-size: 11px; }
.control-tab span { padding: 1px 6px; background: #f0f3f1; color: #65766d; border-radius: 4px; font-size: 10px; }
.control-tab[aria-pressed="true"] { color: var(--green); border-color: var(--green); font-weight: 600; }
.control-tab[aria-pressed="true"] span { background: var(--green-soft); color: var(--green); }
.control-group { padding: 0 23px; }
.group-heading { font-size: 12px; padding-top: 16px; color: var(--muted); font-weight: 500; }
.js-ready .group-heading { display: none; }
.control { grid-template-columns: 39px minmax(135px,1fr) 111px; gap: 7px 13px; padding: 22px 0; }
.control:last-child { border-bottom: 0; }
.control .who { grid-row: span 2; }
.control .earbox { grid-row: span 2; }
.control .when { grid-column: 3; font-size: 11px; }
.control .act { grid-column: 3; }
.control .act .btn { font-size: 10px; padding: 6px 8px; min-height: 31px; gap: 4px; }
.control .act .btn .icon { width: 12px; height: 12px; }
.control .when .date { font-size: 10px; }
.control .next-note { font-size: 9px; margin-top: 5px; line-height: 1.5; }
.ear { padding: 4px 0; font-size: 8px; border-color: #e6eae7; color: #a7b3ac; letter-spacing: .2px; }
.ear.on { border-color: #c8e0d1; color: var(--green); background: #eff7f2; }
.who-name { font-size: 13px; }
.who-device { font-size: 10px; margin: 3px 0 8px; }
.sn-head { font-size: 10px; }
.sn b { font-size: 17px; letter-spacing: 1px; }
.sn-ear { width: 21px; font-size: 9px; }
.panel-foot { border-top: 1px solid var(--line); padding: 12px 23px; font-size: 10px; color: var(--muted); display: flex; gap: 7px; align-items: center; background: #fcfdfc; }
.panel-foot .icon { width: 13px; height: 13px; }
.dashboard-aside { display: grid; gap: 20px; }
.quick-link { display: flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; padding: 16px 19px; border-top: 1px solid #f0f3f1; }
.quick-link > .icon { width: 14px; color: #8ca295; margin-left: auto; }
.quick-link strong { font-size: 11px; font-weight: 550; }
.quick-link small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.quick-icon { width: 34px; height: 34px; display: grid; place-items: center; background: #f1f6f3; color: #638976; border-radius: 7px; flex-shrink: 0; }
.quick-icon .icon { width: 16px; height: 16px; }
.quick-link:hover, .stock-alert:hover { background: #f7faf8; }
.stock-alert { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: var(--ink); padding: 12px 22px; border-top: 1px solid #f0f3f1; }
.stock-alert b { font-weight: 500; font-size: 11px; }
.stock-alert small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.stock-qty { text-align: right; color: #a06a2d; font-size: 13px; }
.stock-qty small { display: inline; font-size: 9px; }
.panel-bottom-link { display: flex; align-items: center; justify-content: center; gap: 8px; border-top: 1px solid var(--line); text-decoration: none; padding: 15px; font-size: 11px; }
.panel-bottom-link .icon { width: 14px; height: 14px; }
.followup-explainer { margin-top: 22px; padding: 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #f0f5f2; border-color: #e1eae4; }
.eyebrow { display: block; font-size: 9px; letter-spacing: 1.3px; color: #749282; margin-bottom: 7px; font-weight: 600; }
.followup-explainer h2 { font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: -.3px; }
.followup-explainer p { color: var(--muted); font-size: 10px; margin-top: 6px; }
.followup-path { display: flex; align-items: center; flex-shrink: 0; }
.followup-path > span { display: grid; place-items: center; font-size: 9px; color: #668673; }
.followup-path b { display: grid; place-items: center; background: #fff; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #cedfd3; font-family: var(--serif); font-size: 15px; color: var(--green); margin-bottom: 3px; }
.followup-path i { width: 15px; border-top: 1px solid #c3d8cb; margin-bottom: 17px; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 35px; color: #8b9b93; font-size: 10px; }
.empty-state { text-align: center; padding: 40px 22px; color: var(--muted); font-size: 12px; }
.empty-state .icon { background: var(--green-soft); box-sizing: content-box; padding: 12px; border-radius: 50%; color: var(--green); margin-bottom: 14px; }
.empty-state h3 { font-size: 14px; color: var(--ink); margin-bottom: 5px; }
.undo-row { display: flex; justify-content: space-between; gap: 10px; padding: 14px 0 0; color: var(--muted); font-size: 11px; }
.search-inline { position: relative; min-width: min(300px, 100%); }
.search-inline > .icon { position: absolute; left: 12px; top: 12px; width: 15px; height: 15px; color: #899c90; }
.search-inline input { padding-left: 35px; font-size: 12px; background: #fafcfb; }
input, select, textarea { font-size: 13px; min-height: 41px; }
input::placeholder, textarea::placeholder { color: #9aa69f; }
.table-scroll { overflow-x: auto; }
.table th, .book th { background: #fafcfb; text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 500; padding: 12px 22px; }
.table td, .book td { font-size: 12px; padding: 17px 22px; vertical-align: middle; }
.table tr:last-child td, .book tr:last-child td { border-bottom: 0; }
.cell-sub { display: block; color: var(--muted); margin-top: 4px; font-size: 10px; }
.person-cell { display: flex; gap: 12px; align-items: center; }
.tc { display: block; font-size: 10px; margin-top: 5px; }
.phone { display: block; text-decoration: none; color: var(--muted); font-size: 12px; white-space: nowrap; }
.phone + .phone { margin-top: 4px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(225px, 1fr); gap: 34px; align-items: start; }
.form-panel { padding: 26px; }
.form-panel .panel-heading { padding: 0 0 24px; }
.field label { font-size: 12px; color: #425e50; }
.optional { display: inline !important; font-size: 10px; font-weight: 400; color: var(--faint); margin-left: 4px; }
.form-grid { gap: 22px; }
.form-aside { padding: 24px 12px; }
.aside-icon { display: grid; place-items: center; background: #eaf2ed; color: #5c8b70; width: 48px; height: 48px; border-radius: 12px; margin-bottom: 20px; }
.form-aside h2 { font-family: var(--serif); font-size: 20px; letter-spacing: -.6px; }
.form-aside p { font-size: 12px; line-height: 1.9; color: var(--muted); margin-top: 12px; }
.info-note { background: #ecf3ee; border: 1px solid #dce9df; border-radius: 8px; padding: 20px; font-size: 12px; color: #637b6c; }
.form-aside .info-note { margin-top: 24px; }
.info-note h3 { font-size: 13px; margin-bottom: 8px; color: var(--ink); }
.info-note p { margin-top: 5px; line-height: 1.8; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.form-error:not(:empty) { margin-top: 20px; padding: 12px; border-radius: 6px; background: #fff3eb; font-size: 12px; }
.preview h2 { font-size: 20px; margin-bottom: 10px; }
.preview .dl { margin-top: 20px; }
fieldset { margin: 0 0 27px; padding: 0 0 27px; border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
fieldset:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
legend { font-family: var(--serif); font-size: 14px; font-weight: 650; padding: 0 0 18px; }
.cats { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.pick span { font-size: 11px; font-weight: 500; min-height: 44px; }
.checkline strong { font-size: 13px; }
.checkline small { font-size: 11px; }
.checkline input { min-height: 18px; }
.serials-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 16px; }
.serial-line > label { display: block; font-size: 12px; margin-bottom: 6px; }
.sn-preview { font-size: 10px; margin-top: 8px; }
.upload-area { display: flex; flex-direction: column; gap: 7px; align-items: center; padding: 26px 14px; border: 1px dashed #b8ccc0; border-radius: 8px; background: #f8fbf9; cursor: pointer; }
.upload-area strong { font-size: 12px; }
.upload-area > span { font-size: 11px; color: var(--muted); }
.upload-area input { max-width: 290px; border: 0; background: transparent; font-size: 11px; margin-top: 8px; }
.customer-summary { display: flex; align-items: center; gap: 32px; padding: 24px; }
.customer-summary > div:last-child { max-width: 340px; }
.customer-summary p { font-size: 12px; }
.customer-summary .eyebrow { font-size: 8px; }
.avatar-large { width: 52px; height: 52px; font-size: 23px; }
.detail-tabs { display: flex; gap: 26px; margin: 26px 0 20px; border-bottom: 1px solid var(--line-strong); padding-bottom: 15px; }
.detail-tabs a { font-size: 12px; text-decoration: none; }
.device { padding: 25px; }
.device-head { align-items: center; }
.device-title { display: flex; align-items: center; gap: 18px; }
.device-title > img { width: 65px; height: 65px; border-radius: 9px; background: #f3f6f4; }
.device h3 { font-family: var(--serif); font-size: 17px; }
.device-title .muted { font-size: 11px; }
.device .earbox { width: 45px; }
.device-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 6px; }
.device .dl { grid-template-columns: 120px minmax(0,1fr); font-size: 12px; gap: 12px; }
.dl dd { overflow-wrap: anywhere; }
.stock-tools { padding: 0 0 20px; align-items: flex-start; flex-wrap: wrap; }
.category-links { display: flex; flex-wrap: wrap; gap: 8px; }
.category-links a { font-size: 11px; text-decoration: none; background: #fff; border: 1px solid var(--line); padding: 7px 11px; border-radius: 5px; }
.category-links a:hover { border-color: var(--green); }
.stock-section + .stock-section { margin-top: 22px; }
.stock-section .table { table-layout: fixed; }
.stock-serials { display: flex; flex-direction: column; gap: 8px; }
.stock-section .table th:nth-child(2) { width: 37%; }
.stock-section .table th:nth-child(3) { width: 15%; }
.cash-ledger { padding: 0 22px 22px; }
.month h3 { font-size: 11px; letter-spacing: .3px; text-transform: none; padding-bottom: 10px; color: var(--green); }
.filters { margin: 0; }
.chart-legend { display: flex; align-items: center; gap: 16px; font-size: 10px; color: var(--muted); }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 7px; height: 7px; background: #49876a; border-radius: 2px; }
.chart-legend i.expense-dot { background: #c7d8cd; }
.monthly-chart { display: flex; gap: 30px; padding: 20px 50px 24px; }
.chart-column { flex: 1; min-width: 0; text-align: center; font-size: 11px; color: var(--muted); }
.chart-bars { height: 185px; display: flex; gap: 6px; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line-strong); margin-bottom: 10px; background: repeating-linear-gradient(to top, transparent 0, transparent 45px, #f0f4f1 46px, transparent 47px); }
.chart-bar { background: #49876a; border-radius: 4px 4px 0 0; width: 27px; max-width: 40%; }
.expense-bar { background: #c7d8cd; }
.chart-details { border-top: 1px solid var(--line); }
.chart-details summary { padding: 13px 23px; font-size: 11px; color: var(--green); cursor: pointer; }
.panel-body { padding: 0 23px 23px; }
.bars { margin-top: 0; font-size: 12px; }
.bars li { padding: 10px 0; }
.bar { border-radius: 8px; background: #edf3ef; height: 7px; }
.bar > span { border-radius: 8px; background: #66957b; }
.progress-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 10px; font-size: 12px; }
.progress-row small { display: block; font-size: 10px; margin-top: 4px; color: var(--muted); }
.progress-track { flex-basis: 100%; background: #edf3ef; border-radius: 10px; height: 6px; }
.progress-track > span { display: block; height: 100%; background: #66957b; border-radius: 10px; }
.asset-summary { padding: 0 24px; }
.asset-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; font-size: 12px; border-bottom: 1px solid var(--line); }
.asset-summary strong { font-family: var(--mono); font-weight: 500; }
.asset-summary .asset-total { border: 0; color: var(--green); font-size: 15px; }
.menu-toggle { display: none; }
@media (min-width: 1550px) { .control { grid-template-columns: 39px minmax(145px,1fr) 115px 145px; } .control .act { grid-column: 4; } .control .who, .control .earbox { grid-row: auto; } }
@media (max-width: 1200px) { .side { width: 207px; padding-left: 15px; padding-right: 15px; } .brand strong { font-size: 19px; } .wrap { padding-left: 24px; padding-right: 24px; } .dashboard-grid { grid-template-columns: minmax(0,1fr) 248px; gap: 16px; } .metric { padding: 17px; } .metric strong { font-size: 27px; } .followup-explainer { flex-direction: column; align-items: flex-start; } .control-tabs { gap: 13px; } .device-grid { grid-template-columns: 1fr; gap: 5px; } }
@media (max-width: 1020px) { .dashboard-grid { grid-template-columns: 1fr; } .dashboard-aside { grid-template-columns: 1fr 1fr; } .followup-explainer { flex-direction: row; align-items: center; } .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .metrics-three { grid-template-columns: repeat(3,minmax(0,1fr)); } .metrics-three .metric strong { font-size: 23px; } .customer-summary { flex-wrap: wrap; gap: 22px; } .split { gap: 20px; } .form-layout { grid-template-columns: 1fr; } .form-aside { padding: 0; } }
@media (max-width: 860px) {
  .side { width: 100%; height: auto; padding: 14px 20px; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .brand { padding: 0; } .brand strong { font-size: 20px; } .brand img { width: 33px; height: 33px; }
  .menu-toggle { display: inline-flex; font-size: 11px; min-height: 33px; padding: 6px 10px; }
  .side-bottom { display: none; }
  .nav { display: block; width: 100%; flex-basis: 100%; overflow: visible; }
  .js-ready .nav { display: none; } .js-ready .nav.is-open { display: block; }
  .nav-label { display: block; margin-top: 15px; }
  .nav a { padding: 10px 12px; border: 0; border-radius: 6px; }
  .side-quick { margin-top: 10px; } .topbar { padding: 0 24px; height: 52px; }
  .wrap { padding-top: 18px; } .top-date { font-size: 10px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 82px; } .wrap { padding: 18px 16px 25px; }
  .topbar { padding: 0 16px; } .top-date { display: none; }
  .demo-banner { font-size: 10px; gap: 8px; } .demo-text { flex-basis: 100%; padding-left: 14px; }
  .demo-banner .text-button { font-size: 10px; }
  .page-head { flex-direction: row; align-items: flex-start; gap: 15px; }
  h1 { font-size: 27px; } .lead { font-size: 11px; } .page-head > .btn { font-size: 10px; padding: 9px; gap: 5px; }
  .metrics, .metrics-three { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .metrics-three .metric:last-child { grid-column: 1/-1; }
  .metric { padding: 15px; } .metric-label { font-size: 10px; } .metric strong { font-size: 27px; } .metric > span { font-size: 9px; }
  .panel-heading { padding: 18px; flex-wrap: wrap; gap: 12px; }
  .panel-heading h2 { font-size: 14px; } .control-tabs { padding: 0 18px; gap: 20px; }
  .control-group { padding: 0 18px; }
  .control { grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 22px 0; }
  .control .who { grid-row: auto; } .control .earbox { grid-row: 1; }
  .control .when { grid-column: 2; text-align: left; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
  .control .act { grid-column: 2; text-align: left; }
  .control .next-note { display: inline-block; margin-left: 8px; max-width: none; }
  .control .act form { display: inline-block; }
  .control .act .btn { font-size: 11px; padding: 8px 10px; }
  .panel-foot { font-size: 9px; padding: 12px 18px; }
  .dashboard-aside, .split { grid-template-columns: 1fr; }
  .followup-explainer { padding: 20px; flex-wrap: wrap; }
  .table-people, .table-people tbody, .table-people tr, .table-people td { display: block; width: 100%; }
  .table-people tr { padding: 18px; }
  .table-people td { padding: 3px 0; }
  .table-people td:last-child { margin-top: 10px; }
  .table-people td.num { text-align: left; }
  .table-people td[data-label]::before, .book td[data-label]::before { letter-spacing: 0; font-size: 9px; margin: 8px 0 3px; }
  .book td { padding: 4px 0; }
  .search-inline { width: 100%; min-width: 0; }
  .form-panel { padding: 20px; } .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .form-actions { flex-wrap: wrap; } .form-actions .hint { flex-basis: 100%; }
  .cats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .serials-grid { grid-template-columns: 1fr; }
  .customer-summary { padding: 20px; gap: 18px; } .customer-summary > div:last-child { flex-basis: 100%; }
  .detail-tabs { gap: 18px; overflow: auto; white-space: nowrap; font-size: 11px; }
  .device { padding: 20px; } .device-title { gap: 10px; } .device-title > img { width: 44px; height: 44px; }
  .device-title h3 { font-size: 14px; } .device .dl { grid-template-columns: 105px minmax(0,1fr); gap: 12px; font-size: 11px; }
  .device .badge { white-space: normal; } .monthly-chart { gap: 12px; padding: 15px 20px; }
  .chart-bars { height: 150px; gap: 4px; } .chart-column { font-size: 10px; }
  .page-footer { font-size: 8px; } .dl { grid-template-columns: 1fr; gap: 5px; } .dl dd { margin-bottom: 12px; }
  .undo-row { flex-wrap: wrap; } .stock-section .table { table-layout: auto; }
}
@media print { .side, .topbar, .demo-banner, .form-actions, .menu-toggle, .page-footer { display: none; } .app { display: block; } .wrap { padding: 0; } .panel { break-inside: avoid; } }
.auth-screen { min-height:100vh; display:grid; place-items:center; padding:24px; }
.auth-card { width:min(100%,440px); }
.auth-card .brand { padding-bottom:28px; }
.auth-form { display:grid; gap:20px; margin-top:26px; }
.auth-form .btn { margin-top:6px; }
.logout-form { margin-top:12px; }
.live-label { display:flex; justify-content:space-between; gap:15px; margin-bottom:22px; font-size:11px; color:var(--muted); }

/* Financial values are fetched only after page-specific password verification. */
.finance-status { display:flex; align-items:center; justify-content:flex-end; gap:16px; margin:0 0 18px; color:var(--muted, #61716d); font-size:12px; }
.finance-status > span { display:inline-flex; align-items:center; gap:6px; }
.finance-mask { display:inline-flex; align-items:center; gap:10px; border:1px solid #d9e4df; border-radius:8px; padding:6px 10px; color:#52685f; background:#f0f5f2; cursor:pointer; font:inherit; vertical-align:middle; }
.finance-mask > span:first-child { letter-spacing:.12em; font-size:18px; }
.finance-mask-label { font-size:10px; font-weight:500; letter-spacing:0; }
.finance-mask:hover, .finance-input-lock:hover { background:#e5efe9; border-color:#8eac9f; }
.finance-input-lock { width:100%; min-height:44px; padding:10px; border:1px dashed #a9beb4; border-radius:8px; background:#f4f7f5; color:#52685f; cursor:pointer; font:inherit; font-size:12px; }
.finance-chart { display:grid; place-items:center; min-height:240px; }
.finance-chart:has(.monthly-chart) { display:block; }
.finance-dialog { width:min(440px, calc(100% - 32px)); max-height:calc(100dvh - 40px); overflow:auto; padding:28px; border:1px solid #d9e4df; border-radius:16px; box-shadow:0 20px 80px #152f2a33; color:#213f36; }
.finance-dialog::backdrop { background:#152f2a88; }
.finance-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.finance-dialog h2 { margin:0; font-size:20px; }
.finance-dialog p { font-size:13px; line-height:1.6; }
.finance-dialog .field { margin:20px 0; }
.finance-dialog .form-error { color:#a93232; }
.finance-dialog a { color:#276952; }
.finance-input-lock[hidden], [data-finance-input][hidden], [data-finance-lock][hidden] { display:none !important; }

/* Product recognition: quiet image cards inside the existing shop palette. */
.catalog-gallery { display:grid; gap:24px; }
.catalog-brand-title, .stock-product { display:flex; align-items:center; gap:14px; }
.catalog-brand-logo, .catalog-brand-placeholder { width:58px; height:58px; border:1px solid #e2ebe6; border-radius:10px; object-fit:contain; background:#fff; padding:6px; }
.catalog-brand-placeholder { display:grid; place-items:center; color:#799187; background:#f5f8f6; }
.catalog-models { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr)); gap:18px; margin-top:20px; }
.catalog-model { min-width:0; border:1px solid #e2ebe6; border-radius:12px; padding:14px; }
.catalog-model h3 { margin:14px 0 10px; font-size:15px; overflow-wrap:anywhere; }
.catalog-product-image { height:150px; display:grid; place-items:center; background:#f7f9f8; border-radius:8px; }
.catalog-product-image img { width:100%; height:150px; object-fit:contain; padding:10px; }
.catalog-product-image > span { display:grid; justify-items:center; gap:10px; color:#799187; font-size:11px; }
.catalog-edit summary { color:#276952; cursor:pointer; font-size:12px; padding:6px 0; }
.catalog-edit form { margin-top:12px; }
.catalog-edit input[type=file] { max-width:100%; font-size:11px; padding:8px; }
.catalog-upload { margin-top:18px; }
.catalog-upload .previews { display:flex; flex-wrap:wrap; gap:10px; }
.catalog-remove { display:flex; align-items:center; gap:8px; font-size:12px; }
.catalog-remove input { width:auto; min-height:0; }
.stock-product-image { width:60px; height:60px; flex-shrink:0; object-fit:contain; border:1px solid #e2ebe6; border-radius:8px; background:white; }
.product-preview { display:flex; align-items:center; gap:18px; padding:14px; border:1px solid #e2ebe6; border-radius:10px; background:#f7f9f8; font-size:12px; color:#61716d; }
.product-preview img { width:130px; height:110px; object-fit:contain; }
.product-preview[hidden], .product-preview img[hidden], .catalog-brand[hidden] { display:none !important; }

.image-uploader { margin:20px 0; }
.uploader-caption { display:flex; justify-content:space-between; margin-bottom:9px; font-size:12px; font-weight:600; }
.uploader-zone { position:relative; display:flex; flex-direction:column; align-items:center; gap:9px; padding:26px 18px; border:1.5px dashed #a6bfb3; border-radius:14px; background:#f5faf7; color:#244f40; text-align:center; cursor:pointer; }
.uploader-zone > .icon { width:28px; height:28px; padding:6px; border-radius:9px; background:#deeee5; box-sizing:content-box; }
.uploader-zone strong { font-size:14px; }
.uploader-zone > span { font-size:12px; color:#637a6f; }
.uploader-zone .uploader-formats { font-size:10px; letter-spacing:.08em; }
.uploader-zone:hover,.uploader-zone.is-dragging,.uploader-zone:focus-within { border-color:#227253; background:#edf7f1; outline:2px solid #c5e3d5; }
.js-ready .uploader-file { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; margin:0; }
.upload-previews { display:grid; grid-template-columns:repeat(auto-fill,minmax(135px,1fr)); gap:12px; margin-top:14px; }
.upload-preview { position:relative; margin:0; min-width:0; padding:7px; border:1px solid #dce8e0; border-radius:12px; background:white; }
.upload-preview img { width:100%; height:135px; display:block; object-fit:contain; background:#f6f8f7; border-radius:8px; }
.upload-preview figcaption { display:grid; gap:4px; padding:9px 3px 3px; font-size:11px; }
.upload-preview figcaption strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.upload-preview figcaption span { color:#687d72; }
.upload-preview button { position:absolute; top:11px; right:11px; border:1px solid #dce8e0; border-radius:50%; background:white; color:#6c302b; width:28px; height:28px; font-size:20px; cursor:pointer; }
.upload-progress { text-align:center; }
.upload-progress progress { width:100%; height:12px; accent-color:#267252; }
.upload-spinner { display:inline-block; width:35px; height:35px; margin:8px 0 18px; border:3px solid #dcebe3; border-top-color:#227253; border-radius:50%; animation:upload-spin .9s linear infinite; }
@keyframes upload-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .upload-spinner { animation:none; } }
.archive-toolbar { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.text-danger { display:inline-block; color:#9c3930; font-size:12px; margin-top:8px; }
.btn-danger { color:#9c3930; border-color:#e9bcb7; background:#fff5f3; }
.archive-ack { display:flex; align-items:flex-start; gap:10px; margin:20px 0; }
.archive-ack input { width:auto; min-height:0; margin-top:3px; }

/* Camera barcode workflow: product identity and stock state before any write. */
.barcode-entry{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 24px;padding:18px;background:#eef6f2;border:1px solid #d3e5dd;border-radius:12px}.barcode-entry>span{font-size:13px;color:#526d61}.barcode-open span{font-size:24px;line-height:1}.barcode-dialog{width:min(620px,calc(100vw - 24px));max-height:92dvh;overflow:auto;border:1px solid #d9e3df;border-radius:18px;padding:24px;color:#24463a;background:#fff}.barcode-dialog::backdrop{background:rgba(12,33,25,.6)}.barcode-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.barcode-heading h2{margin:6px 0 12px}.barcode-camera{position:relative;min-height:110px;background:#142d24;border-radius:12px;overflow:hidden;margin:14px 0}.barcode-camera video{display:block;width:100%;max-height:280px;object-fit:contain}.barcode-camera span{position:absolute;bottom:8px;left:8px;right:8px;text-align:center;background:#142d24d9;color:#fff;font-size:12px;padding:6px;border-radius:6px;pointer-events:none}.barcode-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.barcode-photo{position:relative;overflow:hidden;cursor:pointer}.barcode-photo input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.barcode-feedback{font-size:14px;line-height:1.6;padding:12px;background:#edf5f0;border-radius:8px}.barcode-feedback.is-error{background:#fff0e5;color:#8a3f0b}.barcode-result{border:1px solid #d0dfd7;border-radius:12px;padding:16px;margin:16px 0}.barcode-result[data-state=in_stock]{border:2px solid #287b57}.barcode-product{display:flex;align-items:center;gap:12px}.barcode-product img{width:70px;height:70px;object-fit:contain}.barcode-product strong{display:block;font-size:18px;margin-bottom:8px}.barcode-result dl{display:grid;grid-template-columns:1fr 1.3fr;gap:10px;margin:18px 0;font-size:14px}.barcode-result dt{color:#62756b}.barcode-result dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.barcode-tail{font-size:24px;font-weight:800;letter-spacing:3px}.barcode-warning{padding:12px;border-left:3px solid #ca852b;background:#fff6e7;font-size:13px;line-height:1.6}.barcode-result .btn{margin-top:16px}.barcode-draft{padding:16px;margin-bottom:20px;border:1px solid #bfd5c9;border-radius:10px;background:#f3f8f5}.barcode-map{padding:18px;border:1px dashed #a7c5b7;border-radius:12px;margin-top:18px}.barcode-map .field,.barcode-manual .field{margin:14px 0}.barcode-manual{margin-top:20px}.barcode-map .btn{margin-top:14px}.barcode-dialog [hidden]{display:none!important}@media(max-width:600px){.barcode-dialog{padding:16px}.barcode-actions .btn{flex:1}.barcode-entry{align-items:stretch}.barcode-entry .btn{width:100%}.barcode-result dl{grid-template-columns:1fr 1fr}}

.barcode-heading{position:sticky;top:-24px;z-index:2;background:#fff;padding:10px 0;border-bottom:1px solid #edf2ef}.barcode-dialog .btn:disabled{opacity:.45;cursor:not-allowed}.barcode-photo:focus-within{outline:3px solid #93bfac;outline-offset:2px}@media(max-width:600px){.barcode-heading{top:-16px}}
