/* Catalogue and account shell: readable surfaces, explicit actions, compact mobile navigation. */
.shell-sr, [data-hero-status] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.notification-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ff4659; box-shadow: 0 0 0 2px var(--card); }
.notification-dot[hidden] { display: none !important; }
.account-menu summary { position: relative; }
.account-menu summary > .notification-dot { position: absolute; right: -1px; top: 0; }
.menu-pop a > .notification-dot, .me-items a > .notification-dot { margin-left: auto; }
.tab-me { position: relative; }
.tab-me .notification-dot { top: 6px; right: calc(50% - 17px); }
.tab-message-dot { position: absolute; top: 8px; right: calc(50% - 23px); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.notification-overlay { position: fixed; inset: 0; z-index: 110; display: flex; align-items: flex-start; justify-content: flex-end; padding: max(76px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)); background: rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.notification-overlay[hidden] { display: none; }
.notification-panel { display: flex; flex-direction: column; width: min(100%, 460px); max-height: 100%; min-height: 220px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--text); box-shadow: 0 24px 80px #0008; }
.notification-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 6px 20px; }
.notification-head h2 { margin: 0; font-size: 20px; }
.notification-head .icon-btn { flex: none; width: 44px; min-height: 44px; }
.notification-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 10px; border-bottom: 1px solid var(--line); font-size: 12px; }
.notification-tools > * { display: inline-flex; align-items: center; min-height: 44px; }
.notification-tools button { color: var(--accent); }
.notification-tools button:disabled { color: var(--muted); cursor: default; }
.notification-content { overflow-y: auto; overscroll-behavior: contain; padding: 8px; min-height: 130px; }
.notification-content > .list-card { margin: 0; border: 0; background: transparent; }
.notification-content .li { border-radius: 10px; padding: 14px 12px; }
.notification-content .li > div { min-width: 0; overflow-wrap: anywhere; }
.notification-content .li > div > span { display: block; }
.notification-content .li .muted { margin-top: 4px; font-size: 11px; }
.notification-content .unread { background: color-mix(in srgb, var(--accent) 8%, var(--card)); border-left: 3px solid var(--accent); }

