/* Nyeko phone — Sticker Pop: cream paper, ink outlines, tangerine. System rounded type, nothing loaded from outside. */
:root {
  --cream: #FFF6E9; --paper: #FFFBF4; --sand: #FFEBD2; --ink: #2B1D12; --body: #3D2A1C; --muted: #6E5240;
  --tan: #FF7A2F; --tan-text: #B4400B; --mint: #2EC4B6; --mint-text: #0B7F6C; --pink: #FF8FB1; --sun: #FFC23D; --red: #C8372D;
  --r: 18px;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--cream);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--cream); }
body { padding: env(safe-area-inset-top) 0 0; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; }
.boot { text-align: center; margin-top: 40vh; font-weight: 800; font-size: 28px; }

/* Layout */
.screen { max-width: 560px; margin: 0 auto; padding: 14px 16px calc(96px + env(safe-area-inset-bottom)); }
.top { display: flex; align-items: center; gap: 10px; padding: 6px 2px 14px; }
.top h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.top .spacer { flex: 1; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--muted); }
.dot.on { background: var(--mint); } .dot.wait { background: var(--sun); } .dot.off { background: #D9C7B3; }
h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 4px 10px; font-weight: 800; }

/* Sticker cards and buttons */
.card { background: #fff; border: 2.5px solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--ink);
  padding: 16px; margin-bottom: 16px; }
.card.alert { background: #FFF1DF; }
.card.quiet { box-shadow: none; border-width: 2px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.btn { min-height: 48px; padding: 0 20px; border-radius: 999px; border: 2.5px solid var(--ink); background: #fff;
  box-shadow: 3px 3px 0 var(--ink); font-weight: 800; font-size: 16px; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translate(3px, 3px); box-shadow: none; }
.btn.primary { background: var(--tan); }
.btn.mint { background: var(--mint); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; }
.btn.round { width: 56px; padding: 0; }
.btn.round.big { width: 68px; min-height: 68px; }
.link { background: none; border: none; color: var(--tan-text); font-weight: 800; padding: 10px 0; min-height: 44px; cursor: pointer; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; word-break: break-all;
  background: var(--cream); border: 1.5px solid #E9D3B8; border-radius: 12px; padding: 10px 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px;
  background: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.need { color: var(--tan-text); } .chip.work { color: #8A5A00; } .chip.done { color: var(--mint-text); } .chip.idle { color: var(--muted); }
.title { font-weight: 800; font-size: 17px; }
.sub { font-size: 14px; color: var(--muted); }
.list > * + * { border-top: 1.5px solid #F0DFC9; }
.item { padding: 12px 0; }
.empty { text-align: center; padding: 20px 8px; color: var(--muted); }
.bar { height: 10px; border: 2px solid var(--ink); border-radius: 999px; background: #EEE3D3; overflow: hidden; }
.bar > div { height: 100%; background: var(--mint); }
.art { width: 72px; height: 72px; border-radius: 16px; border: 2.5px solid var(--ink); background: var(--tan);
  display: grid; place-items: center; font-size: 30px; flex-shrink: 0; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.apps .btn { min-height: 44px; padding: 0 6px; font-size: 13px; box-shadow: 2px 2px 0 var(--ink); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.opt { min-height: 44px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 14px; background: #fff;
  font-weight: 700; text-align: left; cursor: pointer; }
.opt.on { background: var(--mint); }
.opt small { display: block; font-weight: 500; color: var(--muted); }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 18px; white-space: pre-wrap;
  word-wrap: break-word; font-size: 15px; line-height: 1.4; }
.msg.me { align-self: flex-end; background: var(--tan); border-bottom-right-radius: 6px; }
.msg.nyo { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; }
.composer { position: fixed; left: 0; right: 0; bottom: calc(68px + env(safe-area-inset-bottom)); padding: 10px 16px;
  background: linear-gradient(transparent, var(--cream) 30%); }
.composer form { max-width: 560px; margin: 0 auto; display: flex; gap: 8px; }
input[type=text], textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 2.5px solid var(--ink);
  border-radius: 999px; padding: 0 16px; min-height: 50px; width: 100%; box-shadow: 3px 3px 0 var(--ink); }
textarea { border-radius: 16px; padding: 12px; min-height: 90px; resize: vertical; }
label.field { display: block; font-weight: 700; margin: 8px 0; }

/* Tab bar */
nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: var(--sand); border-top: 2.5px solid var(--ink);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 8px; z-index: 5; }
nav.tabs button { flex: 1; max-width: 140px; min-height: 48px; border-radius: 14px; border: 2px solid transparent; background: none;
  font-weight: 800; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
nav.tabs button[aria-current="page"] { background: var(--tan); border-color: var(--ink); }
nav.tabs .badge { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 6px; margin-left: 4px; }
.cat { width: 40px; height: 40px; flex-shrink: 0; }
.cat.big { width: 120px; height: 120px; display: block; margin: 8vh auto 10px; }
.center { text-align: center; }
.steps { padding-left: 20px; line-height: 1.6; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(140px + env(safe-area-inset-bottom));
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; font-weight: 700; z-index: 9; }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }
