/* Þjónustugátt Hovdenak – sami stíll og www.distillery.is (/HH): dökkt og hlýtt, gull #c9a45c,
   Cormorant Garamond í fyrirsögnum, Inter í texta. Ljóst útlit eftir stillingu tækis. */
:root {
  --bg: #0a0a0b; --panel: #141312; --panel2: #1a1917; --panel3: #22201d;
  --line: rgba(245, 242, 234, .085); --line2: rgba(201, 164, 92, .28); --line3: rgba(201, 164, 92, .55);
  --text: #f5f2ea; --soft: #d8d1c3; --muted: #a49d90; --dim: #807868;
  --gold: #c9a45c; --gold2: #e3c27e; --gold-bg: rgba(201, 164, 92, .1); --gold-glow: rgba(201, 164, 92, .18);
  --green: #9cc49a; --green-bg: rgba(156, 196, 154, .1); --red: #e08a7e; --red-bg: rgba(224, 138, 126, .1);
  --blue: #9cb8d6; --blue-bg: rgba(156, 184, 214, .1);
  --teal: #7fc3bd; --teal-bg: rgba(127, 195, 189, .14);
  --field: rgba(10, 10, 11, .55); --field-line: rgba(245, 242, 234, .12);
  --card: linear-gradient(180deg, rgba(26, 25, 23, .82), rgba(20, 19, 18, .82));
  --glow: radial-gradient(900px 520px at 12% -8%, rgba(201, 164, 92, .085), transparent 62%);
  --btn-text: #17130b;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 16px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f2ea; --panel: #fffdf8; --panel2: #f1ebdf; --panel3: #e9e1d2;
    --line: rgba(40, 32, 20, .1); --line2: rgba(150, 115, 50, .3); --line3: rgba(150, 115, 50, .6);
    --text: #1d1a15; --soft: #3a342b; --muted: #6a6152; --dim: #8a806f;
    --gold: #9a7330; --gold2: #8a6424; --gold-bg: rgba(154, 115, 48, .1); --gold-glow: rgba(154, 115, 48, .18);
    --green: #3f7a3c; --green-bg: rgba(63, 122, 60, .1); --red: #b04a3c; --red-bg: rgba(176, 74, 60, .09);
    --blue: #3d6590; --blue-bg: rgba(61, 101, 144, .1);
    --teal: #2f7f78; --teal-bg: rgba(47, 127, 120, .12);
    --field: #fffdf8; --field-line: rgba(40, 32, 20, .18);
    --card: linear-gradient(180deg, #fffdf8, #fbf7ef);
    --glow: radial-gradient(900px 520px at 12% -8%, rgba(201, 164, 92, .16), transparent 62%);
    --shadow: 0 1px 2px rgba(40, 32, 20, .05), 0 14px 32px -24px rgba(40, 32, 20, .35);
    color-scheme: light;
  }
}
:root[data-theme="light"] { color-scheme: light; }
/* merkið er hvítt (eins og á vefnum); í ljósu útliti dökkt svo það sjáist */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand img, :root:not([data-theme="dark"]) .gate-head img { filter: brightness(.2) sepia(.6); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); }
body { min-height: 100vh; background: var(--glow), var(--bg); background-attachment: fixed; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- innskráning, boð, nýtt lykilorð ---------- */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; }
.gate-card {
  width: min(440px, 100%); padding: 40px 30px 30px; border-radius: 24px; background: var(--card); border: 1px solid var(--line2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
}
.gate-head { text-align: center; }
.gate-head img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 14px; }
.word { font: 600 13px var(--serif); letter-spacing: .32em; color: var(--soft); }
.gate-card h1 { font-size: 36px; margin: 14px 0 6px; text-align: center; line-height: 1.1; }
.gate-card .lead { color: var(--muted); margin: 0 0 22px; text-align: center; }
.gate-card form { display: grid; gap: 14px; }
.gate-card .btn { width: 100%; justify-content: center; }
.gate-foot { margin-top: 18px; font-size: 12.5px; color: var(--dim); text-align: center; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12.5px; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- grind ---------- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 12px 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand b { display: block; font: 600 13px/1.1 var(--serif); letter-spacing: .26em; }
.brand small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.tabs { display: flex; gap: 4px; margin-left: 12px; }
.tabs a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14px; white-space: nowrap; }
.tabs a:hover { color: var(--text); background: var(--gold-bg); text-decoration: none; }
.tabs a.on { color: var(--text); background: var(--gold-bg); box-shadow: inset 0 0 0 1px var(--line2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who { font-size: 12.5px; color: var(--muted); text-align: right; line-height: 1.3; }
.who b { display: block; color: var(--soft); font-weight: 500; }
.lang { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.lang button.on { background: var(--gold-bg); color: var(--gold2); }
main { max-width: 1040px; margin: 0 auto; padding: 28px 24px 80px; }
.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: 34px; line-height: 1.1; }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.stamp { font-size: 12.5px; color: var(--dim); }
.stamp.old { color: var(--red); }

/* ---------- spjöld ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
.card + .card { margin-top: 14px; }
.card h2 { font-size: 24px; line-height: 1.15; }
.card h3 { font-size: 19px; }
.card .cap { color: var(--muted); font-size: 13.5px; margin: 4px 0 14px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.stack { display: grid; gap: 14px; }
.mt { margin-top: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.empty { color: var(--muted); text-align: center; padding: 28px 10px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.wait { background: var(--gold-bg); color: var(--gold2); box-shadow: inset 0 0 0 1px var(--line2); }
.badge.ok { background: var(--green-bg); color: var(--green); }
.badge.no { background: var(--red-bg); color: var(--red); }
.badge.info { background: var(--blue-bg); color: var(--blue); }
.badge.off { background: var(--panel3); color: var(--muted); }

dl.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 18px; margin: 14px 0 0; }
dl.facts div { min-width: 0; }
dl.facts dt { font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
dl.facts dd { margin: 2px 0 0; color: var(--soft); overflow-wrap: anywhere; }
dd .measured { display: block; font-size: 11.5px; color: var(--gold); }
.diff { margin-top: 14px; border-top: 1px dashed var(--line2); padding-top: 12px; }
.diff ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.diff .from { color: var(--muted); text-decoration: line-through; }
.diff .to { color: var(--gold2); font-weight: 500; }

/* ---------- hnappar og reitir ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .08s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn.gold { background: linear-gradient(180deg, #d6b169, #c09a52); color: var(--btn-text); box-shadow: 0 8px 24px -12px rgba(201, 164, 92, .7); }
.btn.gold:hover { background: linear-gradient(180deg, #e0bd77, #c9a45c); }
.btn.line { background: transparent; border-color: var(--line2); color: var(--text); }
.btn.line:hover { border-color: var(--line3); background: var(--gold-bg); }
.btn.danger { background: transparent; border-color: color-mix(in srgb, var(--red) 40%, transparent); color: var(--red); }
.btn.danger:hover { background: var(--red-bg); }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn.big { height: 50px; font-size: 15.5px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; }
.linkbtn:hover { color: var(--text); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.field .hint { font-size: 12px; color: var(--dim); }
.field .err { font-size: 12px; color: var(--red); }
input, textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--field); border: 1px solid var(--field-line);
  border-radius: 11px; padding: 10px 12px; width: 100%; min-width: 0;
}
textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
input:focus, textarea:focus { outline: none; border-color: var(--line3); box-shadow: 0 0 0 3px var(--gold-glow); }
input[aria-invalid="true"] { border-color: var(--red); }
input[readonly] { color: var(--muted); }
input.code { font-size: 26px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--soft); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.fields { display: grid; gap: 14px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields .full { grid-column: 1 / -1; }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.msg { border-radius: 12px; padding: 10px 14px; font-size: 14px; border: 1px solid var(--line); }
.msg.err { background: var(--red-bg); color: var(--red); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.msg.ok { background: var(--green-bg); color: var(--green); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.msg:empty { display: none; }

/* ---------- leitarvallisti ---------- */
.combo { position: relative; }
.combo-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow: auto; margin: 0; padding: 4px;
  list-style: none; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
}
.combo-list li { padding: 9px 11px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.combo-list li small { color: var(--dim); }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--gold-bg); }
.combo-list li.none { color: var(--dim); cursor: default; }

