@import './tokens/colors.css?v=20260905-color2';
@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: 20px !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 24px/1 var(--hl-font); cursor: pointer; }
.screen-description { color: var(--hl-text-muted); font: 500 14px/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: 22px; }
.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; }
.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: 12px; 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: 22px; padding: 22px 20px 16px; }
.diary-card h2 { font: 700 18px/1.55 var(--hl-font); color: var(--hl-pink-text); overflow-wrap: anywhere; }
.diary-body { margin-top: 16px; user-select: text; }
.diary-body p { margin: 0 0 12px; font: 500 16px/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: 12px; 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: 14px; font: 700 14px/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: 18px; border: 1px solid #f0dde5; }
.other-card h3 { font: 700 16px/1.5 var(--hl-font); }
.other-card p { font: 500 14px/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 14px/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 14px/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: 12px; 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: 14px; 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: 20px; }
  .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: 14px; border: 1px solid var(--hl-pink-border); background: #fff; color: var(--hl-pink-text); font: 700 14px/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: 21px; }
.profile-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 20px; }
.profile-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--hl-surface-tint); padding: 5px; border-radius: 16px; margin: 0 20px; }
.profile-modes button { border: 1px solid transparent; border-radius: 12px; background: transparent; padding: 10px 8px; color: var(--hl-text-sub); font: 700 15px/1.5 var(--hl-font); cursor: pointer; }
.profile-modes button span { display: block; font: 500 11px/1.6 var(--hl-font); }
.profile-modes button[aria-pressed="true"] { background: #fff; color: var(--hl-pink-text); border-color: var(--hl-pink-border); box-shadow: 0 2px 6px #4d3a4210; }
.profile-help { margin: 10px 22px 16px; font: 500 12px/1.7 var(--hl-font); color: var(--hl-text-muted); }
.profile-overview { margin: 0 22px 14px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
.profile-overview > span { font: 500 12px/1.6 var(--hl-font); color: var(--hl-text-sub); }
.profile-overview > button, .profile-more { color: var(--hl-pink-text); font: 700 12px/1.6 var(--hl-font); min-height: 44px; padding: 8px 2px; border: 0; background: transparent; cursor: pointer; text-align: left; }
.profile-groups { display: flex; flex-direction: column; gap: 10px; padding: 0 20px; }
.profile-group { background: #fff; border: 1px solid #ead5df; border-radius: 18px; 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.5 var(--hl-font); }
.profile-group-summary { display: block; font: 500 12px/1.65 var(--hl-font); color: var(--hl-text-muted); margin-top: 4px; overflow-wrap: anywhere; }
.profile-group-heading[aria-expanded="true"] { background: #fff8fb; }
.profile-chevron { font-size: 16px; color: var(--hl-pink-text); flex: none; }
.profile-group-body { padding: 0 16px 16px; }
.profile-group-caption { font: 500 12px/1.8 var(--hl-font); color: var(--hl-text-muted); margin: 12px 0 8px; }
.profile-limit { font: 500 11px/1.7 var(--hl-font); color: var(--hl-text-muted); margin: 8px 0 10px; }
.profile-choices { gap: 8px; }
.profile-choices button { padding: 10px 12px !important; line-height: 1.6 !important; max-width: 100%; overflow-wrap: anywhere; box-shadow: none !important; text-align: left; }
.profile-more { margin-top: 8px; }
.profile-candidates-peek { display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; min-height: 44px; margin-top: 8px; padding: 9px 16px; border: 1.5px dashed #efb5ca; border-radius: 999px; background: #fff; color: var(--hl-pink-text); font: 700 13px/1.6 var(--hl-font); cursor: pointer; }
.profile-candidate-plus { flex: none; font-size: 18px; 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-sub); font: 500 12px/1.7 var(--hl-font); cursor: pointer; }
.profile-candidates-collapse .profile-candidate-chevron { transform: rotate(225deg); margin-top: 5px; }
.profile-question-footer > .profile-more { margin-left: auto; }
.profile-choices .profile-tag-add { border: 1px dashed #cdbfc7 !important; border-radius: 999px; background: transparent !important; color: var(--hl-text-sub) !important; font: 500 12px/1.6 var(--hl-font); 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-field input, .profile-field textarea, .profile-search input { display: block; width: 100%; min-width: 0; margin-top: 6px; border: 1px solid #dcbfcf; border-radius: 12px; padding: 12px; min-height: 48px; color: var(--hl-text); background: #fff; font: 400 16px/1.7 var(--hl-font-body-long); }
.profile-words, .profile-format { margin: 12px 20px 0; }
.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-search { display: block; margin: 0 20px 16px; font: 700 12px/1.7 var(--hl-font); color: var(--hl-text-sub); }
.profile-sample-note { margin: 10px 0; font: 500 12px/1.7 var(--hl-font); color: var(--hl-pink-text); }
.profile-preview { margin: 0 20px 16px; padding: 18px; background: #fff; border: 1px solid #d2dfd7; border-radius: 18px; }
.profile-preview h2 { font: 700 14px/1.6 var(--hl-font); color: #315b45; }
.profile-format.is-answered, .profile-words.is-answered { background: #f8eff3; border-color: #dbc4cf; }
.profile-format.is-answered .profile-group-heading, .profile-words.is-answered .profile-group-heading { background: transparent; }
.profile-field-status { display: inline-block; margin-left: 12px; color: var(--hl-text-muted); font: 500 11px/1.5 var(--hl-font); }
.profile-review-scroll { padding-top: 12px; }
.profile-review-paper { margin: 24px 20px; padding: 26px 22px; border: 1px solid var(--hl-pink-border); border-radius: 18px; 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 16px/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-preview-note { font: 500 11px/1.7 var(--hl-font); color: var(--hl-text-muted); margin: 12px 0 0; }
.profile-format fieldset { margin: 18px 0 4px; }
.profile-format .choice-row button { padding: 12px !important; }
.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 18px/1.6 var(--hl-font); }
.profile-question { scroll-margin-top: 12px; transition: border-color .2s, background .2s; }
.profile-question.is-current { border: 2px solid var(--hl-pink); background: #fff8fb; }
.profile-single-groups { margin-top: 10px; }
.profile-question.is-answered { background: var(--hl-surface-tint); }
.profile-question .profile-group-heading { background: transparent; min-height: 64px; cursor: default; flex-wrap: wrap; gap: 4px 12px; }
.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: 500 12px/1.6 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; font: 700 11px/1.5 var(--hl-font); color: var(--hl-text-sub); padding: 5px 8px; border-radius: 8px; }
.profile-question-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
.profile-question-tools:not(.profile-question-footer) { margin: 4px 0 12px; }
.profile-question-tools .profile-more { margin-top: 0; }
.profile-question-tools .profile-multiple-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 2px; border: 0; border-radius: 0; background: transparent; font-weight: 500; white-space: nowrap; }
.profile-multiple-toggle[aria-checked="true"] { color: var(--hl-pink-text); }
.profile-toggle-track { display: inline-block; width: 26px; height: 16px; flex: none; border-radius: 999px; background: #d2c8cd; position: relative; }
.profile-toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.profile-multiple-toggle[aria-checked="true"] .profile-toggle-track { background: var(--hl-pink-text); }
.profile-multiple-toggle[aria-checked="true"] .profile-toggle-track::after { left: 13px; }
.profile-word-choice { margin-top: 20px !important; }
.profile-custom-choice { border-radius: 999px; background: var(--hl-surface); color: var(--hl-pink-text); font: 700 12px/1.6 var(--hl-font); cursor: pointer; }
.profile-format, .profile-words { margin-bottom: 16px; }
.profile-other { margin: 24px 0 0; }
.profile-other-toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; width: calc(100% - 40px); margin: 0 20px 16px; padding: 16px; text-align: left; border: 1px solid var(--hl-pink-border); border-radius: 18px; background: #fff; color: var(--hl-text); cursor: pointer; font: 700 15px/1.7 var(--hl-font); box-shadow: 0 2px 8px #a6507010; }
.profile-other-toggle:hover, .profile-other-toggle[aria-expanded="true"] { background: #fff8fb; border-color: var(--hl-pink); }
.profile-other-toggle .profile-group-summary { grid-column: 1 / -1; font-size: 12px; margin: 0; font-weight: 400; }
.profile-other-action { display: inline-flex; align-items: center; gap: 8px; color: var(--hl-pink-text); font: 700 12px/1.5 var(--hl-font); white-space: nowrap; }
.profile-other-indicator { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hl-pink-pale); }
.profile-other-indicator::after { content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.profile-other-toggle[aria-expanded="true"] .profile-other-indicator::after { transform: translateY(2px) rotate(225deg); }
.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; }
@media (prefers-reduced-motion: reduce) { .profile-question { transition: none; } }
@media (max-width: 350px) {
  .profile-screen .screen-heading h1 { font-size: 19px; }
  .profile-groups { padding: 0 14px; }
  .profile-modes, .profile-preview, .profile-search { margin-left: 14px; margin-right: 14px; }
  .profile-words, .profile-format { margin-left: 14px; margin-right: 14px; }
  .profile-other-toggle { width: calc(100% - 28px); 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 18px; overscroll-behavior: contain; }
.diary-path { display: flex; flex-wrap: wrap; gap: 7px; }
.diary-answer { border: 1px solid var(--hl-pink-border); background: #fff; border-radius: 12px; min-height: 40px; padding: 9px 11px; font: 700 12px/1.5 var(--hl-font); cursor: pointer; text-align: left; }
.diary-answer span { color: var(--hl-pink-text); font-size: 11px; margin-left: 7px; }
.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: 21px; }
.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: 17px; min-height: 64px; padding: 14px 12px; cursor: pointer; font: 700 14px/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: 14px; 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: 11px; 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 11px/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: 14px; 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: 12px; 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: 18px; 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:12px; left:12px; right:12px; z-index:120; padding:14px 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-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: 22px; 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: 18px; 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:#e96891; font:700 23px/1.3 var(--hl-font); letter-spacing:.07em; font-style:italic; white-space:nowrap; }
.dashboard-trial { background:white; border-radius:99px; padding:10px 14px; font:700 11px/1.3 var(--hl-font); color:#ad7d90; 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:#ac7c8f; font:500 13px/1.6 var(--hl-font); letter-spacing:.06em; }
.dashboard-ring { 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:#e96891; font:700 13px/1 var(--hl-font); }
.dashboard-ring small { font-size:10px; color:#ad7d90; }
.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:99px; box-shadow:0 10px 24px #e26a8d28; font:700 20px/1.5 var(--hl-font); letter-spacing:.06em; cursor:pointer; flex-shrink:0; }
.dashboard-hero small { color:#e96891; background:white; border-radius:99px; padding:7px 12px; white-space:nowrap; font:700 11px/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:#e96891; 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:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-character-copy small { display:block; font:500 11px/1.6 var(--hl-font); color:#ad8797; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-adjust { flex:none; font:700 11px/1.5 var(--hl-font); color:#e96891; }
.app-frame .dashboard-section-title { margin:24px 22px 10px; font:700 15px/1.5 var(--hl-font); color:#ad7d90; }
.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:20px 18px 18px; gap:10px; border:0; border-radius:28px; background:white; text-align:left; min-height:145px; font-family:var(--hl-font); cursor:pointer; }
.dashboard-scene strong { color:#171416; font-size:17px; line-height:1.5; margin-top:1px; }
.dashboard-scene small { color:#ad8797; font-size:11px; line-height:1.6; }
.dashboard-disclosure { margin:18px 24px; color:var(--hl-text-muted); font:500 10px/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:#bc96a5; font:700 11px/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:#efa7be; }
.dashboard-nav-icon svg { width:22px; height:22px; }
.dashboard-nav [aria-current="page"] { color:#e96891; }
.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 23px/1.6 var(--hl-font); }
.dashboard-account { display:flex; align-items:center; gap:13px; padding:18px; margin:18px 0 16px; border-radius:26px; background:white; }
.dashboard-account > div { flex:1; min-width:0; }
.dashboard-account strong { font:700 16px/1.5 var(--hl-font); overflow-wrap:anywhere; }
.dashboard-account p { margin:3px 0 0; color:#ad7d90; font:500 11px/1.6 var(--hl-font); }
.dashboard-plan { padding:7px 10px; white-space:nowrap; border-radius:99px; background:#efa5bd; color:white; font:700 10px/1.2 var(--hl-font); }
.dashboard-menu { background:white; border-radius:26px; 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; }
.dashboard-menu-row .dashboard-icon { width:36px; height:36px; border-radius:13px; }
.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:#171416; }
.dashboard-menu-copy > small { display:block; color:#ad8797; font-size:11px; line-height:1.6; margin-top:3px; }
.dashboard-active { background:#d9f0e5; color:#5aa583; padding:4px 8px; border-radius:99px; font:700 9px/1.4 var(--hl-font); }
.dashboard-arrow { color:#efa5bd; font-size:20px; }
.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:#bc96a5; 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:20px; }
  .dashboard-trial { font-size:10px; 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:16px; }
  .dashboard-menu-row { padding:16px 13px; gap:10px; }
}

.dashboard-character-switch { display:flex; gap:10px; margin:0 0 16px; }

.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 11px/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 14px/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:99px; background:white; color:var(--hl-pink-text); font:700 12px/1.5 var(--hl-font); }
.character-invite h1 { font:700 25px/1.7 var(--hl-font); }
.character-invite p { font:500 14px/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:99px; 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:99px; 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:11px; 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%; } }


.dashboard-login { border:0; cursor:pointer; font-family:var(--hl-font); }
.service-generated h1 { margin:18px 0; }
.service-generated h2 { font:700 18px/1.6 var(--hl-font); margin:18px 0; }
.service-generated-body { white-space:pre-wrap; overflow-wrap:anywhere; background:white; border-radius:22px; 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 21px/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:14px; background:var(--hl-surface); color:var(--hl-text-sub); font:500 11.5px/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:20px; 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:11px; 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 23px/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:18px; 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 12.5px/1.55 var(--hl-font); color:var(--hl-text-sub); }
.dashboard-nudge-copy small { display:block; margin-top:3px; font:500 11px/1.5 var(--hl-font); color:var(--hl-text-muted); }
.dashboard-nudge:active { transform:scale(.985); }
.dashboard-character { margin-top:0; }
.dashboard-switch { flex:none; border:1.5px solid var(--hl-pink-border); background:var(--hl-surface); color:var(--hl-text-sub); border-radius:999px; padding:10px 11px; min-height:40px; font:700 10.5px/1 var(--hl-font); cursor:pointer; }
button.dashboard-adjust { border:0; background:none; padding:10px 2px; min-height:40px; cursor:pointer; font:700 11px/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:22px; 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 13.5px/1.4 var(--hl-font); color:var(--hl-text); }
.notice-card-copy small { display:block; margin-top:3px; font:500 10.5px/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 11.5px/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; }
.topic-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:4px; }
.topic-card { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:96px; padding:22px 14px; border:0; border-radius:24px; background:var(--hl-surface); box-shadow:var(--hl-sh-card); font-family:var(--hl-font); cursor:pointer; transition:transform .16s var(--hl-ease-purun); }
.topic-card strong { font:700 15.5px/1.4 var(--hl-font); color:var(--hl-text); overflow-wrap:anywhere; }
.topic-dot { width:12px; height:12px; flex:none; border-radius:50%; }
.topic-card:active { transform:scale(.95); }
.topic-card:focus-visible { outline:3px solid var(--hl-pink-text); outline-offset:3px; }
.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-dot { width:10px; height:10px; flex:none; border-radius:50%; }
.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 10.5px/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 11px/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:18px; 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; }
.badge-optional { flex:none; padding:5px 9px; border-radius:999px; background:var(--hl-scene-rest-bg); color:var(--hl-scene-rest); font:700 9.5px/1.4 var(--hl-font); }

/* ===== v3 デザイン適用：完成画面 ===== */
.check-badge { display:flex; align-items:center; gap:11px; width:100%; margin:4px 0 14px; padding:13px 16px; border:0; border-radius:20px; 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 12.5px/1.55 var(--hl-font); color:var(--hl-text); }
.check-badge-copy small { display:block; margin-top:2px; font:500 10.5px/1.55 var(--hl-font); color:var(--hl-text-muted); }
.check-badge-arrow { flex:none; color:var(--hl-pink-text); font-size:18px; }
.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 11.5px/1.5 var(--hl-font); color:var(--hl-text-sub); }
.variant-head small { font:500 11.5px/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 11.5px/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 9.5px/1 var(--hl-font); opacity:.75; }
.variant-title { display:block; margin-top:5px; font:700 11px/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 9.5px/1.4 var(--hl-font); }
.result-nudge { margin:16px 0 0; width:100%; }

/* ===== v3 デザイン適用：キャラ設定 ===== */
.profile-progress { height:6.5px; margin:0 22px 14px; border-radius:4px; background:var(--hl-pink-track); overflow:hidden; }
.profile-progress > span { display:block; height:100%; border-radius:4px; background:var(--hl-grad-hero); transition:width .35s var(--hl-ease-purun); }
.profile-step-label { margin:0 0 6px; font:700 10.5px/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:28px; 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 11px/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:18px; background:var(--hl-bg); text-align:left; }
.profile-checkpoint-preview > span { display:block; font:700 10px/1.5 var(--hl-font); color:var(--hl-text-faint); }
.profile-checkpoint-preview p { margin:7px 0 0; font:500 12.5px/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 10px/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; }
.profile-checkpoint-rest span { padding:7px 10px; border-radius:999px; background:var(--hl-surface-tint); color:var(--hl-text-sub); font:700 10px/1.4 var(--hl-font); }
@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); }
