/* my.png layout + user IA; existing avatar, palette, icon system and navigation. */
.phone.mine-surface { height: var(--preview-height); background: var(--paper); }
.mine-surface .page-scroll > .mine-page { padding: var(--space-4) var(--page-gutter) var(--space-7); }
.mine-page h1 { font-size: var(--text-3xl); line-height: var(--leading-3xl); font-weight: var(--weight-semibold); letter-spacing: 0; }
.mine-page h2 { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-semibold); }
.mine-page h3 { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-semibold); }
.mine-profile-link { display: flex; align-items: center; gap: 16px; min-height: 80px; }
.mine-avatar { display: block; flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.mine-profile-link > span { flex: 1; min-width: 0; }
.mine-profile-link h1 { font-size: var(--text-2xl); line-height: var(--leading-2xl); }
.mine-profile-subtitle { display: block; margin-top: 6px; color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.mine-profile-link > .icon { width: 20px; height: 20px; color: var(--muted); }
.mine-profile-link:hover h1 { color: var(--accent-strong); }
.mine-section { margin-top: 28px; }
.mine-section > h2 { margin: 0 0 14px; }
.mine-footprints { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mine-footprints > a { display: flex; align-items: center; flex-direction: column; min-width: 0; gap: 8px; color: var(--ink); font-size: var(--text-sm); line-height: var(--leading-sm); text-align: center; }
.mine-footprint-icon { display: grid; place-items: center; width: 100%; height: 60px; border-radius: var(--card-radius); background: var(--card-bg); }
.mine-footprint-icon .icon { width: 28px; height: 28px; color: var(--accent); stroke-width: 1.6; }
.mine-footprints > a:hover .mine-footprint-icon { background: #fce9dd; }
.mine-personalization { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mine-personal-card { display: block; min-width: 0; padding: var(--space-4); border-radius: var(--card-radius); background: #faecdf; }
.mine-personal-card > .icon { width: 26px; height: 26px; margin-bottom: 14px; color: var(--accent); }
.mine-personal-card h3 { margin: 0 0 var(--space-1); }
.mine-personal-card p { color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-xs); }
.mine-devices-card { background: #f4efe5; }
.mine-devices-card > .icon { color: var(--ink); }
.mine-personal-card:hover { box-shadow: inset 0 0 0 1px #d7b69d; }
.mine-grouped-list { overflow: hidden; border-radius: var(--card-radius); background: var(--card-bg); }
.mine-list-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); width: 100%; min-height: 56px; padding: var(--space-4) 18px; font-size: var(--text-md); line-height: var(--leading-md); }
.mine-list-row + .mine-list-row { border-top: 1px solid var(--line-subtle); }
.mine-list-row:hover { background: #fff7ee; }
.mine-list-row:focus-visible { outline-offset: -4px; }
.mine-row-end { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.mine-row-end small { font-size: var(--text-xs); line-height: var(--leading-xs); }
.mine-row-end .icon { width: 16px; height: 16px; }
.mine-surface .home-indicator { height: 12px; background: var(--paper); }
.mine-surface[data-screen="mine"] .home-indicator { background: var(--surface); }
.mine-intro { margin: var(--space-2) 0 var(--space-6); color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.mine-detail > h1 { margin-bottom: 24px; }
.mine-detail > h1:has(+ .mine-intro) { margin-bottom: 0; }
.mine-setting-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 88px; padding: 18px; cursor: pointer; }
.mine-setting-row > span { min-width: 0; }
.mine-setting-row strong { display: block; font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-medium); }
.mine-setting-row small { display: block; margin-top: var(--space-1); color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.mine-setting-note { margin-top: var(--space-5); color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.preference-entry { min-height: 96px; }
.preference-entry > span { min-width: 0; }
.preference-entry strong { display: block; font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-regular); }
.preference-entry small { display: block; margin-top: 6px; color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-xs); }
.preference-entry > .icon { flex-shrink: 0; width: 16px; height: 16px; color: var(--muted); }
.preference-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 20px; color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-xs); }
.preference-note > .icon { flex-shrink: 0; width: 14px; height: 14px; margin-top: 3px; }
.preference-choice + .preference-choice { border-top: 1px solid var(--line-subtle); }
.preference-fieldset { min-width: 0; margin: 0 0 28px; padding: 0; border: 0; }
.preference-fieldset legend { margin-bottom: 8px; padding: 0; font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-semibold); }
.preference-description { margin-bottom: var(--space-3); color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.preference-options { overflow: hidden; border-radius: var(--card-radius); background: var(--card-bg); }
.preference-radio { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 14px 16px; font-size: var(--text-md); line-height: var(--leading-md); cursor: pointer; }
.preference-radio + .preference-radio { border-top: 1px solid var(--line-subtle); }
.preference-radio input { order: 1; flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.preference-radio:has(input:checked) { background: var(--accent-light); }
.preference-section { margin-top: 28px; }
.preference-section > h2 { margin-bottom: 12px; }
.preference-section > .preference-description { margin-top: 12px; }
.preference-method-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 12px 16px; }
.preference-method-row + .preference-method-row { border-top: 1px solid var(--line-subtle); }
.preference-method-row > span { min-width: 0; font-size: var(--text-md); line-height: var(--leading-md); }
.preference-method-row select { flex-shrink: 0; width: 112px; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font: var(--text-xs)/var(--leading-xs) var(--font-body); }
.mine-empty { padding: var(--space-8) var(--space-3); text-align: center; }
.mine-empty > .icon { width: 48px; height: 48px; margin: 0 auto 24px; color: #b98363; stroke-width: 1.4; }
.mine-empty h2 { font-size: var(--text-lg); line-height: var(--leading-lg); }
.mine-empty p { margin-top: 12px; color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-md); }
.mine-empty .button { margin-top: 28px; }
.mine-disclosure { border-bottom: 1px solid var(--line); }
.mine-disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 16px 0; list-style: none; cursor: pointer; font-size: var(--text-md); line-height: var(--leading-md); }
.mine-disclosure summary::-webkit-details-marker { display: none; }
.mine-disclosure summary .icon { width: 16px; height: 16px; color: var(--muted); }
.mine-disclosure[open] summary .icon { transform: rotate(90deg); }
.mine-disclosure summary:hover { color: var(--accent-strong); }
.mine-disclosure-body { padding-bottom: var(--space-5); color: var(--muted); font-size: var(--text-sm); line-height: 23px; }
.mine-disclosure-body p { line-height: inherit; }
.mine-disclosure-body blockquote { margin: 16px 0 0; color: var(--ink); font-size: var(--text-md); line-height: var(--leading-xl); }
.mine-example-label { font-size: var(--text-xs); line-height: var(--leading-xs); }
.mine-profile-overview { margin: 28px 0; text-align: center; }
.mine-profile-overview .mine-avatar { width: 80px; height: 80px; margin: 0 auto 16px; }
.mine-profile-overview p { margin-top: 8px; color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-md); }
.mine-info-list { margin: 24px 0 0; padding: 0; }
.mine-info-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: var(--text-sm); line-height: var(--leading-md); }
.mine-info-row dt { color: var(--muted); flex-shrink: 0; }
.mine-info-row dd { margin: 0; text-align: right; }
.mine-detail-section { margin-top: 32px; }
.mine-recent-space { margin-top: 16px; padding: 20px; border-radius: var(--card-radius); background: var(--card-bg); }
.mine-recent-space h3 { font-family: var(--font-rounded); }
.mine-recent-space p { margin-top: 8px; color: var(--muted); font-size: var(--text-sm); }
.mine-copy-section h2 { margin: var(--space-6) 0 var(--space-2); }
.mine-copy-section p, .mine-about p { color: var(--muted); font-size: var(--text-md); line-height: var(--leading-lg); }
.phone[data-screen="minePrivacy"] .mine-copy-section h2 { font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-semibold); }
.phone[data-screen="minePrivacy"] .mine-copy-section p { font-size: var(--text-sm); line-height: 23px; font-weight: var(--weight-regular); }
.mine-about { margin: 8px 0 28px; }
.mine-about p { margin-top: 12px; }
.mine-version { margin-top: 28px; color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-xs); text-align: center; }
@media (max-width: 760px) {
  .phone.mine-surface { height: 100dvh; min-height: 0; max-width: 430px; padding-top: var(--safe-top); }
  .mine-surface .topbar { height: var(--header-mobile-height); }
  .mine-surface .home-indicator { height: var(--safe-bottom); }
  .mine-surface .home-indicator::after { display: none; }
}
@media (max-width: 360px) {
  .mine-surface .page-scroll > .mine-page { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
  .mine-profile-link { gap: 12px; }
  .mine-profile-link h1 { font-size: var(--text-xl); line-height: var(--leading-xl); }
  .mine-profile-subtitle { font-size: var(--text-xs); line-height: var(--leading-xs); }
  .mine-footprints { gap: 6px; }
  .mine-footprints > a { font-size: var(--text-xs); line-height: var(--leading-xs); }
  .mine-personal-card { padding: 14px; }
  .mine-personal-card h3 { font-size: var(--text-md); line-height: var(--leading-md); }
  .mine-info-row { gap: 12px; }
}

/* Design System v1.0 / Batch 1: preference landing only, not its detail pages.
   Row spacing is a pilot value pending visual acceptance. */
.phone[data-screen="minePreferences"] { --header-title-size: var(--text-lg); --header-title-leading: var(--leading-lg); }
.phone[data-screen="minePreferences"] .topbar { height: var(--header-mobile-height); }
.phone[data-screen="minePreferences"] .module-title { font-family: var(--font-body); }
.preferences-home > h1 { margin-bottom: var(--space-5); line-height: var(--leading-3xl); }
.preferences-home .preference-entry { min-height: 84px; padding: var(--space-4); }
.preferences-home .preference-entry strong { font-weight: var(--weight-medium); line-height: var(--leading-lg); }
.preferences-home .preference-entry small { margin-top: var(--space-1); font-size: var(--text-sm); line-height: var(--leading-sm); }
.preferences-home .preference-entry:active { background: var(--selected-surface); }
.preferences-home .preference-note { margin-top: var(--space-4); font-size: var(--text-sm); line-height: var(--leading-sm); }
.preferences-home .preference-note > .icon { width: 16px; height: 16px; }

/* Non-core detail pages share the established interface and helper text roles. */
.preferences-detail .preference-note { margin-top: var(--space-4); font-size: var(--text-sm); line-height: var(--leading-sm); }

/* Personal center: identity, owned content, then experience preferences. */
.phone.mine-surface[data-screen="mine"] { background: var(--accent); }
.phone[data-screen="mine"] > .status-bar,
.phone[data-screen="mine"] > .topbar { background: var(--accent); color: var(--paper); }
.phone[data-screen="mine"] .topbar .mine-settings-trigger { color: var(--paper); }
.phone[data-screen="mine"] .mine-settings-trigger:hover,
.phone[data-screen="mine"] .mine-settings-trigger:active { background: rgba(255,255,255,.14); }
.phone[data-screen="mine"] .mine-settings-trigger:focus-visible { outline-color: var(--paper); }
.phone[data-screen="mine"] > .page-scroll { background: var(--paper); }
.mine-surface .page-scroll > .mine-home { display: flex; flex-direction: column; padding: 0; background: var(--accent); }
.mine-home .mine-profile-link { flex-shrink: 0; min-height: 164px; padding: 28px var(--page-gutter) 44px; gap: 16px; background: var(--accent); color: var(--paper); }
.mine-home .mine-body { position: relative; flex: 1; min-width: 0; margin-top: -16px; padding: 24px var(--page-gutter) 20px; border-radius: 20px 20px 0 0; background: var(--paper); }
.mine-home .mine-body > .mine-section:first-child { margin-top: 0; }
.mine-home .mine-avatar { width: 72px; height: 72px; border: 3px solid rgba(255,255,255,.7); }
.mine-home .mine-profile-link h1 { color: var(--paper); font-size: var(--text-3xl); line-height: 32px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mine-home .mine-profile-subtitle { color: var(--paper); font-size: var(--text-sm); line-height: 22px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mine-home .mine-profile-link > .icon { color: var(--paper); width: 20px; height: 20px; }
.mine-home .mine-profile-link:focus-visible { outline: 2px solid var(--paper); outline-offset: -6px; }
.mine-home .mine-profile-link:active { opacity: .86; }
.mine-home .mine-section { margin-top: 24px; }
.mine-home .mine-section > h2 { margin-bottom: 12px; }
.mine-home .mine-footprints { gap: 12px; }
.mine-home .mine-footprint-icon { width: 48px; height: 48px; border-radius: 16px; }
.mine-home .mine-footprint-icon .icon { width: 25px; height: 25px; }
.mine-home .mine-footprints > a { font-size: var(--text-sm); line-height: 22px; }
.mine-home .mine-footprints > a:active .mine-footprint-icon { background: var(--selected-surface); }
.mine-home .mine-personalization { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.mine-home .mine-personal-card { padding: 20px; }
.mine-home .mine-personal-card:hover { box-shadow: none; }
.mine-home .mine-preferences-card { background: var(--surface); }
.mine-home .mine-preferences-card:hover, .mine-home .mine-preferences-card:active { background: var(--hover-surface); }
.mine-personal-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mine-home .mine-personal-card h3 { margin: 0; font-size: var(--text-lg); line-height: 26px; }
.mine-personal-card-heading > .icon { width: 18px; height: 18px; color: var(--muted); }
.mine-home .mine-preference-conclusion { font-size: var(--text-md); line-height: 26px; color: var(--ink); margin: 16px 0 20px; }
.mine-home .mine-preference-conclusion > span { display: block; color: var(--muted); font-size: var(--text-sm); line-height: 22px; }
.mine-home .mine-preference-conclusion > strong { display: block; margin-top: 4px; font-size: var(--text-2xl); line-height: 30px; font-weight: var(--weight-semibold); }
.experience-proportion { display: flex; gap: 3px; height: 10px; overflow: hidden; border-radius: var(--radius-pill); }
.experience-proportion > span { flex-basis: 0; min-width: 0; }
.experience-type-senses { background: #a5b29e; }
.experience-type-screen { background: #bba797; }
.experience-type-expression { background: #df906b; }
.experience-type-body { background: #e3c59a; }
.experience-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.experience-legend > span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: var(--text-xs); line-height: 18px; white-space: nowrap; }
.experience-legend i { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; }
.mine-home .mine-devices-card { min-height: 88px; display: flex; align-items: center; gap: 14px; background: #f4efe5; }
.mine-device-icon { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; }
.mine-device-icon .icon { width: 28px; height: 28px; color: var(--ink); }
.mine-devices-card > span:nth-child(2) { flex: 1; min-width: 0; }
.mine-home .mine-devices-card h3 { font-size: var(--text-md); line-height: 26px; }
.mine-home .mine-devices-card p { margin: 4px 0 0; font-size: var(--text-xs); line-height: 20px; }
.mine-devices-card > .icon { width: 18px; height: 18px; margin: 0; color: var(--muted); }
.mine-home .mine-devices-card:active { background: var(--selected-surface); }
.mine-home .preference-overview-empty { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 23px; }
.preferences-home .preference-observation h1 { margin: 0; font-size: var(--text-3xl); line-height: 32px; }
.preference-observation-source { color: var(--muted); font-size: var(--text-sm); line-height: 22px; margin: 8px 0 24px; }
.preference-observed-conclusion { color: var(--ink); font-size: var(--text-lg); line-height: 28px; font-weight: var(--weight-medium); margin: 0 0 20px; }
.preference-observation .experience-proportion { height: 12px; }
.experience-distribution-list { list-style: none; padding: 0; margin: 16px 0 0; }
.experience-distribution-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; color: var(--muted); font-size: var(--text-sm); line-height: 22px; }
.experience-distribution-list li > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.experience-distribution-list li > span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.experience-distribution-list i { width: 8px; height: 8px; border-radius: 50%; }
.preference-observation-note { color: var(--muted); font-size: var(--text-xs); line-height: 20px; margin: 12px 0 0; }
.preferences-home .preference-overview-empty { color: var(--muted); font-size: var(--text-sm); line-height: 23px; margin: 0; }
.preference-manual { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.preference-manual > h2 { margin: 0 0 20px; }
.preference-manual .preference-fieldset { margin: 0; }
.preference-manual .preference-fieldset legend { font-size: var(--text-md); line-height: 26px; font-weight: var(--weight-medium); }
.preference-manual .preference-description { font-size: var(--text-sm); line-height: 22px; margin: 0 0 12px; }
.preference-manual .preference-radio:has(input:checked) { background: var(--accent-light); }
.preference-manual .preference-radio:has(input:checked) > span { color: var(--accent-strong); font-weight: var(--weight-medium); }
.preference-save-status { color: var(--muted); font-size: var(--text-sm); line-height: 22px; min-height: 22px; margin: 12px 0 0; }
.preference-advanced { border-top: 1px solid var(--line); margin-top: 24px; }
.preferences-home .preference-advanced .preference-entry { min-height: 72px; }
@media (max-width: 360px) {
  .mine-home .mine-profile-link { gap: 12px; }
  .mine-home .mine-profile-link h1 { font-size: var(--text-2xl); line-height: 30px; }
  .mine-home .mine-footprints { gap: 8px; }
  .mine-home .mine-personal-card { padding: 18px; }
  .mine-home .mine-devices-card { gap: 10px; }
  .mine-home .mine-devices-card p { max-width: 160px; }
}
.preferences-detail .preference-note > .icon { width: 16px; height: 16px; }
.phone .preference-method-row select { font-size: var(--text-sm); line-height: var(--leading-sm); }
.mine-device-page .mine-empty { padding-top: var(--space-8); }
.mine-detail > .outbox-withdraw { margin-top: var(--space-6); }