/* ---------- bókun ---------- */
.lines { display: grid; gap: 10px; }
.line-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 10px; align-items: end; padding: 12px; border-radius: 12px; background: var(--gold-bg); }
.line-row .name b { display: block; }
.line-row .name small { color: var(--muted); }
.estimate { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.estimate .k { font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.estimate .v { font: 600 26px/1.15 var(--serif); }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.day {
  border: 1px solid var(--line2); background: transparent; border-radius: 12px; padding: 10px 12px; text-align: left; color: var(--soft);
}
.day:hover { background: var(--gold-bg); }
.day[aria-pressed="true"] { background: var(--gold-bg); border-color: var(--gold); color: var(--text); box-shadow: 0 0 0 2px var(--gold-glow); }
.day b { display: block; font-weight: 600; }
.day small { color: var(--dim); }
.deadline {
  border: 2px solid var(--gold); border-radius: 14px; padding: 14px 16px; background: var(--gold-bg); font-size: 16px; font-weight: 600; color: var(--text);
}

/* ---------- gluggi ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; padding: 22px; }
.modal h2 { font-size: 26px; margin-bottom: 8px; }
.modal .actions { justify-content: flex-end; margin-top: 18px; }
.modal.wide { width: min(760px, 100%); }

/* ---------- sími ---------- */
@media (max-width: 760px) {
  .top { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .tabs { order: 3; width: 100%; margin: 0; flex-wrap: wrap; gap: 4px; }
  .tabs a { padding: 6px 10px; font-size: 13.5px; }
  dl.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
  .who { display: none; }
  main { padding: 20px 16px 64px; }
  .page-head h1 { font-size: 28px; }
  .card { padding: 16px; }
  .fields, .fields.three { grid-template-columns: minmax(0, 1fr); }
  .line-row { grid-template-columns: minmax(0, 1fr) 110px; }
  .line-row .rm { grid-column: 1 / -1; justify-self: start; }
  .gate-card { padding: 30px 20px 24px; }
  .gate-card h1 { font-size: 30px; }
}

/* ---------- Dagatal bókunar: afhending · þrif · pökkun · sótt */
.cal { --cal-gap: 6px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 14px; }
.cal-head h3 { margin: 0; font: 600 28px/1.1 var(--serif); letter-spacing: .01em; text-transform: capitalize; }
.cal-head h3 small { font: 400 15px var(--sans); color: var(--dim); margin-left: 8px; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--gold2); font-size: 18px; cursor: pointer; }
.cal-nav button:hover:not(:disabled) { background: var(--gold-bg); }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--cal-gap); }
.cal-wd { text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding-bottom: 4px; }
.cal-day {
  position: relative; min-height: 86px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2);
  padding: 8px 9px; text-align: left; color: var(--muted); display: flex; flex-direction: column; gap: 4px; overflow: hidden;
  font: inherit; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cal-day .n { font: 600 20px/1 var(--serif); color: var(--soft); }
