@font-face {
  font-family: "Cafe24Oneprettynight";
  src: url("/assets/Cafe24Oneprettynight.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a1a1a;
  --muted: #3d3d3d;
  --paper: #faf6f3;
  --line: #e8ddd6;
  --button: #b42318;
  --button-ink: #ffffff;
  --soft: #fff;
  --soft-fill: #f0e8e4;
  --bubble: #fff6eb;
  --bubble-line: #efd9c8;
  font-size: 22px;
}

* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: #f6ebe8;
  color: var(--ink);
  --title: "Hahmlet", "Pretendard", "Noto Sans KR", serif;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
h1, h2, h3,
label,
.bond-level,
.bond-step,
.sheet-tab,
.settings-row-title,
.voice-label,
.usage-title,
.look-pick span,
.memory-row strong,
.btn,
.thing-top h1,
.home-tile,
.home-settings,
.info-tile {
  font-family: var(--title);
}

.phone {
  width: min(480px, 100%);
  height: 100dvh;
  height: 100svh;
  margin: 0 auto;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  margin: max(10px, env(safe-area-inset-top)) 16px 0;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.bond {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.bond-level,
.bond-step {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
  white-space: nowrap;
}
.bond-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bond-track {
  flex: 1 1 auto;
  height: 18px;
  border-radius: 999px;
  background: var(--soft-fill);
  overflow: hidden;
}
.bond-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--button);
}
.top .memory-btn { grid-column: 2; grid-row: 1; }
.memory-btn { flex-shrink: 0; }
.memory-btn, .text-btn {
  border: 0;
  background: transparent;
  color: var(--button);
  font: inherit;
  font-weight: 800;
  font-size: 28px;
  padding: 8px 4px;
  cursor: pointer;
}
.top .memory-btn {
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  padding: 10px 18px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.status {
  flex-shrink: 0;
  margin: 0 18px 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.stage {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  max-height: calc(46dvh + 1.35em);
  margin: 10px 16px 0;
  border-radius: 28px;
  overflow: hidden;
  background: #f7c7d4;
  border: 1px solid var(--line);
}
.song-clip {
  position: fixed;
  left: -240px;
  top: 0;
  width: 200px;
  height: 200px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.stage img, .stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.stage.look-junho img,
.stage.look-junho video {
  object-position: center 56%;
}
.stage.look-yunjeong img,
.stage.look-yunjeong video,
.look-pick[data-look="yunjeong"] img,
.pick-card[data-character="yunjeong"] img {
  object-position: center 40%;
}
.stage.look-classic img,
.stage.look-classic video {
  object-position: center 96%;
}
.stage video.idle-src {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
}
.stage video.idle-src.live { opacity: 1; }
.stage video.talk-src {
  position: fixed;
  left: -2000px;
  top: 0;
  width: 720px;
  height: 960px;
  opacity: 0;
  pointer-events: none;
}
.stage video::-webkit-media-controls,
.stage video::-webkit-media-controls-enclosure,
.stage video::-webkit-media-controls-panel,
.stage video::-webkit-media-controls-play-button,
.stage video::-webkit-media-controls-start-playback-button,
.stage video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  opacity: 0;
  -webkit-appearance: none;
}
.stage canvas.talk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
}
.stage canvas.talk.live { opacity: 1; }
.stage img.hidden, .stage video.hidden { display: none; }
.readout {
  display: none;
  height: 100%;
  overflow: auto;
  padding: 28px 22px;
  background: #fffdfb;
  color: #1b1b1b;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.04em;
  word-break: normal;
  overflow-wrap: normal;
}
.stage.reading {
  flex: 1 1 auto;
  max-height: none;
  background: #fffdfb;
}
.stage.reading .readout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 84px;
}
.stage.reading img, .stage.reading video { display: none; }
.face-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
}
.face-btn {
  flex: 1 1 0;
  min-height: 52px;
  margin: 0;
  padding: 8px 8px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--button);
  font: inherit;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(42, 18, 32, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}
.face-btn svg { width: 22px; height: 22px; flex: none; display: block; }

