/* The client shell: what a customer sees in their panel. Loaded after style.css only in customer mode (html.client).
   The Lunaro palette from lunaro.to, Jost headings, Inter body, one warm accent for the one primary action on a screen,
   a flat menu, and a tab bar on phones. The owner can still pick Clean or Slate; this file only sets the lunaro theme's
   colours and the client layout. */
[data-theme=lunaro] { --ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --head: "Jost", "Inter", system-ui, sans-serif;
  --bg: #0e1728; --bg2: #121d33; --card: #141f33; --card2: #1a2740; --code: #0b1322; --text: #e6ebf5; --muted: #93a1bd; --line: #23314d; --line2: #33445f;
  --accent: #ffb86b; --accent-soft: #ffd09a; --accent-text: #1a1206; --lilac: #c9d8ff; --ok: #8fe3b4; --bad: #ff8e8e; --warn: #ffd166;
  --logbg: #0b1322; --logtext: #e6ebf5; --series-1: #c9d8ff; --series-tint: color-mix(in srgb, #c9d8ff 22%, transparent);
  --pixel: var(--head); --sans: var(--ui); --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; --r: 12px; --shadow: 0 1px 2px rgba(0,0,0,.25); color-scheme: dark; }
[data-theme=lunaro] a { color: var(--lilac); } [data-theme=lunaro] a:hover { color: var(--text); }
[data-theme=lunaro] h1, [data-theme=lunaro] h2, [data-theme=lunaro] h3 { font-family: var(--head); font-weight: 500; letter-spacing: 0; }
[data-theme=lunaro] h1 { font-size: 1.7rem; } [data-theme=lunaro] h2 { font-size: 1.2rem; }
[data-theme=lunaro] .btn.primary, [data-theme=lunaro] .btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
[data-theme=lunaro] .btn { border-radius: 10px; } [data-theme=lunaro] .card { border-radius: 16px; border-color: var(--line); background: color-mix(in srgb, var(--card) 92%, transparent); }
[data-theme=lunaro] .kpi-value { color: var(--text); } [data-theme=lunaro] .tile .t-num { color: var(--lilac); }
[data-theme=lunaro] .status.s-success { color: var(--ok); } [data-theme=lunaro] .status.s-queued { color: var(--warn); } [data-theme=lunaro] .status.s-doing { color: var(--lilac); }
[data-theme=lunaro] .menu a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--lilac) 14%, transparent); }
[data-theme=lunaro] .badge { background: var(--accent); color: var(--accent-text); }

