/* Club colours come from JS: --c1 main, --c2 second, --c3 third, --on1/--on2 text colour on them */
:root {
  --c1: #17458F; --c2: #F7A81B; --c3: #0067C8; --on1: #fff; --on2: #1a1a1a;
  --bg: #f5f6fa; --card: #ffffff; --text: #101828; --muted: #667085; --line: #eaecf0; --soft: #f2f4f7;
  --tint: color-mix(in srgb, var(--c1) 9%, white);
  --tint2: color-mix(in srgb, var(--c2) 18%, white);
  --r: 0; --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.05);
  --yes: #12b76a; --maybe: #f79009; --no: #f04438;
}
* { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--c1); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.85rem; line-height: 1.2; margin: 0 0 .3em; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: 1.15rem; margin: 0 0 .6em; letter-spacing: -.01em; font-weight: 700; }
h3 { font-size: 1rem; margin: 1.2em 0 .5em; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.big { font-size: 1.15rem; }
.m0 { margin: 0 !important; }
.mt { margin-top: 1em; }
.grow { flex: 1; min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }

.demo { background: #101828; color: #fff; text-align: center; padding: 7px 16px; font-size: .78rem; letter-spacing: .01em; }
.badge-sample { display: inline-block; margin-left: .45em; padding: .05em .55em; border-radius: 999px; font-size: .68rem; font-weight: 600;
  background: #f4ebff; color: #6941c6; vertical-align: .15em; letter-spacing: .02em; white-space: nowrap; }

/* buttons, chips, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; background: var(--c1); color: var(--on1);
  border: 1.5px solid var(--c1); border-radius: 999px; padding: .6em 1.25em; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none !important; transition: transform .12s, box-shadow .12s, filter .12s; box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.btn:hover { filter: brightness(1.08); box-shadow: 0 4px 12px color-mix(in srgb, var(--c1) 30%, transparent); }
.btn:active { transform: translateY(1px); }
.btn-light { background: #fff; color: var(--text); border-color: #d0d5dd; }
.btn-light:hover { background: var(--soft); box-shadow: none; filter: none; }
.btn-block { width: 100%; }
.btns { display: flex; gap: .6em; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: .4em; border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: .35em .9em; font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer; }
.chip:hover { background: var(--soft); color: var(--text); }
.chip.on { background: #fee4e2; color: #d92d20; border-color: #fecdca; }
.chip.on .ic { fill: currentColor; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 0; border: 1px solid var(--line);
  background: #fff; color: var(--text); cursor: pointer; font: inherit; font-size: 1.4rem; line-height: 1; }
.icon-btn:hover { background: var(--soft); }
.pill { display: inline-block; padding: .2em .75em; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill-live { background: #ecfdf3; color: #027a48; }
.pill-gold { background: var(--c2); color: var(--on2); }
.count { margin-left: auto; background: var(--c2); color: var(--on2); border-radius: 999px; font-size: .72rem; font-weight: 700; padding: .05em .55em; }

label { display: block; margin: 0 0 1em; font-weight: 600; font-size: .92rem; }
label.inline { display: inline-flex; gap: .5em; align-items: center; margin: 0; font-weight: 500; }
label.check, label.radio { font-weight: 500; display: flex; gap: .6em; align-items: center; margin-top: -.4em; }
label.radio { margin: 0 0 .5em; padding: .7em .9em; border: 1px solid var(--line); border-radius: 0; cursor: pointer; }
label.radio:hover { border-color: var(--c1); background: var(--tint); }
input, textarea, select { font: inherit; font-weight: 400; width: 100%; padding: .65em .85em; border: 1px solid #d0d5dd; border-radius: 0;
  background: #fff; color: var(--text); margin-top: .35em; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
input[type=checkbox], input[type=radio] { width: 1.15em; height: 1.15em; margin: 0; accent-color: var(--c1); box-shadow: none; }
input[type=file] { padding: .5em; background: var(--soft); border-style: dashed; }
input[type=color] { height: 3.2em; padding: .25em; cursor: pointer; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--c1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c1) 15%, transparent); }
.btn:focus-visible, .chip:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--c1) 40%, transparent); outline-offset: 2px; }
.pill-select { width: auto; margin: 0; padding: .45em 2em .45em .9em; border-radius: 999px; font-size: .88rem; font-weight: 500; }
input.code { font-size: 1.7rem; letter-spacing: .5em; text-align: center; font-weight: 700; }
.note { background: var(--tint); border: 1px solid color-mix(in srgb, var(--c1) 15%, white); color: color-mix(in srgb, var(--c1) 70%, black);
  padding: .85em 1.1em; border-radius: 0; font-size: .92rem; }

/* auth */
.auth { min-height: calc(100vh - 34px); display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--c3) 80%, white), transparent),
              linear-gradient(150deg, var(--c1), color-mix(in srgb, var(--c1) 60%, black)); }
