/* Final alignment for the morning card. */
.morning-shade{z-index:6!important;width:43%!important;min-height:118px!important;padding-top:4px!important;transform:translateY(-26px)}
.morning-shade h2{font-size:29px!important;white-space:nowrap}
.morning-shade p{font-size:12px!important;white-space:nowrap}

/* Shade detail card actions and content. */
.shade-detail-card{overflow:hidden;border:1px solid rgba(255,255,255,.86);border-radius:28px;background:linear-gradient(160deg,rgba(255,255,255,.88),rgba(246,224,233,.72));box-shadow:0 24px 70px rgba(73,40,58,.2),inset 0 1px 0 #fff;backdrop-filter:blur(24px)}
.shade-detail-hero{position:relative;min-height:245px;padding:18px;background:linear-gradient(160deg,color-mix(in srgb,var(--shade),white 16%),color-mix(in srgb,var(--shade),black 8%));color:#fff}
.shade-detail-tag{display:inline-flex;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.2);font-size:12px}
.shade-detail-actions{position:absolute;top:16px;right:16px;display:flex;gap:8px}.shade-detail-actions button{width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.8);border-radius:50%;background:rgba(255,255,255,.18);color:#fff}.shade-detail-actions .icon{width:19px;height:19px}
.shade-detail-body{padding:18px 20px 20px;color:#fff;background:linear-gradient(180deg,rgba(117,25,45,.84),rgba(71,21,30,.9))}.shade-detail-brand{margin:0 0 8px;font-size:10px;letter-spacing:.18em;opacity:.88}.shade-detail-body h2{margin:0 0 18px;font-size:30px;line-height:1.05}.shade-detail-body h2 b{margin-right:8px;font-size:20px;font-weight:500}.shade-detail-body h2 span{display:inline-block;margin-left:9px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.16);font-size:12px;vertical-align:middle}.shade-detail-row{display:grid;grid-template-columns:88px 1fr;gap:12px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.22);font-size:14px;line-height:1.4}.shade-detail-row b{font-weight:500}.shade-detail-row span{opacity:.9}.shade-detail-pills{display:flex;gap:8px;margin:18px 0 12px}.shade-detail-pills button{flex:1;padding:11px 8px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-size:11px}.shade-detail-pills .icon{width:14px;vertical-align:middle}.shade-detail-save{width:100%;padding:15px;border-radius:999px;background:#fff;color:#591c2b;font-size:16px;font-weight:700}

/* Satin colour texture from the latest archive reference. */
body[data-route="archive"] .current-slab,body[data-route="archive"] .tile-colour{background:radial-gradient(ellipse at 18% 20%,color-mix(in srgb,var(--shade),white 62%) 0%,transparent 52%),linear-gradient(145deg,color-mix(in srgb,var(--shade),white 54%) 0%,color-mix(in srgb,var(--shade),white 12%) 46%,color-mix(in srgb,var(--shade),white 42%) 100%)!important;filter:none!important}
body[data-route="archive"] .current-slab::before,body[data-route="archive"] .tile-colour::before{display:block!important;content:"";position:absolute;width:125%;height:38%;left:-18%;bottom:5%;border:0;background:rgba(255,255,255,.24);border-radius:50%;transform:rotate(-18deg);filter:blur(14px)}
body[data-route="archive"] .current-slab::after,body[data-route="archive"] .tile-colour::after{display:block!important;content:"";position:absolute;width:80%;height:45%;right:-18%;top:-12%;border:0;background:color-mix(in srgb,var(--shade),white 30%);opacity:.28;border-radius:50%;transform:rotate(18deg);filter:blur(20px)}

/* Keep the shade copy on two clear lines beside the product. */
.morning-shade{width:41%!important;max-width:136px!important}
.morning-shade h2{font-size:25px!important;max-width:136px!important;white-space:nowrap}
.morning-shade p{max-width:98px!important;white-space:normal!important;line-height:1.35!important}
.gold-lipstick{left:54%!important}

/* A lighter, more transparent version of the original archive flower background. */
body[data-route="archive"]{background:linear-gradient(rgba(255,255,255,.5),rgba(242,243,249,.42)),url("dream-bg.jpg") center/cover fixed no-repeat}
body[data-route="archive"]::before{opacity:.18!important;filter:blur(18px) saturate(.68)}

/* Pull the metric cards closer to the shade information. */
.morning-shade{min-height:78px!important}

/* Use the supplied, shade-specific detail posters when available. */
.shade-poster-card{position:relative;width:100%;overflow:hidden;border-radius:24px;background:#f3f3f3;box-shadow:0 20px 60px rgba(51,30,39,.24)}
.shade-poster-image{display:block;width:100%;height:auto;max-height:calc(100dvh - 100px);object-fit:contain}
.shade-poster-actions{position:absolute;top:18px;right:18px;display:flex;gap:8px}.shade-poster-actions button{width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.85);border-radius:50%;background:rgba(84,45,62,.35);color:#fff;backdrop-filter:blur(12px)}.shade-poster-actions .icon{width:19px;height:19px}
.shade-poster-hotspots{position:absolute;inset:0;z-index:3;pointer-events:none}.poster-hotspot{position:absolute;padding:0;border:0;border-radius:999px;background:transparent;cursor:pointer;pointer-events:auto}.poster-hotspot:focus-visible{outline:2px solid #fff;outline-offset:2px;background:rgba(255,255,255,.12)}.poster-speak{left:8%;bottom:3%;width:84%;height:8%}
.poster-dynamic{position:absolute;left:8%;right:8%;top:66.5%;height:19%;z-index:2;display:grid;grid-template-rows:repeat(3,1fr);padding:0 2.5%;background:color-mix(in srgb,var(--shade),black 46%);color:#fff}.poster-dynamic-row{min-width:0;display:grid;grid-template-columns:30% 1fr;align-items:center;gap:10px;border-bottom:1px solid rgba(255,255,255,.24);font-size:clamp(10px,2.6vw,13px);line-height:1.25}.poster-dynamic-row:last-child{border-bottom:0}.poster-dynamic-row b{font-weight:500;opacity:.8}.poster-dynamic-row span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.poster-modal{width:min(390px,calc(100% - 24px));padding:0!important;border:0!important;border-radius:24px!important;background:transparent!important;box-shadow:none!important;overflow:hidden}.poster-modal .dialog-top{position:absolute;left:8px;top:8px;z-index:10;margin:0}.poster-modal .dialog-top .eyebrow{display:none}.poster-modal .dialog-top .icon-button{width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.72);color:#3b2a32;font-size:24px}.poster-modal #modal-content{margin:0}.poster-modal .shade-poster-card{border-radius:24px;box-shadow:none}
.profile-edit-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}.profile-edit-quick .btn{min-height:42px;padding:8px 10px;font-size:13px;line-height:1.25}
.archive-tabs{grid-template-columns:1fr 1fr!important}.archive-tabs button{height:29px;border:0;border-radius:999px;background:transparent;color:inherit;font:inherit;cursor:pointer}.archive-tabs button.selected{background:rgba(255,255,255,.82);color:#1d324e;box-shadow:0 3px 9px rgba(35,17,27,.07);font-weight:600}.archive-journal{min-height:0;flex:1;overflow-y:auto;padding:4px 3px 78px}.archive-journal .companion-card{margin:0}.archive-journal .diary-list{margin-top:12px}
.archive-screen,.archive-journal,.shade-library{scrollbar-width:none;-ms-overflow-style:none}.archive-screen::-webkit-scrollbar,.archive-journal::-webkit-scrollbar,.shade-library::-webkit-scrollbar{display:none;width:0;height:0}html,body[data-route="archive"]{scrollbar-width:none;-ms-overflow-style:none}html::-webkit-scrollbar,body[data-route="archive"]::-webkit-scrollbar{display:none;width:0;height:0}

/* Keep the enlarged greeting aligned with the compact mobile home layout. */
@media(max-width:760px){.morning-copy{padding:11px 0 12px}.morning-copy h1{font-size:42px;margin:21px -18px -19px -2px}}

.morning-shade p span{display:block}.read-lipstick-widget{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;cursor:pointer;font:inherit;color:#414658;text-align:center}.read-lipstick-widget strong{font-size:15px}.read-lipstick-widget>span{font-size:9px;color:#858795}.read-lipstick-widget .icon{width:27px;height:27px;color:#a85d83}.read-lipstick-widget:active{transform:scale(.98)}
.morning-weather-head>span,.morning-weather-head>p{color:rgba(255,255,255,.78)!important;text-shadow:0 2px 14px rgba(83,59,85,.18)}.morning-weather-head h1{color:rgba(255,255,255,.92)!important}.home-action-stack{display:grid;align-content:center;gap:8px}.home-action-stack button{min-height:38px;padding:7px 8px;border:1px solid rgba(255,255,255,.74);border-radius:15px;background:rgba(255,255,255,.36);box-shadow:inset 0 1px 0 rgba(255,255,255,.6);color:#414658;font:inherit;font-size:10px;line-height:1.2}.home-action-stack button .icon{width:15px;height:15px;margin-left:4px;vertical-align:middle;color:#a85d83}.home-action-stack button:active{transform:scale(.98)}
.renew-shade-button{height:100%!important;min-height:96px!important;border-radius:22px!important;font-size:24px!important;font-weight:750!important;letter-spacing:.08em;display:flex;align-items:center;justify-content:center;gap:8px}.renew-shade-button .icon{width:22px!important;height:22px!important}
.archive-screen .page-heading{position:relative}.archive-read-button{position:absolute;top:0;right:3px;width:48px;height:40px;display:flex;align-items:center;justify-content:center;gap:4px;border:1px solid rgba(255,255,255,.8);border-radius:14px;background:rgba(255,255,255,.42);box-shadow:inset 0 1px 0 #fff,0 8px 22px rgba(82,67,94,.12);color:#5c6478;cursor:pointer}.archive-read-button .icon{width:20px;height:20px;color:#7f6680}.archive-read-button span{font-size:9px}.archive-read-button:active{transform:scale(.96)}
.ai-colour-button{height:100%!important;min-height:96px!important;border-radius:22px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font:inherit;color:#414658;text-align:center}.ai-colour-button strong{font-size:20px;font-weight:750}.ai-colour-button span{font-size:9px;color:#858795;line-height:1.25}.ai-colour-button .icon{width:24px;height:24px;color:#a85d83}.ai-colour-button:active{transform:scale(.98)}
.home-links-panel{padding:16px 18px;border:1px solid rgba(255,255,255,.78);border-radius:27px;background:rgba(255,255,255,.48);box-shadow:inset 0 1px 0 #fff,0 16px 38px rgba(81,69,92,.1);backdrop-filter:blur(22px)}.home-links-panel h3{margin-bottom:6px;font-size:15px}.home-links-panel .settings-row{padding:12px 0}.home-links-panel .save-row{margin-top:14px}
.profile-namecard-preview,.portrait-section-title:has(+.profile-namecard-preview){display:none}
.visitor-lipstick-card{width:100%;overflow:hidden;border:1px solid rgba(255,255,255,.82);border-radius:32px;background:rgba(255,255,255,.5);box-shadow:0 24px 65px rgba(70,42,57,.22)}.visitor-lipstick-card img{display:block;width:100%;height:auto}.visitor-share-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 8px}.visitor-share-actions .btn{min-height:52px;border-radius:18px}.visitor-share-actions .icon{width:17px;height:17px}.visitor-favorite.is-saved{background:rgba(255,255,255,.78);color:#7e3657}
.styled-namecard{border-radius:34px!important;overflow:hidden!important;background:rgba(255,255,255,.34)!important}.styled-namecard .namecard-head{min-height:276px!important;padding:34px 28px 28px!important;background:linear-gradient(145deg,rgba(121,75,112,.28),rgba(210,149,176,.3)),url("dream-bg.jpg") center/cover!important}.styled-namecard .namecard-head .eyebrow{color:rgba(255,255,255,.9);letter-spacing:.2em}.styled-namecard .expression-line{font-family:var(--sans);font-size:clamp(34px,8vw,52px)!important;line-height:1.04!important;font-weight:700;letter-spacing:-.06em;margin-top:27px}.styled-namecard .card-edition{color:rgba(255,255,255,.86);font-size:10px;letter-spacing:.14em}.namecard-hero-note{position:absolute;right:22px;top:74px;color:rgba(255,255,255,.86);font:italic 16px/1.35 var(--serif);text-align:right}.styled-namecard .namecard-body{padding:0 22px 22px!important;background:rgba(255,255,255,.58)!important}.namecard-main-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:-42px;position:relative;z-index:1}.namecard-main-row .person-avatar{width:84px;height:84px;border:6px solid rgba(255,255,255,.9);border-radius:50%;background:linear-gradient(145deg,#e9c2e8,#b8b5e7 55%,#f3c6d8);box-shadow:0 8px 22px rgba(75,46,82,.18);font-size:34px}.namecard-main-row .person{gap:12px;align-items:flex-end}.namecard-main-row .person h2{font-family:var(--sans);font-weight:750;font-size:28px}.namecard-main-row .person p{font-size:12px;color:#6e6c7c}.namecard-save{width:58px;height:58px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.9);border-radius:50%;background:rgba(255,255,255,.7);box-shadow:0 8px 20px rgba(76,52,86,.12);font-size:29px;color:#3e3d4c}.namecard-save .icon{width:22px;height:22px}.styled-namecard .topic{margin:18px 0 12px;color:#666579;font-size:13px}.namecard-expression-pill{display:inline-flex;align-items:center;gap:10px;margin:2px 0 18px;padding:9px 15px;border-radius:999px;background:linear-gradient(100deg,rgba(196,151,255,.8),rgba(228,192,242,.64));color:#4b2378}.namecard-expression-pill span{font-size:11px;opacity:.75}.namecard-expression-pill strong{font-size:14px}.namecard-contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid rgba(255,255,255,.85);border-radius:24px;background:rgba(255,255,255,.43);overflow:hidden}.namecard-contact-grid button{min-width:0;min-height:130px;padding:14px 7px 11px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-right:1px solid rgba(106,91,118,.16);text-align:center}.namecard-contact-grid button:last-child{border-right:0}.namecard-contact-grid button:hover{background:rgba(255,255,255,.55)}.contact-glyph{width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.85);border-radius:50%;background:rgba(255,255,255,.5);font-size:20px}.namecard-contact-grid strong{font-size:13px;color:#2f3040}.namecard-contact-grid small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#777587;font-size:10px}.styled-namecard .card-product{margin-top:17px;padding-top:15px}.namecard-meet{width:100%;min-height:58px;margin-top:18px;border:1px solid rgba(255,255,255,.9);border-radius:999px;background:linear-gradient(100deg,rgba(225,158,215,.7),rgba(180,173,240,.58));color:#fff;font-size:21px;box-shadow:0 8px 24px rgba(112,64,127,.14)}.namecard-meet .icon{float:right;width:21px;height:21px;margin:3px 12px 0 0}.styled-namecard .card-foot{padding:13px;background:rgba(255,255,255,.3);color:#777183}
@media(max-width:760px){.styled-namecard .namecard-head{min-height:250px!important;padding:29px 24px 24px!important}.namecard-hero-note{right:16px;top:58px;font-size:13px}.styled-namecard .namecard-body{padding:0 16px 17px!important}.namecard-main-row .person-avatar{width:76px;height:76px}.namecard-main-row .person h2{font-size:24px}.namecard-save{width:52px;height:52px}.namecard-contact-grid button{min-height:112px;padding-left:4px;padding-right:4px}.namecard-expression-pill{margin-bottom:14px}.namecard-meet{font-size:19px}}
@media(max-width:760px){.visitor-mode main{padding:16px 10px 20px}.visitor-page{max-width:380px}.visitor-toolbar{min-height:32px;padding:6px 10px;margin-bottom:8px}.visitor-toolbar .plain-link{min-height:28px;font-size:10px;gap:5px}.visitor-toolbar span{font-size:10px}.visitor-page .styled-namecard .namecard-head{min-height:190px!important;padding:21px 18px 17px!important}.visitor-page .styled-namecard .expression-line{font-size:34px!important;margin-top:18px}.visitor-page .namecard-hero-note{right:13px;top:45px;font-size:10px}.visitor-page .styled-namecard .namecard-body{padding:0 12px 10px!important}.visitor-page .namecard-main-row{margin-top:-30px;gap:8px}.visitor-page .namecard-main-row .person{gap:8px}.visitor-page .namecard-main-row .person-avatar{width:60px;height:60px;border-width:4px;font-size:25px}.visitor-page .namecard-main-row .person h2{font-size:20px}.visitor-page .namecard-main-row .person p{font-size:10px}.visitor-page .namecard-save{width:44px;height:44px;font-size:23px}.visitor-page .namecard-save .icon{width:18px;height:18px}.visitor-page .styled-namecard .topic{margin:9px 0 7px;font-size:11px}.visitor-page .namecard-expression-pill{gap:7px;margin:1px 0 8px;padding:6px 10px}.visitor-page .namecard-expression-pill span{font-size:9px}.visitor-page .namecard-expression-pill strong{font-size:11px}.visitor-page .namecard-contact-grid{border-radius:16px}.visitor-page .namecard-contact-grid button{min-height:76px;padding:7px 4px 6px;gap:3px}.visitor-page .contact-glyph{width:28px;height:28px;font-size:13px}.visitor-page .namecard-contact-grid strong{font-size:10px}.visitor-page .namecard-contact-grid small{font-size:8px}.visitor-page .styled-namecard .card-product{margin-top:9px;padding-top:8px}.visitor-page .styled-namecard .card-product p{font-size:11px}.visitor-page .styled-namecard .card-product small{font-size:9px}.visitor-page .styled-namecard .card-product button{min-height:32px;font-size:10px;padding:4px 8px}.visitor-page .namecard-meet{min-height:44px;margin-top:10px;font-size:15px}.visitor-page .namecard-meet .icon{width:17px;height:17px;margin:1px 8px 0 0}.visitor-page .styled-namecard .card-foot{padding:7px;font-size:8px}.visitor-page .visitor-note{margin:7px 0;font-size:9px}}
.connection-preview-link{display:flex;justify-content:center;margin:14px 0 92px}.connections-settings-page{width:min(100%,560px);margin:0 auto;padding-bottom:92px}.connections-settings-page .page-heading{margin-bottom:18px}.connections-settings-panel{padding:22px;border-radius:30px}.connections-settings-panel .wide-panel{border-radius:24px}
@media(max-width:760px){.home-links-panel{padding:14px 16px}.home-links-panel h3{font-size:14px}.connection-preview-link{margin-bottom:88px}}
.morning-remaining{position:absolute;right:12px;top:54px;width:64px;height:64px;padding:0;display:grid;place-items:center;border:2px solid rgba(255,255,255,.94);border-radius:50%;background:rgba(255,255,255,.13);box-shadow:0 0 0 5px rgba(255,255,255,.12),inset 0 1px 0 rgba(255,255,255,.8),0 8px 24px rgba(83,59,85,.14);color:#fff;text-shadow:0 1px 8px rgba(83,59,85,.3);cursor:pointer;backdrop-filter:blur(12px)}.morning-remaining span{font-size:17px;font-weight:750;line-height:1}.morning-remaining small{display:block;margin-top:-17px;font-size:8px;letter-spacing:.08em;opacity:.86}.morning-remaining:active{transform:scale(.95)}.morning-remaining.is-low{animation:remaining-pulse 1.6s ease-in-out infinite}.morning-remaining.is-low::after{content:"低余量";position:absolute;right:-4px;bottom:-13px;padding:2px 5px;border-radius:999px;background:rgba(125,44,72,.68);font-size:8px;line-height:1.2;text-shadow:none}@keyframes remaining-pulse{50%{box-shadow:0 0 0 7px rgba(255,255,255,.22),0 0 22px rgba(255,255,255,.55)}}
@media(max-width:760px){.morning-remaining{right:12px;top:58px;width:60px;height:60px}.morning-remaining span{font-size:16px}.morning-remaining small{margin-top:-16px;font-size:7px}}
@media(max-height:760px) and (max-width:760px){.morning-remaining{top:49px;width:54px;height:54px}.morning-remaining span{font-size:15px}.morning-remaining small{margin-top:-15px;font-size:7px}}
