/* Sky Images — Delivery Platform prototype
   Dark, minimal, high-contrast to match skyimages.com.au */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg:        #0c0f14;   /* near-black navy */
  --bg-2:      #11161d;   /* panels */
  --bg-3:      #161c25;   /* cards / inputs */
  --line:      #232b36;   /* hairline borders */
  --text:      #f4f6f8;   /* primary text */
  --muted:     #8b97a6;   /* secondary text */
  --muted-2:   #5c6675;   /* faint */
  --brand:     #29abe2;   /* sky-blue chevron from the logo */
  --brand-2:   #1f95c8;   /* darker blue for hovers */
  --brand-ink: #ffffff;   /* text on brand blue */
  --accent:    #29abe2;   /* primary accent = brand blue */
  --accent-ink:#ffffff;   /* text on accent */
  --line2:     #2f3a47;   /* stronger hairline / dashed borders */
  --track:     #1e2632;   /* progress-bar tracks */
  --faint:     #5c6675;   /* faint text (alias of muted-2) */
  --ok:        #7ee2a8;   /* success / done green */
  --radius:    10px;
  --maxw:      1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Century Gothic', 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Brand / header ---------- */
.brandbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(12,15,20,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brandbar__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 16px 28px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 40px; width: auto; display: block; }
.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); transition: color .15s;
}
.nav a:hover, .nav a.active { color: var(--text); }
.brandbar__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.who { font-size: 13px; color: var(--muted); }
.who b { color: var(--text); font-weight: 500; }
/* Mobile menu button — hidden on desktop, shown at the mobile breakpoint. */
.nav-toggle {
  display: none; width: 40px; height: 40px; flex-shrink: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font-size: 18px; line-height: 1; cursor: pointer;
}
.nav-toggle:hover { border-color: #3a4554; background: #1b2230; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  padding: 10px 16px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--text);
  transition: border-color .15s, background .15s, transform .05s;
}
.btn:hover { border-color: #3a4554; background: #1b2230; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
.btn--primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn--ghost { background: transparent; }
.btn--sm { padding: 7px 12px; font-size: 12px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 40px 0; }
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
h1.page { font-size: 30px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.sub { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Login ---------- */
.login-shell {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(40,60,90,.30), transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%; max-width: 380px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 36px 32px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
}
.login-card .logo { display: flex; justify-content: center; margin-bottom: 6px; }
.login-card .logo img { height: 88px; }
.foot .logo img { height: 30px; opacity: .8; }
.login-card .tag { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; letter-spacing: .03em; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 9px;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--text);
  font-size: 14px; font-family: inherit;
}
.field input:focus { outline: none; border-color: #4a90e2aa; }
.login-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.login-foot { text-align: center; margin-top: 20px; font-size: 12px; color: var(--muted-2); }
.login-foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Listings grid ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .12s;
}
.card:hover { border-color: #3a4554; transform: translateY(-2px); }
.card__img { aspect-ratio: 3 / 2; background: var(--bg-3); object-fit: cover; width: 100%; }
.card__body { padding: 14px 16px 16px; }
.card__addr { font-size: 15px; font-weight: 500; }
.card__meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.pill { font-size: 11px; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill--live { color: #7ee2a8; border-color: #1f5d3c; background: #0f1f17; }
.pill--new  { color: #8fc0ff; border-color: #284a72; background: #0f1824; }

/* ---------- Gallery ---------- */
.gallery-head { border-bottom: 1px solid var(--line); }
.gallery-head .wrap { padding-top: 28px; padding-bottom: 24px; }
.breadcrumb { font-size: 12px; color: var(--muted-2); letter-spacing: .04em; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--muted); }
.actionbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.actionbar .spacer { flex: 1; }
.dl-group { position: relative; }
.dl-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 6px; display: none; z-index: 30; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7);
}
.dl-group.open .dl-menu { display: block; }
.dl-menu button {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  background: none; border: none; color: var(--text); font: inherit; font-size: 13px;
  padding: 9px 11px; border-radius: 7px; cursor: pointer; text-align: left;
}
.dl-menu button:hover { background: var(--bg-3); }
.dl-menu button span { color: var(--muted-2); font-size: 11px; }

.masonry { columns: 4 240px; column-gap: 14px; padding: 28px 0; }
.masonry figure { margin: 0 0 14px; break-inside: avoid; position: relative; cursor: pointer; border-radius: 8px; overflow: hidden; background: var(--bg-3); }
.masonry img { width: 100%; transition: transform .4s ease; }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figure::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.4));
  opacity: 0; transition: opacity .2s;
}
.masonry figure:hover::after { opacity: 1; }

