/* 실시간 통역 자막 앱의 스타일. 입장·관리자는 밝은 벤토, 자막은 어둡게 간다.
 *
 * design/design (1).md 의 벤토 스펙을 따르되 자막 화면만 어둠을 유지한다.
 * 자막은 어두운 회의실에서 흘끗 읽고, 식사 중 테이블에 놓인 폰이고, 프로젝터로 쏜다.
 * 흰 배경으로 바꾸면 이 앱의 핵심 기능이 나빠진다.
 *
 * 두 팔레트는 body[data-screen] 으로 갈린다. 시트·요약은 body 직속으로 붙으므로
 * 여기에 토큰을 걸어야 같이 어두워진다.
 */

/* 구글 CDN 에서 받아오지 않는다. 앱이 오프라인이면 글꼴이 늦게 뜨고, 개인정보
   처리방침에 없는 제3자 통신이 매번 일어난다. 가변 폰트라 파일 하나로 400~700 을 덮는다. */
@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  src: url('fonts/inter-latin.woff2') format('woff2');
}

:root {
  /* 밝은 화면 — 입장·홈·관리자. 검정과 흰색, 그 사이 회색뿐이다 */
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --line: #e4e4e7;
  --text: #000000;
  /* 문서의 회색(#a1a1aa)은 흰 바탕에서 본문으로 읽기엔 흐리다. 읽히는 회색을 따로 둔다 */
  --muted: #52525b;
  --dim: #a1a1aa;
  --accent: #000000;     /* 강조는 색이 아니라 검정이다 */
  --accent-ink: #ffffff; /* 검정 위에 얹는 글자 */
  /* 색은 하나만 남긴다 — 경고. 한도 소진과 종료처럼 되돌리기 어려운 것에만 쓴다 */
  --live: #d92d20;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lift: 0 8px 24px rgba(0, 0, 0, 0.08);

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;

  color-scheme: light;
}

/* 어두운 화면 — 자막. 밝은 화면을 그대로 뒤집는다 */
body[data-screen='talk'] {
  --bg: #000000;
  --surface: #18181b;
  --surface-2: #27272a;
  --line: #27272a;
  --text: #ffffff;
  --muted: #a1a1aa;
  --dim: #71717a;
  --accent: #ffffff;
  --accent-ink: #000000;
  --live: #ff5a6e;
  --shadow: none;
  --shadow-lift: none;

  color-scheme: dark;
}

/* 자막 글자 크기 3단계. 폰을 손에 들 때와 테이블에 놓을 때 필요한 크기가 다르다 */
:root { --line-scale: 0.82; }
body[data-size='small'] { --line-scale: 0.68; }
body[data-size='large'] { --line-scale: 1; }

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  /* Inter 에는 CJK 글리프가 없다. 스택 앞에 두면 라틴만 Inter 로 잡히고
     한글·가나는 뒤의 기기 폰트로 떨어진다 — 글자마다 폴백하기 때문이다. */
  font: 400 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
        'Apple SD Gothic Neo', 'Hiragino Sans', 'Noto Sans KR', 'Noto Sans JP', sans-serif;
  overscroll-behavior: none;
  /* 배경을 서서히 바꾸면 그 200ms 동안 글자색만 먼저 바뀌어 밝은 배경에 밝은 글자가 스친다.
     화면 전환은 한 번에 끊는다. */
}

.hidden { display: none !important; }

/* ======================= 로그인 화면 · 홈 화면 ======================= */

/* 둘 다 폰 한 화면 안에서 위·가운데·아래로 나뉜다. 스크롤 없이 끝나야 한다. */
.screen {
  display: flex;
  flex-direction: column;
  margin-inline: auto;
  /* 넓은 화면에서도 폰 폭을 유지한다. 정할 것이 언어 하나뿐이라 넓힐 이유가 없다. */
  max-width: 480px;
  min-height: 100dvh;
  /* 앱으로 띄우면 상태바가 화면 맨 위를 덮는다. 브라우저에서는 주소창이 밀어내 줘서
     안 보이던 문제다 — 시뮬레이터에서 로고가 시계에 가려서 드러났다. */
  padding:
    max(20px, calc(env(safe-area-inset-top) + 12px))
    max(20px, env(safe-area-inset-right))
    max(24px, calc(env(safe-area-inset-bottom) + 12px))
    max(20px, env(safe-area-inset-left));
  width: 100%;
}

