/* Ma Family's Calendar 1.4 interface refinements. Loaded after the base app stylesheet. */
.hp-shell > div{min-width:0}
.hp-brand{font-size:1.14rem;line-height:1.18}
.hp-brand-mark{flex:0 0 auto}
.hp-sidebar-user a{display:inline-block;margin-top:12px;color:#d6e4df;text-decoration:none;font-weight:750}
.hp-sidebar-user a:hover{text-decoration:underline}
.hp-mobile-nav{display:none}
.hp-mobile-signout{display:block;margin-top:18px;padding:14px 16px;border-top:1px solid rgba(255,255,255,.16);color:#d6e4df;text-decoration:none;font-weight:750}
.hp-inline-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.hp-field small{color:var(--hp-muted);font-size:.75rem}
.hp-note{overflow:hidden;border-top:0}
.hp-note-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:8px 12px;border-bottom:1px solid var(--hp-line);background:#f3f0e9}
.hp-note-card-actions{display:flex;align-items:center;gap:7px}
.hp-window-dots{display:flex;gap:5px}
.hp-window-dots i{width:8px;height:8px;border-radius:50%;background:#d4b77b}
.hp-window-dots i:nth-child(2){background:#8fb3a2}
.hp-window-dots i:nth-child(3){background:#a8b8c1}
.hp-note-open{display:grid;gap:18px;width:100%;min-height:245px;padding:20px;border:0;border-radius:0 0 18px 18px;background:transparent;color:inherit;text-align:left}
.hp-note-open:hover{background:#fffaf0}
.hp-note-open:focus-visible{outline:3px solid rgba(40,101,79,.28);outline-offset:-4px}
.hp-note-readonly:hover{background:transparent}
.hp-note-list{margin:0;padding-left:25px;color:var(--hp-ink);font-size:.95rem;line-height:1.55;overflow-wrap:anywhere}
.hp-note-list li{padding-left:4px;margin-bottom:7px}
.hp-note-list li::marker{color:var(--hp-green);font-weight:850}
.hp-note-list li:nth-child(n+8){display:none}
.hp-note-edit-hint{align-self:end;color:var(--hp-green);font-size:.78rem;font-weight:850}
.hp-notes-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 2px 14px}
.hp-notes-heading h2{font-size:1.55rem}
.hp-notes-heading span{color:var(--hp-muted);font-size:.82rem;font-weight:750}
.hp-note-search{width:min(310px,100%)}
.hp-note-search input{width:100%;min-height:42px;padding:9px 13px;border:1px solid var(--hp-line);border-radius:13px;background:white;color:var(--hp-ink);font:inherit}
.hp-numbered-field{display:grid;gap:12px}
.hp-numbered-editor{display:grid;gap:8px;margin:0;padding:4px 4px 4px 42px}
.hp-numbered-editor li{padding-left:4px}
.hp-numbered-editor li::marker{color:var(--hp-green);font-size:1rem;font-weight:900}
.hp-numbered-item{display:block;width:100%;min-height:48px;padding:11px 13px;border:1px solid var(--hp-line);border-radius:12px;background:white;color:var(--hp-ink);font:inherit;line-height:1.5;resize:none;overflow:hidden}
.hp-numbered-item:focus{border-color:#79a18e;outline:3px solid rgba(40,101,79,.12)}
.hp-numbered-tools{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hp-numbered-tools span,.hp-draft-status{color:var(--hp-muted);font-size:.72rem;font-weight:700}
.hp-actions .hp-draft-status{margin-right:auto;align-self:center}
.hp-note-options{padding:12px 14px;border:1px solid var(--hp-line);border-radius:12px;background:#fffefa}
.hp-note-options summary{cursor:pointer;color:var(--hp-muted);font-size:.82rem;font-weight:800}
.hp-note-options[open] summary{margin-bottom:12px}
.hp-notes-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.hp-notes-empty{margin-top:16px}
.hp-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.hp-btn:disabled{cursor:wait;opacity:.62}
.hp-mobile-only{display:none}
.hp-schedule-alert{position:sticky;top:12px;z-index:70;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;padding:13px 15px;border:1px solid #dfc26b;border-radius:15px;background:#fff7d8;color:#73540f;box-shadow:0 10px 28px rgba(92,70,15,.14)}
.hp-schedule-alert div{display:grid;gap:2px}
.hp-schedule-alert strong{font-size:.9rem}
.hp-schedule-alert span{font-size:.78rem}
.hp-schedule-alert .hp-btn{flex:0 0 auto;background:#7f651e}
.hp-schedule-panel{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);align-items:center;gap:22px;margin-bottom:16px;padding:20px 22px;border-color:#b9cec4;background:linear-gradient(135deg,#f5faf7,#fffdf8)}
.hp-schedule-panel h2{font-size:1.45rem}
.hp-schedule-panel p:not(.hp-eyebrow){margin:7px 0 0;color:var(--hp-muted);font-size:.88rem}
.hp-schedule-buttons{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.hp-schedule-button{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 13px;border:1px solid var(--hp-line);border-radius:13px;background:white;color:var(--hp-ink);font-weight:800}
.hp-schedule-button:hover{border-color:#8aac9c;background:#f2f8f4}
.hp-schedule-button.active{border-color:var(--hp-green);background:var(--hp-green);color:white;box-shadow:0 6px 16px rgba(40,101,79,.18)}
.hp-member-color{width:10px;height:10px;flex:0 0 auto;border:2px solid rgba(0,0,0,.08);border-radius:50%;background:var(--hp-member-color,#557565)}
.hp-schedule-button.active .hp-member-color{border-color:rgba(255,255,255,.7)}
.hp-chip.event{border-left-color:var(--hp-event-color,var(--hp-green))}
.hp-shared-event{display:grid;gap:14px}
.hp-shared-event h2{font-size:2rem}
.hp-shared-event-owner{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.hp-shared-event-when{margin:0;padding:13px 15px;border-radius:13px;background:#eef5f1;color:#36594b;font-weight:800}
.hp-shared-event-description{padding:15px;border:1px solid var(--hp-line);border-radius:14px;background:white;white-space:pre-wrap}

/* Private family messages. */
.hp-nav-count{display:grid;place-items:center;min-width:22px;height:22px;margin-left:auto;padding:0 6px;border-radius:999px;background:#d8bb80;color:#173341;font-size:.67rem}
.hp-mobile-actions{display:flex;align-items:center;gap:6px}
.hp-mobile-actions button{position:relative}
.hp-mobile-actions b{position:absolute;right:-3px;top:-4px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border:2px solid var(--hp-canvas);border-radius:999px;background:#b86d52;color:white;font-size:.58rem}
.hp-messages-layout{display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr);gap:16px;min-height:650px}
.hp-conversations,.hp-thread-card{min-width:0;overflow:hidden}
.hp-conversations-head{display:flex;align-items:center;justify-content:space-between;padding:20px;border-bottom:1px solid var(--hp-line)}
.hp-conversations-head h2{font-size:1.55rem}
.hp-conversation-list{display:grid;max-height:650px;overflow-y:auto}
.hp-conversation{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;width:100%;min-height:76px;padding:12px 14px;border:0;border-bottom:1px solid var(--hp-line);background:transparent;color:var(--hp-ink);text-align:left}
.hp-conversation:hover{background:#f5f7f4}
.hp-conversation.active{background:#edf5f0;box-shadow:inset 4px 0 0 var(--hp-green)}
.hp-avatar{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:var(--hp-avatar,#557565);color:white;font-weight:850;box-shadow:inset 0 0 0 2px rgba(255,255,255,.38)}
.hp-conversation-copy{display:grid;min-width:0;gap:4px}
.hp-conversation-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hp-conversation-copy small{overflow:hidden;color:var(--hp-muted);font-size:.74rem;text-overflow:ellipsis;white-space:nowrap}
.hp-conversation-meta{display:grid;justify-items:end;align-self:stretch;align-content:space-between;gap:5px}
.hp-conversation-meta time{color:#869094;font-size:.62rem;white-space:nowrap}
.hp-conversation-meta b{display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--hp-clay);color:white;font-size:.65rem}
.hp-message-thread{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100%;min-height:650px}
.hp-thread-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--hp-line);background:#fffefa}
.hp-thread-head>div{display:flex;align-items:center;gap:11px;min-width:0}
.hp-thread-head h2{font-size:1.35rem}
.hp-thread-head p{margin:3px 0 0;color:var(--hp-muted);font-size:.72rem}
.hp-thread-scroll{display:flex;flex-direction:column;gap:8px;min-height:410px;max-height:62vh;padding:22px;overflow-y:auto;background:linear-gradient(180deg,#f4f1ea,#f8f5ee)}
.hp-message{display:grid;gap:5px;width:fit-content;max-width:min(76%,650px)}
.hp-message.mine{align-self:flex-end}
.hp-message.theirs{align-self:flex-start}
.hp-message-body{padding:11px 14px;border:1px solid var(--hp-line);border-radius:16px 16px 16px 5px;background:white;color:var(--hp-ink);line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 5px 14px rgba(33,51,61,.05)}
.hp-message.mine .hp-message-body{border-color:#28654f;border-radius:16px 16px 5px 16px;background:var(--hp-green);color:white}
.hp-message footer{display:flex;align-items:center;gap:7px;padding:0 3px;color:#7b878b;font-size:.62rem}
.hp-message.mine footer{justify-content:flex-end}
.hp-message footer button{padding:0;border:0;background:transparent;color:#7d4a3b;font-size:inherit;text-decoration:underline}
.hp-load-earlier{align-self:center;min-height:34px;padding:0 12px;border:1px solid var(--hp-line);border-radius:10px;background:white;color:var(--hp-muted);font-size:.72rem;font-weight:800}
.hp-message-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding:14px 16px;border-top:1px solid var(--hp-line);background:#fffefa}
.hp-message-compose textarea{width:100%;min-height:52px;max-height:150px;padding:12px 13px;border:1px solid var(--hp-line);border-radius:14px;background:white;color:var(--hp-ink);font:inherit;line-height:1.4;resize:vertical}
.hp-message-compose textarea:focus{border-color:#79a18e;outline:3px solid rgba(40,101,79,.12)}
.hp-message-compose>div{display:grid;justify-items:end;gap:5px}
.hp-message-compose>div span{color:var(--hp-muted);font-size:.62rem}
.hp-message-error{grid-column:1/-1;min-height:0;margin:0;color:#8d3028;font-size:.76rem}

/* Calendar-first layout: quiet controls above, supporting options below. */
.hp-nav button{min-height:40px;border-radius:11px;font-size:.86rem}
.hp-calendar-page .hp-header{margin-bottom:14px}
.hp-calendar-page .hp-header-actions{gap:7px}
.hp-calendar-page .hp-header-actions .hp-btn{min-height:34px;padding:0 11px;border-radius:10px;font-size:.76rem}
.hp-calendar-nav{display:grid;gap:9px;margin-bottom:12px;padding:10px 12px;border-radius:16px;background:rgba(252,250,246,.82);box-shadow:0 5px 18px rgba(33,51,61,.045)}
.hp-calendar-nav .hp-tabs{width:min(340px,100%);justify-self:center;padding:3px;border-radius:11px;background:#ebe9e3}
.hp-calendar-nav .hp-tabs button{min-height:31px;border-radius:8px;color:#627076;font-size:.73rem;font-weight:800}
.hp-calendar-nav .hp-tabs button:hover{color:var(--hp-ink)}
.hp-calendar-nav .hp-tabs button.active{background:#fffefa;color:var(--hp-green);box-shadow:0 2px 7px rgba(33,51,61,.08)}
.hp-calendar-nav .hp-period{width:min(760px,100%);justify-self:center;gap:6px}
.hp-calendar-nav .hp-period button{min-height:34px;border-color:#d9d6ce;border-radius:10px;background:transparent;color:#59676d;font-size:.74rem;font-weight:800}
.hp-calendar-nav .hp-period button:hover{border-color:#aebbb3;background:#f6f8f6;color:var(--hp-ink)}
.hp-calendar-nav .hp-period button[data-current]{background:#edf4ef;color:#35614e}
.hp-calendar-frame{position:relative}
.hp-calendar-bottom{display:grid;gap:12px;margin-top:18px}
.hp-calendar-page .hp-schedule-panel{margin:0;padding:15px 17px;border-radius:16px;box-shadow:0 6px 18px rgba(33,51,61,.05)}
.hp-calendar-page .hp-schedule-panel h2{font-size:1.16rem}
.hp-calendar-page .hp-schedule-panel p:not(.hp-eyebrow){margin-top:4px;font-size:.78rem}
.hp-calendar-page .hp-schedule-buttons{gap:6px}
.hp-calendar-page .hp-schedule-button{min-height:34px;padding:0 10px;border-radius:10px;font-size:.73rem;font-weight:800}
.hp-calendar-page .hp-member-color{width:8px;height:8px}
.hp-calendar-options{display:grid;grid-template-columns:minmax(150px,.32fr) minmax(0,1fr);align-items:center;gap:16px;padding:15px 17px;border-radius:16px;background:#faf8f3;box-shadow:none}
.hp-calendar-options h2{font-size:1.12rem}
.hp-calendar-options .hp-filters{justify-content:flex-end;gap:6px}
.hp-calendar-options .hp-filter{display:inline-flex;align-items:center;min-height:31px;padding:0 9px;border-radius:9px;background:#fffefa;font-size:.67rem;font-weight:750}
.hp-calendar-options .hp-filter-label{cursor:default;color:#65736d}
.hp-calendar-options button.hp-filter{transition:opacity .15s ease,background .15s ease,border-color .15s ease}
.hp-calendar-options button.hp-filter:not(.active){opacity:.48;background:transparent;filter:saturate(.55)}
.hp-calendar-options button.hp-filter.active{background:white;box-shadow:inset 0 0 0 1px currentColor}
.hp-calendar-note,.hp-calendar-help{margin:10px 0 0;color:var(--hp-muted);font-size:.75rem}
.hp-day-view,.hp-month-view{display:grid;gap:14px}
.hp-day-frame{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:190px;padding:26px 30px;border-top:4px solid var(--hp-green);background:linear-gradient(135deg,#fffefa,#f1f7f3)}
.hp-day-frame>div{display:grid;grid-template-columns:auto 1fr;align-items:end;column-gap:18px}
.hp-day-frame .hp-eyebrow{grid-column:1/-1}
.hp-day-frame strong{font:4.7rem/.85 Georgia,serif;color:var(--hp-navy)}
.hp-day-frame span{padding-bottom:6px;color:#53645d;font:700 1.28rem Georgia,serif}
.hp-day-detail-card{overflow:hidden}
.hp-day-detail-card .hp-day-agenda{border:0;padding:22px}
.hp-week-view{display:grid;gap:8px;max-width:100%}
.hp-week-view .hp-week-scroll{max-width:100%;overflow:visible;padding:0;scroll-snap-type:none}
.hp-week-view .hp-week{grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;min-width:0}
.hp-week-view .hp-week-day{min-width:0;min-height:350px;padding:10px;overflow:hidden;scroll-snap-align:none}
.hp-week-view .hp-week-date{gap:5px;margin-bottom:9px}
.hp-week-view .hp-week-date strong{min-width:0;font-size:.94rem;white-space:nowrap}
.hp-week-view .hp-week-date .hp-btn{width:28px;min-height:28px;flex:0 0 28px;padding:0;border-radius:8px;font-size:.72rem}
.hp-week-view .hp-week-day .hp-list{gap:6px}
.hp-week-view .hp-week-day .hp-item{min-width:0;gap:6px;padding:8px;border-radius:10px;overflow:hidden}
.hp-week-view .hp-week-day .hp-item-main{overflow:hidden}
.hp-week-view .hp-week-day .hp-item h3{font-size:.75rem;line-height:1.22;overflow-wrap:anywhere}
.hp-week-view .hp-week-day .hp-item p{display:-webkit-box;margin-top:3px;font-size:.64rem;line-height:1.28;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.hp-week-view .hp-week-day .hp-item p:nth-of-type(n+2){display:none}
.hp-week-view .hp-week-day .hp-meta{gap:3px;margin-top:5px}
.hp-week-view .hp-week-day .hp-meta .hp-badge:nth-child(n+2){display:none}
.hp-week-view .hp-week-day .hp-badge{min-height:18px;padding:1px 5px;border-radius:5px;font-size:.54rem}
.hp-week-view .hp-week-day .hp-task-check{width:20px;height:20px;flex:0 0 20px;border-radius:6px}
.hp-week-view .hp-week-day .hp-empty{min-height:105px;padding:10px;font-size:.74rem}
.hp-week-view .hp-week-day .hp-empty p{display:none}
.hp-month-frame{width:100%}
.hp-month-view .hp-day-detail-card{scroll-margin-top:18px}

.hearthplan-access{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(430px,.96fr);width:min(1160px,calc(100% - 40px));min-height:700px;margin:clamp(20px,5vh,54px) auto;overflow:hidden;border:1px solid rgba(222,217,207,.9);border-radius:30px;background:var(--hp-paper);color:var(--hp-ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 28px 80px rgba(23,51,65,.13)}
.hearthplan-access *{box-sizing:border-box}
.hearthplan-access-intro{position:relative;display:flex;flex-direction:column;justify-content:center;gap:56px;overflow:hidden;padding:clamp(46px,5.5vw,68px);background:linear-gradient(145deg,#173341 0%,#205244 62%,#9b704a 140%);color:white}
.hearthplan-access-intro:before{content:"";position:absolute;width:340px;height:340px;right:-135px;top:-110px;border:1px solid rgba(255,255,255,.14);border-radius:50%;box-shadow:0 0 0 42px rgba(255,255,255,.025),0 0 0 88px rgba(255,255,255,.02)}
.hearthplan-access-intro-copy{position:relative;z-index:1}
.hearthplan-access-eyebrow{position:relative;margin:0 0 12px;color:#d2e1da;font-size:.73rem;font-weight:850;letter-spacing:.17em;text-transform:uppercase}
.hearthplan-access-intro h1{position:relative;max-width:520px;margin:0;font:700 clamp(3rem,5.3vw,4.65rem)/1 Georgia,serif;letter-spacing:-.035em}
.hearthplan-family-preview{position:relative;z-index:1;display:grid;gap:0;width:min(100%,470px);overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:20px;background:rgba(7,30,30,.2);box-shadow:0 18px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.hearthplan-preview-head{display:grid;gap:3px;padding:15px 17px;border-bottom:1px solid rgba(255,255,255,.13)}
.hearthplan-preview-head span{color:#d8bb80;font-size:.68rem;font-weight:850;letter-spacing:.14em;text-transform:uppercase}
.hearthplan-preview-head strong{font:700 1.05rem Georgia,serif}
.hearthplan-preview-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:44px;padding:0 17px;border-bottom:1px solid rgba(255,255,255,.09);color:rgba(255,255,255,.86);font-size:.78rem}
.hearthplan-preview-row:last-child{border-bottom:0}
.hearthplan-preview-row i{width:9px;height:9px;border-radius:50%;background:#8fb3a2;box-shadow:0 0 0 3px rgba(143,179,162,.14)}
.hearthplan-preview-row:nth-child(3) i{background:#d8bb80;box-shadow:0 0 0 3px rgba(216,187,128,.14)}
.hearthplan-preview-row:nth-child(4) i{background:#a8b8c1;box-shadow:0 0 0 3px rgba(168,184,193,.14)}
.hearthplan-preview-row b{color:white;font-size:.7rem;font-weight:800}
.hearthplan-login{display:flex;flex-direction:column;justify-content:center;max-width:none;margin:0;padding:clamp(38px,4.5vw,54px);border-radius:0;background:linear-gradient(180deg,#fcfaf6 0%,#fffefa 100%);box-shadow:none;text-align:left}
.hearthplan-login-header{max-width:500px}
.hearthplan-login h2{margin:0;font:700 clamp(2rem,3.4vw,2.75rem)/1.08 Georgia,serif;color:var(--hp-navy)}
.hearthplan-login-header>p:not(.hearthplan-login-kicker){margin:13px 0 0;color:var(--hp-muted);font-size:1rem}
.hearthplan-login .hearthplan-login-kicker{margin:0 0 10px;color:var(--hp-green);font-size:.75rem;font-weight:850;letter-spacing:.15em;text-transform:uppercase}
.hearthplan-login-actions{display:grid;gap:9px;margin:21px 0 0}
.hearthplan-login-actions>*{min-width:0}
.hearthplan-login-actions .hearthplan-login-button,.hearthplan-google-button{width:100%;min-height:44px;border-radius:12px}
.hearthplan-login-button.secondary{border:1px solid var(--hp-line);background:white;color:var(--hp-ink)!important}
.hearthplan-login-button.secondary:hover{border-color:#aebbb3;background:#f8faf8}
.hearthplan-access-note{margin:18px 0 0!important;color:var(--hp-muted)!important;font-size:.82rem!important;line-height:1.5}
.hearthplan-registration-note{margin:0!important;padding:12px 0;color:var(--hp-muted);font-size:.9rem!important}
.hearthplan-google-wrap{display:grid;gap:6px}
.hearthplan-google-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:0 16px;border:1px solid #d4d9df;border-radius:12px;background:white;color:#263238!important;text-decoration:none;font-weight:750;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.hearthplan-google-button:hover{border-color:#aeb7c1;background:#fbfbfb}
.hearthplan-google-button.is-disabled{cursor:not-allowed;opacity:.58}
.hearthplan-google-mark{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;color:#4285f4;font:800 1rem/1 Arial,sans-serif}
.hearthplan-google-note{color:var(--hp-muted);font-size:.72rem;text-align:center}
.hearthplan-auth-error{margin:20px 0 0;padding:12px 14px;border:1px solid #e5aaa1;border-radius:12px;background:#fff0ed;color:#8d3028}
.hearthplan-auth-divider{display:flex;align-items:center;gap:11px;margin:18px 0 14px;color:#8a9498;font-size:.67rem;font-weight:800;text-transform:uppercase;letter-spacing:.09em}
.hearthplan-auth-divider:before,.hearthplan-auth-divider:after{content:"";height:1px;flex:1;background:var(--hp-line)}
.hearthplan-register{padding:18px;border:1px solid #d6e1da;border-radius:17px;background:linear-gradient(145deg,#f4f8f5,#faf9f5);box-shadow:0 8px 22px rgba(33,51,61,.045)}
.hearthplan-register-header{margin-bottom:14px}
.hearthplan-register-header h3{margin:0;color:var(--hp-navy);font:700 1.18rem/1.15 Georgia,serif}
.hearthplan-register-header p{margin:5px 0 0;color:var(--hp-muted);font-size:.78rem}
.hearthplan-register-message{margin:0;color:var(--hp-muted);font-size:.82rem}
.hearthplan-register form{display:grid;gap:12px}
.hearthplan-register-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hearthplan-field{display:grid;gap:6px}
.hearthplan-field label{color:#40515a;font-size:.72rem;font-weight:850}
.hearthplan-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hearthplan-label-row span{color:var(--hp-muted);font-size:.65rem;font-weight:750}
.hearthplan-field input{width:100%;min-height:43px;padding:9px 11px;border:1px solid #d5dad5;border-radius:10px;background:white;color:var(--hp-ink);font:inherit;font-size:.9rem;box-shadow:inset 0 1px 2px rgba(23,51,65,.025)}
.hearthplan-field input::placeholder{color:#9ba4a7}
.hearthplan-field input:focus{border-color:#79a18e;outline:3px solid rgba(40,101,79,.1)}
.hearthplan-field small{color:var(--hp-muted);font-size:.74rem}
.hearthplan-register .hearthplan-login-button{width:100%;min-height:43px;margin-top:1px;border-radius:12px;font-size:.88rem}
.hearthplan-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

@media(max-width:860px){
  .hearthplan-access{grid-template-columns:1fr;width:min(680px,calc(100% - 24px));margin:12px auto;border-radius:24px}
  .hearthplan-access-intro{min-height:470px;gap:42px;padding:42px 34px}
  .hearthplan-access-intro h1{font-size:clamp(2.8rem,10vw,4.15rem)}
  .hearthplan-family-preview{width:100%}
  .hearthplan-login{padding:38px 30px}
}

@media(max-width:1023px){
  .hp-mobile-nav.open{display:block;inset:calc(56px + env(safe-area-inset-top)) 0 0;overflow-y:auto;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  .hp-mobile-nav button{min-height:44px;margin-bottom:5px;border-radius:11px;font-size:.88rem}
  .hp-mobilebar{padding-top:env(safe-area-inset-top);min-height:calc(56px + env(safe-area-inset-top))}
  .hp-main{padding-bottom:calc(48px + env(safe-area-inset-bottom))}
  .hp-notes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hp-schedule-panel{grid-template-columns:1fr}
  .hp-schedule-buttons{justify-content:flex-start}
  .hp-calendar-options{grid-template-columns:1fr}
	  .hp-calendar-options .hp-filters{justify-content:flex-start}
	  .hp-messages-layout{grid-template-columns:minmax(220px,280px) minmax(0,1fr)}
}

@media(max-width:820px){
  .hp-week-view .hp-week{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .hp-week-view .hp-week-day{min-height:220px}
}

@media(max-width:720px){
  .hearthplan-root{min-height:100dvh}
  .hp-header-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%}
  .hp-header-actions .hp-btn{min-width:0}
  .hp-dialog{width:100vw;max-width:none;max-height:100dvh;margin:auto 0 0;border-radius:22px 22px 0 0}
  .hp-dialog-body{max-height:calc(100dvh - 70px);padding:18px 16px calc(24px + env(safe-area-inset-bottom))}
  .hp-dialog-head{padding:15px 16px}
  .hp-inline-field{grid-template-columns:1fr}
  .hp-inline-field .hp-btn{width:100%}
  .hp-mobile-only{display:block;margin:0;color:var(--hp-muted);font-size:.8rem}
  .hp-notes-grid{grid-template-columns:1fr!important}
  .hp-notes-heading{display:grid}
  .hp-note-search{width:100%}
  .hp-note-open{min-height:200px}
  .hp-numbered-editor{padding-left:35px}
	  .hp-numbered-tools{align-items:flex-start;flex-direction:column}
	  .hp-messages-layout{grid-template-columns:1fr;min-height:0}
	  .hp-conversations-head{padding:14px 16px}
	  .hp-conversation-list{display:flex;max-height:none;overflow-x:auto;scroll-snap-type:x proximity}
	  .hp-conversation{grid-template-columns:36px minmax(0,1fr) auto;min-width:245px;min-height:66px;padding:9px 11px;border-right:1px solid var(--hp-line);scroll-snap-align:start}
	  .hp-conversation.active{box-shadow:inset 0 -3px 0 var(--hp-green)}
	  .hp-avatar{width:36px;height:36px;flex-basis:36px;font-size:.82rem}
	  .hp-message-thread{min-height:62vh}
	  .hp-thread-scroll{min-height:330px;max-height:55vh;padding:16px 12px}
	  .hp-message{max-width:88%}
	  .hp-message-compose{grid-template-columns:1fr;padding:11px 12px}
	  .hp-message-compose>div{display:flex;align-items:center;justify-content:space-between}
	  .hp-schedule-alert{top:calc(66px + env(safe-area-inset-top));align-items:flex-start;padding:12px}
  .hp-schedule-alert .hp-btn{min-height:38px;padding:0 12px}
  .hp-schedule-panel{padding:17px}
  .hp-schedule-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .hp-schedule-button{justify-content:center;min-width:0;padding:0 9px}
  .hp-calendar-page .hp-header{margin-bottom:12px}
  .hp-calendar-page .hp-header h1{font-size:2rem}
  .hp-calendar-page .hp-header-actions{grid-template-columns:minmax(0,1fr) auto}
  .hp-calendar-nav{padding:8px;margin-bottom:10px}
  .hp-calendar-nav .hp-tabs{width:100%}
  .hp-calendar-nav .hp-period{gap:5px}
  .hp-calendar-nav .hp-period button{min-height:33px;padding:0 6px;font-size:.67rem}
  .hp-calendar-bottom{margin-top:14px}
  .hp-calendar-page .hp-schedule-panel{padding:14px}
  .hp-calendar-page .hp-schedule-buttons{display:grid}
  .hp-calendar-options{padding:14px}
  .hp-calendar-options .hp-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .hp-calendar-options .hp-filter{justify-content:center;min-width:0;padding:0 6px;text-align:center}
  .hp-day-frame{min-height:155px;padding:22px 18px}
  .hp-day-frame>div{column-gap:13px}
  .hp-day-frame strong{font-size:3.8rem}
  .hp-day-frame span{font-size:1.05rem}
  .hp-day-detail-card .hp-day-agenda{padding:17px}
  .hp-calendar-shell{overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .hp-calendar-shell>.hp-month-frame{min-width:760px}
  .hp-calendar-shell .hp-daycell{min-height:105px;padding:7px}
  .hp-calendar-shell .hp-dayitems{display:grid;gap:3px}
  .hp-calendar-shell .hp-dayitems .hp-chip{height:auto;padding:3px 4px;border:1px solid var(--hp-line);border-radius:6px;color:inherit;font-size:.58rem}
  .hp-calendar-shell .hp-dayitems .hp-chip.event{border-left:3px solid var(--hp-green);background:white;color:var(--hp-ink)}
  .hp-calendar-shell .hp-dayitems .hp-chip.task{background:#fff2ed;color:#984d37}
  .hp-calendar-shell .hp-dayitems .hp-chip.us{background:var(--hp-blue-bg);color:var(--hp-blue)}
  .hp-calendar-shell .hp-dayitems .hp-chip.cn{background:var(--hp-red-bg);color:var(--hp-red)}
  .hp-calendar-shell .hp-dayitems .hp-chip.cnfestival{background:var(--hp-gold-bg);color:var(--hp-gold)}
  .hearthplan-access{width:calc(100% - 16px);margin:8px auto;border-radius:20px}
  .hearthplan-access-intro{min-height:0;gap:28px;padding:34px 22px 28px}
  .hearthplan-access-intro h1{font-size:clamp(2.65rem,13vw,3.55rem)}
  .hearthplan-family-preview{border-radius:16px}
  .hearthplan-preview-row{padding:0 14px}
  .hearthplan-preview-row b{font-size:.65rem}
  .hearthplan-login{padding:32px 22px}
  .hearthplan-login-actions{display:grid}
  .hearthplan-login-button{width:100%}
  .hearthplan-register{padding:16px}
  .hearthplan-register-row{grid-template-columns:1fr}
}

@media(max-width:480px){
  .hp-week-view .hp-week{grid-template-columns:1fr}
  .hp-week-view .hp-week-day{min-height:0}
}

/* HearthPlan 2.0: calendars, work schedules, handwriting, and simplified access. */
.hp-calendar-pages{display:grid;gap:6px}
.hp-calendar-page-row{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;border-radius:14px}
.hp-nav .hp-calendar-page-row>button:first-child,.hp-mobile-nav .hp-calendar-page-row>button:first-child{display:flex;align-items:center;gap:11px;min-width:0;width:100%;min-height:46px;margin:0;padding:0 8px 0 14px;border:0;border-radius:14px 5px 5px 14px;background:transparent;color:#e8eeee;text-align:left}
.hp-calendar-page-row>button:first-child>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hp-nav .hp-calendar-page-row>button:last-child,.hp-mobile-nav .hp-calendar-page-row>button:last-child{display:grid;width:34px;min-height:38px;margin:0;padding:0;place-items:center;border:0;border-radius:7px 12px 12px 7px;background:transparent;color:#91a4aa;letter-spacing:-.1em}
.hp-calendar-page-row:hover,.hp-calendar-page-row.active{background:#264c57}
.hp-calendar-page-row:hover>button:first-child,.hp-calendar-page-row.active>button:first-child{color:white}
.hp-calendar-page-row.active>button:last-child{color:#d9e4e1}
.hp-calendar-page-icon{display:grid;width:20px;height:20px;flex:0 0 20px;place-items:center;border:1px solid rgba(255,255,255,.42);border-radius:5px;background:var(--hp-calendar-color,#557565)}
.hp-calendar-page-icon i{width:10px;height:2px;border-radius:2px;background:rgba(255,255,255,.92);box-shadow:0 4px 0 rgba(255,255,255,.72)}
.hp-nav button.hp-add-calendar-page,.hp-mobile-nav button.hp-add-calendar-page{display:flex;align-items:center;gap:11px;min-height:44px;margin:0;padding:0 14px;border:1px dashed rgba(255,255,255,.24);border-radius:14px;background:transparent;color:#c9d7d4;font-weight:800}
.hp-nav button.hp-add-calendar-page:hover,.hp-mobile-nav button.hp-add-calendar-page:hover{border-color:rgba(255,255,255,.5);background:#203f49;color:white}
.hp-add-calendar-page>span{font-size:1.2rem}
.hp-calendar-dot{display:inline-block;width:9px;height:9px;margin-right:5px;border-radius:50%;background:var(--hp-calendar-color,#557565);box-shadow:none}
.hp-calendar-nav .hp-period button.hp-today-button,.hp-year-title .hp-today-button{border-color:#d4aa26;background:#ffe27a;color:#4e3b00;box-shadow:0 4px 12px rgba(117,86,0,.16)}
.hp-calendar-nav .hp-period button.hp-today-button:hover,.hp-year-title .hp-today-button:hover{border-color:#ba8d0b;background:#ffda4f;color:#352800}
.hp-daycell.today{background:#fff7c7;box-shadow:inset 0 0 0 2px #dfb834}
.hp-daycell.today.selected{background:#fff0a3;box-shadow:inset 0 0 0 3px #c99a0a}
.hp-daycell.today .hp-daynum{color:#634b00}
.hp-week-view .hp-week-day.today{border-color:#d8ae2a;background:linear-gradient(180deg,#fff4b5,#fffefa 28%);box-shadow:inset 0 0 0 2px #e0b934,0 12px 28px rgba(103,77,0,.1)}
.hp-day-frame.today{border-top-color:#d5a613;background:linear-gradient(135deg,#fffefa,#fff2ad)}
.hp-day-frame.today strong{color:#806000}
.hp-mini-cell.today{position:relative;background:#fff1a8;box-shadow:inset 0 0 0 2px #d8aa17}
.hp-mini-cell.today .hp-mini-num{display:grid;width:22px;height:22px;place-items:center;border-radius:50%;background:#c69700;color:white}
.hp-year-actions{display:flex;align-items:center;gap:9px}
.hp-year-title .hp-today-button{min-height:34px;padding:0 14px;border:1px solid #d4aa26;border-radius:10px;font-size:.75rem;font-weight:850}
.hp-workdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.hp-workday input{position:absolute;opacity:0;pointer-events:none}
.hp-workday span{display:grid;min-height:44px;place-items:center;border:1px solid var(--hp-line);border-radius:11px;background:white;color:var(--hp-muted);font-size:.78rem;font-weight:850;cursor:pointer}
.hp-workday input:checked+span{border-color:var(--hp-green);background:var(--hp-green);color:white;box-shadow:0 5px 12px rgba(40,101,79,.16)}
.hp-workday input:focus-visible+span{outline:3px solid rgba(40,101,79,.2);outline-offset:2px}
.hp-work-schedule-summary,.hp-calendar-form-help{margin:0;padding:11px 13px;border-radius:11px;background:#eef5f1;color:#456458;font-size:.79rem;font-weight:700}
.hp-handwriting-section,.hp-note-type-section{padding:14px;border:1px solid var(--hp-line);border-radius:14px;background:#fffefa}
.hp-note-type-section>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.hp-note-type-section>div:first-child span{color:var(--hp-muted);font-size:.72rem}
.hp-handwriting-section summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;color:var(--hp-navy);font-weight:850}
.hp-handwriting-section summary small{color:var(--hp-muted);font-size:.7rem;font-weight:700}
.hp-handwriting-section[open] summary{margin-bottom:13px;padding-bottom:11px;border-bottom:1px solid var(--hp-line)}
.hp-handwriting-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.hp-handwriting-tools label{display:flex;align-items:center;gap:7px;color:var(--hp-muted);font-size:.72rem;font-weight:800}
.hp-handwriting-tools input[type=color]{width:38px;height:32px;padding:2px;border:1px solid var(--hp-line);border-radius:8px;background:white}
.hp-handwriting-tools input[type=range]{width:110px}
.hp-handwriting-paper{overflow:hidden;border:1px solid #d8d3c7;border-radius:12px;background-color:#fffefa;background-image:linear-gradient(#e9e5db 1px,transparent 1px);background-size:100% 32px;box-shadow:inset 0 2px 6px rgba(33,51,61,.04)}
.hp-handwriting-paper canvas{display:block;width:100%;height:auto;aspect-ratio:15/8;touch-action:none;cursor:crosshair;background:transparent}
.hp-handwriting-paper canvas:focus-visible{outline:3px solid rgba(40,101,79,.28);outline-offset:-4px}
.hp-handwriting-help{margin:8px 2px 0;color:var(--hp-muted);font-size:.7rem}
.hp-handwriting-preview{display:block;width:100%;height:auto;max-height:170px;border:1px solid #e2ddd2;border-radius:10px;background:#fffefa;object-fit:contain}
.hp-note-open:has(.hp-handwriting-preview){align-content:start}
.hp-task-check{border-color:var(--hp-calendar-color,#9ab0a6)}
.hp-task-check.done{border-color:var(--hp-calendar-color,var(--hp-green));background:var(--hp-calendar-color,var(--hp-green))}
.hp-access-code-panel>p{color:var(--hp-muted)}
.hp-generated-code{display:grid;grid-template-columns:minmax(150px,.45fr) minmax(260px,1fr);align-items:center;gap:16px;margin-top:15px;padding:15px;border:1px solid #d8c16a;border-radius:15px;background:#fff8d8}
.hp-generated-code>div:first-child{display:grid;gap:3px}
.hp-generated-code>div:first-child span{color:var(--hp-muted);font-size:.75rem}
.hp-generated-code .hp-code{background:white}
.hp-family-help{margin:4px 0 0;color:var(--hp-muted);font-size:.78rem}
.hp-family-member-list{margin-top:14px}

.hearthplan-access{grid-template-columns:minmax(360px,.78fr) minmax(640px,1.22fr);width:min(1380px,calc(100% - 40px))}
.hearthplan-access-intro-text{position:relative;z-index:1;max-width:480px;margin:18px 0 0;color:rgba(255,255,255,.75);font-size:1rem;line-height:1.6}
.hearthplan-login{padding:clamp(34px,4vw,54px)}
.hearthplan-access-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:22px;align-items:stretch}
.hearthplan-register,.hearthplan-code-login{display:flex;flex-direction:column;padding:20px;border:1px solid #d6e1da;border-radius:17px;background:linear-gradient(145deg,#f4f8f5,#faf9f5);box-shadow:0 8px 22px rgba(33,51,61,.045)}
.hearthplan-code-login{border-color:#e5d79e;background:linear-gradient(145deg,#fff9df,#faf9f5)}
.hearthplan-register-header{display:flex;align-items:flex-start;gap:11px}
.hearthplan-method-number{display:grid;width:28px;height:28px;flex:0 0 28px;place-items:center;border-radius:50%;background:var(--hp-green);color:white;font-size:.78rem;font-weight:900}
.hearthplan-code-login .hearthplan-method-number{background:#b48912}
.hearthplan-register-header>div{min-width:0}
.hearthplan-code-login form{display:grid;gap:12px;margin-top:auto}
.hearthplan-access-code-input{text-align:center;text-transform:uppercase;letter-spacing:.12em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace!important;font-weight:850}
.hearthplan-code-login .hearthplan-login-button.secondary{border-color:#ccb761;background:#fff;color:#5c4703!important}

@media(max-width:1100px){
	  .hearthplan-access{grid-template-columns:minmax(210px,.68fr) minmax(450px,1.32fr);width:calc(100% - 16px);height:calc(100dvh - 16px);min-height:0;max-height:760px;margin:8px auto;border-radius:22px}
	  .hearthplan-access-intro{min-height:0;gap:22px;padding:24px 22px}
	  .hearthplan-access-intro h1{font-size:clamp(2.25rem,5.6vw,3.4rem)}
	  .hearthplan-access-intro-text{margin-top:10px;font-size:.84rem;line-height:1.42}
	  .hearthplan-family-preview{border-radius:15px}
	  .hearthplan-preview-head{padding:10px 12px}
	  .hearthplan-preview-row{min-height:34px;padding:0 12px;font-size:.69rem}
	  .hearthplan-login{justify-content:center;padding:18px}
	  .hearthplan-login h2{font-size:clamp(1.65rem,3.3vw,2.15rem)}
	  .hearthplan-login .hearthplan-login-kicker{margin-bottom:5px;font-size:.66rem}
	  .hearthplan-login-header>p:not(.hearthplan-login-kicker){margin-top:7px;font-size:.82rem}
	  .hearthplan-access-methods{gap:9px;margin-top:13px}
	  .hearthplan-register,.hearthplan-code-login{padding:13px;border-radius:14px}
	  .hearthplan-register-header{gap:8px;margin-bottom:9px}
	  .hearthplan-register-header h3{font-size:1rem}
	  .hearthplan-register-header p{margin-top:3px;font-size:.68rem;line-height:1.25}
	  .hearthplan-method-number{width:24px;height:24px;flex-basis:24px;font-size:.7rem}
	  .hearthplan-register form,.hearthplan-code-login form{gap:7px}
	  .hearthplan-field{gap:3px}
	  .hearthplan-field label{font-size:.66rem}
	  .hearthplan-label-row span{font-size:.58rem}
	  .hearthplan-field input{min-height:38px;padding:7px 9px;font-size:.82rem}
	  .hearthplan-register .hearthplan-login-button,.hearthplan-code-login .hearthplan-login-button{min-height:39px;font-size:.8rem}
	  .hearthplan-access-note{margin-top:10px!important;font-size:.7rem!important;line-height:1.35}
	  .hearthplan-auth-error{margin-top:10px;padding:8px 10px;font-size:.76rem}
	  .hp-mobile-nav .hp-calendar-pages{margin-bottom:6px}
}
@media(max-width:720px){
	  .hearthplan-access{display:grid;grid-template-columns:1fr;width:calc(100% - 16px);height:auto;max-height:none;min-height:0;margin:8px auto}
	  .hearthplan-access-intro{padding:34px 22px 28px}
	  .hearthplan-access-methods{grid-template-columns:1fr}
  .hearthplan-login{padding:30px 20px}
  .hp-workdays{grid-template-columns:repeat(4,minmax(0,1fr))}
  .hp-generated-code{grid-template-columns:1fr}
  .hp-handwriting-tools label:nth-child(2){flex:1}
  .hp-handwriting-tools label:nth-child(2) input{width:100%}
  .hp-year-title{align-items:flex-start;gap:12px}
  .hp-year-actions{align-items:flex-end;flex-direction:column}
}
.hp-chip.task{border-left:3px solid var(--hp-event-color,var(--hp-clay))}

/* Full-screen workspace: remove WordPress theme chrome and wrapper spacing. */
body.hearthplan-workspace-page{margin:0!important;padding:0!important}
body.hearthplan-workspace-page .entry-header,body.hearthplan-workspace-page .page-header,body.hearthplan-workspace-page .wp-block-post-title{display:none!important}
body.hearthplan-workspace-page :where(.site-main,.content-area,#primary,.wp-site-blocks,.entry-content,.wp-block-post-content){width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
