/* Bela UI. Layout and tokens follow the wacrm look (MIT, github.com/ArnasDon/wacrm):
 * slate surfaces, a left sidebar, dark by default with a light mode, bela saffron as the accent.
 * The old variable names (--ink, --line, --bela...) stay as aliases because templates use them inline. */
:root {
  --background: oklch(0.13 0.01 260);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.18 0.01 260);
  --card-2: oklch(0.205 0.01 260);
  --muted-bg: oklch(0.22 0.01 260);
  --muted: oklch(0.68 0.01 260);
  --border: oklch(0.28 0.01 260);
  --input: oklch(0.21 0.01 260);
  --sidebar: oklch(0.16 0.01 260);
  --primary: oklch(0.72 0.165 58);
  --primary-fg: oklch(0.18 0.03 58);
  --primary-hover: oklch(0.78 0.15 58);
  --primary-text: oklch(0.8 0.14 62);
  --primary-soft: oklch(0.72 0.165 58 / 0.13);
  --primary-soft-2: oklch(0.72 0.165 58 / 0.24);
  --ring: oklch(0.72 0.165 58 / 0.5);
  --green: #3ec46d;
  --green-soft: oklch(0.65 0.16 150 / 0.16);
  --red: #f06a5d;
  --red-soft: oklch(0.6 0.2 27 / 0.16);
  --blue: #6aa8ff;
  --blue-soft: oklch(0.6 0.15 255 / 0.18);
  --violet: #b592ff;
  --violet-soft: oklch(0.6 0.18 295 / 0.18);
  --amber-soft: oklch(0.8 0.15 85 / 0.14);
  --amber-text: oklch(0.86 0.13 85);
  --bubble-in: oklch(0.22 0.01 260);
  --chat-bg: oklch(0.15 0.01 260);
  --shadow: 0 1px 2px #0006;
  --radius: 10px;
  color-scheme: dark;
}
html[data-mode="light"] {
  --background: oklch(0.985 0.002 260);
  --foreground: oklch(0.21 0.01 260);
  --card: #fff;
  --card-2: oklch(0.975 0.003 260);
  --muted-bg: oklch(0.96 0.004 260);
  --muted: oklch(0.5 0.015 260);
  --border: oklch(0.915 0.005 260);
  --input: #fff;
  --sidebar: oklch(0.98 0.003 260);
  --primary: oklch(0.64 0.175 52);
  --primary-fg: #fff;
  --primary-hover: oklch(0.58 0.17 50);
  --primary-text: oklch(0.54 0.16 50);
  --primary-soft: oklch(0.64 0.175 52 / 0.1);
  --primary-soft-2: oklch(0.64 0.175 52 / 0.18);
  --green: #18803f;
  --red: #c63a2d;
  --blue: #2563a8;
  --violet: #6b3fb0;
  --amber-soft: oklch(0.85 0.12 85 / 0.35);
  --amber-text: oklch(0.45 0.1 75);
  --bubble-in: #fff;
  --chat-bg: oklch(0.965 0.004 260);
  --shadow: 0 1px 2px #0000000f;
  color-scheme: light;
}
/* Light blue screen with black text, asked for by the owner. It wins over both dark and light mode. */
:root, html[data-mode] {
  --background: #cfe8ff;
  --foreground: #000;
  --card: #cfe8ff;
  --card-2: #bcdcfb;
  --muted-bg: #bcdcfb;
  --muted: #1c2a3a;
  --border: #7fa9d1;
  --input: #eef7ff;
  --sidebar: #cfe8ff;
  --primary: #b34700;
  --primary-fg: #fff;
  --primary-hover: #8f3900;
  --primary-text: #7a2e00;
  --primary-soft: rgb(179 71 0 / 0.12);
  --primary-soft-2: rgb(179 71 0 / 0.22);
  --ring: rgb(179 71 0 / 0.5);
  --green: #0b6a2e;
  --red: #a8200f;
  --blue: #123f80;
  --violet: #4f2a8f;
  --amber-soft: rgb(0 0 0 / 0.07);
  --amber-text: #5a3a00;
  --bubble-in: #eef7ff;
  --chat-bg: #cfe8ff;
  --shadow: 0 1px 2px #0000001f;
  color-scheme: light;
}
#mode-toggle { display: none; }
:root {
  --ink: var(--foreground); --line: var(--border); --bg: var(--background);
  --bela: var(--primary); --bela-dark: var(--primary-text); --bela-soft: var(--primary-soft);
  --sb-w: 240px; --top-h: 0px; --bot-h: 0px;
  font-family: "Inter", "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--foreground);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--background); color: var(--foreground); }
body { font-size: 14.5px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 21px; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 14px; }
h2 { font-size: 15.5px; font-weight: 600; margin: 22px 0 10px; }
h3 { font-size: 14.5px; font-weight: 600; margin: 14px 0 6px; }
small, .muted { color: var(--muted); }
.ic { width: 16px; height: 16px; flex: none; }

/* Shell: fixed sidebar on desktop, a drawer + top bar below 1024px */
body.app { padding-left: var(--sb-w); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sb-w); background: var(--sidebar); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 40; }
.sb-head { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--foreground); font-weight: 650; font-size: 15px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: var(--primary-fg); display: inline-flex; align-items: center; justify-content: center; }
.sb-nav { flex: 1; overflow-y: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.sb-nav a { display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 14px; }
.sb-nav a span:first-of-type { flex: 1; }
.sb-nav a:hover { background: var(--muted-bg); color: var(--foreground); text-decoration: none; }
.sb-nav a.on { background: var(--primary-soft); color: var(--primary-text); }
.sb-sep { border-top: 1px solid var(--border); margin: 12px 4px; }
.sb-foot { flex: none; border-top: 1px solid var(--border); padding: 10px; display: flex; align-items: center; gap: 6px; }
.me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--foreground); }
.me:hover { background: var(--muted-bg); text-decoration: none; }
.me-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.me-txt b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-txt small { font-size: 12px; }
.sb-tools { display: flex; gap: 2px; }
.sb-tools form { margin: 0; }
.iconbtn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.iconbtn:hover { background: var(--muted-bg); color: var(--foreground); }
.iconbtn .ic { width: 18px; height: 18px; }
.i-sun { display: none; }
html[data-mode="light"] .i-sun { display: block; }
html[data-mode="light"] .i-moon { display: none; }
.sb-close, .top, .scrim { display: none; }
.badge { background: var(--primary); color: var(--primary-fg); border-radius: 10px; font-size: 11px; line-height: 18px; min-width: 18px; padding: 0 6px; text-align: center; font-weight: 700; margin-left: 4px; display: inline-block; }