/* 로그인 화면 — 할 수 있는 일이 로그인뿐이라 나머지를 전부 걷어냈다 */

.signin-top { display: flex; justify-content: flex-end; }

.signin-hero {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.mark.mark-xl { height: 84px; width: 120px; }

.signin-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 18px 0 0;
}

.signin-hero .kicker { margin-top: 6px; }
.signin-hero .tagline { margin: 22px 0 0; max-width: 300px; }

.signin-actions { display: grid; gap: 10px; }
.signin-actions .hint { margin: 0; text-align: center; }
.signin-actions .note { margin: 0; text-align: center; }

/* 최하단 링크. 가이드와 개인정보를 나란히 둔다 */
.foot-links {
  column-gap: 18px;
  display: flex;
  /* 320px 폭에 일본어 두 링크가 같이 안 들어간다. 줄을 바꿔야 낱말 중간에서
     끊기지 않는다 — 한 줄에 우겨넣으면 '프라이버시 폴리시' 가 두 동강 난다. */
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
  row-gap: 6px;
  text-align: center;
}

/* guide.css 가 낱개 링크에 준 여백을 여기서는 flex 로 대신한다 */
.foot-links .guide-link { margin-top: 0; }
.foot-links .guide-link + .guide-link { margin-left: 0; }

/* 홈 화면 — 위(계정) · 가운데(언어) · 아래(시작) */

.home-bar { align-items: center; display: flex; gap: 10px; }
.home-bar .mark { height: 30px; width: 43px; }
.wordmark { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }

/* 계정 진입점. 이니셜을 붙여 '내 것' 으로 읽히게 한다 */
.my-btn {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  margin-left: auto;
  min-height: 44px;
  padding: 0 14px 0 6px;
  position: relative;
}

.my-btn:active { background: var(--surface-2); }

.my-avatar {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: var(--accent-ink);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  width: 32px;
}

/* 무료 시간을 다 쓰면 점이 붙는다. 시작해봐야 거절당하므로 누르기 전에 알아야 한다 */
.my-btn.alert::after {
  background: var(--live);
  border: 2px solid var(--bg);
  border-radius: 50%;
  content: '';
  height: 11px;
  position: absolute;
  right: 8px;
  top: 3px;
  width: 11px;
}

/* 가운데. 이 화면에서 정할 것은 언어뿐이라 위쪽에 붙여 둔다 */
.home-mid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.home-mid .note { text-align: center; }

/* 내 언어가 위, 상대 언어가 아래. 폰을 상대에게 돌려주는 방향과 같다 */
.lang-row { display: grid; gap: 8px; }
.lang-role { color: var(--muted); font-size: 13px; font-weight: 600; }

/* 셋뿐이라 감추지 않고 다 펼친다. 칸은 늘 같은 너비로 나눈다 */
.lang-opts {
  display: grid;
  gap: 8px;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
}

.lang-opt {
  align-content: center;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 4px;
  justify-items: center;
  min-height: 92px;
  padding: 12px 6px;
  transition: border-color 200ms ease-out;
}

.lang-opt i { font-size: 24px; font-style: normal; line-height: 1; }
/* 일본어·영어 이름이 한국어보다 길다. 칸을 넘기느니 줄을 바꾼다 */
.lang-opt { font-size: 14px; font-weight: 600; line-height: 1.25; text-align: center; }
.lang-opt[aria-pressed="true"] {
  /* 칠하지 않고 테두리로 말한다. 테두리 굵기를 바꾸면 글자가 밀리므로 안쪽에 한 겹 더 얹는다 */
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* 시작 버튼은 고른 것 바로 아래에 붙인다 — 사이를 비워두면 화면이 휑하다.
   링크만 바닥으로 내려보낸다 */
.home-bottom {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 28px;
}

.home-bottom .foot-links { margin-top: auto; }

/* 남은 시간. 시작 버튼 바로 위에 둔다 — 누르기 전에 읽는 값이다 */
.quota-line {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
  min-height: 18px;
  text-align: center;
}

.quota-line.gone { color: var(--live); font-weight: 600; }

/* 좁은 화면에서는 제목과 언어 드롭다운이 한 줄에 다 안 들어간다.
 * 줄을 바꿔 내려보낸다 — 안 그러면 드롭다운이 화면 밖으로 밀려난다. */
.hero {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 10px;
}

.hero-text { min-width: 0; }

/* 내 언어. 본문을 비우려고 우상단에 뒀지만, 닫혀 있어도 국기가 보여 찾을 수 있다 */
.site-lang { flex: none; margin-left: auto; }

.site-lang select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  min-height: 44px;
  padding: 0 12px;
}

