/* 공통 기본 모양 (신형 기준) — tokens.css, header.css 다음에 불러옵니다.
   모든 규칙이 :where() 안에 있어 우선순위가 0 입니다. 앱 안쪽 CSS가 항상 이기므로
   앱이 따로 꾸민 곳은 그대로 두고, 꾸미지 않은 곳에만 공통 모양이 깔립니다.
   - 버튼 : 기본은 투명(리셋). <html data-btn="chip"> 인 앱은 모든 버튼이 칩(알약) 모양.
   - 입력창·선택창·글상자 : 칩 배경 + 얇은 테두리 + 모서리 --r-ctl.
   - 키보드 포커스 : 2px 링.
   - 칩 : <html data-chip> 인 앱은 .chip 의 높이·여백·글자·모서리가 모두 같음(tokens.css 의 --chip-*).
   - 섹션 제목 : .sec 는 작은 회색 라벨. 하단 시트 .sheet 는 윗모서리 --r-sheet. */
:where(*){box-sizing:border-box;-webkit-tap-highlight-color:transparent}
:where(body){margin:0;background:var(--bg);color:var(--fg);font-family:var(--font)}
:where(button){font:inherit;color:inherit;border:0;background:none;padding:0;cursor:pointer}
:where(html[data-btn="chip"] button){padding:7px 14px;border-radius:var(--r-pill);background:var(--chip);font-size:13px;font-weight:600}
:where(:is(button,a,input,select,textarea):focus-visible){outline:2px solid var(--ring);outline-offset:2px}
:where(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color],[type=hidden],[type=button],[type=submit]),select,textarea){
  font:inherit;font-size:16px;color:var(--fg);background:var(--chip);
  border:1px solid var(--line);border-radius:var(--r-ctl);padding:10px 14px;min-width:0;color-scheme:light dark}

:where(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color],[type=hidden],[type=button],[type=submit]),select){height:var(--ctl-h);padding-top:0;padding-bottom:0}
html[data-chip] .chip{display:inline-flex;align-items:center;gap:6px;flex:none;height:var(--chip-h);padding:0 var(--chip-px);border-radius:var(--r-pill);font-size:var(--chip-fs);font-weight:600;line-height:1}
:where(.sec){margin:var(--sec-mt) 0 var(--sec-mb);font-size:var(--sec-fs);font-weight:700;color:var(--mute)}
:where(.sheet){border-radius:var(--r-sheet) var(--r-sheet) 0 0}
