
.account-page{max-width:820px;margin:auto;padding:48px 28px 80px;color:var(--ink)}.account-page h1,.account-page h2{font-family:'Newsreader',Georgia,serif;font-weight:400;letter-spacing:-1px;margin:0}.account-page h1{font-size:48px;line-height:1.1}.account-page h2{font-size:30px}.account-page p,.account-dialog p{font-size:13px;line-height:1.7;color:var(--muted);margin:0}.header-actions{gap:8px}#accountMenu{position:relative;order:5}#accountMenu summary{list-style:none;cursor:pointer;width:40px;height:40px;min-height:40px;background:none;border-color:transparent;box-shadow:none;padding:10px}#accountMenu summary::-webkit-details-marker{display:none}.account-popover{position:absolute;z-index:18;right:0;top:50px;width:230px;border:1px solid color-mix(in srgb,var(--ink) 18%,transparent);background:var(--paper);border-radius:14px;padding:16px;box-shadow:0 10px 30px #463b2518}.account-popover span{display:block;font-size:11px;overflow-wrap:anywhere;color:var(--muted);margin-bottom:10px}.account-text{font:400 12px 'DM Sans',sans-serif;display:inline-flex;align-items:center;gap:8px;background:none;border:0;color:var(--ink);padding:10px 0;min-height:40px;box-shadow:none;cursor:pointer}.account-text:hover{text-decoration:underline;text-underline-offset:4px}.account-popover button{display:flex;width:100%;justify-content:flex-start}.account-dialog label{display:block;font-size:12px;margin:22px 0 9px}.account-dialog input{width:100%;padding:13px 0;border:0;border-bottom:1px solid color-mix(in srgb,var(--ink) 35%,transparent);border-radius:0;background:transparent;color:var(--ink);font:14px 'DM Sans',sans-serif}.account-dialog .account-small{font-size:11px;margin:18px 0;line-height:1.65}.google-button{width:auto;display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid color-mix(in srgb,var(--ink) 18%,transparent);color:var(--ink);background:#fffcf580;padding:13px;border-radius:999px;margin-top:26px;font:500 13px 'DM Sans',sans-serif;box-shadow:inset 0 -1px 1px #7a76551a,0 2px 5px #24301909}.google-button svg{width:19px;height:19px}.account-dialog-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px}#nameForm .send-btn{display:block;margin:20px auto 0}.account-notice{position:fixed;z-index:80;bottom:24px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 36px);padding:13px 18px;border:1px solid color-mix(in srgb,var(--ink) 20%,transparent);border-radius:12px;background:var(--paper);box-shadow:0 6px 24px #463b2518;font-size:12px;line-height:1.5}.account-notice[data-kind="error"]{border-color:#a66a4b80}body[data-account-view="mailboxes"] #customize,body[data-account-view="conversation"] #customize,body[data-account-view="drafts"] #customize{display:none}body[data-account-view="mailboxes"] #shareLetter,body[data-account-view="conversation"] #shareLetter,body[data-account-view="drafts"] #shareLetter{display:none}
.account-page{max-width:960px;margin:auto;padding:54px 30px}.page-intro{text-align:center}.page-intro p:last-child{margin-top:14px}.mailboxes{display:flex;flex-wrap:wrap;justify-content:center;gap:42px;padding:58px 20px}.mailbox-tile{width:116px;padding:0;border:0;background:none;box-shadow:none;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}.mailbox-tile:hover:not(:disabled){background:none;box-shadow:none}.mailbox-avatar{position:relative;display:grid;place-items:center;width:96px;height:96px;border-radius:50%;background:#e8dfcc;color:#53694f;font:36px 'Newsreader',Georgia,serif;border:1px solid #cdbfa850;box-shadow:inset 0 1px 0 #fff8,0 5px 16px #7564460c}.mailbox-name{font-size:14px;max-width:116px;overflow-wrap:anywhere}.mailbox-unread{position:absolute;right:3px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--accent);border:2px solid var(--paper)}.mailbox-tile:hover .mailbox-avatar{background:#dfd7c3}.mailbox-tile:focus-visible{border-radius:14px}body[data-account-view="conversation"]{background:var(--correspondence-canvas);--correspondence-width:850px;--correspondence-gutter:28px}.account-page.conversation{max-width:none;margin:auto;padding:0}.conversation-content{max-width:var(--correspondence-width,850px);margin:auto;padding:0 28px 70px}.conversation-heading{position:sticky;top:var(--header-height);background:var(--app-header);padding:14px 20px;border-radius:0 0 24px 24px;margin-bottom:0;z-index:9;border-bottom:1px solid var(--header-divider);display:flex;align-items:center;gap:12px 16px;flex-wrap:wrap}.person-heading{display:flex;gap:16px;align-items:center;flex:1}.person-heading .mailbox-avatar{width:48px;height:48px;font-size:23px;flex:none}.person-heading h1{font-size:36px;letter-spacing:-.8px}.person-heading p{font-size:12px;margin-top:4px}.conversation-letter{padding:30px 34px;margin:0 0 24px;background:#fcf6eb;border:1px solid #c6b69880;border-radius:8px;box-shadow:inset 0 1px 0 #fff8,0 4px 15px #75644608}.conversation-letter.is-sent{margin-left:52px;background:#f3eedf}.conversation-letter header{display:flex;align-items:center;justify-content:space-between;gap:14px}.conversation-letter header strong{font-size:12px;font-weight:500}.conversation-letter time{font-size:10px;color:var(--muted)}.letter-unfold .letter-body{font:27px/1.5 'Grape Nuts',cursive;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);margin:22px 0}.conversation-letter button{font-size:11px;min-height:36px;padding:8px 0;background:none;border:0;box-shadow:none;color:var(--accent)}.conversation-letter{background:var(--letter-paper,#fcf6eb);color:var(--letter-ink,var(--ink))}.letter-unfold .letter-body{font-family:var(--letter-font,'Grape Nuts',cursive);color:inherit;font-size:var(--size);line-height:var(--leading)}.conversation-letter.is-sent{background:var(--letter-paper,#fcf6eb)}.conversation-letter header strong{color:inherit}.letter-unfold .letter-greeting,.letter-unfold .letter-signature{font-family:var(--letter-font,'Grape Nuts',cursive);font-size:var(--size);line-height:1.5}.letter-unfold .letter-signature{margin-top:12px}.letter-unfold.is-ruled .letter-body{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(1lh - 1px),color-mix(in srgb,currentColor 14%,transparent) 1lh)}
@media(max-width:650px){.account-page{padding:30px 22px 60px}.account-page h1{font-size:42px}.mailboxes{gap:26px;padding:42px 0}.mailbox-tile{width:92px}.mailbox-avatar{width:72px;height:72px;font-size:30px}.mailbox-name{max-width:92px;font-size:13px}.conversation-content{padding:0 16px 60px}.conversation-heading{gap:12px;padding:14px 16px;border-radius:0 0 20px 20px;margin-bottom:0}.person-heading{gap:10px}.person-heading h1{font-size:30px}.person-heading .mailbox-avatar{width:38px;height:38px;font-size:20px}.conversation-letter{padding:24px 22px}.conversation-letter.is-sent{margin-left:16px}.conversation-letter header{align-items:flex-start}.conversation-heading .send-btn{padding:0 12px}.header-actions{gap:4px}#inbox{width:38px;min-height:38px;height:38px;padding:9px}#accountMenu summary{width:34px;min-height:34px;height:34px;padding:8px}.account-dialog .send-btn{padding:0 13px}}
@media(prefers-reduced-motion:reduce){.account-notice{transition:none}}

.account-text svg,.send-btn>svg{width:17px;height:17px;flex:none}.letter-unfold .letter-greeting{margin-top:24px}.letter-unfold .letter-signature{margin-bottom:18px}#homeWrite{margin-right:18px}body[data-account-view="mailboxes"] #compose,body[data-account-view="conversation"] #compose,body[data-account-view="drafts"] #compose,body[data-account-view="mailboxes"] #read,body[data-account-view="conversation"] #read,body[data-account-view="drafts"] #read{display:none!important}

body[data-account-ready="false"]:not([data-first-paint="paper"]) main{visibility:hidden}.mailbox-screen-actions{display:flex;justify-content:center;align-items:center;gap:22px;margin-top:8px}.mailbox-screen-actions #homeWrite{margin:0}

/* Account pages share a canvas independent of letter stationery. */
body:is([data-account-view="mailboxes"],[data-account-view="drafts"]){background:var(--correspondence-canvas)}
body:is([data-account-view="conversation"],[data-account-view="mailboxes"],[data-account-view="drafts"],[data-account-view="albums"]) .letter-sheet{background:var(--correspondence-canvas)}body:is([data-account-view="conversation"],[data-account-view="mailboxes"],[data-account-view="drafts"],[data-account-view="albums"]) .letter-sheet:before{content:"";background-image:var(--paper-grain);opacity:.22}


/* Saved Drafts uses whole-letter thumbnails; Scheduled retains folded cards. */
#draftScreen{max-width:1200px;padding:32px 30px 40px}
.draft-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:640px;margin:0 auto}
#draftsBack{display:grid;place-items:center;padding:0;justify-self:start}
#draftTitle{margin:0;font-size:36px;letter-spacing:-.6px;overflow-wrap:anywhere}
.draft-list{display:flex;flex-direction:column;align-items:flex-start;gap:16px;max-width:640px;margin:32px auto 0}
.folded-actions{display:flex;align-items:center;flex:none}.folded-actions:empty,.folded-caption:empty{display:none}.folded-actions .draft-delete{color:inherit;min-height:44px;padding:4px 6px;font:400 11px/1.4 'DM Sans',sans-serif}
@media(max-width:650px){#draftScreen{padding:30px 22px 60px}#draftTitle{font-size:30px}}

/* Folded correspondence, newest first, with the paper preserved when opened. */
.person-heading,.person-heading>div{min-width:0}.person-heading h1{font-size:26px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.person-heading .mailbox-avatar{width:40px;height:40px;font-size:22px}.conversation-heading{top:var(--header-height);scroll-margin-top:var(--header-height)}.conversation-heading .send-btn{flex-shrink:0}
#letterHistory{display:flex;flex-direction:column;gap:16px;align-items:flex-start;max-width:790px;margin:0 auto;padding:32px 28px 0}.conversation-content>#conversationEmpty,.conversation-content>#earlier{margin:24px max(28px,calc((100% - 734px)/2))}
.letter-bubble,.conversation-letter,.conversation-letter.is-sent{width:90%;min-width:0;max-width:640px;padding:0;margin:0;border:0;border-radius:0;--bubble-radius:22px 22px 22px 6px;box-shadow:none;background:transparent;color:var(--ui);--bubble-paper:var(--app-header);--bubble-ink:var(--ui)}
.letter-bubble.is-sent{align-self:flex-end;--bubble-radius:22px 22px 6px 22px;--bubble-paper:var(--accent);--bubble-ink:#fff}
.letter-bubble>summary{display:flex;align-items:center;gap:14px;min-height:74px;padding:16px 20px;list-style:none;cursor:pointer;border-radius:var(--bubble-radius);background:var(--bubble-paper);color:var(--bubble-ink);scroll-margin-top:calc(var(--header-height) + 110px)}.letter-bubble>summary::-webkit-details-marker{display:none}.folded-envelope,.folded-chevron{flex:none;width:20px;height:20px;opacity:.7}.folded-envelope svg,.folded-chevron svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.folded-chevron{margin-left:auto;width:16px;height:16px}.letter-bubble[open]>summary>.folded-chevron{transform:rotate(180deg)}.folded-heading{display:grid;gap:5px;min-width:0;flex:1}.folded-heading strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.folded-caption{display:flex;flex-wrap:wrap;gap:5px 12px;align-items:center;font-size:10px}.folded-caption time{color:inherit;opacity:.7}.folded-state{opacity:.7}.folded-state.is-unread{opacity:1;color:var(--accent);font-weight:500}.letter-unfold{position:relative;isolation:isolate;padding:24px 24px 22px;margin:12px 0 0;border-radius:5px;box-shadow:0 0 0 1px #36403912,0 6px 18px #36403914;overflow:hidden;background:var(--letter-paper);color:var(--letter-ink)}.letter-unfold .letter-greeting{display:block;margin-top:16px}.letter-unfold .letter-signature{display:block;margin-top:6px;margin-bottom:16px}.letter-unfold .letter-date{display:block;font-family:var(--letter-font,'Caveat',cursive);font-weight:400;font-size:calc(var(--letter-size,32px)*var(--date-scale,.62));line-height:1.4;color:var(--letter-ink);opacity:.8;letter-spacing:normal;margin:22px 0 10px}.letter-date:empty{display:none}.letter-unfold .letter-body{display:block;margin:20px 0}
@media(max-width:650px){#letterHistory{padding:24px 6px 0}.person-heading h1{font-size:24px}.person-heading .mailbox-avatar{width:36px;height:36px;font-size:20px}.letter-bubble>summary{padding:14px 12px;gap:10px}.letter-bubble,.conversation-letter,.conversation-letter.is-sent{width:calc(100% - 12px)}.letter-unfold{padding:18px 16px 20px;margin:12px 0 0}}

/* Saved letters fill the list column and use even corners instead of a chat tail. */

/* Hand-cut paper badges; Doodle Icons artwork stays decorative beside real names. */
.mailbox-avatar{background:none;border:0;box-shadow:none;color:var(--ink);isolation:isolate}
.mailbox-tile:hover .mailbox-avatar{background:none}
.paper-person{display:grid;place-items:center;position:relative;width:100%;height:100%;background:var(--person-paper,#f2e8d1);border:1px solid #8c76582a;border-radius:50%;box-shadow:inset 0 1px 0 #fff9,1px 3px 0 #8b745316,0 5px 12px #6e56340b;transform:rotate(var(--person-tilt,0deg));transition:transform .15s,box-shadow .15s;overflow:hidden;color:var(--ink)}
.paper-person:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.3;mix-blend-mode:multiply;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.3'/%3E%3C/svg%3E")}
.paper-person svg{display:block;width:52%;height:52%;position:relative;opacity:.85;overflow:visible}
.mailbox-tile:hover .paper-icon-avatar > .paper-person{transform:translateY(-2px) rotate(var(--person-tilt,0deg));box-shadow:inset 0 1px 0 #fff9,1px 4px 0 #8b745318,0 7px 16px #6e563411}
.mailbox-unread{pointer-events:none;z-index:2;width:12px;height:12px;right:auto;left:85.355%;top:14.645%;transform:translate(-50%,-50%)}
@media(prefers-reduced-motion:reduce){.paper-person{transition:none}.mailbox-tile:hover .paper-icon-avatar > .paper-person{transform:rotate(var(--person-tilt,0deg))}}
@media(forced-colors:active){.paper-person{background:Canvas;color:CanvasText;border:1px solid CanvasText;box-shadow:none}.paper-person:before{display:none}}

.paper-icon-control{display:inline-grid;position:relative;flex:none}
.paper-icon-avatar{border:0;padding:0;background:none;overflow:visible}
button.paper-icon-avatar{cursor:pointer}
.paper-icon-trigger{padding:0;min-height:0;cursor:pointer}
.paper-icon-edit,.album-cover-remove{position:absolute;left:85.355%;top:85.355%;transform:translate(-50%,-50%);display:grid;place-items:center;width:20px;height:20px;border-radius:50%;border:1px solid color-mix(in srgb,var(--ink) 16%,transparent);background:var(--paper);color:var(--ink);box-shadow:0 1px 3px #463d2b10}
.paper-icon-edit svg,.album-cover-remove svg{display:block;width:12px;height:12px;opacity:.75}
@media(hover:hover){.paper-icon-edit{opacity:0}.paper-icon-control:hover .paper-icon-edit,.paper-icon-avatar:focus-visible + .paper-icon-edit,.paper-icon-trigger:focus-visible,.paper-icon-trigger[aria-expanded=true]{opacity:1}}
.mailbox-name{display:block;min-height:28px;padding:0 6px;border:0;border-radius:6px;background:none;color:inherit;line-height:1.5;text-align:center;cursor:pointer}
.mailbox-name:hover{background:none;text-decoration:underline;text-underline-offset:4px}
.person-heading #conversationAvatar{display:inline-flex;flex:none}
.paper-icon-menu{position:fixed;inset:auto;margin:0;width:280px;max-width:calc(100vw - 24px);max-height:min(188px,calc(100dvh - 24px));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:8px;border:1px solid color-mix(in srgb,var(--ink) 17%,transparent);border-radius:4px;background:var(--paper);color:var(--ink);box-shadow:0 3px 9px #463d2b16;font:12px/1.4 'DM Sans',sans-serif}
.paper-icon-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}
.paper-icon-choice{display:grid;place-items:center;min-width:0;min-height:44px;aspect-ratio:1;padding:5px;border:1.5px solid transparent;border-radius:50%;background:none;color:var(--ink);cursor:pointer}
.paper-icon-choice .paper-person{width:32px;height:32px;background:none;border:0;box-shadow:none;transform:none}
.paper-icon-choice .paper-person svg{width:62%;height:62%}
.paper-icon-choice:hover{background:color-mix(in srgb,var(--ink) 6%,var(--paper))}
.paper-icon-choice[aria-pressed=true]{border-color:var(--ink);background:none}
.paper-icon-status{display:block;font-size:11px}.paper-icon-status:empty{display:none}

#accountMenu .account-avatar-summary{display:grid;grid-template:1fr / 1fr;place-items:center;padding:0;width:44px;height:44px;min-height:44px}
.settings-icon-field{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0 8px;font-size:12px}
.account-own-icon .mailbox-avatar{width:56px;height:56px}
.account-own-icon .paper-icon-edit{opacity:1}
.onboarding-icon-question{display:block;font-size:12px;margin:22px 0 9px}
.onboarding-own-icon{display:flex;justify-content:center;margin:12px 0 8px}
.onboarding-own-icon .mailbox-avatar{width:72px;height:72px}
#onboardingIcon .onboarding-icon-empty{color:#86897f}
#nameForm .required-mark{color:var(--error)}
#nameForm label:has(+input[aria-invalid=true]){color:var(--ui)}
#nameForm .send-btn[aria-disabled=true]{background:#d9d5cd;color:#686c65;transition:none}
.onboarding-icon-empty svg{width:28px;height:28px;opacity:1}
/* Make the whole onboarding icon the chooser target, including the empty plus. */
.onboarding-own-icon .paper-icon-control>.paper-icon-trigger.paper-icon-edit{inset:0;width:72px;height:72px;min-width:72px;min-height:72px;padding:0;transform:none;border:0;box-shadow:none;background:transparent}
.onboarding-own-icon .paper-icon-control>.paper-icon-trigger.paper-icon-edit:hover{background:color-mix(in srgb,var(--ui) 6%,transparent)}
.onboarding-own-icon .paper-icon-control>.paper-icon-trigger.paper-icon-edit:before{content:none}
.onboarding-own-icon .paper-icon-control>.paper-icon-trigger.paper-icon-edit>svg{display:none}
.account-dialog .input-helper{color:var(--error)}
#signatureName::placeholder,#signatureNameSecondary::placeholder{font:400 14px/24px 'DM Sans',sans-serif;color:#757575;opacity:1}
.birthday-trigger[data-empty=true]{color:#757575}

.account-dialog input:focus-visible{outline:0;border-bottom-color:var(--accent);box-shadow:0 1px 0 var(--accent)}

/* Person composition uses the original continuous paper surface. */
.person-compose-back{display:flex}
body[data-person-compose="true"] #replyShell{display:none}
#readerBack[hidden],#composeBack[hidden],#backToPeople[hidden],#composeHistoryButton[hidden]{display:none}
#readerBack svg,#composeBack svg,#backToPeople svg,#composeHistoryButton svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#readerBack,#composeBack,#backToPeople,#composeHistoryButton{position:relative;padding:0;isolation:isolate;background:transparent;text-decoration:none}
#readerBack:before,#composeBack:before,#backToPeople:before,#composeHistoryButton:before{content:"";position:absolute;inset:6px;border-radius:50%;background:transparent;z-index:-1;transition:background-color 150ms linear}
#readerBack:hover,#composeBack:hover,#backToPeople:hover,#composeHistoryButton:hover{background:transparent}
#readerBack:hover:before,#composeBack:hover:before,#backToPeople:hover:before,#composeHistoryButton:hover:before{background:color-mix(in srgb,var(--ui) 8%,var(--paper))}
#readerBack:focus-visible,#composeBack:focus-visible,#backToPeople:focus-visible,#composeHistoryButton:focus-visible{outline:none}
.account-dialog.compose-history-dialog{max-width:680px}
#composeHistory,#composePhoneHistory{display:flex;flex-direction:column;gap:16px}
.compose-history-empty{margin:0;color:var(--muted);font:400 14px/1.6 'DM Sans',sans-serif;overflow-wrap:anywhere}
/* Wide screens keep history in the paper margin without moving the editor. */
.compose-history{position:fixed;z-index:1;right:calc(50% + 352px);top:var(--compose-history-top,calc(var(--header-height) + 84px));width:min(360px,calc(50% - 400px));max-height:calc(100dvh - var(--compose-history-top,calc(var(--header-height) + 84px)) - 24px);overflow-y:auto;overscroll-behavior:contain;padding:0 2px 18px}
.compose-history[hidden]{display:none}
.compose-history h2{font:400 13px/20px 'DM Sans',sans-serif;margin:0 0 16px;color:var(--muted)}
.compose-history .conversation-letter{width:calc(100% - 12px);max-width:none}
.compose-history .letter-bubble>summary{padding:12px;gap:8px;min-height:70px}
.compose-history .folded-envelope{width:16px;height:16px}
.compose-history .folded-caption{font-size:10px;gap:4px}
.compose-history .letter-unfold{padding:16px 14px}
@media(max-width:1279px){.compose-history{display:none}}
.account-dialog.compose-history-dialog{background:var(--correspondence-canvas)}
/* Back shares the native toolbar's vertical alignment and 44px target. */
.letter-tools>.correspondence-back{width:44px;min-width:44px;height:44px;min-height:44px;margin-right:auto;padding:0}
#readerBack.correspondence-back svg,#composeBack.correspondence-back svg,#backToPeople.correspondence-back svg{width:20px;height:20px}
/* Keep avatar picker badges small; override the shared 44px icon-button minimum. */
.paper-icon-control>.paper-icon-trigger.paper-icon-edit,.paper-icon-control>.paper-icon-trigger.album-cover-remove{width:27px;height:27px;min-width:27px;min-height:27px;padding:0}
.paper-icon-control>.paper-icon-trigger.paper-icon-edit svg,.paper-icon-control>.paper-icon-trigger.album-cover-remove svg{width:15px;height:15px}


/* The correspondence panel owns Back; writing keeps its existing toolbar slot. */
body:is([data-person-compose="true"],[data-album-compose="true"]) #composeBack{margin-right:0;margin-left:max(0px,calc(50% - 397px - 8px - 44px))}
body[data-account-view="conversation"] main>.letter-tools{display:none}
.conversation-bar{position:sticky;top:var(--header-height);z-index:9;box-sizing:border-box;width:100%;max-width:var(--correspondence-width,850px);margin-inline:auto;padding-inline:28px}
.conversation-bar #backToPeople{flex:none;width:44px;min-width:44px;height:44px;min-height:44px}
.conversation-bar .conversation-heading{position:relative;top:auto;min-width:0;margin-left:0;flex-wrap:nowrap;padding-left:8px;column-gap:8px}
.conversation-bar .person-heading{gap:8px}
@media(max-width:650px){.conversation-bar{padding-inline:16px}}
#backToPeople svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.account-page h1.people-index-title{margin:0;font-size:36px;line-height:44px;letter-spacing:-.6px}
@media(max-width:650px){.account-page h1.people-index-title{font-size:30px}}
/* Available before sign-in; preference belongs to this device. */
.locale-setting{margin:0 0 24px}
.account-dialog .locale-setting>.palette-label{margin:0 0 8px}
.settings-language-menu:popover-open{opacity:1;transform:translateY(0)}
#settingsForm .settings-icon-field{margin:0 0 8px}
#settingsForm>label,#settingsSignatureSecondaryField>label{margin:16px 0 8px}
:lang(ko) .account-popover{min-width:240px}
:lang(ko) .account-dialog p,:lang(ko) .sharing-note{word-break:keep-all;overflow-wrap:anywhere}
/* App-owned Korean copy keeps words together; authored letters keep native wrapping. */
:lang(ko) .account-dialog h2,:lang(ko) .page-intro h1,:lang(ko) .page-intro p,
:lang(ko) .feedback-text,
:lang(ko) .sharing-modal h2,:lang(ko) .input-helper{word-break:keep-all;overflow-wrap:anywhere}

.email-choices{border:0;padding:0;margin:20px 0;min-width:0}.email-choices legend{margin-bottom:12px}.email-choices label{display:flex;align-items:flex-start;gap:10px;margin:12px 0;font-size:14px;line-height:1.5}
.account-dialog fieldset.email-choices>label{align-items:center;margin:0 0 8px}
.account-dialog fieldset.email-choices>label:last-child{margin-bottom:0}
#settingsForm>fieldset.email-choices{margin:24px 0 0}
@media(max-width:959px),(pointer:coarse){.account-dialog fieldset.email-choices>label{margin:0}}
.email-choices input[type=checkbox]{margin:2px 0 0}
.account-dialog fieldset.email-choices input[type=checkbox]{margin:0}

.account-dialog .email-connection{font-size:11px;line-height:1.65;margin:0 0 12px;overflow-wrap:anywhere}
.account-popover .account-policy-links{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:6px;padding:4px 0 0;font:400 11px/18px "DM Sans",sans-serif;color:var(--muted)}
.account-policy-links a{display:inline-flex;align-items:center;flex-shrink:0;white-space:nowrap;min-height:24px;color:inherit;text-decoration:none;text-underline-offset:3px}
.account-policy-links .account-instagram{justify-content:flex-start;width:44px;min-height:44px;margin-right:auto;border-radius:50%;flex-shrink:0}
.account-policy-links [data-i18n]{margin:0;font:inherit;color:inherit}
.account-instagram svg{width:18px;height:18px}
.account-dialog a{color:inherit;text-decoration:none;text-underline-offset:3px}
.account-policy-links a:hover,.account-policy-links a:focus-visible,.account-dialog a:hover,.account-dialog a:focus-visible{text-decoration:underline}
.auth-dialog #authForm{margin-top:28px}
.auth-dialog-actions{gap:12px 20px}
.auth-dialog-actions .google-button{margin:0}
@media(max-width:480px){.auth-dialog-actions{flex-direction:column;align-items:stretch;gap:8px}.auth-dialog-actions button{width:100%;justify-content:center}}
/* Scheduling is a plain text action beside the existing Send button. */
.delivery-timing{text-align:left}
.schedule-inputs{display:flex;gap:16px;flex-wrap:wrap;margin-top:14px}.schedule-date-field,.schedule-time-field{display:flex;flex:1;min-width:120px;flex-direction:column}
.schedule-inputs .schedule-date-field{flex:1.6}
#scheduledSection{max-width:none;margin:24px 0 0}
#scheduledList{max-width:none;margin-top:0}
.schedule-group>summary{min-height:44px;padding:12px 0;cursor:pointer;font:400 13px/20px 'DM Sans',sans-serif;color:var(--ui)}
.schedule-group{display:flex;flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:28px;min-width:0;width:100%}
.schedule-group h3{margin:0;font:500 12px/20px 'DM Sans',sans-serif;color:var(--muted)}
.schedule-summary,.schedule-timezone{overflow-wrap:anywhere}
#scheduleSummary{margin:20px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}
#scheduleTimezone{margin:12px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}

/* Both sign-in methods use the same preserved draft and verified identity. */
#authDialog{height:320px;padding-bottom:24px}
#authDialog[data-embedded]{height:396px}#authDialog[data-kakao]{height:376px}#authDialog[data-embedded][data-kakao]{height:452px}.kakao-button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;border:0;border-radius:999px;background:#fee500;color:#000000d9;box-shadow:none;transition:background-color var(--motion-color) linear}.kakao-button:hover{background:#f2d900}.kakao-button:active{background:#e6ce00}.kakao-button:disabled{background:#d9d5cd;color:#686c65;transition:none}.kakao-button:disabled path{fill:#686c65}.kakao-button svg{width:19px;height:19px}.kakao-button[hidden]{display:none}
#authDialog[open]{display:flex;flex-direction:column}
#authDialog>.account-dialog-actions{padding-inline:var(--dialog-inset);flex-shrink:0;margin-top:12px;justify-content:flex-end;flex-wrap:nowrap}
#authDialog>.account-dialog-actions .account-text{font-size:12px;white-space:nowrap}
#authDialog #continueWriting{margin-left:auto}
#authMethods,#emailAuthMethods{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-inline:var(--dialog-inset)}
#authMethods{display:grid;align-content:safe center;gap:12px}
#emailAuthMethods{display:flex;flex-direction:column}
#authMethods[hidden],#emailAuthMethods[hidden]{display:none}
#authMethods .auth-method-button{width:100%;margin:0;padding:13px;font:500 13px 'DM Sans',sans-serif}
#emailButton{background:#e8dfcc;color:var(--ui)}
#emailButton:hover{background:#dfd7c3}
#emailButton:active{background:#d6ccb6}
#emailButton:disabled{background:#d9d5cd;color:#686c65}
#authBack,#emailCodeButton,#verifyEmailButton{display:none}
#authDialog #authBack{font-size:13px;min-height:44px;padding:0 10px;text-decoration:none}
#authDialog:has(#emailAuthMethods:not([hidden])) #authBack{display:inline-flex}
#authDialog:has(#emailAuthMethods:not([hidden])) #continueWriting{display:none}
#authDialog:has(#emailAuthMethods:not([hidden]) #emailVerifyForm[hidden]) #emailCodeButton,
#authDialog:has(#emailAuthMethods:not([hidden]) #emailVerifyForm:not([hidden])) #verifyEmailButton{display:inline-flex}
#emailAuthForm,#emailVerifyForm{display:grid;gap:6px;flex-shrink:0;margin-block:auto}
#emailAuthForm label,#emailVerifyForm label{margin:0}
#authDialog input{height:44px;min-height:44px;padding:11px 0}
#emailVerifyForm[hidden]{display:none}
#emailAuthMethods:has(#emailVerifyForm:not([hidden])) #emailAuthForm{display:none}
#emailCodeNotice{font-size:12px;line-height:1.5;margin:0;overflow-wrap:anywhere}
#authError{order:-1;font-size:12px;line-height:1.5;margin:0 0 6px}
#emailAuthMethods:has(#authError:not([hidden])) #emailCodeNotice{display:none}
.email-code-entry{--code-gap:12px;--code-step:44px;position:relative;width:100%;max-width:288px;margin-inline:auto;height:44px;overflow:hidden}
.email-code-digits{position:relative;z-index:2;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--code-gap);height:100%;pointer-events:none}
.email-code-digits [data-code-digit]{display:grid;place-items:center;border-bottom:1px solid var(--input-line);font:400 24px/1 'DM Sans',sans-serif;font-variant-numeric:tabular-nums;color:var(--ui)}
.email-code-entry:hover [data-code-digit]{border-bottom-color:var(--muted)}
.email-code-digits [data-code-digit][data-active]{border-bottom-color:var(--accent);color:var(--accent)}
#authDialog #authCode{position:absolute;inset:0;z-index:1;width:calc(100% + var(--code-step));height:100%;min-height:44px;padding:0 0 0 calc((var(--code-step) - var(--code-gap) - 1ch)/2);border:0!important;background:transparent;color:transparent;-webkit-text-fill-color:transparent;caret-color:transparent;font:400 24px/1 'DM Sans',sans-serif;font-variant-numeric:tabular-nums;letter-spacing:calc(var(--code-step) - 1ch);box-shadow:none}
#authCode::selection{background:transparent;color:transparent}
#emailVerifyForm label:has(+.email-code-entry:focus-within){color:var(--accent)}
#emailAuthMethods:has(#authError:not([hidden])) [data-code-digit]{border-bottom-color:var(--error)}
#authDialog:has(#emailAuthMethods:not([hidden]) #emailVerifyForm:not([hidden])){height:fit-content}
#authDialog:has(#emailAuthMethods:not([hidden]) #emailVerifyForm:not([hidden]))>.dialog-header{padding-bottom:12px}
#authDialog:has(#emailAuthMethods:not([hidden]) #emailVerifyForm:not([hidden]))>.account-dialog-actions{margin-top:24px}
#emailAuthMethods:has(#emailVerifyForm:not([hidden])){flex:0 1 auto}
#emailVerifyForm{margin-block:0;gap:16px}
#emailAuthMethods:has(#emailVerifyForm:not([hidden])) #authError{margin-bottom:16px}
#authError{color:var(--accent)}
#embeddedNotice{margin:0;font-size:12px;line-height:1.5;color:var(--ink)}
#authForm[hidden]{display:none}

#invitationGate{padding:32px 24px 64px;text-align:center}.invitation-envelope{display:block;width:min(100%,560px);height:auto;margin:0 auto}#invitationGate h1{font-size:32px;margin:18px 0 12px;letter-spacing:-.4px}#invitationGate p{line-height:1.7;margin:0 auto 24px;max-width:360px}@media(max-width:650px){#invitationGate{padding-top:24px}#invitationGate h1{font-size:28px}}body[data-account-view="invitation"] :is(#compose,#read){display:none!important}
body[data-account-view="invitation"] .letter-tools{display:none}
/* Center the name beneath its badge; the pencil sits outside the name's layout. */
.mailbox-name-row{position:relative;display:flex;align-items:center;justify-content:center;max-width:100%}.mailbox-name-row:has(.friend-name-edit){max-width:calc(100% - 28px)}.mailbox-name-row .mailbox-name{display:flex;align-items:center;justify-content:center;min-width:0;padding:0 2px}.mailbox-name-row .friend-name-edit{position:absolute;inset-inline-start:100%;top:50%;transform:translateY(-50%);margin-inline-start:0;display:grid;place-items:center;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;background:none;color:var(--muted)}.friend-name-edit .icon{width:12px;height:12px;justify-self:start;margin-inline-start:2px}.friend-name-edit:hover{color:var(--accent)}.friend-name-actions{display:flex;justify-content:flex-end;align-items:center;gap:22px;margin-top:24px}
.person-heading h1{white-space:normal;overflow-wrap:anywhere}

.conversation-name-edit{display:flex;align-items:center;gap:8px;max-width:100%;font:inherit;letter-spacing:inherit;line-height:inherit;text-align:left;color:inherit;background:none;border:0;border-radius:4px;padding:0;min-height:44px;box-shadow:none;cursor:pointer}.conversation-name-edit:hover{background:none;box-shadow:none}.conversation-name-edit svg{display:block;flex:none;width:12px;height:12px;fill:none;stroke:var(--muted);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.conversation-name-edit svg{opacity:0}.conversation-name-edit:hover svg,.conversation-name-edit:focus-visible svg{opacity:1}.conversation-name-edit:disabled{opacity:1;cursor:default}.conversation-name-edit:disabled svg{display:none}.write-label-short{display:none}
@media(max-width:650px){.write-label-wide{display:none}.write-label-short{display:inline}#conversationReply svg,#homeWrite svg{display:none}}

/* Center the name control without an inline baseline gap. Newsreader’s visible
   glyphs sit slightly above its font box; align them optically with the icons. */
.person-heading h1{display:flex;align-items:center}.conversation-name-edit>span{min-width:0;position:relative;top:2px}

/* Our localized selection status replaces the picker's English-only announcement. */
.schedule-date-control .react-datepicker__input-container > .react-datepicker__aria-live,
.schedule-time-control .react-datepicker__input-container > .react-datepicker__aria-live{display:none}

/* Khushmeen doodles on a tilted ink stamp. */
.reader-reactions{max-width:600px;margin:20px auto 0;text-align:left}
.letter-reactions{--reaction-stamp:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2052%2056%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22ink%22%20x%3D%22-10%25%22%20y%3D%22-10%25%22%20width%3D%22120%25%22%20height%3D%22120%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.72%22%20numOctaves%3D%223%22%20seed%3D%227%22%20result%3D%22noise%22%2F%3E%3CfeColorMatrix%20in%3D%22noise%22%20type%3D%22matrix%22%20values%3D%220%200%200%200%201%200%200%200%200%201%200%200%200%200%201%203%200%200%200%20-.7%22%20result%3D%22grain%22%2F%3E%3CfeComposite%20in%3D%22SourceGraphic%22%20in2%3D%22grain%22%20operator%3D%22in%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M2.1%202.4%2049.6%201.9%2050%2053.8%202.4%2054.1Z%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22%20filter%3D%22url%28%23ink%29%22%2F%3E%3C%2Fsvg%3E");font:13px/1.5 'DM Sans',sans-serif;color:var(--letter-ink,var(--ui,#364039));letter-spacing:normal}
.reaction-controls{display:flex;justify-content:flex-end;align-items:center;gap:14px}
.letter-reactions :is(.reaction-trigger,.reaction-received){position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:52px;height:56px;min-height:56px;padding:0;border:0;border-radius:0;background:none;color:inherit;font:inherit;cursor:pointer;transform:rotate(-5deg)}
:is(.reaction-trigger,.reaction-received)::before{content:'';position:absolute;inset:0;opacity:.78;background:currentColor;mask:var(--reaction-stamp) center/100% 100% no-repeat;pointer-events:none}
.reaction-trigger:hover::before{opacity:1}
.letter-reactions .reaction-trigger:disabled{cursor:default;opacity:.5}
:is(.reaction-trigger,.reaction-received)>svg{display:block;width:26px;height:26px;flex:none}
.reaction-trigger>svg.reaction-add{width:24px;height:24px;opacity:.55}
.reaction-history-mark{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.reaction-history-mark[hidden]{display:none}
.reaction-history-mark{flex:none;color:inherit}
.reaction-chip{display:inline-flex;align-items:center;justify-content:center;color:inherit}
.reaction-chip>svg{display:block;width:24px;height:24px}
.letter-reactions .reaction-retry{min-height:44px;padding:10px 0;font:400 13px 'DM Sans',sans-serif;color:inherit}
.reaction-status{display:block;margin-top:6px;font-size:12px;color:var(--muted,#4a5248)}
.reaction-status:empty{display:none}
.reaction-status[data-error="true"]{color:#933d3b}
.reaction-unavailable{font:13px/1.6 'DM Sans',sans-serif;color:var(--muted,#4a5248)}
.reaction-picker{position:fixed;inset:auto;margin:0;box-sizing:border-box;width:264px;max-width:calc(100vw - 16px);padding:12px;gap:4px;border:1px solid #d2cec5;border-radius:8px;background:#eeeae2;box-shadow:0 4px 16px #36403914;color:#364039;font:13px/1.5 'DM Sans',sans-serif}
.reaction-picker:popover-open{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.letter-reactions .reaction-choice{display:flex;align-items:center;justify-content:center;min-width:0;width:100%;height:44px;min-height:44px;border:0;border-radius:4px;padding:0;background:transparent;color:inherit;cursor:pointer}
.letter-reactions .reaction-choice svg{display:block;width:28px;height:28px}
.letter-reactions .reaction-choice:hover,.letter-reactions .reaction-choice[aria-pressed="true"]{background:#dedad2}
.letter-unfold>.letter-reactions{margin-top:20px}
.reader-actions>.reader-reactions{width:100%;margin-block:0}
.reaction-hint{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#read .reader-actions:has(.reader-reactions:not([hidden])){display:flex}

.letter-reactions .reaction-received{cursor:default}

/* Albums share the inbox's quiet navigation and canvas. */
body[data-account-view="albums"]{background:var(--correspondence-canvas)}
body[data-account-view="albums"] .letter-tools{display:none}
/* Index lists grow from one shared row to the viewport's lower action limit. */
#peopleScreen:not([hidden]){--collection-row-height:184px;display:flex;flex-direction:column;width:100%;height:calc(var(--workspace-height,100dvh) - var(--header-height));box-sizing:border-box;margin:0 auto;padding-bottom:calc(48px + env(safe-area-inset-bottom,0px))}
#peopleScreen>.page-intro{flex:none;margin-bottom:24px}
#peopleContent{display:flex;flex-direction:column;flex:1;min-height:0}
#peopleContent>:is(#mailboxScreen,#albumIndex,#groupsPrototype),#peopleContent .gp-index{display:flex;flex-direction:column;flex:0 1 auto;min-height:0;max-height:100%;width:100%}
#peopleContent :is(#mailboxes,#albumList,.gp-group-grid){flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;align-items:flex-start;align-content:flex-start;box-sizing:border-box;padding-block:8px;scroll-padding-block:8px;scrollbar-gutter:stable both-edges}
#peopleContent :is(#albumList,.gp-group-grid){width:100%;padding-inline:6px}
#peopleContent :is(#mailboxes,#albumList,.gp-group-grid)>:is(.mailbox-tile,.hp-album,.collection-empty){min-height:calc(var(--collection-row-height) - 16px)}
#peopleContent .section-index-actions{flex:none;margin-top:24px}
#mailboxes{padding-inline:20px}
/* Every contained index uses the same persistent scrollbar treatment. */
@supports selector(::-webkit-scrollbar){#peopleContent :is(#mailboxes,#albumList,.gp-group-grid){scrollbar-width:auto;scrollbar-color:auto}#peopleContent :is(#mailboxes,#albumList,.gp-group-grid)::-webkit-scrollbar{width:8px}#peopleContent :is(#mailboxes,#albumList,.gp-group-grid)::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--ui) 45%,transparent);border:2px solid transparent;border-radius:999px;background-clip:padding-box}}
@media(max-width:760px){#peopleScreen:not([hidden]){--collection-row-height:168px}}
@media(max-width:650px){#mailboxes{padding-inline:0}}
@media(max-height:480px){#peopleScreen:not([hidden]){padding-top:16px;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}#peopleScreen>.page-intro{margin-bottom:8px}#peopleContent .section-index-actions{margin-top:12px}}
.album-screen #albumGateTitle{font-size:31px;line-height:1.2;letter-spacing:-.6px;overflow-wrap:anywhere}
.album-avatar{border-radius:20px;background:none;box-shadow:none}.album-photo{display:block;width:100%;height:100%;overflow:hidden;border-radius:20px;background:var(--hover);border:1px solid #8c76582a;box-shadow:inset 0 1px 0 #fff9,1px 3px 0 #8b745316,0 5px 12px #6e56340b}.album-photo img{display:block;width:100%;height:100%;object-fit:cover}.mailbox-tile:hover .album-avatar{background:none}
.album-letters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 20px;margin-top:36px}
.album-letter{display:flex;min-width:0;flex-direction:column;align-items:center;color:var(--ui);text-decoration:none;text-align:center;gap:6px;padding:8px 0;min-height:44px}.album-letter img{width:min(100%,180px);height:auto;aspect-ratio:3/2;object-fit:contain}.album-letter-name{font:400 20px/1.3 'Newsreader',Georgia,serif;overflow-wrap:anywhere}.album-empty{grid-column:1/-1;padding:28px 0}.album-letters:empty{display:none}
#albumGate{max-width:440px;margin:60px auto;text-align:center}#albumGate p{margin:16px 0 24px}.album-send-review{max-width:440px;text-align:center;margin:0 auto;display:grid;justify-items:center;gap:16px}.album-send-review .sharing-note{font:400 13px/1.7 'DM Sans',sans-serif;color:var(--muted);margin:0}.album-send-review .sharing-note:empty{display:none}
.album-send-destination{max-width:100%;min-width:0;overflow-wrap:anywhere}
@media(max-width:650px){.album-photo{border-radius:16px}.album-letters{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}#albumGate{margin-top:40px}}


/* Album postboxes use the correspondent header, column and sticky behavior. */
.album-screen:has(>#albumPostbox:not([hidden])){max-width:none;padding:0}
#albumPostbox .conversation-bar #albumBack{flex:none;width:44px;min-width:44px;height:44px;min-height:44px}
#albumPostbox .person-heading{gap:16px}
#albumPostbox .person-heading .album-avatar{width:80px;height:80px;border:0;background:none;box-shadow:none}
#albumPostbox .person-heading .album-photo{border-radius:16px}
@media(max-width:650px){#albumPostbox .person-heading .album-avatar{width:64px;height:64px}#albumPostbox .person-heading .album-photo{border-radius:12px}}
#albumDescription{white-space:pre-wrap;overflow-wrap:anywhere}
.album-postbox-content{padding-top:24px}
#albumDetailsDialog textarea,#createAlbumDialog textarea,#gpDialog #gpDescription{display:block;width:100%;resize:none;overflow:hidden;min-height:0;padding:12px 0;border:0;border-bottom:1px solid color-mix(in srgb,var(--ink) 35%,transparent);border-radius:0;background:transparent;color:var(--ui);font:16px/1.5 'DM Sans',sans-serif}
#albumDetailsDialog textarea:focus,#createAlbumDialog textarea:focus,#gpDialog #gpDescription:focus{outline:none;border-bottom-color:var(--accent)}

/* The same About-page question papers, shared by every album role. */
.album-note-gallery{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:40px 32px;margin-top:12px;padding:8px 4px 16px}
.album-note-gallery[data-packed=true]{grid-auto-rows:1px;grid-auto-flow:dense;row-gap:0}
.album-note{--note-tilt:-2.2deg;--note-offset:0px;position:relative;isolation:isolate;transform:translateY(var(--note-offset)) rotate(var(--note-tilt));transform-origin:50% 30%;align-items:stretch;gap:16px;text-align:left;padding:30px 32px 34px;background:#e0ecf4;border:1px solid #4b514b12;box-shadow:0 2px 0 #ddd7c9,0 10px 22px #4b514b12}
.album-note:nth-child(8n+2){background:#f1ded4;--note-tilt:1.6deg;--note-offset:10px}.album-note:nth-child(8n+3){background:#ede4cd;--note-tilt:-.8deg;--note-offset:4px}.album-note:nth-child(8n+4){background:#e1e8dc;--note-tilt:2.4deg;--note-offset:8px}.album-note:nth-child(8n+5){background:#e8e0ea;--note-tilt:-1.6deg;--note-offset:2px}.album-note:nth-child(8n+6){background:#f0e9dc;--note-tilt:.8deg;--note-offset:12px}.album-note:nth-child(8n+7){background:#e0e9e5;--note-tilt:-2deg;--note-offset:6px}.album-note:nth-child(8n+8){background:#e8ebe3;--note-tilt:1.2deg;--note-offset:0px}
.album-note::before{content:'';position:absolute;inset:0;z-index:-1;opacity:.9;pointer-events:none;mix-blend-mode:multiply;background-image: repeating-linear-gradient(112deg, transparent 0 3px, #4b514b08 4px, transparent 5px 9px), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");}
.album-note>*{position:relative}.album-note .album-note-title{margin:0;font:400 27px/1.15 'Newsreader',Georgia,serif;overflow-wrap:anywhere}
.album-note .album-note-preview{margin:0;font:400 16px/1.8 'DM Sans',sans-serif;white-space:pre-wrap;overflow-wrap:anywhere}
.album-note-status{display:flex;align-items:center;align-self:flex-start;gap:6px;color:var(--accent-text);font:500 12px/20px 'DM Sans',sans-serif}.album-note-status .icon{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
button.album-note{width:100%;border-radius:0;cursor:pointer}
.album-note .album-letter-name{margin-top:auto}
.album-note-private{cursor:default}.album-note-private:hover .album-letter-name{text-decoration:none}
.album-note-obscured-frame{min-height:180px}.album-note .album-note-obscured{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:fill;opacity:.45;user-select:none;pointer-events:none}.album-note .album-note-obscured[hidden]{display:none}
.album-message-badge{display:inline-flex;align-items:center;gap:6px;max-width:100%;color:inherit;font:400 13px/1.5 'DM Sans',sans-serif;overflow-wrap:anywhere}
.album-message-badge .icon{flex:none;width:16px;height:16px}
@media(max-width:650px){.album-note-gallery{grid-template-columns:minmax(0,1fr)}.album-note{padding:26px 24px 30px}.album-note .album-note-title{font-size:25px}}

/* Album notes inherit the writer's saved style, including the signature. */
.album-note .album-note-title,.album-note .album-note-preview,.album-note .album-letter-name{font-family:var(--album-letter-font,var(--writing-original,'Grape Nuts'))}
.album-note .album-note-preview{font-size:24px;line-height:1.5}.album-note .album-letter-name{font-size:24px;line-height:1.3}
.album-header-identity{display:flex;align-items:center;gap:8px;min-width:0}
.album-header-meta{display:flex;flex-direction:column;align-items:flex-end;align-self:start;gap:8px;margin:0;padding:0;min-width:0}
.album-member{display:flex;align-items:center;gap:12px;min-width:0;color:var(--ui)}
.album-member .paper-person{width:40px;height:40px;flex:none;box-shadow:none}.album-header-meta .account-text{min-height:44px}.album-member-list{display:grid;gap:16px;margin:24px 0 0}
.album-member-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;min-height:48px}.album-member-caption{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}.album-member-name{font:400 16px/22px 'DM Sans',sans-serif}.album-member-caption .album-member-role{margin:0;font:400 12px/18px 'DM Sans',sans-serif;color:var(--muted)}
.album-member-name-row{display:flex;align-items:center;gap:6px;min-width:0}.album-member-name-row:has(>.album-organizer-mark){gap:8px}.album-member-name{min-width:0}.album-member-submitted{display:flex;flex:none;color:var(--success)}.album-member-submitted .icon{width:16px;height:16px}
.album-member-role{display:flex;align-items:center;gap:6px}
.album-member-row .account-text{min-height:44px;flex:none}
.album-role-field{display:flex;align-items:center;gap:16px;min-height:44px}.album-role-field>.palette-label{margin:0;flex:none;font:400 16px/24px 'DM Sans',sans-serif}.album-role-field>.palette-trigger{flex:1;min-width:0;width:auto}

.album-member .paper-icon-control{flex:0 0 40px}.album-member .mailbox-avatar{width:40px;height:40px;min-width:40px;box-shadow:none;background:none}
#albumPostbox .conversation-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;border-radius:0 0 24px 24px;border-bottom:1px solid var(--header-divider);margin-bottom:0}
.email-choices :is(.album-access-setting,.birthday-share-setting){align-items:center;gap:12px}.email-choices :is(.album-access-setting,.birthday-share-setting) input{margin:0;padding:0}

.album-role-menu:popover-open{opacity:1;transform:translateY(0)}.album-role-menu .palette-option{align-items:start;padding:12px 8px}.album-role-menu .selection-mark{margin-top:3px}.album-role-title{display:block;font:400 16px/24px 'DM Sans',sans-serif}.album-role-description{display:block;margin-top:4px;font:400 12px/20px 'DM Sans',sans-serif;color:var(--muted)}
#albumInviteFriends .paper-icon-control{width:100%;height:100%}
#albumInviteFriends .mailbox-avatar{width:100%;height:100%;background:none;box-shadow:none}

.album-header-meta .album-people-button{display:inline-flex;align-items:center;gap:8px;min-width:44px;justify-content:center;padding:8px 12px;border-radius:999px}.album-header-meta .album-people-button:hover,.keyboard-navigation .album-header-meta .album-people-button:focus-visible{background:var(--hover)}.album-header-meta .album-people-button:active{background:var(--pressed)}.album-people-button .icon{width:20px;height:20px;flex:none}

.album-header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:12px;max-width:100%}
@media(max-width:650px){
 #albumPostbox .conversation-heading{column-gap:16px;border-radius:0 0 20px 20px;align-items:start}
 .album-header-identity{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:center}
 #albumPostbox .album-header-identity .person-heading{display:contents}
 #albumPostbox .album-header-identity .person-heading>div{grid-column:1/-1;min-width:0}
 #albumPostbox .person-heading h1{white-space:normal;overflow:visible;overflow-wrap:anywhere;font-size:24px}
 .album-header-actions{gap:8px}
}


/* People albums reuse the Group album stack and the Group cover dimensions. */
/* Paper stacks belong to albums. Each album supplies its own stable offsets. */
.gp-album-stack{display:block;position:relative;isolation:isolate;flex:none;width:max-content;max-width:100%;border-radius:12px}
.gp-album-stack:before,.gp-album-stack:after{content:'';position:absolute;inset:0;z-index:-1;border:1px solid #8c765836;border-radius:inherit;pointer-events:none;background:#e2dacb;transform:translate(var(--stack-a-x),var(--stack-a-y)) rotate(var(--stack-a-angle))}
.gp-album-stack:after{background:#eae2d2;transform:translate(var(--stack-b-x),var(--stack-b-y)) rotate(var(--stack-b-angle))}
.gp-album-front{display:block;position:relative;z-index:0;border-radius:inherit;overflow:hidden;transform:rotate(var(--stack-front-angle,0deg))}
.gp-album-front:after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 0 2px transparent}
.hp-album:is(:hover,:focus-visible,:focus-within) .gp-album-front:after{box-shadow:inset 0 0 0 2px var(--accent)}
.hp-album:is(:hover,:focus-visible,:focus-within) .gp-album-stack :is(.hp-cover,.hp-create-cover){box-shadow:none}
.album-overview-items{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:40px 24px;max-width:680px;margin:0 auto;padding:10px 0 0;overflow:visible}
.album-overview-items:empty{display:none}
.album-overview .mailbox-tile{flex:0 1 180px;width:180px;max-width:calc((100% - 24px)/2);min-width:0}
.album-overview .paper-icon-control,.album-overview .album-avatar,.album-overview .hp-cover,.album-overview .hp-create-cover{width:96px;height:96px}
.album-overview .album-avatar{display:block;border:0;background:none;box-shadow:none;overflow:visible;border-radius:12px}
.album-overview .mailbox-tile:hover .album-avatar,.album-overview .album-avatar:focus-visible{background:none;box-shadow:none}
.album-overview .mailbox-name-row{display:block;min-width:0;max-width:100%;text-align:center}
.album-overview .mailbox-name{display:inline;font:inherit;text-align:center;max-width:100%;padding:0;overflow-wrap:anywhere}
.album-overview .mailbox-name:is(:hover,:focus-visible),.album-overview .mailbox-name:hover .album-organizer-title-end>span:first-child{text-decoration:none}
.album-organizer-title-end{display:inline-flex;align-items:center;gap:8px;max-width:100%;vertical-align:baseline}.album-organizer-title-end>span:first-child{min-width:0;overflow-wrap:anywhere}.album-organizer-mark{display:inline-flex;align-items:center;flex:none;color:var(--muted)}.album-organizer-mark .icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){.album-overview-items{gap:32px 16px}.album-overview .mailbox-tile{flex-basis:140px;max-width:calc((100% - 16px)/2)}.album-overview .paper-icon-control,.album-overview .album-avatar,.album-overview .hp-cover,.album-overview .hp-create-cover{width:80px;height:80px}.album-overview .hp-album{font-size:20px;line-height:26px}}

/* Album photos share onboarding's label, 72px paper picker and full click target. */
.album-cover-picker{flex-direction:column;align-items:center}
.album-cover-picker .paper-icon-control,.album-cover-picker .mailbox-avatar{width:72px;height:72px;flex:none}
.album-cover-picker .album-photo img{min-width:0;min-height:0}
.album-cover-picker .album-cover-remove{left:calc(100% - 2px);top:2px;padding:0}
@media(hover:hover) and (pointer:fine){.album-cover-remove{opacity:0;pointer-events:none}.album-cover-picker .paper-icon-control:hover .album-cover-remove,.album-cover-picker .paper-icon-control:focus-within .album-cover-remove{opacity:1;pointer-events:auto}}
.album-cover-picker .album-photo{display:grid;place-items:center;border-radius:12px;background:var(--person-paper,#f2e8d1);color:#86897f}
.album-cover-picker .paper-icon-trigger.paper-icon-edit{border-radius:12px;opacity:1}
.album-cover-picker .album-photo>.icon{width:28px;height:28px;opacity:1}

/* Role explanations live in the anchored menu; preserve form and footer spacing. */
#albumInviteForm{display:flex;flex-direction:column;gap:24px}
#albumInviteDialog .send-tabs{margin:0}
#albumInviteForm>.account-dialog-actions{margin-top:8px;flex-shrink:0}
#albumInviteForm>.account-dialog-actions:has(>button[hidden]){display:none}
#albumFriendsNote{margin:0}
#albumInviteFriends{margin:0;padding:4px 5px}
#albumInviteFriends:empty{display:none}
#albumInviteFriends:not(:empty)+#albumFriendsNote{margin-top:12px}
#albumShareMethods{margin:0 0 24px}
#albumShareMethods .share-method-icon{width:48px;height:48px}
#albumLinkInvite>label{margin:0 0 8px}

/* Album invitations show the organizer's cover, never a letter envelope. */
#albumGate{max-width:560px;min-height:calc(100dvh - var(--header-height,72px) - 108px);margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center}
#albumGate .album-invite-cover{display:block;width:224px;height:224px;border-radius:24px;overflow:hidden;margin-bottom:48px;flex:none}
#albumGate .album-invite-cover img{width:100%;height:100%;object-fit:cover}
#albumGateTitle{max-width:100%;text-wrap:balance}
:is(#albumGateTitle,#albumPackingTitle) .album-invite-name{color:var(--accent-text);font-weight:600}
@media(max-width:600px){#albumPackingTitle .album-invite-name{display:block}}
#albumGate #albumGateNote{margin:16px 0 0;white-space:pre-line}
#albumSignIn{margin-top:24px}
@media(max-width:650px){#albumGate{min-height:calc(100dvh - var(--header-height,72px) - 80px)}#albumGate .album-invite-cover{width:160px;height:160px;border-radius:20px;margin-bottom:32px}}

.reaction-received-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

.album-writing-privacy{box-sizing:border-box;max-width:640px;margin:0 auto;padding-inline:20px;font:400 12px/20px 'DM Sans',sans-serif;color:var(--muted);text-align:center}
@media(min-width:480px){.album-writing-privacy{padding-inline:24px}}
@media(min-width:768px){.album-writing-privacy{padding-inline:32px}}
body[data-packing="active"] #albumWritingPrivacy{display:none}

#albumDetailsForm>.account-dialog-actions,#createAlbumForm>.account-dialog-actions{margin-top:32px}

body[data-album-compose="true"] #compose{padding-top:8px}

.album-member-name-row .album-member-write{position:relative;flex:none;width:16px;height:22px;min-width:16px;min-height:22px;padding:0;color:var(--muted)}.album-member-write::before{content:"";position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%)}.album-member-write .icon{width:16px;height:16px}.album-member-name-row .album-member-write:hover{background:transparent;color:var(--accent)}

#deleteFriend{margin-inline-end:auto}
#deleteFriendWarning{margin-top:24px}#deleteFriendWarning[hidden]{display:none}#deleteFriendWarning p{color:var(--ui)}#friendNameDialog[data-deleting] #friendNameForm>label,#friendNameDialog[data-deleting] #friendName,#friendNameDialog[data-deleting] #friendNameHelp{display:none}

/* Shared section introductions keep their top edge and measure across destinations. */
.section-intro{min-height:44px;margin:0 0 24px;text-align:center}
.section-heading-text{white-space:normal;opacity:1;transition:opacity 600ms ease-in-out}
.section-heading-text[data-fading=true]{opacity:0}
@media(prefers-reduced-motion:reduce){.section-heading-text{transition:none}}
.section-focus{color:var(--accent-text)}
@media(max-width:650px){.section-intro{min-height:76px}.account-page h1.people-index-title{font-size:30px;line-height:38px}}

/* Collection creation shares the same centered primary action on every index. */
.section-index-actions{justify-content:center;margin-top:24px}
.section-index-actions .send-btn{min-height:44px;padding:0 16px;font:500 13px/20px 'DM Sans',sans-serif}
.account-page .collection-empty{display:flex;flex:1 0 100%;align-items:center;justify-content:center;width:100%;min-height:calc(var(--collection-row-height,184px) - 16px);margin:0;padding:24px 16px;box-sizing:border-box;text-align:center;color:var(--muted);font:400 20px/28px 'Newsreader',Georgia,serif}


/* The full Drafts page is a quiet document gallery, separate from Palette. */
#draftScreen{padding-inline:clamp(28px,6vw,72px)}
:is(#draftList,.scheduled-gallery){--draft-preview-height:clamp(180px,25dvh,250px);display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));align-items:start;gap:24px 20px;max-width:none;margin:24px 0 0}
.draft-tile{min-width:0;max-width:calc((var(--draft-preview-height) - 16px) * .76923 + 16px);width:100%;color:var(--ui)}
.draft-tile-surface{box-sizing:border-box;border:4px solid #fff;border-radius:12px;background:#fff;overflow:hidden}
.draft-tile[data-current=true] .draft-tile-surface{border-color:var(--accent)}
.draft-thumbnail{display:block;width:100%;padding:0;border:0;border-radius:2px;background:transparent;color:inherit;cursor:pointer;overflow:visible;transition:background var(--motion-close)}
.draft-tile-surface:has(.draft-thumbnail:is(:hover,:active)),.keyboard-navigation .draft-tile-surface:has(.draft-thumbnail:focus-visible){box-shadow:0 0 0 2px var(--accent),0 6px 18px #36403914}
.draft-thumbnail-frame{display:block;position:relative;width:100%;height:auto;aspect-ratio:600/780;max-height:var(--draft-preview-height);box-sizing:border-box;border:0;border-radius:8px 8px 0 0;overflow:hidden;pointer-events:none}
.draft-thumbnail .letter-unfold{position:absolute;top:0;left:50%;width:600px;min-height:780px;box-sizing:border-box;padding:42px 44px;margin:0;border-radius:2px;transform:translateX(-50%) scale(var(--draft-scale,.25));transform-origin:top center;text-align:left;--letter-view-zoom:1;--size:30px;--leading:1.5}
.draft-thumbnail .letter-title{font:400 32px/1.3 var(--letter-font)}
.draft-thumbnail .letter-body{white-space:pre-wrap;overflow-wrap:anywhere}
.draft-tile-meta{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:44px;align-items:center;column-gap:4px;padding:4px 0 4px 8px}
.draft-tile-label{display:contents}
.draft-tile-label>strong{grid-column:1;grid-row:1;min-width:0;font:500 13px/18px 'DM Sans',sans-serif;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.draft-current-label{display:block;margin:8px 12px 0;font:400 11px/16px 'DM Sans',sans-serif;color:var(--accent-text)}
.draft-tile .draft-delete{--control-icon-size:16px;grid-column:2;grid-row:1;width:44px;height:44px;min-height:44px}
.draft-tile .draft-delete .icon{width:var(--control-icon-size);height:var(--control-icon-size)}
@media(min-width:960px){
 :is(#draftList,.scheduled-gallery){grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding:4px;margin-inline:-4px}
}
@media(max-width:479px){:is(#draftList,.scheduled-gallery){grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}:is(#draftList,.scheduled-gallery){--draft-preview-height:190px}.draft-tile .draft-delete{width:44px}.draft-tile-label>strong{font-size:12px}}

#draftScreen>.section-intro{position:relative;min-height:0;margin-bottom:8px;padding-inline:44px}
#draftScreen .draft-heading{max-width:none;min-height:44px;justify-content:center;margin:0 0 16px;padding:0}
#draftsBack{position:absolute;left:0;top:0;width:44px;height:44px}
.draft-tabs{display:flex;align-items:center;gap:8px}
.draft-tabs .account-text{display:grid;place-items:center;min-height:44px;padding:0 12px;border-radius:8px;font:400 14px/20px 'DM Sans',sans-serif;white-space:nowrap}
.draft-tabs .account-text[aria-current=page]{background:var(--accent-paper);color:var(--accent-text)}
.draft-tabs .account-text:hover{background:var(--hover);text-decoration:none}
@media(max-width:479px){#draftScreen .draft-heading{justify-content:center;margin-bottom:16px}.draft-tabs{gap:0}.draft-tabs .account-text{padding:0 8px;font-size:13px}}

/* Collection options reuse the former cover edit position, with a 44px hit area. */
.paper-icon-control>.paper-icon-trigger.cover-options-trigger{left:calc(100% - 6px);top:calc(100% - 6px);display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;box-shadow:none;isolation:isolate}
.cover-options-trigger .icon{width:15px;height:15px;fill:currentColor;stroke:none}
.paper-icon-control>.paper-icon-trigger.cover-options-trigger:before{content:"";position:absolute;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:27px;height:27px;box-sizing:border-box;border:1px solid color-mix(in srgb,var(--ink) 16%,transparent);border-radius:50%;background:var(--app-header);z-index:-1}
@media(hover:hover) and (pointer:fine){.cover-options-trigger{opacity:0;pointer-events:none}.paper-icon-control:is(:hover,:focus-within)>.cover-options-trigger,.hp-album:is(:hover,:focus-within) .cover-options-trigger,.cover-options-trigger[aria-expanded=true]{opacity:1;pointer-events:auto}}
@media(hover:none),(pointer:coarse){.paper-icon-control>.paper-icon-trigger.cover-options-trigger{opacity:1;pointer-events:auto}}
.album-context-menu{position:fixed;inset:auto;margin:0;padding:4px;width:max-content;max-width:calc(100vw - 16px);border:1px solid var(--input-line);border-radius:8px;background:var(--app-header);box-shadow:0 8px 24px #36403920;color:var(--ui);box-sizing:border-box}
.album-context-menu:popover-open{display:grid}
.album-context-menu .account-text{display:block;text-align:left;min-height:32px;width:100%;padding:6px 12px;border-radius:4px;font:500 13px/18px 'DM Sans',sans-serif}
.album-context-menu .account-text:is(:hover,:focus-visible){background:var(--hover);text-decoration:none}

/* Collection removal and group leaving use the shared danger red. */
.account-text.collection-danger,.account-text.collection-danger:is(:hover,:active,:focus-visible),.keyboard-navigation .account-text.collection-danger:focus-visible{color:var(--error)}
.send-btn.collection-danger{background:var(--error);color:#fffdf5}
.send-btn.collection-danger:is(:hover,:active),.keyboard-navigation .send-btn.collection-danger:focus-visible{background:color-mix(in srgb,var(--error) 85%,black);color:#fffdf5}
.send-btn.collection-danger:disabled{background:color-mix(in srgb,var(--error) 25%,var(--app-header));color:var(--muted)}

.account-notice .notice-action{display:block;min-height:44px;padding:0;text-align:left;color:var(--accent-text)}

.scheduled-gallery{width:100%}#scheduledList .scheduled-gallery{margin-top:0}.schedule-group{gap:16px}.scheduled-seal{display:grid;place-items:center;height:100%;background:var(--app-header);color:var(--muted)}.scheduled-seal .icon{width:32px;height:32px}.account-dialog.scheduled-dialog{width:min(720px,calc(100vw - 32px));max-width:720px}.scheduled-dialog>.account-dialog-actions{padding:0 var(--dialog-inset) 28px}.scheduled-dialog .letter-unfold{width:100%;margin:16px 0 0}.scheduled-arrival{overflow-wrap:anywhere}
