@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800&display=swap");
:root {
  --bg: #f4efe6; --fg: #1d2326; --muted: #6a6f70; --accent: #e8661a; --border: #ddd3c2;
  --radius: 14px; --font: "Archivo", sans-serif; --ink: #1f3a4a; color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--fg); font-family: var(--font); }
button { font-family: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 90px; }
.screen { padding: 16px; }
.brand { background: var(--ink); color: #fff; margin: -16px -16px 16px; padding: 28px 18px 22px;
  background-image: repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,.04) 18px 36px); }
.brand h1 { margin: 0; font-size: 30px; font-weight: 800; }
.brand h1::after { content: ""; display: block; width: 48px; height: 5px; background: var(--accent); margin-top: 6px; }
.brand p { color: #c9d6dd; margin: 10px 0 16px; }
.fakesearch { width: 100%; min-height: 50px; text-align: left; border: 0; border-radius: var(--radius); padding: 0 16px;
  font-size: 16px; background: #fff; color: var(--muted); }
.sect { font-size: 18px; margin: 8px 0 12px; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 12px; min-height: 110px;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start; font-weight: 600; text-align: left; }
.cat-i { font-size: 30px; }
.cat small { color: var(--muted); font-weight: 400; }
.back { background: none; border: 0; color: var(--accent); font-weight: 700; font-size: 16px; min-height: 44px; padding: 0; }
.title { margin: 4px 0; font-size: 26px; font-weight: 800; }
.sub { margin: 0 0 10px; color: var(--muted); font-size: 17px; }
.list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.gcard { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; text-align: left; min-height: 64px; font-size: 20px; }
.gicon { font-size: 26px; }
.gbody { flex: 1; display: flex; flex-direction: column; font-size: 15px; }
.gbody strong { font-size: 16px; }
.meta { color: var(--muted); font-size: 13px; }
.input { width: 100%; font-size: 16px; min-height: 48px; padding: 0 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: inherit; background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #fff; border: 1px solid var(--border); border-radius: 99px; padding: 5px 11px; font-size: 13px; }
.d-Easy { background: #dff3e1; } .d-Medium { background: #fdeccc; } .d-Hard { background: #fbd9d3; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-top: 14px; scroll-margin-top: 10px; }
.panel h2 { font-size: 17px; margin: 0 0 10px; }
.checks { margin: 0; padding-left: 20px; line-height: 1.5; }
.checks li { margin-bottom: 6px; }
.strip { display: flex; gap: 8px; margin-bottom: 12px; }
.thumb { flex: 1; min-height: 44px; border-radius: 10px; border: 2px solid var(--border); background: var(--bg); font-weight: 800; }
.thumb.on { border-color: var(--accent); background: #fff1e7; }
.thumb.done { background: #dff3e1; }
.pic { position: relative; aspect-ratio: 4/3; border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #3c6378, var(--ink)); }
.pic::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px; }
.pic-unplug, .pic-test { background: radial-gradient(circle at 30% 30%, #3a7a5a, #173a2b); }
.pic-clean, .pic-replace { background: radial-gradient(circle at 30% 30%, #b35a20, #4c2309); }
.pic-icon { font-size: 76px; position: relative; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.pic-label { position: relative; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.photo { position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--ink); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 10px; color: #fff; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; font-size: 13px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.photonote { font-size: 12px; color: #6b7a85; margin: 6px 0 0; }
.pic-n { position: absolute; z-index: 1; top: 10px; left: 10px; background: var(--accent); width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; }
h3 { font-size: 18px; margin: 14px 0 6px; }
.steptext { line-height: 1.6; font-size: 16px; margin: 0 0 12px; }
.donebox { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.donebox input { width: 22px; height: 22px; accent-color: var(--accent); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.nav .btn { flex: 1; }
.btn { min-height: 48px; border-radius: var(--radius); border: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; padding: 0 16px; }
.btn.ghost { background: var(--bg); color: var(--fg); border: 1px solid var(--border); }
.btn:disabled { opacity: .4; }
.win { background: #dff3e1; padding: 12px; border-radius: 10px; font-weight: 700; }
.safety { font-size: 14px; color: var(--muted); line-height: 1.5; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex;
  background: #fff; border-top: 1px solid var(--border); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.tabbar button { flex: 1; min-height: 60px; background: none; border: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.tabbar button span { font-size: 22px; }
.tabbar button.on { color: var(--accent); }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty-title { font-weight: 700; color: var(--fg); }
.loading { display: flex; justify-content: center; padding: 24px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: var(--border); border-radius: 8px; min-height: 16px; }
.alert { padding: 12px; border-radius: 10px; } .alert-error { background: #fbd9d3; }
.badge { padding: 2px 8px; border-radius: 99px; background: var(--border); font-size: 12px; }
.shell { padding: 16px; } .card { background: #fff; border-radius: var(--radius); padding: 14px; }
.stack { display: flex; flex-direction: column; gap: 10px; } .grid { display: grid; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; } .list-item { padding: 10px; }
.table { width: 100%; border-collapse: collapse; }