.auth-card { background: var(--card); border-radius: 0; padding: 32px; width: 100%; max-width: 440px; box-shadow: 0 24px 64px rgba(0,0,0,.3); }
.auth-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.auth-club { font-weight: 700; color: var(--c1); margin: .8em 0 1.2em; }

/* header + layout */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 24px;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.menu-btn { display: none; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; font-size: 1.05rem; text-decoration: none !important; min-width: 0; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { height: 44px; width: auto; max-width: 130px; object-fit: contain; }
.logo-sm { height: 40px; width: 40px; object-fit: contain; border-radius: 50%; background: #fff; border: 1px solid var(--line); padding: 3px; }
.logo-big { height: 76px; width: auto; max-width: 200px; object-fit: contain; }
.logo-empty { display: inline-grid; place-items: center; min-width: 44px; background: linear-gradient(135deg, var(--c1), var(--c3)); color: var(--on1); font-weight: 800; border-radius: 0; }
.logo-big.logo-empty { min-width: 76px; font-size: 1.6rem; border-radius: 0; }
.top-tools { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.me-chip { display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c2); }
.layout { display: grid; grid-template-columns: 232px 1fr; max-width: 1920px; margin: 0 auto; }
.side-brand { display: none !important; }
.side { position: sticky; top: 65px; align-self: start; height: calc(100vh - 65px); overflow: auto; padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; }
.side a { display: flex; gap: .75em; align-items: center; padding: .62em .9em; border-radius: 0; color: #344054; text-decoration: none; font-weight: 500; font-size: .95rem; }
.side a .ic { color: #98a2b3; }
.side a:hover { background: #fff; color: var(--text); }
.side a.on { background: #fff; color: var(--c1); font-weight: 600; box-shadow: var(--shadow); }
.side a.on .ic { color: var(--c1); }
main { padding: 24px 32px 80px; min-width: 0; }
.flash { display: flex; gap: .5em; align-items: center; background: #ecfdf3; border: 1px solid #abefc6; color: #067647; padding: .8em 1.1em; border-radius: 0; margin-bottom: 1.2em; font-weight: 500; }

/* cards & page heads */
.card { background: var(--card); border-radius: var(--r); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: .4em; }
.card-h h2 { margin: 0; }
.card-h > a { font-size: .85rem; font-weight: 600; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 1.3em; }
.page-h p { margin: 0; }
.card.row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2.tight { gap: 0 14px; }
.person-line { display: flex; gap: 12px; align-items: center; margin: 0 0 .7em; color: inherit; text-decoration: none !important; }

/* home */
.hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
  padding: 34px; border-radius: 0; margin-bottom: 18px; color: var(--on1);
  background: radial-gradient(600px 300px at 100% 0, color-mix(in srgb, var(--c3) 85%, white), transparent 70%),
              linear-gradient(135deg, var(--c1), color-mix(in srgb, var(--c1) 55%, black)); }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%;
  border: 36px solid color-mix(in srgb, var(--c2) 55%, transparent); opacity: .5; pointer-events: none; }
.hero h1 { color: inherit; font-size: 2.1rem; margin: .1em 0 .3em; }
.hero-k { margin: 0; font-weight: 600; opacity: .8; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.hero-meta { margin: 0; opacity: .9; display: flex; gap: .4em; align-items: center; }
.hero-next { position: relative; z-index: 1; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px);
  color: inherit; border-radius: 0; padding: 14px 18px; min-width: 280px; text-decoration: none !important; transition: background .15s; }
.hero-next:hover { background: rgba(255,255,255,.22); }
.hero-label { display: block; opacity: .8; margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.hero-next-row { display: flex; gap: 12px; align-items: center; }
.hero .datebox { background: #fff; color: var(--c1); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px;
  box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,24,40,.08); }
.stat b { display: block; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.02em; }
.stat-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 0; background: var(--tint); color: var(--c1); font-size: 1.1rem; }
.stat:nth-child(2) .stat-ic { background: var(--tint2); color: color-mix(in srgb, var(--c2) 60%, black); }
.grid-home { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 0 18px; }
.auto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 0 18px; align-items: start; }
.row-link { display: flex; gap: 14px; align-items: center; padding: 10px; margin: 0 -10px; border-radius: 0; color: var(--text); text-decoration: none !important; }
.row-link:hover { background: var(--soft); }
.datebox { display: grid; text-align: center; background: var(--tint); color: var(--c1); border-radius: 0; padding: 6px 0; width: 54px; flex: none; font-size: .7rem; font-weight: 600; text-transform: uppercase; }
.datebox b { font-size: 1.3rem; line-height: 1.1; }
.news-line { display: flex; flex-direction: column; padding: 9px 10px; margin: 0 -10px; border-radius: 0; color: var(--text); text-decoration: none !important; }
.news-line:hover { background: var(--soft); }
.nl-title { font-weight: 600; }
.bday-hl { background: var(--tint2); padding: 10px; border-radius: 0; }

/* avatars & members */
.av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; background: var(--soft); }
.av-empty { display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c3)); color: var(--on1); font-weight: 700; letter-spacing: .02em; }
.av.xs { width: 26px; height: 26px; font-size: .6rem; }
.av.sm { width: 36px; height: 36px; font-size: .75rem; }
.av.md { width: 52px; height: 52px; }
.av.lg { width: 96px; height: 96px; font-size: 1.5rem; }
.av.xl { width: 150px; height: 150px; font-size: 2.4rem; border: 5px solid #fff; box-shadow: var(--shadow); }
.search { max-width: 420px; margin: 0 0 1.4em; padding-left: 2.6em;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat .9em center / 1.1em; }
.group-h { display: flex; gap: .5em; align-items: baseline; }
.group-h .muted { font-weight: 500; font-size: .9rem; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 2em; }
.mcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 14px 18px; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 3px; color: var(--text); text-decoration: none !important; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.mcard:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16,24,40,.1); }
.mcard .av { margin-bottom: 8px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--tint); }
.mname { font-weight: 700; }
.mrole { color: var(--c1); font-weight: 600; font-size: .85rem; }
.mrole.big { font-size: 1.05rem; margin: 0 0 .3em; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.tags.left { justify-content: flex-start; }
.tags .badge-sample { margin: 0; }
.tag { background: var(--tint2); color: color-mix(in srgb, var(--c2) 45%, black); border-radius: 999px; padding: .05em .6em; font-size: .7rem; font-weight: 700; }
.back { font-weight: 600; }
.profile { position: relative; padding: 0; overflow: hidden; }
.profile-cover { height: 130px; background: linear-gradient(135deg, var(--c1), var(--c3)); }
.profile > .av { position: absolute; top: 55px; left: 28px; }
.profile-body { padding: 90px 28px 22px; }
.field { display: grid; grid-template-columns: 180px 1fr; gap: 8px; padding: .7em 0; border-top: 1px solid var(--line); }

/* board */
.posgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 1em 0; }
.pos { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 0; border: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
a.pos:hover { background: var(--soft); }
.pos-big { background: linear-gradient(180deg, #fff, var(--soft)); }
.pos-big .av { width: 64px; height: 64px; }
.timeline { border-left: 2px solid var(--line); margin-left: 6px; }
.term { position: relative; padding: .5em 0 .5em 22px; }
.term::before { content: ""; position: absolute; left: -7px; top: 1.05em; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--c1); }
.term summary { cursor: pointer; display: flex; gap: 12px; flex-wrap: wrap; list-style: none; }
.term summary::-webkit-details-marker { display: none; }
.term-y { font-weight: 700; color: var(--c1); min-width: 90px; }

/* news */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 0 18px; align-items: start; }
.post-h { display: flex; gap: 12px; align-items: center; margin-bottom: 1em; }
.post h2 { font-size: 1.25rem; }
.post-img { border-radius: 0; margin: .2em 0 .6em; width: 100%; max-height: 460px; object-fit: cover; display: block; }
.ext-link { display: inline-flex; gap: .4em; align-items: center; font-weight: 600; }
.post-actions { display: flex; gap: .6em; align-items: center; margin: 1em 0 .4em; padding-top: .9em; border-top: 1px solid var(--line); flex-wrap: wrap; }
.comment { background: var(--soft); border-radius: 0; padding: .6em .9em; margin: .5em 0; font-size: .93rem; }
.comment-form { display: flex; gap: .5em; margin-top: .7em; }
.comment-form input { margin: 0; border-radius: 999px; }

/* calendar */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.cal-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.cal-h h2 { margin: 0; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wd { text-align: center; font-weight: 600; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; padding-bottom: 4px; }
.cal-cell { min-height: 92px; border-radius: 0; padding: 6px; background: var(--soft); min-width: 0; }
.cal-cell.empty { background: transparent; }
.cal-cell.past { opacity: .55; }
.cal-cell.today { background: #fff; box-shadow: inset 0 0 0 2px var(--c2); }
.cal-cell.today .cal-d { background: var(--c2); color: var(--on2); border-radius: 999px; padding: 0 .45em; }
.cal-d { font-weight: 600; font-size: .85rem; }
.cal-ev { display: block; width: 100%; text-align: left; background: var(--c1); color: var(--on1); border: 0; border-radius: 0; padding: 3px 6px; margin-top: 4px;
  font: inherit; font-size: .7rem; font-weight: 500; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev.sel { box-shadow: 0 0 0 2px var(--c2); }
.ev-detail { border-top: 5px solid var(--c2); }
.ev-meta { color: var(--muted); }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 999px; flex-wrap: wrap; }
.seg-btn { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: .92rem; padding: .5em 1.2em; border-radius: 999px; cursor: pointer;
  color: var(--muted); text-decoration: none !important; display: inline-flex; gap: .4em; align-items: center; }
.seg-btn:hover { color: var(--text); }
.seg-btn.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.seg-btn.on.yes { background: var(--yes); color: #fff; }
.seg-btn.on.maybe { background: var(--maybe); color: #fff; }
.seg-btn.on.no { background: var(--no); color: #fff; }
.rsvp-sum { display: flex; gap: .4em; align-items: center; margin: 1em 0 .6em; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.rsvp-sum .dot { margin-left: .6em; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot.yes { background: var(--yes); } .dot.maybe { background: var(--maybe); } .dot.no { background: var(--no); }
.rsvp-list { display: flex; flex-wrap: wrap; gap: 6px; }
.rsvp-p { display: inline-flex; gap: 6px; align-items: center; background: var(--soft); border-radius: 999px; padding: 3px 10px 3px 3px; font-size: .85rem; }

/* polls */
.poll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 0 18px; align-items: start; }
.bar-row { margin: .7em 0; }
.bar-top { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; margin-bottom: 4px; }
.bar-row.mine .bar-top span { font-weight: 700; color: var(--c1); }
.bar { display: block; background: var(--soft); border-radius: 999px; height: 10px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--c1), var(--c3)); border-radius: 999px; }
.bar-row.mine .bar span { background: linear-gradient(90deg, var(--c2), color-mix(in srgb, var(--c2) 70%, var(--c1))); }

/* docs */
.docs { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { padding-left: 16px; margin-left: 14px; border-left: 1px dashed #d0d5dd; }
.tree-btn { display: flex; gap: .6em; align-items: center; background: none; border: 0; font: inherit; font-size: .93rem; padding: .5em .7em; border-radius: 0;
  cursor: pointer; text-align: left; width: 100%; color: #344054; }
.tree-btn .ic { color: var(--c2); }
.tree-btn:hover { background: var(--soft); }
.tree-btn.on { background: var(--tint); color: var(--c1); font-weight: 600; }
.count-sm { font-size: .75rem; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 0 .5em; }
.subfolders { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 1em; }
.folder-tile { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 14px; border-radius: 0; border: 1px solid var(--line);
  background: #fff; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.folder-tile .ic { color: var(--c2); width: 1.6em; height: 1.6em; }
.folder-tile:hover { border-color: var(--c1); background: var(--tint); }
.file-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.file-ic { display: grid; place-items: center; width: 44px; height: 50px; border-radius: 0; font-size: .62rem; font-weight: 800; color: #fff; background: #667085; flex: none; }
.file-ic[data-ext=PDF] { background: #d92d20; } .file-ic[data-ext=DOCX], .file-ic[data-ext=DOC] { background: #1570ef; }
.file-ic[data-ext=XLSX], .file-ic[data-ext=XLS] { background: #079455; }
.upload-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 1em; }
.upload-row input { margin: 0; flex: 1; min-width: 200px; }
.card.upload-row { margin-top: 0; }

/* media */
.filter { margin-bottom: 1.2em; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.mitem { position: relative; margin: 0; background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mitem img, .mitem video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #101828; transition: transform .3s; }
.mitem a { display: block; overflow: hidden; }
.mitem a:hover img { transform: scale(1.04); }
.mbadge { position: absolute; top: 10px; left: 4px; }
.mitem figcaption { font-size: .8rem; color: var(--muted); padding: 10px 12px; display: flex; justify-content: space-between; gap: 6px; align-items: center; }

/* birthdays */
.bd-today { background: linear-gradient(135deg, #fff, var(--tint2)); border-color: color-mix(in srgb, var(--c2) 40%, white); }

/* admin */
.tabs { margin-bottom: 1.4em; }
.colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.swatches { display: inline-flex; gap: 3px; margin-left: 8px; }
.swatches span { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); }

/* tablet / phone */
@media (max-width: 1100px) {
  .cal-wrap { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .hide-sm { display: none; }
  .top { padding: 8px 16px; gap: 10px; flex-wrap: wrap; }
  .brand span { display: none; }
  .top { z-index: 40; }
  .top-tools { gap: 6px; flex-wrap: wrap; margin-left: 0; width: 100%; }
  .top-tools label.inline { flex: 1; }
  .top-tools .pill-select { width: 100%; }
  .me-chip { display: none; }
  .pill-select { padding: .4em 1.6em .4em .7em; font-size: .8rem; }
  .layout { grid-template-columns: 1fr; }
  .side { display: none; position: fixed; inset: auto 0 0 0; top: 0; height: auto; z-index: 30; background: #fff; padding: 190px 16px 16px; box-shadow: 0 20px 40px rgba(0,0,0,.2); overflow: auto; }
  .side.open { display: flex; }
  .side.open ~ main { filter: blur(2px); }
  .menu-btn { position: relative; z-index: 31; }
  main { padding: 18px 16px 60px; }
  h1 { font-size: 1.5rem; }
  .hero { padding: 24px 20px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-next { min-width: 0; width: 100%; }
  .grid2, .grid-home, .docs { grid-template-columns: 1fr; }
  .poll-grid, .feed, .auto-grid { grid-template-columns: 1fr; }
  .field { grid-template-columns: 1fr; gap: 0; }
  .cal { gap: 3px; }
  .cal-cell { min-height: 54px; padding: 3px; border-radius: 0; }
  .cal-ev { font-size: 0; height: 8px; padding: 0; border-radius: 0; }
  .colors { grid-template-columns: 1fr; }
  .profile > .av { left: 50%; transform: translateX(-50%); }
  .profile-body { text-align: center; }
  .profile-body .tags.left { justify-content: center; }
  .profile-body .field { text-align: left; }
  .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .av.lg { width: 76px; height: 76px; }
}