.line:empty { display: none; }
.reply-card {
  position: relative;
  flex: 0 0 auto;
  margin: 14px 16px 0;
  padding: 14px 16px;
  background: var(--bubble);
  border: 1px solid var(--bubble-line);
  border-radius: 22px 22px 22px 10px;
  box-shadow: 0 4px 14px rgba(42, 18, 32, 0.06);
}
.reply-card::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 28px;
  width: 14px;
  height: 14px;
  background: var(--bubble);
  border-left: 1px solid var(--bubble-line);
  border-top: 1px solid var(--bubble-line);
  transform: rotate(45deg);
  pointer-events: none;
}
.reply-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ask-note {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}
.ask::placeholder { color: var(--muted); }
.ask {
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
}
.line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 0;
  max-height: calc(1.35em * 2);
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  overflow-anchor: none;
  overscroll-behavior: contain;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.04em;
  text-align: left;
  word-break: normal;
  overflow-wrap: normal;
}
.line .who,
.readout .who {
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 0.18em;
  color: var(--muted);
}
.line.who-ask .who,
.readout.who-ask .who { color: var(--muted); }
.line.who-reply .who,
.readout.who-reply .who { color: var(--button); }
.line .who svg,
.readout .who svg {
  display: block;
  width: 100%;
  height: 100%;
}
.line .line-body,
.readout .line-body {
  flex: 1 1 auto;
  min-width: 0;
}
.status.missed,
.voice-note {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
}
.voice-note {
  flex-shrink: 0;
  margin: 0 18px 8px;
  color: var(--ink);
}
.phone:has(.home-grid) {
  background:
    radial-gradient(90% 36% at 50% 16%, #ffd6e4 0%, rgba(255, 214, 228, 0) 72%),
    #fff5f8;
}
.phone:has(.home-grid) .top {
  background: transparent;
  border-color: transparent;
  padding-bottom: 0;
}
.phone:has(.home-grid) .top { margin-top: 6px; padding-top: 4px; }
.phone:has(.home-grid) .home-head {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 48dvh;
  margin: 8px 16px 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7c7d4;
}
.phone:has(.home-grid) .home-head .stage {
  flex: none;
  height: 100%;
  min-height: 240px;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.phone:has(.home-grid) .stage {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: 40dvh;
  margin-top: 8px;
}
.phone:has(.home-grid) .reply-card {
  position: relative;
  flex: 0 0 auto;
  margin-top: 10px;
  padding: 10px 14px;
  min-height: calc(20px + 34px * 1.35 * 2);
  box-sizing: border-box;
  background: var(--bubble);
  border-color: var(--bubble-line);
  border-radius: 22px 22px 22px 10px;
  box-shadow: 0 4px 14px rgba(42, 18, 32, 0.06);
}
.phone:has(.home-grid) .line {
  min-height: calc(34px * 1.35 * 2);
  max-height: calc(34px * 1.35 * 2);
}
.phone:has(.home-grid) .reply-card > .status {
  display: none;
}
.phone:has(.home-grid) .face-btn {
  min-height: 44px;
  padding: 6px 8px;
}
.phone:has(.home-grid) .home-foot {
  flex: 0 0 auto;
  margin-top: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}
.write-ask-row {
  display: flex;
  margin: 8px 16px 0;
}
.write-ask-row .btn {
  flex: 1 1 auto;
  min-height: 52px;
  margin: 0;
  font-size: 24px;
}
.phone:has(.home-grid) .home-alerts {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 100%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 6px;
  pointer-events: none;
}
.phone:has(.home-grid) .home-alerts .btn {
  pointer-events: auto;
  margin: 0;
}
.phone:has(.home-grid).screen-wide .wide-face {
  position: relative;
  min-height: 0;
  height: 100%;
}
.phone:has(.home-grid) .home-head .home-pills,
.phone:has(.home-grid) .wide-face .home-pills {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  margin: 0;
  gap: 0;
  z-index: 4;
  justify-content: space-between;
}
.phone:has(.home-grid) .home-head .face-btn,
.phone:has(.home-grid) .wide-face .face-btn {
  flex: none;
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  font-size: 0;
  line-height: 0;
  gap: 0;
  color: transparent;
}
.phone:has(.home-grid) .home-head .face-btn svg,
.phone:has(.home-grid) .wide-face .face-btn svg {
  width: 24px;
  height: 24px;
  color: var(--button);
}
.home-settings {
  position: relative;
  z-index: 6;
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 auto;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--button);
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(42, 18, 32, 0.12);
}
.home-settings img { width: 28px; height: 28px; display: block; }
.lang-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 12px rgba(42, 18, 32, 0.12);
}
.lang-btn {
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.lang-btn.on {
  background: var(--button);
  color: #fff;
}
.phone:has(.home-grid) .home-head .lang-toggle,
.phone:has(.home-grid) .wide-face .lang-toggle,
.menu-face-wrap .lang-toggle {
  top: 10px;
  right: 10px;
}
.thing-top .lang-toggle {
  position: static;
  transform: none;
  justify-self: end;
}
.home-pills {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 8px;
  margin: -22px 12px 0;
}
.home-scroll {
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  padding: 4px 16px 0;
}
.home-grid {
  flex: 0 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.home-tile {
  min-height: 60px;
  margin: 0;
  padding: 6px 6px 5px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(226, 59, 98, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font: inherit;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.05em;
  cursor: pointer;
}
.home-tile img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}
.home-tile span {
  word-break: keep-all;
  text-align: center;
  white-space: nowrap;
}
.phone:has(.home-grid) .actions {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 4px 16px max(10px, env(safe-area-inset-bottom));
}
.phone:has(.home-grid) .home-pills {
  flex: 0 0 auto;
  gap: 6px;
}
.phone:has(.home-grid) .home-scroll {
  flex: 0 0 auto;
  padding: 2px 16px 0;
}
.phone:has(.home-grid) .dock {
  flex: 0 0 auto;
  margin-top: 4px;
}
.dock {
  flex-shrink: 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
}
.line,
.readout,
.sheet-script,
.settings-page .sheet-script,
.ask,
.ask-note,
.status.missed,
.voice-note {
  font-family: "Cafe24Oneprettynight", "Pretendard", "Noto Sans KR", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  -webkit-text-stroke: 0.9px currentColor;
  paint-order: stroke fill;
}
.line::-webkit-scrollbar { display: none; }
.line .said,
.readout .said,
.sheet-script .said {
  color: var(--ink);
}
.line .now,
.readout .now,
.sheet-script .now {
  color: var(--ink);
  background: rgba(180, 35, 24, 0.12);
  border-radius: 5px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 1px;
}
.line .rest,
.readout .rest,
.sheet-script .rest {
  color: var(--muted);
}
.phone:has(.home-grid) .reply-card .line.heard,
.reply-card .line.heard {
  color: var(--muted);
}
.tel-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--button);
  font: inherit;
  font-weight: 800;
  line-height: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.again {
  flex-shrink: 0;
  margin: 0;
}

.actions {
  flex-shrink: 0;
  margin: 10px 16px max(12px, env(safe-area-inset-bottom));
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.speak-row { position: relative; }
.cam {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
}
.cam svg { width: 32px; height: 32px; display: block; }
.btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 16px 16px;
  font-family: var(--title);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.thinking { opacity: 1; }
.think {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dots {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  transform: translateY(-50%);
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  animation: soy-lamp 1.5s ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: 0.22s; }
.dots i:nth-child(3) { animation-delay: 0.44s; }
@keyframes soy-lamp {
  0%, 55%, 100% { background: rgba(255, 255, 255, 0.35); }
  18% { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .dots i { animation: none; background: #fff; }
}
@property --ring-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.btn.listening {
  position: relative;
  z-index: 1;
}
.btn.listening::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 8px solid #ff3d78;
  pointer-events: none;
}
.btn.listening::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -8px;
  border-radius: 999px;
  padding: 8px;
  background: conic-gradient(from var(--ring-angle), rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0) 210deg, #fff 280deg, #fff 340deg, rgba(255, 255, 255, 0) 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: soy-ring 3.2s linear infinite;
  pointer-events: none;
}
@keyframes soy-ring {
  to { --ring-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .btn.listening::before { animation: none; }
}
.btn.primary { background: var(--button); color: var(--button-ink); }
.btn.yes { background: #fff; color: var(--ink); border: 3px solid var(--button); }
.btn.emergency { background: #b42318; color: white; }
.btn.ghost {
  background: var(--soft-fill);
  color: var(--ink);
  border: 2px solid var(--line);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(42, 18, 32, 0.35);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.food-sheet { background: rgba(42, 18, 32, 0.46); }
.food-sheet .panel {
  background: #fff1f4;
  border-radius: 32px 32px 0 0;
  padding: 12px 16px 28px;
  box-shadow: 0 -16px 40px rgba(42, 18, 32, 0.16);
}
.food-sheet .list-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  padding: 2px 0 10px;
  background: #fff1f4;
}
.food-sheet .list-top h2 {
  flex: 1;
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: -0.04em;
}
.food-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0 0 8px;
}
.food-list li {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(226, 59, 98, 0.06);
}
.food-list li:has(.news-item) { padding: 0; }
.news-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  text-align: left;
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}
.news-no {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--soft-fill);
  color: var(--button);
  font-size: 26px;
  font-weight: 900;
  line-height: 44px;
  text-align: center;
}
#newsDetail { z-index: 40; }
.food-name {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
}
.food-sheet .place-card { padding: 16px 16px 14px; }
.food-sheet .place-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.45;
}
.food-sheet .place-meta .tel-link {
  font-size: 26px;
  font-weight: 900;
}
.food-sheet h2 {
  margin: 0 0 8px;
  font-size: 30px;
}
.news-body {
  margin: 0;
  padding: 18px 16px;
  border-radius: 22px;
  background: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.55;
}
.settings-page {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f8eef3 0%, #f7f1f4 42%, #f4e8ee 100%);
}
.settings-page .panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: max(10px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: transparent;
}
.settings-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin: 0 0 14px;
  padding: 4px 0 10px;
  background: #f8eef3;
  border: 0;
  border-radius: 0;
}
.settings-head-sub {
  position: relative;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding-right: 56px;
}
.settings-sub-title {
  margin: 0;
  padding: 0 4px;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--ink);
}
.settings-close-x {
  position: absolute;
  top: 4px;
  right: 0;
  margin: 0;
}
.settings-head .lang-toggle {
  position: static;
  align-self: flex-end;
  transform: none;
}
.settings-back {
  align-self: stretch;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  padding: 8px 4px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-back-arrow {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(180, 70, 100, 0.12);
  position: relative;
  flex: 0 0 auto;
}
.settings-back-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-left: 3px solid var(--button);
  border-bottom: 3px solid var(--button);
  transform: rotate(45deg) translate(2px, -2px);
}
.settings-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 56px;
  padding: 14px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 28px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.settings-row-title { font-size: 28px; font-weight: 900; line-height: 1.3; }
