/* Countouros Stock — charcoal brand frame, light product cards, cream accents. */
:root {
  --frame: #191919; --frame-2: #222221; --frame-line: #4a4740; --frame-line-2: #5a564e;
  --frame-text: #e6dfd2; --frame-soft: #cfc8ba; --frame-muted: #a8a296;
  --paper: #f7f4ee; --white: #ffffff; --line: #d8d2c6; --line-2: #cfc8ba; --input-line: #8a857b;
  --ink: #1d1c1a; --ink-2: #3a3833; --muted: #6b665d; --muted-2: #5c5850;
  --warn: #9a2f1f; --warn-bg: #f6e3dd; --pend-line: #c98a7e; --pend-ink: #5a1d12; --pend-ink-2: #7a2a1c;
  --ok: #2f5d3a;
  --font: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--frame); color: var(--frame-text); font-family: var(--font); font-size: 15px; line-height: 1.45; }
body { min-height: 100vh; padding-bottom: env(safe-area-inset-bottom, 0px); }
[hidden] { display: none !important; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid #c9a86a; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px 64px; }

/* light surfaces use light form controls, so the date calendar icon is visible */
.card, .dialog, .panel, .tile { color-scheme: light; }
input[type=date] { cursor: pointer; }
input[type=date]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .85; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.btn:hover { background: #ece6da; }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: #34322e; }
.btn.cream { background: var(--frame-text); color: var(--frame); border-color: var(--frame-text); }
.btn.cream:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--frame-text); border-color: var(--frame-line-2); }
.btn.ghost:hover { background: #262624; }
.btn.danger { background: var(--warn); color: #fff; border-color: var(--warn); }
.btn.danger-o { color: var(--warn); border-color: var(--warn); }
.btn.danger-o:hover { background: var(--warn-bg); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 11px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.x { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--muted-2); cursor: pointer; }
.x:hover { color: var(--warn); }

/* ---------- header ---------- */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0 18px; border-bottom: 1px solid var(--frame-line-2); margin-bottom: 28px; }
.top .logo { height: 72px; width: auto; display: block; margin-left: -18px; cursor: pointer; }
.top .right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.crumbs a { color: var(--frame-soft); text-decoration: none; border-bottom: 1px solid var(--frame-line-2); padding-bottom: 2px; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { color: var(--frame-line-2); }
.who { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; font-size: 13px; color: var(--frame-soft); }
.who b { color: var(--frame-text); font-weight: 500; }
.lefthead { display: flex; align-items: center; gap: 28px; }
.scan-fab { position: relative; z-index: 25; display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 22px 0 16px; font-size: 12px; font-weight: 400; letter-spacing: .34em; color: var(--frame-text); background: rgba(25,25,25,.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(230,223,210,.55); border-radius: 0; cursor: pointer; }
.scan-fab:hover { border-color: var(--frame-text); background: rgba(38,38,36,.92); }
.scan-fab .bar { width: 1px; height: 18px; background: rgba(230,223,210,.35); }
.scan-fab .word { padding-left: .34em; }
.eyebrow { font-size: 12px; letter-spacing: .3em; color: var(--frame-muted); text-transform: uppercase; }
h1.page { margin: 4px 0 0; font-weight: 300; font-size: 40px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.1; }

/* ---------- home / sign in ---------- */
.center { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 32px 16px; text-align: center; }
.tile-logo { display: flex; align-items: center; justify-content: center; width: 280px; height: 280px; max-width: 70vw; max-height: 70vw; padding: 42px; background: var(--frame-2); border: 1px solid var(--frame-line); border-radius: 52px; cursor: pointer; }
.tile-logo:hover { border-color: var(--frame-soft); }
.tile-logo img { width: 100%; height: 100%; display: block; }
.brandword { font-size: 34px; font-weight: 300; letter-spacing: .24em; text-transform: uppercase; line-height: 1; }
.brandsub { font-size: 12px; letter-spacing: .4em; color: var(--frame-muted); text-transform: uppercase; margin-top: 10px; }
.signin { display: flex; align-items: center; justify-content: center; gap: 72px; min-height: 100vh; padding: 32px 16px; flex-wrap: wrap; }
.signin .brand { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.signin .brand img { width: 220px; height: 220px; }
.signin .divider { width: 1px; height: 340px; background: var(--frame-line); }
.panel { width: 400px; max-width: 100%; padding: 30px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); display: flex; flex-direction: column; gap: 16px; text-align: left; }
.panel h2 { margin: 0; font-size: 26px; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; }
.panel p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.lbl, .field > span { font-size: 11px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field input, .field select, .field textarea { font-size: 15px; letter-spacing: 0; color: var(--ink); padding: 10px 12px; min-height: 46px; border: 1px solid var(--input-line); border-radius: 0; background: var(--white); width: 100%; }
.field textarea { min-height: 150px; line-height: 1.5; resize: vertical; }
.msg { margin: 0; min-height: 1.2em; font-size: 13px; color: var(--warn); }
.note { font-size: 12px; color: var(--muted); }

/* ---------- category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 28px; margin-top: 32px; }
.tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); cursor: pointer; }
.tile:hover { border-color: var(--frame-text); }
.tile .pic { height: 300px; overflow: hidden; background: #2a2927; border-bottom: 1px solid var(--line); }
.tile .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; }
.tile .cap b { display: block; font-size: 28px; font-weight: 300; letter-spacing: .16em; text-transform: uppercase; }
.tile .cap span { font-size: 13px; color: var(--muted); }

/* ---------- categories accordion ---------- */
.accordion { max-width: 760px; margin-top: 32px; border-top: 1px solid var(--frame-soft); }
.acc { border-bottom: 1px solid var(--frame-soft); }
.acc-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 16px 0; background: transparent; border: 0; color: var(--frame-text); text-align: left; cursor: pointer; }
.acc-h span { font-size: 27px; font-weight: 300; letter-spacing: .02em; }
.acc-h i { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex-shrink: 0; border: 1px solid var(--frame-text); border-radius: 50%; font-style: normal; font-size: 22px; font-weight: 200; line-height: 1; }
.acc-h:hover i { background: rgba(230,223,210,.08); }
a.acc-h { text-decoration: none; }
.titlerow { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.btn.back { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.btn.back span { font-size: 18px; font-weight: 300; line-height: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 0 20px; }
.tag { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--frame-text); border: 1px solid var(--frame-line-2); }
.tag:hover { border-color: var(--frame-text); }
.tag.on { color: var(--frame); background: var(--frame-text); border-color: var(--frame-text); }
.tag small { font-size: 12px; font-weight: 400; letter-spacing: .08em; color: var(--muted-2); }
.tiles.four { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.tile.small .pic { height: 200px; }
.tile.small .cap { align-items: flex-start; padding: 16px 18px 18px; flex-grow: 1; }
.tile.small .cap b { font-size: 19px; font-weight: 400; letter-spacing: .14em; }
.tile.small .cap span { display: block; font-size: 12px; line-height: 1.4; margin-top: 2px; }
.tile.small .cap em { display: block; font-style: normal; font-size: 12px; letter-spacing: .08em; color: #8a857b; font-weight: 500; margin-top: 4px; }
.tile.small .cap em.has { color: var(--ink); }
.tile .arrow { font-size: 24px; font-weight: 300; line-height: 1; }
/* group cards (Floorings, Ceilings, Partitions, Wall Coverings, Innovative Products) */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; margin-top: 32px; }
.gcard { display: flex; flex-direction: column; min-width: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line); color-scheme: light; }
.gcard:hover { border-color: var(--frame-text); }
.gcard .pic { display: block; height: 220px; overflow: hidden; background: #2a2927; border-bottom: 1px solid var(--line); }
.gcard .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gcard:hover .pic img { transform: scale(1.03); }
.gbody { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; flex-grow: 1; }
.gtitle { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; }
.gtitle b { font-size: 21px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.gtitle em { font-style: normal; font-size: 12px; letter-spacing: .08em; color: #8a857b; font-weight: 500; white-space: nowrap; }
.gtitle em.has { color: var(--ink); }
.gtitle:hover b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-t { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink); border: 1px solid var(--line-2); background: var(--white); }
.chip-t:hover { border-color: var(--ink); }
.chip-t.on { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.chip-t small { font-size: 11px; font-weight: 400; letter-spacing: .06em; opacity: .75; }
.grp { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }
.grp-h { display: flex; align-items: baseline; gap: 14px; margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--frame-line-2); font-weight: 300; font-size: 26px; letter-spacing: .12em; text-transform: uppercase; }
.grp-h span { font-size: 13px; letter-spacing: .08em; text-transform: none; color: var(--frame-muted); }

/* ---------- toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 24px 0 28px; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.dark-field { display: flex; flex-direction: column; gap: 6px; font-size: 11px; letter-spacing: .2em; color: var(--frame-muted); }
.dark-field input, .dark-field select { font-size: 14px; letter-spacing: 0; color: var(--frame-text); background: var(--frame); border: 1px solid var(--frame-line-2); border-radius: 0; padding: 10px 12px; min-height: 44px; }
.dark-field input { width: 260px; max-width: 100%; }
.check-dark { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; color: var(--frame-soft); cursor: pointer; }
.check-dark input { width: 18px; height: 18px; margin: 0; accent-color: var(--frame-text); }
.sorters { display: flex; align-items: flex-end; gap: 12px; padding-left: 16px; border-left: 1px solid var(--frame-line-2); flex-wrap: wrap; }
.tb-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.count { font-size: 13px; letter-spacing: .08em; color: var(--frame-soft); }
.count b { color: var(--frame-text); font-weight: 500; }
.empty { grid-column: 1 / -1; padding: 48px 24px; border: 1px dashed var(--frame-line-2); text-align: center; color: var(--frame-muted); }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border: 1px solid var(--line); min-width: 0; scroll-margin-top: 96px; }
.card.flash { outline: 4px solid var(--frame-text); outline-offset: 4px; }
.card .pic { position: relative; height: 200px; overflow: hidden; background: #e9e4da; border-bottom: 1px solid var(--line); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .nopic { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.card .chip { position: absolute; left: 14px; top: 12px; font-size: 12px; letter-spacing: .2em; padding: 3px 8px; background: rgba(247,244,238,.92); color: var(--ink); }
.card .body { padding: 22px; display: flex; flex-direction: column; gap: 16px; flex-grow: 1; }
.card h2 { margin: 0; font-weight: 300; font-size: 23px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; min-height: 2.4em; overflow-wrap: anywhere; }
.name-in { font-size: 21px; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); padding: 4px 0; width: 100%; border: 0; border-bottom: 1px dashed var(--input-line); border-radius: 0; background: transparent; min-height: 2.4em; }
.price { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; min-height: 44px; padding: 0 12px; border: 1px solid var(--ink); background: var(--white); cursor: text; white-space: nowrap; }
.price .eur { font-size: 17px; font-weight: 500; }
.price.ro { gap: 8px; cursor: default; border-color: var(--line-2); background: var(--paper); color: var(--ink); }
.price.ro svg { color: var(--muted); }
.price input { width: 92px; border: 0; border-bottom: 1px dashed var(--input-line); padding: 2px 0; background: transparent; font-size: 17px; font-weight: 500; color: var(--ink); }
.price .slash { font-size: 13px; color: var(--muted-2); }
.price select { font-size: 13px; color: var(--ink); border: 1px solid var(--line-2); border-radius: 0; background: var(--paper); padding: 4px 6px; min-height: 32px; cursor: pointer; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; font-size: 14px; }
.specs div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.specs dt { font-size: 11px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.specs dd { margin: 0; overflow-wrap: anywhere; }
.stock { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.box { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; min-height: 66px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); text-align: left; border-radius: 0; font: inherit; min-width: 0; }
.box > span:first-child { font-size: 12px; letter-spacing: .08em; color: var(--ink-2); }
.box b { font-size: 20px; font-weight: 400; font-variant-numeric: tabular-nums; }
.box input { width: 100%; min-width: 0; border: 0; border-bottom: 1px dashed var(--input-line); padding: 0; background: transparent; font-size: 20px; color: var(--ink); }
button.box { cursor: pointer; }
button.box:hover { background: #f0ebe1; }
.box.pend { border-color: var(--pend-line); background: var(--warn-bg); color: var(--pend-ink); }
.box.pend > span, .box.pend small { color: var(--pend-ink-2); }
button.box.pend:hover { background: #f1d6cd; }
.box small { font-size: 12px; }
.box.actual { background: var(--ink); border-color: var(--ink); }
.box.actual > span, .box.actual b { color: #fff; }
.box.actual b { font-weight: 500; }
.box.actual.neg { background: var(--warn); border-color: var(--warn); }
.after { font-size: 13px; }
.after .muted { color: var(--muted); }
.foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: auto; }
.foot .left { display: flex; flex-direction: column; gap: 10px; }
.qr { display: flex; align-items: center; gap: 10px; }
.qr .qrimg { padding: 3px; background: #fff; border: 1px solid var(--line); line-height: 0; }
.qr .qrimg img { width: 60px; height: 60px; display: block; image-rendering: pixelated; }
.qr span { font-size: 11px; letter-spacing: .2em; color: var(--muted); line-height: 1.4; }
.rev { display: flex; flex-direction: column; gap: 2px; font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.rev input { font-size: 14px; letter-spacing: 0; color: var(--ink); border: 0; border-bottom: 1px dashed var(--input-line); border-radius: 0; background: transparent; padding: 4px 0; min-height: 36px; }
.foot .right { display: flex; flex-direction: column; gap: 8px; }
.foot-note { margin-top: 28px; font-size: 12px; letter-spacing: .1em; color: var(--frame-muted); }

/* ---------- dialogs ---------- */
.overlay { position: fixed; inset: 0; z-index: 30; background: rgba(25,25,25,.74); display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.dialog { width: 100%; max-height: 100%; overflow-y: auto; padding: 28px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); display: flex; flex-direction: column; gap: 20px; }
.dhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.dhead h2 { margin: 2px 0 0; font-size: 24px; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; overflow-wrap: anywhere; }
.stat { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 8px 12px; border: 1px solid var(--ink); white-space: nowrap; }
.stat span { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.stat b { font-size: 20px; font-weight: 500; }
.stat.dark { background: var(--ink); color: #fff; }
.stat.dark span { color: var(--frame-text); }
.table { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tr { display: grid; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tr.th { padding: 10px 0; font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.tr .by { display: block; font-size: 11px; color: var(--muted); }
.tr input[type=number], .tr input[type=text] { font-size: 14px; color: var(--ink); padding: 6px 8px; min-height: 40px; width: 100%; min-width: 0; border: 1px solid var(--input-line); border-radius: 0; background: var(--white); }
.tr input.line { border: 0; border-bottom: 1px dashed var(--input-line); background: transparent; padding: 6px 0; }
.tick { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.tick input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.done { font-size: 13px; font-weight: 500; color: var(--ok); }
.none { padding: 16px 0; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.form { display: grid; gap: 10px; align-items: end; }
.rowbtns { display: inline-flex; justify-content: flex-end; }
.x.pen:hover { color: var(--ink); }
.tr.is-edit { background: #f4f2ee; box-shadow: inset 3px 0 0 var(--ink); padding-left: 10px; }
.tr .notes { font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.editing { margin: 0; padding: 10px 12px; border-left: 3px solid var(--ink); background: #f4f2ee; font-size: 14px; }
.editing[hidden] { display: none; }
.confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; background: var(--warn-bg); border: 1px solid var(--warn); font-size: 14px; }
.confirm span { flex-grow: 1; min-width: 200px; }
.dfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dfoot .r { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sum3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 14px; }
.sum3 div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line-2); }

/* add / edit product */
.pform { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.pphoto { display: flex; flex-direction: column; gap: 10px; }
.pphoto .ph { height: 240px; background: #e9e4da; border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pphoto .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pphoto .ph span { font-size: 11px; letter-spacing: .24em; color: var(--muted); }
.pphoto label.btn { cursor: pointer; }

/* labels preview */
.labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.label { display: flex; align-items: center; gap: 12px; height: 140px; padding: 10px 12px; background: #fff; border: 1px dashed #b5afa3; }
.label img { width: 112px; height: 112px; flex-shrink: 0; image-rendering: pixelated; }
.label .t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.label .t small { font-size: 10px; letter-spacing: .24em; color: var(--muted); }
.label .t b { font-size: 22px; font-weight: 500; letter-spacing: .06em; line-height: 1.1; }
.label .t span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.label .t em { font-style: normal; font-size: 12px; color: var(--ink-2); }

/* ---------- scanner ---------- */
.scanner { position: fixed; inset: 0; z-index: 40; background: rgba(17,17,17,.97); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; text-align: center; overflow-y: auto; }
.viewfinder { position: relative; width: min(340px, 80vw); height: min(340px, 80vw); background: #2a2927; overflow: hidden; }
.viewfinder video { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewfinder .c { position: absolute; width: 44px; height: 44px; border: 0 solid var(--frame-text); }
.viewfinder .c1 { left: 0; top: 0; border-left-width: 3px; border-top-width: 3px; }
.viewfinder .c2 { right: 0; top: 0; border-right-width: 3px; border-top-width: 3px; }
.viewfinder .c3 { left: 0; bottom: 0; border-left-width: 3px; border-bottom-width: 3px; }
.viewfinder .c4 { right: 0; bottom: 0; border-right-width: 3px; border-bottom-width: 3px; }
.viewfinder .line { position: absolute; left: 24px; right: 24px; top: 50%; height: 2px; background: var(--pend-line); opacity: .8; }
.scanner .manual { display: flex; gap: 8px; width: min(340px, 80vw); }
.scanner .manual input { flex-grow: 1; min-width: 0; font-size: 16px; color: var(--frame-text); background: transparent; border: 1px solid var(--frame-line-2); border-radius: 0; padding: 10px 12px; min-height: 48px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; background: var(--frame-text); color: var(--frame); padding: 12px 18px; font-size: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.4); max-width: calc(100% - 32px); }
.credit { margin-top: 36px; font-size: 11px; letter-spacing: .16em; color: #8a857b; }
.center .credit, .signin .credit { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; }
.center, .signin { position: relative; }
.loading { padding: 64px 0; text-align: center; color: var(--frame-muted); }


/* ---------- card extras (Oct 2026) ---------- */
.namerow { display: flex; align-items: flex-start; gap: 10px; width: 100%; }
.namerow h2 { flex: 1; min-width: 0; }
.noname { color: var(--muted); font-size: 18px; letter-spacing: .14em; }
.pencil { flex-shrink: 0; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); cursor: pointer; }
.pencil:hover { background: #f0ebe1; }
.disc { margin-top: -4px; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--warn); }
.price.ro { cursor: default; }
.card .swatch { position: absolute; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 5px; font-size: 11px; letter-spacing: .16em; background: rgba(247,244,238,.94); color: var(--ink); }
.card .swatch i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--input-line); display: block; }
.specs dd.skt { display: flex; gap: 6px; margin-top: 3px; }
.mini { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 4px 8px; min-width: 64px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); font: inherit; text-align: left; border-radius: 0; }
.mini > span { font-size: 10px; letter-spacing: .08em; color: var(--ink-2); }
.mini b { font-size: 14px; font-weight: 400; }
button.mini { cursor: pointer; }
button.mini:hover { background: #f0ebe1; }
.fin { display: flex; flex-direction: column; gap: 6px; }
.fin table { border-collapse: collapse; width: 100%; }
.fin th { font-size: 10px; letter-spacing: .14em; color: var(--ink-2); font-weight: 500; padding: 2px 4px; text-align: center; }
.fin tr th:first-child { font-size: 12px; letter-spacing: .06em; text-align: left; padding-right: 10px; white-space: nowrap; font-weight: 400; color: var(--ink); }
.fin td { border: 1px solid var(--line); padding: 0; background: var(--white); }
.fin td input { width: 100%; border: 0; padding: 7px 4px; text-align: center; background: transparent; font-size: 15px; color: var(--ink); }
.warn-t { font-size: 12px; color: var(--warn); }
.foot .left .btn.hist { align-self: flex-start; color: var(--ink); border-color: var(--line-2); background: var(--white); }
.discbox { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); cursor: pointer; }
.discbox:has(input:checked) { border-color: var(--warn); background: var(--warn-bg); }
.discbox input { width: 18px; height: 18px; margin: 0; accent-color: var(--warn); }
.discbox b { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--warn); }
.discbox span { font-size: 13px; color: var(--muted); }
.gcard .pic { position: relative; }
.ph-none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; letter-spacing: .24em; color: var(--frame-muted); }
.htable { width: 100%; border-collapse: collapse; font-size: 14px; }
.htable th { text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--ink); }
.htable td { padding: 10px; border-bottom: 1px solid var(--line); }


/* ---------- tasks ---------- */
.tasks-btn { position: relative; }
.tasks-btn .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 9px; background: #c0392b; color: #fff; font-size: 10px; letter-spacing: 0; }
.segs { display: inline-flex; border: 1px solid var(--frame-line-2); margin-top: 24px; }
.segs.small { margin: 0; border: 0; gap: 6px; flex-wrap: wrap; }
.seg { font: inherit; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 0; cursor: pointer; color: var(--frame-soft); background: transparent; }
.seg small { font-weight: 400; opacity: .7; letter-spacing: .06em; }
.seg.on { color: var(--frame); background: var(--frame-text); }
.seg.small { min-height: 36px; padding: 6px 12px; font-size: 11px; letter-spacing: .14em; border: 1px solid var(--frame-line-2); }
.tnote { margin: 12px 0 0; font-size: 13px; color: var(--frame-muted); }
.tnote b { color: #e0786a; }
.tgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 24px; align-items: start; }
.tgrid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tcol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tcol-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--frame-line-2); }
.tcol-h h2 { margin: 0; font-weight: 300; font-size: 26px; letter-spacing: .12em; text-transform: uppercase; }
.tcol-h span { font-size: 13px; color: var(--frame-muted); }
.tcol-h .r { display: flex; gap: 8px; align-items: center; }
.tempty { margin: 0; padding: 18px; border: 1px dashed var(--frame-line-2); font-size: 14px; color: var(--frame-muted); }
.tdone-h { align-self: flex-start; font: inherit; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--frame-soft); background: transparent; border: 0; border-bottom: 1px solid var(--frame-line-2); padding: 4px 0; cursor: pointer; min-height: 32px; }
.tdone { display: flex; flex-direction: column; gap: 10px; opacity: .85; }
.trow { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid #8a857b; color-scheme: light; }
.trow.st-p { border-left-color: #b07a12; } .trow.st-d { border-left-color: #4f8a47; } .trow.prio { border-left-color: #c0392b; }
.thead { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; }
.tprio { flex-shrink: 0; width: 30px; height: 30px; padding: 0; border-radius: 0; cursor: pointer; font: inherit; font-size: 17px; font-weight: 600; color: #b5afa3; border: 1px solid var(--line-2); background: transparent; }
.tprio.on { color: #fff; background: #c0392b; border-color: #c0392b; }
.tprio[disabled] { cursor: default; }
.tname { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 2px 0; border: 0; background: transparent; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.tname b { max-width: 100%; font-size: 15px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tname b.strike { text-decoration: line-through; }
.tname small { font-size: 12px; color: var(--muted); }
.tpeople { flex-shrink: 0; display: flex; align-items: center; gap: 4px; }
.pp { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; font-size: 11px; font-weight: 500; border-radius: 12px; border: 1px solid var(--ink); background: #fff; }
.pp.me { background: var(--ink); color: var(--paper); }
.tcount { font-size: 12px; color: var(--ink-2); padding-left: 4px; white-space: nowrap; }
.tstatus { flex-shrink: 0; font: inherit; font-size: 12px; font-weight: 500; letter-spacing: .06em; border-radius: 0; padding: 4px 6px; min-height: 32px; border: 1px solid #8a857b; background: #ece8df; color: #3a3833; }
select.tstatus { cursor: pointer; }
.tstatus.st-p { background: #f7e7c6; color: #7a4f00; border-color: #b07a12; }
.tstatus.st-d { background: #dcebd9; color: #2f5e2a; border-color: #4f8a47; }
.tpm { flex-shrink: 0; width: 32px; height: 32px; padding: 0; border-radius: 0; cursor: pointer; font: inherit; font-size: 20px; font-weight: 300; line-height: 1; color: var(--ink); border: 1px solid var(--ink); background: #fff; }
.tbody { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.tmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12px; color: var(--muted); }
.tmeta b { color: var(--ink); font-weight: 500; }
.tprod { font-size: 11px; letter-spacing: .16em; padding: 3px 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
.tdesc { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); white-space: pre-wrap; }
.tassign { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tcoms { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: #fff; border: 1px solid #e3ddd1; }
.tc { display: flex; flex-direction: column; gap: 2px; padding: 6px 0 8px 10px; border-left: 3px solid var(--ink); border-bottom: 1px solid #efeae0; }
.tc small { font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.tc small b { color: var(--ink); font-weight: 500; }
.tc span { font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.tc.sys { border-left-color: #b07a12; }
.tc.sys span { font-size: 13px; font-style: italic; color: var(--muted-2); }
.tcadd { display: flex; gap: 8px; }
.tcadd input { flex: 1; min-width: 0; font-size: 14px; padding: 8px 10px; min-height: 40px; border: 1px solid var(--input-line); border-radius: 0; background: #fff; color: var(--ink); }
.tacts { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.tpeople-f { margin: 0; padding: 12px; border: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.tpeople-f legend { font-size: 11px; letter-spacing: .2em; color: var(--muted); padding: 0 6px; }
.discbox.prio:has(input:checked) { border-color: #c0392b; }
@media (max-width: 900px) { .tgrid.two { grid-template-columns: minmax(0, 1fr); } }

/* ---------- exports / imports ---------- */
.iocards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; align-items: start; }
.iocard { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); color-scheme: light; }
.iocard h2 { margin: 0; font-weight: 300; font-size: 24px; letter-spacing: .12em; text-transform: uppercase; }
.iocard .btn { align-self: flex-start; }
.iogrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.iosum { margin: 0; font-size: 14px; font-weight: 500; padding: 8px 10px; background: #fff; border: 1px solid #e3ddd1; }
.iocard .note { margin: 0; }
#imp-confirm:empty, #imp-sum:empty { display: none; }
@media (max-width: 1000px) { .iocards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- task groups, suggestions, selecting ---------- */
.btn.ghost.on { background: var(--frame-text); color: var(--frame); border-color: var(--frame-text); }
.tsugg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border: 1px dashed #c9a86a; background: rgba(201, 168, 106, .08); font-size: 14px; color: var(--frame-text); }
.tsugg span { flex: 1; min-width: 200px; }
.tselbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; background: var(--frame-text); color: var(--frame); font-size: 14px; }
.tselbar span, .tselbar > b { flex: 1; min-width: 180px; }
.tselbar .btn.ghost { color: var(--frame); border-color: var(--frame); }
.tsel { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--ink); cursor: pointer; }
.tgroup { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid #c9a86a; background: rgba(201, 168, 106, .06); }
.tgroup-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tgroup-h .gi { font-size: 20px; color: #c9a86a; }
.tgroup-h .gt { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.tgroup-h .gt b { font-size: 15px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #e8cf98; }
.tgroup-h .gt small { font-size: 12px; color: var(--frame-muted); }
.tgroup-h .r { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; color: var(--ink-2); }
.tline b { font-weight: 500; color: var(--ink); }
.tgsel { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.tgsel select { font: inherit; font-size: 13px; letter-spacing: 0; text-transform: none; min-height: 32px; padding: 4px 6px; border: 1px solid var(--input-line); border-radius: 0; background: #fff; color: var(--ink); }
.tlochint { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px dashed #c9a86a; background: #fbf5e8; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.tlochint input { width: 18px; height: 18px; margin-top: 2px; }

/* ---------- diary · дневник (made for the phone) ---------- */
.ru-h { font-size: .6em; letter-spacing: .1em; color: var(--frame-soft); }
.bi { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; }
.bi small { font-size: .82em; letter-spacing: .04em; text-transform: none; opacity: .75; }
.diary { max-width: 720px; margin: 24px auto 0; display: flex; flex-direction: column; gap: 12px; }
.dsegs { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.dsegs .seg { min-height: 56px; }
.dnav { display: flex; align-items: center; gap: 10px; }
.dnav .btn { min-width: 56px; min-height: 56px; font-size: 24px; font-weight: 300; padding: 0; }
.dtitle { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.dtitle b { font-size: 22px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
.dtitle small { font-size: 14px; color: var(--frame-soft); }
.dtoday { align-self: center; }
.dlist { display: flex; flex-direction: column; gap: 10px; }
.dempty { margin: 0; padding: 24px; border: 1px dashed var(--frame-line-2); text-align: center; color: var(--frame-muted); }
.dv { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-left: 6px solid #b07a12; cursor: pointer; color-scheme: light; }
.dv.k-delivery { border-left-color: #3b6ea5; } .dv.k-collect { border-left-color: #7a5aa0; } .dv.k-done { border-left-color: #4f8a47; opacity: .7; }
.dv-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dv-time { font-size: 20px; font-weight: 500; }
.dv-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dv-name { font-size: 18px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.dv-sub { font-size: 14px; color: var(--ink-2); }
.strike { text-decoration: line-through; }
.dv-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dv-acts .btn { flex: 1 1 0; min-width: 110px; min-height: 52px; letter-spacing: .1em; }
.dv-acts .btn.small { min-height: 48px; }
.dwk { display: grid; grid-template-columns: 96px minmax(0, 1fr); background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.dwk.today { outline: 2px solid var(--frame-text); }
.dwk-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-right: 1px solid var(--line); background: #efe9dd; cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.dwk-h b { font-size: 22px; font-weight: 500; }
.dwk-h span { display: flex; flex-direction: column; font-size: 11px; letter-spacing: .14em; line-height: 1.2; }
.dwk-h span small { letter-spacing: 0; color: var(--muted); }
.dwk-h i { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.dwk-l { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; min-width: 0; }
.dwk-v { display: flex; gap: 8px; align-items: baseline; text-align: left; padding: 6px 8px; border: 0; border-left: 4px solid #b07a12; background: #fff; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dwk-v.k-delivery { border-left-color: #3b6ea5; } .dwk-v.k-collect { border-left-color: #7a5aa0; } .dwk-v.k-done { border-left-color: #4f8a47; opacity: .7; }
.dwk-e { padding: 6px 8px; color: var(--muted); }
.dmonth { background: var(--paper); color: var(--ink); border: 1px solid var(--line); padding: 8px; }
.dmn, .dmg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dmn span { display: flex; flex-direction: column; align-items: center; font-size: 10px; letter-spacing: .12em; color: var(--muted); padding-bottom: 4px; }
.dmn small { letter-spacing: 0; }
.dmc { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; min-height: 58px; padding: 6px 2px; border: 0; background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.dmc b { font-size: 16px; font-weight: 500; }
.dmc.out { opacity: .3; }
.dmc.today { outline: 2px solid var(--ink); outline-offset: -2px; }
.dmc.sel { background: var(--ink); color: var(--paper); }
.dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.dots i, .dlegend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #b07a12; }
.k-delivery > i, i.k-delivery { background: #3b6ea5; } i.k-collect { background: #7a5aa0; } i.k-done { background: #4f8a47; } i.k-measure { background: #b07a12; }
.dsel { font-size: 13px; letter-spacing: .18em; color: var(--frame-soft); padding-top: 4px; }
.dlegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--frame-muted); }
.dlegend span { display: inline-flex; align-items: center; gap: 6px; }
.dnew, .dbig { min-height: 60px; font-size: 14px; }
.dpanel { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); color-scheme: light; position: relative; }
.dp-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dp-h b, .dp-h small { font-size: 12px; letter-spacing: .18em; color: var(--muted); }
.dp-name { margin: 0; font-size: 24px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.dsugg { display: flex; flex-direction: column; gap: 4px; margin-top: -6px; }
.dsugg:empty { display: none; }
.dsg { text-align: left; padding: 10px 12px; min-height: 44px; border: 1px solid #c9a86a; background: #fbf5e8; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); }
.dsg-n { font-size: 12px; color: var(--muted); }
.dtwo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dkinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dkind { min-height: 56px; border: 1px solid var(--ink); border-top: 5px solid #b07a12; background: #fff; cursor: pointer; font: inherit; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.dkind.k-delivery { border-top-color: #3b6ea5; } .dkind.k-collect { border-top-color: #7a5aa0; }
.dkind.on { background: var(--ink); color: var(--paper); }
.dsec { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.dsec .btn { align-self: flex-start; }
.droom { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) auto minmax(0, .8fr) 74px 40px; gap: 6px; align-items: center; }
.droom input { font: inherit; font-size: 16px; min-height: 46px; padding: 8px; border: 1px solid var(--input-line); border-radius: 0; background: #fff; color: var(--ink); width: 100%; }
.droom b { font-size: 14px; font-weight: 500; text-align: right; }
.dr-x { min-height: 40px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 20px; color: var(--warn); }
.dtot { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dtot b { font-size: 20px; color: var(--ink); letter-spacing: 0; }
.dlam { margin: 0; font-size: 14px; color: var(--ink-2); }
.dlam:empty { display: none; }
.dphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.dph { aspect-ratio: 1; padding: 0; border: 1px solid var(--line-2); background: #fff; cursor: pointer; overflow: hidden; }
.dph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dph.add { display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 300; color: var(--muted); border-style: dashed; position: relative; }
.dpanel textarea { min-height: 110px; }
.dcopy { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted-2); padding: 8px 10px; border: 1px dashed #c9a86a; background: #fbf5e8; }
.dupnote { margin: 0 0 14px; font-size: 13px; line-height: 1.45; color: var(--ink-2); padding: 10px 12px; border: 1px dashed #c9a86a; background: #fbf5e8; }
.dupnote b { font-weight: 500; }
.dfl { display: flex; gap: 8px; flex-wrap: wrap; }
.dby { margin: 0; font-size: 12px; color: var(--muted); }
.dconfirm { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--warn); background: var(--warn-bg); }
.dconfirm div { display: flex; gap: 8px; }
.dconfirm .btn { flex: 1; min-height: 48px; }
.btn.okb { background: #4f8a47; border-color: #4f8a47; color: #fff; }
.dlight { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; background: rgba(15, 15, 14, .92); color: var(--frame-text); }
.dlight img { max-width: 100%; max-height: 76vh; object-fit: contain; }
.dlight .dv-acts { width: min(520px, 100%); }
@media (max-width: 720px) {
  .diary { margin-top: 16px; }
  .droom { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 44px; padding-bottom: 8px; border-bottom: 1px solid #e3ddd1; }
  .droom .dr-name { grid-column: 1 / -1; }
  .droom b { grid-column: 1 / -1; order: 9; text-align: left; }
  .dwk { grid-template-columns: 78px minmax(0, 1fr); }
}

/* ---------- factory orders ---------- */
.olink { display: block; margin-top: 2px; font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); width: max-content; }
.opick { margin-top: 4px; font: inherit; font-size: 12px; min-height: 34px; padding: 4px 6px; border: 1px dashed var(--input-line); border-radius: 0; background: #fff; color: var(--ink-2); width: 100%; cursor: pointer; }
.ogrid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; margin-top: 24px; align-items: start; }
.olist { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.olist .segs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.olist .seg.small { padding: 6px 4px; letter-spacing: .08em; }
.field.dark > span { color: var(--frame-muted); }
.ocard { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: var(--paper); color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-left: 6px solid #b07a12; }
.ocard.o-part { border-left-color: #3b6ea5; } .ocard.o-done { border-left-color: #4f8a47; }
.ocard.sel { background: #fff; outline: 2px solid var(--ink); outline-offset: -3px; }
.ocard small { font-size: 12px; color: var(--muted); }
.oc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.oc-h b { font-size: 16px; font-weight: 500; letter-spacing: .08em; }
.opill { font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: #b07a12; padding: 3px 7px; white-space: nowrap; }
.opill.o-part { background: #3b6ea5; } .opill.o-done { background: #4f8a47; }
.oprog { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.oprog i { flex: 1; height: 4px; background: #e3ddd1; position: relative; }
.oprog em { position: absolute; left: 0; top: 0; bottom: 0; background: currentColor; color: #4f8a47; }
.opanel { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); color-scheme: light; min-width: 0; }
.op-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.op-h h2 { margin: 2px 0; font-weight: 300; font-size: 28px; letter-spacing: .12em; text-transform: uppercase; }
.op-st { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 13px; color: var(--ink-2); }
.olines { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.oline { display: grid; grid-template-columns: 56px minmax(0, 1.6fr) 100px 110px minmax(0, 1.5fr); gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.oline.th, .nfl.th { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 10px 0; }
.oline.ok { background: #eef4ec; }
.oimg { width: 56px; height: 56px; background: #e3ddd1 center / cover no-repeat; display: block; }
.oname { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oname b { font-size: 15px; font-weight: 500; letter-spacing: .06em; } .oname b span { font-weight: 400; }
.oname small { font-size: 12px; color: var(--muted); }
.ogot { font-weight: 500; color: var(--muted); } .ogot.some { color: #3b6ea5; } .ogot.full { color: #2f5d3a; }
.oact { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oact input { width: 84px; font: inherit; font-size: 14px; min-height: 36px; padding: 6px 8px; border: 1px solid var(--input-line); border-radius: 0; background: #fff; color: var(--ink); }
.oact .ok { font-size: 13px; font-weight: 500; color: #2f5d3a; }
.op-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.confirm.okc { background: #eef4ec; border-color: #4f8a47; }
.olog { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.olog > div:not(.lbl) { font-size: 13px; color: var(--ink-2); padding-left: 10px; border-left: 3px solid #4f8a47; }
.olog > div.neg { border-left-color: var(--warn); } .olog > div.note { border: 0; padding: 0; }
.o4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nfl { display: grid; grid-template-columns: minmax(0, 1fr) 110px 70px 44px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.nfl select, .nfl input { font: inherit; font-size: 14px; min-height: 44px; padding: 8px; border: 1px solid var(--input-line); border-radius: 0; background: #fff; color: var(--ink); width: 100%; }
@media (max-width: 900px) { .ogrid { grid-template-columns: minmax(0, 1fr); } .o4 { grid-template-columns: 1fr 1fr; } .oline { grid-template-columns: 48px minmax(0, 1fr) 80px; } .oline .oact { grid-column: 1 / -1; } .oline > span:nth-child(4) { grid-column: 2 / -1; } .oline.th { display: none; } }

.trbox { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 4px; }
.trbtn { font: inherit; font-size: 11px; font-weight: 500; letter-spacing: .1em; min-height: 32px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 0; background: #fff; color: var(--ink); cursor: pointer; }
.trout { align-self: stretch; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; background: #eef2f8; border-left: 3px solid #3b6ea5; color: var(--ink); }
.trout small { font-size: 10px; letter-spacing: .16em; color: #3b6ea5; }
.trout span { font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.trout button { align-self: flex-start; font: inherit; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: transparent; border: 0; padding: 0; color: #3b6ea5; text-decoration: underline; cursor: pointer; }
.trbox .note a { color: #3b6ea5; }
.trkey { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.trkey .field { flex: 1; min-width: 240px; }

.tphotos { display: flex; flex-direction: column; gap: 6px; }
.tph-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tph { width: 84px; height: 84px; padding: 0; border: 1px solid var(--line-2); background: #e3ddd1 center / cover no-repeat; cursor: pointer; border-radius: 0; }
.tph.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-style: dashed; border-color: var(--input-line); background: #fff; font-size: 26px; font-weight: 300; color: var(--muted); position: relative; }
.tph.add small { font-size: 10px; letter-spacing: .12em; }
.dlight small { font-size: 13px; color: var(--frame-soft); }


/* diary: kinds, crews, clients */
.dv.k-start { border-left-color: #2f7f7a; } .dv.k-other { border-left-color: #8a857b; }
i.k-start { background: #2f7f7a; } i.k-other { background: #8a857b; }
.dwk-v.k-start { border-left-color: #2f7f7a; } .dwk-v.k-other { border-left-color: #8a857b; }
.dkind.k-start { border-top-color: #2f7f7a; } .dkind.k-other { border-top-color: #8a857b; }
.dv-crew { font-size: 12px; font-weight: 500; color: #7a5a1a; }
.dcrew { display: flex; flex-direction: column; gap: 8px; }
.dcrew select { font: inherit; font-size: 15px; min-height: 46px; padding: 8px 10px; border: 1px solid var(--frame-line-2); border-radius: 0; background: var(--frame-2); color: var(--frame-text); width: 100%; color-scheme: dark; cursor: pointer; }
.dcrew-add { display: flex; gap: 6px; }
.dcrew-add input { flex: 1; min-width: 0; font: inherit; font-size: 15px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--frame-line-2); border-radius: 0; background: var(--frame-2); color: var(--frame-text); }
.field.dark input { background: var(--frame-2); color: var(--frame-text); border-color: var(--frame-line-2); color-scheme: dark; }
.dtabs { margin-bottom: 4px; }
.dnoday { margin: 0; font-size: 13px; line-height: 1.4; color: #7a4f00; background: #f7e7c6; border-left: 3px solid #b07a12; padding: 6px 8px; }
.ccard { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-left: 6px solid #b07a12; background: var(--paper); color: var(--ink); cursor: pointer; font: inherit; color-scheme: light; }
.ccard.k-wait { border-left-color: #c9a86a; } .ccard.k-start { border-left-color: #2f7f7a; } .ccard.k-delivery { border-left-color: #3b6ea5; } .ccard.k-collect { border-left-color: #7a5aa0; } .ccard.k-other { border-left-color: #8a857b; } .ccard.k-done { border-left-color: #4f8a47; opacity: .7; }
.cc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cc-h b { font-size: 16px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.cc-h small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; }
.cc-sub { font-size: 13px; color: var(--ink-2); }
.cc-when { font-size: 13px; font-weight: 500; color: #2f5d3a; } .cc-when.wait { color: #9a6a00; }

/* ---------- phones and small screens ---------- */
@media (max-width: 720px) {
  .wrap { padding: 0 16px 48px; }
  .top { flex-direction: column; align-items: flex-start; padding-top: 86px; }
  .top .logo { height: 52px; margin-left: -12px; }
  .top .right { align-items: flex-start; }
  .who { justify-content: flex-start; }
  h1.page { font-size: 30px; }
  .scan-fab { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); }
  .pform { grid-template-columns: 1fr; }
  .pphoto .ph { height: 200px; }
  .sorters { padding-left: 0; border-left: 0; width: 100%; }
  .acc-h span { font-size: 22px; }
  .signin .divider { display: none; }
  .signin .brand img { width: 120px; height: 120px; }
  .overlay { padding: 0; align-items: stretch; }
  .dialog { max-height: none; min-height: 100%; padding: 20px 16px; }
  .tr:not(.th) { grid-template-columns: 1fr 1fr !important; }
  .tr.th { display: none; }
  .form { grid-template-columns: 1fr 1fr !important; }
  .dark-field input { width: 100%; }
  .filters, .dark-field { width: 100%; }
}

/* ---------- printing labels (A4, 3 × 8 labels of 70 × 37 mm) ---------- */
#print-sheet { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; }
  body > *:not(#print-sheet) { display: none !important; }
  #print-sheet { display: block; }
  .sheet { width: 210mm; height: 297mm; padding-top: .5mm; display: grid; grid-template-columns: repeat(3, 70mm); grid-auto-rows: 37mm; page-break-after: always; break-after: page; }
  .plabel { display: flex; align-items: center; gap: 3mm; padding: 3mm; overflow: hidden; color: #000; font-family: var(--font); }
  .plabel img { width: 31mm; height: 31mm; flex-shrink: 0; image-rendering: pixelated; }
  .plabel .t { display: flex; flex-direction: column; gap: .6mm; min-width: 0; }
  .plabel small { font-size: 6.5pt; letter-spacing: .15em; color: #555; }
  .plabel b { font-size: 14pt; line-height: 1.05; }
  .plabel span { font-size: 7.5pt; text-transform: uppercase; }
  .plabel em { font-style: normal; font-size: 7pt; color: #333; }
  .hprint { padding: 16mm 14mm; color: #000; font-family: var(--font); }
  .hp-top { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid #000; padding-bottom: 4mm; margin-bottom: 4mm; }
  .hp-top small { font-size: 8pt; letter-spacing: .2em; color: #555; }
  .hp-top h1 { margin: 1mm 0; font-size: 18pt; font-weight: 300; letter-spacing: .1em; text-transform: uppercase; }
  .hp-r { font-size: 9pt; text-align: right; color: #333; }
  .hprint .htable { font-size: 10pt; }
  .hprint .htable th { color: #333; border-bottom-color: #000; }
  .hprint .htable td { border-bottom-color: #bbb; }
}

/* ---------- top menu (every page) ---------- */
.topnav { flex-direction: column; align-items: stretch; gap: 10px; }
.tn-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tn-logo { line-height: 0; flex-shrink: 0; }
.tn-back { flex-shrink: 0; }
.tn-back span { font-size: 18px; font-weight: 300; line-height: 1; }
.tn-nav { display: flex; align-items: center; gap: 2px; flex: 1; flex-wrap: wrap; min-width: 0; }
.nv { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; white-space: nowrap; min-height: 44px; padding: 10px 13px; display: inline-flex; align-items: center; gap: 6px; color: var(--frame-soft); border-bottom: 2px solid transparent; }
.nv:hover { color: #fff; }
.nv.on { color: #fff; border-bottom-color: #c9a86a; }
.nv .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #c0392b; color: #fff; font-size: 10px; letter-spacing: 0; }
.tn-sub { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
/* ---------- home / projects tiles ---------- */
.htiles { display: grid; gap: 16px; margin-top: 28px; }
.htiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.htiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.htile { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 300px; padding: 26px; text-decoration: none; color: var(--frame-text); border: 1px solid var(--frame-line-2); }
.htile:hover { border-color: var(--frame-text); background: #1f1f1e; }
.htiles.light .htile { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.htiles.light .htile:hover { background: #fff; }
.ht-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ht-no { font-size: 12px; letter-spacing: .3em; color: var(--frame-muted); }
.htiles.light .ht-no { color: var(--muted); }
.ht-mid { display: flex; flex-direction: column; gap: 8px; }
.ht-mid b { font-size: 30px; font-weight: 300; letter-spacing: .14em; text-transform: uppercase; }
.ht-mid span { font-size: 14px; line-height: 1.45; color: var(--frame-muted); }
.htiles.light .ht-mid span { color: var(--muted); }
.ht-mid em { font-style: normal; font-size: 13px; font-weight: 500; color: #c9a86a; }
.htiles.light .ht-mid em { color: var(--warn); }
.ht-arr { align-self: flex-end; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 50%; font-size: 22px; font-weight: 200; }
.soon { margin-top: 28px; min-height: 360px; border: 1px dashed var(--frame-line-2); display: flex; align-items: center; justify-content: center; color: var(--frame-muted); letter-spacing: .06em; }
@media (max-width: 900px) { .htiles.four, .htiles.three { grid-template-columns: 1fr 1fr; } .htile { min-height: 200px; } }
@media (max-width: 560px) { .htiles.four, .htiles.three { grid-template-columns: 1fr; } }

/* ---------- JOBS · ΔΕΛΤΙΟ ΕΡΓΑΣΙΑΣ ---------- */
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.jtools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.jsearch { font: inherit; font-size: 15px; min-height: 44px; width: 340px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--frame-line-2); border-radius: 0; background: var(--frame-2); color: var(--frame-text); }
.jsegs { flex-wrap: wrap; }
.jalert-n { background: #c0392b; color: #fff; padding: 0 6px; opacity: 1 !important; }
.jstrip { display: flex; gap: 6px; overflow-x: auto; margin-top: 14px; padding-bottom: 4px; }
.jchip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 120px; padding: 8px 10px; font: inherit; text-align: left; cursor: pointer; border: 1px solid var(--frame-line-2); background: transparent; color: var(--frame-soft); }
.jchip span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.jchip b { font-size: 18px; font-weight: 400; color: var(--frame-text); }
.jchip b i { font-style: normal; font-size: 11px; color: #ff8a7a; margin-left: 6px; }
.jchip.on { background: var(--frame-text); color: var(--frame); } .jchip.on b { color: var(--frame); }
.jgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; margin-top: 20px; align-items: start; }
.jgrid.wide { grid-template-columns: minmax(0, 1fr); }
.jlist { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.jl-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.jl-h h2 { margin: 0; font-size: 18px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.jl-h span { font-size: 12px; color: var(--frame-muted); }
.jl-h .r { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.jl-h .btn.on { background: var(--frame-text); color: var(--frame); }
.jclosed { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--frame-soft); }
.jalertbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font: inherit; text-align: left; cursor: pointer; border: 1px solid #c0392b; background: rgba(192, 57, 43, .14); color: var(--frame-text); }
.jalertbar b { font-size: 20px; font-weight: 500; color: #ff8a7a; } .jalertbar span { flex: 1; } .jalertbar small { letter-spacing: .14em; font-size: 11px; }
.jrowwrap { display: flex; align-items: stretch; gap: 0; }
.jtick { display: flex; align-items: center; padding: 0 10px; background: var(--frame-2); border: 1px solid var(--frame-line); border-right: 0; }
.jtick input, .jtr input[type=checkbox] { width: 20px; height: 20px; accent-color: #c9a86a; }
.jrow { flex: 1; min-width: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px 120px; gap: 12px; align-items: center; padding: 12px; font: inherit; text-align: left; cursor: pointer; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-left: 5px solid #8a857b; }
.jrow:hover { background: #fff; }
.jrow.on { outline: 2px solid #c9a86a; outline-offset: -2px; border-left-color: #c9a86a; }
.jr-no { display: flex; flex-direction: column; font-size: 18px; font-weight: 500; } .jr-no small { font-size: 10px; letter-spacing: .2em; color: var(--muted); font-weight: 400; }
.jr-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jr-main b { font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-for { font-size: 12px; color: #7a5a1a; } .jr-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-alert { font-size: 12px; color: var(--warn); font-weight: 500; }
.jr-step { display: flex; flex-direction: column; font-size: 13px; } .jr-step small { font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.jr-turn { display: flex; flex-direction: column; font-size: 13px; text-align: right; } .jr-turn i { font-style: normal; font-size: 12px; color: var(--muted); }
i.late, .jr-turn i.late, .jtr i.late { color: var(--warn); font-weight: 600; }
.jdel { display: flex; align-items: center; justify-content: center; width: 46px; border: 1px solid var(--line); border-left: 0; background: var(--paper); color: var(--muted-2); cursor: pointer; }
.jdel:hover { color: var(--warn); background: var(--warn-bg); }
.jnone { padding: 24px; text-align: center; color: var(--frame-muted); border: 1px dashed var(--frame-line-2); margin: 0; }
.jalert { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-left: 5px solid #c0392b; color-scheme: light; }
.jalert.on { outline: 2px solid #c9a86a; outline-offset: -2px; }
.jalert p { margin: 0; font-size: 14px; } .jalert small { color: var(--muted); }
.jalert .r, .jfg .r, .jact .r, .jc-r .r, .jinfo .r, .field .r { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.jtag { display: inline-block; padding: 2px 7px; font-size: 10px; letter-spacing: .2em; background: #c0392b; color: #fff; }
.jtable { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border: 1px solid var(--line); color-scheme: light; }
.jtr { display: grid; grid-template-columns: 60px minmax(0, 1.6fr) 1fr 1fr 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.jtr:has(> input[type=checkbox]), .jtr.th:has(> span:first-child:empty) { grid-template-columns: 26px 60px minmax(0, 1.6fr) 1fr 1fr 1fr; }
.jtr.th { font-size: 10px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.jtr.on { background: #fff6e2; }
.jtr > span { display: flex; flex-direction: column; min-width: 0; } .jtr i { font-style: normal; font-size: 11px; color: var(--muted); }
.jt-no, .jt-main { font: inherit; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.jt-no { font-weight: 600; font-size: 15px; }
.jt-main { display: flex; flex-direction: column; min-width: 0; } .jt-main b { font-weight: 500; text-transform: uppercase; } .jt-main small { color: var(--muted); }
.jaside { min-width: 0; position: sticky; top: 12px; }
.jempty { padding: 60px 20px; text-align: center; color: var(--frame-muted); border: 1px dashed var(--frame-line-2); }
.jcard { display: flex; flex-direction: column; gap: 0; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); color-scheme: light; }
.dialog.jcard { padding: 0; gap: 0; }
.jc-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.jc-h > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.jc-h small { font-size: 12px; color: var(--muted); }
.jc-eyebrow { font: inherit; font-size: 11px !important; letter-spacing: .22em; color: var(--muted); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.jc-eyebrow span { margin-left: 6px; font-size: 14px; }
.jno { font-size: 28px; font-weight: 300; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; }
.jno-edit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jno-edit span { font-size: 28px; font-weight: 300; }
.jno-edit input { font: inherit; font-size: 26px; font-weight: 300; width: 130px; min-height: 46px; padding: 2px 10px; border: 1px solid var(--input-line); border-bottom: 2px solid #c9a86a; background: #fff; color: var(--ink); }
.jc-r { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.jchipst { display: inline-block; padding: 4px 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--paper); }
.jchipst.late { background: #c0392b; } .jchipst.closed { background: #4f8a47; }
.jc-sec { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.jc-sec .lbl { display: flex; justify-content: space-between; align-items: center; } .jc-sec .lbl a { color: var(--ink); letter-spacing: .1em; }
.jfg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.jc-sec.jfg { display: grid; }
.jfg.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jfg.end { align-items: end; }
.jfg .span2, .jfg .field.span2 { grid-column: 1 / -1; }
.jf-in { display: flex; gap: 6px; } .jf-in input { flex: 1; min-width: 0; }
.jf-in .btn { flex-shrink: 0; min-height: 46px; padding: 8px 12px; letter-spacing: .08em; }
.jinfo { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: #efe9de; font-size: 14px; }
.jinfo small { font-size: 10px; letter-spacing: .2em; color: var(--muted); }
.jinfo .warn { color: #9a6a00; } .jinfo a { color: var(--ink); font-size: 13px; }
.jinfo .up { color: var(--warn); } .jinfo .down { color: var(--ok); }
.jinfo.dashed { background: transparent; border: 1px dashed var(--input-line); color: var(--muted-2); }
.jbig { font-size: 28px; font-weight: 400; }
.jwarn { padding: 10px 12px; background: var(--warn-bg); color: var(--warn); border-left: 4px solid var(--warn); font-weight: 500; }
.jp-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) 110px; gap: 8px; align-items: center; }
.jp-row > span { display: flex; flex-direction: column; font-size: 14px; } .jp-row > span small { font-size: 11px; color: var(--muted); }
.jp-row > span.has { font-weight: 600; }
.jp-row.th > span { font-size: 10px; letter-spacing: .2em; color: var(--muted); }
.jp-row input { font: inherit; font-size: 14px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); width: 100%; border-radius: 0; }
.jstep { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; background: #fff; border-bottom: 1px solid var(--line); border-left: 6px solid #c9a86a; }
.jstep-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.jstep-h > div { display: flex; flex-direction: column; gap: 2px; }
.jstep-h small { font-size: 10px; letter-spacing: .22em; color: var(--muted); }
.jstep-h b { font-size: 22px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.jstep-h span { font-size: 13px; color: var(--muted); }
.jstep-h > i { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; } .jstep-h > i.late { color: var(--warn); font-weight: 600; }
.jact { display: flex; flex-direction: column; gap: 12px; }
.jact.off { opacity: .45; pointer-events: none; }
.jact .field textarea { min-height: 100px; }
.jtoast { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: #e3efe4; color: var(--ok); border-left: 4px solid var(--ok); font-size: 14px; }
.jtoast.bad { background: var(--warn-bg); color: var(--warn); border-left-color: var(--warn); }
.jtoast button { font: inherit; font-size: 20px; background: none; border: 0; color: inherit; cursor: pointer; width: 36px; height: 36px; }
.jsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.jsteps li { display: grid; grid-template-columns: 28px minmax(0, 1fr) 190px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid #ebe5d9; }
.jsteps li > i { font-style: normal; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.jsteps li > span { display: flex; flex-direction: column; } .jsteps li b { font-size: 13px; font-weight: 500; } .jsteps li small { font-size: 12px; color: var(--muted); }
.jsteps li > em { font-style: normal; font-size: 12px; color: var(--muted-2); text-align: right; }
.jsteps select { font: inherit; font-size: 13px; min-height: 36px; padding: 4px 6px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 0; }
.jsteps .js-done > i { background: #4f8a47; border-color: #4f8a47; color: #fff; }
.jsteps .js-now { background: #fff6e2; } .jsteps .js-now > i { background: #c9a86a; border-color: #c9a86a; color: #fff; } .jsteps .js-now b { font-weight: 600; }
.jsteps .js-now.late { background: var(--warn-bg); } .jsteps .js-now.late > i { background: #c0392b; border-color: #c0392b; }
.jsteps .js-skip { opacity: .55; } .jsteps .js-fut b { color: var(--ink-2); }
.jtask { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid #ebe5d9; font-size: 13px; }
.jtask > i { font-style: normal; color: var(--muted); } .jtask.done > i { color: #4f8a47; } .jtask.done b { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.jtask > span { display: flex; flex-direction: column; } .jtask small { font-size: 12px; color: var(--muted); } .jtask em { font-style: normal; color: var(--muted-2); }
.jtask.late { background: var(--warn-bg); } .jtask.late small { color: var(--warn); }
.jhist { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; }
.jhist > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 5px 0; border-bottom: 1px solid #ebe5d9; font-size: 13px; }
.jhist small { color: var(--muted); } .jhist b { font-weight: 500; }
.jc-sec > .btn, .jhist + .btn { align-self: flex-start; }
.jowners { margin-top: 20px; padding: 20px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); color-scheme: light; display: flex; flex-direction: column; gap: 4px; }
.jowners h2 { margin: 0; font-size: 18px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.jowners p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); max-width: 820px; }
.jo-row { display: grid; grid-template-columns: 36px minmax(0, 1.6fr) minmax(0, 1fr) 220px 150px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.jo-row.th span { font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.jo-row > span { display: flex; flex-direction: column; font-size: 14px; } .jo-row small { font-size: 12px; color: var(--muted); } .jo-row em { font-size: 13px; color: var(--muted-2); }
.jo-n { font-size: 18px; font-weight: 300; }
.jo-row select, .jo-row input { font: inherit; font-size: 14px; min-height: 40px; padding: 6px 8px; border: 1px solid var(--input-line); background: #fff; color: var(--ink); border-radius: 0; width: 100%; }
.jo-check { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.jnew .jc-sec .dfoot { margin-top: 8px; }
.jnew .jc-sec.jfg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Tasks page — jobs waiting for you */
.tjobs { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; padding: 12px; border: 1px solid #c9a86a; background: rgba(201, 168, 106, .07); }
.tjobs .lbl { color: #e8cf98; }
.tjob { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: var(--paper); color: var(--ink); text-decoration: none; border-left: 4px solid #c9a86a; }
.tjob b { font-weight: 500; } .tjob small { font-size: 12px; color: var(--muted); }
.tjob.late { border-left-color: #c0392b; } .tjob.late small { color: var(--warn); }
.tjob:hover { background: #fff; }
/* Tasks — reorder, groups, place suggestions */
.tdrag { cursor: grab; color: var(--muted); font-size: 18px; padding: 0 4px; user-select: none; }
.tud { display: inline-flex; flex-direction: column; }
.tud button { font: inherit; font-size: 9px; line-height: 1; width: 26px; height: 18px; padding: 0; border: 1px solid var(--line-2); background: #fff; color: var(--muted-2); cursor: pointer; }
.tud button:hover { color: var(--ink); background: #ece6da; }
.trow[draggable=true] { cursor: default; }
.dragging { opacity: .4; }
.dropover { outline: 2px dashed #c9a86a; outline-offset: 2px; }
.gtog { font: inherit; font-size: 16px; width: 36px; height: 36px; border: 1px solid #c9a86a; background: transparent; color: #e8cf98; cursor: pointer; }
.tgroup.closed > :not(.tgroup-h) { display: none !important; }
.locsugg { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-top: 0; background: #fff; max-height: 220px; overflow-y: auto; }
.locsugg:empty { display: none; }
.locopt { font: inherit; font-size: 14px; text-align: left; padding: 9px 12px; border: 0; border-bottom: 1px solid #ebe5d9; background: #fff; color: var(--ink); cursor: pointer; }
.locopt:hover, .locopt:focus { background: #f3ede2; }
.locopt small { color: var(--muted); }
/* Diary — client cards with actions */
div.ccard { cursor: default; gap: 8px; }
.cc-open { display: flex; flex-direction: column; gap: 3px; font: inherit; text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.cc-open:hover .cc-h b { text-decoration: underline; }
.cc-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-acts .btn.small { min-height: 36px; padding: 6px 10px; letter-spacing: .08em; }
.cc-for, .dv-for { font-size: 13px; color: #7a5a1a; font-style: italic; }
.cc-job { align-self: flex-start; font-size: 10px; letter-spacing: .2em; padding: 2px 6px; background: var(--ink); color: var(--paper); }
.cc-sub small { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
@media (max-width: 1000px) {
  .jgrid { grid-template-columns: minmax(0, 1fr); }
  .jaside { position: static; }
  .jo-row { grid-template-columns: 30px minmax(0, 1fr) 1fr; } .jo-row > span:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .jrow { grid-template-columns: 52px minmax(0, 1fr); } .jr-step, .jr-turn { grid-column: 2; text-align: left; }
  .jfg, .jfg.three, .jnew .jc-sec.jfg { grid-template-columns: minmax(0, 1fr); }
  .jsteps li { grid-template-columns: 28px minmax(0, 1fr); } .jsteps li > select, .jsteps li > em { grid-column: 2; text-align: left; }
  .jtr { grid-template-columns: 50px minmax(0, 1fr); } .jtr > span { display: none; }
  .jp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 70px; }
  .jhist > div { grid-template-columns: minmax(0, 1fr); }
  .jc-r { align-items: flex-start; }
}
@media print {
  .jpcard { display: flex; flex-direction: column; gap: 4mm; min-height: 262mm; color: #000; }
  .jpcard + .pbreak, .pbreak { break-before: page; page-break-before: always; }
  .jp-brand { font-size: 16pt; font-weight: 400; letter-spacing: .3em; }
  .pfg { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #000; border-left: 1px solid #000; }
  .pf { padding: 2mm 3mm; border-right: 1px solid #000; border-bottom: 1px solid #000; min-height: 12mm; }
  .pf.span { grid-column: 1 / -1; }
  .pf small, .pnotes small { font-size: 7pt; letter-spacing: .15em; color: #444; }
  .pf div { font-size: 11pt; }
  .pnotes { flex: 1; display: flex; flex-direction: column; border: 1px solid #000; padding: 2mm 3mm; min-height: 40mm; }
  .pnotes div { flex: 1; font-size: 11pt; white-space: pre-wrap; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 7.5mm, #bbb 7.5mm, #bbb calc(7.5mm + 1px)); }
  .psign .pf { min-height: 22mm; }
  .ph2 { font-size: 13pt; font-weight: 400; letter-spacing: .12em; margin: 0 0 4mm; }
  .pbreak p { font-size: 10pt; margin: 0 0 2mm; }
  .hprint > .pbreak:first-child { break-before: auto; page-break-before: auto; }
  .tpsec { break-after: page; page-break-after: always; }
  .tpsec:last-child { break-after: auto; page-break-after: auto; }
  .tpsec p { font-size: 10.5pt; margin: 0 0 3mm; }
  .tpgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
  .tpf { margin: 0; break-inside: avoid; }
  .tpf img { width: 100%; max-height: 110mm; object-fit: contain; border: 1px solid #ccc; }
  .tpf figcaption { font-size: 8pt; color: #444; }
}
/* Full backup card */
.bkcard { border-color: #c9a86a !important; }
.bk-sum { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: #efe9de; color: var(--ink); font-size: 13px; }
.bk-sum b { font-weight: 500; word-break: break-all; }
.bk-done { margin: 0; padding: 10px 12px; background: #e3efe4; color: var(--ok); font-size: 13px; }
.bk-step { margin: 0; font-size: 13px; color: #9a6a00; }
.iocards { grid-template-columns: repeat(2, minmax(0, 1fr)); } @media (max-width: 1000px) { .iocards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .tn-row { gap: 10px; }
  .tn-nav { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .tn-nav::-webkit-scrollbar { display: none; }
  .nv { padding: 10px 10px; letter-spacing: .14em; font-size: 11px; }
}
