/* Dimondnest Cafe: warm, quiet, minimal. Color is for meaning, not decoration. */
:root {
  --paper: #F8F3EB;
  --surface: #FFFDF9;
  --side: #F4EDE2;
  --hover: #EFE5D7;
  --soft: #F1E9DD;
  --ink: #2B2118;
  --muted: #6E5E50;
  --faint: #9C8C7C;
  --line: #E8DFD2;
  --line-2: #EFE7DC;
  --field: #D8CBB9;
  --accent: #A5532E;
  --ok: #5E6B32;
  --warn: #9A5B00;
  --warn-bg: #F5D9A8;
  --bad: #B42318;
  --serif: Fraunces, Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.4 Inter, system-ui, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--ink); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }
.hidden { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--field); border-radius: 6px; background: var(--surface); font-size: 14px; font-weight: 500; }
.btn:hover:not(:disabled) { border-color: var(--ink); }
.btn.pri { background: var(--ink); border-color: var(--ink); color: var(--surface); font-weight: 600; }
.btn.big { min-height: 52px; font-size: 16px; }
.btn.danger { color: var(--bad); }
.btn.link { border-color: transparent; background: transparent; color: var(--muted); text-decoration: underline; padding: 0 6px; }
.inp { min-height: 42px; width: 100%; border: 1px solid var(--field); border-radius: 6px; padding: 0 10px; background: var(--surface); font-size: 15px; }
textarea.inp { padding: 8px 10px; min-height: 72px; resize: vertical; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.th { font-size: 12px; font-weight: 600; color: var(--muted); }

.sw { width: 44px; height: 26px; border-radius: 13px; border: 0; background: var(--field); position: relative; padding: 0; flex-shrink: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 10px; background: var(--surface); transition: left .15s; }
.sw[aria-checked="true"] { background: var(--accent); }
.sw[aria-checked="true"]::after { left: 21px; }

.seg { display: inline-flex; gap: 4px; padding: 3px; background: var(--hover); border-radius: 7px; }
.seg button { min-height: 38px; padding: 0 12px; border: 0; background: transparent; border-radius: 5px; font-size: 14px; font-weight: 500; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--field); }

.photo { display: flex; align-items: center; justify-content: center; background: #D8CBB9; color: #4A3D31; overflow: hidden; flex-shrink: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 12px 16px; border-radius: 8px; font-size: 14px; max-width: calc(100% - 32px); z-index: 50; }
.toast.err { background: var(--bad); }
.dot { width: 8px; height: 8px; border-radius: 4px; display: inline-block; flex-shrink: 0; }
