:root {
  --bg: #f4f2ee;
  --card: #ffffff;
  --ink: #1f2328;
  --ink-2: #57606a;
  --ink-3: #8c959f;
  --line: #e3ded6;
  --line-2: #d0c9bd;
  --kraft: #c8894a;
  --kraft-dark: #5a3a1a;
  --accent: #a8622a;
  --accent-soft: #f6ebdf;
  --focus: #2f6fdf;
  --err: #c62828;
  --err-soft: #fdecea;
  --warn: #9a6700;
  --warn-soft: #fff5d6;
  --ok: #1a7f37;
  --radius: 10px;
  --c1: #c8894a; --c2: #5b8def; --c3: #9b6bd3; --c4: #3fa37a; --c5: #e0a526; --c6: #8c959f; --c7: #d9534f;
  font-size: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", Arial, sans-serif;
  line-height: 1.35;
}
button, input, select, textarea { font: inherit; color: inherit; }
h2, h3, h4 { margin: 0; font-weight: 600; }
h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
h3 { font-size: 14px; margin-bottom: 10px; }
h4 { font-size: 13px; margin: 18px 0 8px; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.hint { color: var(--ink-2); font-size: 12.5px; margin: 4px 0 10px; }
[hidden] { display: none !important; }

/* ---------- верхняя панель ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 16px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.brand svg { width: 26px; height: 26px; }
.order-meta { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.order-meta label { display: flex; align-items: center; gap: 6px; }
.order-meta input { border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 6px; background: #fff; }
.order-meta .w-no { width: 70px; }
.dirty { color: var(--accent); font-size: 12px; }
.actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.actions .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
button {
  border: 1px solid var(--line-2); background: #fff; border-radius: 7px;
  padding: 6px 12px; cursor: pointer; white-space: nowrap;
}
button:hover { background: #faf8f5; border-color: var(--ink-3); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover { background: #8f5220; }
button.icon { padding: 6px 9px; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 1px;
}

.banner { background: var(--err-soft); color: var(--err); padding: 8px 16px; border-bottom: 1px solid #f5c2c0; }

/* ---------- раскладка ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(520px, 640px) minmax(420px, 1fr);
  gap: 16px; padding: 16px; align-items: start;
  max-width: 1500px; margin: 0 auto;
}
@media (max-width: 1100px) { .layout { grid-template-columns: 1fr; } .result { position: static !important; } }
.result { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 80px); overflow: auto; padding-bottom: 8px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; }
.step {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700;
}

/* ---------- поля ---------- */
.grid { display: grid; gap: 10px 12px; margin-bottom: 8px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; } .span4 { grid-column: span 4; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fld > span:first-child { font-size: 12.5px; color: var(--ink-2); }
.fld input, .fld select, .fld textarea, .inp {
  width: 100%; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; min-height: 34px;
}
.fld input, .fld select, .fld textarea { padding: 6px 8px; }
.fld textarea { resize: vertical; }
.inp { display: flex; align-items: center; overflow: hidden; }
.inp:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.inp input { border: 0 !important; outline: none !important; min-width: 0; flex: 1; padding: 6px 8px; min-height: 32px; text-align: right; font-variant-numeric: tabular-nums; background: transparent; }
.inp i { font-style: normal; color: var(--ink-3); padding: 0 8px 0 2px; font-size: 12.5px; white-space: nowrap; }
.inp.big input { font-size: 18px; font-weight: 600; }
.inp input::placeholder { color: var(--ink-3); font-weight: 400; }
.fld.bad .inp, .fld.bad select, .fld.bad > input { border-color: var(--err); background: var(--err-soft); }
.fld.warn .inp, .fld.warn select { border-color: #d4a72c; }
.fld .msg { font-size: 12px; color: var(--err); }
.fld.warn .msg { color: var(--warn); }
.chk { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; cursor: pointer; user-select: none; }
.chk input { width: 16px; height: 16px; accent-color: var(--accent); }
.static { min-height: 34px; display: flex; align-items: center; color: var(--ink-2); font-size: 12.5px; }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.seg.wrap { flex-wrap: wrap; margin-bottom: 8px; }
.fld > .seg { align-self: flex-start; } /* внутри поля не растягивать рамку на всю ширину */
.seg button { border: 0; border-radius: 0; border-right: 1px solid var(--line-2); padding: 7px 14px; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent); color: #fff; }
.seg button small { display: block; font-size: 11px; opacity: .75; }

.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.styles button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; border-radius: 9px; }
.styles svg { width: 60px; height: 40px; }
.styles svg path { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linejoin: round; }
.styles svg path.thin { stroke-dasharray: 3 2; stroke-width: 1; }
.styles small { color: var(--ink-3); font-size: 11.5px; }
.styles button.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.styles button.on svg path { stroke: var(--accent); }

.qty-row { margin-top: 6px; align-items: end; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-bottom: 4px; }
.chips button { padding: 3px 9px; border-radius: 99px; font-size: 12.5px; color: var(--ink-2); }
.chips button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.price-note, .pallet-note { font-size: 12.5px; color: var(--ink-2); align-self: center; }
.price-note button, .pallet-note button { padding: 2px 8px; font-size: 12px; margin-left: 6px; }

table.options { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
table.options th { text-align: right; color: var(--ink-3); font-weight: 500; padding: 4px 8px; border-bottom: 1px solid var(--line); }
table.options th:first-child, table.options td:first-child { text-align: left; }
table.options td { text-align: right; padding: 5px 8px; border-bottom: 1px solid #f0ece6; }
table.options tr.row { cursor: pointer; }
table.options tr.row:hover td { background: #faf6f0; }
table.options tr.on td { background: var(--accent-soft); font-weight: 600; }
.badge { display: inline-block; padding: 0 6px; border-radius: 99px; font-size: 11px; background: #e9f5ec; color: var(--ok); margin-left: 6px; font-weight: 500; }

.pack { grid-template-columns: 1.1fr 1fr 1fr .8fr; align-items: center; }
.pack .th { font-size: 12px; color: var(--ink-3); }
.pack .rl { color: var(--ink-2); }
.pack .sum { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- результат ---------- */
.price-card { border-color: var(--line-2); }
.price-main { display: flex; justify-content: space-between; gap: 12px; }
.price-main .right { text-align: right; }
.cap { color: var(--ink-2); font-size: 12.5px; }
.price { font-size: 34px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.total { font-size: 22px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.sub { color: var(--ink-3); font-size: 12.5px; }
.stale .price, .stale .total { color: var(--ink-3); }
.bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin: 14px 0 8px; background: #eee; }
.bar span { height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -0.5px; }
.issues { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.issues li { padding: 7px 10px; border-radius: 7px; font-size: 13px; cursor: pointer; }
.issues li.err { background: var(--err-soft); color: var(--err); }
.issues li.warn { background: var(--warn-soft); color: var(--warn); }

.drawing svg, .strip svg { width: 100%; height: auto; display: block; }
.strip { margin-top: 10px; }
.kv { display: grid; grid-template-columns: auto auto; gap: 6px 16px; margin: 0; font-size: 13px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.kv .grp { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; border-top: 1px solid #f0ece6; padding-top: 8px; }
.kv .grp:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
table.costs { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.costs th { font-weight: 500; color: var(--ink-3); text-align: right; padding: 4px 6px; border-bottom: 1px solid var(--line); font-size: 12px; }
table.costs th:first-child, table.costs td:first-child { text-align: left; }
table.costs td { text-align: right; padding: 5px 6px; border-bottom: 1px solid #f0ece6; }
table.costs tr.tot td { font-weight: 700; border-top: 1px solid var(--line-2); border-bottom: 0; }
table.costs tr.sub td { color: var(--ink-2); }
table.costs i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }

/* ---------- чертёж ---------- */
svg .cut { fill: #fbf3e8; stroke: #2b2b2b; stroke-width: 2.2; stroke-linejoin: round; }
svg .slot { stroke: #2b2b2b; stroke-width: 4; }
svg .crease { stroke: #6e6e6e; stroke-width: 1.2; stroke-dasharray: 7 5; fill: none; }
svg .dim { stroke: #6e7781; stroke-width: 1; fill: none; }
svg .ext { stroke: #b0b7bf; stroke-width: .8; }
svg text { font-family: inherit; fill: #444c56; font-variant-numeric: tabular-nums; }
svg .flute { stroke: var(--kraft); stroke-width: 1.4; fill: none; }
svg .blank { fill: #f3e1c9; stroke: var(--kraft-dark); stroke-width: 1; }
svg .trim { fill: url(#hatch); stroke: var(--err); stroke-width: 1; }

/* ---------- изометрия поддона ---------- */
.iso svg { width: 100%; height: auto; display: block; max-height: 460px; }
.kv .note { grid-column: 1 / -1; text-align: left; color: var(--ink-3); font-size: 12px; margin-top: 4px; }
svg.pallet-iso polygon, svg.pallet-iso line, svg.pallet-iso circle { vector-effect: non-scaling-stroke; stroke-linejoin: round; }
svg.pallet-iso .box { stroke: #7a5530; stroke-width: .7; }
svg.pallet-iso .box.top { fill: #efd8b2; }
svg.pallet-iso .box.fx { fill: #d2a46e; }
svg.pallet-iso .box.fy { fill: #bb8a55; }
svg.pallet-iso .seam { stroke: #9c8a74; stroke-width: .6; stroke-dasharray: 3 2; }
svg.pallet-iso .wood { stroke: #7d6443; stroke-width: .6; }
svg.pallet-iso .wood.top { fill: #e6cfa6; }
svg.pallet-iso .wood.fx { fill: #c7a877; }
svg.pallet-iso .wood.fy { fill: #b09064; }
svg.pallet-iso .ext { stroke: #b0b7bf; stroke-width: .8; }
svg.pallet-iso .axis-x { stroke: #d9534f; fill: #d9534f; stroke-width: 1.4; }
svg.pallet-iso .axis-y { stroke: #2f9e6b; fill: #2f9e6b; stroke-width: 1.4; }
svg.pallet-iso .axis-z { stroke: #3b73d9; fill: #3b73d9; stroke-width: 1.4; }
svg.pallet-iso .lx { fill: #c0392b; font-weight: 600; }
svg.pallet-iso .ly { fill: #23855a; font-weight: 600; }
svg.pallet-iso .lz { fill: #2f5fb8; font-weight: 600; }

/* ---------- подбор ящика по изделию ---------- */
.fit-switch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.fit-switch > span { font-size: 12.5px; color: var(--ink-2); }
.fit-switch .seg { margin-bottom: 0; }
.fit { border: 1px solid var(--line); background: #fcfaf7; border-radius: 9px; padding: 12px; margin-bottom: 12px; }
.fit-drop { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px dashed var(--line-2); border-radius: 9px; background: #fbf9f6; font-size: 12.5px; margin-bottom: 10px; }
.fit-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.fit-drop.busy { opacity: .6; pointer-events: none; }
.inp.computed { background: #f7f4ef; }
.inp.computed input { color: var(--accent); font-weight: 600; }
table.parts { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 6px; }
table.parts th { font-weight: 500; color: var(--ink-3); font-size: 12px; text-align: right; padding: 3px 4px; }
table.parts th:nth-child(2) { text-align: left; }
table.parts td { padding: 2px 4px; vertical-align: middle; }
table.parts td.empty { color: var(--ink-3); padding: 8px 4px; }
table.parts input { border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 7px; width: 100%; background: #fff; }
table.parts input.n { text-align: right; width: 76px; font-variant-numeric: tabular-nums; }
table.parts input.q { width: 56px; }
table.parts td.nm small { display: block; font-size: 11px; margin: 1px 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
table.parts td.act { white-space: nowrap; text-align: right; }
table.parts td.act button { padding: 3px 8px; border: 0; color: var(--ink-3); }
table.parts td.act button:hover { color: var(--err); background: var(--err-soft); }
table.parts .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.approx { color: var(--warn); font-weight: 700; margin-right: 4px; cursor: help; }
button.small { padding: 3px 10px; font-size: 12.5px; margin-bottom: 12px; }
.fit-opts { margin-top: 4px; }
.fit-kit { font-size: 12.5px; margin: 2px 0 6px; }
table.options tr.nok td { color: var(--ink-3); }
table.options .nok-t { color: var(--warn); }
svg.fit-iso .floor { fill: #f3ead9; stroke: #b89a70; stroke-width: .8; }
svg.fit-iso .wall { fill: #f8f1e6; stroke: #cfb48c; stroke-width: .8; }
svg.fit-iso .part { stroke: rgba(40, 30, 20, .55); stroke-width: .6; }
svg.fit-iso .edge { stroke: #8a6a44; stroke-width: 1; stroke-dasharray: 4 3; }
#fitLegend { margin: 6px 0 10px; }
#print table.fit-parts { font-size: 9pt; }

/* ---------- заказы ---------- */
.drawer { position: fixed; inset: 0; background: rgba(20, 20, 20, .25); z-index: 50; display: flex; justify-content: flex-end; }
.drawer-panel { width: min(520px, 100%); background: #fff; height: 100%; display: flex; flex-direction: column; padding: 14px; gap: 10px; box-shadow: -8px 0 24px rgba(0,0,0,.12); }
.drawer-head, .modal-head { display: flex; align-items: center; gap: 12px; }
.drawer-head h3, .modal-head h3 { margin: 0; flex: 1; }
.modal-head h3 { flex: 0 0 auto; }
#ordersSearch { border: 1px solid var(--line-2); border-radius: 7px; padding: 8px 10px; }
.orders { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; }
.orders li { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 10px; padding: 10px; border-bottom: 1px solid #f0ece6; cursor: pointer; border-radius: 7px; }
.orders li:hover { background: #faf6f0; }
.orders li.cur { background: var(--accent-soft); }
.orders .t { font-weight: 600; }
.orders .m { color: var(--ink-3); font-size: 12px; grid-column: 1; }
.orders .p { text-align: right; font-variant-numeric: tabular-nums; }
.orders .d { grid-row: span 2; align-self: center; border: 0; color: var(--ink-3); }
.orders .d:hover { color: var(--err); background: var(--err-soft); }
.orders .empty { color: var(--ink-3); cursor: default; display: block; text-align: center; padding: 30px; }

/* ---------- настройки ---------- */
.modal { position: fixed; inset: 0; background: rgba(20, 20, 20, .3); z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal-panel { background: #fff; border-radius: 12px; width: min(980px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.modal-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; flex: 1; }
.tabs button { border: 0; background: none; padding: 6px 10px; border-radius: 6px; color: var(--ink-2); }
.tabs button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.modal-body { padding: 16px; overflow: auto; flex: 1; }
.modal-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.modal-foot .muted { font-size: 12px; }
.grow { flex: 1; }
table.edit { border-collapse: collapse; font-size: 13px; }
table.edit th { font-weight: 500; color: var(--ink-3); padding: 4px 6px; text-align: left; font-size: 12px; }
table.edit td { padding: 3px 4px; }
table.edit input { border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 7px; width: 100%; }
table.edit input.n { text-align: right; width: 80px; }
table.edit td.off { background: repeating-linear-gradient(45deg, #faf8f5, #faf8f5 4px, #f1ede7 4px, #f1ede7 8px); border-radius: 6px; }
table.edit button { padding: 3px 8px; }
table.prices td { min-width: 84px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #2b2b2b; color: #fff; padding: 9px 16px; border-radius: 8px; z-index: 90; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* ---------- печать ---------- */
#print { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  #app { display: none !important; }
  #print { display: block; font-size: 11pt; color: #000; }
}
#print h1 { font-size: 15pt; text-align: center; margin: 0 0 2mm; }
#print .ph { display: flex; justify-content: space-between; margin-bottom: 4mm; }
#print .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; align-items: start; }
#print table { width: 100%; border-collapse: collapse; margin-bottom: 4mm; }
#print td, #print th { border: 1px solid #555; padding: 1.2mm 2mm; text-align: left; vertical-align: top; }
#print td.n { text-align: right; white-space: nowrap; }
#print th { background: #eee; }
#print .sect { font-weight: 700; margin: 4mm 0 2mm; }
#print .drawing svg { width: 100%; max-height: 58mm; }
#print .keep { break-inside: avoid; }
#print .pallet-print { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; align-items: center; }
#print .pallet-print .iso svg { width: 100%; max-height: 66mm; }
#print .pallet-print table { font-size: 9pt; margin: 0; }
#print .pallet-print td { padding: .8mm 1.6mm; }
#print .pallet-print td:first-child { white-space: nowrap; }
#print .sign { break-inside: avoid; }
#print .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 12mm; margin-top: 6mm; }
#print .sign div { font-size: 9pt; }
#print .total-line { font-size: 12pt; font-weight: 700; margin: 3mm 0; }
#print .small { font-size: 9pt; color: #444; }
#print .page-break { break-before: page; }

/* ---------- вход, пользователи ---------- */
body:not(.is-admin) .admin-only { display: none !important; }
.auth { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); padding: 20px; }
.auth-card { width: min(380px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 26px 20px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 40px rgba(60, 40, 20, .08); }
.auth-card .brand { margin-bottom: 4px; }
.auth-card h2 { margin: 0; font-size: 18px; }
.auth-card .hint { margin: 0; }
.auth-card button.primary { padding: 9px 14px; }
.auth-err { margin: 0; padding: 8px 10px; border-radius: 7px; background: var(--err-soft); color: var(--err); font-size: 13px; }
.auth-row { display: flex; gap: 8px; justify-content: flex-end; }

.order-no b { color: var(--ink); font-variant-numeric: tabular-nums; }
.author { font-size: 12.5px; color: var(--ink-3); }
.author.foreign { color: var(--warn); }

.user-menu { position: relative; }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); padding: 6px; display: flex; flex-direction: column; z-index: 40; }
.user-menu .menu button { border: 0; text-align: left; padding: 8px 10px; border-radius: 6px; }
.user-menu .menu button:hover { background: var(--accent-soft); }
.menu-head { display: flex; flex-direction: column; padding: 6px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; }

.add-user { align-items: end; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.add-row { display: flex; gap: 12px; align-items: center; }
.add-row .hint { margin: 0; }
.pw-show { background: #eef7f0; border: 1px solid #b7dfc2; border-radius: 9px; padding: 12px 14px; margin-bottom: 12px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pw-show code { font-size: 16px; font-weight: 600; background: #fff; padding: 3px 8px; border-radius: 6px; border: 1px solid #b7dfc2; letter-spacing: .5px; }
table.users { width: 100%; border-collapse: collapse; font-size: 13px; }
table.users th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
table.users td { padding: 5px 6px; border-bottom: 1px solid #f0ece6; vertical-align: middle; }
table.users input[type=text] { border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 7px; width: 100%; }
table.users select { border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 6px; }
table.users tr.off td { color: var(--ink-3); }
table.users .me { font-size: 11.5px; color: var(--accent); margin-left: 4px; }
table.users .tmp { font-size: 11.5px; color: var(--warn); }
table.users td.acts { white-space: nowrap; text-align: right; }
table.users td.acts button { padding: 4px 9px; font-size: 12.5px; }
