/* Family tools share the existing theme, with progressive editors and content-first lists. */
.family-cloud { --cloud-accent: oklch(0.53 0.11 175); padding-top: 10px; font-family:"Pretendard","Malgun Gothic","Segoe UI",sans-serif; }
#ledger-editor:not([open]),#ledger-settlement:not([open]) { display:none; }
.family-cloud h2 { font-size: 21px; line-height: 1.35; margin: 3px 0 16px; letter-spacing: -.5px; }
.cloud-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:12px 0; flex-wrap:wrap; }
.cloud-toolbar > * { min-width:0; }
.cloud-eyebrow,.cloud-hint { color:var(--muted); font-size:12px; line-height:1.65; }
.cloud-hint { margin:8px 0; overflow-wrap:anywhere; }
.cloud-eyebrow { font-size:11px; letter-spacing:.08em; }
.family-cloud .primary-button { background:var(--cloud-accent); border:1px solid var(--cloud-accent); color:oklch(.98 .005 175); }
.family-cloud button,.family-cloud input,.family-cloud select,.family-cloud textarea { font:inherit; }
.family-cloud button { min-height:40px; cursor:pointer; }
.family-cloud button:disabled { opacity:.5; cursor:default; }
.family-cloud input,.family-cloud select,.family-cloud textarea { width:100%; min-width:0; border:1px solid var(--line); border-radius:10px; background:var(--panel); color:var(--text); padding:10px; }
.family-cloud textarea { resize:vertical; }
.family-cloud input[type=checkbox] { width:19px; height:19px; flex:none; accent-color:var(--cloud-accent); }
.family-cloud :focus-visible { outline:2px solid var(--cloud-accent); outline-offset:3px; }
.cloud-month { max-width:160px; }
.cloud-month input { padding:7px; font-size:13px; }
.ledger-overview { padding:16px 0 10px; border-bottom:1px solid var(--line); }
.ledger-week { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 10px; font-size:13px; }
.ledger-week strong { margin-left:auto; font-size:18px; font-variant-numeric:tabular-nums; }
.ledger-week small { flex-basis:100%; color:var(--muted); font-size:11px; }
.ledger-month-total { margin:24px 0 14px; }
.ledger-month-total span,.ledger-month-total small { display:block; font-size:12px; color:var(--muted); }
.ledger-month-total strong { display:block; font-size:32px; font-weight:700; letter-spacing:-1px; margin:6px 0; font-variant-numeric:tabular-nums; }
.ledger-comparisons { margin:0; font-size:12px; }
.ledger-comparisons > div { display:flex; justify-content:space-between; gap:8px; margin:8px 0; }
.ledger-comparisons dt { color:var(--muted); }
.ledger-comparisons dd { margin:0; text-align:right; font-variant-numeric:tabular-nums; }
.cloud-segments { display:flex; gap:3px; padding:3px; border-radius:12px; background:var(--bg); }
.cloud-segments button { border:0; border-radius:9px; color:var(--muted); background:transparent; padding:8px 12px; font-size:13px; min-height:36px; }
.cloud-segments button.active { background:var(--panel); color:var(--text); box-shadow:0 1px 3px oklch(.2 .01 175 / .12); font-weight:650; }
.cloud-editor { margin:14px 0; border:1px solid var(--line); border-radius:14px; padding:12px; }
.cloud-editor > summary { font-size:13px; font-weight:600; cursor:pointer; padding:3px 0; }
.cloud-editor[open] > summary { margin-bottom:14px; }
.cloud-editor .family-form-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.cloud-editor .family-field { margin:10px 0; }
.cloud-editor label { font-size:12px; }
.cloud-save-row { display:flex; justify-content:flex-end; gap:8px; padding-top:14px; }
.cloud-save-row .primary-button { min-width:116px; }
.ledger-draft { margin:10px 0; border-bottom:1px solid var(--line); padding:10px 0; }
.ledger-draft:last-child { border-bottom:0; }
.ledger-draft-heading { display:flex; align-items:center; gap:9px; font-size:13px; }
.ledger-draft-heading strong { flex:1; overflow-wrap:anywhere; }
.ledger-draft-heading span { white-space:nowrap; font-variant-numeric:tabular-nums; }
.ledger-draft summary { margin-top:8px; font-size:12px; color:var(--muted); cursor:pointer; }
.ledger-draft .cloud-warning { color:var(--danger); font-size:12px; }
.cloud-ledger-list { list-style:none; padding:0; margin:0; }
.cloud-ledger-list > li { border-bottom:1px solid var(--line); padding:14px 0; }
.cloud-ledger-line { display:flex; align-items:center; gap:10px; }
.cloud-ledger-main { flex:1; min-width:0; }
.cloud-ledger-main strong { display:block; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.cloud-ledger-main small { display:block; color:var(--muted); font-size:11px; margin-top:4px; }
.cloud-ledger-money { font-size:14px; font-weight:600; text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.cloud-ledger-money.refund { color:var(--cloud-accent); }
.cloud-ledger-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:4px; }
.cloud-ledger-actions button { border:0; background:transparent; padding:3px 4px; color:var(--muted); font-size:11px; min-height:28px; }
.album-storage { padding:4px 0 14px; border-bottom:1px solid var(--line); }
.album-storage .cloud-toolbar { margin:8px 0; }
#album-storage-text { font-size:14px; font-variant-numeric:tabular-nums; }
#album-storage-percent { color:var(--muted); font-size:12px; }
.family-cloud progress { display:block; width:100%; height:6px; border:0; border-radius:10px; overflow:hidden; accent-color:var(--cloud-accent); background:var(--line); }
.family-cloud progress::-webkit-progress-bar { background:var(--line); border-radius:10px; }
.family-cloud progress::-webkit-progress-value { background:var(--cloud-accent); border-radius:10px; }
.cloud-upload-actions { display:flex; gap:8px; margin:18px 0; }
.cloud-upload-actions > button { flex:1; }
.album-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
.album-group-title { grid-column:1/-1; font-size:13px; font-weight:600; margin:18px 0 7px; }
.album-tile { position:relative; aspect-ratio:1; padding:0; border:0; border-radius:8px; overflow:hidden; background:var(--line); color:var(--text); }
.album-tile img { display:block; width:100%; height:100%; object-fit:cover; }
.album-tile .album-caption { position:absolute; inset:auto 0 0; padding:5px; color:oklch(.98 .005 175); background:oklch(.2 .01 175 / .7); font-size:10px; text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.album-placeholder { display:flex; width:100%; height:100%; align-items:center; justify-content:center; padding:8px; font-size:11px; }
.album-empty { grid-column:1/-1; text-align:center; padding:50px 12px; color:var(--muted); font-size:13px; line-height:1.9; }
.album-upload { border-bottom:1px solid var(--line); padding:12px 0; font-size:12px; }
.album-upload .cloud-toolbar { margin:0 0 8px; }
.album-upload strong { max-width:70%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.album-upload button { font-size:11px; min-height:28px; }
.album-viewer { margin-top:18px; padding:12px; border:1px solid var(--line); border-radius:14px; }
#album-viewer-media img,#album-viewer-media video { display:block; max-width:100%; width:100%; max-height:65vh; object-fit:contain; background:oklch(.15 .005 175); border-radius:8px; }
#album-viewer-name { overflow-wrap:anywhere; font-size:13px; }
#album-download { text-decoration:none; font-size:12px; }
#ledger-settlement-text { font-size:13px; line-height:1.65; }
.cloud-history { font-size:12px; border-top:1px solid var(--line); padding:10px 0; }
.cloud-error { color:var(--danger); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
body.theme-dark .family-cloud { --cloud-accent:oklch(.65 .09 175); }
body.theme-dark #app-shell .family-bottom-nav { background:var(--panel); border-color:var(--line); }
body.theme-dark #app-shell .bottom-nav-button:not(.active) { color:var(--muted); }
@media (prefers-reduced-motion:reduce) { .family-cloud * { scroll-behavior:auto; } }
