
/* 1カラムのスマホアプリ。下に固定タブ、上に「端末の中だけで処理」の帯。色は状態（自動・確認・NG）で意味を持たせる */
:root{
  --bg:#FBF8F2; --surface:#FFFFFF; --surface2:#EDF3F0; --line:#DCE6E1;
  --fg:#3F3A39; --sub:#6E6866; --accent:#437A87; --mk:#5E8C99; --accent-fg:#FFFFFF;
  --mk-g:#5DAA6E; --mk-p:#EE8FA6; --mk-b:#5B9BD6; --cream:#FDFAF4; --g1:#5E8C99; --g2:#6F9CA7; --g3:#8DB4BC; --yel:#F8BE29; --yel-fg:#3F3A39;
  --ask:#A9620F; --ask-bg:#FBEEDB; --ok:#2B7552; --ok-bg:#E1F1E8; --ng:#B0392C; --ng-bg:#F8E3E0;
  --shadow:0 1px 2px rgba(20,40,45,.06),0 4px 14px rgba(20,40,45,.06);
  --f-disp:"M PLUS Rounded 1c","Zen Maru Gothic","Hiragino Maru Gothic ProN",sans-serif;
  --f-body:"BIZ UDPGothic","Hiragino Sans","Yu Gothic",sans-serif;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#121A1C; --surface:#1A2427; --surface2:#223035; --line:#2F3F44;
  --fg:#E7EEEC; --sub:#A3B2B6; --accent:#9FC3CC; --accent-fg:#0E1B20; --mk:#9FC3CC; --g1:#3F6A75; --g2:#4A7884; --g3:#5E8C99; --yel:#F8BE29; --yel-fg:#2A2522;
  --ask:#F0B467; --ask-bg:#3A2C17; --ok:#7BCBA1; --ok-bg:#183327; --ng:#F09184; --ng-bg:#3B1E1B;
  --shadow:none; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#121A1C; --surface:#1A2427; --surface2:#223035; --line:#2F3F44;
  --fg:#E7EEEC; --sub:#A3B2B6; --accent:#6FD891; --accent-fg:#0E1B20; --g1:#3DA85C; --g2:#3E9C92; --g3:#3E8FB5; --yel:#F8BE29; --yel-fg:#2A2522;
  --ask:#F0B467; --ask-bg:#3A2C17; --ok:#7BCBA1; --ok-bg:#183327; --ng:#F09184; --ng-bg:#3B1E1B;
  --shadow:none; color-scheme:dark}
