/* FABS Hub styles
   Blue and white: the UUM photo behind everything, tinted blue, with frosted-glass cards on top.
   The --gold variables are the accent colour (now light blue); the names are kept from the MAMG Hub code. */

:root {
  --charcoal: #06184f;
  --charcoal-2: #0b2468;
  --gold: #9ccbff;          /* accent: light blue (the old gold slot) */
  --gold-hover: #c4e0ff;
  --gold-ink: #1d4ed8;          /* gold dark enough to read as text on white */
  --gold-soft: rgba(130, 185, 255, .14);
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #15161a;
  --muted: #5b5e66;
  --faint: #8b8e96;
  --line: #e7e4dc;
  --line-2: #d9d5ca;
  --red: #b42318;
  --on-dark: #f4f3ef;
  --on-dark-muted: rgba(244, 243, 239, .74);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(6, 24, 79, .05), 0 6px 18px rgba(6, 24, 79, .05);
  --shadow-lift: 0 2px 4px rgba(6, 24, 79, .05), 0 18px 40px rgba(6, 24, 79, .10);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--charcoal); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--on-dark); background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(6, 24, 79, .9); border-bottom-color: rgba(255, 255, 255, .08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
}
/* when opened from the home screen, keep clear of the phone's status bar */
.site-header { height: calc(var(--header-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand b { color: var(--gold); font-weight: 700; }
.brand-short { display: none; }
@media (max-width: 1060px) { .site-header .brand-long { display: none; } .site-header .brand-short { display: inline; } }
.brand-mark { flex: none; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--on-dark-muted);
  padding: 8px 12px; border-radius: 99px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--on-dark); background: rgba(255, 255, 255, .08); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.workspace-pill {
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--on-dark-muted); border: 1px solid rgba(255, 255, 255, .18); border-radius: 99px; padding: 5px 11px;
}
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 99px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .18); color: var(--on-dark); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.site-header :focus-visible { outline-color: var(--gold); }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .workspace-pill { display: none; }
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; margin: 0;
    flex-direction: column; gap: 2px; padding: 8px;
    background: rgba(6, 24, 79, .97); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    opacity: 0; visibility: hidden; translate: 0 -8px; transition: opacity .2s, translate .2s, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; translate: 0 0; }
  .nav a { padding: 12px 14px; border-radius: 10px; font-size: 15px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(440px, 64svh, 560px); display: flex; align-items: center;
  background: transparent; color: var(--on-dark);   /* the UUM page photo shows through */
}
.hero-media { position: absolute; inset: 0 0 0 auto; width: 58%; z-index: -2; }
.hero-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  filter: contrast(1.04);
}
.hero-photo.failed { visibility: hidden; }
/* Built-in banner: the FABS logo, whole, with a soft glow (an uploaded banner photo fills the space instead) */
.hero-photo.is-logo {
  object-fit: contain; object-position: 50% 50%; padding: calc(var(--header-h) + 28px) 8% 40px;
  -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 18px 50px rgba(0, 0, 0, .45));
}
.hero-media:has(.is-logo)::before {
  content: ""; position: absolute; inset: 10% 5%; z-index: -1;
  background: radial-gradient(closest-side, rgba(60, 90, 255, .35), rgba(130, 185, 255, .10) 60%, transparent);
}
.hero::before {               /* blue shade on the left so the white text stays readable */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 12% 85%, rgba(130, 185, 255, .10), transparent 60%),
    linear-gradient(90deg, rgba(6, 24, 79, .6) 0%, rgba(6, 24, 79, .35) 45%, transparent 70%),
    linear-gradient(0deg, rgba(6, 24, 79, .7) 0%, transparent 25%);
}
.hero-lines {                 /* very faint light lines */
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background:
    linear-gradient(115deg, transparent 49.85%, rgba(130, 185, 255, .16) 50%, transparent 50.15%) 0 0 / 100% 100%,
    linear-gradient(65deg, transparent 49.9%, rgba(130, 185, 255, .08) 50%, transparent 50.1%) -20% 0 / 70% 100% no-repeat;
}
.hero-content { width: 100%; padding-top: calc(var(--header-h) + 32px); padding-bottom: 48px; }
.eyebrow {
  margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero h1 { margin: 0; max-width: 12ch; font-size: clamp(36px, 4.8vw, 62px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.tagline { margin: 10px 0 0; font-size: clamp(19px, 2.2vw, 26px); font-weight: 600; letter-spacing: -.02em; color: var(--gold); }
.hero-text { margin: 12px 0 0; max-width: 44ch; font-size: clamp(15px, 1.2vw, 17px); color: var(--on-dark-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-stats { margin: 20px 0 0; font-size: 13px; color: var(--on-dark-muted); min-height: 1.5em; }
.hero-stats b { color: var(--on-dark); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 99px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-gold { background: #fff; color: var(--charcoal); box-shadow: 0 8px 24px rgba(0, 20, 80, .3); }
.btn-gold:hover { background: #e3efff; transform: translateY(-1px); }
.btn-gold .btn-ico { display: inline-grid; transition: transform .2s var(--ease); }
.btn-gold:hover .btn-ico { transform: translateY(2px); }
.btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #1a2266; }
.btn-line { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.text-btn { background: none; border: 0; padding: 0; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-btn:hover { color: var(--ink); }

/* Entrance animation */
.fade-up { animation: fadeUp .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: settle 2.4s var(--ease) both; }
}
@keyframes settle { from { transform: scale(1.06); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Phones: a compact banner, the photo sits behind the text */
@media (max-width: 800px) {
  .hero { min-height: 0; align-items: flex-end; }
  .hero-media { width: 80%; right: -16%; }
  .hero-photo {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
    object-position: 50% 0%;
  }
  .hero::before {
    background:
      linear-gradient(0deg, rgba(6, 24, 79, .5) 0%, rgba(6, 24, 79, .25) 50%, transparent 100%);
  }
  /* the logo sits small at the top-right, above the title */
  .hero-media:has(.is-logo) { width: 150px; height: 150px; inset: calc(var(--header-h) + 16px + env(safe-area-inset-top, 0px)) 16px auto auto; }
  .hero-photo.is-logo { padding: 0; }
  .hero-media:has(.is-logo)::before { inset: -20%; }
  .hero:has(.is-logo) .hero-content { padding-top: calc(var(--header-h) + 190px); }
  .hero-content { padding-top: calc(var(--header-h) + 56px); padding-bottom: 28px; }
  .eyebrow { font-size: 10.5px; letter-spacing: .12em; gap: 8px; margin-bottom: 10px; }
  .eyebrow::before { width: 18px; }
  .hero h1 { font-size: 34px; }
  .tagline { font-size: 19px; margin-top: 6px; }
  .hero-text { font-size: 14.5px; margin-top: 10px; }
  .hero-ctas { margin-top: 18px; gap: 8px; }
  .hero-ctas .btn { flex: 1 1 auto; height: 44px; padding: 0 14px; font-size: 14px; }
  .hero-stats { margin-top: 14px; font-size: 12.5px; }
}

/* ---------- Page background: the UUM photo, tinted blue, staying still behind everything ---------- */
body { background: var(--charcoal); }
/* Default (no photo uploaded): Dewan Muadzam Shah, UUM (DelawareMatt, CC BY 3.0, Wikimedia Commons)
   under a blue tint so the white text stays readable. Change it in Admin -> "Page background". */
.page-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 24, 79, .80) 0%, rgba(10, 40, 120, .62) 50%, rgba(6, 24, 79, .84) 100%),
    url("img/uum-dmas-1920.jpg") 50% 100% / cover no-repeat,
    var(--charcoal);
}
@media (max-width: 800px) and (orientation: portrait) {
  .page-bg { background-image: linear-gradient(180deg, rgba(6, 24, 79, .80) 0%, rgba(10, 40, 120, .62) 50%, rgba(6, 24, 79, .84) 100%), url("img/uum-dmas-900.jpg"); }
}
.page-bg::before {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='720' viewBox='0 0 720 720'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1'%3E%3Cpath d='M0 720 360 0l360 720' stroke-opacity='.12'/%3E%3Cpath d='M0 0l720 360' stroke-opacity='.07'/%3E%3Cpath d='M720 0 0 360' stroke-opacity='.05'/%3E%3Cpath d='M180 720 360 360l180 360' stroke-opacity='.08'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 720px 720px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent);
}
/* Uploaded photo: dimmed so the cards stay readable */
.page-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.page-bg.has-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 600px at 0% 100%, rgba(130, 185, 255, .14), transparent 60%),
    linear-gradient(180deg, rgba(6, 24, 79, .74) 0%, rgba(6, 24, 79, .6) 45%, rgba(6, 24, 79, .8) 100%);
}

/* The content floats on the photo as frosted glass, so it uses light text */
main {
  position: relative;
  --ink: #f6f5f1;
  --muted: rgba(246, 245, 241, .74);
  --faint: rgba(246, 245, 241, .52);
  --line: rgba(255, 255, 255, .13);
  --line-2: rgba(255, 255, 255, .24);
  --bg: rgba(255, 255, 255, .08);
  --surface: rgba(12, 18, 70, .52);
  --gold-ink: var(--gold);
  --shadow: 0 10px 30px rgba(0, 0, 0, .25);
  --shadow-lift: 0 22px 50px rgba(0, 0, 0, .4), 0 0 0 1px rgba(130, 185, 255, .25);
  color: var(--ink);
}
main::after {   /* thin gold edge where the hero meets the content */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent); opacity: .8;
}
.glass, main .card, main .quick-tile, main .quick-empty, main .empty, main .chip, main .search input, main .skeleton {
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
}
main .card { background: linear-gradient(160deg, rgba(36, 48, 120, .55), rgba(10, 16, 64, .5)); border-color: rgba(255, 255, 255, .14); }
main .card.live:hover { border-color: rgba(130, 185, 255, .6); background: linear-gradient(160deg, rgba(46, 60, 145, .65), rgba(12, 18, 70, .6)); }
main .card.soon { background: rgba(10, 16, 64, .32); border-color: rgba(255, 255, 255, .22); }
main .card.soon .app-icon { background: rgba(255, 255, 255, .08); color: var(--faint); border-color: transparent; }
main .card.soon h3 { color: var(--muted); }
main .app-icon {
  background: linear-gradient(140deg, rgba(130, 185, 255, .28), rgba(130, 185, 255, .08));
  border: 1px solid rgba(130, 185, 255, .38); color: var(--gold);
}
main .chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
main .chip[aria-pressed="true"] .n, main .chip[aria-pressed="true"] svg { color: var(--charcoal); }
main .search input { background: rgba(12, 18, 70, .55); border-color: rgba(255, 255, 255, .2); color: var(--ink); }
main .search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(130, 185, 255, .2); }
main .search-clear:hover { background: rgba(255, 255, 255, .1); }
main .quick-empty { background: rgba(12, 18, 70, .45); }
main .empty { background: rgba(12, 18, 70, .5); }
main .empty-ico { background: rgba(255, 255, 255, .08); }
main .skeleton { background: linear-gradient(100deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .04) 70%) 0 0 / 300% 100%; }
main .go { background: rgba(255, 255, 255, .1); }
main .star[aria-pressed="true"] { color: var(--gold); }
main .badge { background: rgba(255, 255, 255, .08); }
main .badge.new { background: var(--gold); color: var(--charcoal); }
main .badge.file { background: rgba(130, 185, 255, .16); color: var(--gold); border-color: rgba(130, 185, 255, .4); }
main .section h2 { text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
main :focus-visible { outline-color: var(--gold); }

/* The admin panel stays solid white so forms are easy to read */
main .admin {
  --ink: #15161a; --muted: #5b5e66; --faint: #8b8e96; --line: #e7e4dc; --line-2: #d9d5ca;
  --bg: #f7f6f2; --surface: #ffffff; --gold-ink: #1d4ed8;
  color: var(--ink); background: #fff;
}
main .admin .text-btn:hover { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 72px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 24px; }
.kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.section h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.15; font-weight: 750; }
.section-sub { margin: 0; color: var(--muted); max-width: 46ch; font-size: 14.5px; }

/* Quick Access */
.quick { padding-top: 56px; }
.quick-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.quick-tile {
  flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: 12px; min-width: 220px; max-width: 300px;
  padding: 12px 14px 12px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; box-shadow: var(--shadow); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.quick-tile:hover { transform: translateY(-2px); border-color: rgba(130, 185, 255, .8); box-shadow: var(--shadow-lift); }
.quick-tile .name { font-weight: 600; font-size: 14.5px; line-height: 1.3; flex: 1; }
.quick-tile .arrow { color: var(--faint); transition: transform .25s var(--ease), color .25s; }
.quick-tile:hover .arrow { color: var(--gold-ink); transform: translate(2px, -2px); }
.quick-empty {
  flex: 1; display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 14px;
  border: 1px dashed var(--line-2); color: var(--muted); font-size: 14.5px; background: rgba(255, 255, 255, .5);
}
.quick-empty .star-demo { color: var(--gold-ink); display: inline-grid; }

/* Toolbar: search + category chips */
.toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.search { position: relative; display: block; max-width: 560px; }
.search input {
  width: 100%; height: 50px; padding: 0 46px 0 48px; border-radius: 14px; font-size: 15.5px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--gold-soft); }
.search-ico, .search-clear { z-index: 1; }
.search-ico { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--muted); display: grid; pointer-events: none; }
.search-clear {
  position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border-radius: 99px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.search-clear:hover { background: var(--bg); color: var(--ink); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--muted);
  font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .2s ease;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip .n { font-size: 12px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.chip[aria-pressed="true"] .n { color: var(--gold); }
.chip svg { color: var(--gold-ink); }
.chip[aria-pressed="true"] svg { color: var(--gold); }

.result-count { margin: 6px 0 16px; color: var(--muted); font-size: 13.5px; min-height: 1.5em; }

/* ---------- Application cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 218px;
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card::before {                /* thin gold line that grows on hover */
  content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card.live:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(130, 185, 255, .55); }
.card.live:hover::before { transform: scaleX(1); }
.card-top { display: flex; align-items: flex-start; gap: 10px; }
.app-icon {
  flex: none; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--charcoal); color: var(--gold); transition: transform .3s var(--ease);
}
.app-icon.sm { width: 38px; height: 38px; border-radius: 11px; }
.card.live:hover .app-icon { transform: translateY(-2px) rotate(-4deg); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; padding-top: 2px; justify-content: flex-end; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 99px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--bg); color: var(--muted); border: 1px solid var(--line);
}
.badge.new { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.badge.soon { background: transparent; border-style: dashed; border-color: var(--line-2); }
.star {
  position: relative; z-index: 2; flex: none; width: 36px; height: 36px; margin: -4px -6px 0 0; border-radius: 99px;
  display: grid; place-items: center; border: 0; background: transparent; color: var(--faint); cursor: pointer;
  transition: color .2s, background .2s, transform .2s var(--ease);
}
.star:hover { color: var(--ink); background: var(--bg); }
.star[aria-pressed="true"] { color: #d9a900; }
.star[aria-pressed="true"] svg { fill: var(--gold); stroke: #5a9bf0; }
.star.pop { animation: pop .35s var(--ease); }
@keyframes pop { 50% { transform: scale(1.25); } }
.card h3 { margin: 6px 0 0; font-size: 17.5px; line-height: 1.3; letter-spacing: -.015em; font-weight: 650; }
.stretch { text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); z-index: 1; }
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::after { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.card-foot { display: flex; align-items: center; gap: 10px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); }
.cat { font-size: 12.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.cat::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--gold); }
.foot-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.copy {
  position: relative; z-index: 2; width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--faint); cursor: pointer; transition: color .2s, background .2s;
}
.copy:hover { color: var(--ink); background: var(--bg); }
.go {
  width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center;
  background: var(--bg); color: var(--ink); transition: background .3s, color .3s;
}
.go svg { transition: transform .3s var(--ease); }
.card.live:hover .go { background: var(--gold); color: var(--charcoal); }
.card.live:hover .go svg { transform: translate(2px, -2px); }

/* Placeholder cards: no link yet, so they must not look clickable */
.card.soon { background: transparent; border-style: dashed; border-color: var(--line-2); box-shadow: none; }
.card.soon .app-icon { background: #ebe8e0; color: var(--faint); }
.card.soon h3 { color: var(--muted); }
.card.soon .cat::before { background: var(--line-2); }
.soon-label { margin-left: auto; font-size: 12.5px; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }

/* Admin buttons on each card */
.card-admin { position: relative; z-index: 2; display: flex; gap: 4px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.card-admin button {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted);
}
.card-admin button:hover { color: var(--ink); border-color: var(--ink); }
.card-admin .del:hover { color: var(--red); border-color: var(--red); }
.card-admin button:disabled { opacity: .4; cursor: default; }

/* Card entrance + filter transition */
@media (prefers-reduced-motion: no-preference) {
  .grid.animate > .card { animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* Loading skeleton */
.skeleton { min-height: 218px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(100deg, #fff 30%, #f1efe9 50%, #fff 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* Empty state */
.empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(255, 255, 255, .5); }
.empty-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.empty h3 { margin: 14px 0 4px; font-size: 17px; }
.empty p { margin: 0 0 18px; color: var(--muted); }

/* Recently Added */
.recent .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* About: a dark band with a gold glow, leading into the footer */
.about {
  position: relative; margin-top: 0; padding: 72px 0; color: var(--on-dark); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(700px 420px at 0% 100%, rgba(130, 185, 255, .16), transparent 65%),
    linear-gradient(180deg, rgba(6, 24, 79, .35), rgba(6, 24, 79, .8));
  border-top: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.about::before {   /* the same facet lines, in gold */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560' viewBox='0 0 560 560'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1'%3E%3Cpath d='M0 560 280 0l280 560' stroke-opacity='.14'/%3E%3Cpath d='M0 0l560 280' stroke-opacity='.08'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 560px 560px;
}
.about .kicker { color: var(--gold); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px 64px; align-items: start; }
.about-lead { margin: 16px 0 0; font-size: 17px; color: var(--on-dark-muted); max-width: 52ch; }
.about-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.about-points li {
  display: flex; gap: 14px; padding: 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.about-points li > span { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(130, 185, 255, .14); color: var(--gold); }
.about-points b { font-size: 15px; }
.about-points p { margin: 2px 0 0; color: var(--on-dark-muted); font-size: 14px; }
.about :focus-visible { outline-color: var(--gold); }
.site-footer { border-top: 1px solid rgba(255, 255, 255, .08); }
.about.flash .about-grid > div:first-child h2 { animation: flash 1.4s ease; }
@keyframes flash { 30% { color: var(--gold); } }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--on-dark-muted); font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px 48px; padding-top: 44px; padding-bottom: 44px; }
.brand-foot { color: var(--on-dark); }
.foot-line { margin: 14px 0 0; line-height: 1.6; }
.foot-note p { margin: 0 0 10px; max-width: 60ch; }
.foot-note .credit { font-size: 12px; color: rgba(244, 243, 239, .5); }
.site-footer .text-btn { color: rgba(244, 243, 239, .6); }
.site-footer .text-btn:hover { color: var(--on-dark); }
.site-footer :focus-visible { outline-color: var(--gold); }
.dev-credit {
  margin: 0 auto; padding-top: 16px; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; font-size: 12.5px; color: rgba(244, 243, 239, .55);
}
.dev-credit b { color: var(--gold); font-weight: 600; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Admin ---------- */
.admin { background: var(--surface); border: 1px solid var(--gold); border-radius: var(--radius); padding: 22px; margin: 0 0 28px; box-shadow: var(--shadow); }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.admin h3 { margin: 0; font-size: 18px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form .wide { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form .hint { font-weight: 400; color: var(--faint); }
.form input:not([type="checkbox"]), .form select {
  height: 44px; padding: 0 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2);
  font-size: 15px; font-weight: 400; color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--gold-soft); }
.form label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); font-size: 14px; }
.form label.check input { width: 18px; height: 18px; accent-color: var(--charcoal); }
.icon-pick { display: flex; gap: 10px; align-items: center; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.msg { font-size: 14px; color: var(--muted); }
.msg.err { color: var(--red); }
.cover-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.cover-row strong { font-size: 13px; color: var(--muted); margin-right: 4px; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

dialog { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 24px; width: min(380px, calc(100% - 32px)); box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
dialog::backdrop { background: rgba(6, 24, 79, .6); backdrop-filter: blur(3px); }
dialog h2 { margin: 0 0 14px; font-size: 19px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; translate: -50% 20px; opacity: 0; pointer-events: none;
  background: var(--charcoal); color: #fff; padding: 11px 18px; border-radius: 99px; font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25); transition: opacity .25s, translate .25s var(--ease);
}
.toast.show { opacity: 1; translate: -50% 0; }

/* Phones: tighter spacing, one swipeable row of category chips, bigger tap targets */
@media (max-width: 600px) {
  .section { padding-top: 44px; }
  .quick { padding-top: 32px; }
  .section-head { margin-bottom: 16px; }
  .section h2 { font-size: 24px; }
  .section-sub { font-size: 14px; }
  .chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin: 0 -16px; padding: 0 16px 2px;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; height: 40px; }
  .search input { height: 48px; font-size: 16px; }   /* 16px stops iPhone zooming in on tap */
  .card { min-height: 0; padding: 18px; }
  .card h3 { font-size: 16.5px; }
  .star { width: 40px; height: 40px; }
  .copy { width: 38px; height: 38px; }
  .go { width: 38px; height: 38px; }
  .quick-tile { min-width: 200px; }
  .about { margin-top: 0; padding: 48px 0; }
  .about-grid { gap: 24px; }
  .about-lead { font-size: 15.5px; }
  .footer-grid { padding-top: 32px; padding-bottom: 36px; }
  .admin { padding: 16px; }
}

/* ---------- Admin button (top right) ---------- */
.admin-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px 0 13px; border-radius: 99px;
  border: 1.5px solid var(--gold); background: rgba(130, 185, 255, .1); color: var(--gold);
  font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.admin-btn span:first-child { display: grid; }
.admin-btn:hover { background: var(--gold); color: var(--charcoal); }
.admin-btn[aria-pressed="true"] { background: var(--gold); color: var(--charcoal); }
.admin-btn[aria-pressed="true"]:hover { background: var(--gold-hover); }
@media (max-width: 1000px) { .workspace-pill { display: none; } }
@media (max-width: 600px) { .header-row { gap: 12px; } }
@media (max-width: 400px) {
  .admin-btn { padding: 0 12px 0 10px; font-size: 13px; }
  #headerSearch { display: none; }   /* the search box is right on the page */
}
.badge.file { background: var(--charcoal); color: var(--gold); border-color: var(--charcoal); letter-spacing: .04em; }

/* ---------- Admin form: link or file ---------- */
.source { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); justify-self: start; }
.form .source label { flex-direction: row; gap: 0; cursor: pointer; }
.source input { position: absolute; opacity: 0; pointer-events: none; }
.source span { display: block; padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.source input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.source input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.drop {
  position: relative; display: flex !important; flex-direction: row !important; align-items: center; gap: 14px !important;
  padding: 18px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--bg); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.drop:hover, .drop.over { border-color: var(--gold-ink); background: #fffdf5; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--gold-soft); }
.drop-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--charcoal); color: var(--gold); }
.drop-text { display: flex; flex-direction: column; gap: 2px; font-weight: 400; min-width: 0; }
.drop-text b { color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.drop-text span { color: var(--muted); font-size: 13px; }
.drop.has-file { border-style: solid; border-color: var(--gold); background: #fffdf5; }

/* ---------- Sign-in screen ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.locked > :not(.login):not(.toast) { display: none !important; }
.login {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px 16px;
  background: var(--charcoal); color: var(--on-dark); overflow-y: auto; isolation: isolate;
}
.login-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; z-index: -2; }
.login-logo { width: 96px; height: 96px; display: block; margin: 0 auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .4)); }
.brand-logo { flex: none; border-radius: 50%; display: block; }
.login::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 24, 79, .72), rgba(6, 24, 79, .55) 50%, rgba(6, 24, 79, .85)), url("img/uum-dmas-1920.jpg") 50% 100% / cover no-repeat; }
.login-card {
  width: min(400px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 36px 28px 28px; border-radius: 22px; background: rgba(10, 15, 60, .72); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: fadeUp .7s var(--ease) both;
}
.login-card .eyebrow { margin: 18px 0 6px; font-size: 11px; justify-content: center; }
.login-card .eyebrow::before { display: none; }
.login-card h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.03em; font-weight: 800; }
.login-text { margin: 10px 0 22px; color: var(--on-dark-muted); font-size: 14.5px; }
.login-field { width: 100%; }
.login-field input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; text-align: center; font-size: 20px; letter-spacing: .3em;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
}
.login-field input::placeholder { letter-spacing: .02em; font-size: 15px; color: rgba(255, 255, 255, .45); }
.login-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(130, 185, 255, .18); }
.login-card .btn { width: 100%; margin-top: 12px; }
.login-msg { min-height: 1.4em; margin: 12px 0 0; color: #ff9b8f; font-size: 14px; }
.login-note { margin: 6px 0 0; color: rgba(244, 243, 239, .45); font-size: 12px; }
.login-card.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* Respect "reduce motion" in the operating system */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .card.live:hover, .quick-tile:hover, .btn-gold:hover { transform: none; }
}

/* ================= FABS: public site + Committee Area ================= */

/* Header: committee login button and the lock in the menu */
.member-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px 0 13px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: var(--on-dark);
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s;
}
.member-btn span:first-child { display: grid; }
.member-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.member-btn.on { background: #fff; color: var(--charcoal); border-color: #fff; }
.nav-lock { display: inline-flex; align-items: center; gap: 6px; }
.nav-lock span { display: grid; }
@media (max-width: 600px) {
  .member-btn { padding: 0 12px; font-size: 13px; }
  .member-btn #memberBtnText { max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 400px) { .member-btn span:first-child { display: none; } }

/* Admin intro box at the top of the page */
.admin-wrap { padding-top: 40px; }
.admin-wrap .admin { margin: 0; }
.admin-wrap h2 { margin: 0; font-size: 20px; }
.admin-intro { margin: 0; color: var(--muted); font-size: 14px; }
.admin-intro a { color: var(--gold-ink); font-weight: 600; }

/* What is FABS: editable text */
.about-para { display: block; margin-top: 12px; }
.about-edit { margin: 20px 0 0; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.admin textarea {
  width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface);
  font: inherit; font-size: 15px; line-height: 1.5; color: var(--ink); resize: vertical; margin-bottom: 10px;
}
.admin textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--gold-soft); }

/* Kicker with a small lock */
.kicker span { display: inline-grid; vertical-align: -1px; margin-right: 2px; }

/* Committee: tenure tabs */
.tenure-chips { margin-bottom: 22px; }
.tenure-chip { height: 46px; padding: 0 18px; font-size: 15px; gap: 8px; }
.tenure-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }

/* Committee: member cards */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 18px; }
.person {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(36, 48, 120, .55), rgba(10, 16, 64, .55)); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(130, 185, 255, .5); }
.person-photo { aspect-ratio: 4 / 5; background: rgba(255, 255, 255, .06); overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; transition: transform .5s var(--ease); }
.person:hover .person-photo img { transform: scale(1.04); }
.person-photo.none { display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, rgba(130, 185, 255, .28), rgba(255, 255, 255, .04) 70%); }
.initials {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff;
  font-size: 32px; font-weight: 700; letter-spacing: .02em;
}
.person-body { padding: 14px 16px 16px; text-align: center; }
.person-role { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.person h3 { margin: 4px 0 0; font-size: 16.5px; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
.person h3.tbc { color: var(--faint); font-weight: 500; font-style: italic; }
.person .card-admin { margin: 0 12px 12px; justify-content: center; }
@media (prefers-reduced-motion: no-preference) {
  .people.animate > .person { animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
}
.person-skeleton { min-height: 300px; }
@media (max-width: 600px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .person-body { padding: 10px 10px 12px; }
  .person-role { font-size: 10.5px; letter-spacing: .06em; }
  .person h3 { font-size: 14.5px; }
  .initials { width: 70px; height: 70px; font-size: 24px; }
  .person .card-admin { margin: 0 8px 8px; }
  .person .card-admin button { padding: 0 7px; font-size: 11.5px; }
  .tenure-chip { height: 42px; padding: 0 14px; font-size: 14px; }
}

/* Committee: admin box */
.people-admin { margin-bottom: 22px; }
.people-admin .admin-head { flex-wrap: wrap; }
.tenure-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-line.danger:hover { border-color: var(--red); color: var(--red); }
.photo-pick { display: flex; align-items: center; gap: 14px; }
.photo-pick .hint { margin: 6px 0 0; font-size: 12.5px; color: var(--faint); }
.photo-pick .btn { margin-right: 6px; }
.person-thumb {
  flex: none; width: 64px; height: 80px; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line); color: var(--faint);
}
.person-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

/* Committee Area */
.area { padding-bottom: 88px; }
.locked {
  display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap; padding: 26px 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(36, 48, 120, .6), rgba(10, 16, 64, .6)); border: 1px dashed rgba(255, 255, 255, .3);
  box-shadow: var(--shadow);
}
.locked > div { flex: 1 1 300px; }
.locked h3 { margin: 0 0 4px; font-size: 18px; }
.locked p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 60ch; }
.locked-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; }
.area-foot { margin: 18px 0 0; color: var(--muted); font-size: 13.5px; }
.area-foot .text-btn { color: var(--gold); }
@media (max-width: 600px) { .area { padding-bottom: 56px; } .locked { padding: 20px; } .locked .btn { width: 100%; } }

/* Sign-in now opens over the page (the page is public) */
body.dialog-open { overflow: hidden; }
.login { background: rgba(6, 24, 79, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.login::before { display: none; }
.login-card { position: relative; }
.login-close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 99px; border: 0;
  background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.login-close:hover { background: rgba(255, 255, 255, .18); }
.login-field input { letter-spacing: .12em; }