.toast, .toast.bad { width: max-content; max-width: min(640px, calc(100% - 32px)); padding: 14px 18px; border: 1px solid #ffffff20; border-radius: 14px; background: rgba(9,9,12,.91); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; overflow-wrap: anywhere; box-shadow: 0 8px 36px #0005; backdrop-filter: blur(12px); }
.toast.bad { border-color: #ff687d70; }

.hero-track { position: relative; display: flex; align-items: stretch; width: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-track > .hero-slide, .hero-track > .hero-slide.on { position: relative; inset: auto; flex: 0 0 100%; min-width: 0; opacity: 1; pointer-events: auto; transition: none; scroll-snap-align: start; scroll-snap-stop: always; }
.hero-track .hero-in { height: 100%; padding-bottom: 28px; }
.hero-controls { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 14px; padding-block: 4px 12px; }
.hero-controls .hero-dots { position: static; display: flex; width: auto; margin: 0; padding: 0; justify-content: center; gap: 4px; }
.hero-controls [data-hero-prev], .hero-controls [data-hero-next] { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--text); cursor: pointer; }
.hero-controls [data-hero-prev]:hover, .hero-controls [data-hero-next]:hover { border-color: var(--accent); color: var(--accent); }
.hero-controls [data-hero-prev][hidden], .hero-controls [data-hero-next][hidden] { display: none; }
.hero:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }

.shelf > .sec-head { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 8px 12px; }
.shelf > .sec-head > :first-child { grid-column: 2; text-align: center; }
.shelf > .sec-head h2 { justify-content: center; }
.shelf > .sec-head p { max-width: 60ch; margin-inline: auto; }
.shelf > .sec-head > .see-all { grid-column: 3; justify-self: end; }

.resume-wrap { width: 290px; }
.resume-wrap .resume { width: 100%; min-height: 150px; gap: 12px; padding: 10px 36px 10px 10px; border-radius: 14px; }
.resume-art { display: block; flex: 0 0 82px; align-self: stretch; overflow: hidden; border-radius: 9px; background: var(--bg2); }
.resume .resume-art img { display: block; width: 100%; height: 100%; min-height: 123px; aspect-ratio: 2/3; object-fit: cover; border-radius: 0; }
.resume-placeholder { display: grid; height: 100%; min-height: 123px; place-items: center; font-size: 34px; color: var(--muted); }
.resume .resume-info { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 6px; padding-block: 3px; }
.resume-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: 0; font-size: 14px; font-weight: 700; line-height: 1.4; }
.resume .resume-info > .muted { font-size: 11px; line-height: 1.5; }
.resume .bar { margin-block: 0 2px; height: 4px; }
.resume-action { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; margin-top: auto; align-self: flex-start; padding: 6px 14px; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); font-size: 12px; font-weight: 700; }
.resume-action .i { width: 13px; height: 13px; }
.resume-action:hover { background: var(--accent); color: #101014; }
.resume-x { width: 28px; height: 28px; top: 7px; right: 5px; }
.resume-wrap:focus-within .resume-x { opacity: 1; }

.foot-group h4 { font-size: 13px; letter-spacing: .03em; }
.foot-brand p { max-width: 32ch; font-size: 13px; line-height: 1.65; }
.foot-brand .logo-text { display: inline; }
.foot-bottom { gap: 18px; }
.foot-legal { flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero-track .hero-in { padding-bottom: 4px; }
  .hero-controls { gap: 8px; padding-block: 0 10px; }
  .hero-controls .hero-dots button, .hero-controls .hero-dots button.on { flex: none; width: 36px; max-width: 36px; }
  .hero-controls .hero-dots button::before { width: 18px; }
  .hero-controls .hero-dots button.on::before { width: 28px; }
  .hero-controls [data-hero-prev], .hero-controls [data-hero-next] { width: 42px; height: 42px; }
  .toast, .toast.bad { width: calc(100% - max(24px, env(safe-area-inset-left)) - max(24px, env(safe-area-inset-right))); max-width: 620px; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 14px 16px; font-size: 13px; }
  .reading .toast { top: calc(108px + env(safe-area-inset-top)); bottom: auto; }
  .shelf > .sec-head { grid-template-columns: minmax(0,1fr) auto; }
  .shelf > .sec-head > :first-child { grid-column: 1 / -1; }
  .shelf > .sec-head > .see-all { grid-column: 1 / -1; justify-self: center; min-height: 30px; }
  .shelf > .sec-head p { max-width: 44ch; }
  .resume-wrap { width: min(290px, 80vw); }
  .resume-wrap .resume { min-height: 145px; }
  .resume-art { flex-basis: 76px; }
  .resume-title { font-size: 13px; }
  .resume-action { min-height: 38px; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px 16px; padding-block: 26px 24px; }
  .foot-brand { grid-column: 1 / -1; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .foot-brand p { max-width: none; margin: 2px 0 0; }
  .foot-grid .logo { margin-bottom: 4px; }
  .foot-group { min-width: 0; }
  .foot-group h4 { margin-bottom: 8px; }
  .foot-grid .foot-group a, .foot-grid .foot-group .link-btn { margin-block: 0; padding-block: 7px; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
  .foot-group .link-btn { text-align: left; gap: 4px; }
  .foot-group .link-btn .i { flex: none; width: 13px; height: 13px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 18px 24px; font-size: 11px; }
  .foot-legal { display: flex; gap: 4px 16px; }
  .foot-legal > * { min-height: 32px; display: inline-flex; align-items: center; }
}

@media (max-width: 600px) {
  .notification-overlay { align-items: flex-end; justify-content: center; padding: max(12px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) calc(76px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
  .notification-panel { width: 100%; max-height: min(76dvh, 680px); border-radius: 20px; }
  .notification-head { padding: 10px 12px 2px 16px; }
  .notification-head h2 { font-size: 18px; }
  .notification-tools { padding-inline: 16px; }
  .notification-content .li { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-track { scroll-behavior: auto; }
  .hero-slide, .hero-controls *, .resume-wrap { transition: none; }
}