.site-lang select:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.mark {
  color: var(--text);
  flex: none;
  height: 44px;
  /* 로고를 길게 누르면 진단 화면이 열린다(개발용). iOS 가 길게 누르기를
     텍스트 선택·복사 메뉴로 가로채지 않게 막는다. */
  -webkit-touch-callout: none;
  user-select: none;
  width: 63px;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  margin: 4px 0 0;
  text-transform: uppercase;
}

.tagline {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 28px;
}

/* 벤토. 폰에서는 한 줄, 넓어지면 비대칭 2열로 갈린다 */
.bento {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}

@media (min-width: 720px) {
  .bento { grid-template-columns: 1.15fr 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  padding: 20px;
}

.card-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

/* 입력 */

.field { display: block; }
.field + .field,

.field > span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.field input,
.field select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font: inherit;
  min-height: 52px;
  padding: 0 14px;
  width: 100%;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.note, .hint {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin: 10px 0 0;
}

.hint { min-height: 20px; }

/* 언어 선택 — 국기는 이모지지만 기능이다. 읽지 못하는 화면에서 자기 언어를 찾는 단서다 */
.ui-lang {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.ui-lang button {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 200ms ease-out, background 200ms ease-out;
}

.ui-lang button {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 6px;
  justify-content: center;
  min-height: 74px;
  padding: 10px 4px;
  text-align: center;
}

.ui-lang button i { font-size: 22px; font-style: normal; line-height: 1; }

.ui-lang button[aria-pressed='true'] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--text);
}

.ui-lang button:active { transform: translateY(-1px); }

/* 버튼 */

.primary {
  background: var(--accent);
  border: 0;
  border-radius: var(--r-sm);
  color: var(--accent-ink);
  cursor: pointer;
  font: 600 17px/1 Inter, -apple-system, 'Noto Sans KR', 'Noto Sans JP', sans-serif;
  min-height: 60px;
  transition: box-shadow 200ms ease-out, transform 200ms ease-out;
  width: 100%;
}

.primary:active { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
/* 흐리게만 하면 초록이 남아 눌릴 것처럼 보인다. 회색으로 바꿔 잠긴 걸 분명히 한다. */
.primary:disabled {
  background: var(--surface-2);
  box-shadow: none;
  color: var(--dim);
  cursor: not-allowed;
  transform: none;
}

.ghost {
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  flex: none;
  font: inherit;
  font-size: 12px;
  padding: 7px 12px;
  transition: background 200ms ease-out;
}

.ghost:active { background: var(--surface-2); }

/* ============================ 자막 화면 ============================ */

#talk {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  margin-inline: auto;
  max-width: 960px;
  width: 100%;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
}

.icon-btn {
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--accent);
  cursor: pointer;
  flex: none;
  height: 34px;
  padding: 0;
  width: 46px;
}

.icon-btn svg { height: 100%; width: 100%; }
.icon-btn:active { background: var(--surface); }

