/* 我的 (home.html) and 設定 (me.html), on top of site.css. Working pages: calm, one column on phones, a main and a side column on desktop. */
.mine .foot{margin-top:clamp(40px,6vw,72px)}
.sh{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0 0 12px;font-size:clamp(21px,2vw,26px);line-height:1.35}
.sh span{font-family:var(--ui);font-size:15px;font-weight:600;color:var(--ink-soft);font-variant-numeric:tabular-nums}
.sh3 span{font-weight:400;color:var(--ink-soft)}
.empty-line{display:flex;align-items:center;gap:8px;margin:0;font-size:15px;color:var(--ink-soft)}
.empty-line .ic{width:18px;height:18px}
.sh3{margin:20px 0 10px;font-size:17px;font-weight:700;font-family:var(--ui)}
.sub{margin:-6px 0 12px;font-size:15px;line-height:1.65;color:var(--ink-soft)}
.more{margin:8px 0 0}

/* 我的: the place, then what changed */
.me-head{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:clamp(24px,5vw,56px);align-items:center;padding:clamp(20px,3vw,36px) 0 clamp(24px,4vw,40px);border-bottom:1px solid var(--line)}
.checkline{display:flex;align-items:flex-start;gap:6px}
.checkline .ic{width:16px;height:16px;margin-top:3px}
.greet{margin:0 0 4px;font-size:15px;color:var(--ink-soft)}
.me-head h1{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;font-size:clamp(36px,4vw,54px);line-height:1.2}
.also{font-family:var(--ui);font-size:16px;font-weight:600;color:var(--ink-soft)}
.statement{margin:12px 0 8px;font-family:var(--round);font-weight:900;font-size:clamp(22px,2.2vw,28px);line-height:1.4}
.statement .sep{margin:0 6px;color:var(--line-strong)}
.statement em{font-style:normal;color:var(--cobalt-deep)}
.kids{margin-top:16px}
.kids .chip .ic{width:18px;height:18px}
.memap{display:block;border-radius:var(--r-m);overflow:hidden;border:1px solid var(--line)}
.memap:hover{border-color:var(--line-strong)}

