dialog[open]:has(#mail-packs-view){display:flex;flex-direction:column;width:min(900px,calc(100vw - 24px));max-width:900px;height:min(680px,calc(100vh - 24px));height:min(680px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);overflow:hidden;margin:auto}dialog:has(#mail-packs-view)>.modal-header{flex:none}dialog:has(#mail-packs-view)>.modal-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}dialog:has(#mail-packs-view) #mail-packs-view{flex:1;height:auto;min-height:0}
#mail-packs-view{--pack-green:#327d68;--pack-soft:#f1f6ee;display:grid;grid-template-columns:260px minmax(0,1fr);height:min(660px,72vh);height:min(660px,72dvh);min-height:320px;column-gap:24px;color:#284b47;position:relative}
#mail-packs-view button{cursor:pointer}#mail-packs-view button:disabled{cursor:default;opacity:.55}#mail-packs-view [hidden]{display:none!important}#mail-packs-view .button{font-size:13px;padding:9px 13px;min-height:40px}#mail-packs-view .text-link{border:0;background:none;padding:6px;color:var(--pack-green);font-size:13px}#mail-packs-view :is(input,textarea,select){width:100%;box-sizing:border-box;min-width:0}#mail-packs-view :is(button,input,textarea,select):focus-visible{outline:2px solid var(--pack-green);outline-offset:3px}
.pack-sidebar{display:flex;flex-direction:column;min-height:0;border-right:1px solid #e2e9e0;padding-right:18px}.pack-sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:8px 0 16px}.pack-eyebrow{text-transform:uppercase;font-size:10px;font-weight:700;letter-spacing:1.4px;color:#7a927c}.pack-list{overflow:auto;min-height:0;flex:1;overscroll-behavior:contain}.pack-list-label{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#81918b;margin:15px 8px 8px}.pack-list-item{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid transparent;background:transparent;width:100%;border-radius:13px;padding:12px 10px;color:inherit;margin-bottom:6px}.pack-list-item.is-selected{background:var(--pack-soft);border-color:#dbe6d6}.pack-list-item>span:nth-child(2){min-width:0;flex:1}.pack-list-item strong{display:block;font-size:14px;overflow-wrap:anywhere;line-height:1.35}.pack-list-item small{font-size:11px;color:#81918b}.pack-mark{width:34px;height:34px;flex:none;border-radius:11px;background:#e7eee0;color:#71956c;display:grid;place-items:center}.pack-mark svg{width:23px;height:23px}.pack-unread{border-radius:12px;min-width:20px;text-align:center;font-size:11px;background:var(--pack-green);color:white;padding:2px 5px}.pack-invitation{background:#fff9ed;border:1px solid #eee3cb;border-radius:12px;padding:12px;margin:6px 0 12px}.pack-invitation strong,.pack-invitation small{display:block;overflow-wrap:anywhere}.pack-invitation small{font-size:12px;color:#829087;margin:4px 0 10px}.pack-invitation>div{display:flex;gap:7px}.pack-main{display:flex;flex-direction:column;min-width:0;min-height:0;padding-left:0;overflow:hidden}.pack-welcome{margin:auto;text-align:center;padding:24px;max-width:340px}.pack-welcome-art{margin:0 auto 22px;width:90px;height:90px;border-radius:50% 45% 45% 50%;background:#f0f5e9;display:grid;place-items:center;color:#8eac78}.pack-welcome-art svg{width:48px;height:48px}.pack-welcome h3{font-size:25px;margin:12px 0}.pack-welcome p{color:#7e9189;font-size:14px;line-height:1.7}.pack-welcome small{display:block;font-size:11px;color:#98a39b;margin-top:16px}.pack-muted{font-size:13px;color:#8b9a91}.pack-chat-heading{display:flex;align-items:center;gap:10px;min-height:54px;flex:none}.pack-chat-heading>div{flex:1;min-width:0}.pack-chat-heading h3{font-size:20px;line-height:1.3;margin:0;overflow-wrap:anywhere}.pack-chat-heading small{font-size:11px;color:#81918b}.pack-chat-heading>[data-pack=list]{display:none}.pack-pinned-note{background:#f7f8f1;border-left:3px solid #c5d7ad;border-radius:0 8px 8px 0;font-size:12px;line-height:1.5;padding:9px 12px;margin:12px 0 3px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:95px;overflow:auto;flex:none}.pack-journey-label{display:flex;gap:8px;align-items:center;color:#7d927b;font-size:10px;letter-spacing:1px;text-transform:uppercase;margin:16px 0 8px}.pack-journey-label span{letter-spacing:0;background:#edf2e8;border-radius:12px;padding:1px 5px}.pack-journey-track{display:flex;gap:10px;overflow:auto;padding-bottom:10px;overscroll-behavior:contain}.pack-journey{display:flex;align-items:center;gap:9px;background:linear-gradient(110deg,#f0f6ed,#fafbf6);border:1px solid #dce8d4;border-radius:13px;padding:12px;min-width:280px;flex:1}.pack-journey-icon{border:1px solid #c3d5b9;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;color:#799c62;flex:none}.pack-journey>div{flex:1;min-width:0}.pack-journey strong{display:block;font-size:12px;overflow-wrap:anywhere}.pack-journey small{display:block;font-size:10px;color:#829285;margin-top:4px}.pack-message-scroll{flex:1;min-height:75px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:12px 6px 12px 0;-webkit-overflow-scrolling:touch}.pack-message{width:fit-content;max-width:88%;margin:0 0 13px;padding:10px 13px;background:#f3f5f2;border-radius:0 13px 13px 13px}.pack-message.is-mine{margin-left:auto;background:#edf5e6;border-radius:13px 0 13px 13px}.pack-message-meta{display:flex;gap:16px;align-items:baseline;justify-content:space-between;font-size:11px}.pack-message-meta strong{overflow-wrap:anywhere}.pack-message time{font-size:10px;color:#8d9c8f;white-space:nowrap}.pack-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.55;margin:5px 0 0}.pack-chat-empty{text-align:center;color:#91a092;font-size:13px;padding:28px 16px}.pack-compose{display:grid;grid-template-columns:1fr auto;gap:8px 10px;border-top:1px solid #e4eadd;padding-top:14px;align-items:center;flex:none}.pack-compose textarea{resize:vertical;max-height:130px;border:1px solid #dce5d7;border-radius:11px;background:#fafcf8;padding:11px 13px;font:inherit;font-size:13px;min-height:47px}.pack-compose small{grid-column:1/-1;font-size:10px;color:#92a08f}.pack-settings{overflow:auto;overscroll-behavior:contain;min-height:0;padding:0 8px 16px 0}.pack-settings h3{margin:12px 0 20px;overflow-wrap:anywhere}.pack-settings h4{font-size:14px;margin:24px 0 10px}.pack-settings .form-field{display:block;margin-bottom:12px;font-size:12px}.pack-settings .form-field :is(input,textarea,select){display:block;margin-top:7px;border:1px solid #dce5d7;border-radius:9px;padding:10px;background:#fcfdfa;font:inherit;font-size:14px}.pack-settings-heading,.pack-form-actions{display:flex;justify-content:space-between;align-items:center;gap:10px}.pack-members-list{list-style:none;padding:0;margin:0}.pack-members-list li{display:flex;align-items:center;gap:10px;border-bottom:1px solid #edf0e8;padding:10px 0}.pack-members-list li>span:nth-child(2){flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere}.pack-members-list small{display:block;font-size:10px;color:#8a9b88}.pack-members-list li>div{display:flex;flex-wrap:wrap;justify-content:flex-end}.pack-member-avatar{display:grid;place-items:center;background:#eef2e5;border-radius:50%;width:32px;height:32px;flex:none;color:#879d72}.pack-pending{display:flex;align-items:center;justify-content:space-between;font-size:13px}.pack-leave{display:flex;align-items:center;gap:10px;margin-top:26px;border-top:1px solid #e5eade;padding-top:15px}.pack-leave small{font-size:11px;color:#8a9589}.pack-confirm{background:#fff8ed;border:1px solid #e8dcc9;border-radius:12px;padding:14px;font-size:13px;margin-top:10px}.pack-confirm-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(100%,240px);margin-top:10px}#mail-packs-view .pack-confirm-actions>.button{width:100%;min-height:44px;margin:0;padding:10px 14px}[data-pack-error]{position:absolute;bottom:0;left:0;right:0;background:#fff2eb;border:1px solid #e6c8b8;border-radius:10px;padding:12px;margin:0;color:#975338;font-size:13px;z-index:1}.mail-pack-focus{padding:13px 18px;margin:0 0 16px;border:1px solid #cfdfc5;border-radius:13px;background:#f0f6ec;display:flex;align-items:center;gap:10px;font-size:13px}.mail-pack-focus>div{flex:1}.mail-pack-focus small{display:block;color:#82927a;margin-top:4px}.mail-pack-focus button{cursor:pointer}
@media(max-width:650px){#mail-packs-view{display:flex;flex-direction:column;gap:0;height:72vh;height:72dvh;min-height:280px}.pack-sidebar{border:0;padding:0;height:100%;min-height:0}.pack-main{display:none;padding:0;height:100%;min-height:0}#mail-packs-view.pack-main-open .pack-sidebar{display:none}#mail-packs-view.pack-main-open .pack-main{display:flex}.pack-chat-heading>[data-pack=list]{display:block}.pack-chat-heading h3{font-size:17px}.pack-chat-heading>[data-pack=settings]{font-size:11px}.pack-sidebar-heading{padding:3px 0 12px}.pack-invitation>div .button{flex:1}.pack-journey{min-width:240px;padding:10px}.pack-message{max-width:92%}.pack-compose{padding-top:10px}.pack-journey-track{padding-bottom:5px}.pack-chat-heading{min-height:45px}.pack-pinned-note{margin-top:7px;max-height:65px}.pack-settings .pack-settings-heading{gap:8px}.pack-main:has(.pack-welcome){display:none}.pack-list-item{padding:14px}.pack-settings{padding-right:2px}}
@media(prefers-reduced-motion:no-preference){.pack-message{animation:pack-appear .18s ease-out}@keyframes pack-appear{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}}

@media(max-height:560px){dialog:has(#mail-packs-view)>.modal-header{padding:10px 19px 8px}dialog:has(#mail-packs-view)>.modal-body{padding:0 19px 12px}}

#mail-packs-view .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:650px){.pack-chat-heading{display:grid;grid-template-columns:1fr auto;gap:2px 8px;min-height:0}.pack-chat-heading>div{grid-column:1/-1;grid-row:1}.pack-chat-heading h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:17px}.pack-chat-heading>[data-pack=list]{justify-self:start}.pack-chat-heading>[data-pack=settings]{justify-self:end}#mail-packs-view .pack-chat-heading>.button{padding:3px 0;min-height:28px}.pack-message-scroll{min-height:0}.pack-pinned-note{max-height:48px}.pack-journey-label{margin-top:9px}.pack-compose textarea{height:50px;min-height:40px;resize:none}.pack-compose small{font-size:9px}.pack-journey{min-width:min(240px,100%)}}

/* Reuse the standard mailbox filter grid, dimensions and spacing in every view. */
.pack-sidebar-heading>.text-link{min-height:40px;white-space:nowrap;font-weight:500}
#mail-packs-view .pack-sidebar-heading>.text-link{padding:0;color:var(--muted)}
#mail-packs-view .text-link:hover{color:var(--accent-dark);background:transparent;transform:none}
.pack-create{width:100%;max-width:400px;margin:0 auto;padding:14px 0 18px}
.pack-create-heading{display:flex;align-items:center;gap:12px}
.pack-create-heading .pack-mark{width:40px;height:40px}
.pack-create .pack-create-heading h3{margin:0;font-size:20px;line-height:1.35}
.pack-create-heading p{font-size:13px;line-height:1.6;color:var(--muted);margin:5px 0 0}
.pack-create .form-field{margin-top:22px;margin-bottom:0;font-size:13px}
.pack-create .form-field input{padding:11px 12px;border-radius:10px;font-size:15px}
.pack-create #pack-create-note{font-size:12px;line-height:1.6;margin:9px 0 0}
.pack-create .pack-form-actions{justify-content:flex-end;gap:16px;margin-top:22px}
.pack-create .pack-form-actions>.text-link{min-height:40px}

/* Keep input focus rings inside scroll-clipped panels. */
#mail-packs-view :is(input,textarea,select):focus-visible{outline-offset:-2px;border-color:var(--pack-green);box-shadow:none}

/* Journey activity shares the conversation timeline instead of occupying its header. */
.pack-journey-entry{min-width:0;width:100%;margin:0 0 16px;flex:none}
.pack-journey-entry p,.pack-journey-notice p{margin:0;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.pack-journey-entry small{display:block;margin-top:5px;font-size:10px}
.pack-journey-notice{display:flex;align-items:flex-start;gap:9px;margin:0 0 16px;padding:4px 10px;color:#6c8474}
.pack-notice-mark{flex:none;display:flex;color:#88a27a;padding-top:2px}
.pack-notice-mark svg{width:18px;height:18px}
.pack-journey-notice time{display:block;margin-top:4px;font-size:10px;color:#8d9c8f}
.pack-message-meta>strong{min-width:0}

.pack-color-sage{--pack-symbol-ink:#62805b;--pack-symbol-bg:#e8efe2}.pack-color-rose{--pack-symbol-ink:#a56578;--pack-symbol-bg:#f8e8ee}.pack-color-sky{--pack-symbol-ink:#588495;--pack-symbol-bg:#e7f2f7}.pack-color-lilac{--pack-symbol-ink:#85709b;--pack-symbol-bg:#efe9f6}
.pack-mark[class*=pack-color-]{background:var(--pack-symbol-bg);color:var(--pack-symbol-ink)}
.pack-chat-identity{display:flex;gap:10px;align-items:center}.pack-chat-identity>div{min-width:0}.pack-chat-actions{display:flex;flex-direction:column;align-items:flex-end;flex:none}.pack-chat-actions .text-link{white-space:nowrap}
.pack-style-picker{padding:12px;border:1px solid #e3e9df;border-radius:13px;margin-bottom:18px;background:#fcfdfa}.pack-style-preview{display:flex;align-items:center;gap:12px;font-size:12px;color:#7a9082;margin-bottom:14px}.pack-style-preview .pack-mark{width:42px;height:42px}
.pack-style-picker fieldset{border:0;padding:0;margin:12px 0 0;min-width:0}.pack-style-picker legend{font-size:12px;margin-bottom:8px}.pack-style-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.pack-style-options label{position:relative;cursor:pointer}.pack-style-options label>span{border:1px solid #e1e8dc;border-radius:9px;display:flex;align-items:center;flex-direction:column;gap:5px;padding:9px 3px;color:#738775}.pack-style-options small{font-size:10px}.pack-style-options svg{width:22px;height:22px}.pack-style-options input{position:absolute;opacity:0;inset:0;cursor:pointer}#mail-packs-view .pack-style-options input{width:100%;height:100%;margin:0}.pack-style-options input:checked+span{background:#edf4e8;border-color:#98b98a}.pack-style-options input:focus-visible+span{outline:2px solid var(--pack-green);outline-offset:1px}.pack-color-chip{width:22px;height:22px;border-radius:50%;background:var(--pack-symbol-bg);border:1px solid var(--pack-symbol-ink)}
.pack-journey-entry strong{display:inline;font-size:inherit}.pack-journey-entry{box-sizing:border-box}.pack-finds{display:flex;flex-wrap:wrap;gap:5px 10px;margin-top:7px}.pack-finds>span{display:inline-flex;align-items:center;gap:5px;font-size:11px;border-radius:7px;background:#f4f7ef;padding:3px 6px}.pack-finds img,.pack-finds .item-image{width:27px;height:27px;object-fit:contain;flex:none}.pack-activity time{margin-top:5px}
.pack-playmates h3{font-size:20px;margin-bottom:8px}.pack-playmates>.pack-muted{line-height:1.6;margin-bottom:18px}.pack-playmate{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid #edf0e8}.pack-playmate>.creature-portrait{width:48px;height:48px;flex:none}.pack-playmate>div{flex:1;min-width:0}.pack-playmate strong{font-size:14px;overflow-wrap:anywhere}.pack-playmate small,.pack-points{display:block;font-size:11px;line-height:1.6;color:#839789}.pack-playmate .pack-return-visit{color:var(--pack-green)}
.pack-settings .mail-search{margin:20px 0 10px;padding:3px}.pack-settings .mail-search:focus-within>div{outline-offset:-2px}#mail-packs-view .mail-search input:focus-visible{outline:none}.pack-settings .caretaker-results{display:grid;gap:6px;padding:0 3px}.pack-settings .caretaker-result>.icon{flex:none}.pack-settings .caretaker-result>span{flex:1}
@media(max-width:650px){.pack-chat-actions{flex-direction:row;gap:10px;grid-column:2;grid-row:2;align-items:center}.pack-chat-identity{grid-row:1;grid-column:1/-1}.pack-chat-actions .text-link{font-size:11px}.pack-style-options{gap:5px}.pack-playmate{gap:8px}.pack-playmate>.creature-portrait{width:38px;height:38px}#mail-packs-view .pack-playmate .button{font-size:11px;padding:7px 8px}}

/* Shared supplies use the same restrained mailbox controls and bounded artwork. */
.pack-chat-actions .text-link{display:inline-flex;align-items:center;gap:6px;min-height:30px}
.pack-chat-actions .icon{width:16px;height:16px;flex:none}
.pack-supplies h3{font-size:21px;margin-bottom:8px}.pack-supplies>.pack-muted{font-size:13px;line-height:1.6;margin-top:0}
.pack-supply-tabs{display:flex;gap:8px;margin:18px 0}.pack-supply-tabs .button{flex:1}.pack-supply-tabs [aria-pressed=true]{background:#edf4e8;border-color:#a9c49c;color:#34745f}
.pack-supply-grid{border:0;padding:2px;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:0}
.pack-supply-item{position:relative;cursor:pointer;min-width:0}.pack-supply-item>input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.pack-supply-item>span{display:flex;align-items:center;flex-direction:column;gap:7px;height:100%;border:1px solid #e0e7d9;border-radius:12px;padding:12px 8px;background:#fafcf8;text-align:center;box-sizing:border-box}
.pack-supply-item strong{font-size:12px;line-height:1.4;overflow-wrap:anywhere}.pack-supply-item small{font-size:10px;color:#82927d}.pack-supply-art{width:60px;height:60px;display:grid;place-items:center}.pack-supply-art :is(img,.item-image){width:60px;height:60px;object-fit:contain}
.pack-supply-item>input:checked+span{background:#edf5e7;border-color:#8eaf80}.pack-supply-item>input:focus-visible+span{outline:2px solid var(--pack-green);outline-offset:0}.pack-supply-item>input:disabled+span{opacity:.55}
.pack-supply-controls{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:16px 0 10px}.pack-supply-controls .form-field{margin:0;width:130px;max-width:45%}.pack-supply-controls input{width:100%;box-sizing:border-box}.pack-supply-controls>.button{min-height:43px}.pack-supply-notice{padding:10px 13px;border-radius:10px;background:#eef5e9;font-size:13px;line-height:1.5}.pack-supply-empty{padding:25px 8px;font-size:13px;line-height:1.6}
@media(max-width:650px){.pack-chat-actions{grid-column:1/-1;grid-row:3;justify-content:space-between;gap:6px;flex-wrap:wrap}.pack-chat-actions .text-link{font-size:11px;gap:4px}.pack-chat-actions .icon{width:14px;height:14px}.pack-chat-heading>[data-pack=list]{grid-row:2;grid-column:1/-1}.pack-supply-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pack-supply-controls>.button{font-size:12px}.pack-supply-tabs>.button{font-size:12px}}

.pack-list-summary{line-height:1.65;letter-spacing:.035em;min-width:0;text-transform:none}
.pack-list-summary>span{white-space:nowrap}
.pack-invite-result{box-sizing:border-box}
.pack-invite-result>.caretaker-link{flex:1;min-width:0;text-align:left;overflow-wrap:anywhere}
.pack-invite-result>.text-link{flex:none;min-height:40px;padding:6px 9px}
.pack-supply-item input[type=checkbox]+span{position:relative}
.pack-supply-item input[type=checkbox]:checked+span:after{content:'✓';position:absolute;right:7px;top:5px;color:var(--green,#32836d);font-size:16px}
.pack-supply-amount{min-height:1.25em;color:var(--green,#32836d)}

/* Reactions stay with their entry and wrap within narrow phone conversations. */
:is(#mail-packs-view,#mailbox-view) [data-pack-react-key]{cursor:pointer;outline-offset:-2px}
:is(#mail-packs-view,#mailbox-view) [data-pack-react-key]:focus-visible{outline:2px solid var(--pack-green);border-radius:10px}
.pack-journey-notice:has(.pack-reactions),.pack-journey-entry:has(.pack-reactions){flex-wrap:wrap}
.pack-journey-notice>div:not(.pack-reactions){flex:1;min-width:0}
.pack-reactions{flex-basis:100%;min-width:0;margin-top:7px;cursor:default}
.pack-reaction-counts,.pack-reaction-picker{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.pack-reaction-picker{width:fit-content;max-width:100%;padding:5px;border:1px solid #dce7d8;border-radius:14px;background:#fcfdf9;box-shadow:0 3px 12px #284b470b;box-sizing:border-box;margin-top:5px}
:is(#mail-packs-view,#mailbox-view) .pack-reaction-picker button{display:grid;place-items:center;width:34px;height:36px;padding:0;border:0;border-radius:9px;background:transparent;font-size:20px;line-height:1}
:is(#mail-packs-view,#mailbox-view) .pack-reaction-picker button[aria-pressed=true],:is(#mail-packs-view,#mailbox-view) .pack-reaction-picker button:hover{background:#e9f3e5}
:is(#mail-packs-view,#mailbox-view) .pack-reaction-picker .text-link{color:#80958a;font-size:20px;width:25px}
:is(#mail-packs-view,#mailbox-view) .pack-reaction-chip{display:inline-flex;align-items:center;gap:5px;border:1px solid #e1e9dc;border-radius:12px;background:#f6f9f2;color:#44685b;padding:4px 8px;min-height:30px;line-height:1.2}
:is(#mail-packs-view,#mailbox-view) .pack-reaction-chip small{font:inherit;font-size:11px;margin:0}
:is(#mail-packs-view,#mailbox-view) .pack-reaction-chip[aria-pressed=true]{border-color:#9cbc8f;background:#eaf4e3}
:is(#mail-packs-view,#mailbox-view) .pack-reaction-chip:disabled{opacity:1}
@media(max-width:650px){:is(#mail-packs-view,#mailbox-view) .pack-reaction-picker button{width:24px;font-size:18px}:is(#mail-packs-view,#mailbox-view) .pack-reaction-picker .text-link{width:16px}.pack-reaction-picker{gap:2px}}

#mailbox-view [data-chat-react-id]{cursor:pointer;outline-offset:-2px}
#mailbox-view [data-chat-react-id]:focus-visible{outline:2px solid var(--green,#32836d);border-radius:10px}
#mailbox-view .pack-reaction-chip:focus-visible,#mailbox-view .pack-reaction-picker button:focus-visible{outline:2px solid var(--green,#32836d);outline-offset:1px}

/* Public identities and joining controls share the mailbox's compact layout. */
.pack-owned-group{padding-bottom:12px;margin-bottom:10px;border-bottom:1px solid #e0e8dc}
.pack-directory{padding-bottom:12px}.pack-directory-search{display:flex;align-items:center;gap:5px;margin:8px 4px 12px}
#mail-packs-view .pack-directory-search input{border:1px solid #dce5d7;border-radius:10px;background:#fafcf8;padding:10px;font:inherit;font-size:12px}
.pack-directory-search .icon-button{flex:none;width:34px;height:38px;padding:6px;color:#6f8e7b}
.pack-directory-lock{flex:none;color:#91a38e}.pack-directory-lock svg{width:15px;height:15px}
.pack-directory-item .pack-mark{width:30px;height:30px;border-radius:10px}.pack-directory-item .pack-mark svg{width:21px;height:21px}
.pack-request-summary>span:first-child{flex:1;min-width:0}.pack-request-summary>.pack-unread{flex:none!important}
.pack-public-heading{display:flex;align-items:center;gap:13px;margin:22px 0 12px}.pack-public-heading .pack-mark{width:46px;height:46px}.pack-public-heading h3{margin:0 0 4px;font-size:23px}.pack-public-heading p{margin:0}
.pack-public-leader{font-size:13px}.pack-public-actions{margin:22px 0 26px;padding:16px;border:1px solid #e1e8d9;background:#f6f9f1;border-radius:13px}
.pack-public-members{display:flex;flex-wrap:wrap;gap:12px 20px;font-size:13px}.pack-public-members>.caretaker-link{padding:7px 0}
.pack-request-sent{display:flex;align-items:center;gap:8px;font-size:13px;margin:0 0 8px}.pack-request-sent svg{width:18px;height:18px;flex:none}
.pack-join-mode{border:0;padding:0;margin:20px 0}.pack-join-mode legend{font-size:12px;font-weight:600;margin-bottom:8px}
.pack-join-mode label{display:flex;align-items:center;gap:10px;border:1px solid #e0e7da;border-radius:11px;padding:12px;margin-bottom:8px;cursor:pointer}
#mail-packs-view .pack-join-mode input{width:16px;height:16px;margin:0;accent-color:#327d68;flex:none}.pack-join-mode label:has(input:checked){background:#f0f6ec;border-color:#aec8a4}
.pack-join-mode strong{display:block;font-size:13px;font-weight:600}.pack-join-mode small{display:block;font-size:11px;color:#87968a;margin-top:4px;line-height:1.4}
.pack-join-request{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #e7eddf;font-size:13px}.pack-join-request>span{min-width:0;overflow-wrap:anywhere}.pack-join-request>div{display:flex;gap:6px;flex:none}
.caretaker-pack-membership{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:10px 0 14px;font-size:12px;color:#87958d}
.caretaker-pack-link{display:inline-flex;align-items:center;gap:6px;border:0;background:none;padding:3px 0;color:var(--green,#327d68);font:inherit;cursor:pointer;max-width:100%;text-align:left}
.caretaker-pack-link>span:last-child{overflow-wrap:anywhere}.caretaker-pack-link .pack-mark{width:25px;height:25px;border-radius:8px}.caretaker-pack-link .pack-mark svg{width:18px;height:18px}.caretaker-pack-link:hover>span:last-child{text-decoration:underline}.caretaker-pack-link:focus-visible{outline:2px solid var(--green,#327d68);outline-offset:3px;border-radius:5px}
@media(max-width:650px){.pack-public-heading h3{font-size:20px}.pack-public-card{padding:0 5px 16px}.pack-join-request{flex-wrap:wrap}.pack-join-request>div{margin-left:auto}.pack-directory-search{margin:8px 5px 12px}}

.caretaker-pack-membership>div{display:flex;flex-wrap:wrap;gap:5px 14px;min-width:0;max-width:100%}

/* Personal notification preference beside the existing Leave pack link. */
.pack-leave{flex-wrap:wrap}
.pack-leave>.text-link{white-space:nowrap}
.pack-leave>small{flex-basis:100%}
.pack-leave>[data-pack="mute-notifications"]:disabled{opacity:.55;cursor:wait}