.timer {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.topbar .timer { flex: none; }

/* 자막 목록 */

.feed {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  padding: 8px 20px 24px;
  -webkit-overflow-scrolling: touch;
}

/* justify-content: flex-end 를 쓰면 내용이 넘칠 때 위쪽이 잘린 채 스크롤이 닿지 않는다.
   첫 줄에 margin-top:auto 를 주면 짧을 땐 아래에 붙고 길어지면 정상적으로 스크롤된다.
   안내 카드가 DOM 상 첫 자식이라 :first-child 가 아니라 :first-of-type 이어야 한다. */
.feed > .line:first-of-type { margin-top: auto; }

.line { flex: none; }

.line-head {
  color: var(--live);
  font-size: 12px;
  margin-bottom: 6px;
}

/* 발표 화면에서 언어를 여러 개 켜면 여기에 언어당 한 줄씩 쌓인다.
 * 나란히가 아니라 세로로 쌓는다 — 가로로 나누면 한 줄에 들어가는 글자가 반으로 줄어
 * 프로젝터에서 줄바꿈만 늘어난다. */
.line-rows {
  display: flex;
  flex-direction: column;
  gap: calc(6px * var(--line-scale));
}

.line-main {
  font-size: calc(19px * var(--line-scale));
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  word-break: break-word;
}


.line-sub {
  color: var(--dim);
  font-size: calc(13px * var(--line-scale));
  margin-top: 6px;
  word-break: break-word;
}

/* 마지막 줄을 크게 키우던 것을 걷어냈다.
 *
 * 크게 뜨는 줄은 거의 항상 '아직 번역 안 된' 줄이라 읽을 게 없었고, 번역이 도착할 즈음엔
 * 이미 다음 줄이 커져 있었다. 크기는 모두 같게 두고 진하기로만 최근 줄을 구분한다. */
.line:last-child .line-main { font-weight: 700; }
.line:not(:last-child) { opacity: 0.5; }
.line:nth-last-child(2) { opacity: 0.72; }

.line-main.pending { color: var(--muted); }

/* 번역이 끝내 실패한 줄. 원문만 남았다는 걸 보이게 한다 */
.line.untranslated .line-main { border-left: 2px solid var(--live); padding-left: 10px; }

/* 하단 조작부 */

.controls {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.meter {
  background: var(--surface);
  border-radius: 999px;
  height: 4px;
  overflow: hidden;
  transition: height 200ms ease-out;
  width: 100%;
}

/* 마이크 버튼을 없앴으므로 "지금 잡히는 중"은 미터가 알린다 */
body[data-live='true'] .meter { height: 7px; }
body[data-live='true'] .meter-fill { background: var(--live); }

/* 청강하는 사람은 말하지 않으므로 레벨 미터가 필요 없다 */

/* 눈금 1/3 지점이 발화로 인정되는 선이다. 목소리가 잡히는지 눈으로 확인할 수 있다 */
.meter-fill {
  background: linear-gradient(90deg, var(--dim) 0%, var(--dim) 32%, var(--accent) 33%);
  display: block;
  height: 100%;
  transition: width 80ms linear;
  width: 0;
}

.status { color: var(--dim); font-size: 12px; margin: 0; min-height: 16px; text-align: center; }

.control-row { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); width: 100%; }

.chunky {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
  font: 600 16px/1 Inter, -apple-system, 'Noto Sans KR', 'Noto Sans JP', sans-serif;
  min-height: 64px;
  padding: 0 8px;
  transition: background 200ms ease-out;
}

.chunky:active { background: var(--surface-2); }
.chunky.danger { color: var(--live); }

body[data-size='small'] #sizeBtn { font-size: 15px; }
body[data-size='medium'] #sizeBtn { font-size: 20px; }
body[data-size='large'] #sizeBtn { font-size: 26px; }

/* 입장 직후 안내. 어차피 예열에 2~3초가 걸리고 그동안 화면이 빈다 */

.primer {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--muted);
  margin-top: auto;
  padding: 18px 20px;
}

.primer-state { color: var(--dim); font-size: 13px; margin: 0 0 12px; }
.primer.is-ready .primer-state { color: var(--accent); }
.primer ul { list-style: none; margin: 0; padding: 0; }
.primer li { font-size: 15px; line-height: 1.5; padding-left: 18px; position: relative; }
.primer li + li { margin-top: 8px; }
.primer li::before { color: var(--accent); content: '·'; left: 4px; position: absolute; }

/* ============================ 시트 ============================ */