.cal-day.out { visibility: hidden; }
.cal-day.off { background: transparent; border-color: transparent; }
.cal-day.off .n { color: var(--dim); opacity: .55; }
.cal-day.today .n { color: var(--gold2); text-decoration: underline; text-underline-offset: 4px; }
.cal-day.free { cursor: pointer; border-color: var(--line2); background: linear-gradient(180deg, var(--gold-bg), transparent); }
.cal-day.free::after { content: ""; position: absolute; top: 10px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-glow); }
.cal-day.free:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -16px var(--gold); border-color: var(--line3); }
.cal-day .tag { margin-top: auto; font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1.25; }
.cal-day .tag + .tag { margin-top: 0; }
.cal-day.k-delivery { background: color-mix(in srgb, var(--blue) 18%, var(--panel)); border-color: var(--blue); box-shadow: inset 0 4px 0 var(--blue); }
.cal-day.k-delivery .tag, .cal-day.k-delivery .n { color: var(--blue); }
.cal-day.k-packing { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 16%, var(--panel)), color-mix(in srgb, var(--gold) 34%, var(--panel))); border-color: var(--gold); box-shadow: inset 0 4px 0 var(--gold); }
.cal-day.k-packing .n { color: var(--text); }
.cal-day.k-packing .tag.p { color: var(--gold2); }
.cal-day.k-start { box-shadow: inset 0 4px 0 var(--gold), 0 0 0 2px var(--gold), 0 14px 30px -18px var(--gold); }
.cal-day .tag.c { color: var(--teal); display: flex; align-items: center; gap: 5px; }
.cal-day .tag.c::before { content: ""; width: 14px; height: 4px; border-radius: 2px; background: var(--teal); }
.cal-day.k-cleaning { border-left: 4px solid var(--teal); }
.cal-day.k-pickup { background: color-mix(in srgb, var(--green) 18%, var(--panel)); border-color: var(--green); box-shadow: inset 0 4px 0 var(--green); }
.cal-day.k-pickup .tag, .cal-day.k-pickup .n { color: var(--green); }
.cal-day.k-delivery::after, .cal-day.k-packing::after, .cal-day.k-pickup::after { display: none; }
.cal-day.preview { outline: 1px dashed var(--line3); outline-offset: -3px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; font-size: 13px; color: var(--soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.cal-legend .l-free { background: var(--gold-bg); border: 1px solid var(--line3); border-radius: 50%; }
.cal-legend .l-delivery { background: var(--blue); }
.cal-legend .l-cleaning { background: var(--teal); }
.cal-legend .l-packing { background: var(--gold); }
.cal-legend .l-pickup { background: var(--green); }
.plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.plan > div { border-radius: 14px; padding: 14px 16px; border: 1px solid var(--line); background: var(--panel2); }
.plan .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.plan .v { font: 600 21px/1.2 var(--serif); color: var(--text); margin-top: 4px; }
.plan small { display: block; color: var(--dim); margin-top: 4px; font-size: 12px; }
.plan .s-delivery { border-color: var(--blue); } .plan .s-delivery .k { color: var(--blue); }
.plan .s-work { border-color: var(--gold); } .plan .s-work .k { color: var(--gold2); }
.plan .s-pickup { border-color: var(--green); } .plan .s-pickup .k { color: var(--green); }
@media (max-width: 640px) {
  .cal { --cal-gap: 3px; }
  .cal-head h3 { font-size: 23px; }
  .cal-day { min-height: 52px; padding: 5px; border-radius: 9px; }
  .cal-day .n { font-size: 16px; }
  .cal-day .tag, .cal-day .tag.c { display: none; }
  .cal-day.free::after { top: 6px; right: 6px; width: 5px; height: 5px; box-shadow: 0 0 0 3px var(--gold-glow); }
  .cal-day.k-cleaning { border-left-width: 3px; }
  .plan { grid-template-columns: 1fr; }
}

/* ---------- pantanir, aðgangar, hreyfingalisti (áfangi 2) ---------- */
h2.sec { font-size: 26px; }
.small.gold { color: var(--gold2); }
.small.bad { color: var(--red); }
.order-line {
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center;
  padding: 14px 16px; border-radius: 14px; background: var(--gold-bg); border: 1px solid var(--line);
}
.order-line .name b { display: block; font-weight: 600; }
.order-line .name small, .olines .name small { color: var(--muted); display: block; font-size: 12.5px; }
.order-line .qty { display: flex; align-items: flex-end; gap: 8px; }
.order-line .qty .field { width: 104px; }
.order-line .qty input { text-align: right; font-variant-numeric: tabular-nums; }
.order-line .eq { color: var(--gold2); font-weight: 500; font-size: 14px; }
.order-line .amounts { text-align: right; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.order-line .unit { font-size: 12.5px; color: var(--muted); }
.ltot { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.totals { margin-top: 4px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel2); display: grid; gap: 6px; }
.totals[hidden] { display: none; }
.trow { display: flex; justify-content: space-between; gap: 12px; color: var(--soft); font-variant-numeric: tabular-nums; }
.trow.strong { font: 600 22px/1.3 var(--serif); color: var(--text); border-top: 1px dashed var(--line2); padding-top: 8px; margin-top: 2px; }
.trow.strong b { color: var(--gold2); }
.totals .small { margin: 4px 0 0; }
.olines { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.olines li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.olines li:first-child { border-top: 0; }
.olines .eq { color: var(--soft); font-size: 14px; }
.card .totals { margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--gold-bg); border: 1px solid var(--line2); }
.chip-x { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--panel3); color: var(--soft); font-size: 16px; line-height: 1; }
.chip-x:hover { background: var(--red-bg); color: var(--red); }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; align-self: flex-start; max-width: 100%; }
.seg.wrap { flex-wrap: wrap; border-radius: 18px; }
.seg button { background: none; border: 0; padding: 9px 16px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--gold-bg); color: var(--gold2); box-shadow: inset 0 0 0 1px var(--line3); border-radius: 999px; }
.acc { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.acc:first-of-type { border-top: 0; }
.acc .who-acc { min-width: 0; overflow-wrap: anywhere; }
.acc-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .order-line { grid-template-columns: minmax(0, 1fr) auto; }
  .order-line .qty { grid-column: 1 / -1; }
  .order-line .eq { grid-column: 1; }
  .order-line .amounts { grid-column: 2; grid-row: 3; }
  .order-line .rm { grid-column: 1 / -1; justify-self: start; }
  .olines li { grid-template-columns: minmax(0, 1fr) auto; }
  .olines .eq { grid-column: 1; }
  .olines .ltot { grid-column: 2; grid-row: 1 / span 2; }
  .acc-right { justify-content: flex-start; }
  .seg button { padding: 9px 12px; }
}

.totals .est { margin: 0; font-style: italic; }