.settings-row-hint { font-size: 26px; font-weight: 800; line-height: 1.35; }
.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}
.settings-page .title-row label,
.settings-page .title-row h2,
.settings-page .title-row .settings-row-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
}
.settings-page .title-row .voice-label { margin-top: 0; }
.title-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--soft-fill);
  color: var(--button);
  display: flex;
  align-items: center;
  justify-content: center;
}
.title-mark svg { width: 24px; height: 24px; display: block; }
.settings-page .title-row + .settings-hint,
.settings-page .title-row + .voice-guide,
.settings-row .settings-row-hint { margin-left: 50px; }
.settings-page .voice-title { margin-top: 16px; }
.settings-page label,
.settings-page h2,
.settings-page .settings-row-title,
.settings-page .usage-title,
.settings-page .voice-label,
.settings-page .sheet-tab,
.bond-level,
.bond-step {
  color: var(--ink);
}
.settings-page .sheet-tab { color: var(--ink); }
.settings-page .sheet-tab.on { color: #fff; }
.settings-page .settings-lead,
.settings-page .settings-hint,
.settings-page .settings-row-hint,
.settings-page .voice-guide,
.settings-page .alarm-hint,
.settings-page .usage-line,
.settings-page .plan-line,
.settings-page .place-card > p,
.settings-page .look-note,
.settings-page .memory-row {
  color: var(--muted);
}
.settings-page .memory-row strong { color: var(--ink); }
.settings-page .place-error { color: #b42318; }
.sheet-tab { display: flex; align-items: center; justify-content: center; gap: 6px; }
.sheet-tab .title-mark {
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: transparent;
}
.sheet-tab .title-mark svg { width: 20px; height: 20px; }
.settings-lead,
.settings-hint,
.settings-row-hint {
  margin: 4px 0 10px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: normal;
}
.settings-lead { margin: 0 4px 10px; }
.settings-links .settings-row:last-child { border-bottom: 0; padding-bottom: 0; }
.settings-page .screen-card > label {
  display: block;
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
}
.alarm-sheet,
.contact-sheet {
  align-items: flex-start;
  padding-top: 88px;
}
.alarm-sheet .panel,
.contact-sheet .panel {
  position: relative;
  width: min(440px, calc(100% - 32px));
  border-radius: 28px;
  margin-bottom: 0;
  max-height: calc(100dvh - 112px);
}
.popup-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 48px;
  height: 48px;
  font-size: 28px;
}
.alarm-sheet .settings-hint,
.contact-sheet .settings-hint { padding-right: 52px; }
.page-nums {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 4px;
}
.page-num {
  min-width: 48px;
  height: 48px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 26px;
  font-weight: 900;
}
.page-num.on {
  background: var(--button);
  border-color: var(--button);
  color: #fff;
}
.screen-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.screen-types + .screen-types { margin-top: 12px; }
.screen-type {
  min-height: 56px;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
}
.screen-type.on {
  background: var(--button);
  border-color: var(--button);
  color: #fff;
}
.screen-wide .stage {
  display: flex;
  flex-direction: column;
  max-height: none;
  background: #fff;
}
.screen-wide .wide-face {
  position: relative;
  flex: 1 1 auto;
  min-height: 40dvh;
  overflow: hidden;
  background: #f7c7d4;
}
.screen-wide .wide-face > img,
.screen-wide .wide-face > video.idle-src,
.screen-wide .wide-face > canvas.talk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.screen-wide .stage.reading .wide-face { background: #fffdfb; }
.screen-wide .stage.reading .wide-face > .readout {
  position: absolute;
  inset: 0;
  height: auto;
  padding-bottom: 84px;
}
.screen-wide .wide-reply {
  position: relative;
  flex: 0 0 auto;
  margin: 0 12px 4px;
  padding: 12px 16px 10px;
  background: var(--bubble);
  border: 1px solid var(--bubble-line);
  border-radius: 22px 22px 22px 10px;
  box-shadow: 0 4px 14px rgba(42, 18, 32, 0.06);
}
.screen-wide .wide-reply::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 28px;
  width: 14px;
  height: 14px;
  background: var(--bubble);
  border-left: 1px solid var(--bubble-line);
  border-top: 1px solid var(--bubble-line);
  transform: rotate(45deg);
  pointer-events: none;
}
.screen-wide .wide-reply .line { max-height: calc(1.35em * 2); }
.screen-wide .wide-pair {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.screen-wide .wide-pair .btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}
.screen-wide .wide-pair:has(#camera) #primary { padding-right: 52px; }
.alarm-hint {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
}
.settings-page .sheet-tabs { padding: 0; }
.settings-page .sheet-tab { font-size: 26px; letter-spacing: -0.04em; }
.settings-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.settings-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 12px 14px 12px 12px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(180, 70, 100, 0.1);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.settings-item-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  padding: 8px;
  box-sizing: content-box;
  background: #fff4f7;
  border-radius: 18px;
  border: 0;
  box-shadow: none;
}
.settings-item-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.settings-chevron {
  width: 12px;
  height: 12px;
  border-right: 3px solid #d7b7c3;
  border-bottom: 3px solid #d7b7c3;
  transform: rotate(-45deg);
  flex: 0 0 auto;
}
.settings-switch {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #edd6df;
  position: relative;
  flex: 0 0 auto;
  transition: background 0.15s ease;
}
.settings-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(80, 30, 50, 0.18);
  transition: left 0.15s ease;
}
.settings-switch.on {
  background: var(--button);
}
.settings-switch.on::after { left: 25px; }
.settings-item-note {
  margin: -4px 8px 4px;
  font-size: 22px;
}
.settings-card {
  margin: 0 0 10px;
  padding: 14px 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.settings-links.settings-card {
  padding: 0;
}
.settings-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.settings-links .usage-open { margin-top: 0; }
.settings-page .alarm-card,
.settings-page .place-card {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.settings-page .voice-label { margin-top: 16px; }
.settings-page .look-card > .voice-label:first-child { margin-top: 0; }
.settings-page .alarm-card > label,
.settings-page .place-card > label,
.settings-page .look-card > label,
.settings-page h2 {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.3;
}
.settings-page p,
.settings-page li,
.settings-page .memory-row,
.settings-page .time,
.settings-page .alarm-note {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
}
.settings-page .memory-card {
  margin: 0 0 12px;
  padding: 16px 16px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.settings-page .memory-card .title-row {
  margin: 0 0 10px;
  align-items: center;
}
.settings-page .memory-card .title-row h2 {
  margin: 0;
}
.settings-page .memory-card .settings-hint,
.settings-page .memory-card .memory-status,
.settings-page .memory-card .plan-line,
.settings-page .memory-card .memory-empty {
  margin: 0 0 8px;
  padding: 0;
  text-align: left;
  word-break: keep-all;
}
.settings-page .memory-card .memory-lead {
  margin-bottom: 12px;
  color: var(--muted);
}
.settings-page .memory-card .memory-status {
  color: var(--ink);
  font-weight: 900;
}
.settings-page .memory-list {
  margin-top: 8px;
  padding-top: 4px;
}
.settings-page .memory-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.settings-page .memory-row strong {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
}
.settings-page .btn { font-size: 28px; }
.settings-page .memory-row:last-child { border-bottom: 0; padding-bottom: 0; }
.settings-page .memory-card .usage-open { margin: 4px 0 10px; }
.settings-page .privacy-link { margin-top: 0; }
.settings-page .usage-card { padding: 0; }
.settings-page .usage-voice {
  margin: 0 0 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.settings-page .usage-section { margin: 0 0 10px; }
.settings-page .usage-card .btn { margin-top: 0; }
.sheet .panel {
  width: min(480px, 100%);
  max-height: 88dvh;
  overflow: auto;
  background: white;
  border-radius: 28px 28px 0 0;
  padding: 8px 18px 28px;
}
.sheet.alarm-sheet .panel,
.sheet.contact-sheet .panel {
  max-height: calc(100dvh - 112px);
  overflow: hidden;
}
.sheet.alarm-sheet .panel { display: flex; flex-direction: column; }
.alarm-saved { min-height: 0; overflow: auto; }
.alarm-form { flex: 0 0 auto; display: flex; flex-direction: column; gap: 12px; }
.voice-pack { align-items: center; }
.voice-pack .panel {
  margin: auto 16px;
  border-radius: 28px;
  padding: 22px 18px 20px;
}
.voice-pack h2 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.35;
}
.voice-pack .pack-track {
  height: 18px;
  border-radius: 999px;
  background: var(--soft-fill);
  overflow: hidden;
}
.voice-pack .pack-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--button);
}
.voice-pack p {
  margin: 12px 0 0;
  font-size: 24px;
  font-weight: 800;
}
.food-sheet.sheet .panel {
  background: #fff1f4;
  border-radius: 32px 32px 0 0;
  padding: 12px 16px 28px;
  box-shadow: 0 -16px 40px rgba(42, 18, 32, 0.16);
}
.sheet-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 -8px 8px;
  padding: 4px 0 8px;
  background: white;
}
.sheet-bar {
  display: flex;
  justify-content: flex-end;
  padding: 4px 0;
}
.sheet-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 0;
}
.sheet-tab {
  min-height: 88px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 900;
  padding: 10px 6px 12px;
  box-shadow: 0 8px 18px rgba(180, 70, 100, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.sheet-tab img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  background: transparent;
}
.sheet-tab .tab-icon-on { display: none; }
.sheet-tab.on .tab-icon-off { display: none; }
.sheet-tab.on .tab-icon-on { display: block; }
.sheet-tab.on {
  background: var(--button);
  border-color: var(--button);
  color: var(--button-ink);
}
.sheet-close {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 18px;
  background: var(--soft-fill);
  color: var(--button);
  font: inherit;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}
.sheet h2 { margin: 0 0 8px; font-size: 1.6rem; }
.sheet p, .sheet li { font-size: 1.25rem; line-height: 1.45; font-weight: 700; }
.food-sheet .list-top h2,
.food-sheet .food-name,
.food-sheet .news-body { font-size: 28px; }
.food-sheet .list-top h2 { font-size: 30px; }
.food-sheet .place-meta,
.food-sheet .place-meta .tel-link { font-size: 26px; }
.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 16px 0 4px;
}
.pager span {
  font-size: 26px;
  font-weight: 900;
  white-space: nowrap;
  text-align: center;
}
.pager .btn { margin: 0; padding: 14px 8px; font-size: 26px; width: 100%; }
.memory-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.memory-edit { width: 100%; font-size: 28px; font-weight: 800; }
.memory-row, .setup-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.setup-card label { white-space: nowrap; }
.alarm-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.alarm-card > label { font-size: 1.35rem; font-weight: 900; }
.alarm-card .btn { margin: 0; padding: 16px; font-size: 1.2rem; }
.alarm-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alarm-row .time { width: 100%; }
.alarm-note {
  width: 100%;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 800;
  padding: 12px;
  border-radius: 16px;
  border: 2px solid var(--line);
}
.time {
  font: inherit;
  font-size: 1.4rem;
  font-weight: 800;
  padding: 12px;
  border-radius: 16px;
  border: 2px solid var(--line);
}
.look-card {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.look-card > label { font-size: 1.35rem; font-weight: 900; }
.look-note { margin: 12px 0 0; font-size: 24px; font-weight: 800; line-height: 1.35; }
.look-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.look-pick {
  flex: 1;
  min-width: 0;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 0 0 8px;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
}
.look-pick.on { border-color: var(--button); }
.look-pick img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.look-pick span {
  display: block;
  padding: 6px 2px 0;
  font-size: 24px;
  line-height: 1.25;
}
.voice-label {
  display: block;
  margin-top: 16px;
  font-size: 28px;
  font-weight: 900;
}
.settings-page .sheet-script,
.sheet-script {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 12px 0 0;
  padding: 10px 2px 4px;
  background: #fff;
  color: var(--ink);
  font-family: "Cafe24Oneprettynight", "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 34px;
  font-weight: 800;
  -webkit-text-stroke: 0.9px currentColor;
  paint-order: stroke fill;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
  word-break: normal;
  overflow-wrap: normal;
}
.settings-page .voice-guide,
.sheet .voice-guide {
  margin: 8px 0 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
}
.voice-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.voice-pick {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  min-height: 64px;
  padding: 12px 6px;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.voice-pick span {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}
.voice-pick.on {
  border-color: var(--button);
  background: var(--soft-fill);
}
.warm-picks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.warm-pick {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  min-height: 64px;
  padding: 12px 14px;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.warm-line {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.warm-bar {
  flex: 0 0 132px;
  width: 132px;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 7px;
  border: 2.5px solid #1a1a1a;
  border-radius: 999px;
  box-sizing: border-box;
}
.warm-bar i {
  flex: 1 1 auto;
  height: 12px;
  border-radius: 3px;
  background: #1a1a1a;
  opacity: 0.16;
  animation: warm-bar 1.2s linear infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
@keyframes warm-bar {
  0%, 18% { opacity: 1; }
  55%, 100% { opacity: 0.16; }
}
.warm-pick.on {
  border-color: var(--button);
  background: var(--soft-fill);
}
.super-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.super-picks .warm-pick {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-height: 96px;
  padding: 12px 10px;
}
.super-picks .warm-line {
  white-space: pre-line;
  word-break: keep-all;
  overflow: visible;
  text-overflow: unset;
  text-align: center;
}
.super-picks .warm-bar {
  flex: 0 0 auto;
  width: 100%;
  max-width: 120px;
}
.usage-open { margin-top: 8px; padding: 16px; font-size: 28px; }
.plan-line { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.45; word-break: keep-all; }
.sub-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sub-card {
  margin: 0;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(180, 70, 100, 0.1);
}
.sub-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}
.sub-card-head h2 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.popup-card-head {
  margin: 0 48px 10px 0;
}
.popup-card-head h2 { color: var(--ink); }
.plan-board { display: flex; flex-direction: column; gap: 12px; }
.plan-title { margin: 0; font-size: 32px; line-height: 1.35; }
.plan-lead, .plan-note, .plan-compare { margin: 0 0 8px; font-size: 22px; line-height: 1.45; word-break: keep-all; }
.plan-lead:last-child,
.plan-note:last-child,
.plan-compare:last-child { margin-bottom: 0; }
.plan-price { margin: 0 0 6px; font-size: 28px; font-weight: 800; color: var(--ink); }
.plan-save { margin: 0 0 6px; color: var(--button); font-size: 24px; font-weight: 800; }
.plan-cycle, .plan-card { display: flex; gap: 8px; }
.plan-cycle { margin-top: 4px; }
.plan-cycle .btn,
.plan-actions .btn { min-height: 56px; font-size: 28px; width: 100%; }
.plan-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-card {
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}
.plan-card h3 { margin: 0 0 6px; font-size: 28px; color: var(--ink); }
.plan-board .plan-title,
.plan-board .plan-lead,
.plan-board .plan-line,
.plan-board .plan-note {
  color: var(--ink);
}
.plan-board .plan-lead,
.plan-board .plan-note,
.plan-board .plan-compare,
.plan-board .plan-line {
  color: var(--muted);
}
.sub-card .settings-hint { margin: 0 0 12px; }
.plan-family-code {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  word-break: break-all;
}
.plan-family-input {
  width: 100%;
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.family-card .btn { min-height: 56px; font-size: 24px; }
.home-quota {
  flex-shrink: 0;
  margin: max(8px, env(safe-area-inset-top)) 16px 0;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}
.quota-row {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 44px;
}
.quota-left, .quota-note, .quota-hint {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--ink);
}
.quota-note {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 4px;
  white-space: nowrap;
}
.quota-hint { color: var(--muted); }
.quota-help {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.quota-help span {
  width: 26px;
  height: 26px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alarm-kinds { display: flex; gap: 8px; }
.alarm-kinds .btn { flex: 1 1 0; margin: 0; }
.alarm-sheet .alarm-name,
.alarm-sheet .time {
  width: 100%;
  box-sizing: border-box;
  font-size: 24px;
  font-weight: 800;
}
.alarm-sheet .alarm-name {
  font: inherit;
  font-size: 24px;
  font-weight: 800;
  padding: 12px;
  border-radius: 16px;
  border: 2px solid var(--line);
}
.alarm-sheet .memory-row,
.alarm-sheet .memory-row strong { font-size: 24px; }
.alarm-sheet .memory-row { padding: 8px 0; }
.quota-sheet .panel { display: flex; flex-direction: column; gap: 0; }
.row-choice .panel { gap: 12px; }
.row-choice p { font-size: 28px; }
[data-row-choice] { cursor: pointer; }
.quota-card-sheet {
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(42, 18, 32, 0.42);
}
.quota-card-sheet .panel,
.quota-panel {
  width: min(400px, 100%);
  max-height: none;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px 20px 20px;
  gap: 0;
  background: #fff;
  box-shadow: 0 18px 40px rgba(36, 24, 22, 0.16);
  border: 1px solid var(--line);
}
.quota-card-title {
  margin: 0 0 12px;
  padding: 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.04em;
  word-break: keep-all;
  text-align: left;
  color: var(--ink);
}
.quota-sheet h2,
.quota-sheet p {
  margin: 0;
  font-size: 24px;
  line-height: 1.45;
  word-break: keep-all;
}
.quota-card-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-sizing: border-box;
}
.quota-card-lines p {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.quota-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin: 20px 0 0;
}
.quota-actions .btn {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}
.quota-sheet .btn {
  min-height: 56px;
  padding-left: 18px;
  padding-right: 18px;
  font-size: 24px;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
  text-align: center;
}
.quota-actions .btn.primary {
  order: 0;
}
.quota-actions .btn.ghost {
  order: 1;
}
.guide-flow {
  position: relative;
  height: 100%;
  min-height: 100dvh;
  background: #f6e7ef;
  overflow: hidden;
}
.guide-close {
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(180, 70, 100, 0.14);
}
.guide-page {
  display: none;
  position: absolute;
  inset: 0;
}
.guide-page.on { display: block; }
.guide-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #f6e7ef;
  pointer-events: none;
  user-select: none;
}
.guide-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 18px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.92) 28%, #fff 100%);
}
.guide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.guide-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e7d5de;
  display: block;
}
.guide-dots i.on { width: 22px; background: var(--button); }
.guide-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 12px;
}
.guide-foot-spacer { display: block; min-height: 52px; }
.guide-controls .guide-nav {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 12px 18px;
  font-size: 22px;
  border-radius: 999px;
}
.usage-card { padding: 8px 0 4px; }
.usage-section {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.usage-body { min-width: 0; flex: 1; }
.usage-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--soft-fill);
  color: var(--button);
  display: flex;
  align-items: center;
  justify-content: center;
}
.usage-mark svg { width: 24px; height: 24px; display: block; }
.settings-page .usage-title,
.sheet .usage-title {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: normal;
}
.settings-page .usage-line,
.sheet .usage-line {
  margin: 0;
  color: var(--muted);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  word-break: keep-all;
  overflow-wrap: normal;
}
.usage-listen {
  margin-top: 10px;
  min-height: 52px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--soft-fill);
  color: var(--ink);
  font: inherit;
  font-size: 28px;
  font-weight: 900;
}
.usage-listen.on { background: var(--button); color: #fff; }
.usage-card .btn { margin-top: 8px; padding: 16px; font-size: 28px; }
.usage-card .usage-speak { margin-top: 0; margin-bottom: 14px; }
.usage-voice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.usage-voice-label {
  flex: 1;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
}
.usage-switch {
  min-width: 76px;
  min-height: 52px;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 28px;
  font-weight: 900;
}
.usage-switch.on {
  background: var(--button);
  border-color: var(--button);
  color: var(--button-ink);
}
.usage-icon { width: 28px; height: 28px; flex: 0 0 auto; }
a.privacy-link {
  margin-top: 0;
  text-decoration: none;
}
.privacy-icon { width: 28px; height: 28px; flex: 0 0 auto; }
.place-light {
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border-radius: 50%;
  background: #e7d5dc;
  flex: 0 0 auto;
}
.place-light.on {
  background: var(--button);
  box-shadow: 0 0 0 4px rgba(226, 59, 98, 0.28);
}
.place-card {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.place-card p { margin: 8px 0; }
.place-card .btn { margin-top: 8px; padding: 16px; font-size: 1.2rem; }
.place-name { width: 100%; margin-top: 10px; }
.place-error { color: #b42318; }
.voice-row { display: flex; gap: 10px; }
.voice-row .btn { margin-top: 8px; padding: 16px; font-size: 1.2rem; }
.pick-list { display: flex; flex-direction: column; gap: 10px; }
.pick-card {
  display: block;
  width: 100%;
  padding: 0 0 10px;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: white;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pick-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 100 / 72;
  object-fit: cover;
  object-position: center 46%;
  display: block;
}
.pick-card strong, .pick-card span { display: block; padding: 0 16px; }
.pick-card strong { margin-top: 8px; font-size: 1.45rem; }
.pick-card span { margin-top: 2px; color: var(--muted); font-size: 1.15rem; font-weight: 800; }
.setup.pick { overflow: auto; padding: 16px 18px 12px; }
.setup.pick h1 { font-size: 1.65rem; }
.setup {
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.setup h1 { margin: 0; font-size: 2rem; letter-spacing: -0.04em; word-break: keep-all; }
.setup p { margin: 0; font-size: 1.35rem; font-weight: 700; line-height: 1.5; word-break: keep-all; }

.phone.thing-screen,
.phone.medicine-screen,
.phone.appointment-screen,
.phone.album-screen,
.phone.family-screen,
.phone.info-screen {
  background:
    radial-gradient(90% 36% at 50% 16%, #ffd6e4 0%, rgba(255, 214, 228, 0) 72%),
    #fff5f8;
}
.phone.thing-screen .menu-face-wrap,
.phone.medicine-screen .menu-face-wrap,
.phone.appointment-screen .menu-face-wrap,
.phone.album-screen .menu-face-wrap,
.phone.family-screen .menu-face-wrap,
.phone.info-screen .menu-face-wrap {
  position: relative;
  flex: 0 0 auto;
  height: 236px;
  margin: 8px 16px 0;
  border-radius: 28px;
  overflow: hidden;
}
.phone.thing-screen .thing-face,
.phone.medicine-screen .thing-face,
.phone.appointment-screen .thing-face,
.phone.album-screen .thing-face,
.phone.family-screen .thing-face,
.phone.info-screen .thing-face {
  flex: none;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
}
.phone.thing-screen .menu-face-wrap .home-pills,
.phone.medicine-screen .menu-face-wrap .home-pills,
.phone.appointment-screen .menu-face-wrap .home-pills,
.phone.album-screen .menu-face-wrap .home-pills,
.phone.family-screen .menu-face-wrap .home-pills,
.phone.info-screen .menu-face-wrap .home-pills {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  margin: 0;
  gap: 0;
  z-index: 4;
  justify-content: space-between;
}
.phone.thing-screen .menu-face-wrap .face-btn,
.phone.medicine-screen .menu-face-wrap .face-btn,
.phone.appointment-screen .menu-face-wrap .face-btn,
.phone.album-screen .menu-face-wrap .face-btn,
.phone.family-screen .menu-face-wrap .face-btn,
.phone.info-screen .menu-face-wrap .face-btn {
  flex: none;
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  font-size: 0;
  line-height: 0;
  gap: 0;
  color: transparent;
}
.phone.thing-screen .menu-face-wrap .face-btn svg,
.phone.medicine-screen .menu-face-wrap .face-btn svg,
.phone.appointment-screen .menu-face-wrap .face-btn svg,
.phone.album-screen .menu-face-wrap .face-btn svg,
.phone.family-screen .menu-face-wrap .face-btn svg,
.phone.info-screen .menu-face-wrap .face-btn svg {
  width: 24px;
  height: 24px;
  color: var(--button);
  stroke: currentColor;
}
.phone.thing-screen .reply-card,
.phone.medicine-screen .reply-card,
.phone.appointment-screen .reply-card,
.phone.album-screen .reply-card,
.phone.family-screen .reply-card,
.phone.info-screen .reply-card {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bubble);
  border-color: var(--bubble-line);
  border-radius: 22px 22px 22px 10px;
  box-shadow: 0 4px 14px rgba(42, 18, 32, 0.06);
}
.phone.thing-screen .actions,
.phone.medicine-screen .actions,
.phone.appointment-screen .actions,
.phone.album-screen .actions,
.phone.family-screen .actions,
.phone.info-screen .actions { margin: 6px 16px 8px; padding: 8px; }
.phone.thing-screen .thing-saved,
.phone.medicine-screen .thing-saved,
.phone.appointment-screen .thing-saved,
.phone.album-screen .thing-saved,
.phone.family-screen .thing-saved { margin-top: 4px; }
.phone.thing-screen .stage,
.phone.medicine-screen .stage,
.phone.appointment-screen .stage,
.phone.album-screen .stage,
.phone.family-screen .stage,
.phone.info-screen .stage {
  height: 308px;
  min-height: 0;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 28px;
}
.thing-scroll {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone.thing-screen .line,
.phone.medicine-screen .line,
.phone.appointment-screen .line,
.phone.album-screen .line,
.phone.family-screen .line,
.phone.info-screen .line {
  word-break: keep-all;
  max-height: calc(1.35em * 2);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px 4px 8px;
}
.info-tile {
  min-height: 0;
  margin: 0;
  padding: 10px 6px 8px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(226, 59, 98, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
  cursor: pointer;
}
.info-tile img {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: contain;
}
.info-tile span {
  word-break: keep-all;
  text-align: center;
}
.family-thumb {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  background: #ffe8f0;
}
.album-thumb,
.album-thumb-empty {
  width: 64px;
  height: 64px;
  flex: none;
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #ffe8f0;
  object-fit: cover;
}
.album-thumb-empty {
  display: grid;
  place-items: center;
}
.album-thumb-empty img { width: 36px; height: 36px; }
.album-pick {
  display: flex;
  width: calc(100% - 32px);
  margin: 8px 16px 0;
  min-height: 52px;
  font-size: 24px;
}
.album-view-sheet .album-view-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 90%;
}
.album-view-media {
  width: 100%;
  max-height: 70vh;
  border-radius: 18px;
  object-fit: contain;
  background: #1d1a1c;
}
.thing-top {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 88px 1fr 88px;
  align-items: center;
  margin: max(8px, env(safe-area-inset-top)) 12px 0;
}
.thing-top h1 {
  margin: 0;
  text-align: center;
  font-family: var(--title);
  font-size: 28px;
  font-weight: 800;
  color: var(--button);
}
.thing-back {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--button);
  font-family: var(--title);
  font-size: 22px;
  font-weight: 800;
}
.thing-modes {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 16px 0;
}
.thing-mode {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}
.thing-mode img { width: 28px; height: 28px; flex: none; }
.thing-mode.on { background: var(--button); border-color: var(--button); color: #fff; }
.thing-samples { flex: 0 0 auto; margin: 8px 16px 0; color: #c4b3b8; }
.thing-samples p { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: #c4b3b8; }
.thing-sample {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 0 12px;
  border-radius: 18px;
  background: #f7f1f2;
  font-size: 28px;
  font-weight: 800;
  color: #c4b3b8;
}
.thing-sample img { width: 40px; height: 40px; opacity: 0.4; }
.phone.thing-screen .thing-sample {
  height: 68px;
  gap: 8px;
  padding: 0 12px;
  font-size: 28px;
}
.phone.thing-screen .thing-sample .thing-icon { width: 44px; height: 44px; }
.phone.thing-screen .thing-sample span,
.phone.thing-screen .thing-sample b,
.phone.thing-screen .thing-sample em {
  white-space: nowrap;
  flex: none;
}
.thing-sample em {
  margin-left: auto;
  font-style: normal;
  color: #c4b3b8;
  font-size: 24px;
}
.thing-saved {
  flex: 0 0 auto;
  min-height: 0;
  margin: 8px 16px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.thing-saved h2 { flex: 0 0 auto; margin: 0 0 2px; font-size: 28px; }
.thing-saved ul {
  flex: 0 0 auto;
  min-height: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.thing-saved .pager { flex: 0 0 auto; padding: 6px 0 0; }
.thing-saved .pager .btn { padding: 8px; font-size: 24px; min-height: 44px; }
.med-sample { height: auto; min-height: 76px; align-items: center; }
.med-sample span { display: flex; flex-direction: column; line-height: 1.2; }
.med-sample b { font-size: 24px; font-style: normal; font-weight: 800; }
.med-sample i { font-size: 28px; font-style: normal; font-weight: 800; }
.med-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 68px;
  padding: 4px 8px;
  border-radius: 18px;
  background: #fff;
}
.med-row img { width: 44px; height: 44px; flex: none; }
.med-row .family-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
.med-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.med-copy b { font-size: 24px; line-height: 1.2; font-weight: 800; color: var(--muted); }
.med-copy i { font-style: normal; font-size: 28px; line-height: 1.2; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.med-when { white-space: nowrap; font-size: 24px; line-height: 1.2; font-weight: 800; color: var(--muted); }
.plan-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
}
.plan-row > img { grid-row: 1 / span 3; width: 44px; height: 44px; }
.plan-row > .med-when { grid-column: 2 / -1; grid-row: 1; }
.plan-row > i {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  font-style: normal;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-row > .med-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
}
.plan-row > .med-side {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
}
.plan-row > .med-remind { grid-column: 2 / -1; grid-row: 3; }
.plan-row > .plan-edit {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
}
.plan-row.album-row {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  column-gap: 10px;
}
.plan-row.album-row > .album-thumb,
.plan-row.album-row > .album-thumb-empty {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 64px;
  height: 64px;
  justify-self: start;
}
.plan-row.album-row > .med-when,
.plan-row.album-row > .plan-edit {
  grid-column: 2 / -1;
  grid-row: 1;
  min-width: 0;
}
.plan-row.album-row > i { grid-column: 2; grid-row: 2; }
.plan-row.album-row > .med-side { grid-column: 3; grid-row: 2; }
.family-add {
  flex: 0 0 auto;
  margin: 8px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.family-add input {
  width: 100%;
  box-sizing: border-box;
  min-height: 56px;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 8px 14px;
  font: inherit;
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
}
.family-add input::placeholder { color: #b3a4aa; }
.family-add .btn {
  min-height: 56px;
  font-size: 28px;
  background: #1d4e89;
  color: #fff;
}
.plan-row.family-row {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
}
.plan-row.family-row > .album-thumb {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.plan-row.family-row > .family-copy,
.plan-row.family-row > .plan-edit {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
}
.plan-row.family-row > .family-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
}
.plan-row.family-row > .family-copy b {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-row.family-row > .family-copy i {
  font-style: normal;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  color: #6d5a62;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-row.family-row > .med-side {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
}
.plan-edit { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.plan-clocks { display: flex; gap: 4px; min-width: 0; }
.plan-clocks .med-time { width: auto; flex: 1; min-width: 0; }
.med-title {
  width: 100%;
  height: 40px;
  min-height: 40px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 24px;
  font-weight: 800;
  color: #24315f;
}
.med-remind { display: flex; align-items: center; gap: 4px; font-size: 24px; line-height: 1.2; font-weight: 800; color: var(--button); }
.med-bell { width: 18px; height: 18px; flex: none; }
.thing-sample .med-remind { color: inherit; }
.med-time { width: 140px; height: 48px; min-height: 48px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-size: 24px; font-weight: 800; }
.med-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.med-done, .med-wait, .med-take {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}
.med-done { color: #1c8a4a; background: #e7f8ee; }
.med-wait { color: #8d8086; background: #f3eef0; }
.med-take { color: #fff; background: var(--button); border: 0; }
.med-tools { display: flex; gap: 4px; }
.med-tools .btn { width: auto; min-height: 36px; padding: 0 10px; font-size: 24px; line-height: 1; }
.thing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 72px;
  padding: 8px 10px;
  border-radius: 18px;
  background: #fff;
  font-size: 28px;
  font-weight: 800;
}
.thing-dash { flex: none; font-style: normal; font-weight: 800; }
.thing-icon { width: 44px; height: 44px; flex: none; }
.thing-row > .thing-photo {
  margin-left: auto;
  width: 64px;
  height: 64px;
}
.thing-row > .thing-photo img { width: 36px; height: 36px; }
.thing-row > span,
.thing-row > b,
.thing-row > .thing-dash { font-size: 28px; line-height: 1.2; }
.thing-row > span { flex: none; white-space: nowrap; }
.thing-row > b { flex: 1; min-width: 0; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thing-row .btn { width: auto; flex: none; min-height: 44px; padding: 4px 10px; font-size: 24px; }
.album-pick { font-size: 28px; }
.thing-place {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 28px;
  font-weight: 800;
}
@media (min-width: 560px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d9c8c4;
  }
  .phone {
    width: 390px;
    height: 844px;
    flex: none;
    border: 10px solid #241820;
    border-radius: 36px;
    box-shadow: 0 20px 48px rgba(42, 18, 32, 0.22);
    transform: scale(min(1, calc((100dvh - 32px) / 864px))) translateZ(0);
    transform-origin: center center;
  }
}
