@import './tokens/colors.css?v=20260930-ui1';
@import './tokens/typography.css';
@import './tokens/spacing.css';
@import './tokens/effects.css';
@import './tokens/motion.css';
@import './tokens/base.css';

.app-shell { min-height: 100dvh !important; padding: 24px !important; }
.app-frame { width: 440px !important; height: calc(100dvh - 48px) !important; max-height: 900px !important; }
.app-frame *, .app-frame *::before, .app-frame *::after { box-sizing: border-box; }
.app-status { display: none !important; }
.app-header { padding-top: 24px !important; flex-wrap: wrap; gap: 12px; }
.app-header > div { white-space: nowrap; font-size: 22px !important; }
.app-frame h1, .app-frame h2, .app-frame h3 { margin: 0; }
:where(.app-frame button, .app-frame input, .app-frame textarea, .app-frame select) { color: var(--hl-text); }
.app-frame button { -webkit-tap-highlight-color: transparent; }
.app-frame button:focus-visible, .app-frame input:focus-visible, .app-frame textarea:focus-visible, .app-frame select:focus-visible { outline: 3px solid #843454 !important; outline-offset: 3px; }
.app-frame button:disabled { cursor: default !important; opacity: .48; }
.app-frame input, .app-frame textarea, .app-frame select { font-size: 16px !important; }
.home-title { font: 700 22px/1.5 var(--hl-font); }
.preferences-nudge { padding: 14px 26px 0; }
.preferences-nudge button { padding: 12px 0; border: none; background: transparent; color: var(--hl-pink-text); font: 700 13px/1.5 var(--hl-font); text-align: left; }
.preferences-nudge span { margin-left: 8px; color: var(--hl-text-muted); font-weight: 500; font-size: 12px; }
.screen-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 12px; flex: none; }
.screen-heading h1 { font: 700 22px/1.5 var(--hl-font); }
.screen-heading > button { flex: none; width: 44px; height: 44px; border: 1px solid var(--hl-pink-border); border-radius: 50%; background: #fff; color: var(--hl-text-sub); font: 500 22px/1 var(--hl-font); cursor: pointer; }
.screen-description { color: var(--hl-text-muted); font: 500 15px/1.7 var(--hl-font); margin: 0 22px 16px; }
.preferences-screen { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 24px; }
.preferences-card { background: #fff; margin: 0 20px 20px; padding: 20px; border-radius: 24px; }
.preferences-screen > .primary-button { width: calc(100% - 40px); margin: 0 20px; }
.preferences-screen > .text-button { display: block; margin: 8px auto; }
.app-frame fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.app-frame legend { font: 700 15px/1.6 var(--hl-font); margin-bottom: 10px; padding: 0; }
.app-frame .facts-group { margin: 18px 0 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row button { min-height: 44px; border: 1px solid var(--hl-pink-border) !important; }
/* 2026-09-20 iPhone で入力欄が枠より広がり、右端が切れて横にずれる報告があった。
   日付欄は iOS が固有の幅を持つことがあるので、枠からはみ出さないようにする。 */
.diary-input input, .diary-input select, .time-row select { max-width: 100%; min-width: 0; }
.diary-input input[type="date"] { -webkit-appearance: none; appearance: none; }
.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.time-row label { min-width: 0; font: 500 13px/1.7 var(--hl-font); }
.time-row select { display: block; width: 100%; margin-top: 6px; border: 1px solid var(--hl-pink-border); border-radius: 16px; background: #fff; color: var(--hl-text); padding: 12px 8px; min-height: 48px; }
.step-label { color: var(--hl-text-sub); font: 700 13px/1 var(--hl-font); margin-right: 8px; }
.question-title { margin-top: 14px !important; font: 700 22px/1.5 var(--hl-font); }
.primary-button { border: 0; border-radius: 999px; background: var(--hl-grad-hero); color: #fff; font: 700 15px/1.4 var(--hl-font); padding: 15px 18px; min-height: 50px; cursor: pointer; }
.text-button { background: transparent; color: var(--hl-pink-text); border: 0; font: 700 13px/1.6 var(--hl-font); min-height: 44px; padding: 12px 6px; cursor: pointer; }
.result-screen { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.result-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 20px 24px; }
.eyebrow { display: inline-block; font: 700 12px/1.5 var(--hl-font); color: var(--hl-pink-text); margin-bottom: 4px; }
.diary-card, .editor-card { background: #fff; border: 1px solid #f0dde5; border-radius: 24px; padding: 22px 20px 16px; }
.diary-card h2 { font: 700 17px/1.55 var(--hl-font); color: var(--hl-pink-text); overflow-wrap: anywhere; }
.diary-body { margin-top: 16px; user-select: text; }
/* 未登録の結果は読めるが選べない（コピーは登録後）。 */
.diary-card[data-locked="true"] .diary-body { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.diary-body p { margin: 0 0 12px; font: 500 15px/1.8 var(--hl-font-body-long); white-space: pre-wrap; overflow-wrap: anywhere; }
.diary-body p:last-child { margin-bottom: 0; }
.diary-count { margin-top: 14px; font: 500 12px/1.4 var(--hl-font); text-align: right; color: var(--hl-text-muted); }
.edit-actions { display: flex; justify-content: space-between; gap: 8px; margin: 8px 0 4px; }
.edit-actions button { background: transparent; border: 0; color: var(--hl-pink-text); font: 700 13px/1.5 var(--hl-font); min-height: 44px; padding: 8px 2px; cursor: pointer; }
.adjustments { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.adjustments button { padding: 13px 12px !important; min-height: 44px; }
.check-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #bcd8cb; background: #edf7f1; color: #285d45; width: 100%; padding: 12px 14px; border-radius: 16px; min-height: 44px; font: 700 13px/1.5 var(--hl-font); cursor: pointer; text-align: left; }
.field-note { font: 500 12px/1.6 var(--hl-font); color: var(--hl-text-muted); margin: 8px 0 16px; }
.other-toggle { width: 100%; min-height: 48px; padding: 12px 16px; display: flex; justify-content: space-between; background: #fff; border: 1px solid var(--hl-pink-border); border-radius: 16px; font: 700 15px/1.5 var(--hl-font); color: var(--hl-pink-text); cursor: pointer; }
.other-variants { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.other-card { background: #fff; padding: 18px; border-radius: 16px; border: 1px solid #f0dde5; }
.other-card h3 { font: 700 15px/1.5 var(--hl-font); }
.other-card p { font: 500 15px/1.8 var(--hl-font-body-long); white-space: pre-line; overflow-wrap: anywhere; }
.other-card button { width: 100%; border: 1px solid var(--hl-pink-border); border-radius: 999px; padding: 12px; font: 700 15px/1.5 var(--hl-font); color: var(--hl-pink-text); background: #fff; min-height: 44px; cursor: pointer; }
.copy-bar { flex: none; display: flex; gap: 10px; padding: 12px 20px max(16px, env(safe-area-inset-bottom)); background: var(--hl-bg); border-top: 1px solid var(--hl-pink-track); }
.copy-bar .primary-button { flex: 1.5; padding: 14px 8px; }
.title-copy { flex: 1; background: #fff; border: 1px solid var(--hl-pink-border); border-radius: 999px; color: var(--hl-pink-text); font: 700 13px/1.5 var(--hl-font); padding: 12px 8px; min-height: 50px; cursor: pointer; }
.editor-card label { display: block; font: 700 15px/1.5 var(--hl-font); margin-bottom: 8px; }
.editor-card input, .editor-card textarea { display: block; width: 100%; border: 1px solid var(--hl-pink-border); border-radius: 16px; color: var(--hl-text); background: #fff; padding: 12px; font-family: var(--hl-font-body-long); line-height: 1.7; margin-bottom: 18px; }
.editor-card textarea { resize: vertical; }
.editor-card .primary-button { width: 100%; }
.copied-message { margin-top: 16px; padding: 14px; border-radius: 16px; background: #edf7f1; color: #285d45; font: 500 13px/1.7 var(--hl-font); }
.copied-message p { margin: 5px 0 0; }
@media (max-width: 600px) {
  .app-shell { padding: 0 !important; background: var(--hl-bg) !important; }
  .app-frame { width: 100% !important; max-width: none !important; height: 100dvh !important; max-height: none !important; border-radius: 0 !important; box-shadow: none !important; }
  .app-frame [role="dialog"] { border-radius: 0 !important; }
}
@media (max-width: 350px) {
  .screen-heading { padding-left: 16px; padding-right: 16px; }
  .screen-heading h1, .home-title { font-size: 22px; }
  .result-scroll { padding-left: 14px; padding-right: 14px; }
  .diary-card { padding: 18px 16px; }
  .copy-bar { padding-left: 14px; padding-right: 14px; }
}

.app-note { margin: 12px 26px 0; color: var(--hl-text-muted); font: 500 12px/1.7 var(--hl-font); }
.check-summary[data-has-issues="true"] { border-color: #dfb870; background: #fff5e1; color: #795212; }

.resume-result { margin: 16px 26px 0; width: calc(100% - 52px); display: flex; justify-content: space-between; gap: 8px; padding: 14px 18px; min-height: 48px; border-radius: 16px; border: 1px solid var(--hl-pink-border); background: #fff; color: var(--hl-pink-text); font: 700 15px/1.5 var(--hl-font); cursor: pointer; }

.profile-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.profile-screen .screen-heading h1 { font-size: 22px; }
.profile-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 20px; }
.profile-groups { display: flex; flex-direction: column; gap: 10px; padding: 0 20px; }
/* 先頭のカード（源氏名・都道府県）と話し方などの設問は別の入れ物なので、あいだを同じ 10px あける（2026-10-06。きほんの見出しを先頭に移したら、カードがくっついた）。 */
.profile-top-cards + .profile-groups { margin-top: 10px; }
.profile-group { background: var(--hl-surface); border: 0; border-radius: 24px; box-shadow: var(--hl-sh-card); overflow: hidden; flex: none; }
.profile-group-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; text-align: left; width: 100%; min-height: 76px; padding: 15px 16px; background: #fff; color: var(--hl-text); border: 0; cursor: pointer; font-family: var(--hl-font); }
.profile-group-heading > span:first-child { min-width: 0; }
.profile-group-heading strong { display: block; font: 700 15px/1.4 var(--hl-font); }
.profile-group-heading[aria-expanded="true"] { background: #fff8fb; }
.profile-group-body { padding: 0 18px 16px; }
.profile-group-caption { font: 500 12px/1.8 var(--hl-font); color: var(--hl-text-muted); margin: 12px 0 8px; }
.profile-choices { gap: 8px; margin-top: 12px; }
.profile-choices button { padding: 11px 14px !important; font-size: 13px !important; line-height: 1.5 !important; max-width: 100%; overflow-wrap: anywhere; text-align: left; }
/* デザイン v3 の候補チップは枠線ではなく影で立たせる（タップ領域の 44px は残す）。 */
/* 白地に影だけだと、ただの文字に見えて押せると分からない、という指摘。うすい枠線を戻す。 */
.profile-choices > button { border: 1.5px solid var(--hl-pink-border) !important; }
.profile-choices > button[aria-pressed="false"] { box-shadow: var(--hl-sh-row) !important; }
.profile-choices > button[aria-pressed="true"] { border-color: var(--hl-pink) !important; background: var(--hl-pink-pale) !important; color: var(--hl-pink-text) !important; }
.profile-choices > button[aria-pressed="true"] { box-shadow: var(--hl-sh-card) !important; }
.profile-choices .profile-candidates-peek, .profile-candidates-peek { display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; min-height: 44px; margin: 0; padding: 11.5px 16px !important; border: 1.5px dashed var(--hl-pink-border) !important; border-radius: 999px; background: none !important; color: var(--hl-pink-text) !important; font: 700 12px/1.5 var(--hl-font) !important; font-size: 12px !important; box-shadow: none !important; cursor: pointer; }
.profile-candidate-plus { flex: none; font-size: 17px; line-height: 1; font-weight: 500; }
.profile-candidates-peek:hover { background: var(--hl-pink-pale); border-color: var(--hl-pink-text); }
.profile-candidate-chevron { display: inline-block; flex: none; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: -3px 4px 0 0; }
.profile-candidates-collapse { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 4px; border: 0; background: transparent; color: var(--hl-text-faint); font: 700 13px/1.5 var(--hl-font); cursor: pointer; }
.profile-candidates-collapse .profile-candidate-chevron { transform: rotate(225deg); margin-top: 5px; }
.profile-choices .profile-tag-add { border: 1.5px dashed var(--hl-pink-border) !important; border-radius: 999px; background: none !important; color: var(--hl-text-faint) !important; font: 700 12px/1.5 var(--hl-font) !important; min-height: 44px; cursor: pointer; }
.profile-choices .profile-tag-add:hover { background: var(--hl-pink-pale) !important; }
.profile-tag-input { width: 210px; max-width: 100%; min-width: 0; min-height: 44px; padding: 8px 14px; border: 1px solid var(--hl-pink-border); border-radius: 999px; background: #fff; color: var(--hl-text); font: 400 16px/1.6 var(--hl-font); }
.profile-tag-input:focus-visible { outline: 2px solid var(--hl-pink-text); outline-offset: 2px; }
.profile-name-input { width: 100%; box-sizing: border-box; min-height: 44px; border: 1.5px solid var(--hl-pink-border); border-radius: 16px; padding: 10px 14px; background: var(--hl-surface); color: var(--hl-text); font: 700 16px/1.6 var(--hl-font); }
.profile-name-input:focus-visible { outline: 2px solid var(--hl-pink-text); outline-offset: 2px; }
.profile-field-label { display: block; margin: 10px 0 6px; color: var(--hl-text-sub); font: 700 13px/1.5 var(--hl-font); }
.profile-field input, .profile-field textarea, .profile-search input { display: block; width: 100%; min-width: 0; margin-top: 6px; border: 1px solid #dcbfcf; border-radius: 16px; padding: 12px; min-height: 48px; color: var(--hl-text); background: #fff; font: 400 16px/1.7 var(--hl-font-body-long); }
.profile-field { display: block; margin-top: 18px; font: 700 13px/1.7 var(--hl-font); color: var(--hl-text-sub); }
.profile-field textarea { resize: vertical; }
.profile-preview { margin: 0 20px 16px; padding: 18px; background: #fff; border: 1px solid #d2dfd7; border-radius: 16px; }
.profile-preview h2 { font: 700 15px/1.6 var(--hl-font); color: #315b45; }
.profile-review-scroll { padding-top: 12px; }
.profile-review-paper { margin: 24px 20px; padding: 26px 22px; border: 1px solid var(--hl-pink-border); border-radius: 16px; background: #fff; }
.profile-review-label { display: block; color: var(--hl-text-muted); font: 500 12px/1.7 var(--hl-font); margin-bottom: 20px; }
.profile-review-paper .profile-preview-body { color: var(--hl-text); font: 400 15px/2 var(--hl-font-body-long); }
.profile-preview-body { font: 500 15px/1.9 var(--hl-font-body-long); white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-savebar { flex: none; display: flex; gap: 10px; border-top: 1px solid var(--hl-pink-track); padding: 12px 20px max(16px, env(safe-area-inset-bottom)); background: var(--hl-bg); }
.profile-savebar > .primary-button { flex: 1.4; min-width: 0; padding: 12px 8px; }
.profile-preview-button { flex: 1; min-width: 0; border: 1px solid var(--hl-pink-border); background: #fff; color: var(--hl-pink-text); border-radius: 999px; min-height: 50px; padding: 12px 8px; font: 700 13px/1.5 var(--hl-font); cursor: pointer; }
.profile-intro { margin: 6px 22px 0; color: var(--hl-text); font: 700 17px/1.6 var(--hl-font); }
.profile-question { scroll-margin-top: 12px; transition: border-color .2s, background .2s; }
.profile-question.is-current { background: var(--hl-surface); }
.profile-question.is-answered { background: var(--hl-surface); }
.profile-question .profile-group-heading { background: transparent; min-height: 0; padding: 18px 18px 0; cursor: default; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.profile-question-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.profile-skip { border: 0; background: transparent; color: var(--hl-text-sub); min-height: 44px; padding: 8px 2px; font: 700 13px/1.5 var(--hl-font); cursor: pointer; }
.profile-skip:hover { color: var(--hl-pink-text); text-decoration: underline; text-underline-offset: 4px; }
.profile-question.is-current .profile-status { color: var(--hl-pink-text); background: var(--hl-pink-pale); }
.profile-status { flex: none; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 12px/1.3 var(--hl-font); color: var(--hl-text-faint); background: var(--hl-bg); padding: 6px 10px; border-radius: 999px; }
.profile-question.is-answered .profile-status { color: var(--hl-pink-text); background: var(--hl-pink-pale); }
.profile-screen button:focus-visible, .profile-screen input:focus-visible, .profile-screen textarea:focus-visible { outline: 3px solid var(--hl-pink-text); outline-offset: 3px; }
/* 下から出るシート（H-05 ひきなおす / X-05 上限・プラン案内）。 */
.app-sheet { position: absolute; inset: 0; z-index: 120; display: flex; align-items: flex-end; border-radius: 32px; background: rgba(77,58,66,.42); }
.app-sheet-panel { width: 100%; box-sizing: border-box; padding: 10px 22px max(22px, env(safe-area-inset-bottom)); border-radius: 24px 24px 32px 32px; background: var(--hl-bg); max-height: 88%; overflow-y: auto; }
.app-sheet-grip { width: 40px; height: 4px; margin: 0 auto 14px; border-radius: 999px; background: var(--hl-pink-track); }
.app-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-sheet-head > span { font: 700 15px/1.4 var(--hl-font); }
.app-sheet-note { margin: 10px 0 0; font: 500 12px/1.8 var(--hl-font); color: var(--hl-text-muted); }
.app-sheet-hints { gap: 9px; margin-top: 14px; }
.app-sheet-cta { width: 100%; margin-top: 18px; }
.app-sheet-dismiss { display: block; width: 100%; margin-top: 10px; text-align: center; color: var(--hl-text-faint); }
.limit-head { text-align: center; }
.limit-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--hl-pink-pale); color: var(--hl-pink-text); }
.limit-head strong { display: block; margin-top: 12px; font: 700 17px/1.5 var(--hl-font); }
.limit-head p { margin: 8px 0 0; font: 500 12px/1.9 var(--hl-font); color: var(--hl-text-muted); }
.limit-list { margin-top: 14px; padding: 14px 16px; border-radius: 24px; background: var(--hl-surface); box-shadow: var(--hl-sh-row); font: 500 12px/1.9 var(--hl-font); }
.limit-plan { margin-top: 14px; padding: 14px 16px; border-radius: 24px; background: var(--hl-surface); box-shadow: var(--hl-sh-row); }
.limit-plan .limit-list { margin-top: 10px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.limit-plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: 700 13px/1.4 var(--hl-font); }
.limit-price { font: 700 17px/1 var(--hl-font); color: var(--hl-pink-text); }
.limit-price span { font-size: 12px; color: var(--hl-text-muted); }
/* 完成画面のヘッダー（分類タグ＋とじる）。 */
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.result-head .eyebrow { margin: 0; }
/* 2026-09-20 1 文字の閉じるボタンは幅 19px で指で押しづらかったため 44px 四方にした。 */
.result-head .text-button { flex: none; min-width: 44px; padding: 6px; font-size: 15px; }
.service-generated .check-badge { width: 100%; }
.service-generated .variant-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
/* 日記タブの一覧の中に置くので、パネル自身は伸び縮みもスクロールもしない（高さ 45px の枠に閉じ込められていた）。
   後ろにある .service-panel（flex:1・overflow-y:auto）に負けないよう、2 クラスで指定する。件数は見出しの下に折り返す。 */
.service-panel.service-drafts-panel { margin-top: 8px; flex: none; overflow: visible; min-height: auto; padding: 16px 26px 0; }
.service-drafts-panel .service-list-heading { flex-wrap: wrap; row-gap: 4px; }
.service-drafts-panel .service-list-heading .field-note { margin: 0; }
.service-drafts-panel .service-list-heading h2 { margin: 0; white-space: nowrap; font-size: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* キャラ設定のヘッダー（デザイン v3 の C-01：もどる／進み具合／とじる）。 */
.profile-topbar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px 10px; background: var(--hl-bg); }
.profile-topbar-btn { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--hl-surface); box-shadow: var(--hl-sh-float); color: var(--hl-pink-text); font: 700 15px/1 var(--hl-font); cursor: pointer; }
.profile-topbar-progress { display: block; width: 110px; height: 6.5px; border-radius: 4px; background: var(--hl-pink-track); overflow: hidden; }
.profile-topbar-progress > span { display: block; height: 100%; border-radius: 4px; background: var(--hl-grad-hero); transition: width .35s var(--hl-ease-purun); }

/* はじめてのキャラづくりの入口。 */
.profile-intro-screen { flex: 1; min-height: 0; display: flex; align-items: center; overflow-y: auto; padding: 0 30px 70px; }
.profile-intro-card { width: 100%; padding: 30px 24px; border-radius: 24px; background: var(--hl-surface); box-shadow: var(--hl-sh-card); text-align: center; animation: lpPop .4s var(--hl-ease-purun); }
.profile-intro-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--hl-pink-pale); color: var(--hl-pink-text); }
.profile-intro-card h2 { margin: 16px 0 0; font: 700 17px/1.6 var(--hl-font); }
.profile-intro-card p { margin: 10px 0 0; font: 500 13px/1.9 var(--hl-font); color: var(--hl-text-muted); }
.profile-intro-card .primary-button { width: 100%; margin-top: 20px; }
.profile-intro-card .profile-intro-alt { width: 100%; margin-top: 10px; }
.intro-paths { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.intro-path { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 15px 16px; min-height: 64px; border-radius: 16px; border: 1px solid var(--hl-pink-border); background: var(--hl-surface); color: var(--hl-text); text-align: left; cursor: pointer; }
.intro-path:first-child { border-width: 2px; background: var(--hl-pink-pale); }
.intro-path strong { font: 700 15px/1.5 var(--hl-font); color: var(--hl-pink-text); }
.intro-path small { font: 500 12px/1.7 var(--hl-font); color: var(--hl-text-muted); }
/* お手本・コピー（2026-10-06）。例文は改行を残し、長いものは途中まで出す。 */
.template-list { padding-top: 8px; }
.template-heading { margin: 0; font: 700 17px/1.5 var(--hl-font); }
.template-list > .field-note { margin: 0 0 4px; }
.char-preview-options button[aria-pressed="true"] { background: var(--hl-pink-pale); border: 2px solid var(--hl-pink-text); color: var(--hl-pink-text); }
.template-card { padding: 18px; border-radius: 24px; background: var(--hl-surface); box-shadow: var(--hl-sh-card); }
.template-title { margin: 0; font: 700 15px/1.5 var(--hl-font); }
.template-note { margin: 4px 0 0; font: 500 13px/1.6 var(--hl-font); color: var(--hl-text); }
.template-tags { margin: 6px 0 0; font: 700 12px/1.6 var(--hl-font); color: var(--hl-text-muted); }
.template-sample { margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--hl-pink-pale); }
.template-sample-label { display: block; font: 700 12px/1.4 var(--hl-font); color: var(--hl-pink-text); }
.template-sample strong { display: block; margin-top: 6px; font: 700 13px/1.6 var(--hl-font); }
.template-sample p { margin: 6px 0 0; font: 500 13px/1.8 var(--hl-font); white-space: pre-line; }
.template-sample .text-button { padding: 8px 0 0; min-height: 44px; }
.template-actions { display: grid; gap: 8px; margin-top: 14px; }
.profile-template-redo { display: flex; justify-content: center; padding: 8px 22px 0; }
.profile-intro-later { margin-top: 10px; min-height: 44px; padding: 8px; border: 0; background: none; color: var(--hl-text-faint); font: 700 12px/1 var(--hl-font); cursor: pointer; }

/* 回答済みの設問は1行に畳む。 */
/* 説明文の右にステップ表示（デザイン v3 の C-01）。 */
.profile-caption-row { display: block; margin: 5px 0 0; }
.profile-caption-row .profile-group-caption { margin: 0; font: 500 13px/1.5 var(--hl-font); }
.profile-caption-row .profile-step-label { display: block; margin: 5px 0 0; text-align: right; white-space: nowrap; }
.profile-collapse-row { margin-top: 10px; text-align: center; }
.profile-collapse-row .profile-candidates-collapse { margin: 0 auto; }
.profile-next { width: 100%; margin-top: 16px; padding: 15px; font-size: 15px; }
/* 任意カード（地方・チャームポイント・絵文字・過去の日記）。 */
.profile-extra-cards { margin-top: 10px; }
.profile-extra-input { display: flex; gap: 8px; margin-top: 12px; }
.profile-extra-input .profile-tag-input { flex: 1; min-width: 0; }
.profile-extra-input .profile-tag-add { flex: none; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--hl-pink-border); border-radius: 999px; background: var(--hl-surface); color: var(--hl-pink-text); font: 700 13px/1 var(--hl-font); cursor: pointer; }
.profile-extra-actions { display: flex; align-items: center; gap: 9px; margin-top: 16px; }
.profile-extra-actions .profile-skip { flex: none; }
.profile-extra-actions .primary-button { flex: 1; min-width: 0; }
.profile-learned { display: inline-flex; align-items: center; gap: 7px; margin: 12px 0 0; padding: 9px 13px; border-radius: 999px; background: var(--hl-scene-rest-bg); color: var(--hl-scene-rest); font: 700 13px/1 var(--hl-font); }
.profile-paste { margin-top: 12px; }
/* 働いている都道府県のプルダウン（2026-10-02）。時刻の選択と同じ見た目にする。 */
.profile-select { margin-top: 12px; }
.profile-select select { display: block; width: 100%; min-width: 0; border: 1px solid var(--hl-pink-border); border-radius: 16px; background: #fff; color: var(--hl-text); padding: 12px 14px; font: 500 16px/1.5 var(--hl-font); }
.profile-paste textarea { min-height: 84px; border-radius: 16px; }
.profile-question.is-collapsed { background: var(--hl-surface); }
.profile-collapsed { display: flex; width: 100%; box-sizing: border-box; align-items: center; gap: 11px; min-height: 56px; padding: 15px 18px; border: 0; border-radius: inherit; background: none; text-align: left; font-family: var(--hl-font); cursor: pointer; }
.profile-collapsed-check { flex: none; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--hl-scene-rest-bg); color: var(--hl-scene-rest); font: 700 13px/1 var(--hl-font); }
.profile-collapsed-summary { flex: 1; min-width: 0; font: 700 13px/1.4 var(--hl-font); overflow-wrap: anywhere; }
.profile-collapsed-action { flex: none; font: 700 13px/1 var(--hl-font); color: var(--hl-pink-text); }

/* 選ぶたびに書き出し・しめ方が変わるのを見せる。 */
.profile-sample-preview { margin-top: 14px; padding: 13px 15px; border-radius: 16px; background: var(--hl-bg); }
.profile-sample-preview > span { display: block; font: 700 12px/1.5 var(--hl-font); color: var(--hl-text-faint); }
.profile-sample-preview p { margin: 7px 0 0; font: 500 12px/1.7 var(--hl-font); overflow-wrap: anywhere; white-space: pre-line; }

/* できたキャラの確認カード。 */
.profile-review-card { margin: 4px 26px 0; padding: 26px 22px; border-radius: 24px; background: var(--hl-surface); box-shadow: var(--hl-sh-hero); animation: lpPop .4s var(--hl-ease-purun); }
.profile-review-eyebrow { display: block; text-align: center; font: 700 13px/1.5 var(--hl-font); color: var(--hl-text-sub); }
.profile-review-nick { display: block; margin-top: 8px; text-align: center; font: 700 22px/1.3 var(--hl-font); color: var(--hl-pink-text); overflow-wrap: anywhere; }
.profile-review-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 14px; }
.profile-review-tags span { padding: 8px 12px; border-radius: 999px; background: var(--hl-surface-tint); color: var(--hl-text-sub); font: 700 12px/1.4 var(--hl-font); }
.profile-review-card .profile-review-paper { margin: 16px 0 0; padding: 18px 16px; border: 0; border-radius: 24px; background: var(--hl-bg); }
.profile-review-card .profile-review-label { margin-bottom: 10px; font: 700 12px/1.5 var(--hl-font); color: var(--hl-text-faint); }
.profile-review-note { margin: 12px 0 0; text-align: center; font: 500 12px/1.7 var(--hl-font); color: var(--hl-text-faint); }

@media (prefers-reduced-motion: reduce) { .profile-question { transition: none; } }
@media (max-width: 350px) {
  .profile-screen .screen-heading h1 { font-size: 17px; }
  .profile-groups { padding: 0 14px; }
  .profile-modes, .profile-preview, .profile-search { margin-left: 14px; margin-right: 14px; }
  .profile-savebar { padding-left: 14px; padding-right: 14px; }
}


/* Diary choices stay in one editor; character screens keep their existing layout. */
.diary-flow { overflow: hidden !important; }
.diary-editor { flex: 1; display: flex; flex-direction: column; min-height: 0; }
/* 下の固定バーが高く、ひとことの入力欄が隠れる（出勤・予定でとくに目立った）。
   スクロールの余白と、フォーカス時の寄せ幅を確保する。 */
.diary-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 22px 32px; overscroll-behavior: contain; scroll-padding-bottom: 32px; }
.diary-scroll textarea, .diary-scroll input { scroll-margin-bottom: 140px; }
.diary-path { display: flex; flex-wrap: wrap; gap: 7px; }
/* 選んだ内容の表示は、ほかの画面の「お礼・会えたこと」の丸い札と同じ形にする（角丸の枠と 2 種類あった）。 */
.diary-answer { border: 0; background: var(--hl-surface); box-shadow: var(--hl-sh-row); border-radius: 999px; min-height: 40px; padding: 9px 14px; font: 700 13px/1.5 var(--hl-font); color: var(--hl-text-sub); cursor: pointer; text-align: left; }
.diary-answer span { color: var(--hl-pink-text); margin-left: 6px; }
.diary-undo { background: none; border: 0; color: var(--hl-text-muted); font: 500 12px/1.5 var(--hl-font); padding: 8px 0; min-height: 36px; cursor: pointer; }
.diary-history-hint { margin: 0; color: var(--hl-text-muted); font: 500 12px/1.7 var(--hl-font); }
.diary-history-hint:empty { display: none; }
.diary-question-heading .question-title { margin: 12px 0 14px !important; font-size: 22px; }
.diary-question-heading .field-note { margin: -6px 0 14px; }
.diary-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.diary-choice { background: #fff; border: 1px solid var(--hl-pink-border); box-shadow: var(--hl-sh-row); border-radius: 16px; min-height: 64px; padding: 14px 12px; cursor: pointer; font: 700 15px/1.65 var(--hl-font); text-align: left; overflow-wrap: anywhere; }
.diary-choice[aria-pressed="true"] { background: var(--hl-pink-pale); border-color: var(--hl-pink-text); color: var(--hl-pink-text); }
.diary-memo { margin-top: 24px; }
.diary-memo label, .diary-input { display: block; font: 700 13px/1.7 var(--hl-font); }
.diary-memo textarea, .diary-input input, .diary-input select { display: block; width: 100%; border: 1px solid var(--hl-pink-border); border-radius: 16px; background: #fff; padding: 12px; line-height: 1.7; margin-top: 8px; font-family: var(--hl-font-body-long); color: var(--hl-text); }
.diary-memo textarea { resize: vertical; min-height: 72px; }
.diary-input { margin: 18px 0; }
.diary-details { margin-top: 24px; padding: 16px 3px 8px; border-top: 1px solid var(--hl-pink-track); }
.diary-details-heading { color: var(--hl-text-sub); font: 700 13px/1.6 var(--hl-font); }
.diary-details-heading small { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--hl-text-muted); }
.diary-details .facts-group { margin-top: 16px; }
.diary-details .facts-group legend, .diary-details .diary-input { font-size: 12px; color: var(--hl-text-sub); }
.diary-details .choice-row button { padding: 8px 12px !important; font-size: 12px !important; line-height: 1.5 !important; min-height: 44px; box-shadow: none !important; }
.diary-memo { border-top: 1px solid var(--hl-pink-track); padding-top: 18px; }
.diary-memo label { font-size: 12px; color: var(--hl-text-sub); }
.diary-generate-bar { flex: none; background: var(--hl-bg); padding: 8px 22px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--hl-pink-track); }
.diary-generate-bar .primary-button { width: 100%; }
.diary-generate-bar .field-note { margin: 0 0 8px; }
.diary-generate-bar .field-note:empty { display: none; }
.diary-generate-bar > span { display: block; text-align: center; font: 500 13px/1.5 var(--hl-font); color: var(--hl-text-muted); margin-top: 8px; }
.diary-date-check, .diary-similar { padding: 12px 14px; background: #fff; border: 1px solid var(--hl-pink-border); border-radius: 16px; font: 500 12px/1.7 var(--hl-font); margin-top: 18px; }
.diary-date-check p, .diary-similar p { margin: 4px 0; }
.diary-reuse { background: #fff; border: 1px solid var(--hl-pink-border); color: var(--hl-pink-text); padding: 12px; border-radius: 16px; font: 700 12px/1.7 var(--hl-font); cursor: pointer; width: 100%; text-align: left; margin: 14px 0 0; }
.diary-greeting { display: block; margin: 12px auto 0; }
@media (max-width: 350px) {
  .diary-scroll { padding-left: 16px; padding-right: 16px; }
  .diary-generate-bar { padding-left: 16px; padding-right: 16px; }
  .diary-choice { padding: 12px 10px; font-size: 13px; }
}

.diary-scroll .choice-row button[aria-pressed="true"] { background: var(--hl-pink-pale) !important; color: #7d354e !important; border: 1px solid #bb7890 !important; box-shadow: none !important; }

/* API 接続版もデモと同じ画面を使う。 */
.service-panel { padding: 24px; overflow-y: auto; flex: 1; min-height: 0; }
.service-panel h1 { font-size: 22px; margin-bottom: 20px; }
.service-panel p { line-height: 1.8; }
.service-draft { display: flex; flex-direction: column; gap: 8px; width: 100%; background: var(--hl-surface); border: 1px solid var(--hl-pink-border); border-radius: 16px; padding: 18px; margin: 12px 0; text-align: left; color: var(--hl-text); font: inherit; cursor: pointer; }
.service-draft span { font-size: 12px; color: var(--hl-text-muted); }
/* 上端の戻る・閉じるを隠さないよう、ナビゲーションの下に出す。閉じるは右上の ✕（先頭が「閉じる」の読み上げだと不自然だった）。 */
.service-alert { position:absolute; top:96px; left:12px; right:12px; z-index:120; padding:14px 44px 10px 16px; background:#fff0f1; border:1px solid #f0c5d1; border-radius:16px; box-shadow:0 8px 24px rgba(77,58,66,.18); font-size:13px; max-height:min(240px,calc(100% - 24px)); overflow:auto; }
.service-alert p { margin:0; line-height:1.7; }
.service-alert .text-button { margin-top:6px; }
.service-alert-actions { display:flex; flex-wrap:wrap; gap:0 14px; }
.service-alert-close { position:absolute; top:4px; right:4px; width:44px; height:44px; border:0; background:transparent; color:var(--hl-text-muted); font:700 15px/1 var(--hl-font); cursor:pointer; }
.service-overlay { position: absolute; inset: 0; z-index: 100; display: grid; place-items: center; background: #4d3a4240; padding: 24px; }
.service-dialog { background: var(--hl-surface); border-radius: 24px; padding: 24px; text-align: center; }
.service-draft-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 22px; }
.service-materials { background: white; border: 1px solid var(--hl-pink-border); border-radius: 16px; padding: 18px; margin: 18px 0; }
.service-materials h2 { font-size: 17px; }

/* ホーム・設定・ナビゲーション共通 */
.dashboard-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 22px 0; flex-wrap:wrap; }
.dashboard-logo { color:var(--hl-pink-strong); font:700 22px/1.3 var(--hl-font); letter-spacing:.07em; font-style:italic; white-space:nowrap; }
.dashboard-trial { background:white; border-radius:999px; padding:10px 14px; font:700 13px/1.3 var(--hl-font); color:var(--hl-text-muted); white-space:nowrap; }
.dashboard-greeting { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:28px 22px 0; }
.dashboard-greeting .home-title { font-size:22px; line-height:1.6; }
.dashboard-greeting p { margin:6px 0 0; color:var(--hl-text-muted); font:500 13px/1.6 var(--hl-font); letter-spacing:.06em; }
.dashboard-ring { border:0; cursor:pointer; padding:0; width:60px; height:60px; border-radius:50%; display:grid; place-items:center; flex:none; }
.dashboard-ring > span { width:46px; height:46px; border-radius:50%; background:var(--hl-bg); display:flex; align-items:center; justify-content:center; color:var(--hl-pink-text); font:700 13px/1 var(--hl-font); }
.dashboard-ring small { font-size:12px; color:var(--hl-text-muted); }
.dashboard-hero { border:0; margin:22px 22px 18px; padding:22px 24px; min-height:70px; display:flex; align-items:center; justify-content:space-between; gap:12px; background:linear-gradient(110deg,#eb7a9c,#e56890); color:white; border-radius:999px; box-shadow:0 10px 24px #e26a8d28; font:700 22px/1.5 var(--hl-font); letter-spacing:.06em; cursor:pointer; flex-shrink:0; }
.dashboard-hero small { color:var(--hl-pink-text); background:white; border-radius:999px; padding:7px 12px; white-space:nowrap; font:700 13px/1.4 var(--hl-font); letter-spacing:0; }
.dashboard-character { display:flex; align-items:center; gap:10px; margin:0 22px; padding:14px 16px; background:white; border:0; border-radius:24px; text-align:left; font:inherit; cursor:pointer; flex-shrink:0; }
.dashboard-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:50%; background:#fbe0e9; color:var(--hl-pink-text); flex:none; }
.dashboard-icon svg { width:22px; height:22px; }
.dashboard-character .dashboard-icon { width:36px; height:36px; }
.dashboard-character .dashboard-icon svg { width:19px; height:19px; }
.dashboard-character-copy { flex:1; min-width:0; }
/* キャラ名は切らずに折り返す（右に切り替え・調整のボタンが並び、「いまのキャ…」で切れていた）。 */
.dashboard-character-copy strong { display:block; font:700 13px/1.6 var(--hl-font); overflow-wrap:anywhere; }
.dashboard-character-copy small { display:block; font:500 13px/1.6 var(--hl-font); color:var(--hl-text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-adjust { flex:none; font:700 13px/1.5 var(--hl-font); color:var(--hl-pink-text); }
.app-frame .dashboard-section-title { margin:24px 22px 10px; font:700 15px/1.5 var(--hl-font); color:var(--hl-text-muted); }
.dashboard-scenes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:0 22px; }
.dashboard-scene { display:flex; flex-direction:column; align-items:flex-start; padding:18px 16px 16px; gap:8px; border:0; border-radius:24px; background:white; text-align:left; min-height:128px; font-family:var(--hl-font); cursor:pointer; }
.dashboard-scene strong { color:var(--hl-text); font-size:17px; line-height:1.5; margin-top:1px; }
.dashboard-scene small { color:var(--hl-text-muted); font-size:13px; line-height:1.6; }
.dashboard-disclosure { margin:18px 24px; color:var(--hl-text-muted); font:500 12px/1.7 var(--hl-font); }
.dashboard-nav { display:flex; flex:none; gap:6px; margin-top:auto; padding:12px 18px max(12px,env(safe-area-inset-bottom)); background:white; }
.dashboard-nav button { flex:1; border:0; background:transparent; display:flex; flex-direction:column; align-items:center; gap:6px; padding:0; color:var(--hl-text-muted); font:700 13px/1.4 var(--hl-font); cursor:pointer; }
.dashboard-nav-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:#fbedf2; color:#c06f8d; }
.dashboard-nav-icon svg { width:22px; height:22px; }
.dashboard-nav [aria-current="page"] { color:var(--hl-pink-text); }
.dashboard-nav [aria-current="page"] .dashboard-nav-icon { background:#e96f95; color:white; box-shadow:0 5px 14px #e96f9520; }
.dashboard-settings { flex:1; min-height:0; overflow-y:auto; padding:20px 22px 24px; }
.dashboard-settings h1 { font:700 22px/1.6 var(--hl-font); }
.dashboard-account { display:flex; width:100%; align-items:center; gap:13px; padding:18px; margin:18px 0 16px; border:0; border-radius:24px; background:white; color:var(--hl-text); text-align:left; font-family:var(--hl-font); cursor:pointer; }
.dashboard-account-copy { flex:1; min-width:0; display:flex; flex-direction:column; }
.dashboard-account strong { font:700 15px/1.5 var(--hl-font); overflow-wrap:anywhere; }
.dashboard-account small { margin:3px 0 0; color:var(--hl-text-muted); font:500 13px/1.6 var(--hl-font); }
.dashboard-plan { padding:7px 10px; white-space:nowrap; border-radius:999px; background:var(--hl-pink-text); color:white; font:700 12px/1.2 var(--hl-font); }
.dashboard-menu { background:white; border-radius:24px; overflow:hidden; }
.dashboard-menu-row { width:100%; min-height:72px; padding:18px; display:flex; align-items:center; gap:14px; background:none; border:0; border-top:1px solid #f3d2de; text-align:left; cursor:pointer; font-family:var(--hl-font); }
.dashboard-menu-row:first-child { border-top:0; }
/* メニューは overflow:hidden で角を丸めているため、外側のフォーカスリングは上下の線だけが残る。行の内側に描く。 */
.app-frame .dashboard-menu-row:focus-visible { outline-offset:-4px; border-radius:24px; }
.dashboard-menu-row .dashboard-icon { width:36px; height:36px; border-radius:16px; }
.dashboard-menu-copy { flex:1; min-width:0; }
.dashboard-menu-copy > span { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.dashboard-menu-copy strong { font-size:15px; line-height:1.5; color:var(--hl-text); }
.dashboard-menu-copy > small { display:block; color:var(--hl-text-muted); font-size:13px; line-height:1.6; margin-top:3px; }
/* 補足の札は中立の色（緑は「OK・完了」にだけ使う。テストユーザーやおすすめまで緑で、意味が読めなかった）。 */
.tag-neutral { background:var(--hl-surface-tint); color:var(--hl-text-sub); padding:4px 8px; border-radius:999px; font:700 12px/1.4 var(--hl-font); }
.dashboard-arrow { color:var(--hl-pink-text); font-size:22px; }
.app-frame .dashboard-menu-row:disabled { opacity:1; cursor:default; }
.dashboard-menu-row:disabled .dashboard-arrow { visibility:hidden; }
.dashboard-logout { display:block; margin:18px auto 0; padding:12px 24px; border:0; background:none; color:var(--hl-text-muted); font:500 12px/1.5 var(--hl-font); cursor:pointer; }
.dashboard-help { font:500 12px/1.8 var(--hl-font); padding:10px; }
@media(max-width:360px) {
  .dashboard-header { gap:8px; } .dashboard-logo { font-size:22px; }
  .dashboard-trial { font-size:12px; padding:8px 10px; }
  .dashboard-hero { padding:18px; font-size:17px; }
  .dashboard-scenes { gap:12px; } .dashboard-scene { padding:16px 14px; min-height:136px; }
  .dashboard-scene strong { font-size:15px; }
  .dashboard-menu-row { padding:16px 13px; gap:10px; }
}


.dashboard-home { padding-bottom: 24px; }


.service-content { display:flex; flex-direction:column; flex:1; min-height:0; }
.service-list-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.service-list-heading h1 { margin:0; }
.service-save-status { flex-basis:100%; display:flex; align-items:center; gap:7px; min-height:24px; margin-bottom:0; color:var(--hl-text-muted); font:500 13px/1.6 var(--hl-font); }
.service-save-dot { width:6px; height:6px; flex:none; border-radius:50%; background:var(--hl-pink-text); }
.service-dialog { max-width:300px; width:100%; box-sizing:border-box; }
.service-dialog > p { font:700 15px/1.8 var(--hl-font); }
.service-dialog .field-note { font-weight:400; font-size:12px; }
.service-network { position:absolute; top:12px; left:12px; right:12px; z-index:115; margin:0; padding:12px 16px; background:#fff5df; border:1px solid #ead4a7; border-radius:16px; box-shadow:0 8px 24px rgba(77,58,66,.14); color:#79552c; font:500 12px/1.7 var(--hl-font); }


.character-invite { flex:1; min-height:0; overflow-y:auto; display:flex; flex-direction:column; padding:22px 24px 30px; gap:24px; }
.character-invite-back { align-self:flex-start; }
.character-invite-copy { margin:auto 0; padding:20px 0; }
.character-invite-label { display:inline-block; padding:7px 12px; margin-bottom:20px; border-radius:999px; background:white; color:var(--hl-pink-text); font:700 12px/1.5 var(--hl-font); }
.character-invite h1 { font:700 22px/1.7 var(--hl-font); }
.character-invite p { font:500 15px/1.9 var(--hl-font); margin:18px 0 0; }
.character-invite .field-note { font-size:12px; color:var(--hl-text-muted); }
.character-invite-actions { display:flex; flex-direction:column; gap:12px; }
.character-invite-actions .primary-button { width:100%; }


/* 画面の下端に溶け込む通信表示。レイアウトや背景の明るさは変えない。 */
.service-loading { position:absolute; left:0; right:0; bottom:0; z-index:110; padding:28px 24px max(20px,env(safe-area-inset-bottom)); background:linear-gradient(to bottom,transparent,var(--hl-bg) 22px); }
.service-loading-track { height:2px; overflow:hidden; border-radius:999px; background:#f4dce5; margin-bottom:16px; }
.service-loading-track i { display:block; height:100%; width:36%; border-radius:inherit; background:linear-gradient(90deg,transparent,#e98aab,transparent); animation:service-glide 2s ease-in-out infinite; }
.service-loading-row { display:flex; align-items:center; gap:12px; min-height:30px; }
.service-loading-marks { display:flex; align-items:center; gap:4px; flex:none; }
.service-loading-marks i { display:block; width:5px; height:8px; border-radius:999px; background:#df789b; animation:service-breathe 1.6s ease-in-out infinite; }
.service-loading-marks i:nth-child(2) { animation-delay:.18s; }
.service-loading-marks i:nth-child(3) { animation-delay:.36s; }
.service-loading-copy { flex:1; min-width:0; }
.service-loading-copy p { margin:0; color:var(--hl-text-sub); font:500 12px/1.7 var(--hl-font); }
.service-loading-copy .service-loading-hint { margin-top:5px; font-size:13px; color:var(--hl-text-muted); }
.service-loading-row .text-button { flex:none; padding:10px 0 10px 6px; font-size:12px; }
@keyframes service-glide { from { transform:translateX(-110%); } to { transform:translateX(390%); } }
@keyframes service-breathe { 0%,80%,100% { transform:translateY(1px) scaleY(.75); opacity:.4; } 40% { transform:translateY(-2px) scaleY(1); opacity:1; } }
@media(prefers-reduced-motion:reduce) { .service-loading-track i,.service-loading-marks i { animation:none; } .service-loading-track i { width:100%; } }

/* 本文生成の待ち時間だけ、デザイン v3 の全画面ローディングに切り替える。 */
.service-generating { position:absolute; inset:0; z-index:110; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; padding:0 40px 90px; background:var(--hl-bg); }
.service-generating-hint { margin:0; font:500 13px/1.7 var(--hl-font); color:var(--hl-text-muted); text-align:center; }
.confirm-switch { margin-top: 10px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; min-height: 56px; border-radius: 16px; border: 1px solid var(--hl-pink-track); background: var(--hl-surface); color: var(--hl-text); text-align: left; cursor: pointer; }
.confirm-switch-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.confirm-switch-copy strong { font: 700 13px/1.5 var(--hl-font); }
.confirm-switch-copy small { font: 500 12px/1.6 var(--hl-font); color: var(--hl-text-muted); overflow-wrap: anywhere; }
.confirm-switch-knob { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--hl-pink-track); transition: background .2s; }
.confirm-switch-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.confirm-switch[aria-checked="true"] .confirm-switch-knob { background: var(--hl-pink); }
.confirm-switch[aria-checked="true"] .confirm-switch-knob::after { transform: translateX(18px); }
.check-quiet { display: block; margin: 8px 0 0; padding-left: 2px; font: 500 12px/1.6 var(--hl-font); color: var(--hl-text-muted); text-align: left; }
.card-title-copy { flex: none; min-height: 32px; padding: 4px 0 4px 8px; font-size: 12px; }
.result-copybar-row .secondary-button { flex: 1; min-width: 0; }
.result-more { flex: none; width: 48px; height: 48px; font-size: 18px; }
.adjust-chip { min-height: 44px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--hl-pink-border); background: var(--hl-surface); color: var(--hl-pink-text); font: 700 13px/1.4 var(--hl-font); cursor: pointer; }
.adjust-chip[aria-pressed="true"] { background: var(--hl-pink); border-color: var(--hl-pink); color: #fff; }
.usage-pace { margin: 10px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--hl-pink-pale); font: 500 13px/1.7 var(--hl-font); color: var(--hl-text); }
.hist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hist-filter-btn { flex: none; width: auto; min-height: 40px; padding: 8px 14px; margin: 0; font-size: 12px; }
.hist-filter-btn[data-on="true"] { background: var(--hl-pink-pale); border-color: var(--hl-pink); }
.hist-filter { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.hist-filter .hist-chips { flex-wrap: wrap; overflow: visible; }
.hist-filter .primary-button { width: 100%; }
.hist-search { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--hl-pink-track); background: var(--hl-surface); font: 500 16px/1.4 var(--hl-font); color: var(--hl-text); }
.hist-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.hist-chips .adjust-chip { flex: none; }
.hist-filter .field-note { margin: 0; }
.adjust-chip:disabled { color: var(--hl-text-faint); border-color: var(--hl-pink-track); cursor: default; }
.check-actions { margin-top:10px; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.service-generating-leave { width:100%; max-width:320px; }
.service-generating-note { margin:-8px 0 0; font:500 12px/1.7 var(--hl-font); color:var(--hl-text-faint); text-align:center; }
.home-background { flex:none; margin:16px 26px 0; width:calc(100% - 52px); display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 18px; min-height:48px; border-radius:16px; border:1px solid var(--hl-pink-border); background:var(--hl-surface); color:var(--hl-text); text-align:left; cursor:pointer; }
.home-background-copy { display:flex; flex-direction:column; gap:3px; min-width:0; }
.home-background-copy strong { font:700 15px/1.5 var(--hl-font); color:var(--hl-pink-text); }
.home-background-copy small { font:500 12px/1.6 var(--hl-font); color:var(--hl-text-muted); overflow-wrap:anywhere; }
.home-background[data-state="pending"] { cursor:default; }
.home-background[data-state="pending"] .dashboard-arrow { visibility:hidden; }
@media(prefers-reduced-motion:reduce) { .service-generating span { animation:none !important; } }


/* 2026-09-20 高さ 34px で指で押しづらかったため 44px にした（隣のお試し表示は押せないので広げない）。 */
.dashboard-login { border:0; cursor:pointer; font-family:var(--hl-font); min-height:44px; padding-top:13px; padding-bottom:13px; }
.service-generated h1 { margin:18px 0; }
.service-generated h2 { font:700 17px/1.6 var(--hl-font); margin:18px 0; }
.service-generated-body { white-space:pre-wrap; overflow-wrap:anywhere; background:white; border-radius:24px; padding:22px; font:500 15px/2 var(--hl-font); }
.service-generated .primary-button { width:100%; margin-top:16px; }

/* 内容全文を選ぶ入口。横スクロールや文章の省略をしない。 */
.content-picker { padding:8px 22px 0; }
.content-picker h2 { margin:0; font:700 22px/1.6 var(--hl-font); }
.content-picker-note { margin:8px 0 14px; color:var(--hl-text-muted); font:500 12px/1.8 var(--hl-font); }
.content-filters { display:grid; grid-template-columns:.9fr .65fr 1.15fr 1.4fr; gap:6px; margin:0 0 14px; }
.content-filters button { min-height:44px; padding:9px 6px; border:1px solid var(--hl-pink-border); border-radius:16px; background:var(--hl-surface); color:var(--hl-text-sub); font:500 13px/1.5 var(--hl-font); cursor:pointer; }
.content-filters button[aria-pressed="true"] { border-color:var(--hl-pink-text); background:var(--hl-pink-pale); color:var(--hl-pink-text); font-weight:700; }
.content-cards { display:grid; gap:10px; }
.content-card { position:relative; width:100%; padding:15px 38px 17px 17px; text-align:left; border:1px solid var(--hl-pink-border); border-radius:24px; background:var(--hl-surface); color:var(--hl-text); font-family:var(--hl-font); box-shadow:var(--hl-sh-row); cursor:pointer; }
.content-card-group { display:block; margin-bottom:5px; font-size:13px; color:var(--hl-pink-text); }
.content-card strong { display:block; font-size:15px; font-weight:700; line-height:1.75; overflow-wrap:anywhere; }
.content-card-next { position:absolute; right:16px; top:calc(50% - 8px); color:var(--hl-pink-text); }
.content-card:active { transform:scale(.985); }
.notice-entry { display:flex; justify-content:space-between; gap:12px; align-items:center; flex:none; margin:4px 22px 14px; padding:15px 4px; border:0; border-bottom:1px solid var(--hl-pink-border); background:none; color:var(--hl-text-sub); font:700 13px/1.6 var(--hl-font); text-align:left; cursor:pointer; }
.content-confirm { display:flex; flex-direction:column; flex:1; padding:28px 24px 22px; }
.content-confirm-label { color:var(--hl-pink-text); font:700 12px/1.6 var(--hl-font); }
.content-confirm h1 { margin:16px 0; padding:24px 20px; border-radius:24px; background:var(--hl-surface); box-shadow:var(--hl-sh-card); font:700 22px/1.85 var(--hl-font); overflow-wrap:anywhere; }
.content-confirm > p:not(.content-confirm-label) { font:500 13px/1.9 var(--hl-font); color:var(--hl-text-muted); }
.content-confirm-actions { margin-top:auto; padding-top:24px; display:flex; flex-direction:column; align-items:stretch; gap:8px; }
.content-confirm-actions .primary-button { width:100%; }
.content-card:focus-visible,.content-filters button:focus-visible,.notice-entry:focus-visible { outline:3px solid var(--hl-pink-text); outline-offset:3px; }

.content-draft-management { font:500 12px/1.8 var(--hl-font); color:var(--hl-text-muted); margin:8px 0; }
.content-draft-management summary { padding:12px 0; cursor:pointer; }

.content-choice-page { display:flex; flex-direction:column; flex:1; min-height:0; animation:hl-rise .32s var(--hl-ease-purun); }
.content-choice-page > .text-button { align-self:flex-start; }
.content-choice-page h1 { outline:none; }
.content-choice-page .content-card { border:0; border-radius:24px; padding:22px 40px 22px 20px; }
.dashboard-scene:focus-visible,.dashboard-hero:focus-visible { outline:3px solid var(--hl-pink-text); outline-offset:3px; }

.dashboard-hero { font-size:clamp(14px,4vw,17px); letter-spacing:0; }

.quick-diary .diary-scroll > .text-button { display:block; margin-top:14px; }
.quick-diary .question-title { outline:none; }

.quick-summary { display:flex; flex-wrap:wrap; gap:8px; }
.quick-diary textarea { border:1px solid var(--hl-pink-border); border-radius:16px; padding:14px; font:inherit; width:100%; box-sizing:border-box; }

.diary-navigation { display:flex; align-items:center; justify-content:space-between; padding:12px 22px 0; flex-shrink:0; }
.diary-navigation button { width:42px; height:42px; border:0; cursor:pointer; background:var(--hl-surface); border-radius:50%; box-shadow:var(--hl-sh-float); font:700 15px/1 var(--hl-font); color:var(--hl-pink-text); }
.diary-navigation .diary-navigation-close { font-size:12px; color:var(--hl-text-faint); }
.quick-diary .diary-generate-bar { margin-top:auto; }

.diary-memo-page .diary-generate-bar > .text-button { display:block; width:100%; margin-top:8px; }

/* ===== v3 デザイン適用：ホーム ===== */
.dashboard-nudge { display:flex; align-items:center; gap:11px; margin:16px 22px 0; padding:13px 16px; border:0; border-radius:16px; background:var(--hl-surface-tint); text-align:left; font-family:var(--hl-font); cursor:pointer; flex-shrink:0; }
.dashboard-nudge-icon { width:32px; height:32px; background:#fff; }
.dashboard-nudge-icon svg { width:17px; height:17px; }
.dashboard-nudge-copy { flex:1; min-width:0; }
.dashboard-nudge-copy strong { display:block; font:700 13px/1.55 var(--hl-font); color:var(--hl-text-sub); }
.dashboard-nudge-copy small { display:block; margin-top:3px; font:500 13px/1.5 var(--hl-font); color:var(--hl-text-muted); }
.dashboard-nudge:active { transform:scale(.985); }
.dashboard-character { margin-top:0; }
button.dashboard-adjust { border:0; background:none; padding:10px 2px; min-height:40px; cursor:pointer; font:700 13px/1.5 var(--hl-font); color:var(--hl-pink-text); }
.notice-card { display:flex; align-items:center; gap:12px; width:calc(100% - 44px); margin:16px 22px 0; padding:15px 17px; border:0; border-radius:24px; background:var(--hl-surface); box-shadow:var(--hl-sh-row); text-align:left; font-family:var(--hl-font); cursor:pointer; flex-shrink:0; }
.notice-card-icon { width:38px; height:38px; background:var(--hl-scene-work-bg); color:var(--hl-scene-work); }
.notice-card-icon svg { width:18px; height:18px; }
.notice-card-copy { flex:1; min-width:0; }
.notice-card-copy strong { display:block; font:700 13px/1.4 var(--hl-font); color:var(--hl-text); }
.notice-card-copy small { display:block; margin-top:3px; font:500 12px/1.5 var(--hl-font); color:var(--hl-text-muted); }
.notice-card:active { transform:scale(.985); }
.notice-card:focus-visible, .dashboard-nudge:focus-visible { outline:3px solid var(--hl-pink-text); outline-offset:3px; }

/* ===== v3 デザイン適用：日記フロー ===== */
.scene-chip { display:inline-flex; align-items:center; gap:7px; margin:2px 0 0; padding:8px 13px; border-radius:999px; background:var(--hl-surface); box-shadow:var(--hl-sh-row); font:700 13px/1.4 var(--hl-font); color:var(--hl-text-sub); }
.scene-chip-icon { display:grid; place-items:center; width:20px; height:20px; flex:none; border-radius:50%; }
.scene-chip-icon svg { width:11px; height:11px; }
.hito-list { display:flex; flex-direction:column; gap:10px; }
.hito-option { display:flex; align-items:center; gap:11px; min-height:56px; padding:16px 21px; border:0; border-radius:999px; background:var(--hl-surface); box-shadow:var(--hl-sh-row); font:700 15px/1.5 var(--hl-font); color:var(--hl-text); text-align:left; cursor:pointer; overflow-wrap:anywhere; transition:transform .15s var(--hl-ease-purun); }
.hito-option:active { transform:scale(.97); }
.hito-option:focus-visible { outline:3px solid var(--hl-pink-text); outline-offset:3px; }
.skip-dashed { display:block; width:100%; margin-top:14px; min-height:48px; padding:14px; border:1.5px dashed var(--hl-pink-border); border-radius:999px; background:none; color:var(--hl-text-sub); font:700 13px/1.5 var(--hl-font); cursor:pointer; }
.skip-dashed:hover { background:var(--hl-pink-pale); }
.confirm-rows { margin-top:4px; padding:2px 18px; border-radius:24px; background:var(--hl-surface); box-shadow:var(--hl-sh-card); }
.confirm-row { display:flex; align-items:center; gap:10px; padding:13px 0; border-top:1px solid var(--hl-pink-track); }
.confirm-row:first-child { border-top:0; }
.confirm-label { flex:none; width:64px; font:700 12px/1.5 var(--hl-font); color:var(--hl-text-sub); }
.confirm-value { flex:1; min-width:0; font:700 13px/1.6 var(--hl-font); overflow-wrap:anywhere; }
.confirm-edit { flex:none; min-height:40px; padding:9px 13px; border:1.5px solid var(--hl-pink-border); border-radius:999px; background:var(--hl-surface); color:var(--hl-pink-text); font:700 13px/1.4 var(--hl-font); cursor:pointer; }
.confirm-memo { margin-top:20px; }
.confirm-memo label { display:flex; align-items:center; gap:8px; font:700 13px/1.6 var(--hl-font); color:var(--hl-text-sub); }
.confirm-memo textarea { display:block; width:100%; margin-top:10px; padding:14px 16px; border:1.5px solid var(--hl-pink-border); border-radius:16px; background:var(--hl-surface); box-shadow:var(--hl-sh-row); color:var(--hl-text); font:500 15px/1.8 var(--hl-font-body-long); resize:vertical; min-height:80px; }

/* ===== v3 デザイン適用：完成画面 ===== */
.check-badge { display:flex; align-items:center; gap:11px; width:100%; margin:4px 0 14px; padding:13px 16px; border:0; border-radius:24px; background:var(--hl-surface); box-shadow:var(--hl-sh-row); text-align:left; font-family:var(--hl-font); cursor:pointer; }
.check-badge-icon { display:grid; place-items:center; width:30px; height:30px; flex:none; border-radius:50%; background:var(--hl-scene-rest-bg); color:var(--hl-scene-rest); font:700 13px/1 var(--hl-font); }
.check-badge[data-has-issues="true"] .check-badge-icon { background:var(--hl-pink-pale); color:var(--hl-pink-text); }
.check-badge-copy { flex:1; min-width:0; }
.check-badge-copy strong { display:block; font:700 13px/1.55 var(--hl-font); color:var(--hl-text); }
.check-badge-copy small { display:block; margin-top:2px; font:500 12px/1.55 var(--hl-font); color:var(--hl-text-muted); }
.check-badge-arrow { flex:none; color:var(--hl-pink-text); font-size:17px; }
.check-badge:focus-visible { outline:3px solid var(--hl-pink-text); outline-offset:3px; }
.variant-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:9px; }
.variant-head > span { font:700 13px/1.5 var(--hl-font); color:var(--hl-text-sub); }
.variant-head small { font:500 13px/1.5 var(--hl-font); color:var(--hl-text-faint); }
.variant-head > button { flex:none; border:0; background:none; min-height:40px; padding:8px 2px; color:var(--hl-pink-text); font:700 13px/1.5 var(--hl-font); cursor:pointer; }
.variant-tabs { display:flex; gap:8px; margin-bottom:12px; }
.variant-tabs button { flex:1; min-width:0; padding:10px 12px; min-height:52px; border:1.5px solid var(--hl-pink-border); border-radius:16px; background:var(--hl-surface); color:var(--hl-text-sub); text-align:left; font-family:var(--hl-font); cursor:pointer; }
.variant-tabs button[aria-pressed="true"] { border-color:transparent; background:var(--hl-grad-hero); color:#fff; box-shadow:var(--hl-sh-card); }
.variant-num { display:block; font:700 12px/1 var(--hl-font); opacity:.75; }
.variant-title { display:block; margin-top:5px; font:700 13px/1.35 var(--hl-font); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.diary-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.char-badge { flex:none; padding:5px 8px; border-radius:999px; background:var(--hl-scene-thanks-bg); color:var(--hl-scene-thanks); font:700 12px/1.4 var(--hl-font); }
.result-nudge { margin:16px 0 0; width:100%; }

/* ===== v3 デザイン適用：キャラ設定 ===== */
.profile-step-label { margin:0 0 6px; font:700 12px/1.5 var(--hl-font); color:var(--hl-text-faint); letter-spacing:.02em; }
.profile-checkpoint { display:flex; flex-direction:column; margin:16px 20px; padding:24px 20px 20px; border-radius:24px; background:var(--hl-surface); box-shadow:var(--hl-sh-hero); text-align:center; animation:lpPop .4s var(--hl-ease-purun); }
.profile-checkpoint-label { font:700 13px/1.5 var(--hl-font); color:var(--hl-text-sub); }
.profile-checkpoint-nick { margin-top:8px; font:700 22px/1.4 var(--hl-font); color:var(--hl-pink-text); overflow-wrap:anywhere; }
.profile-checkpoint-preview { margin-top:14px; padding:13px 15px; border-radius:16px; background:var(--hl-bg); text-align:left; }
.profile-checkpoint-preview > span { display:block; font:700 12px/1.5 var(--hl-font); color:var(--hl-text-faint); }
.profile-checkpoint-preview p { margin:7px 0 0; font:500 13px/1.75 var(--hl-font); }
.profile-checkpoint > .primary-button { margin-top:16px; width:100%; }
.profile-checkpoint-more { margin-top:10px; width:100%; min-height:48px; padding:14px; border:1.5px dashed var(--hl-pink-border); border-radius:999px; background:none; color:var(--hl-pink-text); font:700 13px/1.5 var(--hl-font); cursor:pointer; }
.profile-checkpoint-note { margin-top:12px; font:700 12px/1.5 var(--hl-font); color:var(--hl-text-faint); }
.profile-checkpoint-rest { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin-top:8px; }
@media (max-width: 350px) { .profile-progress, .profile-checkpoint { margin-left:14px; margin-right:14px; } }
.hito-option[aria-pressed="true"] { background:var(--hl-pink-pale); color:var(--hl-pink-text); box-shadow:var(--hl-sh-card); }

/* カード入力 iframe は通常画面の再描画から切り離して保持する。見た目はアプリの下から出るシートに揃える。 */
.billing-overlay { position:fixed; inset:0; z-index:1000; background:rgba(77,58,66,.42); display:flex; align-items:flex-end; justify-content:center; padding:0; }
.billing-panel { box-sizing:border-box; width:100%; max-width:440px; max-height:92dvh; overflow:auto; border-radius:24px 24px 0 0; background:var(--hl-bg); color:var(--hl-text); padding:10px 22px max(22px,env(safe-area-inset-bottom)); font:500 13px/1.7 var(--hl-font,sans-serif); }
.billing-panel h2 { font:700 15px/1.4 var(--hl-font); margin:0; }
.billing-panel h3 { font:700 15px/1.5 var(--hl-font); margin:14px 0 0; }
.billing-panel p { margin:8px 0 0; }
.billing-lead { color:var(--hl-text-muted); font-size:13px; }
.billing-panel button { margin-top:12px; }
.billing-panel [hidden] { display:none!important; }
.billing-methods { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px; }
.billing-methods button { margin:0; min-height:56px; padding:10px 12px; border:1.5px solid var(--hl-pink-border); border-radius:16px; background:var(--hl-surface); color:var(--hl-text-sub); text-align:left; font-family:var(--hl-font); cursor:pointer; }
.billing-methods button strong { display:block; font:700 13px/1.4 var(--hl-font); }
.billing-methods button small { display:block; margin-top:2px; font:500 12px/1.4 var(--hl-font); opacity:.85; }
.billing-methods button[aria-selected="true"] { border-color:transparent; background:var(--hl-grad-hero); color:#fff; box-shadow:var(--hl-sh-card); }
.billing-why { margin-top:12px; padding:14px 16px; border-radius:24px; background:var(--hl-pink-pale); color:var(--hl-text); }
.billing-why h3 { margin:0; font:700 15px/1.5 var(--hl-font); color:var(--hl-pink-text); }
.billing-why ul { margin:8px 0 0; padding-left:1.2em; font:500 13px/1.8 var(--hl-font); }
.billing-pace { margin:8px 0 0; padding-top:8px; border-top:1px solid var(--hl-pink-track); font:500 12px/1.7 var(--hl-font); color:var(--hl-text-sub); }
.billing-terms { margin:10px 0 0; padding-left:1.2em; font:500 12px/1.7 var(--hl-font); color:var(--hl-text-muted); }
.billing-box { margin-top:12px; padding:14px 16px 16px; border-radius:24px; background:var(--hl-surface); box-shadow:var(--hl-sh-row); }
.billing-box > [data-status] { margin-top:0; font-weight:700; }
/* プラン・回数の選択。3 か月（おすすめ）は枠と札で目立たせる。 */
.billing-choices, .billing-pay { border:0; margin:14px 0 0; padding:0; min-width:0; }
.billing-choices legend, .billing-pay legend { padding:0; font:700 13px/1.6 var(--hl-font); color:var(--hl-text-sub); }
.billing-choices > p { font-size:12px; color:var(--hl-text-muted); }
.billing-choice { position:relative; display:block; margin-top:8px; padding:12px 14px 12px 42px; border:1.5px solid var(--hl-pink-border); border-radius:16px; background:#fff; cursor:pointer; }
.billing-choice input { position:absolute; left:14px; top:15px; margin:0; accent-color:var(--hl-pink); }
.billing-choice:has(input:checked) { border-color:var(--hl-pink); box-shadow:0 0 0 1px var(--hl-pink) inset; }
.billing-choice.is-recommended { border-width:2px; padding:16px 14px 14px 42px; background:var(--hl-pink-pale); }
.billing-choice.is-recommended input { top:19px; }
.billing-choice-head { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.billing-choice-head strong { font:700 15px/1.4 var(--hl-font); }
.billing-choice-head em { font:700 12px/1 var(--hl-font); font-style:normal; color:#fff; background:var(--hl-pink); border-radius:999px; padding:4px 8px; }
.billing-choice-price { margin-left:auto; font:700 17px/1.4 var(--hl-font); }
.billing-choice.is-recommended .billing-choice-price { color:var(--hl-pink-text); }
.billing-choice small { display:block; margin-top:2px; font:500 12px/1.6 var(--hl-font); color:var(--hl-text-muted); }
.billing-choice-price small { font:700 12px/1 var(--hl-font); color:var(--hl-text-muted); margin:0; display:inline; }
.billing-hint { font:500 12px/1.5 var(--hl-font); color:var(--hl-text-muted); }
/* Square のカード入力のエラー欄。空のときも高さと余白を取っていて、チェックボックスとの間が空いて見えた。 */
#square-billing-card .sq-card-message { margin:6px 0 0; }
#square-billing-card .sq-card-message:empty { display:none; }
/* Square のカード欄は出るまで 2〜3 秒かかる。その間も同じ高さ（Square の欄は 99px）で読み込み中と出し、現れたときに画面がずれないようにする。
   Square は欄を差し込んだ直後に一瞬だけ高さ 0 になるので、高さは空のときだけでなく常に取っておく。 */
#square-billing-card { min-height:99px; }
#square-billing-card:empty { display:flex; align-items:center; justify-content:center; box-sizing:border-box; border:1.5px dashed var(--hl-pink-border); border-radius:16px; }
#square-billing-card:empty::before { content:'カード入力欄を読み込み中…'; font:500 13px/1.6 var(--hl-font); color:var(--hl-text-muted); }
.billing-next { margin:8px 0 0; text-align:center; font:500 12px/1.6 var(--hl-font); color:var(--hl-text-muted); }
.billing-compare { margin:10px 0 0; padding:10px 12px; border-radius:16px; background:var(--hl-pink-pale); color:var(--hl-pink-text); font:700 12px/1.6 var(--hl-font); }
.billing-panel .billing-to-plan { margin:6px auto 0; }
.billing-pay { display:flex; gap:8px; flex-wrap:wrap; }
.billing-pay legend { width:100%; margin-bottom:6px; }
.billing-pay label { flex:1 1 0; display:flex; align-items:center; gap:8px; padding:10px 12px; border:1.5px solid var(--hl-pink-border); border-radius:16px; background:#fff; font:700 13px/1.4 var(--hl-font); cursor:pointer; }
.billing-pay label:has(input:checked) { border-color:var(--hl-pink); }
.billing-pay input, .billing-consent input { accent-color:var(--hl-pink); }
/* Apple Pay・Google Pay のボタン（各社の決まりの見た目）。 */
.billing-wallet .apple-pay-button { display:block; width:100%; height:48px; margin-top:12px; border:0; border-radius:24px; -webkit-appearance:-apple-pay-button; -apple-pay-button-type:buy; -apple-pay-button-style:black; cursor:pointer; }
.billing-wallet #google-pay-button { width:100%; height:48px; margin-top:12px; }
.billing-label { display:flex; flex-direction:column; gap:6px; margin:14px 0; font:700 13px/1.6 var(--hl-font); color:var(--hl-text-sub); }
.billing-label input, .billing-label select { padding:12px 14px; border:1.5px solid var(--hl-pink-border); border-radius:16px; background:#fff; color:var(--hl-text); font:500 16px/1.5 var(--hl-font); width:100%; box-sizing:border-box; }
.billing-consent { display:flex; gap:10px; margin-top:14px; align-items:flex-start; font-size:12px; color:var(--hl-text-muted); }
.billing-consent input { margin-top:5px; flex-shrink:0; }
.billing-test { padding:9px 12px; border-radius:16px; background:#fff5df; color:#79552c; font:700 13px/1.5 var(--hl-font); }
.billing-panel [data-error] { color:#b31e3c; font-weight:700; }
.billing-panel [data-error]:empty { display:none; }
/* 買えた・申し込めた知らせ。緑は「OK・完了」だけに使う。 */
.billing-done { margin-top:12px; padding:12px 14px; border-radius:16px; background:#eef7f2; color:#2f6b50; border:1.5px solid var(--hl-success); font:700 13px/1.6 var(--hl-font); }
.billing-panel .primary-button, .billing-panel .secondary-button { width:100%; }
.billing-panel .text-button { display:block; margin-left:auto; margin-right:auto; }
.billing-panel .app-sheet-head .text-button { margin:0; }
.billing-panel a { color:var(--hl-pink-text); }
@media (min-width:600px) { .billing-overlay { align-items:center; padding:16px; } .billing-panel { border-radius:24px; max-height:90dvh; } }
.topic-editor-page { overflow-y:auto; }
.topic-preview { margin:20px 0; padding:18px 20px; border-radius:24px; background:var(--hl-surface); box-shadow:var(--hl-sh-card); font:500 15px/1.9 var(--hl-font); overflow-wrap:anywhere; }
.topic-preview p { margin:0; }
.topic-preview p + p { margin-top:12px; }
.topic-adjust { margin:12px 0; padding:14px 16px; border:1px solid var(--hl-pink-track); border-radius:16px; }
.topic-adjust summary { cursor:pointer; font:700 15px/1.6 var(--hl-font); min-height:24px; }
.topic-choice-label { font:700 13px/1.6 var(--hl-font); margin:18px 0 8px; }
.topic-pills { display:flex; flex-wrap:wrap; gap:8px; }
.topic-pills button,.topic-extra-toggle,.topic-alternatives button { border:1px solid var(--hl-pink-track); background:var(--hl-surface); color:var(--hl-text); border-radius:16px; padding:10px 14px; min-height:44px; font:500 13px/1.6 var(--hl-font); cursor:pointer; }
.topic-pills [aria-pressed="true"],.topic-extra-toggle[aria-pressed="true"],.topic-alternatives [aria-pressed="true"] { background:var(--hl-pink-pale); border-color:var(--hl-pink); color:var(--hl-pink-text); box-shadow:inset 0 0 0 1px var(--hl-pink); }
.topic-extra-toggle { margin-top:16px; }
.topic-extra-toggle::before { content:'＋ '; }
.topic-extra-toggle[aria-pressed="true"]::before { content:'− '; }
.topic-alternatives { display:grid; gap:10px; margin-top:14px; }
.topic-alternatives button { text-align:left; overflow-wrap:anywhere; }
.topic-legacy { display:block; margin:14px auto; }
.topic-result-correction { margin:16px 0; }
.diary-enrichment{margin:24px 0;padding:20px;border:1px solid var(--hl-border);border-radius:16px;background:var(--hl-surface,#fff)}
.diary-enrichment h2{margin:0 0 8px;font-size:17px;line-height:1.6}
.diary-enrichment .topic-pills{margin:16px 0 4px}
.fragment-chips{margin:12px 0 4px}
.fragment-actions{display:flex;align-items:center;gap:12px;margin:8px 0 12px}
.fragment-next{width:100%;margin-top:8px}
.enrichment-extra-toggle{padding:10px 14px;border:1px solid var(--hl-border);border-radius:16px;background:transparent;color:var(--hl-text);font:inherit;font-size:13px;text-align:left}
.enrichment-extra-toggle[aria-pressed=true]{border-color:var(--hl-pink);background:var(--hl-pink-bg,#fff2f5)}
.enrichment-extra-toggle::before{content:'＋ ';font-weight:700}
.enrichment-extra-toggle[aria-pressed=true]::before{content:'✓ '}
.confirm-memo summary{cursor:pointer;font-size:15px;margin:16px 0;color:var(--hl-text-muted)}

/* ===== UX レビュー対応（2026-09-15） ===== */
/* 共通：枠線のセカンダリボタン（結果画面・決済画面）。 */
.secondary-button { border:1.5px solid var(--hl-pink-border); border-radius:999px; background:var(--hl-surface); color:var(--hl-pink-text); font:700 13px/1.5 var(--hl-font); min-height:48px; padding:12px 16px; cursor:pointer; }
.fragment-actions { flex-wrap:wrap; }
.fragment-actions .field-note { margin:0; }
/* #13 メモ欄は開いた状態。 */
.confirm-memo .field-note { margin:6px 0 0; }
/* #14 自動保存の表示は控えめに。 */
.service-save-note { margin:10px 0 0; }
/* #17 回答済みの設問を 1 行にまとめる。 */
/* 2026-09-20 アコーディオンをやめて、たためない見出しにした。 */
.profile-section-heading { margin: 18px 4px 6px; font: 700 13px/1.4 var(--hl-font); color: var(--hl-text-sub); }
.profile-collapsed-check.is-unset { background: var(--hl-pink-track); color: var(--hl-text-faint); }
.profile-collapsed-summary.is-unset { color: var(--hl-text-faint); font-weight: 600; }
.profile-done-summary { display:flex; width:100%; box-sizing:border-box; align-items:center; gap:11px; min-height:52px; padding:13px 18px; border:0; border-radius:24px; background:var(--hl-surface); box-shadow:var(--hl-sh-row); text-align:left; font-family:var(--hl-font); cursor:pointer; }
.profile-done-summary-text { flex:1; min-width:0; font:700 13px/1.4 var(--hl-font); color:var(--hl-text-sub); }
.profile-done-summary-arrow { flex:none; font:700 12px/1 var(--hl-font); color:var(--hl-pink-text); }
/* #18 進捗バーの横に段階のテキスト。 */
.profile-topbar-meter { display:flex; flex-direction:column; align-items:center; gap:4px; min-width:0; }
.profile-topbar-progress-label { font:700 12px/1.3 var(--hl-font); color:var(--hl-text-sub); white-space:nowrap; }
/* #20 追加設定のチップはタップで飛べる。 */
.profile-checkpoint-rest button { padding:11px 14px; min-height:44px; border:1.5px solid var(--hl-pink-border); border-radius:999px; background:var(--hl-surface); color:var(--hl-pink-text); font:700 12px/1.4 var(--hl-font); cursor:pointer; }
.profile-checkpoint-rest button:hover { background:var(--hl-pink-pale); }
/* 結果画面の手直し：生成したままの文章を、その場で直してからコピーできるようにする。 */
.service-editor { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.service-editor label { font: 700 12px/1.5 var(--hl-font); color: var(--hl-text-sub); }
.service-editor input, .service-editor textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--hl-pink-border); border-radius: 16px; padding: 12px 14px; background: var(--hl-surface); color: var(--hl-text); font: 500 15px/1.9 var(--hl-font); }
.service-editor textarea { resize: none; min-height: 220px; overflow: hidden; }
.result-edit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
/* 結果画面のコピー：本文の一番下まで運ばなくても押せるよう、パネルの下端に貼り付ける。 */
.result-copybar { position: sticky; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 8px; margin: 16px -24px 0; padding: 12px 24px max(12px, env(safe-area-inset-bottom)); background: var(--hl-bg); border-top: 1px solid var(--hl-pink-track); }
.result-copybar .primary-button, .result-copybar .secondary-button { width: 100%; margin-top: 0; }
/* sticky の bottom:0 は、スクロールする枠の下の余白（24px）の分だけ上で止まり、すき間から本文がのぞいていた。
   枠の下の余白をなくし、同じ分を最後の要素の内側に持たせる。 */
.service-panel.service-generated { padding-bottom: 0; }
.service-generated > :last-child { padding-bottom: 24px; }
/* #24 結果画面の導線。 */
.result-actions { display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.result-actions .secondary-button { width:100%; }
.result-actions .text-button { align-self:center; }
/* #27 #29 プランシート：上限の理由と、未登録向けの無料会員カード。 */
.plan-reason { margin:12px 0 0; padding:12px 14px; border-radius:16px; background:var(--hl-pink-pale); color:var(--hl-pink-text); font:700 13px/1.7 var(--hl-font); }
.plan-free { margin-top:12px; padding:16px 16px 14px; border-radius:24px; background:var(--hl-surface); border:2px solid var(--hl-pink); box-shadow:var(--hl-sh-card); }
.plan-free-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; font:700 15px/1.4 var(--hl-font); color:var(--hl-pink-text); }
.plan-free-price { font:700 17px/1 var(--hl-font); color:var(--hl-text); }
.plan-free-price span { font-size:12px; color:var(--hl-text-muted); }
.plan-free .limit-list { margin-top:10px; padding:0; border-radius:0; background:none; box-shadow:none; }
.plan-free .app-sheet-cta { margin-top:14px; }
.plan-options { margin-top:12px; display:flex; flex-direction:column; gap:8px; }
.plan-opt { display:block; padding:10px 12px; border:1.5px solid var(--hl-pink-border); border-radius:16px; background:#fff; }
.plan-opt.is-recommended { border:2px solid var(--hl-pink); background:var(--hl-pink-pale); padding:12px; }
.plan-opt-head { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.plan-opt-head strong { font:700 14px/1.4 var(--hl-font); }
.plan-opt-head em { font:700 12px/1 var(--hl-font); font-style:normal; color:#fff; background:var(--hl-pink); border-radius:999px; padding:4px 8px; }
.plan-opt-price { margin-left:auto; font:700 15px/1.4 var(--hl-font); }
.plan-opt.is-recommended .plan-opt-price { font-size:17px; color:var(--hl-pink-text); }
.plan-opt-sub { display:block; margin-top:2px; font:500 12px/1.5 var(--hl-font); color:var(--hl-text-muted); }
.usage-credit { margin-top:12px; padding:16px 16px 14px; border-radius:24px; background:var(--hl-surface); box-shadow:var(--hl-sh-row); }
.usage-credit-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; font:700 15px/1.4 var(--hl-font); color:var(--hl-pink-text); }
.usage-credit-tag { font:500 12px/1.4 var(--hl-font); color:var(--hl-text-muted); }
.usage-credit-sub { margin:6px 0 0; font:500 13px/1.6 var(--hl-font); }
.usage-credit-cta { width:100%; margin-top:12px; }
.usage-hist { display:block; margin:12px auto 0; }
.dashboard-limit-pitch { margin:4px 0 0; font:500 12px/1.6 var(--hl-font); color:var(--hl-text-muted); }
.dashboard-limit-links { display:flex; flex-wrap:wrap; justify-content:center; column-gap:16px; }
.dashboard-limit-links .primary-button { flex-basis:100%; }
.dashboard-limit-links .text-button { margin:4px 0 0; }
.plan-guest-note { margin:12px 0 0; text-align:center; }
/* #31 さっきの続きから：何の下書きか、新規作成でも残ること。 */
.resume-result { flex:none; flex-direction:column; align-items:flex-start; gap:3px; }
.resume-result-title { font:700 15px/1.5 var(--hl-font); }
.resume-result-meta { font:700 13px/1.5 var(--hl-font); color:var(--hl-text); overflow-wrap:anywhere; }
/* #5 下書きは一覧から消せる。 */
.service-draft-row { display:flex; align-items:center; gap:6px; }
.service-draft-row .service-draft { flex:1; min-width:0; }
.service-draft-remove { flex:none; color:var(--hl-text-faint); }
/* #3 ヘルプのリンク。 */
.help-link { font:500 13px/1.6 var(--hl-font); color:var(--hl-text-sub); text-decoration:underline; text-underline-offset:3px; padding:6px 2px; }
/* 未登録の保存先の注意（ヘルプの先頭）。 */
.help-guest-note { margin:12px 0 0; padding:11px 14px; border-radius:16px; background:var(--hl-surface); box-shadow:var(--hl-sh-row); color:var(--hl-text-muted); font:500 13px/1.7 var(--hl-font); }
/* キャラの名前（お店ごとの使い分けの目印）。 */
/* いま編集しているキャラの名前を上部に出す（メインかサブか分からなかった）。 */
/* 名前が長いと「王道かわい…」で切れていた。2 行まで折り返す。 */
.profile-topbar-title { max-width: 220px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; text-align: center; font: 700 13px/1.4 var(--hl-font); color: var(--hl-text); overflow-wrap: anywhere; }
/* もうひとりのわたしを消す（消すボタンが無く、作ると残りっぱなしだった）。 */
.profile-danger { flex: none; display: flex; justify-content: center; padding: 4px 22px 0; }
.profile-danger .text-button { color: var(--hl-text-muted); }
.profile-danger-confirm { flex: none; margin: 8px 22px 0; padding: 14px 16px; border-radius: 16px; background: var(--hl-surface); border: 1.5px solid var(--hl-pink-border); }
.profile-danger-confirm p { margin: 0 0 10px; font: 500 13px/1.7 var(--hl-font); color: var(--hl-text); }
.profile-danger-confirm .choice-row { justify-content: flex-end; gap: 10px; }
/* 確認の副ボタンは角ばった枠だと浮くので、主ボタンと同じ丸いピルにそろえる。 */
.profile-danger-confirm .choice-row .text-button { padding: 10px 18px; border: 1.5px solid var(--hl-pink-border) !important; border-radius: 999px; background: var(--hl-surface); }
.danger-button { border: 0; border-radius: 999px; padding: 12px 20px; min-height: 44px; background: var(--hl-danger); color: #fff; font: 700 13px/1 var(--hl-font); cursor: pointer; }
/* 起動に失敗したときの逃げ道。エラーを閉じると押せるものが何も残らない状態を作らない。 */
.service-startup { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.service-startup h1 { margin: 0; font: 700 17px/1.5 var(--hl-font); }
.service-startup .primary-button, .service-startup .secondary-button { width: 100%; }

/* リングは「きょうの残り」（あと何回つくれるか）。 */
.dashboard-ring-wrap { display:flex; flex-direction:column; align-items:center; gap:4px; flex:none; }
.dashboard-ring-label { font:700 12px/1 var(--hl-font); color:var(--hl-text-muted); }
/* きょう（今月）はもうつくれないことを、ホームの時点で出す。 */
.dashboard-limit { margin: 16px 26px 0; padding: 12px 16px; border-radius: 16px; background: var(--hl-surface-tint); color: var(--hl-text-sub); font: 500 13px/1.7 var(--hl-font); }
.dashboard-limit p { margin: 0; }
.dashboard-hero:disabled, .dashboard-scene:disabled, .notice-card:disabled { opacity: .45; cursor: not-allowed; }
.hist-preview { margin-top: 3px; font: 500 12px/1.5 var(--hl-font); color: var(--hl-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-amount { align-items: center; margin-bottom: 8px; }
.profile-amount-label { font: 700 12px/1 var(--hl-font); color: var(--hl-text-muted); margin-right: 2px; }
/* テスト用メニュー（テストユーザーだけ）。 */
.test-menu-row { margin-top: 12px; border: 1px dashed var(--hl-pink-border); border-radius: 16px; }
.test-presets { margin: 10px 0 14px; }
.test-presets .profile-option { border: 1.5px solid var(--hl-pink-border); background: var(--hl-surface); color: var(--hl-text-sub); border-radius: 999px; padding: 12px 14px; font: 700 12px/1 var(--hl-font); cursor: pointer; }
.test-presets .profile-option[aria-pressed="true"] { background: var(--hl-grad-hero); color: #fff; border-color: transparent; }
.profile-step-label:empty { display: none; }
/* 下書きの保存表示は本文と一緒にスクロールさせる。スクロール枠の外に置くと、低い画面で縮んだ枠からはみ出して「ひとこと足す」の欄に重なっていた。 */
.diary-scroll .service-draft-actions { padding: 0; margin-top: 12px; }
/* キャラ設定を ✕ で閉じるときの「変更を保存する？」。画面の下に重ねる。 */
.char-close-ask { position: absolute; inset: 0; z-index: 45; display: flex; align-items: flex-end; background: rgba(77,58,66,.42); padding: 0 0 max(16px, env(safe-area-inset-bottom)); }
.char-close-ask .profile-danger-confirm { flex: 1; margin: 0 16px; }
.char-close-ask .choice-row { flex-wrap: wrap; align-items: center; }
/* ホームのキャラのカード。ラベル・呼び名・要約を縦に並べ、「サブキャラで書く」は下の段に回す（横に並べると呼び名が 3 行に折り返した）。 */
.dashboard-character { flex-wrap: wrap; }
/* ボタンの補足（残りを 1 回つかう、など）は小さい字で別の行に出す。括弧で続けると末尾だけ折り返した。 */
.button-with-sub small { display: block; margin-top: 4px; font: 500 12px/1.4 var(--hl-font); color: var(--hl-text-muted); }
/* 日記タブの下書きは日記の下に畳む。 */
.service-drafts-panel { padding-bottom: 26px !important; }
.service-drafts-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 16px; border: 1px dashed var(--hl-pink-border); border-radius: 16px; background: transparent; color: var(--hl-text-sub); font: 700 13px/1.4 var(--hl-font); cursor: pointer; }
.service-drafts-toggle[aria-expanded="true"] .service-drafts-arrow { transform: rotate(180deg); }
.service-drafts-panel .field-note { margin: 10px 0 0; }
/* 過去の日記（まだ無いとき）は、いちばん効く設定なので目立たせる。 */
.profile-question.is-featured { border: 1.5px solid var(--hl-pink-border); background: var(--hl-pink-pale); }
.profile-question.is-featured .profile-collapsed-summary.is-unset { color: var(--hl-text); font-weight: 700; }
/* 押せない主ボタン。薄いピンクだと読み込み中にも見えたので、灰色にする。 */
.primary-button:disabled { background: #e9e3e6; color: var(--hl-text-muted); box-shadow: none; cursor: not-allowed; }
/* おまかせは小さめのサブボタン（ホームの主役は「なにの日記にする？」のカテゴリー）。 */
.dashboard-omakase { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 22px 0; padding: 12px 18px; min-height: 48px; border: 1.5px solid var(--hl-pink-border); border-radius: 999px; background: var(--hl-surface); color: var(--hl-pink-text); font: 700 15px/1.4 var(--hl-font); cursor: pointer; }
.dashboard-omakase small { flex: none; font: 700 12px/1.4 var(--hl-font); color: var(--hl-text-muted); }
.dashboard-omakase:disabled { opacity: .45; cursor: not-allowed; }
/* おまかせは引き直せる（ガチャ）。 */
.omakase-gacha { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--hl-pink-pale); color: var(--hl-pink-text); font: 700 13px/1.4 var(--hl-font); }
.omakase-gacha button { flex: none; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--hl-grad-hero); color: #fff; font: 700 13px/1 var(--hl-font); box-shadow: var(--hl-sh-card); cursor: pointer; }
/* キャラのシート（書くキャラの切りかえ・調整・サブキャラ）。 */
.char-pick-list { display:flex; flex-direction:column; gap:10px; margin-top:14px; }
.char-pick-option, .char-pick-create { display:flex; flex-direction:column; align-items:flex-start; gap:4px; width:100%; min-height:60px; padding:14px 18px; border:1.5px solid var(--hl-pink-border); border-radius:24px; background:var(--hl-surface); color:var(--hl-text); text-align:left; font-family:var(--hl-font); cursor:pointer; }
.char-pick-option small, .char-pick-create small { font:700 12px/1.4 var(--hl-font); color:var(--hl-text-muted); }
.char-pick-option strong, .char-pick-create strong { font:700 15px/1.4 var(--hl-font); }
.char-pick-option[aria-pressed="true"] { border:2px solid var(--hl-pink); background:var(--hl-pink-pale); }
.char-pick-option[aria-pressed="true"] strong::after { content:'・いま使用中'; font-size:12px; color:var(--hl-pink-text); }
.char-pick-create { margin-top:10px; border-style:dashed; }
.char-pick-list + .app-sheet-cta { margin-top:14px; }
.char-pick-create strong { color:var(--hl-pink-text); }
/* アプリ内のお問い合わせ（ヘルプの下）。 */
.referral-box { margin-top:12px; padding:16px; border-radius:24px; background:var(--hl-surface); box-shadow:var(--hl-sh-row); display:flex; flex-direction:column; }
.referral-label { font:700 12px/1.5 var(--hl-font); color:var(--hl-text-sub); }
.referral-code { margin:6px 0 2px; font:700 22px/1.4 var(--hl-font); letter-spacing:.08em; color:var(--hl-pink-text); word-break:break-all; }
.referral-cta { width:100%; margin-top:12px; }
.referral-edit { align-self:center; margin-top:6px; }
.referral-field input { display:block; width:100%; box-sizing:border-box; margin-top:6px; padding:12px 14px; border:1.5px solid var(--hl-pink-border); border-radius:16px; background:var(--hl-surface); color:var(--hl-text); font:500 16px/1.5 var(--hl-font); letter-spacing:.06em; }
.referral-box .field-note { margin:6px 0 0; }
.referral-error { color:var(--hl-danger) !important; }
.referral-used { margin-top:12px; text-align:center; }
.referral-code.review-tag { font-size:18px; letter-spacing:0; user-select:all; -webkit-user-select:all; }
.help-contact { margin-top:18px; padding:16px; border-radius:24px; background:var(--hl-surface); box-shadow:var(--hl-sh-row); }
.help-contact h3 { margin:0; font:700 15px/1.4 var(--hl-font); }
.help-contact .field-note { margin:4px 0 10px; }
.help-contact-field { display:block; margin-top:10px; font:700 12px/1.5 var(--hl-font); color:var(--hl-text-sub); }
.help-contact-field textarea, .help-contact-field input { display:block; width:100%; box-sizing:border-box; margin-top:4px; padding:12px 14px; border:1.5px solid var(--hl-pink-border); border-radius:16px; background:var(--hl-surface); color:var(--hl-text); font:500 15px/1.7 var(--hl-font); }
.help-contact-field textarea { resize:vertical; min-height:96px; }
.help-contact .primary-button { width:100%; margin-top:12px; }
.help-contact-error { color:var(--hl-danger) !important; }
.help-contact-done { margin:8px 0 0; font:500 13px/1.8 var(--hl-font); color:var(--hl-text); }
/* 具体例の読み込み中。題材のピルの形だけを、ゆっくり光らせて出す。届いたらふわっと出す。 */
.enrichment-skeleton { margin-top:16px; }
.enrichment-skeleton-pills { display:flex; flex-wrap:wrap; gap:8px; }
.enrichment-skeleton-pills span { display:block; border-radius:999px; background:linear-gradient(90deg, var(--hl-pink-pale) 0%, var(--hl-surface-tint) 40%, var(--hl-pink-pale) 80%); background-size:200% 100%; animation:hl-shimmer 1.4s ease-in-out infinite; }
.enrichment-skeleton-pills span { height:44px; width:84px; }
.enrichment-skeleton-pills span:nth-child(2) { width:150px; }
.enrichment-skeleton-pills span:nth-child(3) { width:110px; }
.enrichment-skeleton-pills span:nth-child(4) { width:96px; }
.enrichment-skeleton-pills span:nth-child(5) { width:130px; }
.enrichment-skeleton .field-note { margin:14px 0 0; }
.enrichment-body { animation:hl-fade-in .35s var(--hl-ease-purun); }
@keyframes hl-shimmer { from { background-position:100% 0; } to { background-position:-100% 0; } }
@keyframes hl-fade-in { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .enrichment-skeleton-pills span, .enrichment-body { animation:none; } }
.enrichment-body .enrichment-extra-toggle { display:block; margin-top:10px; }

.service-drafts-clear { display: block; margin: 8px auto 0; color: var(--hl-text-faint); }

/* ===== UI 統一（2026-09-30 レビュー反映） ===== */
/* 画面の見出し（日記・せってい）は同じ形。 */
.app-frame .screen-title { font: 700 22px/1.5 var(--hl-font); }
.screen-lead { margin: 4px 0 0; font: 500 13px/1.7 var(--hl-font); color: var(--hl-text-muted); }
/* 丸いアイコンボタン（とじる）。日記フローの ← ✕ と同じ形。 */
.icon-button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--hl-surface); box-shadow: var(--hl-sh-float); color: var(--hl-text-sub); font: 700 15px/1 var(--hl-font); cursor: pointer; }
/* 完成画面：コピーだけを表に出す。タイトルのコピーと「ほかの操作」は同じ大きさで横に並べる。 */
.result-copybar-row { display: flex; gap: 8px; }
.result-edit-actions { align-items: center; }
.posted-badge { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--hl-scene-rest-bg); color: #3f735c; font: 700 12px/1.4 var(--hl-font); }
.posted-badge::before { content: '✓ '; }
.service-generated .check-badge { margin: 12px 0 0; }
.sheet-menu { margin-top: 14px; box-shadow: var(--hl-sh-row); }
.sheet-menu .dashboard-menu-row { min-height: 64px; }
/* 日記の一覧。コピー済みかどうかは「✓ コピー済み」の文字だけで見分ける（行ごと薄くすると読みにくかった）。 */
.hist-screen { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 22px 26px; animation: hl-rise .32s var(--hl-ease-purun); }
.hist-screen .service-drafts-panel { margin-top: 14px; }
.hist-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 16px; }
.hist-groups { display: flex; flex-direction: column; gap: 20px; margin-top: 18px; }
.hist-group-label { font: 700 13px/1 var(--hl-font); color: var(--hl-text-muted); letter-spacing: .06em; }
.hist-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.hist-row { display: flex; align-items: center; gap: 4px; padding-right: 12px; background: var(--hl-surface); border-radius: 24px; box-shadow: var(--hl-sh-row); }
.hist-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px 4px 14px 16px; border: 0; background: none; text-align: left; font-family: var(--hl-font); color: var(--hl-text); cursor: pointer; }
.hist-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.hist-icon svg { width: 16px; height: 16px; }
.hist-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hist-copy strong { font: 700 13px/1.5 var(--hl-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-copy small { font: 500 12px/1.4 var(--hl-font); color: var(--hl-text-muted); }
.hist-status { color: #3f735c; font-weight: 700; }
.hist-preview { margin: 0; }
.hist-copy-button { flex: none; min-height: 44px; padding: 10px 16px; border: 1.5px solid var(--hl-pink-border); border-radius: 999px; background: var(--hl-surface); color: var(--hl-pink-text); font: 700 13px/1 var(--hl-font); cursor: pointer; }
/* 下書きの入口は一覧の上に 1 行で置く（日記タブのいちばん下に畳まれていて、見つからなかった）。 */
.service-drafts-toggle-copy { display: inline-flex; align-items: center; gap: 8px; }
.service-drafts-toggle-copy svg { width: 18px; height: 18px; }
.settings-login { width: 100%; margin-top: 14px; }
.dashboard-settings .dashboard-menu { margin-top: 18px; }
/* 利用状況：残りの数を並べる。 */
.usage-stats { display: grid; gap: 8px; margin-top: 14px; }
.usage-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 24px; background: var(--hl-surface); box-shadow: var(--hl-sh-row); text-align: center; }
.usage-stat strong { font: 700 22px/1 var(--hl-font); color: var(--hl-pink-text); }
.usage-stat small { font-size: 12px; color: var(--hl-text-muted); }
.usage-stat > span { font: 700 12px/1.3 var(--hl-font); color: var(--hl-text-muted); }
.usage-cta-sub { margin: 6px 0 0; text-align: center; }
/* 日記フローの進み具合（話題 → 内容 → 気持ち → 確認）。 */
.flow-steps { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.flow-steps .step-label { margin: 0; }
.flow-dots { display: flex; gap: 6px; }
.flow-dots i { display: block; width: 8px; height: 8px; border-radius: 999px; background: var(--hl-pink-track); transition: width .3s var(--hl-ease-purun); }
.flow-dots i[data-state="done"] { background: var(--hl-pink-soft); }
.flow-dots i[data-state="now"] { width: 22px; background: var(--hl-pink); }
/* 質問の下の固定バーにある「えらばずに、つぎへ」は、横いっぱいの枠ボタン。 */
.diary-generate-bar .secondary-button { width: 100%; }
/* 選択肢はどの画面も同じ形：1 つ選ぶものは縦並びの丸いボタン、いくつか選ぶものは同じ形の小さな札。 */
.hito-option[aria-pressed="true"], .fragment-chips button[aria-pressed="true"] { background: var(--hl-pink-pale); color: var(--hl-pink-text); box-shadow: inset 0 0 0 2px var(--hl-pink); }
.fragment-chips button { border: 0; border-radius: 999px; background: var(--hl-surface); box-shadow: var(--hl-sh-row); padding: 11px 16px; font: 700 13px/1.5 var(--hl-font); }
.profile-topbar-spacer { flex: none; width: 42px; height: 42px; }
.profile-savebar > .primary-button { flex: 1; }
.result-copybar-row .secondary-button { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.hist-status { white-space: nowrap; }
/* 日記を消す（ほかの操作のいちばん下）。取り消せない操作は赤系の文字。 */
.dashboard-menu-row[data-danger="true"] strong { color: var(--hl-danger); }
.dashboard-menu-row[data-danger="true"] .dashboard-arrow { color: var(--hl-danger); }
.dialog-danger { width: 100%; margin-top: 12px; min-height: 48px; }
/* 完成画面の見出し（分類・✕）は上に固定する。長い本文を下まで読むと、閉じる手段が見えなくなっていた。 */
.service-generated .result-head { position: sticky; top: -24px; z-index: 3; margin: -24px -24px 12px; padding: 12px 24px; background: var(--hl-bg); }
.flow-limit { margin: 0 0 12px; }
/* 押せない行（残り 0 回のつくり直しなど）は薄く、矢印を消す。理由は下の小さい字に出す。 */
.sheet-menu .dashboard-menu-row:disabled { opacity: .55; }
.sheet-menu .dashboard-menu-row:disabled .dashboard-arrow { visibility: hidden; }
/* 通知は見出し（← ✕）の下に出す。上端に出すと ← ✕ に重なっていた。 */
.fragment-chips[data-full="true"] button[aria-pressed="false"] { opacity: .45; }
/* リングは残りの回数を主役にする（「1/5」だと、1 回使ったとも読めた）。 */
.dashboard-ring > span { gap: 1px; align-items: center; }
.dashboard-ring b { font: 700 22px/1 var(--hl-font); }
.dashboard-ring > span small { margin-top: 5px; }
/* つくりかけは日記の下に 1 行で置く（49 件あると目に入るだけで負担になる）。 */
.hist-screen .service-drafts-panel { margin-top: 24px; }
/* 確認の行は行ごと押せる（「変更」ボタンが 4 つ並んで重かった）。 */
button.confirm-row { width: 100%; min-height: 52px; border: 0; border-top: 1px solid var(--hl-pink-track); background: none; text-align: left; font-family: var(--hl-font); color: var(--hl-text); cursor: pointer; }
button.confirm-row:first-child { border-top: 0; }
.confirm-arrow { flex: none; color: var(--hl-pink-text); font: 700 22px/1 var(--hl-font); }
/* ===== 統一感（2026-09-30 3 回目のレビュー） ===== */
/* シートの閉じるは、全画面と同じ丸い ✕。 */
.sheet-close { width: 44px; height: 44px; font-size: 13px; }
.dashboard-arrow { font-size: 24px; line-height: 1; }
/* 選べる札は、作成フローもキャラ設定も同じ「白地＋うすいピンクの枠」。 */
.fragment-chips button { border: 1.5px solid var(--hl-pink-border); box-shadow: var(--hl-sh-row); }
.fragment-chips button[aria-pressed="true"] { border-color: var(--hl-pink); box-shadow: var(--hl-sh-card); }
/* 点線は「追加する・もっと見る」だけに使う。開閉やテスト用の行は実線。 */
.service-drafts-toggle { border-style: solid; background: var(--hl-surface); }
.test-menu-row { border-style: solid; }
/* つくりかけの行は日記の行と同じ形。「消す」も行の中。 */
.service-draft-row .service-draft-remove { flex: none; min-height: 44px; padding: 10px 12px; color: var(--hl-text-muted); }
.service-drafts-panel .hist-list { margin-top: 12px; }
/* 選んだ内容の札は 1 行。長いときは省略する（選ぶほど長くなって折り返していた）。 */
.scene-chip { max-width: 100%; }
.scene-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* スマホ枠の中のスクロールバーは出さない（PC で黒いバーが出て、角丸が欠けて見えた）。 */
.app-frame * { scrollbar-width: none; }
.app-frame *::-webkit-scrollbar { display: none; }
/* 通知は最初から不透明（出るときの透明度のアニメーションで、下の見出しが透けて読みにくかった）。 */
.app-toast-pill { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 13px 19px; border: 1px solid var(--hl-pink-track); border-radius: 999px; background: var(--hl-surface); box-shadow: var(--hl-sh-hero); animation: hl-toast-in .3s var(--hl-ease-purun); }
@keyframes hl-toast-in { from { transform: translateY(-6px); } to { transform: none; } }
.dashboard-limit .secondary-button { display: block; width: 100%; margin-top: 8px; }
.dashboard-limit .primary-button { display: block; width: 100%; margin-top: 10px; }
.dashboard-limit .text-button { display: block; margin: 6px auto 0; }
/* ヘッダーはどの画面も「左（← か空き）・中央に名前・右に ✕」。✕ の見た目も同じにする。 */
.service-generated .result-head .step-label { margin: 0; }
.profile-topbar-btn[aria-label="とじる"] { font-size: 12px; color: var(--hl-text-faint); }
.profile-topbar-title { color: var(--hl-text-sub); }
/* ひとこと欄の例は本文より小さく（入力の文字は iOS の拡大を防ぐため 16px のまま）。 */
.app-frame textarea::placeholder, .app-frame input::placeholder { font-size: 13px; }

/* コピーのあとの次の一手（2026-10-07）。 */
.result-next { display:flex; flex-direction:column; gap:8px; }
.result-a2hs { display:flex; align-items:center; gap:8px; padding:8px 12px; border-radius:16px; background:var(--hl-pink-pale); font:500 12px/1.6 var(--hl-font); color:var(--hl-text); }
.result-a2hs p { margin:0; flex:1; }
.result-a2hs .text-button { flex:none; }
.dashboard-daily { margin-top:8px; }

/* 2026-10-07 夜の点検：上限のときの入口は押せる見た目のまま薄くし、押したら続け方を開く（disabled だと何も起きなかった）。 */
.dashboard-scene[aria-disabled="true"], .dashboard-omakase[aria-disabled="true"] { opacity: .45; }
/* キャラのシートの「ほかのキャラをコピーしてつくる」（はじめの画面から移した。補助なので小さな文字のリンク）。 */
.char-pick-copy { display: block; margin: 10px auto 0; font-size: 13px; color: var(--hl-text-sub); }
/* 文章を調整の種類は 2 列の札（8 種類を行で並べると長い）。 */
.adjust-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.adjust-kinds .adjust-chip { width: 100%; }
.adjust-note { margin: -4px 0 12px; }
.adjust-detail { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.adjust-detail label { font: 700 13px/1.5 var(--hl-font); color: var(--hl-text); }
.adjust-detail textarea { width: 100%; box-sizing: border-box; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--hl-pink-track); background: var(--hl-surface); font: 500 16px/1.5 var(--hl-font); color: var(--hl-text); }
.adjust-detail .field-note { margin: 0; }
.adjust-undo { display: block; margin: 8px auto 0; }
.billing-stats { margin: 6px 0 0; font: 700 13px/1.7 var(--hl-font); color: var(--hl-text); }
.adjust-detail-label { font: 700 13px/1.5 var(--hl-font); color: var(--hl-text); }
.adjust-days { grid-template-columns: repeat(3, 1fr); margin: 0; }
.adjust-time { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 14px; border-radius: 16px; border: 1px solid var(--hl-pink-track); background: var(--hl-surface); font: 500 16px/1.4 var(--hl-font); color: var(--hl-text); }
.adjust-login { width: 100%; margin: 0 0 12px; }
/* 投稿前チェックと「調整前の文章に戻す」は固定ボタンの上の 1 行（2026-10-08）。 */
.result-copybar-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-height: 24px; }
.result-copybar-meta .check-quiet, .result-copybar-meta .adjust-undo { margin: 0; padding: 0; min-height: 0; font: 500 12px/1.6 var(--hl-font); }
.result-copybar-meta .adjust-undo { color: var(--hl-pink-text); font-weight: 700; }
.check-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border: 0; border-radius: 999px; background: var(--hl-pink-pale); color: var(--hl-pink-text); font: 700 12px/1.4 var(--hl-font); cursor: pointer; }
.check-pill .check-pill-icon { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--hl-pink-text); color: #fff; font-size: 11px; }