*{box-sizing:border-box}
html,body{height:100%}
body{background:var(--bg);color:var(--fg);font-family:var(--f-body);font-size:15px;line-height:1.6}
.app{max-width:560px;margin:0 auto;padding:0 16px;padding-block:12px calc(96px + env(safe-area-inset-bottom,0px))}
h1,h2,h3{font-family:var(--f-disp);margin:0;text-wrap:balance;letter-spacing:.01em}
h1{font-size:24px} h2{font-size:19px} h3{font-size:16px}
.sub{color:var(--sub);font-size:13px}
.stack{display:flex;flex-direction:column;gap:12px}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.grow{flex:1;min-width:0}
.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:var(--shadow)}
button,.btn{font-family:var(--f-body);font-size:15px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--fg);min-height:46px;padding:0 16px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}
button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.primary{background:var(--accent);color:var(--accent-fg);border-color:var(--accent);font-weight:700}
.big{min-height:56px;font-size:16px;width:100%}
.danger{color:var(--ng);border-color:var(--ng)}
.ghost{background:transparent;border-color:transparent;color:var(--accent);padding:0 8px}
.chip{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px;background:var(--surface2);color:var(--fg);white-space:nowrap}
.chip.ok{background:var(--ok-bg);color:var(--ok)} .chip.ask{background:var(--ask-bg);color:var(--ask)} .chip.ng{background:var(--ng-bg);color:var(--ng)}
.safe{display:flex;align-items:center;gap:8px;background:var(--ok-bg);color:var(--ok);border-radius:12px;padding:8px 12px;font-size:13px;font-weight:700}
.sample{background:var(--ask-bg);color:var(--fg);border-radius:14px;padding:12px 14px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:13px}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:2px;text-align:left;min-height:auto;align-items:flex-start}
.tile b{font-family:var(--f-disp);font-size:26px;font-variant-numeric:tabular-nums;line-height:1.2}
.list{display:flex;flex-direction:column}
.item{display:flex;align-items:center;gap:12px;padding:10px 4px;border-bottom:1px solid var(--line);background:none;border-radius:0;border-left:0;border-right:0;border-top:0;width:100%;text-align:left;min-height:60px}
.item:last-child{border-bottom:0}
.av{width:44px;height:44px;border-radius:50%;object-fit:cover;background:var(--surface2);flex-shrink:0;display:flex;align-items:center;justify-content:center;font-weight:700;font-family:var(--f-disp)}
.count{font-family:var(--f-disp);font-weight:700;font-variant-numeric:tabular-nums}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.ph{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--surface2);padding:0;border:0;min-height:0;max-width:100%}
.ph img{width:100%;height:100%;object-fit:cover;display:block}
.ph .tag{position:absolute;left:4px;bottom:4px;right:4px;display:flex;gap:3px;flex-wrap:wrap}
.ph .tag span{font-size:10px;background:rgba(0,0,0,.6);color:#fff;border-radius:6px;padding:1px 5px}
.ph .pend{position:absolute;top:4px;right:4px;background:var(--ask);color:#fff;font-size:11px;font-weight:700;border-radius:999px;padding:1px 7px}
.seg{display:flex;gap:6px;flex-wrap:wrap}
.seg button{min-height:40px;border-radius:999px;font-size:14px}
.seg button[aria-pressed="true"]{background:var(--fg);color:var(--bg);border-color:var(--fg);font-weight:700}
.bar{height:8px;background:var(--surface2);border-radius:4px;overflow:hidden}
.bar i{display:block;height:100%;background:var(--accent);border-radius:4px;transition:width .2s}
.face-big{width:220px;height:220px;max-width:100%;border-radius:24px;object-fit:cover;background:var(--surface2);margin:0 auto;display:block}
.ctx{position:relative;border-radius:12px;overflow:hidden;max-width:100%}
.ctx img{width:100%;display:block}
.box{position:absolute;border:3px solid var(--ask);border-radius:6px}
.box.done{border-color:var(--accent)} .box.ngb{border-color:var(--ng)}
.box em{position:absolute;left:-3px;top:-22px;background:inherit;font-style:normal;font-size:11px;font-weight:700;color:#fff;padding:1px 6px;border-radius:6px;white-space:nowrap}
.judge{position:relative;touch-action:pan-y;user-select:none;-webkit-user-select:none;transition:transform .18s}
.judge .face-big{width:260px;height:260px}
.okng{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.okng button{min-height:84px;font-size:20px;font-weight:700;border-radius:20px;flex-direction:column;gap:2px}
.okng .mark{font-size:34px;line-height:1;font-family:var(--f-disp)}
.okng .no{border:2px solid var(--ng);color:var(--ng);background:var(--surface)}
.okng .yes{border:2px solid var(--ok);background:var(--ok);color:#fff}
.strip{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}
.strip img{width:46px;height:46px;border-radius:10px;object-fit:cover;flex-shrink:0;opacity:.55}
.strip img.cur{opacity:1;outline:3px solid var(--accent);outline-offset:1px}
.kgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.kcell{flex-direction:column;gap:4px;min-height:auto;padding:10px 4px;border-radius:16px;text-align:center}
.kcell .av{width:64px;height:64px}
.cls-card{justify-content:flex-start;text-align:left;min-height:76px;border-radius:16px;padding:12px 14px;gap:12px;width:100%}
.avs{display:flex}.avs img,.avs span{width:30px;height:30px;border-radius:50%;margin-left:-8px;border:2px solid var(--surface);object-fit:cover}
.avs :first-child{margin-left:0}
.names{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.names button{flex-direction:column;gap:4px;min-height:96px;padding:8px 4px;border-radius:16px;font-size:15px;font-weight:700}
.names button .av{width:48px;height:48px}
.names button.sug{border:2px solid var(--accent)}
.facegrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.facegrid .ph{border-radius:14px}
.facegrid .ph[aria-pressed="true"] img{opacity:.3}
.facegrid .ph .x{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--ng);font-weight:700;font-size:14px}
.facegrid .ph .x b{font-size:40px;line-height:1;font-family:var(--f-disp)}
.kcell{position:relative;overflow:hidden}
.rib{position:absolute;top:10px;right:-26px;width:96px;transform:rotate(45deg);background:var(--ng);color:#fff;font-size:11px;font-weight:700;text-align:center;line-height:20px;letter-spacing:.08em;pointer-events:none}
.kcell.isng{border-color:var(--ng)}
.bal{display:flex;flex-direction:column;gap:2px}
.brow{display:grid;grid-template-columns:96px minmax(0,1fr) 64px;align-items:center;gap:8px;min-height:44px;background:none;border:0;border-radius:10px;padding:2px 4px;text-align:left;width:100%}
.brow:hover{background:var(--surface2)}
.brow .nm{display:flex;align-items:center;gap:6px;min-width:0;font-weight:700;font-size:14px}
.brow .nm span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.track{position:relative;height:16px;background:var(--surface2);border-radius:4px}
.fill{height:16px;border-radius:0 4px 4px 0;background:var(--accent)}
.fill.low{background:var(--ask)}
.avgline{position:absolute;top:-4px;bottom:-4px;border-left:2px dashed var(--sub)}
.brow .num{text-align:right;font-variant-numeric:tabular-nums;font-weight:700;font-size:14px}
.brow .num small{display:block;font-weight:400;font-size:11px;color:var(--sub)}
.tw{position:relative;width:100%;border-radius:12px;overflow:hidden;background:var(--surface2)}
.tw img{display:block;width:100%;height:100%;object-fit:cover}
.bub{position:absolute;transform:translate(-50%,calc(-100% - 7px));background:rgba(20,26,28,.86);color:#fff;font-weight:700;border-radius:8px;padding:3px 9px;font-size:14px;white-space:nowrap;border:0;min-height:0;line-height:1.4;font-family:var(--f-body);z-index:2}
.bub::after{content:"";position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);border:6px solid transparent;border-bottom:0;border-top-color:inherit;border-top-color:rgba(20,26,28,.86)}
.bub.below{transform:translate(-50%,7px)}
.bub.below::after{top:-6px;bottom:auto;border-top:0;border-bottom:6px solid rgba(20,26,28,.86)}
.bub.ask{background:var(--ask)} .bub.ask::after{border-top-color:var(--ask)} .bub.ask.below::after{border-bottom-color:var(--ask)}
.bub.ngt{background:var(--ng)} .bub.ngt::after{border-top-color:var(--ng)} .bub.ngt.below::after{border-bottom-color:var(--ng)}
.bub.ok::before{content:"✓ "}
.tw.dense .bub:not(.sm){font-size:12px;padding:2px 7px;border-radius:7px}.tw.dense .bub.ok::before{content:""}
.bub.moved::after{display:none}
.bub.sm{font-size:10px;padding:1px 5px;border-radius:5px;transform:translate(-50%,calc(-100% - 4px))}
.bub.sm::after{border-width:4px;bottom:-4px}
.bub.sm.below{transform:translate(-50%,4px)}
button.bub{cursor:pointer}
.facehit{position:absolute;border:0;background:transparent;min-height:0;padding:0;border-radius:8px}
.facehit:focus-visible{outline:3px solid #fff}
.cand{width:100%;justify-content:flex-start;min-height:64px;font-size:18px;text-align:left}
.cand .grow{display:flex;flex-direction:column;align-items:flex-start}
.cand small{font-size:12px;color:var(--sub);font-weight:400}
.cand.first{border:2px solid var(--accent)}
.sheet{position:fixed;inset:0;background:rgba(10,20,22,.45);display:flex;align-items:flex-end;justify-content:center;z-index:30}
.sheet .panel.fixh{height:82%}
.chainslot{min-height:96px;display:flex;flex-direction:column;justify-content:flex-start}
.sheet .panel{background:var(--surface);width:100%;max-width:560px;border-radius:20px 20px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom,0px));max-height:82%;overflow:auto}
.steps{display:flex;gap:6px;justify-content:center}
.steps i{width:30px;height:6px;border-radius:3px;background:var(--surface2)} .steps i.on{background:var(--accent)} .steps i.done{background:var(--ok)}
.ring{width:230px;height:230px;max-width:100%;margin:6px auto;border-radius:50%;border:4px dashed var(--line);display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--surface2)}
.ring.got{border-style:solid;border-color:var(--ok)}
.ring img{width:100%;height:100%;object-fit:cover}
.tabs{position:fixed;left:0;right:0;bottom:0;background:var(--surface);border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));z-index:20}
.tabs nav{max-width:560px;margin:0 auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.tabadd .addc{width:44px;height:44px;margin-top:-18px;border-radius:50%;background:var(--yel,#F5C13A);color:#3F3A39;display:grid;place-items:center;box-shadow:0 2px 8px rgba(0,0,0,.18);border:3px solid var(--surface)}
.tabs button{flex-direction:column;gap:2px;border:0;background:none;font-size:11px;min-height:52px;color:var(--sub);padding:0;position:relative}
.tabs button[aria-current="page"]{color:var(--accent);font-weight:700}
.tabs .badge{position:absolute;top:2px;left:calc(50% + 6px);background:var(--ask);color:#fff;font-size:10px;font-weight:700;border-radius:999px;padding:0 6px;min-width:18px}
input[type=text]{font-family:var(--f-body);font-size:16px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--surface);color:var(--fg);min-height:46px;width:100%}
.hdr{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.kv{display:grid;grid-template-columns:1fr auto;gap:8px 12px;font-size:14px}
.kv b{font-variant-numeric:tabular-nums;text-align:right}
.note{font-size:13px;color:var(--sub);background:var(--surface2);border-radius:12px;padding:10px 12px}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(80px + env(safe-area-inset-bottom,0px));background:var(--fg);color:var(--bg);padding:10px 16px;border-radius:12px;font-size:14px;z-index:40;max-width:90%}
.hidden-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
@media (prefers-reduced-motion: reduce){*{transition:none!important}}
/* ---- SINTERAS らしさ：緑→水色のグラデーション、黄色のボタン、太い丸ゴシック ---- */
h1,h2,h3{font-weight:800}
.brand{position:sticky;top:0;z-index:25;background:var(--surface);border-bottom:1px solid var(--line)}
.brand .in{max-width:560px;margin:0 auto;padding:8px 16px;display:flex;align-items:center;gap:10px}
.brand .nm{font-family:var(--f-disp);font-weight:800;font-size:18px;letter-spacing:.02em}
.brand .by{margin-left:0;font-family:Georgia,"Times New Roman",serif;font-size:11px;letter-spacing:.28em;color:var(--sub)}
.grad{background:linear-gradient(115deg,var(--g1) 0%,var(--g2) 55%,var(--g3) 100%);color:#fff}
.hero{position:relative;border-radius:22px;padding:20px 18px 18px;overflow:hidden}
.hero h1{font-size:26px;line-height:1.35;text-shadow:0 1px 0 rgba(0,0,0,.06)}
.hero .y{color:#FFE27A}
.hero .lead{font-weight:700;font-size:13px;opacity:.95}
.hero .plus{position:absolute;right:16px;top:14px;font-weight:700;letter-spacing:6px;line-height:1.1;opacity:.85;font-size:14px}
.hero .ring2{position:absolute;right:-26px;bottom:-26px;width:110px;height:110px;border:2px solid rgba(255,255,255,.55);border-radius:50%}
.hero .safe{background:rgba(255,255,255,.92);color:#1F7A48;display:inline-flex}
.primary{background:var(--yel);color:var(--yel-fg);border-color:var(--yel);border-radius:999px;font-weight:800;box-shadow:0 3px 0 rgba(160,110,0,.25)}
.primary:hover{filter:brightness(1.03)}
.card{border-radius:20px}
.seg button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}
.tabs button[aria-current="page"]{color:var(--accent)}
.tabs button[aria-current="page"] svg{background:linear-gradient(115deg,var(--g1),var(--g3));color:#fff;border-radius:10px;padding:3px;width:30px;height:28px}
.clsband{border-radius:20px;padding:14px 16px;display:flex;align-items:center;gap:8px}
.clsband .sub{color:rgba(255,255,255,.9)}
.clsband .ghost{color:#fff;border:1px solid rgba(255,255,255,.7);border-radius:999px;background:rgba(255,255,255,.15)}
.cls-tile{border-top:5px solid var(--g1)!important}
.bar i,.fill{background:linear-gradient(90deg,var(--g1),var(--g3))}
.safe{background:var(--ok-bg);color:var(--ok)}

/* ---- ほいくのMIKKE：うさぎのキャラクターと3色のロゴ ---- */
.hdr-face{width:44px;height:44px;object-fit:contain;margin:-6px 0}
.brand .nm{display:flex;align-items:baseline;gap:4px}
.brand .nm small{font-size:12px;font-weight:800;color:var(--mk)}
.mk{font-family:var(--f-disp);font-weight:800;letter-spacing:.04em;color:var(--mk)}
.chara{display:block;object-fit:contain;flex-shrink:0;border-radius:24px;background:var(--cream)}
.mk-hero{background:var(--cream);border:1px solid var(--line);border-radius:24px;padding:18px 16px 16px;display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:4px 8px;align-items:center}
.mk-hero .lead{font-size:12px;font-weight:700;color:var(--sub)}
.mk-hero .ttl{font-family:var(--f-disp);font-weight:800;line-height:1.1;margin:2px 0 6px}
.mk-hero .ttl small{display:block;font-size:18px;color:var(--mk)}
.mk-hero .ttl .mk{font-size:44px}
.mk-hero .tag{font-size:13px;font-weight:700;line-height:1.6}
.mk-hero .chara{width:132px;height:170px;grid-row:1 / span 2;grid-column:2;background:transparent}
.mk-hero .safe{grid-column:1 / -1;margin-top:8px}
.with-chara{display:flex;align-items:center;gap:12px}
.empty-chara{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:12px;color:var(--sub);font-weight:700}
.empty-chara .chara{width:120px;height:120px;background:transparent}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--cream:#F6F0E4}}
.kinds{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.kind{flex-direction:column;gap:0;min-height:76px;border-radius:16px;align-items:center}
.kind b{font-family:var(--f-disp);font-size:24px;line-height:1.2}
.kind .sub{font-size:11px;white-space:nowrap;letter-spacing:-.02em}.kind{padding:6px 2px!important}
.kind.on{border:2px solid var(--accent);background:var(--surface2)}
.hidebtn{width:100%;justify-content:flex-start;min-height:60px;border-radius:16px;gap:10px;text-align:left;font-weight:700}
.hidebtn small{font-weight:400;font-size:12px;color:var(--sub)}
.hidebtn.ng{border:2px solid var(--ng);color:var(--ng)}
.hface{position:absolute;z-index:2;border-radius:50%;border:2px dashed rgba(255,255,255,.9);background:transparent;min-height:0;padding:0;display:flex;align-items:flex-end;justify-content:center}
.hface.on{border:3px solid var(--yel)}
.hface span{transform:translateY(55%);font-size:11px!important;background:rgba(20,26,28,.8);color:#fff;font-size:12px;font-weight:700;border-radius:6px;padding:1px 6px;white-space:nowrap}
.hface.on span{background:var(--yel);color:var(--yel-fg)}
.stampbtn{width:56px;height:56px;min-height:0;padding:0;border-radius:50%;font-size:28px}
.stampbtn img{width:48px;height:48px;border-radius:50%;object-fit:cover}
.stampbtn.on{border:3px solid var(--accent)}
.ntags{position:absolute;top:5px;right:5px;left:5px;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:3px;pointer-events:none;z-index:2}
.ntags span{color:#fff;font-size:11px;font-weight:700;line-height:1.5;padding:0 7px;border-radius:999px;box-shadow:0 1px 3px rgba(0,0,0,.25);white-space:nowrap}
.ntags .more{background:rgba(30,30,30,.65)} .ntags .q{background:var(--ask)}
.grid3 .ntags span{font-size:10px;padding:0 5px}

.grid3,.pgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
@media (min-width:520px){.grid3,.pgrid{grid-template-columns:repeat(5,minmax(0,1fr))}}
/* 写真の一覧は横長（4:3）。写真は切らずに全部見せる（はしに写った子も見落とさない） */
button.ph[data-a="photo"],button.ph[data-a="edpick"]{aspect-ratio:4/3;background:#E9EEEC}
button.ph[data-a="photo"] img,button.ph[data-a="edpick"] img{object-fit:contain}
.grid3:has(>button.ph[data-a="photo"]),.pgrid:has(>button.ph[data-a="photo"]),.grid3:has(>button.ph[data-a="edpick"]){grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
@media (min-width:520px){.grid3:has(>button.ph[data-a="photo"]),.pgrid:has(>button.ph[data-a="photo"]),.grid3:has(>button.ph[data-a="edpick"]){grid-template-columns:repeat(4,minmax(0,1fr))}}
.grid3 .ph,.pgrid .ph{border-radius:6px}
.grid3 .ntags,.pgrid .ntags{top:3px;right:3px;left:3px;gap:2px}
.grid3 .ntags span,.pgrid .ntags span{font-size:9px;padding:0 4px;line-height:1.45}
.ph .tag span{font-size:9px}
.ntags .ngtag{background:#D7263D!important;border:1.5px solid #fff;font-size:10px!important}
.qmark{position:absolute;right:4px;bottom:4px;width:18px;height:18px;border-radius:50%;background:var(--ask);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.fwrap{display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden}
.fwrap .fimg{border-radius:0}
.fimg{display:inline-block;border-radius:18px;background-repeat:no-repeat;background-color:var(--surface2)}
.picked{background:var(--ok)!important;border-color:var(--ok)!important;color:#fff!important;font-weight:800}
.busyov{position:fixed;inset:0;z-index:80;background:rgba(251,248,242,.97);display:flex;align-items:center;justify-content:center;padding:16px;color:#3F3A39}
.busybox{width:100%;max-width:400px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.busybox .sub{color:#6E6866}
.busychar{position:relative;width:130px;height:130px}.busychar img{width:130px;height:130px;object-fit:contain;animation:bob 1.6s ease-in-out infinite}
.busychar .scan{position:absolute;left:50%;top:50%;width:150px;height:150px;margin:-75px 0 0 -75px;border-radius:50%;border:4px solid transparent;border-top-color:#F2C14E;border-right-color:#F2C14E;animation:spin 1.2s linear infinite}
.busylabel{font-size:18px;font-weight:800;font-family:var(--f-disp)}
.dots i{font-style:normal;animation:blink 1.4s infinite}.dots i:nth-child(2){animation-name:blink2}.dots i:nth-child(3){animation-name:blink3}
.busybar{width:100%;height:12px;position:relative;overflow:hidden}.busybar i{transition:width .4s}
.busybar em{position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);width:40%;animation:shine 1.5s linear infinite}
.busybar.indet i{width:35%!important;position:absolute;animation:indet 1.4s ease-in-out infinite}
.busythumbs{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;max-height:110px;overflow:hidden}.busythumbs img{width:48px;height:48px;object-fit:cover;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.15);animation:pop .3s ease}
.busytips{position:relative;width:100%;height:44px}.busytips span{position:absolute;inset:0;font-size:13px;color:#437A87;font-weight:700;opacity:0;animation:tips 12s infinite}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-8px) rotate(3deg)}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes blink{0%,100%{opacity:.2}20%{opacity:1}}@keyframes blink2{0%,100%{opacity:.2}40%{opacity:1}}@keyframes blink3{0%,100%{opacity:.2}60%{opacity:1}}
@keyframes shine{from{left:-40%}to{left:100%}}
@keyframes indet{0%{left:-35%}100%{left:100%}}
@keyframes tips{0%{opacity:0}4%,30%{opacity:1}34%,100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.busychar img,.busychar .scan,.busybar em,.busybar.indet i{animation-duration:4s}}
.startway{display:flex;align-items:center;gap:12px;text-align:left;padding:14px;border-radius:16px;min-height:64px;width:100%}
.startway b{display:block;font-size:16px}.startway small{display:inline-block;font-size:11px;font-weight:800;background:#fff;color:var(--accent);border-radius:999px;padding:1px 8px;margin-top:2px}
.startway .wsub{display:block;font-size:12px;font-weight:400;opacity:.9;margin-top:4px;line-height:1.5}
.startway:not(.primary){background:var(--surface);border:1px solid var(--line)}
.plusbig{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:14px;background:rgba(255,255,255,.22);flex:none}
.linkbtn{background:none;border:0;padding:0;min-height:0;color:var(--accent);text-decoration:underline;font-weight:700;font-size:inherit;display:inline}
.shtop{display:flex;align-items:center;justify-content:space-between;min-height:36px}
.fstrip{flex:none;display:flex;gap:8px;overflow-x:auto;padding:4px 2px 6px;scrollbar-width:none}.fstrip::-webkit-scrollbar{display:none}
.fs{flex:none;display:flex;flex-direction:column;align-items:center;gap:3px;background:none!important;border:0!important;padding:0!important;min-height:0!important;position:relative;width:56px;box-shadow:none!important}
.fs>*:first-child{border-radius:50%!important;overflow:hidden;border:3px solid transparent;width:44px!important;height:44px!important}
.fs span{font-size:10px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:56px}
.fs.now>*:first-child{border-color:#F2A93B;box-shadow:0 0 0 3px rgba(242,169,59,.3)}.fs.now span{color:#C77700;font-weight:800}
.fs.done>*:first-child{opacity:.55}.fs .ck{position:absolute;top:28px;right:4px;background:#2E7D63;color:#fff;border-radius:50%;width:18px;height:18px;font-size:11px;font-style:normal;display:flex;align-items:center;justify-content:center}
.bigface{flex:none;display:flex;justify-content:center;padding:4px}.bigface>*{border-radius:24px;box-shadow:0 0 0 4px #F2A93B}.bigface.ok>*{box-shadow:0 0 0 5px #2E7D63}
.whoq{text-align:center;margin:2px 0 0;font-size:22px}
.decided{display:flex;flex-direction:column;align-items:center;gap:2px;color:#2E7D63;padding:10px 0;animation:pop .25s ease}.decided b{font-size:28px}.decided span{font-size:15px}
.guessbox{background:#FFF4D6;border-radius:14px;padding:12px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;color:#3F3A39}.guessbox b{font-size:20px}.guessbox button{width:100%}
.newface{flex:none;display:flex;flex-direction:column;gap:8px;align-items:stretch;background:var(--surface2);border-radius:16px;padding:12px}
.bigname{justify-content:center;padding:0 14px;min-height:60px;border-width:2px}.bigname input{text-align:center;font-size:22px!important;font-weight:800;min-height:56px}.bigname .yobisuf{font-size:20px}
.addnew{width:100%;border:2px dashed var(--accent)!important;background:var(--surface)!important;color:var(--accent);font-weight:800;display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px;flex:none}
.addnew small{font-weight:400;font-size:12px;color:var(--sub)}
.homeacts{display:grid;grid-template-columns:1.2fr 1fr;gap:8px}.homeacts button{min-height:64px;border-radius:16px;font-size:16px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px}
.homeacts small{display:block;font-size:11px;font-weight:400;color:var(--sub)}.homeacts .hico{font-size:24px}.homeacts button span{text-align:left;line-height:1.25}
.backalbum{align-self:flex-start;min-height:40px;padding:0 4px}
.todo.low .ti{background:#EAF2FB;color:#3D6E9E}
.backprev{display:flex;align-items:center;gap:8px;width:100%;min-height:52px;border-radius:14px;border:1.5px solid var(--accent)!important;background:var(--surface)!important;color:var(--accent);font-weight:800;padding:6px 12px}
.backprev small{display:block;font-size:11px;font-weight:400;color:var(--sub)}.backprev .bpface>*{border-radius:50%!important;width:36px!important;height:36px!important;overflow:hidden}
.backprev.sm{width:auto;min-height:38px;font-size:13px;padding:0 12px}
.ckmode button{flex:1;display:flex;flex-direction:column;align-items:center;min-height:52px;font-weight:800}.ckmode small{font-size:11px;font-weight:400;color:var(--sub)}.ckmode [aria-pressed="true"] small{color:#fff;opacity:.9}
.okbanner{background:#E7F4EC;color:#2E7D63;border-radius:12px;padding:10px 12px;font-weight:700;animation:pop .25s ease}
.trysteps{margin:0;padding-left:1.4em;font-size:13px;color:var(--sub);line-height:1.8}
.modesw{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:var(--surface2);border-radius:14px;padding:4px}
.modesw button{min-height:50px;border:0!important;background:transparent!important;border-radius:11px!important;display:flex;flex-direction:column;align-items:center;font-weight:800;color:var(--sub)}
.modesw button small{font-size:11px;font-weight:400}
.modesw button[aria-pressed="true"]{background:var(--surface)!important;color:var(--accent);box-shadow:0 1px 4px rgba(0,0,0,.1)}
#modepill{margin-left:auto;margin-right:8px}.brand .nm,.brand .nm small{white-space:nowrap}.brandbtn{flex:none}
.mpill{white-space:nowrap;min-height:30px!important;padding:0 12px!important;font-size:12px!important;border-radius:999px!important;border:1px solid var(--line)!important;background:var(--surface)!important;color:var(--sub);font-weight:700}
.mpill.on{background:#FFF1C9!important;border-color:#F2C14E!important;color:#5A4500}
.trybanner{display:flex;align-items:center;gap:8px;background:#FFF1C9;color:#5A4500;border:1px solid #F2C14E;border-radius:12px;padding:6px 6px 6px 12px;font-size:13px;margin-bottom:10px}
.trybanner button{min-height:36px;font-size:13px;padding:0 12px;border-radius:999px}
.agegrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.agegrid button{min-height:52px;font-weight:800;font-size:16px;border-radius:14px}
.newcls{border:2px solid var(--accent)}
.trybox{display:flex;gap:10px;align-items:center;border:1px dashed var(--line);border-radius:14px;padding:12px}.trybox button{flex:none;min-height:44px;border-radius:999px;padding:0 16px}
.aibanner{display:flex;align-items:center;gap:8px;width:100%;background:#EEF3FA!important;border:1px solid #B9CCE4!important;border-radius:14px;padding:10px 12px;color:#2F5D8A}
.aibanner small{display:block;font-size:12px;font-weight:400;color:#4F6B88;margin-top:2px}
.intro-art{display:block;width:240px;max-width:100%;aspect-ratio:1;background-image:url('../img/intro-monkeys.png');background-size:600% auto;background-repeat:no-repeat;clip-path:inset(0 2% 0 6%)}
.intro-art-0{background-position:40% 0}
.intro-art-1{background-position:60% 0}
.intro-art-2{background-position:22% 0;clip-path:inset(0 3% 0 0)}
.introov{position:fixed;inset:0;z-index:90;background:rgba(40,36,30,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.introbox{position:relative;width:100%;max-width:380px;background:var(--surface);border-radius:24px;padding:28px 20px 20px;display:flex;flex-direction:column;align-items:center;gap:12px;animation:pop .25s ease}
.introskip{position:absolute;top:8px;right:8px;font-size:13px;min-height:36px}
.dots3{display:flex;gap:6px}.dots3 i{width:8px;height:8px;border-radius:50%;background:var(--line)}.dots3 i.on{background:var(--accent);width:20px;border-radius:4px}
.rvkidhead{display:flex;gap:12px;align-items:center}
.rvgrid.big{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rvkrow{gap:10px;min-height:64px}.rvmini{display:flex;gap:3px;margin-top:4px}.rvmini>*{width:30px!important;height:30px!important;border-radius:50%!important;overflow:hidden}
.samplepick{display:flex;flex-direction:column;gap:6px;background:#FFF8E6;border:1px solid #F2C14E;border-radius:14px;padding:12px;color:#3F3A39}.samplepick .sub{color:#6E6866}
.atiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.atile{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:8px!important;border-radius:18px!important;min-height:0!important;text-align:left;position:relative}
.atile .acover{position:relative;display:block;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:var(--surface2)}
.atile .acover img{width:100%;height:100%;object-fit:cover;display:block}
.atile .abot{display:block}.atile .alabel,.atile .acount{position:relative;z-index:1}.atile .aico{position:absolute;right:6px;bottom:4px;z-index:0;font-size:26px;line-height:1;pointer-events:none}
.atile .aico:empty{display:none}
.atile .alabel{font-weight:800;font-size:14px;line-height:1.35;padding:2px 2px 0}
.atile .acount{font-size:20px;font-weight:800;color:var(--accent);padding:0 2px}.atile .acount small{font-size:12px;margin-left:2px;color:var(--sub);font-weight:400}
.atile.ng{border:2px solid var(--ng)!important}.atile.ng .acount{color:var(--ng)}.atile.ask{border:2px solid #E0A23A!important}.atile.ok .acount{color:#2E7D63}
.atile .anote{position:absolute;top:12px;right:12px;font-size:10px;background:rgba(0,0,0,.55);color:#fff;border-radius:999px;padding:1px 6px}
.chktile{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:#FFF4CC!important;border:2px solid #F2C14E!important;border-radius:16px;padding:10px 14px;color:#3F3A39}.chktile .sub{color:#6E6866;font-size:12px}
.atiles.one{grid-template-columns:1fr}.atile.big .acover{aspect-ratio:21/9}.atile .asub{font-size:12px;color:var(--sub);padding:0 2px;line-height:1.4}
.bseg button{flex:1;min-height:42px;font-size:13px}.bchips{display:flex;gap:6px;flex-wrap:wrap}.bchips button{min-height:34px;padding:0 12px;border-radius:999px;font-size:13px}.bchips button[aria-pressed="true"]{background:var(--accent);color:#fff;border-color:var(--accent)}
.bhead{display:flex;align-items:center;gap:8px;font-weight:800;font-size:15px}.bhead .sub{font-weight:400;margin-left:auto}
.atiles.small{grid-template-columns:repeat(3,minmax(0,1fr))}.atiles.small .alabel{font-size:12px}.atiles.small .acount{font-size:16px}
.hcwrap{position:relative;border-radius:16px;overflow:hidden;background:#111;touch-action:pan-y}
.hcimg{width:100%;max-height:50vh;object-fit:contain;display:block;margin:0 auto}.hcimg.skip{opacity:.35}
.hcskipmark{position:absolute;inset:auto 0 45% 0;text-align:center;color:#fff;font-weight:900;font-size:22px;text-shadow:0 1px 6px #000}
.hcarrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:64px;border-radius:12px!important;background:rgba(255,255,255,.85)!important;font-size:30px;font-weight:800;color:#333;border:0!important}
.hcarrow.l{left:6px}.hcarrow.r{right:6px}.hcarrow:disabled{opacity:.25}
.hcstrip{display:flex;gap:6px;overflow-x:auto;padding:4px 0}.hct{flex:none;width:56px;height:56px;padding:0!important;border-radius:10px!important;overflow:hidden;position:relative;border:2px solid transparent!important}
.hct img{width:100%;height:100%;object-fit:cover}.hct.on{border-color:var(--accent)!important}.hct.skip img{opacity:.35}.hct i{position:absolute;inset:0;display:grid;place-items:center;color:#D7263D;font-style:normal;font-weight:900;font-size:22px}
.alsec{margin:8px 0 -4px;font-size:15px;color:var(--sub)}
.fcc{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:linear-gradient(135deg,#FFF1F4,#FFF8E1)!important;border:2px solid #F7B9C8!important;border-radius:22px;padding:10px 14px 10px 8px;color:#3F3A39;box-shadow:0 3px 10px rgba(247,185,200,.35)}
.fcc img{width:84px;height:84px;object-fit:contain;flex:none;animation:bob 2.4s ease-in-out infinite}
.fcc b{font-size:16px;font-family:var(--f-disp);display:block;line-height:1.35}.fcc .fsub{display:block;font-size:13px;color:#6E6866;margin-top:2px}.fcc .fsub b{display:inline;font-size:13px;color:#D45C7A}
.fcc .fgo{flex:none;background:#F48FAA;color:#fff;font-weight:800;border-radius:999px;padding:8px 12px;font-size:13px}
.tico{width:26px;height:26px;object-fit:contain}#tabs img[src*="r_find_up"]{width:34px;height:34px;margin:-6px 0 -2px}#tabs .tlab{display:block;margin-top:4px;line-height:1.2}.tabadd .addc img{width:30px;height:30px;object-fit:contain}
.homelinks img{width:44px;height:44px;object-fit:contain}
.atile .aico img{width:46px;height:46px;object-fit:contain;display:block}
.homelinks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.homelinks button{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:72px;border-radius:16px;font-weight:700;font-size:12px;white-space:nowrap;padding:6px 2px!important;letter-spacing:-.02em}.homelinks span{font-size:24px}.homelinks .newb{font-size:9px}
.kidacts{display:flex;gap:8px;flex-wrap:wrap}.kidacts button{min-height:46px;border-radius:999px;padding:0 16px;font-weight:700}
.donecard{display:flex;gap:14px;align-items:center;background:#E7F4EC;border-radius:18px;padding:16px;color:#1F5A3E}.donecard .sub{color:#2E7D63}
.donecard .dk{width:52px;height:52px;border-radius:50%;background:#2E7D63;color:#fff;display:grid;place-items:center;font-size:28px;font-weight:900;flex:none;animation:pop .3s ease}
.rabbit{display:flex;align-items:flex-end;gap:6px;background:none!important;border:0!important;padding:0!important;min-height:0!important;width:100%;text-align:left}
.rabbit img{width:84px;height:84px;object-fit:contain;flex:none;animation:bob 2.4s ease-in-out infinite}
.rabbit .bubble{position:relative;flex:1;background:#FFF8E6;border:2px solid #F2C14E;border-radius:18px;padding:12px 14px;margin-bottom:18px;color:#3F3A39;font-size:15px;line-height:1.6;display:flex;flex-direction:column;gap:2px;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.rabbit .bubble::before{content:"";position:absolute;left:-12px;bottom:14px;border:8px solid transparent;border-right:12px solid #F2C14E}
.rabbit .bubble::after{content:"";position:absolute;left:-8px;bottom:15px;border:7px solid transparent;border-right:10px solid #FFF8E6}
.rabbit .bubble small{font-size:12px;color:#6E6866}.rabbit .tapme{align-self:flex-end;font-weight:800;color:#C77700;font-size:13px}
.rabbit.ng .bubble{background:#FDEEEC;border-color:var(--ng)}.rabbit.ng .bubble::before{border-right-color:var(--ng)}.rabbit.ng .bubble::after{border-right-color:#FDEEEC}.rabbit.ng .tapme{color:var(--ng)}
.rabbit.ok .bubble{background:#E7F4EC;border-color:#7CC4A0}.rabbit.ok .bubble::before{border-right-color:#7CC4A0}.rabbit.ok .bubble::after{border-right-color:#E7F4EC}.rabbit.ok .tapme{color:#2E7D63}
.tstrip{display:flex;flex-wrap:wrap;gap:6px;align-items:center;background:#FFF8E6;border:1px solid #F2C14E;border-radius:14px;padding:8px 10px;color:#3F3A39}
.tstrip.done{background:var(--surface);border-color:var(--line)}
.tstrip .tlabel{font-size:12px;font-weight:800;color:#8A6200;margin-right:2px}.tstrip.done .tlabel{color:var(--sub)}
.tchip{min-height:34px!important;padding:0 10px!important;border-radius:999px!important;font-size:13px!important;background:#fff!important;border:1px solid var(--line)!important;color:#3F3A39!important}
.tchip.ask{border-color:#E0A23A!important}.tchip.ng{border-color:var(--ng)!important;color:var(--ng)!important}
.rvhead{display:flex;gap:12px;align-items:center}
.rvgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rvface{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px!important;border-radius:16px!important;border:2px solid #4DAA8A!important;background:rgba(77,170,138,.06)!important;min-height:0!important}
.rvface>.fimg{width:100%!important;aspect-ratio:1;height:auto!important;border-radius:12px}
.rvface .rvl{font-size:13px;font-weight:800;color:var(--sub)}.rvface .rvl.ok{color:#2E7D63}
.rvface.wrong{border-color:#D7263D!important;background:rgba(215,38,61,.08)!important}.rvface.wrong>.fimg{opacity:.45}.rvface.wrong .rvl{color:#D7263D}
.rvx{position:absolute;top:22%;left:50%;transform:translateX(-50%);font-style:normal;font-size:56px;line-height:1;color:#D7263D;font-weight:900;text-shadow:0 0 6px #fff}
.candgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.cand{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px!important;border-radius:14px!important;border:2px dashed #E0A23A!important;background:#FFFBF0!important;min-height:0!important;font-size:13px;font-weight:800;color:#8A6A00}
.cand>.fimg{width:100%!important;aspect-ratio:1;height:auto!important;border-radius:10px}
.candgrid.round{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 6px}
.candgrid.round .cand{position:relative;border:0!important;background:none!important;padding:0!important;gap:4px;font-size:12px;color:#8A6A00}
.candgrid.round .cand>.fimg{border-radius:50%;border:3px dashed #E0A23A;box-sizing:border-box}
.candgrid.round .cand.ok>.fimg{border:3px solid #4DAA8A}.candgrid.round .cand.ok{color:#2E7D63}
.candgrid.round .cand.next>.fimg{border:3px solid #F48FAA;box-shadow:0 0 0 4px rgba(244,143,170,.3)}
.candgrid.round .cand .ck{position:absolute;top:0;right:4px;width:22px;height:22px;border-radius:50%;background:#4DAA8A;color:#fff;font-style:normal;font-size:13px;display:grid;place-items:center}
.candgrid.round .cand span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.cand.ok{border:2px solid #4DAA8A!important;background:rgba(77,170,138,.08)!important;color:#2E7D63}
.skipface+.skipface{margin-top:-4px}@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(244,143,170,0)}50%{box-shadow:0 0 0 8px rgba(244,143,170,.55)}}
.pulse{animation:pulse .7s ease-in-out 3}
@media (hover:none){.pconly{display:none}}
.todobox1{background:#FFF4F2;border:2px solid #E57A8A;border-radius:16px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.todobox1>b{color:#C8283F;font-size:15px;margin-bottom:2px}
.tbline{background:none!important;border:0!important;padding:4px 0!important;min-height:0!important;text-align:left;font-size:14px;color:#3F3A39;display:flex;justify-content:space-between;gap:8px;width:100%}
.tbline span{color:#C8283F;font-weight:800;white-space:nowrap}
.kbar{display:block;width:80%;height:6px;border-radius:99px;background:#EEE9E2;overflow:hidden;margin:2px auto 0}.kbar i{display:block;height:100%;background:#4DAA8A;border-radius:99px}
.kbar.few i{background:#E0A23A}.kbar.many i{background:#5B8DD6}
.kbal{display:block;font-size:11px;font-weight:800;min-height:15px;line-height:15px}.kbal.few{color:#C07A00}.kbal.many{color:#3F6DB5}
.perrow{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.perbtn{min-height:34px!important;padding:0 12px!important;border-radius:999px!important;font-size:13px}
.perbtn[aria-pressed="true"]{background:#3F7F86!important;color:#fff!important;border-color:#3F7F86!important}
.nonebar{background:#FFF8E6;border:1px solid #F2C14E;border-radius:12px;padding:8px 12px;font-size:13px;color:#5A4500}.nonebar.ok{background:#EEF8F3;border-color:#9FD3BD;color:#2E7D63}
.pickrow{padding:10px!important;display:flex;flex-direction:column;gap:8px}.pickrow.isng{border:2px solid #E57A8A}
.pickgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.pickph{position:relative;padding:0!important;border-radius:10px!important;overflow:hidden;aspect-ratio:1;min-height:0!important;border:0!important;background:#EEE9E2}
.pickph img{width:100%;height:100%;object-fit:cover;display:block}.pickph span{position:absolute;right:4px;bottom:4px;font-size:11px;font-weight:800;background:rgba(255,255,255,.9);border-radius:999px;padding:1px 7px;color:#3F3A39}
.pickph.empty{display:grid;place-items:center;font-size:12px;color:var(--sub)}
#fback{position:fixed;right:max(16px,calc(50% - 264px));bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:19;opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity .2s,transform .2s}
#app::after{content:"";display:block;height:48px}
#fback.show{opacity:1;transform:none;pointer-events:auto}
#fback button{display:inline-flex;align-items:center;gap:4px;min-height:40px;padding:0 14px 0 10px;border-radius:999px;background:rgba(255,255,255,.94);border:1px solid var(--line);color:#3F7F86;font-weight:700;font-size:13px;box-shadow:0 2px 10px rgba(0,0,0,.12)}
.newb{display:inline-block;margin-left:6px;font-size:10px;font-weight:900;letter-spacing:.04em;color:#fff;background:#F48FAA;border-radius:999px;padding:1px 6px;vertical-align:middle;line-height:1.5}
.newb.abs{position:absolute;top:4px;right:4px;margin:0}
.plctrl{display:flex;flex-direction:column;gap:6px}
.pdate{position:absolute;left:4px;top:4px;font-style:normal;font-size:11px;font-weight:800;background:rgba(255,255,255,.9);border-radius:999px;padding:0 6px;color:#3F3A39}
#scrub{position:fixed;right:2px;top:120px;bottom:calc(140px + env(safe-area-inset-bottom,0px));width:30px;z-index:18;touch-action:none;cursor:ns-resize}
#scrub[hidden]{display:none}
#scrub .strack{position:absolute;right:8px;top:0;bottom:0;width:4px;border-radius:99px;background:rgba(63,127,134,.15)}
#scrub .sthumb{position:absolute;right:2px;width:16px;height:28px;border-radius:99px;background:#3F7F86;box-shadow:0 1px 4px rgba(0,0,0,.25);opacity:.75}
#scrub .sbub{position:absolute;right:26px;white-space:nowrap;font-size:13px;font-weight:800;background:#3F7F86;color:#fff;border-radius:10px;padding:4px 10px;opacity:0;transition:opacity .2s;pointer-events:none;margin-top:-1px}
#scrub.act .sbub{opacity:1}#scrub.act .sthumb{opacity:1}
.skipface{width:100%;background:#F4F1EC!important;border:1px dashed #BDB6AD!important;color:#6E6866!important;font-size:14px}
.rvcard{gap:0!important;padding:6px!important}
.rvnot{position:absolute;top:2px;right:2px;width:48px;height:48px;min-height:0!important;padding:0!important;border-radius:50%!important;background:#fff!important;border:2px solid #E57A8A!important;color:#C8283F!important;font-weight:900;font-size:24px;line-height:1;display:grid;place-items:center;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.rvx2{position:absolute;top:8px;right:8px;font-size:11px;font-weight:800;background:rgba(255,255,255,.92);color:#D7263D;border-radius:999px;padding:2px 8px;border:1px solid #F1B5BD}
.rvhint{text-align:center;font-size:12px;color:var(--sub);background:var(--bg);padding:4px 0}
.rvbar{position:sticky;bottom:84px;z-index:5;background:var(--bg);padding:8px 0;display:flex;flex-direction:column;gap:4px}
.shprev{text-align:center;font-weight:800;color:var(--accent);min-height:22px}
.chainbar{background:#eef6f1;color:#2f6b4f;border-radius:12px;padding:8px 12px;font-size:14px}
.donebar{background:var(--ok);color:#fff;font-weight:800;border-radius:12px;padding:10px 14px;text-align:center;animation:pop .25s ease}
.donebar.soft{background:var(--ok-bg);color:var(--ok);font-weight:700;font-size:13px;animation:none}
@keyframes pop{from{transform:scale(.92);opacity:.4}to{transform:none;opacity:1}}
.cgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ccard{flex-direction:column;gap:4px;padding:6px;min-height:0;border-radius:14px;border:2px dashed var(--line);background:var(--surface)}
.ccard.low{border-color:var(--ask);background:var(--ask-bg)}
.ccard .fimg{width:100%!important;height:auto!important;aspect-ratio:1;border-radius:10px}
.cname{font-size:13px;font-weight:700;line-height:1.3;text-align:center;word-break:break-all}
.bub.guess{background:rgba(255,255,255,.92)!important;color:#2c2c2c;border:1.5px dashed #555}
.bub.guess::after{border-top-color:#555!important}
.urow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 0;border-bottom:1px solid var(--line)}
.urow:last-child{border-bottom:0}
.urow span{font-size:14px;font-weight:700;min-width:150px}
.urow .seg button{min-height:36px;font-size:13px}
.urow .seg button.no[aria-pressed="true"]{background:#D7263D;border-color:#D7263D;color:#fff}
.ngtag2{background:#D7263D;color:#fff;font-size:12px;font-weight:800;border-radius:999px;padding:2px 10px}
.cls-new{border:2px dashed var(--accent)!important;background:var(--surface)}
.sbar{display:flex;gap:4px}.sbar div{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;color:var(--sub)}.sbar i{font-style:normal;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--surface2);font-weight:700;font-size:13px}.sbar .on i{background:var(--accent);color:#fff}.sbar .on{color:var(--accent);font-weight:700}.sbar .done i{background:#4DAA8A;color:#fff}
.sukids{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:6px}.sukid{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border-radius:12px;border:1px solid var(--line);font-size:13px}.sukid b{font-size:12px;color:var(--ask)}.sukid.some b{color:var(--accent)}.sukid.ok{border-color:#4DAA8A;background:rgba(77,170,138,.08)}.sukid.ok b{color:#2E7D63}
.rvtitle{padding:4px 2px 0}.rvtitle h2{margin:0 0 4px;font-size:20px;line-height:1.45;font-family:var(--f-disp);color:#3F3A39}.rvtitle .sub{font-size:13px;color:#6E6866}
.usehero{color:#3F3A39;background:#FFF4D6;border:2px solid #F2C14E;border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:8px}
.usehero .sub{color:#6E6866}.usehero .uq{font-size:19px;line-height:1.5;font-family:var(--f-disp)}.usehero .uq b{color:#C0392B}
.ulegend{display:grid;grid-template-columns:1fr 1fr;gap:6px}.ulegend div{background:var(--bg);border-radius:10px;padding:6px 8px;font-size:11px;line-height:1.4;color:var(--sub)}.ulegend b{display:block;font-size:13px;color:var(--fg)}
.utr .mada{white-space:nowrap;min-height:26px!important;font-size:10.5px!important;padding:0 7px!important;margin-top:3px;align-self:flex-start;border-radius:999px!important;color:var(--sub)}
.utr .mada.on{background:#555!important;color:#fff!important;border-color:#555!important}
.utr.later{opacity:.85}.latermsg{grid-column:2 / -1;font-size:12px;color:var(--sub);background:var(--bg);border-radius:10px;padding:8px}
.okline{color:#2E7D63;font-weight:700}
.utable{display:flex;flex-direction:column;gap:4px}.uth,.utr{display:grid;grid-template-columns:minmax(96px,1.4fr) repeat(4,minmax(0,1fr));gap:4px;align-items:center}.uth span{font-size:11px;color:var(--sub);text-align:center;font-weight:700}.utr .un{font-weight:700;font-size:14px;display:flex;flex-direction:column}.utr .un small{color:var(--ng);font-size:11px}.utr button{min-height:40px;padding:0;border-radius:10px;border:1px solid var(--line);background:var(--surface);font-size:18px;color:var(--sub)}.utr button.y{color:#2E7D63;border-color:#4DAA8A;background:rgba(77,170,138,.1)}.utr button.n{color:#fff;background:#D7263D;border-color:#D7263D}
.brandbtn{display:flex;align-items:center;gap:inherit;background:none;border:0;padding:0;min-height:0;cursor:pointer;color:inherit;font:inherit}
.homebtn{min-height:40px;font-size:14px;font-weight:700;background:rgba(255,255,255,.92)!important;color:var(--accent)!important;border-radius:999px;padding:0 14px 0 8px;gap:2px}
.todocard{border:2px solid var(--yel);gap:8px}
.todobox{background:#FFF4CC;border:2px solid #F2C14E;border-radius:20px;padding:12px;display:flex;flex-direction:column;gap:8px;color:#3F3A39}
.todobox .sub{color:#6E6866}
.tbhead{display:flex;align-items:center;gap:10px}.tbhead img{width:68px;height:68px;object-fit:contain;flex:none;animation:bob 2.4s ease-in-out infinite}
.tbtitle{font-size:19px;font-weight:800;font-family:var(--f-disp);display:flex;align-items:center;gap:8px}
.tbbadge{background:#D7263D;color:#fff;border-radius:999px;font-size:14px;padding:1px 10px;font-family:inherit}.tbbadge.ok{background:#2E7D63}
.tbsay{font-size:13px;color:#7A5A00;font-weight:700;margin-top:2px}
.tbrows{display:flex;flex-direction:column;gap:6px}.tbrows .todo{background:#fff;border-color:#F2D68A}.tbrows .todo:first-child{border:2px solid #E0A23A;box-shadow:0 2px 6px rgba(224,162,58,.25)}
.todobox.must{background:#FDEEEC;border-color:var(--ng)}.todobox.must .tbsay{color:var(--ng)}.todobox.must .tbrows .todo{border-color:#F1B5BD}.todobox.must .tbrows .todo:first-child{border:2px solid var(--ng);box-shadow:none}
.notes{display:flex;flex-direction:column;gap:4px;border-top:1px dashed rgba(0,0,0,.12);padding-top:8px}.nhead{font-size:12px;color:#6E6866;font-weight:700}
.note1{text-align:left;min-height:38px!important;background:rgba(255,255,255,.75)!important;border:1px solid rgba(0,0,0,.06)!important;border-radius:12px!important;font-size:13px;padding:6px 10px!important;color:#3F3A39}
.quietrow{padding:10px 14px}
.todobox.done{background:#E7F4EC;border-color:#7CC4A0}.todobox.done .tbsay{color:#2E7D63}
.todo{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:10px 12px;border-radius:14px;border:1px solid var(--line);background:var(--surface);min-height:56px}
.todo .ti{width:34px;height:34px;flex:none;border-radius:50%;display:grid;place-items:center;font-weight:800;background:var(--surface2);color:var(--accent)}
.todo.ask .ti{background:var(--ask);color:#fff}.todo.ng .ti{background:var(--ng);color:#fff}
.todo .tn{font-weight:800;font-size:18px;color:var(--fg)}.todo .ta{color:var(--sub);font-size:20px}
.todochip{display:inline-block;background:var(--yel);color:#3a2c00;font-weight:800;font-size:13px;border-radius:999px;padding:2px 10px}
.undobar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(132px + env(safe-area-inset-bottom,0px));z-index:60;display:flex;align-items:center;gap:10px;width:min(520px,calc(100% - 24px));background:#2f3a3d;color:#fff;border-radius:14px;padding:8px 8px 8px 14px;box-shadow:0 6px 18px rgba(0,0,0,.25);font-size:14px}
.undobar button{background:var(--yel);color:#3a2c00;border:0;border-radius:999px;font-weight:800;min-height:38px;padding:0 16px;white-space:nowrap}
.ccard.done{opacity:.9;border-style:solid}
.ngwarn{border:2px solid var(--ng);background:var(--ng-bg,#fdecee);color:var(--ng);border-radius:12px;padding:10px 12px;font-size:14px;line-height:1.5}
.ngwarn br+*{color:var(--fg)}
.steps2{display:flex;gap:6px}.steps2 div{flex:1;display:flex;align-items:center;gap:6px;padding:8px 10px;border-radius:12px;background:var(--surface2);font-size:13px;color:var(--sub)}.steps2 b{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--line);color:var(--fg);font-size:12px;flex:none}.steps2 .on{background:#fff4d6;color:var(--fg);font-weight:700;outline:2px solid var(--yel)}.steps2 .on b{background:var(--yel)}.steps2 .ok{color:#2E7D63}.steps2 .ok b{background:#4DAA8A;color:#fff}
.ccard .cname small{display:block;font-size:10px;font-weight:600;color:var(--ask)}
.ckprog{display:flex;flex-direction:column;gap:6px;font-size:14px}.ckprog b{color:var(--accent);font-size:16px}
.ckcard{align-items:stretch;gap:12px}.ckface{display:flex;justify-content:center}.ckface .fimg{border-radius:20px}
.ckguess{display:flex;align-items:center;justify-content:center;gap:14px}.ckname{font-size:30px;font-weight:800;font-family:var(--f-disp)}.ckname span{color:var(--accent);margin-left:2px}
.ckyn{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ckyn button{min-height:64px;font-size:22px;font-weight:800;border-radius:18px}
.ckyn .yes{background:#4DAA8A;color:#fff;border:0}.ckyn .no{background:var(--surface);color:var(--fg);border:2px solid var(--line)}
.ckq{text-align:center;margin:0;font-size:24px}
.ckgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}
.ckchoice{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;border-radius:16px;border:1px solid var(--line);background:var(--surface);min-height:0;font-weight:700}
.ckchoice small{font-size:10px;color:var(--sub);font-weight:600}.ckchoice small.ngs{color:var(--ng)}
/* 名前は1人ずつ */
.namehelp{background:var(--ok-bg);color:var(--fg);border-radius:12px;padding:10px 12px;font-size:14px;line-height:1.6}
.namehelp b{color:var(--ok)}
.nameadd{flex-wrap:nowrap}.nameadd input{min-width:0}.nameadd button{flex:none}
/* ゴミ箱 */
.trashbtn{min-height:44px;min-width:44px;padding:0;border-radius:50%;border:1px solid transparent;background:transparent;color:var(--sub)}
.trashbtn:hover,.trashbtn:focus-visible{color:var(--ng);border-color:var(--line);background:var(--surface)}
.trashico{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--surface2);color:var(--sub);flex:none}
.trashgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (min-width:520px){.trashgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.trashitem{display:flex;flex-direction:column;gap:4px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:6px}
.trashitem .ph{aspect-ratio:4/3;border-radius:10px;background:#E9EEEC}.trashitem .ph img{object-fit:contain}
.askname{border:2px solid var(--yel);background:#FFF8E3;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.trycard{border:2px solid var(--accent)}
.namebox{display:flex;align-items:center;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding-right:12px;min-width:0}
.namebox:focus-within{outline:3px solid var(--accent);outline-offset:1px}
.namebox input{border:0!important;outline:0;background:transparent;min-width:0;flex:1}
.nameprev{min-height:20px;margin-top:-4px}.nameprev b{color:var(--accent)}
.yobisuf{font-weight:800;color:var(--accent);font-size:16px;white-space:nowrap}
.yobirow{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.yobibtn{min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-weight:700}
.yobibtn[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
.stepper{display:flex;align-items:center;gap:8px}.stepper button{width:48px;height:48px;min-height:0;padding:0;border-radius:50%;font-size:22px;font-weight:800}.stepper input{width:96px;text-align:center;font-size:20px;font-weight:700;font-family:var(--f-body);border:1px solid var(--line);border-radius:12px;min-height:48px;background:var(--surface);color:var(--fg)}.stepper input::placeholder{font-size:14px;font-weight:400;color:var(--sub);opacity:.8}.stepper input::-webkit-outer-spin-button,.stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.stepper input{-moz-appearance:textfield;appearance:textfield}.stepper span{font-weight:700}
.namecount{display:flex;flex-direction:column;gap:6px;background:var(--surface2);border-radius:12px;padding:10px 12px}.namecount .nth{font-size:22px;font-family:var(--f-disp);color:var(--accent)}
.numav{background:var(--accent)!important;color:#fff;font-size:15px}
.donesum>div{display:flex;flex-direction:column;gap:4px;padding-bottom:12px;border-bottom:1px solid var(--line)}.donesum>div:last-child{border-bottom:0;padding-bottom:0}.donesum .warn{color:var(--ask)}.donesum .okc{color:var(--ok)}.todo-s{background:var(--surface2);border-radius:10px;padding:8px 10px;font-size:14px}
.askcard{border:2px solid var(--yel);box-shadow:0 0 0 4px rgba(248,190,41,.25)}
.kfwrap{position:relative}.pnav{display:flex;align-items:center;gap:8px}.pnav button{flex:1;min-height:44px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--accent);font-weight:700}.pnav button:disabled{opacity:.35}.pnav .sub{min-width:56px;text-align:center}[data-pswipe]{touch-action:pan-y;user-select:none;-webkit-user-select:none}[data-pswipe] img{-webkit-user-drag:none;pointer-events:none}.kfarr{position:absolute;top:calc(50% - 18px);z-index:2;width:32px;height:32px;min-height:0;padding:0 0 3px;border:1px solid var(--line);border-radius:50%;background:var(--surface);box-shadow:0 2px 6px rgba(0,0,0,.18);font-size:22px;font-weight:700;color:var(--accent);display:none;align-items:center;justify-content:center}.kfarr.l{left:-4px}.kfarr.r{right:-4px}.pwrap .kfarr{width:40px;height:40px;top:calc(50% - 5px);font-size:26px}.pwrap .kfarr.l{left:6px}.pwrap .kfarr.r{right:6px}.kfarr.show{display:flex}
.kfil{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}
.kfil button{flex-shrink:0;min-height:36px;border-radius:999px;padding:0 12px 0 4px;font-size:13px;gap:5px;white-space:nowrap}
.kfil button:first-child{padding-left:12px}
.kfil button[aria-pressed="true"]{background:var(--accent);color:#fff;border-color:var(--accent)}
.kfil button.isng{border-color:#D7263D;color:#D7263D}
.kfil button.isng[aria-pressed="true"]{background:#D7263D;color:#fff}
.ntags .ngtag b{background:#fff;color:#D7263D;border-radius:4px;padding:0 3px;font-size:.9em;line-height:1.3}
.mihon.off{opacity:.45}.mihon-x{position:absolute;top:4px;right:4px;z-index:2;width:22px;height:22px;opacity:.85;min-height:0;padding:0;border-radius:50%;border:1px solid var(--line,#ddd);background:#fff;color:#888;font-size:15px;line-height:1;display:grid;place-items:center;box-shadow:0 1px 3px rgba(0,0,0,.15)}
.zoom{position:fixed;inset:0;z-index:90;background:rgba(20,30,35,.88);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px}.zoom img{max-width:100%;max-height:78vh;border-radius:14px}.zoom button{background:#fff;border-radius:999px;padding:10px 28px;border:0;font-weight:700}.mihon.off img{filter:grayscale(1)}
.cls-off{opacity:.45;filter:grayscale(.6);cursor:not-allowed;box-shadow:none}
.friends{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:13px;color:var(--sub);padding:0 4px}
.friends button{min-height:30px;padding:0 2px;border:0;background:none;font-size:13px;color:var(--sub);gap:4px}
.tabs button{font-size:10px}
.edstyle button{display:inline-flex;align-items:center;gap:4px}
.stamprow{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 8px;scroll-snap-type:x proximity}
.stampgrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.stampgrid .stampbtn{width:auto;min-height:58px!important;padding:4px 0!important;gap:1px}.stampgrid .stampbtn .sic{height:28px}.stampgrid .stampbtn .sic svg{width:26px;height:26px}.stampgrid .stampbtn .sl{font-size:10px}.stampgrid .blurdot{width:22px;height:22px}
.stampbtn{flex:none;width:68px;min-height:74px!important;padding:6px 2px!important;display:flex;flex-direction:column;align-items:center;gap:2px;border-radius:14px!important;scroll-snap-align:start}
.stampbtn .sic{height:36px;display:grid;place-items:center}.stampbtn .sic svg{width:34px;height:34px}
.stampbtn .sl{font-size:11px;white-space:nowrap}
.stampbtn[aria-pressed="true"]{border:2px solid var(--accent)!important;background:var(--surface2)!important}
.edsliders{display:flex;flex-direction:column;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.slrow{display:grid;grid-template-columns:6.6em auto 1fr auto;align-items:center;gap:8px;font-weight:700;font-size:14px}
.slrow .sm{font-size:11px;color:var(--sub);font-weight:400}.slrow input{width:100%;accent-color:var(--accent);min-height:32px}
.blurdot{display:inline-block;width:18px;height:18px;border-radius:50%;background:radial-gradient(circle,#c9b8a8 0,#e8ddd2 55%,transparent 72%);filter:blur(1px)}
.edbox{position:relative;width:100%;border-radius:12px;overflow:hidden;background:var(--surface2);touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair}
.edbox>img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.eit{position:absolute;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;cursor:grab;touch-action:none;display:flex;align-items:center;justify-content:center;container-type:inline-size}
.eit.stamp svg{width:100%;height:100%;display:block;filter:drop-shadow(0 1px 2px rgba(0,0,0,.12))}
.ehandle{position:absolute;transform:translate(-50%,-50%);width:32px;height:30px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:16px;font-weight:800;box-shadow:0 1px 4px rgba(0,0,0,.25);cursor:nesw-resize;touch-action:none;z-index:3}
.edelx{position:absolute;transform:translate(-50%,-50%);width:28px;height:26px;border-radius:50%;background:#fff;color:#D7263D;border:1px solid #D7263D;display:grid;place-items:center;font-size:13px;font-weight:800;cursor:pointer;z-index:3}
.eitbar{position:absolute;transform:translateX(-50%);display:flex;gap:4px;z-index:4;background:rgba(255,255,255,.95);border-radius:999px;padding:3px;box-shadow:0 1px 6px rgba(0,0,0,.2)}
.eitbar button{min-height:30px!important;padding:0 10px!important;font-size:12px!important;border-radius:999px!important}
.edundo button{min-height:40px;padding:0 14px;border-radius:999px}.edundo button:disabled{opacity:.4}
.edpen{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.edbox.penmode{cursor:crosshair}.edbox.penmode .eit{pointer-events:none}
.edtool button{flex:1;min-height:44px;font-weight:800}
.eit img{width:100%;height:100%;border-radius:50%;object-fit:cover;background:transparent;pointer-events:none}
.eit.blur{backdrop-filter:blur(var(--bl,10px)) brightness(1.08);-webkit-backdrop-filter:blur(var(--bl,10px)) brightness(1.08);background:rgba(255,248,240,.25);-webkit-mask-image:radial-gradient(circle,#000 50%,transparent 70%);mask-image:radial-gradient(circle,#000 50%,transparent 70%)}
.eit.sel{outline:3px dashed var(--yel);outline-offset:2px}
.eit.blur.sel{-webkit-mask-image:none;mask-image:none;border:3px dashed var(--yel)}
.balsum{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.balsum>div{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:10px 12px;display:flex;flex-direction:column}
.balsum b{font-family:var(--f-disp);font-size:30px;line-height:1.15}
.balsum small{font-size:13px;margin-left:2px}
.balsum .lowbox{border:2px solid var(--ask);background:var(--ask-bg)} .balsum .lowbox b{color:var(--ask)}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:var(--sub)}
.legend span{display:inline-flex;align-items:center;gap:5px}
.sw{display:inline-block;width:12px;height:12px;border-radius:3px}
.sw.solo,.sg.solo{background:#3F6A75} .sw.friend,.sg.friend{background:#6F9CA7} .sw.group,.sg.group{background:#A9C7CD}
.sw.goal{width:0;height:14px;border-left:2px dashed var(--fg);border-radius:0}
.bal2{display:flex;flex-direction:column;gap:2px}
.b2row{display:grid;grid-template-columns:88px minmax(0,1fr) 54px;align-items:center;gap:8px;min-height:46px;background:none;border:0;border-radius:10px;padding:2px 4px;text-align:left;width:100%}
.b2row:hover{background:var(--surface2)}
.b2row .nm{display:flex;align-items:center;gap:6px;min-width:0;font-weight:700;font-size:14px}
.b2row .nm span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.b2row.low .nm span{color:var(--ask)}
.trk{position:relative;height:20px;display:flex;gap:2px;background:var(--surface2);border-radius:4px;overflow:visible}
.sg{display:block;height:100%} .sg:first-child{border-radius:4px 0 0 4px} .sg:last-of-type{border-radius:0 4px 4px 0}
.trk .goal{position:absolute;top:-5px;bottom:-5px;border-left:2px dashed var(--fg);opacity:.75}
.b2row .num{text-align:right;font-size:12px;line-height:1.2}
.b2row .num b{font-size:16px;font-family:var(--f-disp)}
.b2row .num small{display:block;color:var(--ask);font-weight:700}
.b2row .num small.ok{color:var(--accent)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .sw.solo,:root:not([data-theme="light"]) .sg.solo{background:#9FC3CC}:root:not([data-theme="light"]) .sw.group,:root:not([data-theme="light"]) .sg.group{background:#3F6A75}}

/* Two clear start choices also fit narrow phone headers. */
@media(max-width:480px){.brand .in{gap:6px;padding:8px}.brand .by{font-size:9px;letter-spacing:.15em}#modepill{margin-right:0}.mpill{white-space:normal;max-width:96px;line-height:1.4;padding:4px 8px!important}}

/* Always-visible sample / own-class switch. */
#modepill{margin:0}.experience-switch{max-width:560px;margin:0 auto;padding:0 12px 8px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.experience-switch button{flex-direction:column;gap:2px;min-height:54px;font-size:15px;border:2px solid var(--line);background:var(--surface)}.experience-switch button small{font-size:11px;font-weight:400}.experience-switch button[aria-pressed="true"]{background:#fff1c9;border-color:#d99b00;color:#493800}.experience-switch button[aria-pressed="true"]::before{content:"✓ 選択中";font-size:10px}.brand .by{margin-left:auto}

/* Sample is an optional header entry; onboarding explains the app. */
#modepill{margin-left:auto}.brand .by{margin-left:0}

.mode-status{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px}.sample-mode{background:#fff6dc}.sample-mode .brand{background:#fff1c9;border-bottom:3px solid #d99b00}.sample-mode .mode-status b{color:#7a4b00}.introbox{max-height:calc(100dvh - 32px);overflow:auto}.introbox>*{flex-shrink:0}

/* Compact readable guidance and a second, in-flow return control. */
.bottom-back{display:flex;justify-content:flex-start;margin:18px 0 8px}.bottom-back button{min-height:44px;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:8px 16px}
.introbox h2{text-wrap:balance}.introbox .sub{text-wrap:pretty;line-height:1.65!important}.note,.wsub,.card>.sub{line-height:1.65;text-wrap:pretty;overflow-wrap:anywhere}

.photo-tools{margin-top:12px;margin-bottom:24px}.photo-tools h2{margin:0 0 12px;font-size:18px}.photo-tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.photo-tools-grid button{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-width:0;min-height:108px;padding:14px;text-align:left;white-space:normal;border-radius:18px;background:var(--surface);border:1px solid var(--line)}.photo-tools-grid img{width:56px;height:56px;object-fit:contain;flex-shrink:0}.photo-tools-grid span{min-width:0}.photo-tools-grid b{display:block;font-size:16px;line-height:1.4}.photo-tools-grid small{display:block;margin-top:5px;font-size:12px;line-height:1.5;color:var(--sub);font-weight:400;text-wrap:pretty}.photo-tools-grid button:hover{border-color:var(--accent)}
@media(max-width:480px){.photo-tools-grid{gap:10px}.photo-tools-grid button{flex-direction:column;align-items:flex-start;gap:6px;padding:12px;min-height:142px}.photo-tools-grid img{width:44px;height:44px}.photo-tools-grid b{font-size:15px}.photo-tools-grid small{font-size:12px}}

/* A single class hub replaces the duplicate bottom navigation. */
.tabs{display:none!important}.app{padding-bottom:32px}.class-nav{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:4px 0 8px}.class-location{min-width:0}.class-location h1{margin:0;font-size:26px}.class-settings{min-width:44px;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:50%;background:var(--surface)}.class-return{display:flex;align-items:center;gap:4px;background:transparent;border:0;padding:0;min-height:36px;color:var(--accent);font-size:14px}.current-location{display:block;font-size:14px;color:var(--sub);margin:2px 0 8px}.class-switch{font-size:12px;min-height:32px;padding:0!important;margin-bottom:12px}.class-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 8px}.class-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:132px;padding:12px 6px;border:1px solid var(--line);border-radius:20px;background:var(--surface);white-space:normal}.class-actions button:first-child{background:#e7f4ee;border-color:#a7cdbb}.class-actions img{height:48px;width:48px;object-fit:contain}.class-actions b{font-size:15px;line-height:1.4}.class-actions small{font-size:12px;color:var(--sub)}#fback{bottom:calc(18px + env(safe-area-inset-bottom,0px))}.bottom-back{margin-top:24px}.photo-tools-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.photo-tools-grid button{flex-direction:column;align-items:flex-start;gap:6px;padding:12px;min-height:136px}.photo-tools-grid img{width:40px;height:40px}.photo-tools-grid small{font-size:11px}.photo-tools-grid b{font-size:14px}@media(max-width:480px){.class-actions{gap:7px}.class-actions b{font-size:13px}.class-actions button{min-height:122px}.photo-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.class-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.class-actions button{min-height:118px}.kid-list-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.kid-list-heading h2{font-size:16px;margin:0}.kid-list-heading button{font-size:12px;min-height:40px}.slrow output{min-width:38px;font-size:12px}

.edbox .crop-guide{position:absolute;pointer-events:none;z-index:15;border:2px dashed white;box-shadow:0 0 0 100vmax rgba(0,0,0,.55)}.edbox:has(.crop-guide){overflow:hidden}

.batch-entry{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left}[data-a="batchother"]{flex-wrap:wrap;gap:4px}[data-a="batchother"].primary .sub{color:inherit}

.manual-photo{position:relative;display:block;width:100%;padding:0!important;border:0;overflow:hidden;background:var(--surface);border-radius:12px;cursor:crosshair}.manual-photo img{display:block;width:100%;height:auto}.manual-box{position:absolute;pointer-events:none;border:3px solid #15806b;box-shadow:0 0 0 2px white;border-radius:8px}

/* Photo-side navigation stays next to the photograph. */
.photo-slider{position:relative}
.photo-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:40px;min-width:40px;height:48px;min-height:48px;padding:0;border-radius:24px;background:rgba(255,255,255,.96);color:var(--accent);box-shadow:0 2px 8px #0002;font-size:18px}
.photo-arrow.prev{left:-50px}.photo-arrow.next{right:-50px}
.photo-arrow:disabled{opacity:.35;pointer-events:none}
@media(max-width:800px){.photo-arrow{width:36px;min-width:36px;height:44px;min-height:44px}.photo-arrow.prev{left:4px}.photo-arrow.next{right:4px}}

.quick-face-surface{position:relative}.hover-add-plus{display:none;position:absolute;pointer-events:none;z-index:6;transform:translate(-50%,-50%);width:28px;height:28px;line-height:26px;text-align:center;border-radius:50%;background:#fff;color:#246b76;font-size:24px;box-shadow:0 1px 6px #0005}
.quick-face-surface,.quick-face-surface .tw,.quick-face-surface .tw>img{cursor:crosshair}.quick-face-surface:hover .hover-add-plus.on{display:block}.quick-face-surface button{cursor:pointer}

/* Monkey presentation. All functional modules are inherited from rabbit production. */
:root{
  /* ミッケ（3びきのサル）の色：こげ茶の線・クリーム・ピンク／水色／黄色／きみどり */
  --bg:#FFF9F0; --surface:#FFFFFF; --surface2:#FBF0E2; --line:#F0E1CF;
  --fg:#4A3428; --sub:#7D6858; --accent:#B4673F; --mk:#5A3A2A; --accent-fg:#FFFFFF;
  --mk-g:#8CC63F; --mk-p:#F29BB5; --mk-b:#3EA6E8; --cream:#FFF9F0; --g1:#FDE3EA; --g2:#FFF1CC; --g3:#E3F2CF; --yel:#F8C93A; --yel-fg:#4A3428;
  --ask:#A9620F; --ask-bg:#FBEEDB; --ok:#2B7552; --ok-bg:#E4F2DF; --ng:#B0392C; --ng-bg:#F8E3E0;
  --shadow:0 1px 2px rgba(90,58,42,.06),0 4px 14px rgba(90,58,42,.07);
  --f-disp:"M PLUS Rounded 1c","Zen Maru Gothic","Hiragino Maru Gothic ProN",sans-serif;
  --f-body:"BIZ UDPGothic","Hiragino Sans","Yu Gothic",sans-serif;
}

/* ---- 3びきのサルの下のバー ---- */
.tabs nav{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px}
.tabs .ztab{min-height:76px;padding:4px 0 2px;gap:0;font-size:11px;border-radius:16px;display:flex;flex-direction:column;align-items:center}
.ztab .zface{width:48px;height:48px;border-radius:50%;overflow:hidden;background:var(--zbg);border:2px solid transparent;display:block;transition:transform .15s,filter .15s,opacity .15s;filter:saturate(.55);opacity:.75}
.ztab .zface img{width:100%;height:100%;object-fit:contain;display:block;transform:scale(1.12)}
/* 上：やること（大きく）／下：サルの名前（小さく） */
.ztab .zdo{order:2;font-family:var(--f-disp);font-weight:800;font-size:13px;color:var(--sub);line-height:1.3;margin-top:3px}
.ztab .zname{order:3;font-size:10px;color:var(--sub);line-height:1.2;opacity:.8}
.ztab.z1{--zc:#F4A9B8;--zbg:#FDEEF1;--zt:#C9476F}.ztab.z2{--zc:#7DB9EE;--zbg:#EAF4FD;--zt:#2378BC}.ztab.z3{--zc:#F2C94C;--zbg:#FDF6DD;--zt:#9A6B00}
.tabs .ztab[aria-current="page"]{background:transparent}
.tabs .ztab[aria-current="page"] .zface{filter:none;opacity:1;border-color:var(--zc);transform:scale(1.1)}
.tabs .ztab[aria-current="page"] .zdo{color:var(--zt)}
.tabs .ztab[aria-current="page"] .zname{color:var(--zt);opacity:1}
.tabs .ztab .zface{order:1}
.tabs .ztab .badge{top:0;left:calc(50% + 14px)}
.hdrgear{min-height:40px;width:40px;padding:0;border-radius:50%;border:0;background:transparent;margin-left:4px}
.hdrgear img{width:26px;height:26px;object-fit:contain}
.hdrgear{flex:none}
@media (max-width:440px){.brand .by{letter-spacing:.08em;font-size:10px}.brand .in{gap:6px}#modepill{margin-right:2px}}
@media (max-width:360px){.brand .by{display:none}}
.hdrgear[aria-current="page"]{background:var(--surface2)}

/* ---- ミッケ版：見出しの帯はパステル＋こげ茶の文字 ---- */
.grad{color:var(--fg);background:var(--surface)!important}
.clsband{border:1px solid var(--line);box-shadow:var(--shadow)}
.clsband h1{color:var(--mk)}
.clsband .sub{color:var(--sub)}
.clsband .ghost{color:var(--fg);border:1px solid var(--line);background:rgba(255,255,255,.7)}
.hero .y{color:#D9577E}
.hero .plus{color:var(--mk-p)}
.hero .ring2{border-color:rgba(242,155,181,.6)}
.mk-hero.mk-logo{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;background:#fff}
.mk-hero.mk-logo .logo{width:100%;max-width:420px;height:auto;display:block;border-radius:16px}
.zseg{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:var(--surface2);border-radius:999px;padding:4px}
.zseg button{min-height:40px;border:0;border-radius:999px;background:transparent;font-weight:700;font-size:14px;color:var(--sub)}
.zseg button[aria-pressed="true"]{background:var(--surface);color:var(--fg);box-shadow:0 1px 3px rgba(0,0,0,.12)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .ztab{--zt:var(--fg)!important}}
:root[data-theme="dark"] .ztab{--zt:var(--fg)!important}


.tabs:not([hidden]){display:block!important}.tabs[hidden]{display:none!important}
body:has(.tabs:not([hidden])) .app{padding-bottom:140px}
body:has(.tabs:not([hidden])) #fback{bottom:calc(112px + env(safe-area-inset-bottom,0px))}
.class-settings{display:none}.hdrgear[hidden]{display:none!important}
.brand .in{flex-wrap:wrap}.brandbtn{flex-shrink:0}.brand .by{margin-left:auto}.hdrgear{margin-left:0}
.homelinks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.homelinks button{display:flex;flex-direction:column;white-space:normal;font-size:12px;padding:8px 4px;gap:5px}
.homelinks img{width:48px;height:48px;object-fit:contain}
.fcc{background:#EAF4FD!important;border-color:#7DB9EE!important;color:#4A3428;box-shadow:var(--shadow)}
.fcc .fgo{background:#2378BC}.fcc .fsub b{color:#2378BC}
.grad{background:var(--surface)!important}.bar i,.fill{background:var(--mk-b)}
.tabs button[aria-current="page"] svg{background:var(--accent)}.busybar em{background:rgba(255,255,255,.5)}
@media(max-width:440px){.brand .by{display:none}.brand .in{gap:4px}.hdrgear{width:36px;min-width:36px}.tabs .ztab .zdo{font-size:12px}}
