/* Design tokens and layout: design/README.md and design/demo/index.html */
:root {
  --bg: #F2F4F5; --surface: #FFFFFF; --surface-2: #F7F8F9; --line: #DCE1E4; --line-strong: #C5CDD3;
  --ink: #16191C; --ink-2: #2F3A44; --muted: #4A5560; --muted-2: #5B6670;
  --accent: #1D4ED8; --accent-hover: #163DAB; --accent-ink: #FFFFFF;
  --goods-bg: #FFEFD9; --goods-fg: #854300; --goods-ph: #F7E7D1;
  --services-bg: #E4ECFB; --services-fg: #1B45A0; --services-ph: #E3EAF7;
  --jobs-bg: #DDF1E6; --jobs-fg: #0F5F40; --jobs-ph: #DCEDE3;
  --housing-bg: #DDF0F1; --housing-fg: #0C5A60; --housing-ph: #DAECEE;
  --cars-bg: #FBE5E3; --cars-fg: #8C2B22; --cars-ph: #F6E3E1;
  --events-bg: #F3E5F6; --events-fg: #722884; --events-ph: #EFE2F2;
  --other-bg: #E9ECEF; --other-fg: #3C4650; --other-ph: #E6EAED;
  --ok-bg: #DDF1E6; --ok-fg: #0F5A3C;
  --danger: #A12C14;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121518; --surface: #1B1F23; --surface-2: #22272C; --line: #30373D; --line-strong: #454E56;
    --ink: #E9EDF0; --ink-2: #D3DAE0; --muted: #A8B2BA; --muted-2: #9AA5AE;
    --accent: #7EA2FF; --accent-hover: #9BB7FF; --accent-ink: #0B1530;
    --goods-bg: #3A2A14; --goods-fg: #F5C58A; --goods-ph: #2E2418;
    --services-bg: #1C2B4A; --services-fg: #A9C3FF; --services-ph: #1A2438;
    --jobs-bg: #173A2A; --jobs-fg: #93DDB5; --jobs-ph: #172C22;
    --housing-bg: #163639; --housing-fg: #8FD6DC; --housing-ph: #152B2E;
    --cars-bg: #3D1F1C; --cars-fg: #F2A99F; --cars-ph: #2F1C1A;
    --events-bg: #36203D; --events-fg: #E2B5EE; --events-ph: #2A1D2F;
    --other-bg: #2A3036; --other-fg: #C9D1D8; --other-ph: #242A2F;
    --ok-bg: #173A2A; --ok-fg: #93DDB5;
    --danger: #FF8F78;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-text-size-adjust: 100%;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 10px;
  font-size: 15.5px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); font-weight: 500; }
.btn-ghost:hover { border-color: var(--muted-2); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 14px; font-size: 14.5px; }
.btn-wide { width: 100%; min-height: 52px; font-size: 17px; }
.error { color: var(--danger); font-weight: 500; margin: 10px 0 0; font-size: 15px; }
.note-ok { background: var(--ok-bg); color: var(--ok-fg); border-radius: 10px; padding: 12px 14px; font-size: 15px; margin: 0; }

/* Header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--ink); color: var(--surface); display: flex; align-items: center; justify-content: center; flex: none; }
/* Board label and place name on separate lines: never read as one phrase (SPEC.md section 4). */
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name b { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.brand-name span { font-size: 13.5px; color: var(--muted); }
.search { flex: 1 1 320px; position: relative; display: flex; align-items: center; order: 2; }
.search svg { position: absolute; left: 13px; color: var(--muted-2); pointer-events: none; }
.search input {
  width: 100%; height: 46px; padding: 0 14px 0 42px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2);
  font-size: 16px; /* 16 px or more: iPhone doesn't zoom in */
}
.search input::placeholder { color: var(--muted-2); }
.lang-switch { order: 3; }
.lang-switch button {
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--accent); cursor: pointer;
}
@media (max-width: 700px) {
  .lang-switch { order: 1; }
  .search { flex-basis: 100%; }
}