.testmode { background: var(--amber-soft); color: var(--amber-text); text-align: center; font-size: 13px; padding: 6px 16px; border-bottom: 1px solid var(--border); }
.testmode a { color: inherit; text-decoration: underline; }

.bottomnav { display: none; }

@media (max-width: 1024px) {
  body.app { padding-left: 0; --top-h: 56px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease-out; width: 264px; }
  body.drawer .sidebar { transform: none; }
  body.drawer { overflow: hidden; }
  .sb-close { display: inline-flex; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 35; border: 0; background: oklch(0.13 0.01 260 / 0.6); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.drawer .scrim { opacity: 1; pointer-events: auto; }
  .top { display: block; position: sticky; top: 0; z-index: 20; background: var(--sidebar); border-bottom: 1px solid var(--border); }
  .top .bar { height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 10px; }
}
@media (max-width: 820px) {
  body.app { --bot-h: 62px; padding-bottom: 62px; }
  .bottomnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--sidebar); border-top: 1px solid var(--border); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px; font-size: 11px; color: var(--muted); }
  .bottomnav a .ic { width: 21px; height: 21px; }
  .bottomnav a.on { color: var(--primary-text); font-weight: 600; }
  .bottomnav a:hover { text-decoration: none; }
}

main { max-width: 1240px; margin: 0 auto; padding: 22px 20px 34px; }
main.narrow { max-width: 760px; }

