/* Рядом / pocket companion. Mobile first visual layer; no application logic. */
:root {
  --bg: #f1f4f8;
  --ink: #222e47;
  --muted: #657087;
  --line: #dce2ec;
  --green: #334c84;
  --lime: #fff0e5;
  --learn: #ffb69e;
  --white: #fff;
  --radius: 28px;
  --ease-out: cubic-bezier(.23,1,.32,1);
  --ease-in-out: cubic-bezier(.77,0,.175,1);
  --ease-drawer: cubic-bezier(.32,.72,0,1);
  font-family: 'Segoe UI Variable Text','Segoe UI',sans-serif;
  color: var(--ink);
  background: var(--bg);
}
html { scroll-padding-bottom: 110px; }
body { -webkit-font-smoothing: antialiased; }
button,input,select,textarea { font-family: inherit; }
button,a { touch-action: manipulation; }
button { transition: transform 140ms var(--ease-out),background-color 160ms ease,color 160ms ease,border-color 160ms ease; }
button:active { transform: scale(.975); }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible {
  outline: 3px solid #5577c2; outline-offset: 4px;
}
h1,h2,h3 { text-wrap: balance; }
h1 { font-size: clamp(34px,3.4vw,46px); font-weight: 720; letter-spacing: -1.7px; }
h2 { font-weight: 680; }
p { line-height: 1.55; }
.app { max-width: 1510px; margin: auto; }
.app main { min-width: 0; max-width: none; padding: 30px 40px 26px; }
.sidebar { width: 218px; padding: 32px 24px; border-right: 1px solid var(--line); background: #f8faff; }
.brand { gap: 8px; font-size: 34px; }
.brand-mark { background: var(--ink); color: #ffc5af; border-radius: 12px 12px 12px 4px; width: 38px; height: 38px; }
.brand-dot { color: #e98266; }
.brand-description { color: #657087; font-size: 13px; margin: 22px 0 40px; }
.sidebar nav { gap: 6px; }
.nav { color: #606e88; border-radius: 15px; padding: 15px 12px; min-height: 52px; }
.nav.active { background: #e3eafa; color: #263f74; font-weight: 700; }
.nav span { line-height: 1; }
.side-note { font-size: 11px; }
.tiny-dot { background: #6583bd; }
header { padding-bottom: 24px; gap: 14px; }
.profile-picker { gap: 12px; min-width: 0; }
.profile-picker>span { color: var(--muted); font-size: 12px; }
.profile-picker select { border: 1px solid #dbe2ef; background: white; border-radius: 14px; min-height: 46px; padding: 10px 26px 10px 14px; max-width: 230px; box-shadow: 0 2px 3px #26334b03; }
.profile-picker~#dateLabel { margin: 0 0 0 auto; white-space: nowrap; }
.prototype { background: #e7ecf4; border: 0; border-radius: 7px; font-size: 10px; color: #67738a; }
.demo-banner { background: #e5ebf5; border-radius: 13px; margin-bottom: 22px; padding: 8px 15px; color: #50627f; }
.text-button { color: #334c84; min-height: 44px; }
.page-heading { margin: 0 0 24px; gap: 20px; align-items: center; }
.eyebrow { font-size: 12px; margin-bottom: 8px; }
.button { min-height: 50px; border-radius: 15px; padding: 14px 20px; font-size: 14px; font-weight: 650; line-height: 1.25; }
.primary { background: #334c84; color: white; box-shadow: 0 3px 0 #1a2d5a0b; }
.secondary { background: #edf1f8; color: #304873; border: 1px solid #dce3f0; }
.learn-banner { position: relative; overflow: hidden; isolation: isolate; background: var(--learn); color: #472c32; padding: 25px 28px; border-radius: 24px; gap: 20px; margin-bottom: 30px; box-shadow: none; }
.learn-banner::after { content: ''; position: absolute; z-index: -1; right: 105px; top: -65px; width: 225px; height: 225px; border: 24px solid #ffffff20; border-radius: 50%; pointer-events: none; }
.learn-kicker { color: #734d4d; font-size: 12px; margin-bottom: 7px; }
.learn-banner strong { font-size: 29px; font-weight: 750; letter-spacing: -.9px; }
.learn-sub { color: #66454b; font-size: 13px; margin-top: 8px; }
.learn-arrow { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 28px; background: #ffffff80; color: #4c353d; }
#learnFaces { display: flex; }
#learnFaces .portrait { width: 58px; margin-left: -12px; }
.today-grid { grid-template-columns: minmax(0,1.8fr) minmax(265px,1fr); gap: 24px; }
.hero-card { background: white; padding: 24px; border: 1px solid #e4e8ef; border-radius: 28px; box-shadow: 0 5px 16px #34425e04; }
.hero-top { font-size: 12px; color: #6b7485; gap: 8px; }
.pill { background: #fae3d8; color: #794b3d; padding: 8px 12px; border-radius: 10px; font-size: 12px; }
.hero-body { gap: 24px; padding: 30px 0 26px; align-items: center; }
.hero-card .sticker { position: relative; isolation: isolate; flex-shrink: 0; width: 145px; }
.hero-card .sticker::before { content: ''; position: absolute; inset: 10% -2% -1%; border-radius: 46% 46% 28% 28%; background: #fff0e5; z-index: -1; }
.sticker .portrait { width: 100%; filter: none; }
.hero-body h2 { font-size: clamp(27px,2.5vw,35px); line-height: 1.12; letter-spacing: -1px; margin-bottom: 12px; max-width: 370px; }
.hero-body .eyebrow { color: #7b6f70; font-size: 11px; margin-bottom: 9px; }
.hero-body p:not(.eyebrow) { color: #596479; font-size: 14px; line-height: 1.55; max-width: 340px; }
.hero-foot { border-top: 1px solid #e8edf5; color: #6a7486; padding-top: 15px; font-size: 11px; gap: 9px; }
.small-icon { margin-top: 1px; }
.section-top h2 { font-size: 18px; letter-spacing: -.35px; }
.section-top>span { font-size: 11px; }
.checkin { margin-top: 22px; padding: 19px 20px 20px; background: #e8edf6; border-radius: 20px; }
.checkin .section-top { flex-wrap: wrap; gap: 5px 12px; }
.checkin .section-top h2 { font-size: 16px; }
.moods { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; margin-top: 14px; }
.moods button { border-radius: 11px; min-height: 44px; background: #ffffffbd; border: 1px solid #d9e0ed; font-size: 11px; padding: 8px 6px; line-height: 1.3; }
.moods button.selected { background: #334c84; color: white; border-color: #334c84; }
.advice-title { margin: 25px 0 12px; }
.advice-grid { gap: 12px; }
.advice-card { background: white; border: 1px solid #e2e7ef; border-radius: 21px; padding: 21px; }
.advice-icon { background: #eaf0fb; width: 39px; height: 39px; border-radius: 13px; margin-bottom: 16px; }
.advice-icon svg { stroke: #3d568c; width: 23px; height: 23px; }
.advice-card:nth-child(2) .advice-icon { background: #fce8e0; }
.advice-card:nth-child(2) .advice-icon svg { stroke: #9d614c; }
.advice-card h3 { font-size: 19px; line-height: 1.2; letter-spacing: -.5px; margin-bottom: 9px; }
.advice-card p { color: #657087; font-size: 13px; }
.right-column { gap: 16px; }
.cycle-card { border: 1px solid #dfe5ee; border-radius: 26px; padding: 22px; background: #f9fbff; }
.cycle-card .section-top h2 { font-size: 16px; }
.cycle-card .text-button { font-size: 12px; }
.cycle-ring { width: 190px; margin: 12px auto 8px; }
.cycle-ring circle:nth-child(1) { stroke: #e5ebf5; }
.cycle-ring circle:nth-child(2) { stroke: #dba18b; }
.cycle-ring circle:nth-child(3) { fill: #334c84; }
.cycle-ring text { fill: #657087; }
.cycle-ring text:nth-of-type(1) { fill: #263956; }
.cycle-card .muted { font-size: 12px; }
.cycle-card>.button { margin-top: 17px; background: #334c84; color: white; border-color: #334c84; }
.next-card { padding: 23px; border-radius: 22px; background: #e2eaf9; }
.next-card .small-label { color: #57709c; }
.next-card h3 { margin: 12px 0 10px; color: #2c426b; font-size: 23px; letter-spacing: -.55px; }
.next-card p { color: #536783; font-size: 13px; }
.plain-note { padding: 5px 7px; color: #70809a; }
.plain-note p { font-size: 12px; }
.personal-tip { background: #f8eddc; border-color: #eadcc3; }
.personal-tip .favorite-value { color: #755331; font-size: 21px; }
.flirt-tip { background: #f7e5eb; border-color: #edd6df; }
.flirt-tip h3 { font-size: 26px; letter-spacing: -.7px; }
.flirt-actions { gap: 12px 18px; }
.intro { font-size: 15px; line-height: 1.6; max-width: 660px; margin-top: 15px; }
.calendar-layout { grid-template-columns: minmax(0,1.6fr) minmax(260px,1fr); gap: 26px; }
.calendar-card { border: 1px solid #e1e6ef; padding: 26px; border-radius: 26px; }
.month-controls { margin-bottom: 24px; }
.month-controls h2 { text-transform: capitalize; font-size: 22px; }
.icon-button { background: #f2f5fa; border: 1px solid #e0e6ee; color: #516381; width: 44px; height: 44px; flex-shrink: 0; }
.weekdays { font-size: 12px; }
.calendar-grid button { background: #f3f6fb; border-radius: 12px; font-weight: 600; }
.calendar-grid .start { background: #334c84; }
.calendar-grid .estimate { background: #fbe5da; border-color: #d6a38e; }
.calendar-grid .today { box-shadow: inset 0 0 0 2px #5e7cb6; }
.legend-estimate { background: #fbe5da; border-color: #d6a38e; }
.legend-today { border-color: #5e7cb6; }
.calendar-explain { padding: 24px; border-radius: 22px; background: #e8edf6; align-self: start; }
.calendar-explain h2 { font-size: 24px; letter-spacing: -.6px; }
.calendar-explain p { font-size: 14px; margin: 16px 0; }
.guide-grid { gap: 18px; }
.guide-card { border-radius: 25px; border-color: #e0e6ef; padding: 24px; }
.guide-card-head { gap: 18px; margin-bottom: 20px; }
.guide-card .mini-face { width: 94px; border-radius: 26px; background: #fff0e5; }
.guide-good .mini-face { background: #f3edcf; }
.guide-calm .mini-face { background: #e7eef8; }
.guide-sensitive .mini-face { background: #f7e4e6; }
.guide-card h2 { font-size: 25px; letter-spacing: -.7px; }
.module-number { color: #7c8598; font-size: 12px; }
.guide-facts { gap: 14px; }
.guide-facts strong { color: #7b8494; font-weight: 500; font-size: 12px; margin-bottom: 5px; }
.guide-facts p { font-size: 14px; }
.guide-action { border-radius: 17px; background: #fff0e5; margin-top: 20px; padding: 18px; }
.guide-good .guide-action { background: #f5f0da; }
.guide-calm .guide-action { background: #eaf0fa; }
.guide-sensitive .guide-action { background: #f9e9eb; }
.guide-action>span { color: #7a6d6c; font-size: 12px; }
.guide-action h3 { font-size: 22px; letter-spacing: -.5px; margin: 7px 0; }
.guide-action p { color: #5f6677; font-size: 13px; }
.guide-bottom { border-radius: 26px; padding: 30px; background: #e0e8f6; }
.guide-bottom h2 { font-size: 31px; }
.guide-bottom .guide-start-copy { font-size: 14px; max-width: 720px; }
.guide-bottom .small,.guide-bottom .guide-note { color: #5b6c87; }
.guide-note,.guide-bottom details { border-color: #bdcce3; }
.favorites-layout { gap: 24px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.settings-card { background: white; border-color: #e0e6ef; border-radius: 24px; padding: 26px; }
.settings-card label,#dateForm label { font-size: 14px; font-weight: 650; }
.field-help { color: #6a758a; font-size: 12px; line-height: 1.6; }
input:not([type=checkbox]),textarea,.profile-relation,.favorites-layout select { border: 1px solid #d7deea; background: #f8faff; border-radius: 12px; color: var(--ink); min-height: 50px; }
input::placeholder,textarea::placeholder { color: #8994a7; opacity: 1; }
.checkbox input { accent-color: #334c84; }
.favorites-empty { background: #e8edf6; border: 1px dashed #bfccdf; border-radius: 22px; padding: 28px; font-size: 15px; }
.favorite-item { background: white; border: 1px solid #e0e6ef; padding: 20px; margin-top: 12px; border-radius: 19px; }
.favorite-item .small-label { color: #8a6270; }
.favorite-item p { font-size: 16px; font-weight: 550; }
#settings { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: start; }
#settings>.page-heading { grid-column: 1/-1; margin-bottom: 0; }
.appearance-card { background: #e7edf7; border: 1px solid #dce4f1; border-radius: 25px; padding: 24px; margin: 0; max-width: none; }
.appearance-card .section-top { flex-wrap: wrap; gap: 6px; }
.appearance-card .section-top h2 { font-size: 19px; }
.hair-options { border: 1px solid #d2dced; background: #dce5f3; padding: 4px; border-radius: 13px; margin-top: 21px; }
.hair-options button { font-size: 12px; border-radius: 10px; padding: 9px 13px; }
.hair-options button.selected { background: white; color: #334c84; box-shadow: 0 2px 5px #2336530d; }
.pack-options { gap: 8px; margin-top: 17px; }
.pack-option { border: 2px solid transparent; background: #ffffffba; border-radius: 17px; padding: 12px 5px; gap: 7px; }
.pack-option.selected { border-color: #6c84b2; background: white; }
.pack-option .portrait { width: 96px; }
.pack-option strong { font-size: 12px; }
.emotion-preview { gap: 17px 5px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #cfd9e9; }
.emotion-preview>div>span:last-child { color: #5b6b87; font-size: 10px; line-height: 1.35; }
#settingsForm { max-width: none; }
.profile-management { max-width: none; margin-top: 0; padding: 24px; border: 1px solid #dbe3ef; border-radius: 24px; background: white; }
.privacy { max-width: none; margin: 0; padding: 15px 8px; }
.privacy h2 { font-size: 18px; }
.danger { color: #ac484c; }
footer { margin-top: 32px; padding-top: 17px; color: #7a8598; border-color: #dce3ee; }
.date-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.date-actions .button { flex: 1; }
.date-mode-tabs { display: flex; gap: 5px; padding: 5px; background: #e6ecf6; border-radius: 14px; margin-bottom: 19px; }
.date-mode-tabs button { flex: 1; min-height: 46px; border: 0; border-radius: 10px; padding: 9px 10px; background: transparent; color: #53698c; font-size: 13px; }
.date-mode-tabs button.active,.date-mode-tabs button.selected,.date-mode-tabs button[aria-pressed=true] { background: white; color: #263e6c; box-shadow: 0 2px 4px #263e6c08; }
.history-card { padding: 22px; background: white; border: 1px solid #e0e6ef; border-radius: 22px; margin-top: 20px; }
.history-card h2 { font-size: 20px; }
.history-list { padding: 0; margin: 14px 0 0; list-style: none; }
.history-list>li,.history-list>.history-item { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid #e6ebf3; font-size: 13px; }
dialog { background: white; border: 1px solid #dce3ed; border-radius: 27px; padding: 28px; box-shadow: 0 25px 90px #192c5233; max-height: calc(100dvh - 28px); overflow-y: auto; }
dialog::backdrop { background: #1c2d4c73; backdrop-filter: blur(5px); }
dialog h2 { font-size: 28px; letter-spacing: -.8px; }
dialog p { font-size: 14px; }
dialog[open] { opacity: 1; transform: scale(1); transition: opacity 220ms var(--ease-out),transform 250ms var(--ease-out); }
@starting-style { dialog[open] { opacity: 0; transform: scale(.96); } }
#toast { background: #253854; box-shadow: 0 6px 25px #22345026; border-radius: 15px; line-height: 1.4; transition: opacity 200ms ease,transform 220ms var(--ease-out); }
@media(hover:hover) and (pointer:fine) {
  .nav:hover { background: #e9eef8; }
  .nav.active:hover { background: #dde6f7; }
  .primary:hover,.cycle-card>.button:hover { background: #293e70; }
  .learn-banner:hover { background: #ffab91; }
  .learn-banner:hover .learn-arrow { transform: translate(2px,-2px); }
  .learn-arrow { transition: transform 180ms var(--ease-out); }
  .moods button:hover { background: white; border-color: #a5b6d4; }
  .moods button.selected:hover { background: #293e70; }
  .pack-option:hover { background: white; border-color: #b0c0da; }
  .calendar-grid button:not(:disabled):hover { border-color: #7892bd; }
}
@media(min-width:1600px) { .sidebar { border-left: 1px solid var(--line); } }
@media(max-width:1200px) {
  .app main { padding: 26px; }
  .sidebar { width: 184px; padding: 28px 18px; }
  .today-grid { grid-template-columns: minmax(0,1.55fr) minmax(250px,1fr); gap: 20px; }
  .hero-card .sticker { width: 115px; }
  .hero-body { gap: 17px; }
  .hero-body h2 { font-size: 28px; }
  #learnFaces { display: none; }
  .moods { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #settings { grid-template-columns: minmax(0,1fr); }
  .appearance-card { max-width: 720px; }
  #settingsForm,.profile-management,.privacy { max-width: 720px; width: 100%; }
}
@media(max-width:960px) {
  .sidebar { width: 164px; padding: 26px 14px; }
  .nav { font-size: 12px; gap: 9px; }
  .brand { font-size: 28px; }
  .today-grid { grid-template-columns: minmax(0,1fr); }
  .hero-card .sticker { width: 145px; }
  .hero-body h2 { font-size: 32px; }
  .right-column { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .plain-note { grid-column: 1/-1; }
  .calendar-layout,.favorites-layout { grid-template-columns: minmax(0,1fr); }
  .guide-grid { grid-template-columns: minmax(0,1fr); }
  .cycle-card { padding: 20px; }
  .cycle-card .section-top { flex-wrap: wrap; gap: 0; }
  .learn-banner strong { font-size: 27px; }
}
@media(max-width:700px) {
  .app { display: block; }
  .app main { padding: 20px 20px 120px; }
  .sidebar { position: fixed; inset: auto 10px calc(9px + env(safe-area-inset-bottom)); width: auto; height: auto; padding: 6px; background: #ffffffef; border: 1px solid #dce3ef; border-radius: 22px; box-shadow: 0 8px 30px #273c5d18; backdrop-filter: blur(16px); z-index: 5; }
  .sidebar .brand,.sidebar .brand-description,.sidebar .side-note { display: none; }
  .sidebar nav { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 3px; }
  .nav { display: flex; flex-direction: column; gap: 5px; padding: 9px 2px 8px; border-radius: 16px; min-height: 57px; font-size: 9px; line-height: 1.2; white-space: nowrap; }
  .nav span { font-size: 21px; }
  .nav.active { background: #e6edfb; }
  header { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 10px; padding-bottom: 18px; }
  header::before { content: 'рядом.'; order: -3; font-size: 28px; line-height: 1; font-weight: 800; color: #263956; letter-spacing: -1.5px; }
  header #dateLabel { order: -2; margin: 0 0 0 auto; font-size: 11px; }
  header .prototype { order: -1; font-size: 9px; padding: 5px 7px; }
  .profile-picker { width: 100%; justify-content: space-between; margin: 0; background: #e7edf6; padding: 5px 5px 5px 14px; border-radius: 16px; }
  .profile-picker select { flex: 1; max-width: 78%; min-height: 42px; border: 0; border-radius: 11px; font-size: 13px; }
  .profile-picker>span { font-size: 11px; }
  .demo-banner { border-radius: 11px; padding: 6px 12px; gap: 9px; margin-bottom: 18px; font-size: 11px; }
  .demo-banner .text-button { white-space: nowrap; font-size: 11px; }
  .learn-banner { padding: 20px; border-radius: 23px; gap: 12px; margin-bottom: 26px; }
  .learn-banner strong { font-size: 25px; line-height: 1.08; letter-spacing: -.7px; max-width: 250px; }
  .learn-kicker { font-size: 11px; margin-bottom: 8px; }
  .learn-sub { font-size: 12px; line-height: 1.45; margin-top: 9px; max-width: 260px; }
  .learn-arrow { width: 39px; height: 39px; font-size: 24px; }
  .learn-banner::after { right: 10px; top: -80px; }
  #learnFaces { display: none; }
  h1 { font-size: 34px; letter-spacing: -1.25px; }
  .page-heading { gap: 14px; margin-bottom: 19px; align-items: flex-start; }
  .eyebrow { font-size: 11px; margin-bottom: 8px; }
  .desktop-date { display: none; }
  .mobile-date { display: block; width: 100%; margin-top: 18px; }
  .today-grid { gap: 20px; }
  .hero-card { padding: 20px; border-radius: 26px; }
  .hero-top { font-size: 11px; }
  .pill { font-size: 11px; padding: 7px 10px; }
  .hero-body { gap: 17px; padding: 26px 0 23px; }
  .hero-card .sticker { width: 112px; }
  .hero-body h2 { font-size: 27px; letter-spacing: -.8px; margin-bottom: 10px; }
  .hero-body .eyebrow { font-size: 10px; line-height: 1.4; margin-bottom: 7px; }
  .hero-body p:not(.eyebrow) { font-size: 12px; line-height: 1.55; }
  .hero-foot { font-size: 10px; padding-top: 14px; }
  .checkin { padding: 17px; margin-top: 18px; border-radius: 20px; }
  .checkin .section-top h2 { font-size: 16px; }
  .checkin .section-top>span { font-size: 10px; }
  .moods { gap: 6px; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 12px; }
  .moods button { font-size: 11px; padding: 8px 4px; min-height: 44px; border-radius: 11px; }
  .section-top h2 { font-size: 17px; }
  .advice-title { margin-top: 23px; margin-bottom: 11px; }
  .advice-title .text-button { font-size: 12px; }
  .advice-grid { gap: 10px; }
  .advice-card { padding: 17px; border-radius: 20px; }
  .advice-icon { width: 36px; height: 36px; margin-bottom: 15px; border-radius: 12px; }
  .advice-card h3 { font-size: 18px; line-height: 1.2; letter-spacing: -.5px; }
  .advice-card p { font-size: 12px; line-height: 1.6; }
  .personal-tip .favorite-value { font-size: 20px; }
  .flirt-tip h3 { font-size: 25px; }
  .right-column { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .cycle-card { padding: 21px; margin: 0; }
  .cycle-card .section-top { flex-wrap: nowrap; }
  .cycle-ring { width: 180px; margin-top: 8px; }
  .plain-note { grid-column: auto; }
  .next-card { padding: 23px; }
  .calendar-card { padding: 18px; border-radius: 23px; }
  .calendar-grid,.weekdays { gap: 4px; }
  .calendar-grid button,.calendar-grid .empty-day { min-height: 34px; font-size: 13px; border-radius: 9px; }
  .month-controls { margin-bottom: 20px; }
  .month-controls h2 { font-size: 20px; }
  .legend { gap: 9px 12px; font-size: 10px; line-height: 1.4; }
  .calendar-explain { padding: 22px; }
  .calendar-explain h2 { font-size: 23px; }
  .intro { font-size: 14px; margin-top: 13px; }
  .intro br { display: none; }
  .guide-grid { gap: 16px; }
  .guide-card { padding: 21px; border-radius: 24px; }
  .guide-card .mini-face { width: 89px; border-radius: 23px; }
  .guide-card-head { gap: 16px; }
  .guide-card h2 { font-size: 25px; }
  .guide-action { padding: 17px; }
  .guide-action h3 { font-size: 22px; }
  .guide-bottom { padding: 23px; border-radius: 24px; }
  .guide-bottom h2 { font-size: 29px; }
  .guide-start { width: 100%; }
  .settings-card { padding: 22px; border-radius: 23px; }
  .favorites-layout { gap: 24px; }
  .favorites-layout .settings-card { padding: 22px; }
  #settings { gap: 20px; }
  .appearance-card { padding: 20px; border-radius: 24px; }
  .appearance-card .section-top { align-items: flex-start; flex-direction: column; }
  .appearance-card .section-top>span { font-size: 11px; }
  .hair-options { margin-top: 18px; width: 100%; }
  .hair-options button { flex: 1; font-size: 12px; }
  .pack-options { gap: 7px; }
  .pack-option { border-radius: 15px; padding: 11px 3px; }
  .pack-option .portrait { width: 85px; }
  .pack-option strong { font-size: 11px; }
  .emotion-preview { gap: 15px 4px; }
  .emotion-preview>div>span:last-child { font-size: 9px; }
  .profile-management { padding: 22px; }
  .new-profile-row { gap: 8px; }
  .new-profile-row .button { padding: 12px; }
  .privacy { padding: 6px 2px; }
  footer { font-size: 11px; margin-top: 25px; line-height: 1.6; display: block; }
  footer .text-button { display: block; }
  dialog { width: calc(100% - 20px); padding: 24px; border-radius: 26px; }
  dialog h2 { font-size: 27px; }
  .date-actions { gap: 9px; }
  .date-actions .button { font-size: 13px; padding: 13px 12px; }
  .date-mode-tabs button { font-size: 12px; }
  #toast { bottom: calc(91px + env(safe-area-inset-bottom)); font-size: 13px; padding: 13px 18px; }
}
@media(max-width:375px) {
  .app main { padding-right: 14px; padding-left: 14px; }
  .hero-card { padding: 18px; }
  .hero-card .sticker { width: 96px; }
  .hero-body { gap: 13px; }
  .hero-body h2 { font-size: 25px; }
  .learn-banner { padding: 19px; }
  .learn-banner strong { font-size: 23px; }
  .advice-card { padding: 15px; }
  .advice-card h3 { font-size: 17px; }
  .appearance-card { padding: 17px; }
  .pack-option strong { font-size: 10px; }
  .moods button { font-size: 10px; }
  .nav { font-size: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior: auto!important; animation: none!important; transition: none!important; }
  button:active,.learn-banner:hover .learn-arrow { transform: none; }
  dialog[open] { transform: none; }
}

