:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#fff;font-synthesis:none;--blue:#3478f6;--ink:#26242d;--muted:#8c8994;--glass:rgba(255,255,255,.2)}*{box-sizing:border-box}body{margin:0;background:#b5a2c5}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0;background:none}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #438aff;outline-offset:5px}svg{width:24px;height:24px;flex-shrink:0}p,h1,h2,h3{margin:0}button{touch-action:manipulation}button:active{transform:scale(.97)}[hidden]{display:none!important}.svg-defs{position:absolute;width:0;height:0}.phone{height:100svh;min-height:620px;position:relative;overflow:hidden;isolation:isolate}.wallpaper{position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,#9a98bd 0%,#c4aec8 38%,#e9c4bb 67%,#cbb2c9 100%);background-size:cover;background-position:center}.sun{width:44vw;height:44vw;max-width:600px;max-height:600px;border-radius:50%;background:radial-gradient(circle,#f4d7c4 0%,#edd3cc88 53%,#eac9c900 72%);position:absolute;top:18%;left:47%;filter:blur(10px)}.ridge{position:absolute;width:150%;height:60%;left:-20%;bottom:-27%;border-radius:48% 54% 0 0;transform:rotate(-13deg);background:linear-gradient(170deg,#8b89ac,#7b719c 65%);box-shadow:0 -2px 20px #c6b5d555}.ridge-back{bottom:-11%;left:15%;transform:rotate(14deg);background:linear-gradient(150deg,#c5aec3,#a89aba 48%,#9087ab)}.ridge-front{height:56%;bottom:-31%;left:-36%;transform:rotate(8deg);background:linear-gradient(170deg,#a6a0c1,#777393)}.grain{position:absolute;inset:0;opacity:.035;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.7' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}.status-bar{height:64px;position:absolute;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 42px;z-index:30;font-size:14px;font-weight:600;pointer-events:none}.island{position:absolute;top:13px;left:50%;transform:translateX(-50%);width:116px;height:32px;background:#16151b;border-radius:28px;box-shadow:inset 0 0 0 1px #ffffff0a}.island span{position:absolute;right:13px;top:11px;width:9px;height:9px;border-radius:50%;background:radial-gradient(circle at 40% 40%,#242b43,#090a11 70%)}.status-icons{display:flex;gap:7px;align-items:center}.status-icons svg{width:18px;height:15px}.signal{display:flex;height:13px;align-items:flex-end;gap:2px}.signal i{width:3px;background:currentColor;border-radius:1px}.signal i:nth-child(1){height:4px}.signal i:nth-child(2){height:7px}.signal i:nth-child(3){height:10px}.signal i:nth-child(4){height:13px}.battery{width:25px;height:12px;border:1px solid #ffffff88;border-radius:4px;position:relative}.battery:before{content:"";position:absolute;inset:2px;background:currentColor;border-radius:2px}.battery:after{content:"";position:absolute;right:-4px;top:3px;width:2px;height:4px;background:currentColor;border-radius:2px}.screen{position:absolute;inset:64px 0 0;animation:screen-in .4s ease both}.lock-screen{padding:22px 9vw 70px;display:flex;flex-direction:column;align-items:center}.lock-clock{text-align:center}.lock-icon{width:21px;height:21px;margin-bottom:11px}.lock-clock>p:first-of-type{font-size:20px;font-weight:500;letter-spacing:-.5px}.lock-clock h1{font-size:clamp(92px,12vw,166px);font-weight:650;letter-spacing:-9px;line-height:1.08;color:#f9f1f3;text-shadow:0 2px 50px #6b567718}.lock-dedication{font-size:13px;letter-spacing:2px;opacity:.8;margin-top:6px}.lock-bottom{width:100%;max-width:1000px;display:grid;grid-template-columns:1fr 1fr;column-gap:70px;align-items:end;margin:auto 0 5px}.tiny-label{font-size:10px;letter-spacing:1.8px;text-transform:lowercase;font-weight:600}.lock-note .tiny-label{opacity:.7}.lock-note h2{font-size:clamp(34px,4.6vw,62px);line-height:1.03;letter-spacing:-2px;font-weight:550;margin:20px 0}.lock-note>p{font-size:15px;line-height:1.7;color:#ffffffcc}.glass{background:var(--glass);border:1px solid #ffffff42;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);box-shadow:0 8px 35px #5042670a,inset 0 1px 0 #ffffff25}.notifications{display:grid;gap:9px}.notification{display:flex;gap:13px;padding:17px;text-align:left;width:100%;border-radius:21px;color:#393341;background:#f5ecf080}.notification .app-icon{width:40px;height:40px;border-radius:10px}.notification .app-icon svg{width:29px;height:29px}.notification-body{flex:1;font-size:13px;line-height:1.5}.notification-title{display:flex;justify-content:space-between;gap:8px;margin-bottom:1px}.notification-title strong{font-size:13px;font-weight:650}.notification-title span{font-size:10px;opacity:.55}.notification-body p{opacity:.85}.unlock{grid-column:2;display:flex;justify-content:space-between;align-items:center;border-radius:40px;padding:16px 22px;margin-top:19px;font-size:14px;font-weight:550}.unlock svg{width:20px;height:20px}.unlock-hint{grid-column:2;text-align:center;font-size:10px;margin-top:12px;color:#ffffffb0;letter-spacing:.3px}.lock-tools{position:absolute;bottom:35px;left:35px;right:35px;display:flex;justify-content:space-between;pointer-events:none}.round-glass{pointer-events:auto;width:44px;height:44px;border-radius:50%;background:#483b632b;backdrop-filter:blur(15px);display:grid;place-items:center}.home-indicator{position:absolute;z-index:50;bottom:max(9px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);height:5px;width:130px;padding:0;background:currentColor;border-radius:8px;opacity:.8}.home-indicator:after{content:"";position:absolute;inset:-12px}.home-screen{padding:42px max(7vw,24px) 45px;display:flex;align-items:center;flex-direction:column}.home-top{text-align:center}.home-top .tiny-label{opacity:.7}.home-top h1{font-size:48px;letter-spacing:-2px;font-weight:550;margin:12px 0 8px}.home-top>p:last-child{font-size:14px;opacity:.8}.home-layout{display:grid;grid-template-columns:260px 250px 260px;gap:32px;align-items:center;margin:auto 0}.widget{text-align:left;padding:23px;border-radius:28px;height:270px;display:flex;flex-direction:column}.widget-heading{display:flex;justify-content:space-between;font-size:11px;color:#ffffffc9}.widget-heading>span{opacity:.65}.widget h2{font-weight:500;letter-spacing:-1px;font-size:33px;line-height:1.15;margin:auto 0}.widget-footer{font-size:11px;display:flex;justify-content:space-between;align-items:center;opacity:.85}.small-arrow{font-size:20px}.apps{display:grid;grid-template-columns:1fr 1fr;gap:28px 35px}.app-button{display:flex;flex-direction:column;align-items:center;gap:9px;font-size:12px;text-shadow:0 1px 5px #362b5940}.app-icon{display:grid;place-items:center;width:65px;height:65px;border-radius:17px;box-shadow:0 5px 15px #44335717;position:relative}.app-icon svg{width:43px;height:43px;color:white}.messages-icon{background:linear-gradient(#72ec8b,#20bd4c)}.notes-icon{background:linear-gradient(#ffd95d 0 27%,#fff 27%);overflow:hidden}.note-lines{width:100%;height:39%;background:repeating-linear-gradient(transparent 0 9px,#d6d4da 9px 10px);margin-top:20%}.music-icon{background:linear-gradient(#fa758f,#ed365b)}.photos-icon{background:#fff}.petal{position:absolute;width:15px;height:25px;border-radius:50%;left:25px;top:8px;transform-origin:50% 24px;opacity:.8}.badge{position:absolute;right:-6px;top:-6px;width:22px;height:22px;border-radius:50%;background:#ff453a;color:white;font-size:12px;display:grid;place-items:center;font-weight:500}.memory-widget{height:270px;overflow:hidden;border-radius:28px;cursor:pointer;position:relative}.memory-visual{height:100%;background:url('assets/memory.svg') center/cover}.memory-widget>div:last-child{position:absolute;inset:auto 0 0;padding:40px 20px 20px;background:linear-gradient(transparent,#33334b99)}.memory-widget p{font-size:22px;line-height:1.15;font-weight:500;margin-top:8px;letter-spacing:-.5px}.home-caption{font-size:12px;opacity:.75;margin-bottom:24px}.dock{display:flex;align-items:center;border-radius:28px;width:390px;max-width:100%;padding:13px 17px;gap:15px}.dock .app-icon{width:51px;height:51px;border-radius:14px}.dock .app-icon svg{width:34px;height:34px}.dock-text{flex:1;display:flex;flex-direction:column;gap:5px}.dock-text span{font-size:10px;opacity:.7}.dock-text strong{font-size:13px;font-weight:500}.dock-lock{opacity:.6}.app-screen{background:#f7f6f9;color:var(--ink);inset:0;padding-top:64px}.phone.in-app .status-bar{color:#25232b}.phone.in-app .battery{border-color:#2226}.phone.in-app .home-indicator{color:#222}.app-nav{height:57px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid #26242d0a;background:#f9f8f9e8;backdrop-filter:blur(25px)}.back-button{display:flex;gap:2px;align-items:center;color:var(--blue);font-size:15px;padding:8px 0;min-width:90px}.back-button svg{width:22px}.text-button{color:var(--blue);font-size:13px;padding:12px}.app-nav>span{font-size:12px;color:var(--muted)}.app-content{height:calc(100% - 57px);overflow:auto;overscroll-behavior:contain;padding:30px max(24px,calc((100vw - 1000px)/2)) 60px}.page-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:28px}.page-heading h1{font-size:39px;font-weight:700;letter-spacing:-1.5px}.page-heading p{font-size:13px;color:var(--muted);margin-top:6px}.page-heading .tiny-label{color:var(--muted);padding-bottom:5px}.notes-intro{font-size:12px;color:#9a8f6c;padding:12px 0 24px}.notes-list{background:white;border-radius:19px;overflow:hidden}.note-row{display:flex;align-items:center;text-align:left;padding:23px 25px;width:100%;gap:18px;border-bottom:1px solid #eeeeef}.note-row:last-child{border:0}.note-number{font-size:13px;color:#c6b570;width:24px}.note-row>div{flex:1}.note-row h2{font-size:17px;font-weight:600;margin-bottom:6px}.note-row p{font-size:13px;line-height:1.5;color:var(--muted)}.note-row>svg{color:#bbb;width:18px;transform:rotate(180deg)}.note-detail{max-width:660px;margin:10px auto}.note-date{font-size:12px;color:#aaa29a;text-align:center;margin-bottom:30px}.note-detail h1{font-size:33px;letter-spacing:-1px;margin-bottom:24px}.note-detail p{font-size:19px;line-height:1.85;white-space:pre-line}.note-sign{margin-top:36px!important;color:#a49466;font-size:14px!important}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.photo-card{text-align:left;min-width:0}.photo-card img{width:100%;aspect-ratio:1.05;object-fit:cover;border-radius:16px;display:block;transition:filter .2s}.photo-card h2{font-size:14px;font-weight:550;margin:12px 0 4px}.photo-card p{font-size:11px;color:var(--muted);margin-bottom:14px}.photo-detail{max-width:680px;margin:auto}.photo-detail img{width:100%;max-height:53svh;object-fit:contain;border-radius:20px;background:#e7e0e8}.photo-detail h1{font-size:27px;letter-spacing:-.7px;margin:24px 0 12px}.photo-detail p{font-size:16px;color:#797582;line-height:1.8}.music-hero{display:flex;gap:34px;align-items:center;margin-bottom:35px}.album-art{width:230px;aspect-ratio:1;border-radius:15px;background:linear-gradient(145deg,#cd9aa9,#705d80);box-shadow:0 12px 30px #74627c25;display:flex;flex-direction:column;justify-content:space-between;padding:24px;color:#fff;position:relative;overflow:hidden}.album-art:before{content:"";position:absolute;width:180px;height:180px;border:1px solid #f9d8da55;border-radius:50%;top:26px;left:60px;box-shadow:0 0 0 25px #f9d8da11,0 0 0 50px #f9d8da11}.album-art>span{font-size:9px;letter-spacing:2px;z-index:1}.album-art strong{font-family:Georgia,serif;font-style:italic;font-weight:400;font-size:42px;line-height:.95;z-index:1}.music-info h1{font-size:38px;letter-spacing:-1.5px;max-width:400px;line-height:1.1}.music-info p{font-size:14px;color:#96909a;max-width:330px;line-height:1.7;margin-top:15px}.music-info .tiny-label{color:#c55473;margin-bottom:12px;display:block}.track-list{border-top:1px solid #e7e2e8}.track{display:flex;align-items:center;gap:18px;padding:18px 4px;border-bottom:1px solid #e7e2e8}.track-index{color:#a19aa4;font-size:13px;width:20px}.track-info{flex:1}.track h2{font-size:15px;font-weight:550}.track p{font-size:12px;color:#97909a;margin-top:5px}.track a{color:#c75473;text-decoration:none;font-size:12px;padding:12px 15px;border-radius:20px;background:#ece5eb}.music-footnote{font-size:11px;color:#9a919c;line-height:1.7;margin-top:22px}.messages-page{max-width:740px;margin:auto}.conversation-row{display:flex;width:100%;align-items:center;gap:16px;padding:22px 4px;text-align:left;border-top:1px solid #e8e5eb}.avatar{width:50px;height:50px;border-radius:50%;background:linear-gradient(145deg,#c9bbd0,#91829f);color:white;display:grid;place-items:center;font-size:18px;font-weight:500;flex-shrink:0}.conversation-row>div:nth-child(2){flex:1}.conversation-row h2{font-size:16px;margin-bottom:6px;font-weight:600}.conversation-row p{font-size:13px;color:var(--muted)}.conversation-row time{font-size:11px;color:var(--muted)}.unread-dot{width:8px;height:8px;background:var(--blue);border-radius:50%}.messages-note{margin-top:28px;text-align:center;font-size:12px;line-height:1.8;color:#9b96a2}.chat-mode .app-nav{height:78px}.chat-mode .app-content{height:calc(100% - 78px);padding:0;overflow:hidden}.chat-identity{display:flex;align-items:center;flex-direction:column;gap:4px;color:#39343f!important}.chat-identity .avatar{width:34px;height:34px;font-size:12px}.chat-identity strong{font-size:11px;font-weight:500}.chat-shell{height:100%;display:flex;flex-direction:column;background-size:cover;background-position:center}.chat-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px max(24px,calc((100vw - 680px)/2)) 20px;scroll-behavior:smooth}.chat-date{text-align:center;font-size:10px;color:#a09aa4;margin-bottom:25px;line-height:1.8}.chat-date strong{font-weight:600}.bubble{position:relative;max-width:80%;width:fit-content;padding:12px 17px;line-height:1.5;font-size:15px;letter-spacing:-.1px;margin:5px 0;background:#e7e6eb;border-radius:19px 19px 19px 5px;white-space:pre-line;overflow-wrap:anywhere;animation:bubble-in .3s ease both}.bubble.outgoing{margin-left:auto;background:#3478f6;color:white;border-radius:19px 19px 5px 19px}.bubble.confession{font-size:23px;font-weight:550;line-height:1.3;letter-spacing:-.6px;padding:18px 22px;background:#e5dfed}.delivered{text-align:right;font-size:9px;color:#a19aa5;margin:5px 3px 14px}.typing{display:flex;gap:4px;padding:16px;width:62px}.typing i{width:7px;height:7px;border-radius:50%;background:#a8a4ae;animation:typing 1.2s infinite}.typing i:nth-child(2){animation-delay:.18s}.typing i:nth-child(3){animation-delay:.36s}.chat-controls{padding:14px max(24px,calc((100vw - 680px)/2)) 38px;background:#f8f7f9e8;border-top:1px solid #ded9e43b;flex-shrink:0}.choices{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.choice{background:#fff;border:1px solid #b6c9ee;color:#3478f6;border-radius:22px;font-size:13px;padding:12px 17px;transition:background .2s}.composer{border:1px solid #d6d1db;border-radius:24px;padding:11px 15px;color:#aaa3ae;font-size:13px;display:flex;justify-content:space-between;align-items:center;gap:15px}.composer span:last-child{font-size:10px;color:#a29aa8}.choice-hint{text-align:center;color:#aaa2ae;font-size:10px;margin:10px 0 0}.final-card{background:white;border:1px solid #e5dfea;border-radius:20px;padding:21px;margin:24px 0 4px;animation:bubble-in .4s both}.final-card .tiny-label{color:#a596ad}.final-card h2{font-size:21px;letter-spacing:-.6px;font-weight:600;margin:9px 0}.final-card p{font-size:12px;line-height:1.8;color:#99909e}.contact-cta{display:block;border-radius:25px;background:var(--blue);color:white;text-decoration:none;text-align:center;padding:14px;margin-top:17px;font-size:13px}.change-answer{display:block;margin:12px auto 0;font-size:11px;color:#91859c;padding:7px}.toast{position:absolute;bottom:45px;left:50%;transform:translateX(-50%);padding:12px 22px;border-radius:24px;background:#292334dd;backdrop-filter:blur(20px);color:#fff;font-size:12px;z-index:100;white-space:nowrap}.flash-on:after{content:"";position:absolute;inset:0;background:#fff9;pointer-events:none;z-index:29}.flash-on #flashlight{background:#fff;color:#56486a}.app-screen:focus,.screen:focus{outline:none}@keyframes screen-in{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:none}}@keyframes bubble-in{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}@keyframes typing{0%,65%,100%{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media(min-width:1500px){.home-layout{gap:65px}.lock-bottom{max-width:1080px}.lock-screen{padding-top:40px}.home-top{margin-top:18px}}
@media(max-width:900px){.home-layout{grid-template-columns:230px 230px;gap:28px}.memory-widget{display:none}.widget{height:245px}.photo-grid{gap:12px}.lock-bottom{gap:35px}.lock-note h2{font-size:44px}}
@media(max-width:600px){.phone{min-height:560px}.status-bar{padding:0 26px;height:58px;font-size:13px}.island{top:11px;width:106px;height:30px}.screen{inset:58px 0 0}.lock-screen{padding:16px 24px 95px}.lock-clock>p:first-of-type{font-size:17px}.lock-clock h1{font-size:100px;letter-spacing:-6px;line-height:1.08}.lock-icon{width:18px;height:18px;margin-bottom:8px}.lock-dedication{font-size:10px;letter-spacing:1.5px;margin-top:8px}.lock-bottom{display:flex;flex-direction:column;gap:0;align-items:stretch;max-width:390px;margin:auto 0 0}.lock-note{margin:20px 5px 22px}.lock-note .tiny-label{font-size:8px;letter-spacing:1.2px}.lock-note h2{font-size:35px;line-height:1.08;letter-spacing:-1px;margin:10px 0}.lock-note h2 br{display:none}.lock-note>p{font-size:12px;line-height:1.6}.lock-note>p br{display:none}.notification{padding:13px;border-radius:19px;gap:11px}.notification-body{font-size:11px}.notification-title strong{font-size:12px}.notification .app-icon{width:36px;height:36px}.notification .app-icon svg{width:27px;height:27px}.unlock{margin-top:14px;padding:14px 20px;font-size:13px}.unlock-hint{font-size:9px;margin-top:11px}.lock-tools{bottom:34px;left:27px;right:27px}.round-glass{width:40px;height:40px}.home-screen{padding:27px 24px 37px}.home-top h1{font-size:38px;margin:10px 0 7px}.home-top .tiny-label{font-size:8px;letter-spacing:1.4px}.home-top>p:last-child{font-size:12px}.home-layout{width:100%;max-width:350px;grid-template-columns:1fr;gap:24px;margin:auto 0}.widget{height:163px;width:100%;padding:18px 22px;border-radius:24px}.widget h2{font-size:27px;line-height:1.05;max-width:230px}.widget h2 br{display:none}.widget-heading{font-size:10px}.widget-footer{font-size:10px}.apps{display:flex;justify-content:space-between;gap:8px}.app-icon{width:60px;height:60px;border-radius:15px}.app-button{font-size:10px;gap:8px}.app-icon svg{width:39px;height:39px}.petal{left:23px;top:6px;width:14px;height:24px}.home-caption{font-size:10px;margin-bottom:16px}.dock{padding:12px 14px;border-radius:25px;gap:12px}.dock-text strong{font-size:12px}.dock-text span{font-size:9px}.app-screen{inset:0;padding-top:58px}.app-nav{padding:0 17px;height:53px}.back-button{font-size:13px;min-width:70px}.app-nav>span{font-size:10px}.app-content{height:calc(100% - 53px);padding:24px 20px 55px}.page-heading{margin-bottom:23px}.page-heading h1{font-size:33px}.page-heading p{font-size:11px}.page-heading>.tiny-label{display:none}.note-row{padding:20px 15px;gap:8px}.note-row h2{font-size:15px}.note-row p{font-size:11px}.note-detail h1{font-size:28px}.note-detail p{font-size:17px}.photo-grid{grid-template-columns:repeat(2,1fr);gap:12px}.photo-card img{border-radius:12px}.photo-card h2{font-size:12px;margin:9px 0 3px}.photo-card p{font-size:10px}.music-hero{flex-direction:column;gap:23px;text-align:center}.album-art{width:200px;text-align:left}.music-info h1{font-size:29px}.music-info p{font-size:12px;margin:11px auto 0}.music-info .tiny-label{font-size:8px}.track{gap:10px}.track h2{font-size:14px}.track p{font-size:11px}.track a{font-size:10px;padding:10px}.chat-scroll{padding:18px 18px 16px}.bubble{font-size:14px;max-width:86%;padding:11px 15px}.bubble.confession{font-size:22px}.chat-controls{padding:12px 17px 35px}.choice{font-size:12px;padding:11px 14px}.chat-mode .app-nav{height:71px}.chat-mode .app-content{height:calc(100% - 71px)}.sun{width:110vw;height:110vw;top:22%;left:20%}.ridge-back{bottom:-5%;left:20%;height:45%;width:180%}.ridge-front{bottom:-16%;height:37%;width:180%;left:-65%}}
@media(max-height:720px) and (max-width:600px){.lock-clock h1{font-size:82px}.lock-screen{padding-top:5px;padding-bottom:83px}.lock-note{margin:12px 5px}.lock-note h2{font-size:28px;margin:7px 0}.notifications .notification:nth-child(n+2){display:none}.home-screen{padding-top:15px}.home-top h1{font-size:32px}.home-layout{gap:18px}.widget{height:145px}.home-caption{margin-bottom:12px}.app-icon{width:54px;height:54px}.petal{left:20px;top:3px}.dock .app-icon{width:43px;height:43px}.lock-dedication{margin-top:2px}.lock-icon{margin-bottom:3px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Light iMessage styling. Avatar and an optional photo message live in CONFIG. */
.phone.chat-mode{--chat-blue:#168bfa;--chat-gray:#e9e9eb;--chat-paper:#fff}
.chat-mode .app-screen{background:var(--chat-paper);color:#161618}
.chat-mode .app-nav{height:128px;position:relative;background:#ffffffed;border:0;padding:0 max(24px,calc((100vw - 740px)/2));align-items:flex-start;padding-top:18px;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
.chat-mode .app-content{height:calc(100% - 128px)}
.chat-mode .back-button,.chat-mode #app-home{background:linear-gradient(150deg,#f8f8f8,#eeeeef);box-shadow:inset 0 0 0 1px #dedee075,0 2px 6px #00000004;color:#252527;min-width:0;height:43px;border-radius:28px;display:flex;align-items:center;justify-content:center}
.chat-mode .back-button{padding:0 12px 0 9px;gap:6px}
.chat-mode .back-button>svg{height:26px;width:26px}
.chat-back-count{background:#fff;min-width:25px;height:23px;border-radius:14px;font-size:13px;display:grid;place-items:center;padding:0 6px}
.chat-mode #app-home{width:43px;padding:0}
.chat-mode #app-home svg{width:21px;height:21px}
.chat-mode #app-context{position:absolute;left:50%;transform:translateX(-50%);top:12px}
.chat-mode .chat-identity{gap:7px;color:#303035!important}
.chat-mode .chat-identity .avatar{width:62px;height:62px;background:linear-gradient(160deg,#a49caf,#746b8d);overflow:hidden;color:#fff}
.chat-identity .avatar>svg{width:59px;height:59px;align-self:end}
.chat-identity .avatar>img{width:100%;height:100%;object-fit:cover}
.chat-mode .chat-identity strong{font-size:11px;font-weight:500;display:flex;align-items:center;gap:3px;white-space:nowrap;border-radius:20px;background:#f4f4f5;padding:5px 9px}
.chat-identity strong svg{width:10px;height:10px;color:#88888d}
.chat-shell{background-color:var(--chat-paper);--chat-tail:var(--chat-paper)}
.chat-scroll{padding-top:5px;padding-left:max(23px,calc((100vw - 700px)/2));padding-right:max(23px,calc((100vw - 700px)/2))}
.chat-date{font-size:11px;color:#89898d;margin:0 0 24px;line-height:1.5;display:flex;flex-direction:column;align-items:center}
.chat-date strong{font-size:12px;font-weight:500}
.chat-date .chat-simulation{font-size:10px;color:#a0a0a5}
.chat-date time{margin-top:18px;font-size:11px}
.message-row{margin:5px 0;display:flow-root}
.bubble{font-size:17px;line-height:1.35;letter-spacing:-.28px;padding:11px 16px;border-radius:23px;background:var(--chat-gray);color:#161618;max-width:80%;margin:0;isolation:isolate}
.bubble:before{content:"";position:absolute;bottom:0;left:-6px;width:15px;height:18px;background:var(--chat-gray);border-bottom-right-radius:13px;z-index:-1}
.bubble:after{content:"";position:absolute;bottom:0;left:-10px;width:10px;height:22px;background:var(--chat-tail);border-bottom-right-radius:9px;z-index:-1}
.bubble.outgoing{background:var(--chat-blue);border-radius:23px;color:#fff}
.bubble.outgoing:before{left:auto;right:-6px;background:var(--chat-blue);border-bottom-right-radius:0;border-bottom-left-radius:13px}
.bubble.outgoing:after{left:auto;right:-10px;border-bottom-right-radius:0;border-bottom-left-radius:9px}
.bubble.confession{background:var(--chat-gray);font-size:25px;font-weight:500;line-height:1.2;padding:16px 19px;letter-spacing:-.65px}
.delivered{font-size:10px;color:#919195;margin:5px 3px 8px}
.bubble.typing{padding:16px;width:65px;margin-top:7px}
.typing i{background:#99999f}
.chat-photo{width:min(75%,300px);margin:0 0 8px auto}
.chat-photo img{width:100%;max-height:420px;object-fit:cover;border-radius:22px;display:block}
.chat-controls{background:#ffffffef;border-top:0;padding-top:15px;padding-bottom:max(38px,calc(env(safe-area-inset-bottom) + 24px))}
.composer{border:0;border-radius:0;padding:0;gap:13px}
.composer-plus{display:grid;place-items:center;border-radius:50%;background:#f0f0f2;color:#717176;font-size:28px!important;width:35px;height:35px;font-weight:300;flex-shrink:0}
.composer>div{border:1px solid #dadadd;border-radius:24px;min-height:38px;padding:4px 5px 4px 14px;flex:1;display:flex;align-items:center;justify-content:space-between;font-size:15px}
.composer-send{display:grid;place-items:center;background:#e6e6e9;border-radius:50%;height:27px;width:27px;color:#fff!important}
.composer-send svg{width:20px;height:20px}
.choice{border-color:#d9e4f5;background:#f5f8fd;color:#087ff5;font-size:14px;border-radius:23px;padding:12px 17px}

.choice-hint{color:#96969d}
.final-card{background:#f7f7f9;border-color:#eeeeef;border-radius:24px;margin-top:30px;box-shadow:none}
.final-card .tiny-label{color:#9a9aa2}
.final-card p{color:#85858c}
.contact-cta{background:var(--chat-blue)}
.change-answer{color:#85858d}
@media(max-width:600px){
 .chat-mode .app-nav{height:122px;padding:17px 20px 0}
 .chat-mode .app-content{height:calc(100% - 122px)}
 .chat-mode #app-context{top:10px}
 .chat-mode .chat-identity .avatar{width:58px;height:58px}
 .chat-identity .avatar>svg{width:55px;height:55px}
 .chat-mode .chat-identity strong{font-size:10px}
 .chat-scroll{padding:7px 22px 18px}
 .bubble{font-size:16px;max-width:84%;padding:10px 15px;border-radius:22px}
 .bubble.outgoing{border-radius:22px}
 .bubble.confession{font-size:23px;padding:15px 18px}
 .chat-controls{padding-left:18px;padding-right:18px}
 .choice{font-size:13px;padding:11px 15px}
 .chat-date{margin-bottom:22px}
}
@media(max-height:650px){.chat-mode .app-nav{height:102px}.chat-mode .app-content{height:calc(100% - 102px)}.chat-mode .chat-identity .avatar{width:45px;height:45px}.chat-identity .avatar>svg{width:43px;height:43px}.chat-date time{margin-top:10px}.chat-date{margin-bottom:15px}}

/* Astronomy lock screen and decorative four-digit passcode. */
.locked-state .wallpaper{background-color:#000;background-size:auto 100%;background-position:center;background-repeat:no-repeat}
.locked-state .wallpaper>.sun,.locked-state .wallpaper>.ridge,.locked-state .wallpaper>.grain{display:none}
.locked-state #status-time{font-size:0}
.locked-state #status-time:after{content:"iPhone";font-size:12px;font-weight:500}
.lock-screen{padding:30px 24px 75px}
.lock-clock{position:relative;margin-top:14px;color:#e3e8e9}
.lock-clock .lock-icon{position:absolute;top:-26px;left:calc(50% - 8px);height:16px;width:16px;opacity:.8}
.lock-clock>p:first-of-type{font-size:23px;letter-spacing:-.6px;font-weight:500}
.lock-clock h1{font-size:clamp(102px,13vw,156px);font-weight:650;letter-spacing:-7px;color:#e3e8e9;line-height:1.06;text-shadow:0 2px 30px #0003}
.lock-dedication,.lock-note{display:none}
.lock-widgets{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:340px;margin:22px auto 0;color:#dce2e3;gap:24px}
.lock-battery-widget{width:145px;flex-shrink:0;display:flex;flex-direction:column;font-size:12px;gap:5px}
.widget-battery-label{display:flex;align-items:center;gap:3px;font-size:15px;font-weight:550}
.widget-battery-label svg{width:13px;height:19px}
.lock-battery-track{height:7px;background:#ffffff36;border-radius:10px;margin-top:3px;overflow:hidden}
.lock-battery-track i{display:block;height:100%;width:100%;background:#dce2e3;border-radius:10px}
.lock-person-widget{display:flex;flex-direction:column;align-items:center;justify-content:center;width:56px;height:56px;background:#ffffff2b;border-radius:50%;gap:3px;flex-shrink:0}
.lock-person-widget svg{width:22px;height:22px;opacity:.85}
.lock-person-widget span{font-size:7px;letter-spacing:.4px}
.lock-memory-widget{border:4px solid #ffffff45;border-bottom-color:transparent;border-radius:50%;width:58px;height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0}
.lock-memory-widget>span:first-child{font-size:23px;line-height:1;font-weight:400;letter-spacing:-1px}
.lock-memory-widget>span:last-child{font-size:7px;margin-top:4px}
.lock-bottom{display:flex;flex-direction:column;align-items:center;gap:0;margin:auto 0 0;max-width:360px}
.lock-bottom .notifications{display:none;width:100%}
.show-lock-notifications .lock-bottom .notifications{display:grid;margin-bottom:18px}
.unlock.glass{border:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;padding:12px 24px;gap:8px;margin:0;font-size:12px;font-weight:500;color:#e5e8eb;text-shadow:0 1px 5px #000}
.unlock>svg{height:14px;width:14px;order:-1}
.unlock-hint{display:none}
.lock-tools .round-glass{width:48px;height:48px;background:#303033b0;backdrop-filter:blur(15px)}
.passcode-screen{padding:24px 20px 45px;overflow-y:auto;background:#0b0d1770;backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);display:flex;justify-content:center;align-items:center}
.passcode-card{width:292px;max-width:100%;text-align:center;padding-top:12px}
.passcode-lock{width:24px;height:24px;opacity:.8;margin-bottom:15px}
.passcode-card h1{font-size:22px;font-weight:500;letter-spacing:-.4px}
.passcode-card>p:first-of-type{font-size:12px;opacity:.6;margin-top:10px}
.passcode-dots{display:flex;justify-content:center;gap:23px;margin:28px 0 0}
.passcode-dots i{width:12px;height:12px;border:1px solid #fff;border-radius:50%;transition:background .15s}
.passcode-dots i.filled{background:white}
.passcode-feedback{height:34px;padding-top:10px;font-size:11px;color:#ffffffc9}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:15px 23px;justify-items:center;margin:7px 0 22px}
.keypad button{display:flex;flex-direction:column;align-items:center;justify-content:center;width:76px;height:76px;border-radius:50%;background:#ffffff24;box-shadow:inset 0 0 0 1px #ffffff09;transition:background .15s}
.keypad button:active,.keypad button.is-pressed{background:#ffffff50}
.keypad button>span{font-size:33px;font-weight:350;line-height:1.1}
.keypad small{font-size:8px;letter-spacing:2px;min-height:10px;margin-top:3px;padding-left:2px}
.keypad button[data-digit="0"]>span{line-height:1.4}
.passcode-actions{display:flex;justify-content:space-between;font-size:12px;padding:0 7px}
.passcode-actions button{padding:12px;min-height:44px}
.shake{animation:shake .45s ease}
@keyframes shake{20%,60%{transform:translateX(-10px)}40%,80%{transform:translateX(10px)}100%{transform:translateX(0)}}
@media(max-width:600px){.lock-screen{padding:36px 24px 78px}.lock-clock{margin-top:8px}.lock-clock h1{font-size:112px;letter-spacing:-7px}.lock-clock>p:first-of-type{font-size:22px}.lock-widgets{margin-top:20px;max-width:325px;gap:18px}.lock-battery-widget{width:140px}.lock-tools{bottom:35px;left:34px;right:34px}.lock-tools .round-glass{width:47px;height:47px}}
@media(max-height:720px){.lock-screen{padding-top:17px}.lock-clock{margin-top:5px}.lock-clock>p:first-of-type{font-size:19px}.lock-clock h1{font-size:94px}.lock-widgets{margin-top:15px}.lock-person-widget,.lock-memory-widget{width:49px;height:49px}.passcode-screen{padding-top:5px;align-items:flex-start}.passcode-card{padding-top:7px}.passcode-lock{margin-bottom:7px;height:20px}.passcode-dots{margin-top:19px}.keypad{gap:12px 22px}.keypad button{width:65px;height:65px}.passcode-feedback{height:30px}.passcode-actions{margin-top:-10px}}

/* Edge-to-edge, three-column iPhone album. */
.gallery-mode .app-screen{background:#fff}
.gallery-mode .app-nav{background:#ffffffed;border:0;position:relative;z-index:8;padding-left:max(18px,calc((100vw - 940px)/2));padding-right:max(18px,calc((100vw - 940px)/2))}
.gallery-mode .app-content{padding:0 max(0px,calc((100vw - 960px)/2)) 130px;overflow-y:auto;background:#fff}
.gallery-title-row{height:77px;display:flex;align-items:center;justify-content:space-between;padding:0 23px;position:relative;z-index:3;background:linear-gradient(#ffffffed,#ffffff94,transparent);margin-bottom:-77px;gap:10px;pointer-events:none}
.gallery-title-row h1{font-size:31px;letter-spacing:-1px;line-height:1.1;font-weight:700;text-shadow:0 1px 8px #fff8}
.gallery-title-row>div{display:flex;align-items:center;gap:8px;pointer-events:auto}
.gallery-select,.gallery-more{background:#f0eef0d9;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid #ffffff80;border-radius:22px;height:35px;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 6px #00000005}
.gallery-select{font-size:12px;font-weight:550;padding:0 15px}
.gallery-more{width:35px;padding:8px}
.gallery-more svg{width:20px;height:20px;fill:#38353d}
.gallery-mode .photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
.gallery-mode .photo-card{padding:0;position:relative;overflow:hidden;aspect-ratio:1;display:block;min-width:0;background:#e7e4e8}
.gallery-mode .photo-card>img{aspect-ratio:1;border-radius:0;width:100%;height:100%;object-fit:cover;display:block}
.gallery-mode .photo-card:active{transform:none;filter:brightness(.88)}
.photo-heart{position:absolute;bottom:9px;left:9px;color:#fff;filter:drop-shadow(0 1px 3px #0004);display:flex}
.photo-heart svg{width:17px;height:17px}
.photo-selection{position:absolute;right:8px;bottom:8px;width:21px;height:21px;border:1.5px solid #fff;border-radius:50%;box-shadow:0 1px 4px #0004;background:#0001;display:grid;place-items:center;color:#fff}
.photo-selection svg{width:16px;height:16px}
.is-selected .photo-selection{background:#168bfa;border-color:#fff}
.is-selected img{filter:brightness(.8)}
.gallery-count{text-align:center;font-size:12px;color:#9a979f;padding:27px 15px 0;line-height:1.6}
.gallery-tabs{position:absolute;z-index:8;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:clamp(30px,9vw,130px);background:#f8f8fae8;backdrop-filter:blur(25px);-webkit-backdrop-filter:blur(25px);border-top:1px solid #e6e5e8;padding:12px 10px max(30px,env(safe-area-inset-bottom));color:#8a8891}
.gallery-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:0 3px;min-width:47px}
.gallery-tabs svg{width:25px;height:25px}
.gallery-tabs span{font-size:10px;white-space:nowrap}
.gallery-tabs [aria-current="page"]{color:#0783fa}
.gallery-albums{padding:20px 22px}
.gallery-albums h1{font-size:32px;letter-spacing:-1px;margin-bottom:25px}
.album-list{display:grid;grid-template-columns:1fr 1fr;gap:17px}
.album-list button{text-align:left;padding:0;display:flex;flex-direction:column;gap:7px}
.album-list img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;margin-bottom:5px}
.album-list strong{font-size:15px;font-weight:500}
.album-list span{font-size:12px;color:#959099}
.gallery-menu{position:absolute;z-index:9;right:max(20px,calc((100vw - 920px)/2));top:185px;border:1px solid #e8e5eb;border-radius:15px;background:#fffffff5;box-shadow:0 10px 30px #0002;padding:7px;min-width:170px}
.gallery-menu button{display:block;width:100%;text-align:left;font-size:13px;padding:12px 15px;border-radius:10px}

.gallery-mode:has(.photo-search) .gallery-title-row,.gallery-mode:has(.gallery-subtitle) .gallery-title-row{margin-bottom:0;background:white}
.photo-search{padding:0 18px 20px;display:flex;flex-direction:column;gap:8px}
.photo-search label{font-size:11px;color:#8f8b96}
.photo-search input{width:100%;padding:12px 15px;background:#f1f0f4;border:0;border-radius:12px;font:inherit;font-size:14px;color:#333;outline-offset:2px}
.gallery-subtitle{font-size:13px;color:#8e8894;padding:0 22px 20px}
.gallery-mode .photo-detail{max-width:800px;padding:0 20px 10px;margin:0 auto}
.photo-viewer-date{text-align:center;display:flex;flex-direction:column;gap:5px;padding:15px 5px 20px}
.photo-viewer-date strong{font-size:14px;font-weight:600}
.photo-viewer-date span{font-size:11px;color:#9b94a0}
.gallery-mode .photo-full img{max-height:55svh;width:100%;height:auto;object-fit:contain;border-radius:0;background:#fff;display:block;min-height:180px}
.photo-viewer-tools{display:flex;align-items:center;justify-content:space-between;max-width:250px;margin:15px auto 0}
.photo-viewer-tools button{width:44px;height:44px;display:grid;place-items:center;color:#168bfa}
.next-photo svg{transform:rotate(180deg)}
.photo-viewer-tools .favorite-toggle svg{width:24px;height:24px}
.gallery-mode .photo-caption{font-size:14px;line-height:1.75;color:#827a89;max-width:550px;margin:10px auto 20px;text-align:center}
.gallery-mode .photo-detail-mode .app-content{padding-bottom:38px}
@media(min-width:900px){.gallery-title-row{height:90px;margin-bottom:-90px;padding:0 27px}.gallery-title-row h1{font-size:39px}.gallery-mode .photo-grid{gap:3px}.photo-heart svg{width:20px;height:20px}.photo-heart{bottom:13px;left:13px}}
@media(max-width:360px){.gallery-title-row{padding:0 14px}.gallery-title-row h1{font-size:27px}.gallery-select{padding:0 12px}.gallery-tabs{gap:23px}.lock-widgets{gap:12px}.lock-battery-widget{width:125px}}
/* Keep the phone viewport fixed; each app owns its own scroll surface. */
.phone{overflow:clip}
.locked-state .wallpaper{background-size:auto 85%;background-position:center bottom}
.message-row:not(.from-you):has(+ .message-row:not(.from-you)) .bubble:before,.message-row:not(.from-you):has(+ .message-row:not(.from-you)) .bubble:after{display:none}

/* iOS typography and interaction tokens. Apple devices use their native SF font. */
:root{--ios-font:-apple-system,BlinkMacSystemFont,system-ui,"Helvetica Neue",Arial,sans-serif;--ios-ease:cubic-bezier(.16,1,.3,1);--ios-blue:#007aff;font-family:var(--ios-font);font-kerning:normal;font-optical-sizing:auto;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
button,input,a{font-family:inherit}
button{font-synthesis:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.screen{animation:none}
button,a.contact-cta,[role="button"]{transition:scale 220ms var(--ios-ease),background-color 160ms ease,box-shadow 200ms ease,opacity 160ms ease;transform-origin:center}
button:active{transform:none}
button.is-pressed,a.contact-cta.is-pressed,[role="button"].is-pressed{scale:.96;transition-duration:80ms}
.app-button.is-pressed,.dock-app.is-pressed{scale:.92;filter:brightness(.88)}
.keypad button.is-pressed{scale:.96}
.home-indicator:active{transform:translateX(-50%)}
.home-indicator{touch-action:none;transition:opacity .16s ease;min-height:5px}
.lock-screen{touch-action:pan-x}
.passcode-actions button,.text-button,.back-button,.choice,.change-answer,.track a{min-height:44px}
.back-button,.text-button{letter-spacing:-.35px}
.app-nav .back-button{border-radius:26px;padding:0 12px 0 7px;min-width:0;background:#f3f3f5a6;box-shadow:inset 0 0 0 1px #fff9;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px)}
.app-nav>.text-button{border-radius:24px;padding:0 15px;background:#f3f3f5a6;box-shadow:inset 0 0 0 1px #fff9;font-weight:500}
.page-heading h1,.gallery-title-row h1,.gallery-albums h1{font-weight:700;letter-spacing:-1.1px}
.bubble{font-size:17px;line-height:1.3;letter-spacing:-.4px}
.lock-clock h1,.status-bar,.passcode-dots{font-variant-numeric:tabular-nums}
.lock-clock h1{font-stretch:normal}
.passcode-card h1{font-size:23px;font-weight:500;letter-spacing:-.5px}
.keypad button>span{font-weight:300;letter-spacing:-.5px}
.keypad small{font-weight:600}
.glass{backdrop-filter:blur(24px) saturate(145%);-webkit-backdrop-filter:blur(24px) saturate(145%);box-shadow:inset 0 1px 0 #ffffff70,inset 0 -1px 0 #ffffff12,0 6px 24px #3021420d}
.chat-mode .back-button,.chat-mode #app-home,.gallery-select,.gallery-more{backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%);box-shadow:inset 0 1px 0 #fff,inset 0 0 0 1px #ffffff90,0 2px 12px #00000008}
.gallery-tabs{left:50%;right:auto;transform:translateX(-50%);bottom:25px;max-width:430px;width:calc(100% - 30px);gap:3px;padding:6px;border:1px solid #ffffffbd;border-radius:36px;background:#f6f6f9c9;box-shadow:inset 0 1px 0 #fff,0 6px 24px #26222e15;backdrop-filter:blur(25px) saturate(150%);-webkit-backdrop-filter:blur(25px) saturate(150%)}
.gallery-tabs button{flex:1;min-height:55px;padding:7px 5px;border-radius:28px;gap:3px;transition:background-color 180ms ease,scale 220ms var(--ios-ease),color 160ms ease}
.gallery-tabs [aria-current="page"]{color:var(--ios-blue);background:#ffffffc4;box-shadow:0 1px 4px #00000004,inset 0 1px 0 #fff}
.gallery-tabs svg{width:24px;height:24px}
.gallery-tabs span{font-size:10px;font-weight:500;letter-spacing:-.1px}
.gallery-mode .app-content{padding-bottom:125px}
.chat-controls .choice{font-size:14px;font-weight:400;letter-spacing:-.2px}
.bubble{animation:bubble-in 320ms var(--ios-ease) both}
@keyframes bubble-in{from{opacity:0;translate:0 7px;scale:.97}to{opacity:1;translate:0 0;scale:1}}
@media(hover:hover) and (pointer:fine){
 .app-button:hover .app-icon,.dock-app:hover .app-icon{filter:brightness(1.06);box-shadow:inset 0 1px 0 #ffffff60,0 6px 18px #24153424}
 .glass:hover{background-color:#ffffff32}
 .back-button:hover,.text-button:hover,.gallery-select:hover,.gallery-more:hover,.gallery-tabs button:hover{background-color:#e9e9efcf}
 .choice:hover{background-color:#eaf3ff;border-color:#b4d3ff}
 .keypad button:hover{background-color:#ffffff35}
 .photo-card:hover img{filter:brightness(.94)}
 .gallery-menu button:hover,.note-row:hover,.conversation-row:hover{background-color:#f1f0f4}
 .track a:hover,.contact-cta:hover{filter:brightness(.95)}
 .passcode-actions button:hover,.change-answer:hover{opacity:.7}
}
@media(prefers-reduced-transparency:reduce){.glass{background:#ada2be}.app-nav,.gallery-tabs,.chat-controls{backdrop-filter:none;-webkit-backdrop-filter:none;background:#f7f7fa}.gallery-select,.gallery-more{background:#f2f2f5}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.is-pressed{scale:1!important}}
/* Keep press/release timing consistent even on controls with older local rules. */
.phone :is(button,a.contact-cta,[role="button"]){transition:scale 220ms var(--ios-ease),background-color 160ms ease,box-shadow 200ms ease,opacity 160ms ease}
.phone :is(button,a.contact-cta,[role="button"]).is-pressed{transition-duration:80ms}
.app-icon{transition:filter 160ms ease,box-shadow 200ms ease}
@media(prefers-reduced-motion:reduce){.phone :is(button,a.contact-cta,[role="button"]){transition:none!important}}
.phone :is(button,a.contact-cta,[role="button"]):active{scale:.96}
@media(max-width:600px){.app-button{font-size:12px;letter-spacing:-.15px}.note-row h2{font-size:16px}.note-row p{font-size:13px}.chat-controls .choice{font-size:14px}}
@media(prefers-reduced-motion:reduce){.phone :is(button,a.contact-cta,[role="button"]):active{scale:1!important}}

/* Home is an icon canvas, with no editorial widgets or welcome copy. */
.home-screen{padding:35px 24px 38px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
.home-screen>.apps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;gap:29px 15px;width:100%;max-width:440px;margin:0 auto}
.home-screen .app-button{font-size:12px;letter-spacing:-.15px;gap:8px;padding:0;min-height:83px;justify-content:flex-start}
.home-screen .app-icon{width:62px;height:62px;border-radius:16px}
.home-screen .app-icon svg{width:42px;height:42px}
.home-page-dots{margin:auto auto 19px;display:flex;align-items:center;justify-content:center;height:22px;min-width:35px;border-radius:20px;background:#ffffff18}
.home-page-dots i{height:6px;width:6px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0001}
.home-screen .dock{width:100%;max-width:390px;min-height:94px;justify-content:space-around;gap:12px;padding:15px 17px;border-radius:34px;background:#ffffff29;border:1px solid #ffffff40;box-shadow:inset 0 1px 0 #ffffff73,0 4px 20px #40314e13}
.home-screen .dock-app{padding:0;display:grid;place-items:center}
.home-screen .dock .app-icon{width:62px;height:62px;border-radius:16px}
.home-screen .dock .app-icon svg{width:42px;height:42px}
.lock-app-icon{background:linear-gradient(#81838f,#555865)}
.lock-app-icon svg{width:34px!important;height:34px!important;color:#fff}
.lock-screen{touch-action:none;cursor:grab}
.lock-dragging .lock-screen{cursor:grabbing;z-index:2;animation:none;transition:none}
.lock-dragging .passcode-screen{z-index:1;pointer-events:none;animation:none;transition:none}
.lock-dragging .lock-tools{pointer-events:none}
.lock-dragging .lock-tools button{pointer-events:none}
@media(min-width:700px){.home-screen{padding-top:48px}.home-screen>.apps{max-width:600px;gap:35px 35px}.home-screen .app-icon{width:70px;height:70px;border-radius:19px}.home-screen .app-button{font-size:13px;gap:10px}.home-screen .dock{margin-bottom:4px}}
@media(max-width:360px){.home-screen{padding:29px 17px 35px}.home-screen>.apps{gap:25px 10px}.home-screen .app-icon,.home-screen .dock .app-icon{width:56px;height:56px;border-radius:15px}.home-screen .dock{gap:9px;padding:14px 13px;min-height:84px;border-radius:30px}}
@media(max-height:650px){.home-screen{padding-top:24px}.home-screen .dock{min-height:82px;padding-top:11px;padding-bottom:11px}.home-page-dots{margin-bottom:13px}}
.lock-screen{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

/* Native app layouts: standard content chrome, not landing-page sections. */
.app-screen.native-root>.app-nav{display:none}
.app-screen.native-root>.app-content{height:100%}
.native-large-title{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0 20px}
.native-large-title h1{font-size:34px;letter-spacing:-1.1px;line-height:1.12;font-weight:700}
.native-circle{width:40px;min-width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#f0f0f2b8;color:#222;box-shadow:inset 0 1px 0 #fff9}
.native-circle svg{width:21px;height:21px}
.native-section-title{display:flex;align-items:center;justify-content:space-between;padding:8px 0 16px}
.native-section-title h2{font-size:22px;letter-spacing:-.5px;font-weight:700}
.native-section-title>button{color:#007aff;font-size:15px;padding:6px 0 6px 12px}
.native-albums{padding:12px 20px 25px;max-width:760px;margin:auto}
.native-albums .album-list{gap:23px 16px}
.native-albums .album-list button{gap:4px}
.native-albums .album-list strong{font-size:16px;line-height:1.2;letter-spacing:-.3px}
.native-albums .album-list>button>span{font-size:13px;color:#8e8e93}
.native-album-cover{width:100%;aspect-ratio:1;position:relative;margin-bottom:4px;overflow:hidden;border-radius:8px}
.native-album-cover img{width:100%;height:100%;object-fit:cover;border-radius:0;display:block;margin:0}
.native-album-cover>span{position:absolute;left:12px;bottom:11px;color:#fff;filter:drop-shadow(0 1px 2px #0004)}
.native-album-cover svg{width:23px;height:23px}
.media-heading{margin-top:29px;border-top:1px solid #e9e9eb;padding-top:22px}
.native-settings-row{width:100%;display:flex;gap:13px;align-items:center;min-height:49px;border-bottom:1px solid #e9e9eb;padding:10px 0;color:#007aff;text-align:left}
.native-settings-row>svg{width:23px;height:23px}
.native-settings-row>span{font-size:17px;flex:1}
.native-settings-row>small{font-size:14px;color:#8e8e93}
.native-settings-row>svg:last-child{width:14px;height:14px;color:#b9b9bf}
.native-album-nav{display:flex;align-items:center;justify-content:flex-end;padding:8px 18px;height:48px;background:#fffffff0;position:relative;z-index:4}
.native-album-nav>button{display:none}
.native-album-nav>div{display:flex;gap:9px}
.gallery-mode .native-root .gallery-title-row{height:68px;margin-bottom:-68px;padding:0 22px;background:linear-gradient(#ffffffa8,transparent)}
.gallery-mode .native-root .gallery-title-row h1{font-size:32px;letter-spacing:-1px}
.gallery-mode .native-root:has(.photo-search) .gallery-title-row,.gallery-mode .native-root:has(.gallery-subtitle) .gallery-title-row{margin-bottom:0;background:#fff}
.gallery-mode .native-root .gallery-menu{top:112px}
.gallery-mode #app-home{display:none}
.native-photo-viewer{max-width:900px;min-height:100%;margin:0 auto;display:flex;flex-direction:column;background:#fff}
.native-photo-meta{display:flex;flex-direction:column;gap:4px;text-align:center;padding:2px 15px 15px}
.native-photo-meta strong{font-size:14px;letter-spacing:-.2px;font-weight:600}
.native-photo-meta span{font-size:11px;color:#8e8e93}
.native-photo-viewer .photo-full{display:flex;align-items:center;justify-content:center;flex:1;min-height:250px}
.native-photo-viewer .photo-full img{width:100%;max-height:54svh;object-fit:contain;background:#fff;min-height:0;border-radius:0}
.photo-filmstrip{display:flex;align-items:center;justify-content:flex-start;gap:2px;overflow:auto;scrollbar-width:none;padding:17px 16px 10px;margin-top:auto}
.photo-filmstrip button{padding:0;flex-shrink:0;width:26px;height:38px;opacity:.65;overflow:hidden;border-radius:2px}
.photo-filmstrip button[aria-current="true"]{width:37px;opacity:1;margin:0 4px;box-shadow:0 0 0 2px #fff}
.photo-filmstrip img{width:100%;height:100%;object-fit:cover}
.native-viewer-toolbar{display:flex;align-items:center;justify-content:space-around;padding:0 15px 10px;color:#007aff}
.native-viewer-toolbar button{width:44px;height:44px;display:grid;place-items:center}
.native-viewer-toolbar svg{width:23px;height:23px}
.native-photo-info{background:#f2f2f7;border-radius:24px 24px 0 0;padding:22px;animation:bubble-in .25s var(--ios-ease)}
.native-photo-info h2{font-size:18px;letter-spacing:-.4px;margin-bottom:10px}
.native-photo-info p{font-size:15px;line-height:1.6;color:#6c6c72}
.gallery-mode .photo-detail-mode>.app-content{padding:0 0 24px}

/* Apple Music-inspired Library, playlists, track lists and track detail. */
.music-mode .app-screen{background:#fff;color:#101014}
.music-mode .app-content{padding:0 0 120px;overflow-y:auto}
.native-music-page{max-width:760px;margin:auto;padding:12px 22px 30px}
.native-music-page .native-circle{color:#fa2d48}
.native-library-list{border-top:1px solid #e5e5e7}
.native-library-list>button{width:100%;display:flex;align-items:center;gap:16px;min-height:54px;border-bottom:1px solid #e5e5e7;text-align:left;padding:9px 0;color:#fa2d48}
.native-library-list>button>svg:first-child{width:25px;height:25px}
.native-library-list>button>span{flex:1;font-size:21px;letter-spacing:-.5px}
.native-library-list>button>svg:last-child{width:14px;height:14px;color:#b5b5bc}
.native-recent-title{font-size:23px;letter-spacing:-.6px;margin:28px 0 18px;font-weight:700}
.native-music-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px 16px}
.native-music-grid>button{text-align:left;padding:0;display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0}
.native-art-square{display:block;aspect-ratio:1;overflow:hidden;border-radius:8px;margin-bottom:4px;box-shadow:0 3px 10px #3a16360c}
.native-music-grid>button>strong{font-size:15px;font-weight:400;letter-spacing:-.25px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.native-music-grid>button>small{font-size:13px;color:#898991;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.native-cover{height:100%;width:100%;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:20px;color:#fff;background:#bb8296}
.native-cover:before,.native-cover:after{content:"";position:absolute;width:135%;aspect-ratio:1;top:-42%;left:-50%;border-radius:50%;background:#ffffff18}
.native-cover:after{left:35%;top:40%;background:#ffffff10}
.native-cover>span{position:relative;z-index:1;font-size:clamp(18px,4.5vw,29px);letter-spacing:-1px;font-weight:650;line-height:1.04;max-width:95%;overflow-wrap:anywhere}
.native-cover>svg{position:absolute;right:12px;bottom:11px;width:24px;height:24px;opacity:.5}
.native-cover-playlist{background:linear-gradient(145deg,#ea9f9a,#b4657c 50%,#744865)}
.native-cover-0{background:linear-gradient(145deg,#829a90,#314e4c)}
.native-cover-1{background:linear-gradient(145deg,#d2a0a3,#9d5365)}
.native-cover-2{background:linear-gradient(145deg,#839bbc,#394d75)}
.native-art-square>img,.native-playlist-cover>img{width:100%;height:100%;object-fit:cover}
.native-inner-nav{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin:0 -6px 12px}
.native-inner-nav>button:first-child{display:flex;align-items:center;color:#fa2d48;font-size:16px;gap:0;padding:9px 0}
.native-inner-nav>span{font-size:12px;color:#8e8e93}
.native-playlist-header{text-align:center;padding:7px 0 5px}
.native-playlist-cover{width:min(68vw,270px);aspect-ratio:1;margin:0 auto 23px;overflow:hidden;border-radius:10px;box-shadow:0 8px 25px #a34e6a21}
.native-playlist-cover .native-cover>span{font-size:43px;letter-spacing:-1.7px}
.native-playlist-header h1{font-size:24px;letter-spacing:-.8px;line-height:1.2;font-weight:700;margin-bottom:6px}
.native-playlist-header .native-playlist-author{font-size:18px;color:#fa2d48;letter-spacing:-.3px;margin:0 0 12px}
.native-playlist-header>p:last-child{font-size:13px;color:#8b8b93;line-height:1.6;max-width:320px;margin:0 auto}
.native-play-actions{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:23px 0}
.native-play-actions button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;background:#f2f2f6;border-radius:12px;color:#fa2d48;font-size:17px;font-weight:600}
.native-play-actions svg{width:20px;height:20px}
.native-track-list{border-top:1px solid #e6e6e9}
.native-track-row{width:100%;padding:10px 0;display:flex;align-items:center;gap:13px;text-align:left;border-bottom:1px solid #e6e6e9;min-height:65px}
.native-track-art{width:45px;height:45px;overflow:hidden;border-radius:5px;flex-shrink:0}
.native-track-art .native-cover{padding:7px}
.native-track-art .native-cover>span{font-size:9px;letter-spacing:-.3px}
.native-track-art .native-cover>svg{width:9px;height:9px;right:3px;bottom:3px}
.native-track-text{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.native-track-text strong{font-size:16px;letter-spacing:-.35px;font-weight:400}
.native-track-text small{font-size:13px;color:#8e8e93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.native-track-more{color:#b7b7bf;display:flex;align-items:center;padding:5px}
.native-track-more svg{height:14px;width:14px}
.native-track-count{font-size:12px;color:#8e8e93;margin-top:20px;text-align:center}
.native-music-tabs{position:absolute;z-index:8;bottom:25px;left:50%;transform:translateX(-50%);width:calc(100% - 30px);max-width:430px;background:#f5f5f9d9;border:1px solid #ffffffc9;box-shadow:inset 0 1px 0 #fff,0 5px 25px #45263810;backdrop-filter:blur(24px) saturate(145%);-webkit-backdrop-filter:blur(24px) saturate(145%);border-radius:36px;display:flex;gap:3px;padding:6px}
.native-music-tabs button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;min-height:55px;border-radius:28px;gap:3px;color:#919197;font-size:10px;font-weight:500}
.native-music-tabs svg{width:24px;height:24px}
.native-music-tabs [aria-current="page"]{background:#ffffffd4;color:#fa2d48;box-shadow:inset 0 1px 0 #fff}
.native-player-art{width:min(100%,360px);aspect-ratio:1;overflow:hidden;border-radius:13px;margin:23px auto 33px;box-shadow:0 12px 35px #46334225}
.native-player-art .native-cover>span{font-size:48px;letter-spacing:-2px}
.native-player-title{max-width:360px;margin:auto}
.native-player-title h1{font-size:27px;letter-spacing:-.9px;font-weight:650;line-height:1.2}
.native-player-title p{font-size:19px;color:#8e8e93;margin-top:7px;letter-spacing:-.3px}
.native-song-note{font-size:14px;line-height:1.6;color:#8e8e93;max-width:360px;margin:18px auto}
.native-listen-link{display:flex;align-items:center;justify-content:center;gap:8px;background:#fa2d48;color:#fff;text-decoration:none;border-radius:13px;min-height:49px;max-width:360px;margin:25px auto 0;font-size:16px;font-weight:600}
.native-listen-link svg{width:19px;height:19px}
.native-player-navigation{display:flex;justify-content:space-between;align-items:center;max-width:250px;margin:22px auto;color:#8e8e93;font-size:12px}
.native-player-navigation button{width:44px;height:44px;display:grid;place-items:center;color:#323235}
.native-audio{display:block;width:100%;max-width:360px;margin:auto}

/* Messages inbox and persistent iMessage composer. */
.messages-mode .app-screen{background:#fff}
.messages-mode .app-content{padding:0 0 35px;overflow:auto}
.native-messages-page{max-width:720px;margin:auto;padding:3px 20px 30px}
.native-message-tools{display:flex;justify-content:space-between;align-items:center;min-height:49px}
.native-message-tools .native-circle{color:#007aff}
.native-message-tools .native-circle:last-child{background:#f0f0f4}
.native-messages-page .native-large-title{padding-top:8px;padding-bottom:17px}
.native-search{display:flex;align-items:center;gap:9px;border-radius:12px;background:#efeff3;min-height:39px;padding:0 10px;margin:0 0 18px;color:#8e8e93}
.native-search>span{display:flex;align-items:center}
.native-search svg{width:18px;height:18px}
.native-search input{font:inherit;letter-spacing:-.2px;font-size:17px;background:transparent;border:0;outline:none;color:#18181b;min-width:0;flex:1;width:100%;padding:9px 0}
.native-search input::placeholder{color:#919198}
.native-search:focus-within{outline:2px solid #007aff55;outline-offset:2px}
.native-conversations .conversation-row{border-top:0;border-bottom:1px solid #e6e6eb;gap:12px;padding:13px 0;position:relative;min-height:88px}
.native-conversations .unread-dot{position:absolute;left:-13px;width:7px;height:7px;flex-shrink:0}
.native-conversations .avatar{height:55px;width:55px;overflow:hidden;background:linear-gradient(155deg,#b0a9bb,#868094);color:#fff}
.native-conversations .avatar>svg{width:52px;height:52px;align-self:end}
.native-conversations .avatar>img{width:100%;height:100%;object-fit:cover}
.native-conversation-text{flex:1;min-width:0;text-align:left}
.native-conversation-text>span{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:5px}
.native-conversation-text strong{font-size:17px;letter-spacing:-.35px;font-weight:600}
.native-conversation-text time{display:flex;align-items:center;gap:4px;font-size:13px;white-space:nowrap;color:#9b9ba2}
.native-conversation-text time svg{height:11px;width:11px;color:#bebec4}
.native-conversation-text p{font-size:15px;color:#8e8e93;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.native-empty-message{text-align:center;color:#8e8e93;font-size:15px;margin-top:50px}
.native-filter-caption{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#8e8e93;margin:10px 0}
.native-filter-caption button{color:#007aff;padding:8px}
.chat-mode .app-nav{height:112px;padding-top:12px}
.chat-mode .app-content{height:calc(100% - 112px)}
.chat-mode #app-context{top:5px}
.chat-mode .chat-identity .avatar{width:55px;height:55px}
.chat-mode .chat-identity strong{background:transparent;padding:1px 5px}
.chat-date{margin-top:5px;margin-bottom:22px}
.chat-date time{margin-top:11px;font-size:11px}
.chat-scroll{padding-top:5px}
.chat-mode .chat-controls{padding:8px max(14px,calc((100vw - 700px)/2)) max(33px,calc(env(safe-area-inset-bottom) + 20px));background:#fffffff0;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.native-chat-composer{display:flex;align-items:center;gap:12px;min-height:42px}
.native-chat-composer>button{height:36px;width:36px;border-radius:50%;background:#efeff1;color:#88888e;font-size:28px;font-weight:300;line-height:1;display:grid;place-items:center;flex-shrink:0}
.native-chat-composer>div{border:1px solid #d7d7dd;border-radius:24px;min-height:37px;flex:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 11px 6px 14px;color:#a2a2a8;font-size:16px;letter-spacing:-.25px}
.native-chat-composer>div>svg{width:21px;height:21px;color:#8e8e93}
.native-reply-suggestions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:7px;padding:5px 2px 13px}
.native-reply-suggestions .choice{border:1px solid #d4dff3;background:#f3f6fc;font-size:13px;line-height:1.2;min-height:36px;padding:10px 13px;border-radius:19px;color:#007aff}
.native-chat-apps{display:flex;align-items:center;justify-content:center;gap:30px;padding:20px 12px 24px;animation:bubble-in .25s var(--ios-ease)}
.native-chat-apps button{display:flex;flex-direction:column;gap:7px;align-items:center;font-size:11px;color:#71717b}
.native-chat-apps .app-icon{width:45px;height:45px;border-radius:12px;overflow:hidden}
.native-chat-apps .app-icon svg{width:30px;height:30px}
.native-chat-apps .petal{left:15px;top:0}
.native-contact-sheet{display:flex;flex-direction:column;align-items:center;border-radius:24px;background:#f2f2f7;padding:21px;gap:12px;margin-bottom:14px;animation:bubble-in .25s var(--ios-ease)}
.native-contact-sheet .avatar{width:64px;height:64px;overflow:hidden;color:#fff}
.native-contact-sheet .avatar svg{width:62px;height:62px;align-self:end}
.native-contact-sheet .avatar img{width:100%;height:100%;object-fit:cover}
.native-contact-sheet strong{font-size:21px;letter-spacing:-.5px}
.native-contact-sheet a{color:#007aff;font-size:15px;text-decoration:none;padding:9px 20px;background:#fff;border-radius:12px}
.native-contact-sheet>button{color:#007aff;font-size:14px;padding:8px 20px}
@media(min-width:800px){.native-albums{padding-top:23px}.native-albums .album-list{grid-template-columns:repeat(4,1fr)}.native-music-grid{grid-template-columns:repeat(3,1fr)}.native-music-page{padding-top:25px}.native-playlist-cover{width:250px}.native-messages-page{padding-top:15px}.native-photo-viewer .photo-full img{max-height:58svh}}
@media(max-height:650px){.chat-mode .app-nav{height:99px}.chat-mode .app-content{height:calc(100% - 99px)}.chat-mode .chat-identity .avatar{width:46px;height:46px}.native-playlist-cover{width:190px}.native-player-art{max-width:250px}}
@media(hover:hover) and (pointer:fine){.native-library-list>button:hover,.native-track-row:hover,.native-settings-row:hover{background:#f7f7fa}.native-music-tabs button:hover{background:#e9e9ef}.native-listen-link:hover{filter:brightness(.95)}}
.native-artists>button{display:flex;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #e8e8ed;text-align:left;width:100%}
.native-artist-avatar{display:block;width:62px;height:62px;flex-shrink:0;border-radius:50%;overflow:hidden}
.native-artist-avatar .native-cover{padding:9px}
.native-artist-avatar .native-cover>span{font-size:12px;letter-spacing:-.3px}
.native-artist-avatar .native-cover>svg{display:none}
.native-artists>button>strong{flex:1;font-size:17px;font-weight:400;letter-spacing:-.4px}
.native-artists>button>svg{width:14px;height:14px;color:#babac1}
.native-track-art>img,.native-player-art>img,.native-artist-avatar>img{width:100%;height:100%;object-fit:cover;display:block}
.native-chat-composer>div input{flex:1;min-width:0;width:100%;border:0;background:transparent;font:inherit;color:#161618;letter-spacing:-.25px;padding:2px 0;outline:none;font-size:16px}
.native-chat-composer>div input::placeholder{color:#a2a2a8;opacity:1}
.native-chat-composer>div input:disabled{-webkit-text-fill-color:#a2a2a8;opacity:1}
.native-chat-composer>div:focus-within{border-color:#a1bff0}
.native-chat-composer #chat-send{width:27px;height:27px;border-radius:50%;background:#007aff;color:#fff;display:grid;place-items:center;padding:0;flex-shrink:0}
.native-chat-composer #chat-send svg{width:20px;height:20px}
.native-chat-composer #chat-send:disabled{background:#dedee3;cursor:default;opacity:.7}
.native-chat-composer #chat-send:disabled:active{scale:1}
.native-featured-playlist{padding:0;display:flex;flex-direction:column;width:100%;text-align:left;gap:5px}
.native-featured-art{display:block;width:100%;aspect-ratio:1.5;border-radius:12px;overflow:hidden;margin-bottom:6px}
.native-featured-art .native-cover>span{font-size:42px;max-width:70%}
.native-featured-art>img{width:100%;height:100%;object-fit:cover}
.native-featured-playlist>strong{font-size:19px;font-weight:600;letter-spacing:-.5px}
.native-featured-playlist>small{font-size:14px;color:#8e8e93}
.native-radio-card{background:linear-gradient(140deg,#fd526b,#ed183b);min-height:270px;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;color:#fff;position:relative;overflow:hidden;margin:15px 0 30px}
.native-radio-card>svg{width:55px;height:55px;opacity:.9}
.native-radio-card>strong{font-size:39px;letter-spacing:-1.5px;font-weight:700}
.native-radio-card>span{font-size:16px;font-weight:500}
.native-music-tabs button{min-width:0}
.native-music-tabs span{font-size:9px;letter-spacing:-.15px}
/* Historical chat is already sent; only new conversation bubbles animate. */
.message-date-row{text-align:center;color:#929299;font-size:11px;line-height:1.5;padding:22px 0 14px;clear:both;font-weight:500}
.history-row .bubble{animation:none}
.history-row .bubble{margin-bottom:2px}
.photo-card img,.native-album-cover img,.photo-full img,.photo-filmstrip img{font-size:0;color:transparent}
.chat-scroll:focus-visible{outline:2px solid #007aff66;outline-offset:-2px}

/* Shared PAP attachments. The same media slots feed the Photos albums. */
.pap-bubble{display:block;width:240px;max-width:78%;aspect-ratio:3/4;padding:0;overflow:hidden;border-radius:21px;background:#e9e9ed;box-shadow:inset 0 0 0 1px #00000006}
.pap-bubble img{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:3/4;font-size:0;color:transparent}
.from-you .pap-bubble{margin-left:auto}
.media-message{margin-top:7px;margin-bottom:7px}
.message-row.from-you:has(+.message-row.from-you) .bubble:before,.message-row.from-you:has(+.message-row.from-you) .bubble:after{display:none}
.message-row.from-you+.message-row.from-you{margin-top:2px}
.message-row:not(.from-you)+.message-row:not(.from-you){margin-top:2px}
.message-date-row+.message-row{margin-top:5px}
.pap-viewer{width:100%;height:100svh;max-width:none;max-height:none;inset:0;border:0;padding:max(22px,env(safe-area-inset-top)) 20px max(28px,env(safe-area-inset-bottom));margin:0;background:#08080a;color:#fff;overscroll-behavior:contain;font-family:var(--ios-font)}
.pap-viewer:not([open]){display:none}
.pap-viewer[open]{display:flex;flex-direction:column;animation:bubble-in 220ms var(--ios-ease)}
.pap-viewer::backdrop{background:#000b;backdrop-filter:blur(14px)}
.pap-viewer-header{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:850px;margin:0 auto 20px;gap:16px;min-height:49px}
.pap-viewer-person{display:flex;align-items:center;gap:11px}
.pap-viewer-person img{width:37px;height:37px;border-radius:50%;object-fit:cover}
.pap-viewer-person strong{font-size:15px;font-weight:500;letter-spacing:-.3px}
.pap-viewer-header button{height:40px;width:40px;border-radius:50%;background:#ffffff1a;display:grid;place-items:center;color:#fff}
.pap-viewer-header button svg{width:20px;height:20px}
.pap-viewer-image{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100svh - 130px);object-fit:contain;min-height:0;margin:auto;flex:1;font-size:0;color:transparent}
@media(min-width:900px){.pap-bubble{width:270px}}
@media(prefers-reduced-motion:reduce){.pap-viewer[open]{animation:none!important}}
/* Shared, explicit app exit. The remaining app surface flexes below it. */
.phone.in-app .app-screen{display:flex;flex-direction:column}
.phone.in-app .app-screen[hidden]{display:none}
.phone.in-app .app-nav{flex-shrink:0}
.phone.in-app .app-content{flex:1;min-height:0;height:auto!important}
.phone.in-app:not(.chat-mode) #app-home{visibility:hidden}
.music-mode .native-music-page{padding-bottom:180px}
.music-mode .expanded-player{padding:0 28px 32px;max-width:460px;min-height:100%;margin:auto;background:linear-gradient(155deg,#f4f2f0,#e3e0de);color:#292727}
.music-mode:has(.expanded-player) .app-content{background:#efedeb}
.player-top{height:48px;display:flex;align-items:center;justify-content:space-between;color:#73706d;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:1px}
.player-top button{width:44px;height:44px;background:none;border:0;color:inherit;display:grid;place-items:center}
.player-top svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6}
.player-grabber{width:30px;height:5px;border-radius:8px;background:#b4afac;display:block}
.music-player-cover{width:min(100%,320px);aspect-ratio:1;margin:18px auto 28px;border-radius:10px;overflow:hidden;box-shadow:0 18px 28px #30282130;transform:scale(.93);transition:transform .4s cubic-bezier(.2,.7,.3,1)}
.music-player-cover.is-playing{transform:scale(1)}
.music-player-cover img,.music-player-cover .native-cover{width:100%;height:100%;object-fit:cover}
.player-song{display:flex;align-items:center;justify-content:space-between;gap:10px}
.player-song h1{font-size:23px;letter-spacing:-.6px;margin:0;font-weight:700}
.player-song p{font-size:18px;color:#77706d;margin:5px 0 0}
.player-source{font-size:11px;border:1px solid #aaa4a0;border-radius:5px;padding:3px 5px;color:#736b66}
.player-progress{margin-top:22px}
.player-progress input,.player-volume input{width:100%;height:22px;accent-color:#817a76;cursor:pointer}
.player-progress>div{display:flex;justify-content:space-between;font-size:11px;color:#7e7772;font-variant-numeric:tabular-nums}
.player-transport{display:flex;justify-content:space-around;align-items:center;margin:20px 0 22px}
.player-transport button{width:60px;height:58px;background:none;border:0;color:#292727;display:grid;place-items:center}
.player-transport svg{width:32px;height:32px;fill:currentColor}
.player-transport [data-music-toggle] svg{width:45px;height:45px}
.player-volume{display:flex;align-items:center;gap:12px;margin-bottom:22px;color:#857d77}
.player-volume svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0}
.apple-music-badge{display:flex;align-items:center;justify-content:center;gap:6px;width:fit-content;min-height:40px;padding:0 15px;margin:0 auto;background:#222;color:white;border-radius:8px;font-size:13px;text-decoration:none;font-weight:600}
.apple-music-badge svg{width:17px;height:17px;fill:currentColor}
.player-preview-note{text-align:center;font-size:11px;color:#817a75;margin:8px 0 0}
.player-queue h2{font-size:20px;margin:28px 0 4px}
.music-mini{position:absolute;bottom:91px;left:max(12px,calc((100% - 710px)/2));right:max(12px,calc((100% - 710px)/2));height:64px;background:rgba(245,244,244,.94);backdrop-filter:blur(24px);border:1px solid #ffffffd9;border-radius:19px;box-shadow:0 4px 20px #00000013;display:flex;align-items:center;z-index:5;padding:7px 10px;gap:6px}
.music-mini button{background:none;border:0;color:#242426;min-width:40px;height:44px;display:grid;place-items:center}
.music-mini svg{width:23px;height:23px;fill:currentColor}
.music-mini .mini-song{flex:1;display:flex;gap:10px;text-align:left;min-width:0;overflow:hidden}
.mini-art{width:44px;height:44px;flex:0 0 44px;border-radius:7px;overflow:hidden}
.mini-art img,.mini-art .native-cover{width:100%;height:100%;object-fit:cover}
.mini-song>span:last-child{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-song small{display:block;font-size:11px;color:#777;margin-top:3px;overflow:hidden;text-overflow:ellipsis}
@media(max-height:780px){.music-player-cover{width:min(68%,240px);margin:5px auto 18px}.player-progress{margin-top:14px}.player-transport{margin:12px 0}.player-volume{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){.music-player-cover{transition:none}}
/* Reserve tab space on library pages, without adding an empty area to Now Playing. */
.music-mode .app-content{padding:0}
.music-player-cover{width:min(100%,clamp(160px,calc(100dvh - 580px),290px));margin:12px auto 24px}
@media(max-height:780px){.music-player-cover{width:min(68%,240px);margin:5px auto 18px}}
/* Supplied photo wallpaper fills both phone screens, with readable lock text. */
.phone.has-custom-wallpaper .wallpaper{background-size:cover;background-position:center;background-repeat:no-repeat}
.phone.has-custom-wallpaper .wallpaper>.sun,.phone.has-custom-wallpaper .wallpaper>.ridge,.phone.has-custom-wallpaper .wallpaper>.grain{display:none}
.phone.has-custom-wallpaper.locked-state:not(.passcode-mode) .lock-clock,.phone.has-custom-wallpaper.locked-state:not(.passcode-mode) .lock-clock h1,.phone.has-custom-wallpaper.locked-state:not(.passcode-mode) .lock-widgets,.phone.has-custom-wallpaper.locked-state:not(.passcode-mode) .status-bar{color:#382b35;text-shadow:0 1px 16px #ffffff50}
.phone.has-custom-wallpaper.locked-state:not(.passcode-mode) .lock-battery-track{background:#382b3526}
.phone.has-custom-wallpaper.locked-state:not(.passcode-mode) .lock-battery-track i{background:#382b35}
/* Longer final replies remain readable and scroll within compact phone screens. */
.native-reply-suggestions:has([data-reply="yes"]){display:grid;max-height:min(45svh,340px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.native-reply-suggestions:has([data-reply="yes"]) .choice{width:100%;text-align:left;line-height:1.4;white-space:normal;overflow-wrap:break-word}

/* Native iOS navigation bars with contextual labels */
.phone.in-app .app-screen>.app-nav{display:flex}
.phone.in-app:not(.chat-mode) .app-nav{height:54px;flex:0 0 54px;padding:0 max(18px,calc((100vw - 740px)/2));border:0;background:#ffffffed;align-items:center}
.phone.in-app:not(.chat-mode) #app-context,.phone.in-app:not(.chat-mode) #app-home{display:none}
.phone.in-app:not(.chat-mode) .back-button{color:#007aff;gap:4px;height:44px;min-height:44px;padding:0 4px;border-radius:0;background:transparent!important;box-shadow:none!important;backdrop-filter:none;-webkit-backdrop-filter:none;display:inline-flex;align-items:center;font-size:17px;font-weight:400;letter-spacing:-.4px}
.phone.in-app:not(.chat-mode) .back-button>svg{width:22px;height:22px;color:currentColor}
.phone.music-mode:not(.chat-mode) .back-button{color:#fa2d48}