/* ---- the shell ---- */
html.client .side { padding: 20px 0 14px 16px; }
html.client .brand { font: 500 1rem var(--ui); gap: 10px; } html.client .brand-mark { width: 30px; height: auto; flex: none; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--lilac) 40%, transparent)); }
html.client .menu { gap: 2px; margin-top: 24px; padding-right: 14px; font-size: .95rem; }
html.client .menu a, html.client .menu button.link { padding: 9px 12px; border-radius: 10px; margin-right: 0; width: auto; gap: 11px; }
html.client .menu a.sub { margin-left: 22px; padding: 6px 12px; font-size: .88rem; color: var(--muted); }
html.client .menu a.dim, html.client .menu button.link.dim { color: var(--muted); } html.client .menu-gap { flex: 1 1 auto; min-height: 16px; }
html.client .menu .ni { width: 18px; height: 18px; stroke-width: 1.7; opacity: .75; }
html.client .side-foot { font: .74rem var(--ui); letter-spacing: 0; border-top-style: solid; gap: 2px; }
html.client main.wrap { max-width: 960px; padding-top: 34px; }
html.client .foot { font-family: var(--ui); letter-spacing: 0; }
html.client .kicker { font: 500 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
html.client .tabbar { display: none; }

/* ---- the home screen ---- */
html.client .hello { padding: 26px 24px; }
html.client .strip { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
html.client .strip li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card2) 70%, transparent); font-size: .86rem; color: var(--text); }
html.client .strip li i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
html.client .strip li.ok i { background: var(--ok); box-shadow: 0 0 8px var(--ok); } html.client .strip li.warn i { background: var(--warn); } html.client .strip li.bad i { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
html.client .strip li a { color: var(--lilac); }
html.client .owing { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
html.client .tiles { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
html.client .tile { border-radius: 16px; min-height: 120px; padding: 18px 18px 16px; }
html.client .tile .t-title { font: 500 1.12rem/1.3 var(--head); color: var(--text); } html.client .tile .t-sub { font-size: .88rem; }
html.client .tile.primary { background: var(--accent); border-color: var(--accent); } html.client .tile.primary .t-title { color: var(--accent-text); font-size: 1.5rem; } html.client .tile.primary .t-sub { color: color-mix(in srgb, var(--accent-text) 75%, transparent); }
html.client .tile.primary:hover { background: var(--accent-soft); }
html.client .asks { list-style: none; margin: 0; padding: 0; } html.client .asks li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
html.client .asks li:first-child { border-top: 0; } html.client .asks .what { flex: 1; min-width: 0; } html.client .asks .what a { color: var(--text); font-weight: 500; }
html.client .asks .when { font-size: .82rem; color: var(--muted); }
html.client .f-num { font: 500 1.9rem/1.1 var(--head); color: var(--text); }

/* ---- billing ---- */
html.client .plan-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; max-width: 420px; }
html.client .plan-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: .95rem; } html.client .plan-lines li:first-child { border-top: 0; }
html.client .plan-lines li.total { border-top: 1px solid var(--line2); font-weight: 600; }
html.client .inv { border-top: 1px solid var(--line); padding: 16px 0; } html.client .inv:first-child { border-top: 0; padding-top: 4px; }
html.client .inv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
html.client .inv-head strong { font: 500 1.1rem var(--head); } html.client .inv-sum { font: 500 1.25rem var(--head); white-space: nowrap; }
html.client .inv-lines { list-style: none; margin: 8px 0 0; padding: 0; color: var(--muted); font-size: .9rem; } html.client .inv-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
html.client .inv-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

/* ---- requests ---- */
html.client .ask textarea { min-height: 120px; font-size: 1rem; }
html.client .chips .chip { border-radius: 999px; }
html.client .timeline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
html.client .timeline b { font-weight: 500; color: var(--text); } html.client .timeline i { width: 18px; height: 1px; background: var(--line2); }
html.client .timeline .on { color: var(--lilac); }

/* ---- tabs (numbers) ---- */
html.client .tabs { display: flex; gap: 6px; margin: 0 0 16px; } html.client .tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
html.client .tabs a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--lilac) 14%, transparent); border-color: transparent; } html.client .tabs a:hover { text-decoration: none; color: var(--text); }

/* ---- locked ---- */
html.client .lockedbox .price { font: 500 1.4rem var(--head); margin: 0 0 12px; }

/* ---- phones: a tab bar instead of hunting for the menu ---- */
@media (max-width: 860px) {
  html.client .topbar { padding: 10px 14px; } html.client .topbar .brand-mark { width: 24px; } html.client .menu-btn { display: none; }
  html.client .top-view { margin-left: auto; font-size: .85rem; color: var(--lilac); padding: 8px 0; }
  html.client .tabbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  html.client .tabbar a, html.client .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px 4px; border: 0; background: none; color: var(--muted); font: 500 .68rem var(--ui); border-radius: 10px; cursor: pointer; text-decoration: none; }
  html.client .tabbar .ni { width: 22px; height: 22px; stroke-width: 1.7; }
  html.client .tabbar a[aria-current="page"] { color: var(--accent); } html.client .tabbar .tab-dot { position: absolute; top: 4px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
  html.client main.wrap { padding-bottom: 86px; } html.client .foot { padding-bottom: 96px; }
  html.client .hello { padding: 20px 16px; } html.client .tiles { grid-template-columns: 1fr 1fr; gap: 10px; } html.client .tile { min-height: 110px; padding: 14px; } html.client .tile.primary { grid-column: 1 / -1; }
  html.client .tile .t-title { font-size: 1rem; } html.client .tile .t-sub { font-size: .8rem; }
  html.client .side { width: min(320px, 88vw); }
}

/* ---- logging in ---- */
html.client .login { max-width: 420px; padding: 30px 28px; } html.client .login-brand { font: 500 1.05rem var(--ui); gap: 10px; margin-bottom: 20px; } html.client .login-brand .brand-mark { width: 34px; height: auto; }
html.client .login h1 { font-size: 1.5rem; } html.client .login .btn.full { margin-top: 6px; min-height: 46px; }
