/* APP-P1: 목업(jjakgong public/demo/demo.css·styles.css) 규칙을 그대로 옮긴다. 출처 줄은 목업 2026-10-22 기준. */
/* 다이어리: demo.css 3-100, 601-603 */
.diary-tabs { position: sticky; top: 0; z-index: 2; background: var(--paper, #fbf8f2); padding: 4px; }
.diary-tabs button { min-width: 0; min-height: 42px; }
.diary-paper { padding: 16px 12px; border: 1px solid #e6e1d6; border-radius: 18px; background: #fffcf6; }
.diary-paper .field { margin: 0; }
.diary-paper .input { width: 100%; box-sizing: border-box; }
.diary-paper .field { min-width: 0; }
.diary-paper textarea { resize: vertical; min-height: 90px; }
.diary-paper .row .label { font-size: 11px; }
.diary-todo { display: flex; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid #e6e1d6; overflow-wrap: anywhere; }
.diary-todo input { width: 20px; height: 20px; accent-color: var(--teal); flex: none; }
.diary-todo .chip { max-width: 90px; overflow-wrap: anywhere; white-space: normal; }
.diary-checked { text-decoration: line-through; color: var(--muted); }
.diary-timetable { border: 1px solid #dddcd1; border-radius: 10px; overflow: hidden; }
.diary-hour { display: grid; grid-template-columns: 38px repeat(6, minmax(0, 1fr)); min-height: 24px; }
.diary-hour > span { color: var(--muted); font-size: 10px; padding: 4px 3px; text-align: center; border-bottom: 1px solid #e6e1d6; }
.diary-cell { position: relative; min-height: 24px; border-left: 1px solid #e6e1d6; border-bottom: 1px solid #e6e1d6; }
.diary-hour:last-child > * { border-bottom: 0; }
.diary-ink { position: absolute; top: 2px; bottom: 2px; background: var(--subject); opacity: .85; border-radius: 2px; }
.diary-ink.manual { background-image: repeating-linear-gradient(135deg, transparent 0 3px, #ffffffa8 3px 5px); }
.diary-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--ink-2); }
.diary-legend span { display: inline-flex; align-items: center; gap: 4px; }
.diary-legend i { width: 10px; height: 10px; border-radius: 3px; }
.diary-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; padding: 14px 0; border-block: 1px solid #e6e1d6; }
.diary-total b { font-size: 23px; color: var(--teal); }
.diary-total span { font-size: 12px; color: var(--muted); }
/* 14단계: 오늘 타임라인과 주간 기록, 장부는 기존 그대로 사용한다. */
.diary-paper { border: 0; padding: 4px 0; background: transparent; gap: 12px; }
.diary-paper .row { flex-wrap: wrap; }
.diary-dday-chip { background: #ffe6dc; border-radius: 9px; padding: 7px 12px; }
.diary-total { padding: 12px 16px; border: 0; border-radius: 20px; background: #e7f2eb; align-items: center; flex-wrap: nowrap; }
.diary-total > div { display: grid; gap: 5px; min-width: 0; }
.diary-total b { display: block; font-size: clamp(25px, 7vw, 34px); color: var(--ink); overflow-wrap: anywhere; }
.diary-total .av { width: 52px; height: 52px; flex: none; }
.diary-total small { color: #45665f; font-size: 12px; }
.diary-timeline { position: relative; display: grid; gap: 10px; }
.diary-timeline-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; position: relative; }
.diary-timeline-row::before { content: ''; position: absolute; left: 48px; height: calc(100% + 10px); border-left: 2px solid #c6dad1; }
.diary-timeline time { padding-top: 10px; font-size: 12px; color: #486b63; }
.diary-timeline time small { display: block; font-size: 10px; }
.diary-block { display: grid; gap: 3px; padding: 9px 12px; border-radius: 15px; background: var(--subject); color: #133e3a; overflow-wrap: anywhere; border: 2px solid transparent; }
.diary-block span, .diary-block small { font-size: 12px; }
.diary-block.manual { border: 2px dashed #365a52; background: color-mix(in srgb, var(--subject) 30%, #fffaf2); }
.diary-now { border-top: 2px solid #ec806c; color: #8a4032; padding-top: 5px; font-size: 12px; position: relative; z-index: 1; }
.diary-now[hidden] { display: none; }
.diary-now.in-block { position: absolute; left: 0; right: 0; top: var(--block-position); pointer-events: none; padding: 0; }
.diary-now.in-block span { background: #fffcf6; border-radius: 3px; padding: 1px 3px; }
.diary-full-toggle { justify-self: start; }
.diary-empty { display: flex; align-items: center; gap: 12px; padding: 18px; background: #f0f3e9; border-radius: 16px; }
.diary-empty .av { width: 44px; height: 44px; flex: none; }
.diary-empty p { margin: 0; font-size: 14px; }
.diary-week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.diary-week-strip button { display: grid; justify-items: center; gap: 4px; padding: 9px 2px; min-height: 64px; border: 0; border-radius: 14px; background: #eeeee5; color: var(--ink); cursor: pointer; }
.diary-week-strip button[aria-current] { outline: 2px solid #e17e68; outline-offset: -2px; }
.diary-week-strip button[aria-pressed=true] { background: #173f3b; color: white; }
.diary-week-strip i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.diary-week-card, .diary-day-summary { padding: 16px; border: 1px solid #e6e1d6; border-radius: 18px; background: #fffcf6; }
.diary-week-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 78px; gap: 8px; align-items: center; min-height: 44px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; padding: 2px; }
.diary-week-row[aria-pressed=true] { font-weight: 800; }
.diary-week-row small { font-size: 12px; text-align: right; }
.diary-week-track { height: 17px; border-radius: 5px; background: #eeeee5; overflow: hidden; }
.diary-week-track i { display: block; height: 100%; border-radius: inherit; }
.diary-calmark { color: #598d75; font-size: 10px; }
.diary-tabs ~ .stack > .card { border: 1px solid #e6e1d6; background: #fffcf6; border-radius: 18px; }
.diary-tabs ~ .stack b { color: var(--ink); }
.diary-tabs ~ .stack .diary-week-strip button[aria-pressed=true] b { color: white; }
.diary-tabs { background: #eeeee5; border-radius: 13px; }
.diary-tabs button[aria-pressed=true] { background: #173f3b; color: white; }
.diary-week-card { gap: 4px; }
.diary-week-card > b { margin-bottom: 8px; }
.diary-week-card .diary-week-row { min-height: 40px; }
.diary-paper > .field .input { min-height: 40px; padding: 8px 10px; }
.diary-todo { padding: 3px 0; border: 0; }
.diary-todos .link { font-size: 12px; }
.diary-paper .diary-goal .input { background: transparent; border-color: transparent; border-radius: 0; padding: 4px 0; min-height: 30px; box-shadow: none; }
.diary-paper .diary-goal .input:focus { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (max-width: 380px) { .diary-week-card, .diary-day-summary { padding: 10px; } .diary-week-row { grid-template-columns: 36px minmax(0, 1fr) 66px; gap: 5px; } }
.diary-stars { display: flex; flex-wrap: wrap; gap: 4px; }
.diary-stars button { width: 44px; height: 44px; font-size: 30px; color: #d9d3c5; background: transparent; border: 0; cursor: pointer; }
.diary-stars button.on { color: #b58b34; }
.diary-stamp { align-self: start; padding: 7px 12px; border: 2px solid #8fb54a; border-radius: 12px; color: #5f7a2d; font-weight: 800; transform: rotate(-3deg); }
.diary-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.diary-calendar > .label { padding: 8px 0; }
.diary-calday { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 76px; gap: 3px; padding: 7px 1px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); cursor: pointer; font-size: 12px; }
.diary-calday small { font-size: 10px; }
.diary-calday.level-1 { background: #eef7f1; }
.diary-calday.level-2 { background: #d8eee4; }
.diary-calday.level-3 { background: #bde1d4; }
.diary-calmark { font-size: 17px; }
.diary-subject-bar { margin-top: 5px; height: 9px; background: #f0ede5; border-radius: 6px; overflow: hidden; }
.diary-subject-bar i { display: block; height: 100%; border-radius: inherit; }
.diary-chart { display: grid; align-items: end; gap: 3px; min-height: 115px; }
.diary-chart.hours { grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; }
.diary-chart.weekdays { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.diary-chart > div { text-align: center; min-width: 0; }
.diary-bar-track { height: 90px; display: flex; align-items: end; }
.diary-bar-track i { display: block; width: 100%; background: #83c6b4; border-radius: 4px 4px 0 0; }
.diary-chart small { display: block; font-size: 8px; margin-top: 6px; color: var(--muted); }
.diary-chart.weekdays small { font-size: 11px; }
.diary-attendance { padding: 2px 4px; border-radius: 6px; color: #397b68; background: #e7f3ed; font-weight: 700; }
.diary-attendance.late { color: #805a24; background: #fff0d5; }
.diary-calday.has-late { outline: 1px solid #e7c17e; outline-offset: -1px; }
/* app2 차이 보정: 탭은 경로 링크(a), 다이어리 버튼은 button[data-diary-act] */
.diary-tabs a[aria-current="page"] { background: #173f3b; color: white; box-shadow: none; }
.seg button { flex: 1; min-height: 44px; padding: 7px 4px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; color: #6b787d; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.diary-paper .iconbtn { border: 0; background: transparent; cursor: pointer; }
.diary-paper .link, .diary-day-summary .link { border: 0; background: transparent; cursor: pointer; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); }
.diary-total .avatar { width: 52px; height: 52px; background-color: #f6f3ec; box-shadow: 0 0 0 2px #fff; }
.diary-empty .avatar { width: 44px; height: 44px; }
.pb24 { padding-bottom: 24px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
/* 나 탭: styles.css 135-151(칩·아바타), demo.css 202-203, 213-228, 250-259, 555-560 */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.amber { background: var(--amber-bg); color: var(--amber); }
.chip.gray { background: var(--gray-bg); color: var(--gray); }
.chip.teal { background: #e3f1f1; color: var(--teal); }
.chip.soft { background: #f1ede5; color: var(--ink-2); }
.chip.big { padding: 9px 14px; font-size: 14px; }
.seedcard { background: linear-gradient(160deg, #f3faef, #fff); }
.seedbig { font-size: 32px; font-weight: 900; color: var(--ink); line-height: 1.15; }
.garden-scene { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; flex: none; border-radius: 18px; overflow: hidden; isolation: isolate; background: #f5eddb; }
.garden-background { display: block; width: 100%; height: 100%; object-fit: contain; }
.garden-sprite, .garden-today { position: absolute; height: auto; aspect-ratio: 1; transform: translate(-50%, -95.3125%); pointer-events: none; }
.garden-today img { display: block; width: 100%; height: auto; }
.garden-before { position: absolute; inset: 0; }
.art-panel { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 14px; }
.garden-scene.garden-mini { width: min(160px, 100%); height: auto; margin-inline: auto; }
.plus-table { display: grid; gap: 8px; }
.plus-row { min-width: 0; padding: 12px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.plus-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.plus-options > div { min-width: 0; padding: 9px; border-radius: 11px; background: #f6f7f3; }
.plus-options > div:last-child { background: #eef7f5; }
.plus-options p { margin: 4px 0 0; color: var(--ink-2); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.plus-intro { background: linear-gradient(145deg, #f2f9e9, #f1f8fa); }
.plus-pricing { border: 1px solid #d9ece8; }
.plus-trend-preview { color: inherit; text-decoration: none; overflow: hidden; }
.trend-bars { display: flex; align-items: end; gap: 8px; height: 82px; padding: 8px 14px; filter: blur(4px); opacity: .58; background: #f0ede5; border-radius: 12px; }
.trend-bars i { flex: 1; height: 38%; border-radius: 6px 6px 2px 2px; background: #8da56a; }
.trend-bars i:nth-child(2) { height: 64%; background: #c1a872; }
.trend-bars i:nth-child(3) { height: 49%; }
.trend-bars i:nth-child(4) { height: 82%; background: #c1a872; }
.trend-bars i:nth-child(5) { height: 57%; }
.trend-bars i:nth-child(6) { height: 74%; background: #c1a872; }
.timelapse-preview { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px; border-radius: 14px; background: linear-gradient(90deg, #eef7e6, #fff9e9); font-size: 26px; }
.timelapse-preview img { display: block; width: 17%; height: auto; min-width: 0; }
.lock-checklist { padding: 4px 14px; }
.lock-setting { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.lock-setting:last-child { border-bottom: 0; }
.lock-setting .grow { display: grid; gap: 3px; min-width: 0; }
.lock-setting small { color: var(--muted); }
.lock-setting .link { flex: none; }
h1.hl em { font-style: normal; color: var(--coral); }
.sub { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.sub.center { text-align: center; }
h1.hl { margin: 0; font-size: 30px; line-height: 1.22; font-weight: 900; color: var(--ink); letter-spacing: -1px; text-wrap: balance; }
h1.hl.center { text-align: center; }
.avatar.lg { width: 56px; height: 56px; background-color: #f6f3ec; box-shadow: 0 0 0 2px #fff; }
.avatar.md { width: 44px; height: 44px; background-color: #f6f3ec; box-shadow: 0 0 0 2px #fff; }
.avatar.sm { width: 28px; height: 28px; }
.me-hub > a.card { color: inherit; text-decoration: none; text-align: left; }
.me-hub .card .label { display: block; }
.garden-card .row .btn { flex: 1; min-width: 0; font-size: 13px; }
.garden-totals { flex-wrap: wrap; font-size: 12.5px; gap: 6px; }
details > summary { cursor: pointer; text-align: left; color: var(--muted); font-size: 13px; padding: 8px; }
.stack > .chip { justify-self: start; }
/* 처음 고객 흐름: demo.css 613-626, styles.css 184·191-192·259·280 */
.start-welcome { min-height: 100%; box-sizing: border-box; align-content: center; justify-items: center; gap: clamp(12px, 2.4vh, 20px); padding: max(16px, env(safe-area-inset-top, 0px)) 12px max(16px, env(safe-area-inset-bottom, 0px)); }
.welcome-crew { display: block; width: 100%; max-width: 360px; max-height: 40vh; object-fit: contain; margin: 0 auto; }
.start-welcome .center { display: grid; gap: 4px; }
.start-welcome .center .sub, .welcome-support { margin: 0; }
.welcome-support { color: var(--muted); font-size: 13px; line-height: 1.4; }
.start-welcome > .btn { width: 100%; max-width: 340px; }
.start-tour-link { justify-self: center; min-height: 34px; padding: 4px 12px; color: var(--muted); font-size: 13px; }
.first-days { display: flex; flex-wrap: wrap; gap: 8px; }
.first-days .chip { min-width: 42px; min-height: 42px; }
.first-plan-card .first-days .chip { min-width: 44px; min-height: 44px; }
.first-overlap { color: #9a3d32; }
.notify-icon { align-self: center; font-size: 30px; width: 66px; height: 66px; justify-content: center; }
.first-room-art { display: block; width: 100%; max-height: 190px; object-fit: cover; border-radius: 20px; }
.first-room-peers { justify-content: center; }
.err-text { font-size: 12.5px; color: var(--coral); }
.dob { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.dob select { height: 50px; border-radius: 14px; border: 1.5px solid #e2ded5; background: var(--card); padding: 0 10px; font-size: 15px; color: var(--ink); }
.mt0 { margin-top: 0 } .mt4 { margin-top: 4px } .mt8 { margin-top: 8px } .mt12 { margin-top: 12px } .mt16 { margin-top: 16px } .mt20 { margin-top: 20px } .mt24 { margin-top: 24px }
.err-text:empty { display: none; }
.first-days label.chip { position: relative; justify-content: center; border: 0; background: #f1ede5; color: var(--ink-2); cursor: pointer; }
.first-days label.chip:has(:checked) { background: #e3f1f1; color: var(--teal); }
.first-days label.chip:has(:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.first-days input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.first-days { border: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend { font-size: 13.5px; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 7px; }
.avs { display: flex; }
.avs .avatar + .avatar { margin-left: -6px; }
.start-welcome .btn, .first-count-page .btn { display: flex; align-items: center; justify-content: center; gap: 6px; }
a.btn { display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.auth-mini { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #fee500; }
.auth-mini svg { width: 14px; height: 14px; }
.auth-mini.google { background: #fff; border: 1px solid var(--line); }
.time-card .avatar.md { flex: none; }
/* 목업 charpick처럼 라디오 점을 숨기고 테두리로 선택을 보인다(키보드 초점은 유지). */
.character-picker label { position: relative; border: 1.5px solid #e2ded5; }
.character-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.character-picker label:has(:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.character-picker label:has(:checked) { color: var(--teal); font-weight: 700; }
.garden-home { display: grid; gap: 6px; width: 100%; padding: 0; background: transparent; text-align: center; text-decoration: none; border-radius: 18px; }
