/* mannanjobs Portal
   Modern bright Job Fair & Walk-In Registration Portal
   TYPE: Plus Jakarta Sans throughout */

:root {
  color-scheme: light;
  --teal: #0b4a52; --teal-2: #0f6570; --teal-3: #e6f4f5;
  --gold: #f2a516; --gold-2: #fff4dc;
  --bg: #f4f7f8; --paper: #ffffff; --ink: #102027; --muted: #55656d; --line: #dfe7ea;
  --red: #c8372d; --red-bg: #fdecea; --green: #1d7a46; --green-bg: #e5f5eb; --blue-bg: #e7f0fb;
  --radius: 14px; --shadow: 0 2px 6px rgba(10,40,45,.04), 0 10px 28px rgba(10,40,45,.07);
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; overflow-x: clip; }
a { color: var(--teal-2); }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 max(4vw, 16px); }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: 10px; border: 0; background: var(--teal); color: #fff !important; font: 600 15px/1 inherit; font-family: inherit;
  text-decoration: none; cursor: pointer; transition: background .15s; white-space: nowrap; }
.btn:hover { background: var(--teal-2); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn-gold { background: var(--gold); color: #1b1300 !important; }
.btn-gold:hover { background: #ffb735; }
.btn-ghost { background: transparent; color: var(--ink) !important; border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--teal-3); }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #a92b22; }
.btn-light { background: #fff; color: var(--teal) !important; }
.btn-light:hover { background: var(--gold-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number],
input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: 16px/1.4 inherit; font-family: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-2); outline: none; box-shadow: 0 0 0 3px rgba(15,101,112,.18); }
.field { margin-bottom: 16px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.req { color: var(--red); }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 15px; border: 1px solid transparent; }
.alert-success { background: var(--green-bg); color: var(--green); border-color: rgba(29,122,70,.25); }
.alert-error { background: var(--red-bg); color: var(--red); border-color: rgba(200,55,45,.25); }
.alert-info { background: var(--blue-bg); border-color: rgba(30,90,160,.2); }
.flash-wrap { padding-top: 16px; }

/* ---------- Cards, chips, tables ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 18px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--teal-3); color: var(--teal-2); white-space: nowrap; }
.chip-gold { background: var(--gold-2); color: #8a5a00; }
.chip-red { background: var(--red-bg); color: var(--red); }
.chip-green { background: var(--green-bg); color: var(--green); }
.chip-grey { background: var(--line); color: var(--muted); }
.badge { margin-left: auto; background: var(--gold); color: #1b1300; border-radius: 99px; font-size: 12px; font-weight: 700; padding: 1px 8px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  table.stack thead { display: none; }
  table.stack tr { display: grid; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.stack td { border: 0; padding: 3px 0 3px 8.5em; position: relative; text-align: left; }
  table.stack td::before { content: attr(data-l); position: absolute; left: 0; width: 8em; color: var(--muted); font-size: 13px; }
  table.stack td:empty { display: none; }
}
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

.avatar { --h: 180; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: hsl(var(--h) 55% 88%); color: hsl(var(--h) 60% 24%); font-weight: 700; font-size: 14px; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #9aa7ab; }
.dot.on { background: #22a35a; }

/* ---------- Public: top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--teal); color: #fff; }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--gold); color: var(--teal); font-weight: 800; font-size: 22px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 19px; letter-spacing: .02em; }
.brand-text small { font-size: 12px; opacity: .8; }
.pubnav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pubnav a:not(.btn) { color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; }
.pubnav a:not(.btn):hover, .pubnav a.on { background: rgba(255,255,255,.12); }
.pubnav .btn { background: var(--gold); color: #1b1300 !important; margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 0; background: rgba(255,255,255,.12); color: inherit; font-size: 20px; cursor: pointer; }
@media (max-width: 900px) {
  .layout-public .nav-toggle { display: block; }
  .pubnav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--teal); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .pubnav.open { display: flex; }
  .pubnav .btn { margin: 6px 0 0; }
}

/* ---------- Public: hero ---------- */
.hero { background: radial-gradient(circle at 82% 18%, rgba(242,165,22,.18), transparent 46%), linear-gradient(135deg, #063239 0%, #0b4a52 55%, #0f6570 100%); color: #fff; position: relative; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center; padding-top: clamp(32px, 5vw, 68px); padding-bottom: clamp(46px, 6vw, 82px); }
.hero h1 { font-size: clamp(32px, 4.3vw, 52px); line-height: 1.06; margin-bottom: 16px; letter-spacing: -.015em; }
.hero p.lead { font-size: 17.5px; opacity: .92; max-width: 34em; margin-bottom: 24px; }
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); padding: 6px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.hero-art { position: relative; min-height: 360px; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-event-card { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 20px; box-shadow: 0 22px 50px rgba(4,25,28,.28); display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 18px; align-items: start; border: 1px solid rgba(255,255,255,.25); }
.hero-event-card img { width: 126px; height: 164px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }
.hero-event-card h2 { font-size: 21px; margin: 8px 0 8px; color: var(--ink); }
.hero-event-meta { font-size: 13.5px; color: var(--muted); display: grid; gap: 5px; margin-bottom: 14px; }
@media (max-width: 520px) { .hero-event-card { grid-template-columns: minmax(0, 1fr); } .hero-event-card img { width: 100%; height: 220px; } }
.qr-showcase { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; background: linear-gradient(135deg, #ffffff 0%, #eff8f8 100%); border: 1.5px solid rgba(15,101,112,.18); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.qr-mini-box { width: 200px; aspect-ratio: 1; padding: 10px; background: #fff; border: 2px solid var(--teal); border-radius: 14px; box-shadow: 0 6px 18px rgba(11,74,82,.1); }
.qr-mini-box svg { width: 100%; height: 100%; display: block; }
@media (max-width: 720px) { .qr-showcase { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; } }
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sector-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px; box-shadow: 0 2px 6px rgba(10,40,45,.04); transition: border-color .15s, transform .15s, background .15s, box-shadow .15s; }
.sector-card:hover { border-color: var(--teal-2); background: var(--teal-3); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(11,74,82,.1); }
.sector-card span:last-child { color: var(--teal-2); font-size: 16px; }
@media (max-width: 860px) { .hero-in { grid-template-columns: minmax(0, 1fr); } .hero-art { min-height: 0; } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -36px; position: relative; z-index: 2; }
.stat { background: var(--paper); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(28px, 3.2vw, 38px); color: var(--teal-2); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.section { padding: clamp(48px, 6vw, 88px) 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.section-alt .feature { background: var(--bg); }
.feature .fi { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--teal); color: var(--gold); font-size: 22px; margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .features { grid-template-columns: minmax(0, 1fr); } }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #1b1300; display: grid; place-items: center; font-weight: 800; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.mela-list { display: grid; gap: 16px; }
.mela { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 20px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.mela-date { background: var(--teal); color: #fff; border-radius: 12px; text-align: center; padding: 10px 6px; }
.mela-date b { display: block; font-size: 30px; line-height: 1; }
.mela-date span { font-size: 13px; text-transform: uppercase; opacity: .85; }
.mela h3 { margin-bottom: 4px; }
.mela .meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 14px; }
.mela-companies { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mela-companies-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.company-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.company-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 5px 10px; border-radius: 8px; font-size: 13px; line-height: 1.35; font-weight: 600; background: var(--teal-3); color: var(--teal); border: 1px solid rgba(15,101,112,.15); max-width: 100%; overflow-wrap: anywhere; }
.company-chip-guest { background: var(--gold-2); color: #7a4e00; border-color: rgba(242,165,22,.35); }
.company-chip-more { background: var(--gold-2); color: #8a5a00; border-color: rgba(242,165,22,.3); }
.chip-tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; opacity: .8; background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 4px; flex: none; }
.attendee-list { display: grid; gap: 10px; }
.attendee-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.attendee-row input[name="attendee_role[]"] { grid-column: 1 / 3; }
.attendee-row input[name="attendee_package[]"] { grid-column: 1 / -1; }
.attendee-row select, .attendee-row input { min-height: 38px; padding: 7px 10px; font-size: 14px; }
@media (max-width: 520px) { .attendee-row { grid-template-columns: minmax(0, 1fr) auto; } .attendee-row select { grid-column: 1 / 2; } .attendee-row input[name="attendee_name[]"] { grid-column: 1 / -1; } .attendee-row input[name="attendee_role[]"] { grid-column: 1 / -1; } }
.mela-poster-thumb { width: 92px; height: 118px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.mela-poster-full { max-width: 420px; width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
.company-builder { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; background: var(--bg); }
.company-builder-row { display: flex; gap: 8px; margin-bottom: 10px; }
.company-builder-row input { flex: 1; }
.company-chip-del { background: none; border: 0; padding: 0 2px; color: inherit; font: inherit; font-weight: 700; cursor: pointer; opacity: .7; line-height: 1; }
.company-chip-del:hover { opacity: 1; color: var(--red); }
.admin-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 14px 18px; border-radius: var(--radius); background: var(--teal-3); border: 1px solid rgba(15,101,112,.2); }
@media (max-width: 640px) { .mela { grid-template-columns: 72px minmax(0, 1fr); } .mela > :last-child { grid-column: 1 / -1; } .mela-date b { font-size: 24px; } }

.cta-band { background: var(--gold); color: #1b1300; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 40px; }
.cta-band h2 { margin: 0; }
.cta-band .btn { background: var(--teal); }
.cta-band .btn-light { background: #fff; color: var(--teal) !important; }
.cta-band .btn-light:hover { background: #f2f7f7; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; }
.contact-lines div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-lines b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.footer { background: #082f35; color: #cfe1e3; padding-top: 48px; }
.footer-in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-bottom: 32px; }
.footer h4 { color: #fff; margin: 0 0 10px; }
.footer a, .footer span { display: block; color: #cfe1e3; text-decoration: none; padding: 3px 0; }
.footer a:hover { color: var(--gold); }
.footer .brand { color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.footer .brand-mark { display: grid; place-items: center; }
.footer .brand-text { display: flex; flex-direction: column; gap: 2px; }
.footer .muted { color: #9fbcc0; max-width: 30em; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; font-size: 14px; color: #9fbcc0; }
@media (max-width: 760px) { .footer-in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Auth pages ---------- */
.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: var(--teal); color: #fff; padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.auth-side h1 { font-size: clamp(30px, 3.6vw, 44px); }
.auth-side ul { padding-left: 20px; opacity: .92; }
.auth-side li { margin-bottom: 8px; }
.auth-form { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.auth-form .card { max-width: 560px; width: 100%; margin: 0 auto; padding: clamp(20px, 3vw, 32px); }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-side { padding-block: 32px; } }

/* ---------- Portal layout ---------- */
.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--teal); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px; }
.brand-side { padding: 4px 6px 20px; }
.sidenav { display: flex; flex-direction: column; gap: 2px; }
.sidenav a { display: flex; align-items: center; gap: 12px; color: #dcecee; text-decoration: none; padding: 11px 12px; border-radius: 10px; font-weight: 500; font-size: 15px; }
.sidenav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidenav a.on { background: #fff; color: var(--teal); font-weight: 700; }
.sidenav .ico { width: 22px; text-align: center; opacity: .9; }
.sidenav-label { margin: 18px 12px 6px; font-size: 12px; font-weight: 700; color: var(--gold); }
.side-foot { margin-top: auto; padding: 18px 12px 4px; font-size: 14px; color: #a8c7cb; }
.side-foot a { color: #fff; }
.app-body { display: flex; flex-direction: column; min-height: 100vh; }
.appbar { display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 3vw, 32px); background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.appbar-title { font-size: 21px; margin: 0; }
.appbar-user { margin-left: auto; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.appbar-user span { display: flex; flex-direction: column; line-height: 1.2; }
.appbar-user small { color: var(--muted); font-size: 12.5px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-main { padding: clamp(16px, 3vw, 32px); flex: 1; max-width: 1280px; width: 100%; }
.layout-app .nav-toggle { background: var(--teal-3); color: var(--ink); }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .layout-app .nav-toggle { display: block; margin-left: 0; }
  .appbar-user span { display: none; }
}

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); }
.kpi b { display: block; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 14px; }
.kpi.hl { background: var(--teal); color: #fff; border-color: var(--teal); }
.kpi.hl span { color: #cde4e6; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .cols { grid-template-columns: minmax(0, 1fr); } }

.welcome { background: var(--teal); color: #fff; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.welcome h2 { font-size: 24px; margin: 0 0 4px; }
.welcome p { margin: 0; opacity: .85; }

.ann { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ann:last-child { border-bottom: 0; padding-bottom: 0; }
.ann h4 { margin: 0 0 4px; font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ann p { margin: 0 0 4px; font-size: 15px; }
.ann.urgent { border-left: 4px solid var(--red); padding-left: 12px; }
.ann.important { border-left: 4px solid var(--gold); padding-left: 12px; }

.list-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; }
.list-row .t { font-weight: 600; display: block; }
.list-row small { color: var(--muted); }

/* ---------- Forum ---------- */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cat-tabs a { padding: 8px 14px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; }
.cat-tabs a.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.thread-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.thread-row:last-child { border-bottom: 0; }
.thread-row a.t { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 16px; }
.thread-row a.t:hover { color: var(--teal-2); }
.thread-row .meta { color: var(--muted); font-size: 13.5px; }
.thread-row .count { text-align: center; min-width: 64px; }
.thread-row .count b { display: block; font-size: 18px; }
.thread-row .count span { font-size: 12px; color: var(--muted); }
.post { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.post:last-of-type { border-bottom: 0; }
.post-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 6px; }
.post-head small { color: var(--muted); }
.post-body { overflow-wrap: anywhere; }
.post.op { background: var(--teal-3); margin: -20px -20px 0; padding: 20px; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line); }
.inline-form { display: inline; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; font: inherit; font-size: 13px; text-decoration: underline; }

/* ---------- Chat & messages ---------- */
.chat { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: calc(100vh - 170px); min-height: 420px; padding: 0; overflow: hidden; }
.chat-scroll { overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.bubble-row { display: flex; gap: 10px; align-items: flex-end; max-width: 78%; }
.bubble-row.me { align-self: flex-end; flex-direction: row-reverse; }
.bubble { background: var(--bg); border: 1px solid var(--line); padding: 10px 14px; border-radius: 16px 16px 16px 4px; overflow-wrap: anywhere; }
.bubble-row.me .bubble { background: var(--teal); color: #fff; border-color: var(--teal); border-radius: 16px 16px 4px 16px; }
.bubble-row.me .bubble a { color: #fff; }
.bubble .who { font-size: 12.5px; font-weight: 700; color: var(--teal-2); display: block; margin-bottom: 2px; }
.bubble .when { font-size: 11.5px; opacity: .7; display: block; margin-top: 4px; }
.chat-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); background: var(--paper); }
.chat-form textarea { min-height: 44px; height: 44px; resize: none; }
.chat-day { align-self: center; font-size: 12.5px; color: var(--muted); background: var(--line); padding: 2px 10px; border-radius: 99px; }
@media (max-width: 640px) { .bubble-row { max-width: 92%; } .chat { height: calc(100vh - 140px); } }

.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; height: calc(100vh - 170px); min-height: 460px; }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; }
.inbox-list .search { padding: 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); }
.convo { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.convo:hover { background: var(--bg); }
.convo.on { background: var(--teal-3); }
.convo .grow { flex: 1; }
.convo .nm { font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.convo .nm small { font-weight: 400; color: var(--muted); white-space: nowrap; }
.convo .pv { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo.unread .pv { color: var(--ink); font-weight: 600; }
.inbox-pane { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; }
.pane-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pane-head small { color: var(--muted); display: block; }
.back-link { display: none; }
@media (max-width: 800px) {
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox.has-convo .inbox-list { display: none; }
  .inbox:not(.has-convo) .inbox-pane { display: none; }
  .back-link { display: inline-flex; }
}

/* ---------- Directory ---------- */
.filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; margin-bottom: 18px; }
@media (max-width: 760px) { .filters { grid-template-columns: minmax(0, 1fr); } }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.person { display: flex; flex-direction: column; gap: 10px; }
.person-top { display: flex; gap: 12px; align-items: center; }
.person-top strong { display: block; }
.person-top small { color: var(--muted); display: block; }
.person .lines { font-size: 14px; color: var(--muted); display: grid; gap: 2px; }
.person .btn-row { margin-top: auto; }

.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.profile-head h2 { margin: 0; font-size: 24px; }
dl.facts { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 16px; margin: 0; }
dl.facts dt { color: var(--muted); font-size: 14px; }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { dl.facts { grid-template-columns: minmax(0, 1fr); } dl.facts dd { margin-bottom: 8px; } }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); padding: 0 10px; }
.pager span.on { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- QR Scanner Poster ---------- */
.qr-poster { max-width: 680px; margin: 0 auto; background: #fff; color: #14222a; border: 3px solid #0b4a52; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); text-align: center; }
.qr-poster-top { background: #0b4a52; color: #fff; padding: 26px 24px 22px; }
.qr-badge { display: inline-block; background: #f2a516; color: #1b1300; font-weight: 800; font-size: 13px; letter-spacing: .04em; padding: 5px 14px; border-radius: 99px; margin-bottom: 12px; }
.qr-poster-top h1 { margin: 0 0 8px; font-size: clamp(24px, 3.5vw, 34px); color: #fff; }
.qr-when { margin: 0; font-size: 16px; opacity: .94; }
.qr-poster-mid { padding: 28px 24px 20px; }
.qr-frame { width: min(320px, 72vw); aspect-ratio: 1; margin: 0 auto 18px; padding: 12px; background: #fff; border: 2px solid #dde5e7; border-radius: 14px; }
.qr-frame svg { width: 100%; height: 100%; display: block; }
.qr-poster-mid h2 { margin: 0 0 6px; font-size: 22px; color: #0b4a52; }
.qr-sub { margin: 0 auto; max-width: 34em; color: #47585f; font-size: 15px; }
.qr-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 24px 24px; }
.qr-steps div { background: #f5f7f7; border: 1px solid #dde5e7; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr-steps b { width: 28px; height: 28px; border-radius: 50%; background: #f2a516; color: #1b1300; display: grid; place-items: center; font-size: 14px; }
.qr-steps span { font-size: 13.5px; font-weight: 600; color: #14222a; }
.qr-poster-foot { background: #e3f1f2; color: #0b4a52; padding: 12px 18px; font-size: 13.5px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .qr-steps { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .sidebar, .appbar, .topbar, .footer, .no-print, .flash-wrap { display: none !important; }
  .app, .app-body, .app-main, .public-main, .section { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
  body { background: #fff !important; }
  .qr-poster { box-shadow: none !important; max-width: 100% !important; break-inside: avoid; }
}

/* ---------- Clean scroll-reveal animations ---------- */
.has-anim [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-d, 0ms); will-change: opacity, transform; }
.has-anim [data-reveal].is-visible { opacity: 1; transform: none; }
.about-band { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 820px) { .about-band { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .has-anim [data-reveal] { opacity: 1 !important; transform: none !important; }
}