.me-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:clamp(32px,5vw,56px);align-items:start;padding-top:clamp(24px,4vw,40px)}
.me-main>section+section,.me-side>section+section{margin-top:clamp(32px,5vw,48px)}
.stack{display:grid;gap:12px}
.me-line{padding-top:20px;border-top:1px solid var(--line)}
.me-line .btn{margin-top:14px}
.quiet-state{display:flex;align-items:center;gap:20px;padding:12px 0 16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.quiet-state img{width:110px;height:auto;flex:none}
.quiet-state p{margin:6px 0 0;font-size:15px;line-height:1.7;color:var(--ink-soft)}
.me-side .ev{padding:12px 0}
.me-side .ev-t{font-size:15px}

/* 設定: a list of five sections beside the open one (phones: the list first, then the section). Rows, not paragraphs. */
.set-wrap{max-width:980px}
.set-wrap h1{margin:clamp(20px,3vw,36px) 0 clamp(12px,2vw,20px)}
.set-shell{display:grid;grid-template-columns:260px minmax(0,1fr);gap:clamp(24px,4vw,56px);align-items:start;min-height:360px;padding-bottom:24px}
.set-nav{position:sticky;top:88px;display:grid;gap:2px}
.set-id{margin:0 0 10px;padding:0 12px 14px;border-bottom:1px solid var(--line)}
.set-id b{display:block;font-size:18px;line-height:1.4}
.set-id span{display:block;font-size:14px;line-height:1.5;color:var(--ink-soft);overflow-wrap:anywhere}
.set-item{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:0 12px;border:0;border-radius:var(--r-s);background:none;font-family:var(--ui);font-weight:700;font-size:17px;line-height:1.3;color:var(--ink);text-align:left;text-decoration:none;cursor:pointer}
.set-item .ic{flex:none;width:22px;height:22px;color:var(--ink-soft)}
.set-item span{flex:1}
.set-item .ic:last-child:not(:first-child){display:none;width:18px;height:18px;color:var(--line-strong)}
.set-item:hover{background:var(--sky-faint)}
.set-item[aria-current=page]{background:var(--sky);color:var(--cobalt-deep)}
.set-item[aria-current=page] .ic{color:var(--cobalt-deep)}
/* 登出 ends the list, alone and navy: never beside another button, never red (red is 刪除帳號) */
.set-out{margin-top:10px;min-height:56px;border-top:1px solid var(--line);border-radius:0 0 var(--r-s) var(--r-s)}
.set-out,.set-out .ic{color:var(--ink)}
.set-pane{min-width:0}
.set-pane:focus{outline:none}
.set-pane>.sh{margin-bottom:6px}
.set-back{display:none}
.set-sample{margin-top:14px}
.set-sample summary{display:inline-flex;align-items:center;min-height:44px;font-weight:700;color:var(--cobalt-deep);cursor:pointer}
.set-sample .msgs{margin-top:6px}
.setrow{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;padding:8px 0;list-style:none}
.setrow+.setrow,.set-field+.setrow{border-top:1px solid var(--line)}
.setb{min-width:0}
.setb b{display:block;font-weight:700;font-size:16px;line-height:1.5}
.setb span{display:block;font-size:15px;line-height:1.55;color:var(--ink-soft)}
.set-list{margin:0 0 12px;padding:0}
.set-pane .sub{margin:8px 0 12px}
/* a child or a saved district: its picture, its name, then what you can do with it on the right edge */
.setrow.who{justify-content:flex-start;gap:12px}
.setrow.who .setb{flex:1}
.row-acts{display:flex;flex:none;gap:8px}
.row-acts .btn,.setrow.who>.btn{white-space:nowrap}
.set-add{margin:10px 0 14px}
/* an empty section invites: a large line (and for 孩子 the three stages drawn), then the one thing to do */
.set-invite{margin:10px 0 14px}
.set-invite b{display:block;font-family:var(--ui);font-weight:700;font-size:19px;line-height:1.45}
.set-invite span{display:block;margin-top:4px;font-size:15px;line-height:1.55;color:var(--ink-soft)}
.kid-trio{display:flex;gap:8px;margin-bottom:12px}
.set-invite+.set-add{margin-top:0}
.set-go{margin:0 0 14px}
.set-go .ic{width:18px;height:18px}
/* 地區: the chosen place and its one button over the map (phones: the button under the map, so the map never jumps under a finger) */
.area-pick{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name add" "stage stage";align-items:center;gap:0 12px;margin-top:16px}
.area-pick .pick-name{grid-area:name}
.pick-add{grid-area:add;margin-bottom:10px;white-space:nowrap}
.area-pick .pick-stage{grid-area:stage}
.area-pick .pick-svg{aspect-ratio:16/11;max-height:min(460px,62svh)}
.set-field{padding:0 0 14px}
.set-field label b{display:block;margin-bottom:6px;font-size:15px}
.set .ic{width:18px;height:18px}
.msgs{display:grid;gap:8px;padding:14px;border-radius:var(--r-m);background:var(--sky)}
.msg{margin:0;padding:10px 14px;border-radius:var(--r-m) var(--r-m) var(--r-m) var(--r-xs);background:#fff;font-size:15px;line-height:1.6;max-width:30em}
.msg b{display:block}
/* 設定・帳號: forms open under their row; buttons wrap on phones */
.set-btns{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 12px}
.set-form{display:grid;gap:6px;padding:4px 0 16px}
.set-form label b{display:block;margin-top:8px;font-size:15px}
.set-form .set-btns{margin-top:10px}
.pw{display:flex;gap:8px}
.pw .field{flex:1;min-width:0}
.pw-eye{flex:none;min-width:64px;min-height:50px;padding:0 12px;border:0;border-radius:var(--r-s);background:#fff;box-shadow:inset 0 0 0 1.5px var(--line-strong);font:inherit;font-size:15px;font-weight:600;color:var(--cobalt-deep);cursor:pointer}
.pw-eye:hover{background:var(--sky-faint)}
.del-box{margin:0 0 8px;padding:16px;border-radius:var(--r-m);box-shadow:inset 0 0 0 1.5px #F0B8AF}
.del-box .sh3{margin:0 0 4px}
.del-box p{margin:0 0 8px;font-size:15px;line-height:1.65}
.acct-wait{margin:0;min-height:60px;display:flex;align-items:center}
.tog[disabled]{opacity:.45;cursor:not-allowed}
.kidform{display:grid;gap:18px;margin-top:14px}
.kid-fields{display:grid;gap:18px;align-content:start;min-width:0}
.kidform b{display:block;margin-bottom:6px;font-weight:700}
/* the district chooser's map (pickMap in core.js): the chosen place named large, then the map that flies in to it */
.kid-map{min-width:0}
.pick-name{display:flex;align-items:center;gap:8px;min-height:44px;margin:0 0 10px;font-family:var(--round);font-weight:900;font-size:clamp(22px,2.4vw,28px);line-height:1.3;letter-spacing:.01em;color:var(--ink-soft)}
.pick-name.on{color:var(--ink)}
.pick-name .ic{flex:none;width:26px;height:26px;color:var(--cobalt)}
.pick-name:not(.on){font-family:var(--ui);font-weight:600;font-size:16px}
.pick-stage{position:relative;border-radius:var(--r-m);overflow:hidden;background:var(--sky-faint);border:1px solid var(--line)}
.pick-svg{display:block;width:100%;aspect-ratio:4/3}
.pick-back{position:absolute;left:10px;top:10px;background:#fff}
.pick-svg path{vector-effect:non-scaling-stroke;stroke-linejoin:round}
.pick-svg .pc{fill:var(--amber-wash);stroke:#fff;stroke-width:1.2;cursor:pointer;transition:fill .15s ease}
.pick-svg .pc:hover{fill:#FFE6AE}
.pick-svg .pc.cur{fill:none;stroke:none;pointer-events:none}
.pick-svg .pt{fill:none;stroke:none;pointer-events:none}
.pick-svg .pt.in{fill:#FFE6AE;stroke:#fff;stroke-width:1;pointer-events:auto;cursor:pointer;transition:fill .15s ease}
.pick-svg .pt.in:hover{fill:var(--amber-line)}
/* already followed: blue at every zoom, and not pickable (a tap goes through to the county under it) */
.pick-svg .pt.saved{fill:var(--cobalt);stroke:var(--cobalt);stroke-width:1.5;pointer-events:none}
.pick-svg .pt.in.saved{stroke:#fff;stroke-width:1}
.pick-svg .pt.on,.pick-svg .pt.on:hover{fill:var(--amber);stroke:var(--amber-deep);stroke-width:2}
.pick-pin{opacity:0;transition:opacity .2s ease;pointer-events:none}
.pick-pin.down{opacity:1}
.pick-pin ellipse{fill:var(--amber-deep);opacity:.5}
.pick-pin path{fill:var(--cobalt);stroke:none}
.pick-pin circle{fill:#fff}
@media (min-width:720px){
  .sheet.wide{width:min(940px,94vw)}
  .sheet.wide .kidform{grid-template-columns:minmax(0,340px) minmax(0,1fr);column-gap:32px}
  .sheet.wide .kid-map{grid-column:2;grid-row:1 / span 2}
  .sheet.wide .kidform .acts{grid-column:1;align-self:end}
  .sheet.wide .pick-svg{aspect-ratio:1/1;max-height:min(520px,62svh)}
}
.kidform .acts{display:flex;gap:10px}
.kidform .acts .btn{flex:1}

@media (max-width:960px){
  .me-head{grid-template-columns:1fr}
  .memap{order:2;max-width:420px}
  .me-grid{grid-template-columns:1fr}
}
@media (max-width:759px){
  .set-shell{grid-template-columns:1fr;gap:0;min-height:0}
  .set-nav{position:static;gap:0}
  .set-id{padding:0 4px 14px}
  .set-item{min-height:58px;padding:0 4px;border-radius:0;border-bottom:1px solid var(--line)}
  .set-item .ic:last-child:not(:first-child){display:block}
  .set-item[aria-current=page]{background:none;color:var(--ink)}
  .set-item[aria-current=page] .ic{color:var(--ink-soft)}
  .set-out{margin-top:0;border-top:0}
  .in-sec h1,.in-sec .set-nav{display:none}
  .set-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:10px 0 2px;font-weight:700;color:var(--cobalt-deep);text-decoration:none}
  .set-back .ic{width:18px;height:18px}
  .set-shell[aria-hidden=true] .set-pane{display:none}
}
@media (max-width:560px){
  .area-pick{grid-template-columns:minmax(0,1fr);grid-template-areas:"name" "stage" "add"}
  .area-pick .pick-svg{aspect-ratio:4/3}
  .pick-add{width:100%;margin:10px 0 0}
  .setrow.col{flex-direction:column;align-items:flex-start;gap:6px}
  .setrow.who{flex-wrap:wrap;row-gap:10px}
  .setrow.who .row-acts{width:100%;padding-left:60px}
  .quiet-state{align-items:flex-start}
  .quiet-state img{width:76px}
}

/* a row's control never breaks onto two lines */
.set-pane .setrow>.btn{white-space:nowrap;flex:none}
