/* Ehtii: booking page, owners' app and login. One stylesheet; a
   business only changes --accent. */

:root {
  --accent: #3d7a6e;
  --ink: #2b2730;
  --muted: #6b6570;
  --line: #e7e3ea;
  --bg: #faf9fb;
  --card: #ffffff;
  --bot: #f3f0f6;
  --radius: 14px;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3 { margin: 0; line-height: 1.2; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.demo-banner {
  padding: 8px 16px;
  background: #fff6d6;
  color: #6b5400;
  font-size: 14px;
  text-align: center;
}

/* Booking page */

.booking main, .booking .brand, .booking footer {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
}
.brand { padding-top: 40px; padding-bottom: 24px; text-align: center; }
.brand h1 {
  /* Smaller on narrow screens, so a long name like a "-studio" fits. */
  font: 600 clamp(26px, 8vw, 40px)/1.1 var(--serif);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.brand .logo { display: block; margin: 0 auto 14px; max-width: 200px; max-height: 96px; object-fit: contain; }
.brand .rating { margin-top: 8px; font-size: 15px; }
.brand .rating a { color: inherit; text-decoration: none; }
.brand .rating span[aria-hidden] { color: var(--accent); }
.brand .rating .count { color: var(--muted); }
.reviews .meta { color: var(--accent); letter-spacing: 1px; }
.brand .star { color: var(--accent); font-size: 0.5em; vertical-align: 0.6em; margin-right: 0.3em; }
.brand p { margin: 10px auto 0; max-width: 34ch; color: var(--muted); }

.booking h2 { font: 600 22px/1.2 var(--serif); margin-bottom: 12px; }

.chat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 6px 24px rgba(43, 39, 48, 0.06);
}

.services { margin-top: 32px; }
.offer {
  display: block;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card, #fff);
}
.offer summary, .gift-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; cursor: pointer; font-weight: 600; }
.offer summary { list-style: none; }
.offer summary::-webkit-details-marker { display: none; }
.offer summary::after { content: "›"; color: var(--accent); transition: transform 0.2s; }
.offer[open] summary::after { transform: rotate(90deg); }
.offer .count { color: var(--muted); font-weight: 400; margin-right: auto; }
.compact { list-style: none; margin: 0; padding: 0 8px 4px; }
.compact .row {
  display: flex; justify-content: space-between; gap: 12px; width: 100%;
  padding: 10px 8px; border: 0; border-top: 1px solid var(--line); background: none;
  text-align: left; font: inherit; color: inherit;
}
.compact button.row, .compact a.row { cursor: pointer; border-radius: 8px; text-decoration: none; }
.compact button.row:hover, .compact button.row:focus-visible { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.compact .meta, .gift-row .meta { color: var(--muted); font-size: 14px; white-space: nowrap; font-weight: 400; }
.compact .desc { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.4; }
.compact .extra { border-top: 0; padding-top: 0; padding-left: 24px; }
.compact .extra .name { color: var(--muted); font-size: 14px; }
.offer .hint { margin: 0; padding: 4px 16px 14px; color: var(--muted); font-size: 13px; }
.gift-row { color: inherit; text-decoration: none; }
.gift a.button { display: block; padding: 12px; border-radius: 10px; text-align: center; text-decoration: none; font-weight: 600; background: var(--accent); color: #fff; }
.gift-row .meta { color: var(--accent); }
.soon p { margin: 8px 0 0; }
a.service { color: inherit; text-decoration: none; }
.gift .price { font-size: 22px; font-weight: 600; color: var(--accent); margin: 4px 0 0; }
.gift .code { font-size: 28px; font-weight: 700; letter-spacing: 3px; text-align: center; margin: 16px 0; }
.gift .fine { font-size: 13px; color: var(--muted); margin-top: 12px; }
.soon a { color: var(--accent); font-weight: 600; }
.services ul { list-style: none; margin: 0; padding: 0; }
.services li { padding: 14px 0; border-top: 1px solid var(--line); }
.services li:has(.service) { padding: 0; }
.service {
  display: block;
  width: 100%;
  padding: 14px 8px;
  margin: 0 -8px;
  box-sizing: content-box;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: left;
  cursor: pointer;
}
.service:hover, .service:focus-visible { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.service .name { font-size: 16px; font-weight: 600; }
.service .meta { display: flex; justify-content: space-between; }
.service .book { color: var(--accent); font-weight: 600; }
.service .desc { display: block; margin-top: 6px; color: var(--muted); }
.services li:last-child { border-bottom: 1px solid var(--line); }
.service-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.services h3 { font-size: 16px; font-weight: 600; }
.price { white-space: nowrap; font-weight: 600; }
.services .extras-title { margin: 24px 0 4px; font-size: 15px; color: var(--muted); }
.services .meta { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.services p { margin: 6px 0 0; color: var(--muted); }

.booking footer { padding-top: 32px; padding-bottom: 40px; color: var(--muted); font-size: 14px; text-align: center; }
.booking footer p { margin: 4px 0; }
.powered { margin-top: 16px !important; opacity: 0.8; }

/* Chat, shared by both sides */

.messages { display: flex; flex-direction: column; gap: 8px; }
.msg {
  margin: 0;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg.bot { align-self: flex-start; background: var(--bot); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.typing { display: flex; gap: 5px; align-items: center; padding: 15px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite ease-in-out; }
.msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}
.msg.typing .status { margin-left: 4px; color: var(--muted); font-size: 14px; }
.msg.typing .status:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .msg.typing i { animation: none; opacity: 0.6; } }

.msg-button {
  align-self: flex-start;
  margin: 2px 0 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.summary-card {
  align-self: stretch;
  margin: 4px 0 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--card);
}
.summary-card.done { background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.summary-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 0; }
.summary-card dt { color: var(--muted); }
.summary-card dd { margin: 0; }
/* Options listed in a reply, such as services with their prices */
.msg .options { display: flex; flex-direction: column; margin: 8px -8px -4px; white-space: normal; }
.msg .option {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 8px; border: 0; border-top: 1px solid var(--line); border-radius: 8px;
  transition: background .2s, opacity .3s;
  background: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.msg .option .name { color: var(--accent); font-weight: 600; }
.msg .option .meta { color: var(--muted); font-size: 14px; white-space: nowrap; }
.msg .option:hover:enabled, .msg .option:focus-visible { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.msg .option:disabled { cursor: default; }
.msg .option:disabled:not(.chosen) { opacity: 0.55; }
.msg .option.chosen { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.msg .option.chosen .name::after { content: " ✓"; }
.choices-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 8px; }
.langs { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, color .2s, opacity .3s;
}
.chip.chosen { background: var(--accent); color: #fff; }
.chip:disabled { cursor: default; }
.choices-row.picked .chip:not(.chosen) { opacity: .4; }

.composer { display: flex; gap: 8px; margin-top: 12px; }
.composer input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 16px; /* 16px stops iOS from zooming in */
}
.composer input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.composer button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
/* Send: a round arrow, as in the owners' app. */
.composer button.send {
  flex: none; width: 46px; height: 46px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; align-self: center;
}
.composer button:disabled { opacity: 0.5; }
/* After a booking: a quiet button until there's something to send. */
.composer.done button { background: none; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.composer.done:has(input:not(:placeholder-shown)) button { background: var(--accent); color: #fff; box-shadow: none; }

/* Owners' app: a full-height chat */

.owner { height: 100dvh; display: flex; flex-direction: column; }
.owner-top {
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.owner-top h1 { font-size: 17px; }
.owner-links { display: flex; justify-content: center; gap: 16px; font-size: 14px; margin-top: 2px; }
.owner-links a { color: var(--muted); }
.notify {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.notify[hidden] { display: none; }
.notify span { flex: 1; }
.notify .allow { padding: 8px 12px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }

.owner-chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 16px calc(env(safe-area-inset-bottom) + 12px);
}
.owner-chat .messages { flex: 1; overflow-y: auto; padding-bottom: 8px; }

.day-card {
  align-self: stretch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.dc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.dc-head strong { font-size: 17px; }
.dc-head span { color: var(--muted); font-size: 13px; }
.bookings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bookings li {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 8px 10px;
}
.bookings .time { font-weight: 600; }
.bookings .what { color: var(--muted); font-size: 14px; }
.bookings li.break { border-left-color: var(--line); color: var(--muted); }
.empty { color: var(--muted); margin: 8px 0; }
.dc-total { margin-top: 8px; text-align: right; font-weight: 600; }

.news {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 8px);
  left: 12px;
  right: 12px;
  z-index: 10;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  animation: news-in 0.35s ease-out;
  transition: opacity 0.5s, transform 0.5s;
}
.news strong { display: block; color: var(--accent); filter: brightness(1.5); }
.news.leaving { opacity: 0; transform: translateY(-12px); }
@keyframes news-in { from { opacity: 0; transform: translateY(-16px); } }

/* Login, sign-up, choosing a business */

.login main { max-width: 420px; margin: 12vh auto 0; padding: 0 16px; }
.login h1 { font-size: 28px; color: var(--accent); text-align: center; margin-bottom: 16px; }

/* Ehtii's own pages wear ehtii.fi's night look: a green-black sky with
   mint and lilac glows, the form on a glass card. */
body.login {
  --accent: #7ee0c3; --ink: #e6f1ed; --muted: #9db5ae; --line: rgba(255, 255, 255, .14); --card: rgba(255, 255, 255, .05);
  min-height: 100vh; color: var(--ink);
  background:
    radial-gradient(60% 45% at 20% 0, rgba(61, 122, 110, .65), transparent 70%),
    radial-gradient(45% 40% at 90% 80%, rgba(184, 167, 255, .16), transparent 70%),
    #0b1714;
  background-attachment: fixed;
}
.login main { padding: 28px 24px; margin-bottom: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
@media (max-width: 480px) { .login main { margin-left: 12px; margin-right: 12px; } }
.login h1 {
  font-size: 34px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(92deg, #7ee0c3, #d9fff1 45%, #b8a7ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login .stack input, .login select, .login textarea { background: rgba(255, 255, 255, .06); color: var(--ink); border-color: var(--line); }
.login .stack input::placeholder { color: #6f8a83; }
.login .stack button, .login .stack a.button { background: linear-gradient(135deg, #7ee0c3, #b9f3e0); color: #0b1714; font-weight: 700; box-shadow: 0 8px 30px rgba(126, 224, 195, .3); }
.login main > a.button { display: block; margin-top: 20px; padding: 12px; border-radius: 10px; text-align: center; text-decoration: none; background: linear-gradient(135deg, #7ee0c3, #b9f3e0); color: #0b1714; font-weight: 700; }
.login .stack button.secondary-button { background: none; color: var(--accent); border-color: var(--accent); box-shadow: none; }
.login a { color: var(--accent); }
.login .form-error { color: #ffb4a8; background: rgba(255, 99, 71, .12); }
.stack { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.stack label { font-weight: 600; font-size: 14px; margin-top: 8px; }
.stack input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
}
.stack input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
#koodi { font-size: 24px; letter-spacing: 6px; text-align: center; }
.stack button {
  margin-top: 16px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.stack a.button {
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.stack button.secondary-button { background: none; color: var(--accent); border: 1px solid var(--accent); }
.slug { display: flex; align-items: center; gap: 4px; }
.slug input { flex: 1; min-width: 0; }
.slug span { color: var(--muted); }
.login .notice { background: rgba(126, 224, 195, .14); border: 1px solid rgba(126, 224, 195, .35); color: var(--ink); padding: 10px 12px; border-radius: 10px; }
.form-error { color: #a3261b; background: #fdecea; padding: 10px 12px; border-radius: 10px; }
.secondary { margin-top: 12px; text-align: center; }
.login h2 { font-size: 18px; margin: 24px 0 0; }
.login .price { margin: 4px 0 0; color: var(--muted); }
.login details { margin-top: 12px; }
.login summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.stack label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 16px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.choices { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.choices a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  font-weight: 600;
}
.owner-top { position: relative; }
.owner-top form { position: absolute; right: 16px; top: calc(env(safe-area-inset-top) + 12px); }

/* Admin portal */

.admin main { max-width: 960px; margin: 24px auto; padding: 0 16px; }
.admin h1 { font-size: 24px; color: var(--accent); }
.admin h2 { font-size: 18px; margin: 28px 0 8px; }
.admin table { border-collapse: collapse; width: 100%; font-size: 14px; background: #fff; }
.admin th, .admin td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin small { color: var(--muted); }
.admin tr.hit { background: #fff6d6; }
.admin .warn { color: #a3261b; font-size: 13px; font-weight: 600; }
.admin .scroll { overflow-x: auto; }
.admin .secondary.left { text-align: left; color: var(--muted); font-size: 14px; }
/* The invoicing list: what to do stands out, what's done fades. */
.admin .invoicing tr.state-send td, .admin .invoicing tr.state-overdue td { background: #fff4f2; }
.admin .invoicing tr.state-paid td, .admin .invoicing tr.state-free td { color: var(--muted); }
.admin .ok { color: var(--accent); font-weight: 600; }
.admin .invoice-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin .invoice-actions input { width: 96px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.admin .invoice-actions button { padding: 6px 10px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.admin .invoice-actions button.link { background: none; color: var(--muted); text-decoration: underline; padding: 6px 4px; font-weight: 400; }
/* One business in the admin portal */
.admin .crumbs { margin: 0 0 4px; font-size: 14px; }
.admin .badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; vertical-align: middle; }
.admin .badge.paused { background: #fde3df; color: #a3261b; }
.admin .company-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; margin-top: 16px; }
@media (max-width: 760px) { .admin .company-grid { grid-template-columns: 1fr; } }
.admin .panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.admin .panel h2 { margin-top: 0; }
.admin .facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: 14px; }
.admin .facts dt { color: var(--muted); }
.admin .facts dd { margin: 0; }
.admin .stack-inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.admin .stack-inline input { flex: 1; min-width: 180px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.admin button { padding: 8px 14px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; }
.admin button.danger { background: #a3261b; }
.admin .billing-form .row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; border: 0; padding: 0; }
.admin .billing-form label { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 180px; font-size: 13px; color: var(--muted); }
.admin .billing-form label.check { flex-direction: row; align-items: center; flex: none; min-width: 0; color: var(--ink); font-size: 14px; }
.admin .billing-form legend { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.admin .billing-form input:not([type=radio]) { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--ink); background: #fff; }
.admin .edit-details { margin-top: 12px; }
.admin .edit-details summary { cursor: pointer; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.admin textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; margin-bottom: 8px; }
.admin .notice { background: #eef6f4; padding: 10px 12px; border-radius: 10px; overflow-wrap: anywhere; }
.admin-search { display: flex; gap: 8px; margin: 12px 0; }
.admin-search input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.admin-search input.price { flex: 0 0 80px; }
.admin-search button { padding: 10px 16px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; }
.stats { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stats li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.stats strong { font-size: 20px; color: var(--accent); margin-right: 4px; }
ul.plain { padding-left: 18px; }

/* Terms and other documents */

.doc main { max-width: 720px; margin: 24px auto 48px; padding: 0 16px; line-height: 1.6; }
.doc .brand a { color: var(--accent); font-weight: 600; font-size: 20px; text-decoration: none; }
.doc h1 { font-size: 26px; margin: 16px 0 0; }
.doc h2 { font-size: 18px; margin: 28px 0 4px; }
.doc .version { color: var(--muted); margin-top: 4px; }
.doc footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Invoice delivery: the e-invoice fields only when an e-invoice is chosen. */
.invoice-method { border: 0; padding: 0; margin: 12px 0 4px; display: flex; gap: 18px; flex-wrap: wrap; }
.invoice-method legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.invoice-method label.check { margin: 0; }
form .einvoice { display: none; }
form:has(input[name=laskutapa][value=verkkolasku]:checked) .einvoice { display: flex; }
.einvoice .hint { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* The owner's own pages on the web: logo, switches, calendar link. */
.login h2 { margin: 24px 0 8px; font-size: 17px; }
.login .logo-edit { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.login .logo-box { width: 96px; height: 96px; flex: none; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; color: #8a8290; font-size: 12px; }
.login .logo-box img { max-width: 88px; max-height: 88px; object-fit: contain; }
.login .button-like { display: inline-block; padding: 10px 16px; border-radius: 10px; border: 1px solid #7ee0c3; color: #7ee0c3; cursor: pointer; text-align: center; }
.login label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.45; }
.login label.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.login a.button { display: block; margin: 0 0 10px; padding: 12px; border-radius: 10px; text-align: center; text-decoration: none; font-weight: 700;
  background: linear-gradient(135deg, #7ee0c3, #b9f3e0); color: #0b1714; }
.login input[readonly] { width: 100%; font-size: 13px; }

/* The owners' web app at night, as the phone app (app/lib/src/ui/theme.dart):
   dark green-black, mint for what's theirs and what to tap. */
body.owner {
  --accent: #7ee0c3;
  --ink: #e4efeb;
  --muted: #8fa39d;
  --line: #25312e;
  --bg: #0e1412;
  --card: #141c1a;
  --bot: #1b2422;
  background: radial-gradient(900px 500px at 50% -10%, #15302a 0%, #0e1412 60%) fixed, #0e1412;
  color: var(--ink);
}
.owner .owner-top { background: transparent; border-bottom-color: var(--line); }
.owner .owner-links a { color: var(--muted); }
.owner .msg.me, .owner .chip.chosen, .owner .composer button.send, .owner .notify .allow {
  background: linear-gradient(135deg, #7ee0c3, #b9f3e0); color: #0b1714;
}
.owner .composer input { background: #141c1a; color: var(--ink); border: 1.5px solid var(--accent); }
.owner .composer input::placeholder { color: #6f817c; }
.owner .composer input:focus { outline: none; box-shadow: 0 0 0 3px rgba(126, 224, 195, .2); }
.owner .composer button.send { box-shadow: 0 6px 20px rgba(126, 224, 195, .25); }
.owner .chip { border-color: var(--accent); color: var(--accent); background: transparent; }
.owner .notify { background: #16221f; border-bottom-color: var(--line); }
.owner .news { background: #202826; color: var(--ink); }
.owner .summary-card.done { background: #16221f; }
.owner .bookings li.break { border-left-color: var(--line); }
.owner button.link, .owner a { color: var(--accent); }
.owner .owner-links a { color: var(--muted); }
