:root{--green:#294f3c;--cream:#fbf7ee;--line:#e7ddcb;--soft:#edf3e9;--wood:#a87545;--ink:#28443a}
body{background:radial-gradient(ellipse at 12% 6%,#fffdf6 0,#fbf7ee 50%,#f3efe5 100%);color:var(--ink)}
header{background:#fffdf8dd;border-bottom:1px solid #e9dfcf;box-shadow:0 3px 16px #56462a0a;position:relative}
header>div:first-child{display:flex;align-items:center;gap:13px}.portal-logo{width:53px;height:53px;object-fit:contain;border-radius:50%;background:#fff;padding:3px;box-shadow:0 1px 5px #55442c24}
header small{display:block;color:#789083;margin-top:4px}
main{margin-top:28px;margin-bottom:54px}
.card{background:#fffefa;border-color:#eadfcb;box-shadow:0 5px 20px #6352370a;border-radius:23px}
.welcome{position:relative;overflow:hidden;background:linear-gradient(115deg,#eef4e9,#fffaf0 74%);border-color:#dce8d8;min-height:200px}
.welcome:after{content:"";position:absolute;right:-24px;bottom:-43px;width:190px;height:130px;background:url("approved/portal.webp") 0 0/auto 320px no-repeat;opacity:.09;pointer-events:none}
.welcome .little-heart{position:absolute;right:27px;top:23px;color:#aa554d;font:38px Georgia;transform:rotate(12deg)}
.badge{background:#e6efe2;color:#426550}.avatar{border-color:#e7d7bd;background:#f6f1e5}
.grid{gap:16px}.tile{min-height:152px;position:relative;overflow:hidden;border-radius:20px;border:1px solid #e9dfce;background:#fffefa;padding:15px 20px;gap:13px;box-shadow:0 3px 11px #49371c08;transition:transform .15s ease,box-shadow .15s ease}
.tile:hover{background:#fffefa;transform:translateY(-2px);box-shadow:0 8px 18px #49371c14}
.tile:nth-child(1){background:#eff5ea}.tile:nth-child(2){background:#fff6e8}.tile:nth-child(3){background:#eef5f7}.tile:nth-child(4){background:#fff9ed}
.tile span.icon{width:104px;height:112px;flex:0 0 104px;display:grid;place-items:center}
.tile b{font-size:21px;color:#254b38}.tile small{color:#61746a;line-height:1.5}.tile .arrow{font-size:22px;color:#96734c}
.portal-illustration{width:100%;height:100%;overflow:visible}
.tile[data-woodland="profile"] .portal-illustration image,.tile[data-woodland="follow"] .portal-illustration image,.tile[data-woodland="memories"] .portal-illustration image,.tile[data-woodland="invoices"] .portal-illustration image{image-rendering:auto}
.portal-shortcuts{padding:17px 0}.portal-shortcuts button{border-radius:24px;padding:10px 18px;background:#fffefa}.portal-shortcuts .primary{background:var(--green);color:white}
button,.button{transition:background-color .15s ease,border-color .15s ease,transform .15s ease}button:hover{transform:translateY(-1px)}
input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid #a7c69a;outline-offset:2px}
.dayintro,.stat{background:#edf3e9}.moment{background:#fffefa;border-color:#e8dfd0}.momenticon{background:#eef4e9}
@media(max-width:620px){main{margin-top:18px}.tile{min-height:118px;padding:12px;gap:8px}.tile span.icon{width:86px;height:92px;flex-basis:86px}.tile b{font-size:19px}.welcome .little-heart{right:16px;top:13px}.portal-logo{width:43px;height:43px}}

/* Approved October woodland welcome; personal details remain live HTML. */
.welcome-rustic{display:block;position:relative;aspect-ratio:2/1;width:100%;min-height:0;padding:0;margin:0 0 24px;border:0;background:none;box-shadow:none;border-radius:0;overflow:visible;container-type:inline-size}
.welcome-rustic::after,.welcome-rustic .little-heart{display:none}
.welcome-art,.welcome-art img{display:block;width:100%;height:100%}
.welcome-art{position:absolute;inset:0;pointer-events:none}
.welcome-art img{object-fit:contain}
.welcome-rustic .welcome-photo{position:absolute;left:10.3%;top:28%;width:20.5%;text-align:center}
.welcome-rustic .avatar{width:100%;height:auto;aspect-ratio:1;border:2px solid #b69a59;box-shadow:0 0 0 3px #f4e5bc;background:#fbf8eb;font-size:clamp(40px,7vw,90px)}
.welcome-rustic .welcome-photo button{margin-top:12px;padding:8px 12px;border:1px solid #a98b4e;border-radius:24px;background:#65744f;color:#fff;font-size:clamp(11px,1.35vw,14px);line-height:1.25;min-height:44px;max-width:115%;white-space:normal}
.welcome-copy{position:absolute;left:34%;top:35%;width:32%;height:43%;text-align:center;color:#173f2b;display:flex;flex-direction:column;justify-content:space-between;align-items:center}
.welcome-copy h2{font-size:clamp(23px,4.3cqw,44px);line-height:1.08;margin:0;overflow-wrap:anywhere;font-weight:500;max-width:100%}
.welcome-copy p{font-family:Georgia,serif;font-size:clamp(14px,1.9cqw,19px);line-height:1.3;margin:0;overflow-wrap:anywhere}
@media(max-width:620px){
 .welcome-rustic{aspect-ratio:3/4;margin-bottom:22px}
 .welcome-rustic .welcome-photo{left:14%;top:29%;width:27%}
 .welcome-rustic .welcome-photo button{font-size:12px;padding:8px 10px;margin-top:8px;min-width:130px;transform:translateX(calc((27cqw - 130px)/2));max-width:none}
 .welcome-rustic .avatar{font-size:48px}
 .welcome-copy{left:46%;top:29%;width:39%;height:auto;gap:10px;display:block}
 .welcome-copy h2{font-size:clamp(20px,5.5cqw,27px);line-height:1.1}
 .welcome-copy p{font-size:clamp(13px,3.7cqw,16px);margin:12px 0 0;max-width:100%}
}

.avatar .paw-placeholder{width:58%;height:58%;fill:#63744c}

/* Visible before the welcome art and dashboard on every screen size. */
.portal-install-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#e8eee1;border:2px solid #8b9e72;border-radius:16px;padding:16px 20px;margin:0 0 20px;box-shadow:0 3px 12px #24442e0d}.portal-install-banner strong{display:block;font:700 20px Georgia,serif}.portal-install-banner span{display:block;font-size:14px;margin-top:4px}.portal-install-banner button.primary{background:#184e3c;color:white;border:2px solid #184e3c;font-size:17px;min-height:48px;padding:12px 26px;white-space:nowrap;box-shadow:0 2px 5px #184e3c22}.portal-install-banner .portal-install-status{font-size:18px;font-weight:700}@media(max-width:620px){.portal-install-banner{flex-direction:column;align-items:stretch;padding:16px;gap:12px}.portal-install-banner button.primary{width:100%;text-align:center;min-height:50px}}

/* Keep a visible route from the portal to the public website. */
header .portal-main-site-link{margin-left:auto;min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-align:center;font-size:16px}
header .portal-main-site-link:focus-visible{outline:3px solid #a66528;outline-offset:3px}
@media(max-width:620px){header .portal-main-site-link{margin-left:0;flex:1 1 auto}}
