/* RodaKita — gaya mengikuti prototipe */
:root {
  --bg: #f4f1ec; --card: #fff; --ink: #1d1b19; --mute: #77716a; --line: #e6e1d9;
  --accent: #e4572e; --accent-ink: #fff; --dark: #22201e; --ok: #2e9e6a; --warn: #d99a1d;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #d9d4cc; color: var(--ink); min-height: 100vh; display: flex; justify-content: center;
}
.app { width: 100%; max-width: 460px; min-height: 100vh; background: var(--bg); position: relative; display: flex; flex-direction: column; }
header { background: var(--dark); color: #fff; padding: 14px 16px 10px; position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand h1 { font-size: 18px; letter-spacing: .3px; }
.brand h1 span { color: var(--accent); }
.me { font: inherit; font-size: 12px; background: #38342f; color: #fff; border: 0; padding: 5px 10px; border-radius: 99px; cursor: pointer; display: flex; align-items: center; gap: 6px; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid #4a453f; color: #ddd6cc; background: transparent; padding: 6px 12px; border-radius: 99px; font-size: 13px; cursor: pointer; font-family: inherit; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
main { flex: 1; padding: 14px 14px 90px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.sp { flex: 1; min-width: 0; }
.mute { color: var(--mute); font-size: 12px; }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: #efe9df; color: #5b544b; font-weight: 600; }
h2 { font-size: 16px; margin: 2px 0 10px; }
h3 { font-size: 15px; }
p.body { font-size: 14px; line-height: 1.5; margin: 8px 0; }
.btn { border: 0; background: var(--accent); color: #fff; padding: 11px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.ghost { background: #efe9df; color: var(--ink); }
.btn.white { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.btn.block { width: 100%; }
.link { border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
textarea, input, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { resize: none; height: 64px; }
.fld { margin-bottom: 10px; }
.fld label { display: block; font-size: 12px; color: var(--mute); margin-bottom: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; margin: 12px 0; }
.check input { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 12px; margin: 14px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.err { color: #b3361a; font-size: 13px; margin: 4px 0 8px; }
.err:empty { display: none; }
.note { background: #fbefd2; color: #6b4e0c; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; margin-top: 12px; }

.photo { width: 96px; height: 96px; border-radius: 50%; background: #e6dfd3; display: grid; place-items: center; font-size: 30px; font-weight: 700; color: #8a8175; margin: 0 auto 8px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.kv { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--mute); width: 110px; flex: none; font-size: 12px; padding-top: 2px; }
.li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.st { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.st.ok { background: #dff3e8; color: #1f7a50; }
.st.wait { background: #fbefd2; color: #8a6410; }
.st.no { background: #fbe0d8; color: #b3361a; }
.empty { text-align: center; color: var(--mute); padding: 30px 10px; font-size: 14px; }
.back { border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; margin-bottom: 10px; font-family: inherit; }

.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 6px; text-align: center; cursor: pointer; font: inherit; color: inherit; position: relative; }
.mi:active { transform: scale(.97); }
.mi .e { font-size: 28px; display: block; margin-bottom: 6px; }
.mi b { font-size: 12px; display: block; }
.mi small { font-size: 10px; color: var(--mute); }
.mi.soon { opacity: .55; }
.mi .soon-tag { position: absolute; top: 6px; right: 6px; font-size: 9px; font-weight: 700; background: #efe9df; color: #8a8175; padding: 1px 6px; border-radius: 99px; }

.steps .li b { font-size: 14px; }
.hello { background: linear-gradient(135deg, #22201e, #5a4636); color: #fff; border: 0; }
.hello .mute { color: #d8cfc3; }

.sos { width: 150px; height: 150px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #ff7a59, #c93a14); color: #fff; font-weight: 800; font-size: 26px; box-shadow: 0 8px 24px rgba(201, 58, 20, .45); margin: 14px auto; display: block; font-family: inherit; }
.sos:disabled { filter: grayscale(.6); opacity: .65; }
.emg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.emg { display: block; text-decoration: none; color: #fff; border-radius: 14px; padding: 14px 12px; text-align: left; }
.emg .e { font-size: 26px; }
.emg b { display: block; font-size: 14px; margin-top: 4px; }
.emg .no { font-size: 24px; font-weight: 800; letter-spacing: .5px; }
.emg small { display: block; opacity: .9; font-size: 11px; margin-top: 2px; }
.emg:active { transform: scale(.97); }

nav { position: fixed; bottom: 0; width: 100%; max-width: 460px; background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 6; padding-bottom: env(safe-area-inset-bottom); }
nav button { flex: 1; border: 0; background: none; padding: 9px 0 8px; font-size: 11px; color: var(--mute); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: inherit; }
nav button .ic { font-size: 20px; filter: grayscale(1); opacity: .7; }
nav button.on { color: var(--accent); font-weight: 700; }
nav button.on .ic { filter: none; opacity: 1; }

.toast { position: fixed; left: 50%; bottom: 78px; transform: translateX(-50%); background: #22201e; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 40; max-width: 420px; width: max-content; text-align: center; }
.toast.show { opacity: 1; }
.toast.bad { background: #b3361a; }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); display: none; align-items: flex-end; justify-content: center; z-index: 30; }
.modal.show { display: flex; }
.sheet { background: #fff; width: 100%; max-width: 460px; border-radius: 18px 18px 0 0; padding: 18px; max-height: 85vh; overflow: auto; }