.sheet {
  align-items: flex-end;
  background: rgba(4, 8, 14, 0.6);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 300;
}

.sheet-body {
  background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: grid;
  gap: 10px;
  max-height: 84dvh;
  overflow-y: auto;
  padding: 22px 20px max(22px, env(safe-area-inset-bottom));
  width: min(560px, 100%);
}

.sheet-body button {
  align-items: center;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 12px;
  min-height: 60px;
  padding: 0 18px;
  text-align: left;
}

.sheet-body button i { font-size: 20px; font-style: normal; }
.sheet-body button[aria-pressed='true'] { border-color: var(--accent); }

/* 대화 요약 */

.summary-body { gap: 16px; }
.summary-title { font-size: 20px; font-weight: 700; margin: 0; }
.summary-text { color: var(--muted); margin: 0; }
.summary-timeline { display: grid; gap: 12px; }

.summary-item { padding-left: 16px; position: relative; }
.summary-item::before {
  background: var(--accent);
  border-radius: 50%;
  content: '';
  height: 7px;
  left: 0;
  position: absolute;
  top: 8px;
  width: 7px;
}
.summary-item b { display: block; font-size: 15px; font-weight: 700; }
.summary-item small { color: var(--muted); display: block; font-size: 13px; }

/* ============================ 움직임 ============================ */

/* 카드가 순서대로 떠오른다. transform 과 opacity 만 건드려 레이아웃을 다시 계산하지 않는다 */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hero, .bento > *,
.signin-hero, .signin-actions,
.home-bar, .home-mid, .home-bottom {
  animation: rise 420ms ease-out both;
}

.bento > *:nth-child(1) { animation-delay: 120ms; }
.bento > *:nth-child(2) { animation-delay: 200ms; }
.bento > *:nth-child(3) { animation-delay: 280ms; }

.signin-actions { animation-delay: 140ms; }
.home-mid { animation-delay: 80ms; }
.home-bottom { animation-delay: 160ms; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* 로그인 */

.provider {
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  gap: 10px;
  justify-content: center;
  min-height: 52px;
  width: 100%;
}

.provider svg { height: 20px; width: 20px; }
.provider:active { background: var(--surface-2); }

/* 애플이 정한 모양이다 — 검정 바탕에 흰 로고, 다른 로그인 버튼과 같은 크기 */
.provider-apple { background: #000; border-color: #000; color: #fff; }
.provider-apple:active { background: #222; }

/* ============================ My 시트 ============================ */

.my-who {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 이름표 위, 값 아래로 쌓는다. 나란히 두면 값이 문장일 때 칸을 넘는다 */
.my-row {
  background: var(--surface-2);
  border-radius: var(--r-sm);
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.my-row small { color: var(--muted); font-size: 12px; }
.my-row strong { font-size: 17px; font-weight: 600; }
/* 아직 모르는 값. 숫자가 아니라 설명이므로 조용히 적는다 */
.my-row strong.unknown { color: var(--muted); font-size: 14px; font-weight: 400; }
.my-row strong.gone { color: var(--live); }

/* 시트의 기본 버튼은 국기 목록용이라 왼쪽 정렬이다. 여기는 단독 동작이라 가운데로 둔다 */
.sheet.my .sheet-body button { justify-content: center; text-align: center; }
/* 되돌릴 수 없는 동작이라 색으로 구분한다 */
.sheet-body /* 빌드 도장. 눈에 띄면 안 되지만 필요할 때 찾을 수 있어야 한다 */
.my-stamp {
  color: var(--dim);
  font-size: 12px;
  margin: 4px 0 0;
  text-align: center;
}

.my-signout { color: var(--live); }
/* 지우는 자리는 눌러야 할 버튼이 아니다. 찾을 수는 있되 손이 먼저 가면 안 된다.
   .sheet-body button 이 특이도가 높아 여기서도 .sheet-body 를 앞에 붙여야 먹는다 */
.sheet-body .my-delete {
  background: none;
  color: var(--muted);
  font-size: 13px;
  justify-content: center;
  min-height: 0;
  padding: 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sheet-body .primary.danger { background: var(--live); color: #ffffff; }
.sheet-error { color: var(--live); }