.subhead { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin: 8px 0 18px; }

/* video block */
.video-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-side { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.video-side h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.video-side p { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.video-side .btn { width: 100%; justify-content: center; margin-bottom: 10px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(6,8,11,.94); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 30px 90px -20px #000; }
.lightbox__close { position: absolute; top: 22px; right: 26px; font-size: 26px; color: var(--muted); cursor: pointer; background: none; border: none; }
.lightbox__close:hover { color: var(--text); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 20px; }
.lightbox__nav:hover { background: rgba(255,255,255,.14); }
.lightbox__nav.prev { left: 26px; }
.lightbox__nav.next { right: 26px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot .wrap { padding: 26px 28px; display: flex; gap: 18px; align-items: center; color: var(--muted-2); font-size: 12px; }
.foot .spacer { flex: 1; }

/* ---------- Status pills (shoot lifecycle) ---------- */
.pill--upload  { color: #ffd27a; border-color: #6b531f; background: #211b0f; } /* awaiting upload */
.pill--editing { color: #c69bff; border-color: #4a3a6e; background: #160f24; }
.pill--ready   { color: #8fc0ff; border-color: #284a72; background: #0f1824; }

/* ---------- Nextcloud-backed badge ---------- */
.nc-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted-2); letter-spacing: .03em; }
.nc-tag i { width: 7px; height: 7px; border-radius: 50%; background: #7ee2a8; box-shadow: 0 0 0 3px #1f5d3c33; }

/* ---------- Shoot folders (navigable list) ---------- */
.folders { margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.folder {
  display: grid; grid-template-columns: 34px 1fr 130px 120px 80px; gap: 14px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s;
}
.folder:last-child { border-bottom: none; }
.folder:hover { background: var(--bg-2); }
.folder .ico { font-size: 18px; color: var(--brand); }
.folder .nm { font-weight: 500; }
.folder .meta { color: var(--muted); font-size: 13px; }
.folder .chev { color: var(--muted-2); text-align: right; }

/* ---------- Upload portal: action bar bits ---------- */
.counter { font-size: 12.5px; color: var(--muted); }
.submit-pill { font-size: 12px; font-weight: 600; background: rgba(0,0,0,.18); padding: 2px 8px; border-radius: 999px; margin-left: 2px; }
.sent-pill { display: none; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ok); background: #0f1f17; border: 1px solid #1f5d3c; padding: 7px 13px; border-radius: 999px; }

/* ---------- Upload portal: job cards ---------- */
.job { border: 1px solid var(--line); border-radius: 13px; background: var(--bg-3); overflow: hidden; margin-bottom: 12px; }
.job-head { display: flex; align-items: center; gap: 13px; padding: 14px 16px; cursor: pointer; transition: background .12s; }
.job-head:hover { background: var(--bg-2); }
.chev { font-size: 11px; color: var(--faint); width: 14px; text-align: center; }
.job-num { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--brand); background: rgba(41,171,226,.14); padding: 3px 8px; border-radius: 6px; flex-shrink: 0; }
.job-title { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-title.empty { color: var(--text); }
.job-files { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.job-minibar { width: 96px; height: 5px; border-radius: 999px; background: var(--track); overflow: hidden; flex-shrink: 0; }
.job-minibar > i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width .2s ease; }
.job-badge { font-size: 11px; color: var(--muted); width: 38px; text-align: right; flex-shrink: 0; }
.icon-btn { width: 26px; height: 26px; border: none; background: transparent; color: var(--faint); cursor: pointer; font-size: 14px; border-radius: 6px; flex-shrink: 0; transition: background .12s, color .12s; }
.icon-btn:hover { background: rgba(192,57,43,.18); color: #e58a7e; }

.job-body { padding: 6px 16px 18px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); }
.job-body.collapsed { display: none; }
.fgroup { display: flex; flex-direction: column; gap: 6px; }
.fgroup.first { margin-top: 14px; }
.flabel { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.input, .textarea { border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--bg-2); outline: none; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.input { height: 44px; padding: 0 13px; font-size: 14.5px; }
.textarea { min-height: 60px; resize: none; padding: 10px 13px; font-size: 14px; line-height: 1.5; }
.input:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(41,171,226,.22); }

.dz-grid { display: grid; grid-template-columns: 1fr; gap: 13px; }
.dz { position: relative; display: flex; align-items: center; gap: 13px; padding: 15px 16px; border: 1.5px dashed var(--line2); border-radius: 11px; cursor: pointer; transition: border-color .15s, background .15s; }
.dz input { display: none; }
.dz--edit { background: var(--bg-2); }
.dz--edit:hover, .dz--edit.drag { border-color: var(--brand); background: rgba(41,171,226,.08); }
.dz--extra { background: var(--bg); }
.dz--extra:hover, .dz--extra.drag { border-color: var(--muted); background: var(--bg-2); }
.dz-ico { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; flex-shrink: 0; }
.dz-ico--edit { background: rgba(41,171,226,.16); color: var(--brand); }
.dz-ico--extra { background: var(--bg-3); color: var(--muted); font-size: 22px; font-weight: 500; }
.dz--fp { background: var(--bg-2); }
.dz--fp:hover, .dz--fp.drag { border-color: #b39ddb; background: rgba(179,157,219,.12); }
.dz-ico--fp { background: rgba(179,157,219,.18); color: #cbb4ef; }
.dz-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dz-title { font-weight: 600; font-size: 14.5px; }
.dz-sub { font-size: 12px; color: var(--muted); }

.filelist { display: none; flex-direction: column; gap: 7px; max-height: 320px; overflow: auto; padding-right: 2px; }
.filelist.has { display: flex; }
.filerow { display: flex; align-items: flex-start; gap: 13px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.thumb { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; display: block; flex-shrink: 0; }
.thumb-ph { width: 40px; height: 40px; border-radius: 9px; background: var(--bg-3); color: var(--faint); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.fr-main { flex: 1; min-width: 0; }
.fr-top { display: flex; align-items: center; gap: 9px; }
.fr-name { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-tag { font-size: 8.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line2); padding: 2px 6px; border-radius: 999px; flex-shrink: 0; }
.fr-tag--renamed { color: #ffd27a; border-color: #6b531f; background: #211b0f; }
.fr-status { margin-left: auto; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; flex-shrink: 0; }
.fr-bar { margin-top: 8px; height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.fr-bar > i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .25s ease; }
.fr-meta { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fr-metalabel { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-pct { font-size: 11px; font-weight: 600; flex-shrink: 0; }

/* per-job submit row + sent state */
.job-actions { display: flex; align-items: center; gap: 12px; justify-content: flex-end; margin-top: 2px; }
.job-actions .hint { flex: 1; font-size: 12px; color: var(--muted); }
.job-sent { display: none; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--ok); background: #0f1f17; border: 1px solid #1f5d3c; padding: 4px 10px; border-radius: 999px; flex-shrink: 0; }
.job.sent .job-sent { display: inline-flex; }
.job.sent .job-minibar, .job.sent .job-badge { display: none; }

.footer-add { width: 100%; height: 50px; border: 1.5px dashed var(--line2); border-radius: 11px; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 500; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 2px; transition: border-color .15s, color .15s, background .15s; }
.footer-add:hover { border-color: var(--brand); color: var(--brand); background: rgba(41,171,226,.06); }
.footer-add .plus { font-size: 18px; line-height: 1; }

@media (max-width: 820px) {
  /* Collapse the top nav into a hamburger instead of hiding it entirely. */
  .brandbar__inner { padding: 14px 18px; flex-wrap: wrap; gap: 14px; }
  .nav-toggle { display: inline-flex; }
  .who { display: none; }                 /* free up space on the top row */
  .nav {
    order: 10; width: 100%; display: none; /* shown when the bar is open */
    flex-direction: column; gap: 0; margin-left: 0;
    border-top: 1px solid var(--line); padding-top: 6px;
  }
  .brandbar.open .nav { display: flex; }
  .nav a { padding: 11px 2px; font-size: 13px; }
  .video-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
  .folder { grid-template-columns: 34px 1fr 70px; }
  .folder .meta:nth-of-type(2) { display: none; }
  .dz-grid { grid-template-columns: 1fr; }
}
/* Between the phone breakpoint and the max content width (e.g. a 1080px portrait monitor) the
   layout ran edge-to-edge with only 28px of side padding — give it real margins. */
@media (min-width: 821px) and (max-width: 1300px) {
  .wrap, .brandbar__inner, .foot .wrap { padding-left: clamp(32px, 5vw, 72px); padding-right: clamp(32px, 5vw, 72px); }
}
/* Wrap wide admin tables so they scroll sideways within their own box instead of pushing the
   whole page wider than the phone screen. */
.tscroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Address autocomplete (Google Places, proxied via /api/address-suggest) */
.ac-wrap { position: relative; display: inline-block; }
.ac-wrap--block { display: block; }
.ac-menu { position: absolute; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: 360px; max-height: 240px; overflow-y: auto;
           background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.ac-item { padding: 10px 13px; font-size: 13.5px; line-height: 1.3; cursor: pointer; color: var(--text); border-bottom: 1px solid var(--line); white-space: nowrap; }
.ac-item:last-of-type { border-bottom: none; }
.ac-item:hover, .ac-item.sel { background: var(--bg-3); }
.ac-foot { padding: 5px 13px; font-size: 10px; letter-spacing: .04em; color: var(--muted-2); text-align: right; }

/* Resume prompt — offered on load when a previous upload was left unfinished */
.resume-prompt { margin: 0 0 18px; padding: 14px 16px; border: 1px solid #6b531f; background: #211b0f; border-radius: 12px; }
.resume-prompt__head { font-weight: 600; color: #ffd27a; font-size: 14px; margin-bottom: 10px; }
.resume-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid rgba(255,210,122,.15); }
.resume-row:first-of-type { border-top: none; }
.resume-row__label { flex: 1; min-width: 180px; font-size: 13px; color: var(--text); }
.resume-dismiss { margin-top: 12px; }
.resume-cancel { color: #ff9a9a; border-color: #5e2b2b; }
.resume-cancel:hover { color: #ffb3b3; border-color: #7a3838; background: #2a1616; }

/* Notification bell */
.notif-wrap { position:relative; display:inline-block; margin-right:6px; }
.notif-bell { position:relative; display:inline-flex; align-items:center; background:none; border:none; cursor:pointer; line-height:1; padding:6px; border-radius:8px; color:var(--muted); transition:color .15s, background .15s; }
.notif-bell:hover { background:var(--bg-3); color:var(--text); }
.notif-bell.notif-ask { color:var(--brand); animation:notifpulse 2s ease-in-out infinite; }
@keyframes notifpulse { 0%,100%{opacity:1;} 50%{opacity:.5;} }
.notif-badge { position:absolute; top:-2px; right:-2px; background:#E01E37; color:#fff; font-size:10px; font-weight:700; min-width:16px; height:16px; padding:0 4px; border-radius:999px; display:flex; align-items:center; justify-content:center; }
.notif-badge[hidden] { display:none; }   /* the class's display:flex would otherwise override the hidden attribute */
.notif-panel { position:absolute; right:0; top:38px; width:340px; max-width:86vw; background:var(--bg-2); border:1px solid var(--line); border-radius:12px; box-shadow:0 12px 40px rgba(0,0,0,.45); z-index:60; overflow:hidden; }
.notif-panel-head { font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted-2); padding:12px 14px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:10px; }
.notif-readall { background:none; border:none; color:var(--brand); font-size:11px; letter-spacing:0; text-transform:none; cursor:pointer; padding:0; }
.notif-readall:hover { text-decoration:underline; }
.notif-readall:disabled { color:var(--muted-2); cursor:default; text-decoration:none; }
.notif-list { max-height:360px; overflow:auto; }
.notif-row { display:flex; gap:10px; padding:11px 14px; border-bottom:1px solid var(--line); }
.notif-row.notif-critical { background:#1a0f10; }
.notif-ic { flex:none; }
.notif-body { display:flex; flex-direction:column; gap:2px; font-size:13px; }
.notif-msg { color:var(--muted); font-size:12px; }
.notif-when { color:var(--muted-2); font-size:11px; }
.notif-empty { padding:18px; text-align:center; color:var(--muted-2); font-size:13px; }
/* On phones the bell isn't at the screen edge, so anchoring the panel to it runs off-screen.
   Pin the panel to the viewport instead. (Placed AFTER the base .notif-panel so it wins.) */
@media (max-width: 820px) {
  .notif-panel { position: fixed; top: 60px; left: 12px; right: 12px; width: auto; max-width: none; }
}
.notif-all { display:block; text-align:center; padding:10px; font-size:12px; color:var(--brand); border-top:1px solid var(--line); text-decoration:none; }
.notif-all:hover { background:var(--bg-3); }