/* Cards, tables, forms */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.grid { display: grid; gap: 12px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stat .k { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat .v { font-size: 24px; font-weight: 650; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } main { padding: 16px 14px 28px; } }

table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--card-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--muted-bg); }
.tablewrap { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; overflow-x: auto; background: var(--card); }
.tablewrap table { border: 0; }
.tablewrap tr:last-child td { border-bottom: 0; }

label { display: block; font-size: 13px; font-weight: 550; margin: 12px 0 5px; }
label.inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 8px 14px 0 0; }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=date], input[type=email], input[type=url], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: var(--input); color: var(--foreground);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--ring); outline-offset: 0; border-color: var(--primary); }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); }
textarea { min-height: 80px; resize: vertical; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1; min-width: 140px; }
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--primary); color: var(--primary-fg); border: 1px solid transparent; border-radius: 8px; padding: 8px 15px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .12s; }
.btn:hover { background: var(--primary-hover); text-decoration: none; }
.btn.light { background: var(--card); color: var(--foreground); border-color: var(--border); }
.btn.light:hover { background: var(--muted-bg); }
.btn.green { background: var(--green); color: #fff; }
.btn.red { background: transparent; color: var(--red); border-color: color-mix(in oklch, var(--red) 45%, transparent); }
.btn.red:hover { background: var(--red-soft); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.head h1 { margin: 0; }
.error { background: var(--red-soft); color: var(--red); border: 1px solid color-mix(in oklch, var(--red) 35%, transparent); border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; }
.ok { background: var(--green-soft); color: var(--green); border: 1px solid color-mix(in oklch, var(--green) 35%, transparent); border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; }
.tabs { display: inline-flex; gap: 2px; flex-wrap: wrap; margin-bottom: 14px; padding: 3px; background: var(--muted-bg); border-radius: 9px; }
.tabs a { padding: 6px 13px; border-radius: 7px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.tabs a.on { background: var(--card); color: var(--foreground); box-shadow: var(--shadow); }
.tabs a:hover { text-decoration: none; color: var(--foreground); }
.pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 12px; background: var(--muted-bg); color: var(--foreground); font-weight: 600; white-space: nowrap; }
.pill.new { background: var(--red-soft); color: var(--red); }
.pill.confirmed { background: var(--blue-soft); color: var(--blue); }
.pill.preparing { background: var(--primary-soft); color: var(--primary-text); }
.pill.out { background: var(--violet-soft); color: var(--violet); }
.pill.delivered { background: var(--green-soft); color: var(--green); }
.pill.cancelled { background: var(--muted-bg); color: var(--muted); }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: var(--muted-bg); color: var(--foreground); margin: 0 3px 3px 0; }
.veg, .nonveg { display: inline-block; width: 12px; height: 12px; border: 1.5px solid; border-radius: 2px; position: relative; top: 1px; margin-right: 5px; }
.veg { border-color: var(--green); } .nonveg { border-color: var(--red); }
.veg::after, .nonveg::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; }
.veg::after { background: var(--green); } .nonveg::after { background: var(--red); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
pre.msg { white-space: pre-wrap; word-wrap: break-word; font: inherit; margin: 0; }

/* Initials avatars */
.av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 600; background: var(--muted-bg); color: var(--foreground); }
.me .av { width: 32px; height: 32px; font-size: 12.5px; background: var(--primary-soft-2); color: var(--primary-text); }
.av1 { background: var(--blue-soft); color: var(--blue); }
.av2 { background: var(--green-soft); color: var(--green); }
.av3 { background: var(--violet-soft); color: var(--violet); }
.av4 { background: var(--primary-soft-2); color: var(--primary-text); }
.av5 { background: var(--red-soft); color: var(--red); }

