/* ARM - shared styles (customer page and admin panel). Light, simple, no frameworks. */
:root {
  color-scheme: dark;
  --bg: #0e1114;
  --card: #1a1e23;
  --ink: #edf0f3;
  --muted: #9ea8b3;
  --line: #2f363e;
  --field: #12161a;
  --field-line: #3b444e;
  --chip: #242a31;
  --brand: #d9363a;
  --brand-dark: #b82a2e;
  --brand-text: #ff7378;
  --brand-soft: rgba(217, 54, 58, .16);
  --ok: #55d192;
  --ok-soft: rgba(85, 209, 146, .14);
  --warn: #f2b45a;
  --warn-soft: rgba(242, 180, 90, .14);
  --bad: #ff8a80;
  --bad-soft: rgba(255, 138, 128, .14);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
}
html { background: var(--bg); }
/* the laundromat photo sits behind everything, darkened so text stays readable */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(rgba(10, 12, 15, .78), rgba(10, 12, 15, .9)), url(bg.jpg) center / cover no-repeat;
}
dialog { background: var(--card); color: var(--ink); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: transparent; color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-text); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.topbar { background: rgba(26, 30, 35, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: .06em; color: var(--brand-text); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo { white-space: nowrap; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: var(--brand-soft); }

/* hero */
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); max-width: 18ch; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 52ch; margin: 0 0 24px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; background: var(--brand); color: #fff;
  font: inherit; font-weight: 600; padding: 11px 20px; border-radius: 10px; cursor: pointer; text-decoration: none;
  transition: background .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.secondary { background: var(--card); color: var(--brand-text); border-color: var(--line); }
.btn.secondary:hover { background: var(--brand-soft); }
.btn.danger { background: var(--card); color: var(--bad); border-color: var(--line); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.small { padding: 6px 12px; font-size: .9rem; border-radius: 8px; }

/* sections */
section.block { padding: 40px 0; }
section.block > .wrap > h2 { font-size: 1.6rem; }
.lead { color: var(--muted); margin: 0 0 24px; max-width: 60ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* forms */
form.card { padding: 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
label, .label { font-weight: 600; font-size: .92rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--field-line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .chip:focus-within, a:focus-visible {
  outline: 3px solid rgba(217, 54, 58, .5); outline-offset: 1px; border-color: var(--brand);
}
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* time slot chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; border: 1px solid var(--field-line); background: var(--chip); border-radius: 999px; padding: 7px 16px;
  cursor: pointer; font-weight: 500; user-select: none; font-size: .95rem;
}
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.off { color: #6c7781; background: #14181c; text-decoration: line-through; cursor: not-allowed; }
.chip.off input { cursor: not-allowed; }
button.chip { font: inherit; font-weight: 500; color: var(--ink); -webkit-text-fill-color: currentColor; -webkit-appearance: none; appearance: none; }
button.chip.on { color: #fff; }

/* messages */
.msg { padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; font-weight: 500; }
.msg.err { background: var(--bad-soft); color: var(--bad); }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.msg.info { background: var(--brand-soft); color: var(--brand-text); }
.success { text-align: center; padding: 36px 24px; }
.success .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 28px; margin: 0 auto 12px; }

/* machine grid */
.filters { margin-bottom: 20px; }
.machines { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.machine { overflow: hidden; display: flex; flex-direction: column; }
.machine .photo { aspect-ratio: 4 / 3; background: var(--brand-soft); display: grid; place-items: center; position: relative; color: var(--brand-text); }
.machine .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.machine .photo svg { width: 64px; height: 64px; opacity: .6; }
.machine .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.machine h3 { font-size: 1.1rem; margin: 0; }
.machine .sub { color: var(--muted); font-size: .9rem; }
.machine .price { font-size: 1.4rem; font-weight: 800; color: var(--brand-text); }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec { background: var(--chip); border-radius: 6px; padding: 2px 8px; font-size: .82rem; color: #c4ccd5; }
.machine .desc { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.machine .foot { margin-top: auto; padding-top: 8px; }
.badge { position: absolute; top: 10px; left: 10px; background: #f5a524; color: #1a1200; font-weight: 800; font-size: .85rem; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .35); box-shadow: 0 2px 8px rgba(0, 0, 0, .55); }
.badge.cond { left: auto; right: 10px; background: var(--card); color: var(--ink); font-weight: 700; border: 1px solid var(--line); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }

footer { background: rgba(8, 10, 12, .92); color: #cfd8e1; margin-top: 40px; padding: 32px 0; }
footer a { color: #fff; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
footer strong { color: #fff; }

/* admin */
.admin-shell { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 24px 0 48px; align-items: start; }
.side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 4px; }
.side button { text-align: left; background: none; border: 0; font: inherit; font-weight: 500; padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.side button:hover { background: var(--brand-soft); }
.side button.active { background: var(--brand); color: #fff; }
.pill { background: var(--brand); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .78rem; font-weight: 700; min-width: 22px; text-align: center; line-height: 20px; }
.side button.active .pill { background: #fff; color: var(--brand-text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { padding: 16px; }
.stat .n { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.stat .t { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.stat.hot .n { color: var(--bad); }
.panel { padding: 18px; margin-bottom: 20px; }
.panel h3 { font-size: 1.05rem; }
.row-list { display: flex; flex-direction: column; }
.row-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.row-item:first-child { border-top: 0; }
.tag { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600; background: var(--chip); color: #c4ccd5; white-space: nowrap; }
.tag.new { background: var(--bad-soft); color: var(--bad); }
.tag.confirmed, .tag.available { background: var(--brand-soft); color: var(--brand-text); }
.tag.in_progress, .tag.reserved { background: var(--warn-soft); color: var(--warn); }
.tag.done, .tag.sold { background: var(--ok-soft); color: var(--ok); }
.tag.cancelled { background: #272d34; color: #8a95a1; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar h2 { margin: 0; }
.repair { padding: 16px; margin-bottom: 14px; }
.repair .head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.repair .when { font-weight: 700; }
.repair dl { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; margin: 12px 0; font-size: .95rem; }
.repair dt { color: var(--muted); }
.repair dd { margin: 0; overflow-wrap: anywhere; }
.repair .controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.repair .controls select { width: auto; }
.repair .note { margin-top: 10px; }
.mrow { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 12px 14px; align-items: center; margin-bottom: 10px; }
.mrow .thumb { width: 64px; height: 64px; border-radius: 8px; background: var(--brand-soft); overflow: hidden; display: grid; place-items: center; color: var(--brand-text); }
.mrow .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mrow .info b { display: block; }
.mrow .info .muted { display: block; margin-top: 2px; }
.mrow .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.mrow .acts select { width: auto; padding: 6px 8px; }
dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(640px, calc(100vw - 24px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
dialog::backdrop { background: rgba(0, 0, 0, .65); }
dialog form { padding: 22px; }
dialog .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.login-box { max-width: 380px; margin: 12vh auto; padding: 28px; }
.toast { position: fixed; right: 16px; bottom: 16px; background: #2b323a; border: 1px solid var(--line); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); z-index: 50; max-width: calc(100vw - 32px); }
.preview-img { max-width: 160px; border-radius: 8px; border: 1px solid var(--line); display: block; margin-bottom: 8px; }

@media (max-width: 760px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .side button { white-space: nowrap; }
  .hero { padding: 36px 0 24px; }
  .mrow { grid-template-columns: 56px 1fr; }
  .mrow .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .nav a.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- customer: shop tools, detail, contact, status ---- */
.shop-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.shop-tools input { flex: 1 1 220px; width: auto; }
.shop-tools select { flex: 0 1 220px; width: auto; }
.photo-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: inherit; color: inherit; text-align: left; cursor: pointer; }
.linkish:hover { color: var(--brand-text); text-decoration: underline; }
.badge.count { top: auto; left: auto; bottom: 10px; right: 10px; background: rgba(0, 0, 0, .7); color: #fff; }
.contact-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn.wa { color: #5fdc98; }
.btn.vb { color: #b9a0f5; }
.code-box { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 14px 0; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; background: var(--brand-soft); }
.code { font-size: 1.7rem; letter-spacing: .12em; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--brand-text); user-select: all; }
.small-note { font-size: .85rem; }
.success .contact-row { justify-content: center; margin-bottom: 14px; }
.status-card { margin-top: 24px; }
.status-card h3 { margin-bottom: .2em; }
.status-result { margin-top: 16px; padding: 14px; border-radius: 10px; background: var(--brand-soft); display: flex; flex-direction: column; gap: 2px; }
.status-result.done { background: var(--ok-soft); }
.status-result.cancelled { background: #272d34; }
.status-result.in_progress { background: var(--warn-soft); }
#detail { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; }
.detail-body { position: relative; padding: 0 0 20px; }
.close-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.detail-photo { aspect-ratio: 4 / 3; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand-text); }
.detail-photo img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.detail-photo svg { width: 80px; height: 80px; opacity: .6; }
.thumbs { display: flex; gap: 8px; padding: 10px 20px 0; flex-wrap: wrap; }
.thumbs:empty { display: none; }
.thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button.on { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-info { padding: 14px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.detail-info h3 { margin: 0; font-size: 1.4rem; }
.detail-info .price { font-size: 1.6rem; font-weight: 800; color: var(--brand-text); }
.spec-table { display: grid; grid-template-columns: 170px 1fr; gap: 4px 12px; margin: 4px 0; font-size: .95rem; }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; }
.full-desc { white-space: pre-line; margin: 0; }

/* ---- admin additions ---- */
.hint { color: var(--muted); font-size: .88rem; margin: 0 0 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; border: 1px solid var(--field-line); border-radius: 999px; padding: 6px 14px; cursor: pointer; background: var(--chip); }
.checks input { width: auto; }
.checks label.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-text); }
.date-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.date-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 8px; align-items: center; }
.settings-form { max-width: 720px; }
.settings-form h3 { margin: 18px 0 6px; }
.settings-form h3:first-of-type { margin-top: 0; }
.data-card { padding: 18px; margin-bottom: 18px; max-width: 720px; }
.data-card h3 { margin-bottom: .3em; }
.nudge { border-left: 4px solid var(--warn); background: var(--warn-soft); color: var(--warn); padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; }
.repair .money { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 10px; }
.repair .money label { font-size: .82rem; color: var(--muted); font-weight: 600; display: flex; flex-direction: column; gap: 4px; }
.repair .code { font-size: .95rem; letter-spacing: .08em; }
.badge-hist { background: var(--brand-soft); color: var(--brand-text); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600; cursor: pointer; border: 0; font-family: inherit; }
.search-box { max-width: 320px; margin-bottom: 12px; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.photo-tile { position: relative; width: 96px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.photo-tile img { width: 100%; height: 72px; object-fit: cover; display: block; }
.photo-tile .tile-acts { display: flex; justify-content: space-between; padding: 2px; }
.photo-tile button { border: 0; background: none; cursor: pointer; font-size: 16px; padding: 2px 6px; border-radius: 6px; }
.photo-tile button:hover { background: var(--brand-soft); }
.photo-tile .cover { position: absolute; top: 4px; left: 4px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.bell { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 760px) {
  .spec-table { grid-template-columns: 130px 1fr; }
  .date-row { grid-template-columns: 1fr auto; }
  .date-row input[type=text] { grid-column: 1 / -1; order: 3; }
  .repair .money { grid-template-columns: 1fr; }
}

/* ---- inquiry form, reschedule ---- */
.inquiry { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.inquiry h4 { margin: 0 0 4px; font-size: 1.05rem; }
.inquiry .field { margin-bottom: 10px; }
.reschedule { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.reschedule .field { margin-bottom: 8px; }
.status-result .contact-row { margin-top: 8px; }

/* ---- admin: undo toast, week calendar, chart, archive, print ---- */
.toast-act { margin-left: 14px; background: none; border: 0; color: var(--brand-text); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.repair .photo-grid { margin: 8px 0 0; }
.repair-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.week-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.week-bar strong { flex: 1; min-width: 160px; }
.week-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.week { display: grid; grid-template-columns: 58px repeat(7, minmax(118px, 1fr)); min-width: 900px; }
.week > div { padding: 6px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); min-height: 56px; font-size: .85rem; }
.week > .wh { font-weight: 700; text-align: center; background: var(--chip); min-height: 0; border-top: 0; }
.week > .wh.today { background: var(--brand); color: #fff; }
.week > .wt { color: var(--muted); font-weight: 600; text-align: right; }
.week > .wc.closed { background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(255,255,255,.04) 6px 12px); color: var(--muted); }
.week .free { color: var(--muted); font-size: .78rem; }
.week .wchip { display: block; width: 100%; text-align: left; border: 0; border-radius: 6px; padding: 3px 6px; margin-bottom: 3px; font: inherit; font-size: .82rem; cursor: pointer; background: var(--chip); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week .wchip.new { background: var(--bad-soft); color: var(--bad); }
.week .wchip.confirmed { background: var(--brand-soft); color: var(--brand-text); }
.week .wchip.in_progress { background: var(--warn-soft); color: var(--warn); }
.week .wchip.done { background: var(--ok-soft); color: var(--ok); }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart-legend { display: flex; gap: 16px; font-size: .85rem; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.inq { padding: 14px; margin-bottom: 12px; }
.inq .head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inq .msgtext { margin: 8px 0; white-space: pre-line; overflow-wrap: anywhere; }
.inq .controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inq .controls select { width: auto; }
.inq textarea { min-height: 60px; margin-top: 10px; }
.tag.contacted { background: var(--warn-soft); color: var(--warn); }
.tag.closed { background: #272d34; color: #8a95a1; }
.arch-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.arch-row:first-child { border-top: 0; }
.arch-row .acts { display: flex; gap: 8px; }
.print-only { display: none; }
@media print {
  html { background: #fff !important; }
  body::before { display: none !important; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; color: #000; background: #fff; font: 13px/1.5 system-ui, Arial, sans-serif; padding: 8mm; }
  #print-area h1 { font-size: 22px; margin: 0 0 2px; }
  #print-area table { width: 100%; border-collapse: collapse; margin-top: 10px; }
  #print-area td { border: 1px solid #444; padding: 6px 8px; vertical-align: top; }
  #print-area td:first-child { width: 32%; font-weight: 700; background: #eee; }
  #print-area .sign { display: flex; gap: 40px; margin-top: 40px; }
  #print-area .sign div { flex: 1; border-top: 1px solid #000; padding-top: 4px; font-size: 12px; }
}

.tag.offered { background: var(--warn-soft); color: var(--warn); }
.tag.bought { background: var(--ok-soft, #1d3a2a); color: var(--ok, #5fd08a); }
.tag.declined { background: #272d34; color: #8a95a1; }
.inq .controls input { width: auto; max-width: 170px; }

/* Collapsible repair / buyout panels */
.fold { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.fold > summary { list-style: none; cursor: pointer; padding: 18px 22px; display: grid; gap: 4px; position: relative; padding-right: 54px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--brand-text); line-height: 1; }
.fold[open] > summary::after { content: '−'; }
.fold-title { font-size: 1.35rem; font-weight: 700; }
.fold-sub { color: var(--muted); }
.fold > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--radius); }
.fold > form.card, .fold > .success { margin: 0 22px 22px; }
.fold > .status-link, .fold > .status-card { margin-left: 22px; margin-right: 22px; }
.status-link { margin: 4px 22px 22px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-text); text-decoration: underline; cursor: pointer; }
#masine { padding-top: 8px; }

.m-more { text-align: center; margin-top: 18px; }

.logo img { height: 48px; width: auto; display: block; }
.hero p.brandline { font-size: clamp(2.4rem, 8vw, 4.2rem); font-weight: 800; line-height: 1.05; letter-spacing: .01em; color: #fff; max-width: none; margin: 0 0 14px; }
.brandline span { color: var(--brand); }

/* Parts warehouse */
.part .qty { display: flex; align-items: center; gap: 8px; }
.part .qty b { min-width: 2.2ch; text-align: center; font-size: 1.15rem; }
.part .qty b.zero { color: var(--bad); }
.part .qty .btn { min-width: 36px; padding: 6px 10px; }
.part .info span { display: block; }
.part .pdesc { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mrow .thumb a { display: block; width: 100%; height: 100%; }

.toolbar-acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* maintenance mode */
.maint { border-left: 4px solid var(--warn); background: var(--warn-soft); color: var(--warn); padding: 14px 18px; border-radius: 8px; margin-top: 18px; font-weight: 600; }
form.paused { opacity: .45; filter: grayscale(1); pointer-events: none; user-select: none; }
.maint-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.maint-card.on { border-left: 4px solid var(--warn); background: var(--warn-soft); }
