/* Noir Nail Bar — shared look */
:root {
  --bg: #f7efe8;
  --surface: #ffffff;
  --surface2: #f4ece6;
  --ink: #211a1e;
  --muted: #6f6368;
  --line: #e6d9d1;
  --bar: #1c1519;
  --bar-ink: #f8efe6;
  --bar-muted: #c2b2aa;
  --accent: #a0663f;
  --accent-soft: #f6e7db;
  --gold: #c9a46a;
  --ok: #1c7a52;
  --ok-soft: #dcf0e6;
  --warn: #a5630c;
  --warn-soft: #faebd3;
  --bad: #b42342;
  --bad-soft: #f8dde3;
  --shadow: 0 1px 2px rgba(60, 35, 30, 0.06), 0 6px 18px rgba(90, 55, 40, 0.08);
  --r: 12px;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-disp: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 0% 0%, rgba(236, 196, 190, 0.55), transparent 60%),
    radial-gradient(800px 600px at 100% 10%, rgba(222, 196, 150, 0.45), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(214, 190, 220, 0.4), transparent 60%),
    linear-gradient(160deg, #fbf5ef 0%, #f6ece4 45%, #f3e8ec 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.4;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
button, select, input, textarea { font: inherit; color: inherit; }
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  padding: 8px 14px;
  font-weight: 600;
  transition: background 0.12s, border-color 0.12s, transform 0.06s;
}
button:hover { border-color: var(--muted); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
button.ghost { background: transparent; }
button.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
button.sm { padding: 4px 10px; font-size: 13px; }
input[type=text], input[type=password], input[type=number], select, textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  min-width: 0;
  width: 100%;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.top {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(100deg, #1c1519 0%, #2a1e24 55%, #33232a 100%);
  border-bottom: 1px solid var(--gold);
  box-shadow: 0 4px 18px rgba(40, 20, 25, 0.18);
  color: var(--bar-ink);
  padding: 10px 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}
.top .brand { display: flex; align-items: baseline; gap: 10px; margin-right: auto; min-width: 0; }
.top h1 { font-family: var(--f-disp); font-size: 26px; font-weight: 700; margin: 0; letter-spacing: 0.06em; }
.top .sub { color: var(--bar-muted); font-size: 13.5px; white-space: nowrap; }
.top button { background: transparent; color: var(--bar-ink); border-color: rgba(255, 255, 255, 0.2); }
.top button:hover { border-color: rgba(255, 255, 255, 0.5); }
.top a { color: var(--bar-muted); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.top a:hover { color: var(--bar-ink); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--bar-muted);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #888; display: inline-block; }
.pill.live i { background: #4bc28c; }
.pill.down i { background: #e3a24a; }

.wrap { max-width: 900px; margin: 0 auto; padding: 16px; }
.wide { max-width: 1280px; }
.lab { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
h2.sec { font-family: var(--f-disp); font-size: 27px; margin: 22px 0 10px; font-weight: 700; }
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%); background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: 11px; font-weight: 600; box-shadow: var(--shadow);
  z-index: 60; max-width: calc(100% - 32px);
}
.toast.bad { background: var(--bad); color: #fff; }
dialog {
  border: 1px solid var(--line); border-radius: 16px; padding: 0;
  background: var(--surface); color: var(--ink);
  width: min(460px, calc(100vw - 28px)); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
dialog::backdrop { background: rgba(10, 9, 12, 0.55); }
.dlg { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.dlg h3 { font-family: var(--f-disp); font-size: 26px; margin: 0; }
.dlg .row { display: flex; gap: 8px; flex-wrap: wrap; }
.dlg .row button { flex: 1; }
