#family-hub[hidden],#app-tools[hidden],#view[hidden],#app-skip[hidden] {display:none;}
#family-hub {background:#faf9f3; color:#283c34; min-height:100vh; font-family:"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif; line-height:1.55; word-break:keep-all;}
.hub-head {background:#faf9f3; border-bottom:1px solid #dadfd2;}
.hub-head>div,.hub-page {width:min(1040px,calc(100% - 32px)); margin:auto;}
.hub-head>div,.hub-footer {display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;}
.hub-head strong {font-size:18px;letter-spacing:-.05em;}
.hub-head a,.hub-footer a {display:inline-flex; align-items:center; min-height:48px; color:#245743; font-weight:700;}
.hub-page {padding:16px 0 42px;max-width:1040px;}
.hub-intro {display:grid; gap:14px; overflow:hidden; padding:clamp(18px,4vw,44px); border-radius:22px; background:#e8efdd; border:1px solid #d8e2ce;}
.hub-today-head {display:flex; align-items:center; justify-content:space-between; gap:14px;}
.hub-intro h1 {font-size:clamp(29px,4.8vw,54px); line-height:1.13; letter-spacing:-.055em; margin:0;}
.hub-intro img {width:clamp(120px,24vw,245px); height:clamp(120px,20vw,193px); object-fit:cover; border-radius:14px;}
.hub-page button,.hub-goal select {font:inherit; color:#214d3d; padding:8px 14px; min-height:44px; border:1px solid #9bac98; border-radius:12px; background:#fffefa; cursor:pointer;}
/* 활동 카드 전체를 누른다. 좁은 화면에서는 그림과 이름을 가로로 놓는다. */
.hub-steps {list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px;}
.hub-step {min-width:0;}
.hub-step .hub-step-card {box-sizing:border-box; width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; text-align:center; padding:12px 8px; border:1px solid #658471; border-radius:14px; background:#fffefa; color:#253c32;}
.hub-step button:hover {background:#f5f8f0; border-color:#255f49;}
.hub-intro .hub-step img {width:56px; height:56px; border-radius:10px; object-fit:cover;}
.hub-step-name {font-weight:750; font-size:clamp(16px,1.8vw,19px); line-height:1.3; letter-spacing:-.04em; overflow-wrap:anywhere;}
.hub-step.is-done .hub-step-card {background:#f2f5eb; border-color:#bdcbbd;}
.hub-step-mark {font-size:14px; font-weight:700; color:#315c45;}
.hub-page .hub-start {display:flex; align-items:center; justify-content:center; width:100%; min-height:56px; font-size:clamp(19px,2.4vw,23px); font-weight:800; background:#255f49; color:#fff; border-color:#255f49; border-radius:16px;}
.hub-page .hub-start[hidden],.hub-done[hidden] {display:none;}
.hub-done {margin:0; color:#315441; font-size:clamp(16px,2.2vw,20px); font-weight:650;}
.hub-page .hub-listen {justify-self:start; font-weight:700;}
.hub-muted {color:#4e6157;font-size:14px;}
.hub-goal {background:#f2f4e9;border:1px solid #d8dfd1;border-radius:14px;padding:12px 16px;margin:18px 0;}
.hub-goal summary {cursor:pointer;font-weight:750;padding:5px 0;min-height:42px;}
.hub-goal label {display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;font-weight:650;}
.hub-goal select {max-width:100%;}
#hub-places {display:flex;gap:12px;flex-wrap:wrap;margin-top:12px;}
#hub-places label {min-height:44px;cursor:pointer;}
.hub-goal input {width:20px;height:20px;}
#family-hub :focus-visible {outline:3px solid #96641d;outline-offset:3px;}
@media(max-width:550px){.hub-steps {gap:6px;}.hub-intro .hub-step img {width:46px;height:46px;}.hub-intro .hub-today-head img{width:103px;height:113px;}.hub-page{padding-top:10px;}}

.hub-links {display:flex;align-items:center;gap:12px;}
.hub-goal-form{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(130px,1fr));gap:10px;align-items:end;margin:16px 0 8px;}
.hub-goal-form label{display:grid;align-content:start;gap:5px;font-size:14px;color:#365646;}
.hub-goal-form select,.hub-goal-form #hub-date{width:100%;height:46px;min-height:46px;padding:7px 9px;border:1px solid #9bac98;border-radius:12px;background:#fffefa;color:#214d3d;font:inherit;font-size:15px;}
.hub-goal-form #hub-date{max-width:none;}
.hub-goal-form #hub-save{grid-column:1/-1;justify-self:start;background:#255f49;color:#fff;border-color:#255f49;font-weight:800;}
.hub-history{margin-top:16px;border-top:1px solid #cbd9c9;padding-top:13px;}
.hub-history h3{margin:0 0 8px;font-size:17px;}
.hub-history ul{list-style:none;margin:0;padding:0;display:grid;gap:7px;}
.hub-history li{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fffefa;border:1px solid #d2ddcf;border-radius:10px;padding:8px 10px;font-size:14px;}
.hub-history li span{line-height:1.4;}
.hub-history li button{flex:none;font-size:13px;padding:5px 9px;min-height:38px;}
#hub-legacy{margin-top:16px;}
#hub-legacy li{color:#4d6255;background:#f9faf4;}
@media(max-width:780px){.hub-goal-form{grid-template-columns:repeat(2,minmax(0,1fr));}.hub-goal-form label:first-child{grid-column:1/-1;}}
@media(max-width:550px){.hub-goal-form{grid-template-columns:1fr;}.hub-goal-form label:first-child{grid-column:auto;}.hub-history li{align-items:flex-start;flex-direction:column;}.hub-history li button{align-self:flex-end;}}

@media(max-width:550px){.hub-steps{grid-template-columns:1fr;}.hub-step .hub-step-card{flex-direction:row;justify-content:flex-start;gap:12px;text-align:start;padding:7px 12px;}.hub-step-mark{margin-inline-start:auto;}.hub-step img{flex:none;}}

.hub-library {margin:0 0 16px;}
.hub-library h2 {margin:0 0 6px; font-size:18px; color:#365849;}
#hub-library-links {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px;}
.hub-library a {display:flex; align-items:center; gap:14px; padding:7px 12px; min-width:0; min-height:50px; color:#214d3d; background:#fffefa; text-decoration:none; font-size:clamp(17px,2.5vw,22px); font-weight:750; border:1px solid #819781; border-radius:14px;}
.hub-library a:after {content:""; margin-inline-start:auto; flex:none; width:7px; height:7px; border-top:2px solid; border-right:2px solid; transform:rotate(45deg);}
.hub-library a:hover {border-color:#255f49; background:#f1f5eb;}
.hub-library img {width:56px; height:56px; object-fit:cover; border-radius:9px;}
@media(max-width:550px){#hub-library-links {gap:6px;}.hub-library a {gap:6px; padding:5px 7px; line-height:1.25;}.hub-library img {width:38px;height:42px;}.hub-library a:after {width:5px;height:5px;}}