/* Board */
main.wrap { padding-top: 16px; padding-bottom: 40px; }
.intro { margin: 0 0 14px; font-size: 15.5px; color: var(--muted); max-width: 70ch; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 2px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 12px;
  border-bottom: 3px solid transparent;
  font-size: 15.5px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab .n { font-size: 12.5px; color: var(--muted-2); }
.tab[aria-current] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.seg { display: flex; margin-bottom: 8px; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; background: var(--surface); }
.seg a { display: flex; align-items: center; height: 38px; padding: 0 14px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.seg a[aria-current] { background: var(--ink); color: var(--surface); font-weight: 600; }
.result { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin: 14px 0 12px; font-size: 14px; color: var(--muted); }
.result-right { display: flex; align-items: center; gap: 14px; }
.result form { margin: 0; }
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; border: none; background: none; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.toggle .track { position: relative; flex: none; width: 36px; height: 20px; border-radius: 10px; background: var(--line-strong); transition: background .15s; }
.toggle .knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.toggle[aria-pressed="true"] .track { background: var(--accent); }
.toggle[aria-pressed="true"] .knob { transform: translateX(16px); }
@media (prefers-reduced-motion: reduce) { .toggle .track, .toggle .knob { transition: none; } }

/* Cards: photo layout D (D-03) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.card {
  display: flex; flex-direction: column; gap: 10px; min-height: 180px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); text-decoration: none;
}
.card:hover { border-color: var(--muted-2); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* The section is always written on the label, never shown by colour alone. */
.tag { font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 5px; background: var(--other-bg); color: var(--other-fg); }
.t-goods { background: var(--goods-bg); color: var(--goods-fg); }
.t-services { background: var(--services-bg); color: var(--services-fg); }
.t-jobs { background: var(--jobs-bg); color: var(--jobs-fg); }
.t-housing { background: var(--housing-bg); color: var(--housing-fg); }
.t-cars { background: var(--cars-bg); color: var(--cars-fg); }
.t-events { background: var(--events-bg); color: var(--events-fg); }
.kind { font-size: 12.5px; font-weight: 600; padding: 1px 7px; border-radius: 5px; border: 1px solid var(--muted-2); color: var(--ink-2); }
.photo-count { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.body { display: flex; gap: 12px; align-items: flex-start; }
.thumb { position: relative; flex: none; width: 104px; height: 104px; }
.thumb img { display: block; width: 104px; height: 104px; object-fit: cover; border-radius: 9px; background: var(--other-ph); }
.more-photos { position: absolute; right: 5px; bottom: 5px; padding: 1px 6px; border-radius: 4px; background: var(--ink); color: var(--surface); font-size: 11.5px; font-weight: 600; }
[data-photos="off"] .thumb { display: none; }
[data-photos="on"] .photo-count { display: none; }
.text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.title { font-size: 17px; line-height: 1.3; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.desc { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.price { font-weight: 600; overflow-wrap: anywhere; }
.when { color: var(--muted-2); text-align: right; white-space: nowrap; }
.more { grid-column: 1 / -1; display: flex; justify-content: center; padding-top: 8px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 12px; text-align: center; }
.empty b { font-size: 17px; }
.empty p { margin: 0; color: var(--muted); }
.not-found { margin-top: 24px; }

/* Notice page */
.back { display: flex; align-items: center; gap: 4px; max-width: 760px; min-height: 44px; margin: -6px auto 6px; color: var(--ink); text-decoration: none; font-size: 15.5px; }
.back:hover { color: var(--accent); }
.notice { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 20px 20px; }
.notice-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.notice-actions { display: flex; align-items: center; gap: 8px; }
.report summary { display: flex; list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report-panel {
  position: absolute; z-index: 1; right: 0; top: calc(100% + 6px); width: min(380px, calc(100vw - 32px));
  padding: 14px 16px 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
.report fieldset { border: none; margin: 0 0 8px; padding: 0; }
.report legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.radio { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.radio input { width: 19px; height: 19px; margin: 0; accent-color: var(--accent); }
.report form .btn { margin-top: 8px; }
/* The honeypot field: hidden from people, filled in by bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; margin-bottom: 16px; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--other-ph); }
.notice-title { margin: 10px 0 6px; font-size: 25px; line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.notice-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.notice-price { font-size: 21px; font-weight: 700; }
.notice-when { font-size: 14px; color: var(--muted); }
.notice-text { margin: 0 0 18px; max-width: 66ch; font-size: 16.5px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.who { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); margin-bottom: 16px; }
.who b { font-size: 16.5px; }
.who span { color: var(--muted); font-size: 14.5px; }
.phone { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.phone form { width: 100%; }
.phone-number { font-size: 23px; font-weight: 700; letter-spacing: 0.03em; color: var(--ink); text-decoration: none; }
.phone-links { display: flex; gap: 10px; width: 100%; }
.phone-links .btn { flex: 1; }
@media (max-width: 640px) {
  .notice { padding: 10px 14px 0; }
  .share-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  [data-share] { width: 44px; padding: 0; }
  .report-panel { left: 0; width: auto; }
  /* The phone button stays in reach at the bottom of the screen. */
  .phone {
    position: sticky; bottom: 0; margin: 0 -14px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line); border-radius: 0 0 14px 14px;
  }
}

/* Header link */
.post-link { order: 3; }
@media (max-width: 700px) { .post-link { order: 1; min-height: 44px; padding: 0 14px; } }

.messages { max-width: 760px; margin: 0 auto 12px; }

/* Posting: phones show one step at a time, wider screens the whole form beside the preview. */
.post { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px 20px; }
.post fieldset { border: none; margin: 0 0 8px; padding: 0; min-width: 0; }
.post-head h1 { margin: 0; font-size: 21px; }
.post-progress { margin: 2px 0 8px; font-size: 14px; color: var(--muted); }
.bars { display: flex; gap: 6px; margin-bottom: 16px; }
.bars span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.bars span.on { background: var(--accent); }
.step-title { margin: 0 0 14px; padding: 0; font-size: 21px; line-height: 1.25; font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile {
  min-height: 96px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
  padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); text-align: left; cursor: pointer;
}
.tile:hover { border-color: var(--line-strong); }
.tile[aria-pressed="true"] { border-color: var(--accent); }
.tile .tag { font-size: 15px; padding: 3px 9px; }
.tile small { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.kinds { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.kinds-label { margin: 0 0 2px; font-size: 16.5px; font-weight: 600; }
.opt {
  min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 16px;
  border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-size: 16.5px; text-align: left; cursor: pointer;
}
.opt .dot { flex: none; width: 21px; height: 21px; border-radius: 50%; border: 2px solid var(--muted-2); display: flex; align-items: center; justify-content: center; }
.opt[aria-pressed="true"] { border-color: var(--accent); }
.opt[aria-pressed="true"] .dot { border-color: var(--accent); }
.opt[aria-pressed="true"] .dot::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label, .field .lbl { font-size: 16px; font-weight: 600; }
.opt-l { font-weight: 400; color: var(--muted); }
.field .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.count { font-size: 13px; color: var(--muted); }
.field input[type=text], .field input[type=password], .field input[type=tel], .field input[type=email], .field input[type=date], .field input[type=time], .field textarea {
  width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font: inherit; font-size: 16px; color: var(--ink);
}
.field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 140px; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: 14px; color: var(--muted); line-height: 1.45; margin: 0; }
.money { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); overflow: hidden; }
.money input { border: none !important; flex: 1; min-width: 0; }
.money .cur { padding: 0 14px 0 4px; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 400 !important; line-height: 1.4; cursor: pointer; padding: 6px 0; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.two { display: flex; gap: 10px; }
.two .field { flex: 1; }
.photos { display: flex; gap: 10px; flex-wrap: wrap; }
.photo { position: relative; width: 96px; height: 96px; }
.photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; display: block; }
.photo .x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--ink); color: var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.add-photo {
  position: relative; width: 96px; height: 96px; border-radius: 10px; border: 1.5px dashed var(--muted-2); background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13.5px !important; font-weight: 500 !important; color: var(--ink-2); cursor: pointer; text-align: center;
}
.add-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.add-photo:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.link { min-height: 44px; border: none; background: none; color: var(--accent); text-decoration: underline; font: inherit; font-size: 15px; cursor: pointer; padding: 0 4px; }
.post-preview { margin-bottom: 20px; }
.post-preview .card, .done .card { min-height: 0; }
.saved { margin: 6px 0 0; min-height: 1.4em; font-size: 13px; color: var(--muted); }
.post-nav { display: flex; gap: 10px; margin-top: 8px; }
.post-nav .btn { flex: 1; min-height: 52px; font-size: 17px; }
.methods { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.method { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.method h2 { margin: 0; font-size: 17px; }
.confirm .check { margin-top: 10px; }

@media (max-width: 899px) {
  /* One step at a time; the preview opens step 3. */
  .post[data-step="1"] .step:not(.step-1), .post[data-step="2"] .step:not(.step-2), .post[data-step="3"] .step:not(.step-3) { display: none; }
  .post:not([data-step="3"]) .post-preview { display: none; }
  .desktop-only { display: none; }
}
@media (min-width: 900px) {
  .post:has(.post-preview) {
    max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 32px; align-items: start;
  }
  .post > * { grid-column: 1; }
  .post .post-preview { grid-column: 2; grid-row: 1 / span 8; position: sticky; top: 16px; margin: 0; }
  .post-progress, .bars, .step-only { display: none; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles .tile:last-child:nth-child(odd) { grid-column: auto; }
  .kinds { flex-direction: row; flex-wrap: wrap; }
  .step { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 20px !important; }
  .post-nav { justify-content: flex-end; }
  .post-nav .btn { flex: none; min-width: 200px; }
}

/* Result screen */
.done { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.done h1 { margin: 0; font-size: 25px; }
.done p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.done .reason { font-weight: 600; color: var(--ink); }
.done .badge { width: 60px; height: 60px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-fg); display: flex; align-items: center; justify-content: center; }
.done .api-key { width: 100%; font: 15px/1.4 ui-monospace, monospace; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-pair { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-pair .btn { flex: 1; }
.manage-link { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.manage-link h2 { margin: 0; font-size: 17px; }
.manage-link .field { margin: 0; }
.manage-link .btn { align-self: flex-start; }

/* Moderation pages: for the moderator and the admin. */
.staff-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; max-width: 760px; margin: 0 auto 14px; font-size: 15.5px; }
.staff-nav a { min-height: 44px; display: flex; align-items: center; color: var(--ink-2); text-decoration: none; }
.staff-nav a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: underline; }
.staff-nav form { margin-left: auto; }
.staff { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.staff h1 { margin: 0; font-size: 23px; }
.staff-item { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.staff-item .field { margin: 0; }
.staff-item select { min-height: 44px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font: inherit; font-size: 15px; color: var(--ink); max-width: 100%; }
.staff-state { margin: 0; font-size: 14px; color: var(--muted); }
.staff-title { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.staff-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.staff-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.staff-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dd { margin-bottom: 6px; }
}
.staff .back { margin: 0; align-self: flex-start; }
.staff-item > .btn { align-self: flex-start; }