/* Inbox: chat list | conversation | customer panel */
/* the chat page fills the screen: .page is a column, the inbox takes what the test banner leaves */
body.chatpage .page { height: calc(100dvh - var(--top-h) - var(--bot-h)); display: flex; flex-direction: column; }
.inbox { flex: 1; min-height: 0; display: grid; grid-template-columns: 330px 1fr 310px; background: var(--card); }
.inbox.nochat { grid-template-columns: 330px 1fr; }
.chats { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; background: var(--card); }
.chats .search { padding: 12px; border-bottom: 1px solid var(--border); display: flex; gap: 8px; align-items: center; }
.chats .search input { background: var(--muted-bg); border-color: transparent; }
.chats .search label { margin: 0; font-weight: 500; font-size: 12.5px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.chatlist { overflow-y: auto; flex: 1; padding: 6px; }
.chatlist a { display: flex; gap: 11px; align-items: center; padding: 10px; border-radius: 9px; color: var(--foreground); }
.chatlist a:hover { background: var(--muted-bg); text-decoration: none; }
.chatlist a.on { background: var(--primary-soft); }
.chatlist .ct { flex: 1; min-width: 0; }
.chatlist .l1 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.chatlist .nm { font-weight: 550; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatlist .tm { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.chatlist .l2 { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 1px; }
.chatlist .l2 span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatlist .unread .nm { font-weight: 700; }
.chatlist .unread .l2 span:first-child { color: var(--foreground); }
.chatlist .count { background: var(--primary); color: var(--primary-fg); border-radius: 10px; font-size: 10.5px; padding: 0 6px; font-weight: 700; height: 17px; line-height: 17px; min-width: 17px; text-align: center; }
.convo { display: flex; flex-direction: column; min-height: 0; background: var(--chat-bg); }
.convo .who-bar { padding: 10px 16px; min-height: 60px; background: var(--card); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.convo .who-bar .wb-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.convo .who-bar .wb-l > div { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.convo .who-bar .nm { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo .who-bar .av { width: 36px; height: 36px; font-size: 12.5px; }
.convo .back { display: none; color: var(--foreground); }
.stream { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: min(78%, 560px); padding: 8px 11px 5px; border-radius: 14px; border-bottom-left-radius: 4px; box-shadow: var(--shadow); background: var(--bubble-in); border: 1px solid var(--border); align-self: flex-start; font-size: 14px; }
.bubble.out { background: var(--primary); color: var(--primary-fg); border-color: transparent; align-self: flex-end; border-radius: 14px; border-bottom-right-radius: 4px; }
.bubble.out .meta { color: var(--primary-fg); opacity: .72; }
.bubble.out a { color: inherit; text-decoration: underline; }
.bubble.out.auto { background: var(--primary-soft); color: var(--foreground); border: 1px dashed color-mix(in oklch, var(--primary) 55%, transparent); }
.bubble.out.template { background: var(--blue-soft); color: var(--foreground); }
.bubble.out.failed { background: var(--red-soft); color: var(--foreground); }
.bubble.out.auto .meta, .bubble.out.template .meta, .bubble.out.failed .meta { color: var(--muted); opacity: 1; }
.bubble.out.auto a, .bubble.out.template a, .bubble.out.failed a { color: var(--primary-text); }
.bubble .meta { font-size: 10.5px; color: var(--muted); text-align: right; margin-top: 3px; }
.bubble .meta .st { margin-left: 4px; }
.bubble .meta .st.read { color: var(--blue); opacity: 1; }
.bubble.out .meta .st.read { color: inherit; font-weight: 700; }
.bubble .err { font-size: 12px; color: var(--red); margin-top: 3px; }
.bubble a { word-break: break-all; }
.composer { background: var(--card); border-top: 1px solid var(--border); padding: 10px 14px 12px; }
.composer form.send { display: flex; gap: 8px; align-items: end; }
.composer textarea { min-height: 42px; max-height: 160px; height: 42px; background: var(--muted-bg); border-color: transparent; border-radius: 10px; }
.composer .btn { height: 42px; }
.composer > small { display: block; margin-top: 6px; font-size: 12px; }
.quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
.quick button { white-space: nowrap; background: var(--muted-bg); border: 1px solid var(--border); color: var(--foreground); border-radius: 16px; padding: 3px 11px; font: inherit; font-size: 12.5px; cursor: pointer; }
.quick button:hover { border-color: var(--primary); color: var(--primary-text); }
.closed { background: var(--amber-soft); color: var(--foreground); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.side { border-left: 1px solid var(--border); overflow-y: auto; padding: 16px; background: var(--card); }
.side .side-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 6px 0 14px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.side .side-top .av { width: 56px; height: 56px; font-size: 18px; }
.side .side-top b { font-size: 15px; }
.side h3 { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 16px 0 8px; }
.side .kv { font-size: 13px; display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; }
.side .kv span:nth-child(odd) { color: var(--muted); }
.side input, .side textarea { font-size: 13.5px; padding: 7px 9px; }
.side label { font-size: 12px; color: var(--muted); }
.side .ord { font-size: 13px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px; background: var(--card-2); }
.blank { display: flex; align-items: center; justify-content: center; color: var(--muted); flex-direction: column; gap: 10px; text-align: center; padding: 20px; }
.blank .ic { width: 44px; height: 44px; opacity: .5; }
@media (max-width: 1200px) {
  .inbox { grid-template-columns: 300px 1fr; }
  .side { display: none; }
}
@media (max-width: 820px) {
  body.chatpage { padding-bottom: 0; }
  .inbox, .inbox.nochat { grid-template-columns: 1fr; }
  body.chatpage.open { --bot-h: 0px; }
  .inbox.open .chats { display: none; }
  .inbox:not(.open) .convo { display: none; }
  .convo .back { display: inline-flex; }
  body.chatpage.open .bottomnav { display: none; }
  .stream { padding: 12px; }
}

/* Order form */
.menu-cat { margin-bottom: 8px; }
.menu-cat h3 { margin: 14px 0 6px; color: var(--primary-text); }
.dish { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.dish .opts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.opt { display: flex; align-items: center; gap: 4px; font-size: 13px; background: var(--muted-bg); border-radius: 8px; padding: 4px 6px; }
.opt input { width: 52px; padding: 5px; text-align: center; }
.billbox { position: sticky; top: calc(var(--top-h) + 16px); }
.billrow { display: flex; justify-content: space-between; padding: 3px 0; font-variant-numeric: tabular-nums; }
.billrow.total { font-weight: 700; font-size: 18px; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.login { max-width: 380px; margin: 10vh auto; padding: 26px 24px; }
.login .brand { justify-content: center; font-size: 20px; margin-bottom: 14px; }

/* Order list */
.olist { background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.orow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.orow:last-child { border-bottom: 0; }
.orow:hover { background: var(--card-2); }
.orow form { margin: 0; }
.oleft { flex: 1; min-width: 0; color: var(--foreground); display: flex; flex-direction: column; gap: 4px; }
.oleft:hover { text-decoration: none; }
.osum { font-size: 13px; }
.ototal { float: right; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .orow { flex-direction: column; align-items: stretch; }
  .orow form .btn { width: 100%; }
  .testmode { font-size: 12px; padding: 4px 12px; }
  .testmode .long { display: none; }
  .convo .who-bar { padding: 8px 10px; flex-wrap: wrap; }
  .convo .who-bar .actions { gap: 5px; }
  .convo .who-bar .btn.small { padding: 4px 8px; font-size: 12px; }
}

/* new-order siren banner */
.alarm { position: fixed; left: 0; right: 0; top: 0; z-index: 50; background: #c0392b; color: #fff; padding: 10px 16px;
  display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 16px;
  animation: alarm-blink 1s steps(2) infinite; }
.alarm[hidden] { display: none; }
.alarm a { color: #fff; text-decoration: none; }
.alarm button { background: #fff; color: #c0392b; border: 0; border-radius: 8px; padding: 6px 10px; font-weight: 700; }
@keyframes alarm-blink { 50% { background: #8e2418; } }
.soundbtn { position: fixed; right: 12px; bottom: 76px; z-index: 51; background: #c0392b; color: #fff; border: 0;
  border-radius: 22px; padding: 10px 14px; font-weight: 700; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.soundbtn[hidden] { display: none; }
.switch { min-width: 58px; border: 0; border-radius: 16px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: #fff; }
.switch.on { background: var(--green); }
.switch.off { background: var(--muted-bg); color: var(--muted); }
