/* Account notification centre */
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.notification-menu { position:relative; flex:0 0 auto; }
.notification-nav-link { position:relative; flex:0 0 auto; width:40px; height:40px; display:grid; place-items:center; padding:0; border:1px solid rgba(176,139,90,.2); border-radius:14px; color:var(--text); background:rgba(245,241,234,.045); cursor:pointer; }
.notification-nav-link:hover { border-color:rgba(232,199,149,.42); color:var(--accent-light); background:rgba(176,139,90,.1); }
.notification-nav-link>.ph { margin:0; font-size:1.15rem; }
.notification-nav-link>span { position:absolute; top:-5px; left:-5px; min-width:18px; height:18px; display:grid; place-items:center; padding-inline:4px; border:2px solid var(--bg); border-radius:999px; color:#17120e; background:var(--accent-light); font-size:.58rem; font-weight:950; line-height:1; }
.notification-panel-backdrop { display:none; }
.notification-panel { position:absolute; top:calc(100% + 12px); left:0; z-index:82; width:min(430px,90vw); overflow:hidden; border:1px solid rgba(176,139,90,.2); border-radius:23px; background:linear-gradient(145deg,rgba(31,28,24,.99),rgba(17,16,15,.99)); box-shadow:0 28px 80px rgba(0,0,0,.52),inset 0 1px 0 rgba(255,255,255,.045); white-space:normal; }
.notification-panel[hidden] { display:none; }
.notification-panel-head { min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 15px; border-bottom:1px solid rgba(176,139,90,.13); background:linear-gradient(135deg,rgba(176,139,90,.1),transparent 55%); }
.notification-panel-head p,.notification-panel-head h2 { margin:0; }
.notification-panel-head h2 { font-size:1.05rem; }
.notification-panel-head-actions { display:flex; align-items:center; gap:11px; }
.notification-panel-head-actions form { margin:0; }
.notification-panel-head .text-button { gap:5px; font-size:.68rem; white-space:nowrap; }
.notification-panel-close { width:34px; height:34px; display:grid; place-items:center; padding:0; border:1px solid rgba(176,139,90,.15); border-radius:12px; color:var(--muted); background:rgba(245,241,234,.045); cursor:pointer; }
.notification-panel-close .ph { margin:0; }
.notification-panel-list { max-height:min(520px,calc(100vh - 190px)); overflow-y:auto; overflow-x:hidden; display:grid; grid-auto-rows:max-content; align-content:start; gap:7px; padding:10px; scrollbar-width:thin; scrollbar-color:rgba(176,139,90,.62) transparent; }
.notification-panel-list::-webkit-scrollbar { width:8px; }
.notification-panel-list::-webkit-scrollbar-track { margin-block:12px; background:transparent; }
.notification-panel-list::-webkit-scrollbar-thumb { border:2px solid transparent; border-radius:999px; background:linear-gradient(180deg,rgba(201,164,112,.82),rgba(112,80,45,.9)) padding-box; }
.notification-panel-item { --notification-tone:176,139,90; position:relative; min-width:0; display:grid; grid-template-columns:38px minmax(0,1fr) 30px; align-items:center; gap:10px; padding:11px; overflow:hidden; border:1px solid rgba(176,139,90,.1); border-radius:17px; background:rgba(245,241,234,.025); }
.notification-panel-item::before { content:""; position:absolute; inset-block:8px; right:0; width:3px; border-radius:999px; background:rgb(var(--notification-tone)); opacity:.15; }
.notification-panel-item.is-unread { border-color:rgba(var(--notification-tone),.28); background:linear-gradient(125deg,rgba(var(--notification-tone),.1),rgba(245,241,234,.025) 60%); }
.notification-panel-item.is-unread::before { opacity:.9; }
.notification-panel-item.notification-success { --notification-tone:108,154,112; }
.notification-panel-item.notification-warning { --notification-tone:202,121,72; }
.notification-panel-item.notification-action { --notification-tone:190,151,98; }
.notification-panel-icon { width:38px; height:38px; display:grid; place-items:center; border:1px solid rgba(var(--notification-tone),.24); border-radius:13px; color:rgb(var(--notification-tone)); background:rgba(var(--notification-tone),.08); }
.notification-panel-icon .ph { margin:0; font-size:1.1rem; }
.notification-panel-copy { min-width:0; overflow:hidden; }
.notification-panel-copy>div { min-width:0; display:flex; align-items:center; gap:6px; margin-bottom:3px; color:var(--muted); font-size:.58rem; }
.notification-panel-copy>div span,.notification-panel-copy>div time { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.notification-panel-copy>div b { flex:0 0 auto; padding:2px 5px; border-radius:999px; color:var(--accent-light); background:rgba(176,139,90,.12); font-size:.54rem; }
.notification-panel-copy h3 { margin:0 0 2px; overflow:hidden; color:var(--text); font-size:.79rem; line-height:1.55; text-overflow:ellipsis; white-space:nowrap; }
.notification-panel-copy p { margin:0; color:var(--muted); font-size:.66rem; line-height:1.65; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.notification-panel-action { margin:0; }
.notification-panel-action button { width:30px; height:34px; display:grid; place-items:center; padding:0; border:0; border-radius:11px; color:var(--accent-light); background:rgba(176,139,90,.08); cursor:pointer; }
.notification-panel-action button:hover { color:#fff; background:rgba(176,139,90,.18); }
.notification-panel-action .ph { margin:0; }
.notification-panel-empty { min-height:230px; display:grid; align-content:center; justify-items:center; gap:6px; padding:30px; color:var(--muted); text-align:center; }
.notification-panel-empty>.ph { margin-bottom:6px; color:var(--accent-light); font-size:2rem; }
.notification-panel-empty h3,.notification-panel-empty p { margin:0; }
.notification-panel-empty h3 { color:var(--text); font-size:.95rem; }
.notification-panel-empty p { font-size:.72rem; }
.notification-panel-foot { min-height:48px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 14px; border-top:1px solid rgba(176,139,90,.13); color:var(--muted); background:rgba(245,241,234,.018); font-size:.62rem; }
.notification-panel-foot a { display:inline-flex; align-items:center; gap:6px; color:var(--accent-light); font-size:.7rem; font-weight:850; }
.notification-panel-foot .ph { margin:0; }
.notification-page-head { width:var(--container); min-width:0; max-width:100%; }
.notification-page-head>div { min-width:0; }
.notification-page-head h1 { margin-bottom:8px; }
.notification-page-head p:last-child { max-width:650px; margin-bottom:0; color:var(--muted); }
.preference-page { width:100%; min-width:0; max-width:900px; overflow:clip; }
.notification-preference-form,.preference-groups,.preference-group,.preference-list { width:100%; min-width:0; max-width:100%; }
.preference-list { display:grid; gap:12px; }
.preference-groups { display:grid; gap:28px; }
.preference-group { display:grid; gap:12px; }
.preference-group-title { display:flex; align-items:end; justify-content:space-between; gap:12px; padding-inline:4px; }
.preference-group-title>* { min-width:0; }
.preference-group-title p,.preference-group-title h2 { margin:0; }
.preference-group-title h2 { font-size:1.05rem; }
.text-button { display:inline-flex; align-items:center; gap:6px; padding:3px 0; border:0; color:var(--accent-light); background:none; font:inherit; font-size:.75rem; font-weight:850; cursor:pointer; }
.text-button:hover { color:var(--text); }
.notification-preference-form { display:grid; gap:24px; }
.preference-card { width:100%; min-width:0; max-width:100%; display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:14px; padding:17px 18px; overflow:hidden; border:1px solid rgba(176,139,90,.14); border-radius:19px; background:rgba(245,241,234,.025); }
.preference-card>div { min-width:0; max-width:100%; }
.preference-card.is-mandatory { background:linear-gradient(140deg,rgba(176,139,90,.07),rgba(245,241,234,.018)); }
.preference-icon { width:42px; height:42px; display:grid; place-items:center; border:1px solid rgba(176,139,90,.2); border-radius:14px; color:var(--accent-light); background:rgba(176,139,90,.08); }
.preference-icon .ph { margin:0; font-size:1.2rem; }
.preference-card h2 { max-width:100%; margin:0 0 4px; overflow-wrap:anywhere; font-size:.92rem; }
.preference-card p { max-width:100%; margin:0; color:var(--muted); overflow-wrap:anywhere; font-size:.75rem; line-height:1.75; }
.preference-card small { display:block; max-width:100%; margin-top:5px; color:#bfa98e; overflow-wrap:anywhere; font-size:.65rem; }
.mandatory-state { display:inline-flex; align-items:center; gap:5px; padding:6px 10px; border:1px solid rgba(108,154,112,.25); border-radius:999px; color:#9bc49e; background:rgba(108,154,112,.08); font-size:.68rem; font-weight:850; }
.preference-switch { position:relative; min-width:0; max-width:100%; display:grid; grid-template-columns:42px auto; align-items:center; gap:5px 8px; cursor:pointer; }
.preference-switch input { position:absolute; top:0; right:0; width:1px; height:1px; padding:0; margin:0; overflow:hidden; opacity:0; pointer-events:none; }
.preference-switch>span { position:relative; grid-column:1; width:42px; height:24px; border:1px solid rgba(176,139,90,.24); border-radius:999px; background:#171513; transition:.2s ease; }
.preference-switch>span::after { content:""; position:absolute; top:3px; right:3px; width:16px; height:16px; border-radius:50%; background:#766b5f; transition:.2s ease; }
.preference-switch input:checked+span { border-color:rgba(176,139,90,.5); background:rgba(176,139,90,.22); }
.preference-switch input:checked+span::after { right:21px; background:var(--accent-light); box-shadow:0 0 12px rgba(176,139,90,.35); }
.preference-switch input:focus-visible+span { outline:2px solid var(--accent-light); outline-offset:3px; }
.preference-switch b { grid-column:2; color:var(--muted); font-size:.64rem; }

@media (max-width:700px) {
  body.notification-panel-open { overflow:hidden; }
  body.notification-panel-open .site-header,
  body.notification-panel-open .mobile-tabbar { z-index:90; }
  .notification-menu { position:static; }
  .notification-nav-link { width:42px; height:42px; border-color:rgba(255,255,255,.1); border-radius:14px; color:var(--text); background:rgba(245,241,234,.045); }
  .notification-nav-link.has-content { border-color:rgba(232,199,149,.42); color:var(--accent-light); background:rgba(176,139,90,.14); }
  .notification-panel-backdrop:not([hidden]) { position:fixed; z-index:81; inset:0; display:block; width:100%; height:100%; padding:0; border:0; background:rgba(5,4,3,.64); backdrop-filter:blur(6px); cursor:default; }
  .notification-panel { position:fixed; z-index:89; top:calc(86px + env(safe-area-inset-top)); right:10px; bottom:calc(88px + env(safe-area-inset-bottom)); left:10px; width:auto; max-height:none; display:flex; flex-direction:column; min-height:0; border-radius:27px; box-shadow:0 30px 100px rgba(0,0,0,.66); }
  .notification-panel-head { flex:0 0 auto; min-height:68px; padding:12px 14px; }
  .notification-panel-list { flex:1 1 auto; min-height:0; max-height:none; padding:9px; }
  .notification-panel-foot { flex:0 0 auto; }
  .notification-panel-item { grid-template-columns:36px minmax(0,1fr) 30px; padding:10px; border-radius:16px; }
  .notification-panel-icon { width:36px; height:36px; }
  .notification-panel-copy p { -webkit-line-clamp:1; }
  .notification-panel-empty { min-height:250px; }
  .notification-page-head .button { width:100%; }
  .preference-page { max-width:calc(100vw - 24px); }
  .preference-card { grid-template-columns:38px minmax(0,1fr); align-items:start; gap:11px; padding:14px; border-radius:18px; }
  .preference-icon { width:38px; height:38px; border-radius:13px; }
  .preference-card>.mandatory-state,.preference-card>.preference-switch { grid-column:2; justify-self:start; }
  .notification-preference-form>.button { width:100%; }
}
