/* =========================================================================
   Docs portal styles. Colours follow the official Adventist palette
   (Denim, Nile, Cherubim, Spark, Miracle, Vine). Font: Noto Sans, the
   church's official typeface, with system fallbacks.
   ========================================================================= */
:root {
  /* Official Adventist palette */
  --denim: #003b5c;
  --nile: #007681;
  --cherubim: #f0b323;
  --spark: #d86018;
  --miracle: #7d2248;
  --vine: #4a7729;
  --branch: #4e3629;
  --amethyst: #582c83;
  /* Roles */
  --ink: #003b5c;
  --ink-2: #0b4a6e;
  --ink-3: #145a82;
  --ink-text: #d3e1ea;
  --paper: #ffffff;
  --slate: #f3f5f7;
  --slate-2: #e5eaee;
  --rule: #dfe5ea;
  --text: #1b2530;
  --muted: #5f6b78;
  --navy: #003b5c;
  --navy-2: #0b4a6e;
  --navy-soft: #e6eff4;
  --green: #007681;
  --green-2: #005f68;
  --green-soft: #e0f1f2;
  --brass: #f0b323;
  --brass-soft: #fdf3da;
  --red: #7d2248;
  --red-soft: #f8e9ef;
  --amber: #a84a10;
  --amber-soft: #fcebdf;
  --blue: #00628f;
  --blue-soft: #e6f0f6;
  --grey: #55616d;
  --grey-soft: #eef1f4;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(0, 40, 64, .06);
  --shadow-lg: 0 6px 20px -8px rgba(0, 40, 64, .30);
  --sans: "Noto Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);
  --mono: var(--sans);
  --side-w: 256px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--slate); color: var(--text); font: 15px/1.55 var(--sans); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.005em; }
h1 { font-size: 1.6rem; font-weight: 700; color: var(--denim); letter-spacing: -.01em; }
h2 { font-size: 1.08rem; font-weight: 700; }
h3 { font-size: .98rem; font-weight: 700; }
p { margin: 0 0 .8rem; }
small, .muted { color: var(--muted); }
.small { font-size: .86rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 1.2rem 0; }
code { background: var(--grey-soft); padding: 1px 6px; border-radius: 5px; font: .86em var(--mono); }
:focus-visible { outline: 3px solid rgba(31, 95, 168, .45); outline-offset: 2px; border-radius: 4px; }
.ico-svg { flex: none; display: inline-block; vertical-align: -3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: .5rem .8rem; border-radius: 6px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- App shell: sidebar + content ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 60;
  background: var(--ink); color: var(--ink-text);
  display: flex; flex-direction: column; padding: 1rem .85rem .85rem;
}
.main-wrap { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 2rem 2.2rem 2.5rem; flex: 1; }
.page-narrow { max-width: 780px; }
.footer { color: var(--muted); font-size: .8rem; padding: 1rem 2.2rem 1.6rem; text-align: center; }
.footer a { color: var(--muted); text-decoration: underline; }

.brand { display: flex; align-items: center; gap: .7rem; color: #fff; }
.brand:hover { text-decoration: none; }
.sda-symbol { flex: none; color: #fff; display: block; }
.brand-name { display: block; font: 700 1.05rem/1.15 var(--sans); color: #fff; }
.brand-org { display: block; font-size: .74rem; color: #a9c1d1; line-height: 1.3; margin-top: 2px; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: .2rem .35rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: .9rem; }
.sidebar .side-close { display: none; }

.live-card { display: block; margin: 0 .1rem .9rem; padding: .75rem .85rem; border-radius: 8px; color: #fff; background: var(--nile); }
.live-card:hover { text-decoration: none; background: #00868f; }
.live-label { display: flex; align-items: center; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.live-title { display: block; font-weight: 600; margin: .2rem 0 .35rem; line-height: 1.3; }
.live-go { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: #e0f1f2; }

.side-nav { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a6488 transparent; }
.side-group { margin-bottom: 1.1rem; }
.side-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8fb0c4; padding: 0 .75rem .4rem; }
.side-nav a {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; margin-bottom: 2px; border-radius: 8px;
  color: var(--ink-text); font-size: .93rem; font-weight: 500; position: relative;
}
.side-nav a .ico-svg { color: #9fbccd; }
.side-nav a:hover { background: var(--ink-2); color: #fff; text-decoration: none; }
.side-nav a:hover .ico-svg { color: #fff; }
.side-nav a.active { background: var(--ink-3); color: #fff; }
.side-nav a.active .ico-svg { color: var(--cherubim); }
.side-nav a.active::before { content: ""; position: absolute; left: -.85rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cherubim); }
.side-nav .count { margin-left: auto; background: var(--cherubim); color: var(--branch); border-radius: 10px; font-size: .7rem; font-weight: 700; padding: 1px 7px; }

.side-foot { display: flex; align-items: center; gap: .5rem; border-top: 1px solid rgba(255,255,255,.07); padding-top: .85rem; }
.side-foot form { margin: 0; }
.me { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; color: #fff; padding: .3rem .35rem; border-radius: 8px; }
.me:hover { background: var(--ink-2); text-decoration: none; }
.me-text { min-width: 0; }
.me-text b { display: block; font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text small { color: #a9c1d1; font-size: .74rem; }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--ink-3); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.avatar.sm { width: 32px; height: 32px; }
.iconbtn { background: none; border: 0; color: #a9c1d1; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.iconbtn:hover { background: var(--ink-2); color: #fff; }

.mobilebar { display: none; }
.scrim { display: none; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: .2rem; max-width: 640px; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: .5rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

/* ---------- Cards & grid ---------- */
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.35rem; margin-bottom: 1.1rem; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > .card-head { padding: 1.1rem 1.35rem .2rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.stat { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--slate-2); }
.stat .n { font: 700 1.7rem/1.1 var(--sans); color: var(--denim); font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: .84rem; margin-top: .2rem; }
.stat.warn::after { background: var(--spark); }
.stat.warn .n { color: var(--amber); }
.stat a { color: inherit; display: block; }
.stat a:hover { text-decoration: none; }
.stat:has(a):hover { border-color: #c9d2de; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 1px solid #cfd6e0; background: var(--paper); color: var(--text);
  border-radius: 8px; padding: .52rem 1rem; font: 600 .9rem/1.2 var(--sans);
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--grey-soft); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-3); }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); }
.btn-danger { color: var(--red); border-color: #efc9c4; }
.btn-danger:hover { background: var(--red-soft); }
.btn-solid-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-solid-danger:hover { background: #9a1d14; }
.btn-sm { padding: .32rem .65rem; font-size: .82rem; border-radius: 7px; }
.btn-lg { padding: .78rem 1.35rem; font-size: 1rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; margin: 0; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; font-size: .7rem; font-weight: 700; padding: .18rem .55rem; border-radius: 20px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-grey { background: var(--grey-soft); color: var(--grey); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-navy { background: var(--brass-soft); color: var(--branch); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cherubim); margin-right: 6px; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240,179,35,.6); } 70% { box-shadow: 0 0 0 7px rgba(240,179,35,0); } 100% { box-shadow: 0 0 0 0 rgba(240,179,35,0); } }

/* ---------- Alerts ---------- */
.flash { padding: .8rem 1rem .8rem 1.1rem; border-radius: 10px; margin-bottom: 1.1rem; border: 1px solid; border-left-width: 4px; font-size: .93rem; }
.flash-success { background: var(--green-soft); border-color: #b5dfd2; border-left-color: var(--green); color: #0b5244; }
.flash-error { background: var(--red-soft); border-color: #f3c7c1; border-left-color: var(--red); color: #8a1b12; }
.flash-info { background: var(--blue-soft); border-color: #c7dbf3; border-left-color: var(--blue); color: #194d88; }
.flash-warn { background: var(--amber-soft); border-color: #f3cfb6; border-left-color: var(--spark); color: #7a3409; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: #2a3546; }
.field { margin-bottom: 1rem; }
.field .hint { color: var(--muted); font-size: .82rem; margin-top: .3rem; font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid #cdd4de; border-radius: 8px; font: inherit; background: var(--paper); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #b3bdcb; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,95,168,.15); }
textarea { min-height: 90px; resize: vertical; }
input[type=file] { font: inherit; font-size: .9rem; max-width: 100%; padding: .5rem; border: 1px dashed #b9c3d1; border-radius: 8px; width: 100%; background: #fafbfc; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--ink); }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; margin-bottom: .6rem; cursor: pointer; }
.check input { margin-top: .2rem; flex: none; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 1rem; }
.otp-input { font: 700 2rem/1 var(--mono) !important; letter-spacing: .45em; text-align: center; padding: .75rem !important; }
fieldset { border: 1px solid var(--rule); border-radius: 10px; padding: .9rem 1.1rem .4rem; margin: 0 0 1.1rem; }
legend { font-weight: 700; font-size: .88rem; padding: 0 .35rem; }
details.box { border: 1px solid var(--rule); border-radius: 10px; padding: .6rem .95rem; margin: .5rem 0 1rem; background: #fafbfc; }
details.box summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: .9rem; }
details.box[open] summary { margin-bottom: .8rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: .7rem .85rem; border-bottom: 1px solid var(--rule); background: #f8f9fb; white-space: nowrap; }
.table td { padding: .7rem .85rem; border-bottom: 1px solid #edf0f4; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfd; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .center { text-align: center; }
.table td.actions { white-space: nowrap; text-align: right; }
.table td a b { color: var(--text); }
.table td a:hover b { color: var(--blue); }
.matrix td.center { font-size: .8rem; }
.tick { color: var(--vine); font-weight: 700; }
.dash { color: #c3c9d3; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.3rem; overflow-x: auto; }
.tabs a { padding: .65rem 1rem; color: var(--muted); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--denim); border-bottom-color: var(--denim); }
.tabs .n { background: var(--grey-soft); color: var(--grey); border-radius: 10px; font-size: .72rem; padding: 1px 7px; margin-left: 5px; }
.tabs a.active .n { background: var(--navy-soft); color: var(--denim); }

/* ---------- Meeting cards (dashboard) ---------- */
.meeting-list { display: grid; gap: .75rem; }
.meeting-card { display: flex; gap: 1.1rem; align-items: center; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); color: inherit; transition: border-color .15s, box-shadow .15s; }
.meeting-card:hover { border-color: #b7c6d1; }
.meeting-card.is-live { border-color: #8cc6ca; }
.meeting-card.is-expired { background: #fbfbfc; }
.meeting-card.is-expired .datebox { opacity: .55; }
.datebox { width: 62px; flex: none; text-align: center; border-radius: 10px; background: var(--ink); color: #fff; padding: .45rem 0 .5rem; }
.meeting-card.is-live .datebox { background: var(--green); }
.datebox .d { font: 700 1.5rem/1 var(--sans); }
.datebox .m { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #cfe0ea; margin-top: .2rem; }
.meeting-card.is-live .datebox .m { color: #e0f1f2; }
.meeting-card .info { flex: 1; min-width: 0; }
.meeting-card .t { font: 700 1.02rem/1.35 var(--sans); color: var(--denim); }
.meeting-card .meta { color: var(--muted); font-size: .86rem; margin-top: .1rem; }
.meeting-card .side { text-align: right; flex: none; }
.section-title { display: flex; align-items: center; gap: .7rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin: 1.8rem 0 .8rem; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.empty .big { font-size: 2.2rem; margin-bottom: .3rem; }

/* ---------- Meeting room ---------- */
.room-head { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem 1.5rem 1.2rem; margin-bottom: 1.1rem; box-shadow: var(--shadow); }
.room-head h1 { margin-bottom: .35rem; }
.room-meta { display: flex; gap: 1.3rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.overall { margin-top: 1.1rem; }
.overall .bar { height: 8px; }
.overall-labels { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.now-banner { display: flex; gap: 1rem; align-items: center; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.4rem; margin-bottom: 1.1rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.now-banner::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--cherubim); }
.now-banner .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #cfe0ea; display: flex; align-items: center; }
.now-banner .title { font: 700 1.2rem/1.3 var(--sans); margin: .15rem 0; }
.now-banner .clock { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.now-banner .clock .big { font: 700 2rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.now-banner.over::before { background: var(--spark); }
.now-banner.over .clock .big { color: #ffc9a6; }

.bar { height: 6px; background: var(--slate-2); border-radius: 6px; overflow: hidden; position: relative; }
.bar > span { display: block; height: 100%; background: var(--ink); border-radius: 6px; transition: width .6s ease; }
.bar.green > span { background: var(--green); }
.bar.red > span { background: var(--red); }
.bar.amber > span { background: var(--brass); }

.agenda { list-style: none; margin: 0; padding: 0; }
.agenda-item { display: grid; grid-template-columns: 70px 26px minmax(0,1fr); gap: 0 .75rem; position: relative; }
.agenda-item .time { text-align: right; font: .8rem/1.4 var(--mono); color: var(--muted); padding-top: .3rem; font-variant-numeric: tabular-nums; }
.agenda-item .time b { color: var(--text); display: block; font-size: .92rem; font-weight: 600; }
.agenda-item .rail { position: relative; display: flex; justify-content: center; }
.agenda-item .rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--slate-2); }
.agenda-item:first-child .rail::before { top: 14px; }
.agenda-item:last-child .rail::before { bottom: auto; height: 14px; }
.agenda-item .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid #c3cbd7; position: relative; z-index: 1; margin-top: .4rem; }
.agenda-item.done .dot { background: var(--green); border-color: var(--green); }
.agenda-item.done .rail::before { background: #9fcfd3; }
.agenda-item.in_progress .dot { border-color: var(--green); box-shadow: 0 0 0 4px rgba(0,118,129,.18); }
.agenda-item.deferred .dot { border-color: var(--spark); }
.agenda-item .body { padding-bottom: 1.2rem; min-width: 0; }
.agenda-item .head { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.agenda-item .num { color: var(--muted); font-weight: 700; font-family: var(--mono); font-size: .85rem; }
.agenda-item .ttl { font-weight: 700; font-size: 1.02rem; }
.agenda-item.done .ttl { color: var(--grey); }
.agenda-item .panel { border: 1px solid transparent; border-radius: 10px; padding: .55rem .75rem; margin-left: -.75rem; }
.agenda-item.in_progress .panel { border-color: #9fcfd3; background: #f3f9fa; }
.agenda-item .sub { color: var(--muted); font-size: .86rem; }
.agenda-item .desc { font-size: .9rem; margin-top: .3rem; white-space: pre-line; }
.agenda-item .outcome { background: var(--brass-soft); border-left: 3px solid var(--cherubim); border-radius: 6px; padding: .5rem .7rem; font-size: .88rem; margin-top: .5rem; white-space: pre-line; }
.agenda-item .outcome b { color: var(--branch); }
.agenda-item .progress-line { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; font-size: .82rem; color: var(--muted); }
.agenda-item .progress-line .bar { flex: 1; max-width: 340px; }
.agenda-item .item-docs { margin-top: .6rem; display: flex; flex-direction: column; gap: .35rem; }
.agenda-item .controls { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .6rem; }

.doc { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); transition: border-color .15s; }
.doc:hover { border-color: #c3ccd8; }
.doc .ico { width: 36px; height: 44px; flex: none; border-radius: 4px; display: grid; place-items: center; font-size: .6rem; font-weight: 800; color: #fff; letter-spacing: .04em; position: relative; }
.doc .ico.pdf { background: #c0392b; }
.doc .ico.doc { background: #2b5797; }
.doc .ico.xls { background: #1e7145; }
.doc .ico.ppt { background: #c8501f; }
.doc .ico.other { background: #7f8c8d; }
.doc .name { flex: 1; min-width: 0; }
.doc .name b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc .name small { font-size: .78rem; }
.doc .acts { display: flex; gap: .35rem; flex: none; }
.doc-list { display: flex; flex-direction: column; gap: .5rem; }

.poll { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: .85rem; background: var(--paper); }
.poll.open { border-color: #8cc6ca; box-shadow: 0 0 0 3px rgba(0,118,129,.10); }
.poll .q { font: 700 1rem/1.4 var(--sans); color: var(--denim); margin-bottom: .2rem; }
.poll .opts { display: grid; gap: .5rem; margin-top: .8rem; }
.poll .opt-btn { text-align: left; justify-content: flex-start; padding: .8rem 1rem; font-size: .96rem; border-radius: 10px; }
.poll .opt-btn:hover { border-color: var(--ink); background: var(--navy-soft); }
.result { margin-top: .6rem; }
.result-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: .5rem; align-items: center; margin-bottom: .45rem; font-size: .9rem; }
.result-row .bar { height: 10px; margin-top: .3rem; }
.result-row .pct { text-align: right; font: .85rem var(--mono); color: var(--muted); }
.result-row.winner .lbl { font-weight: 700; }
.poll .foot { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: .7rem; padding-top: .6rem; border-top: 1px dashed var(--rule); }

.feed { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.feed li { padding: .6rem 0; border-bottom: 1px solid #edf0f4; font-size: .9rem; display: flex; gap: .7rem; }
.feed li:last-child { border-bottom: 0; }
.feed .when { color: var(--muted); font: .78rem/1.6 var(--mono); flex: none; width: 42px; }
.feed .by { color: var(--muted); font-size: .78rem; }
.feed .x { margin-left: auto; color: var(--muted); background: none; border: 0; cursor: pointer; font-size: 1rem; }

.sync { font-size: .78rem; color: var(--muted); }
.sync.err { color: var(--red); }

/* ---------- Live console ---------- */
.console-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.sticky { position: sticky; top: 1.2rem; }

/* ---------- Login ---------- */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-panel { background: var(--ink); color: var(--ink-text); padding: 2.4rem 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-pitch { margin: auto 0; }
.auth-brand-big { display: flex; align-items: center; gap: 1rem; }
.auth-brand-big .sda-symbol { color: #fff; }
.auth-app { font: 700 2.2rem/1.1 var(--sans); color: #fff; margin: 0; letter-spacing: -.01em; }
.auth-org { font-size: 1.05rem; color: #cfe0ea; margin: .35rem 0 0; }
.auth-pitch ul { margin-top: 2rem !important; }
.auth-pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; max-width: 420px; }
.auth-pitch li { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; }
.auth-pitch li .ico-svg { color: var(--cherubim); margin-top: 2px; }
.auth-fine { font-size: .85rem; color: #a9c1d1; margin: 0; }
.auth-form { display: grid; place-items: center; padding: 2rem 1.5rem; }
.auth-card { width: 100%; max-width: 410px; }
.auth-card .card { padding: 2rem 1.8rem; }
.auth-card h2 { font: 700 1.4rem/1.25 var(--sans); color: var(--denim); }
.auth-note { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 1rem; }

/* ---------- Viewer ---------- */
body.viewer-body { background: #3b4048; }
.viewer-bar { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; display: flex; align-items: center; gap: .8rem; padding: .55rem 1rem; flex-wrap: wrap; }
.viewer-bar a, .viewer-bar button { color: #fff; }
.viewer-bar .t { font-weight: 600; flex: 1; min-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-bar .btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.viewer-bar .btn:hover { background: rgba(255,255,255,.18); }
.viewer-bar .pageinfo { font: .82rem var(--mono); opacity: .85; }
.viewer-pages { padding: 1.2rem .5rem 3rem; display: flex; flex-direction: column; align-items: center; gap: 16px; user-select: none; -webkit-user-select: none; }
.viewer-page { position: relative; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.35); max-width: 100%; }
.viewer-page canvas { display: block; width: 100%; height: auto; }
.viewer-page .ovl { position: absolute; inset: 0; pointer-events: none; }
.viewer-msg { color: #fff; text-align: center; padding: 3rem 1rem; }
.viewer-msg .card { color: var(--text); max-width: 480px; margin: 0 auto; text-align: left; }
.viewer-notice { background: var(--brass-soft); color: var(--branch); font-size: .82rem; text-align: center; padding: .4rem; }

/* ---------- Mini chart ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 130px; padding-top: 14px; }
.bars .b { flex: 1; background: var(--slate-2); border-radius: 5px 5px 0 0; position: relative; min-height: 3px; transition: background .15s; }
.bars .b:hover { background: #c9d3e1; }
.bars .b span { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font: .7rem var(--mono); color: var(--muted); }
.bars .b.today { background: var(--ink); }
.bars-labels { display: flex; gap: 6px; font: .66rem var(--mono); color: var(--muted); margin-top: 5px; }
.bars-labels span { flex: 1; text-align: center; }

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: .6rem 0; border-bottom: 1px solid #edf0f4; }
.list-plain li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: .5rem .9rem; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: .3rem; }
.check-ok { color: var(--vine); font-weight: 700; }
.check-bad { color: var(--red); font-weight: 700; }
.hide { display: none !important; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt1 { margin-top: 1rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .split, .console-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky { position: static; }
}
@media (max-width: 900px) {
  .mobilebar {
    display: flex; align-items: center; gap: .6rem; position: sticky; top: 0; z-index: 40;
    background: var(--ink); color: #fff; padding: .55rem .75rem;
  }
  .mobilebar .brand { flex: 1; }
  .mobilebar .iconbtn { color: #fff; }
  .mobilebar .avatar { text-decoration: none; }
  .sidebar { transform: translateX(-102%); transition: transform .25s ease; width: min(300px, 86vw); box-shadow: var(--shadow-lg); }
  body.menu-open .sidebar { transform: none; }
  .sidebar .side-close { display: grid; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(10, 20, 35, .45); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.menu-open .scrim { opacity: 1; pointer-events: auto; }
  .main-wrap { margin-left: 0; }
  .page { padding: 1.2rem .9rem 2rem; }
  .footer { padding: 1rem; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-panel { padding: 1.4rem 1.3rem 1.6rem; }
  .auth-app { font-size: 1.5rem; }
  .auth-brand-big .sda-symbol { width: 44px; height: 44px; }
  .auth-pitch ul { margin-top: 1rem !important; }
  .auth-pitch { margin: 0 0 1rem; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.45rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .agenda-item { grid-template-columns: 48px 20px minmax(0,1fr); gap: 0 .45rem; }
  .agenda-item .time { font-size: .72rem; }
  .agenda-item .time b { font-size: .82rem; }
  .meeting-card { padding: .85rem .9rem; gap: .8rem; }
  .meeting-card .side { display: none; }
  .datebox { width: 52px; }
  .now-banner { flex-wrap: wrap; }
  .now-banner .clock { margin-left: 0; text-align: left; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { font-weight: 600; }
  .doc .acts .btn span.lbl { display: none; }
  .room-head { padding: 1.1rem 1.1rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Members should not print papers from the portal. */
@media print {
  body.no-print * { visibility: hidden !important; }
  body.no-print::after { content: "Printing is disabled for confidential meeting papers."; visibility: visible; position: fixed; top: 40%; left: 0; right: 0; text-align: center; font-size: 18px; }
}

/* ---------- Profile photos ---------- */
img.avatar-img { object-fit: cover; border-radius: 50%; display: block; flex: none; background: var(--slate-2); padding: 0; image-rendering: auto; }
.sidebar img.avatar-img { box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.avatar.avatar-xl { box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--rule); }
span.avatar.avatar-xl { background: var(--denim); color: #fff; }
.me.active { background: var(--ink-3); }
.mb-me { display: block; line-height: 0; }
.person { display: flex; align-items: center; gap: .7rem; }
.person span.avatar { background: var(--navy-soft); color: var(--denim); }
.photo-edit { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.photo-edit.compact { gap: 1rem; }
.photo-frame { position: relative; flex: none; }
.file-btn { cursor: pointer; }
.linklike { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; font: inherit; text-decoration: underline; }

/* ---------- Past meetings by year ---------- */
.year-group { margin-bottom: .8rem; }
.year-group > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: .7rem; padding: .5rem .2rem; margin-bottom: .5rem; border-bottom: 1px solid var(--rule); }
.year-group > summary::-webkit-details-marker { display: none; }
.year-group > summary::before { content: "\25B8"; color: var(--muted); font-size: .8rem; transition: transform .15s; }
.year-group[open] > summary::before { transform: rotate(90deg); }
.year-group .year { font-size: 1.15rem; font-weight: 700; color: var(--denim); }
.table tr.year-row td { background: var(--navy-soft); color: var(--denim); font-weight: 700; font-size: .85rem; letter-spacing: .04em; padding: .45rem .85rem; }

/* ---------- Calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .9rem; }
.cal-nav { display: flex; align-items: center; gap: .6rem; }
.cal-nav h2 { margin: 0; min-width: 9.5rem; text-align: center; font-size: 1.15rem; color: var(--denim); }
.cal-year { display: grid; grid-template-columns: auto repeat(12, minmax(0, 1fr)) auto; gap: 4px; margin-bottom: .4rem; }
.cal-m, .cal-y { display: flex; align-items: center; justify-content: center; gap: .3rem; padding: .45rem .2rem; border-radius: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); border: 1px solid var(--rule); background: var(--paper); }
.cal-y { border-color: transparent; padding: .45rem .5rem; white-space: nowrap; }
.cal-m:hover, .cal-y:hover { text-decoration: none; border-color: #b7c6d1; color: var(--text); }
.cal-m.has { background: var(--navy-soft); color: var(--denim); border-color: #b9d0de; }
.cal-m.on { background: var(--denim); color: #fff; border-color: var(--denim); }
.cal-n { font-size: .68rem; background: var(--cherubim); color: var(--branch); border-radius: 8px; padding: 0 5px; line-height: 1.4; }
.cal-sum { margin: .3rem 0 .9rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.cal-dn { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .45rem .5rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #f8f9fb; }
.cal-d { min-height: 96px; padding: .35rem .4rem .45rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-d.out { background: #f8f9fb; }
.cal-d.sabbath { background: #fbfcfd; }
.cal-num { font-size: .8rem; font-weight: 600; color: var(--muted); }
.cal-d.today .cal-num { background: var(--denim); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; }
.cal-ev { display: block; font-size: .76rem; line-height: 1.3; padding: 3px 6px; border-radius: 4px; background: var(--navy-soft); color: var(--denim); border-left: 3px solid var(--denim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev:hover { text-decoration: none; background: #d6e5ee; }
.cal-ev b { font-weight: 700; }
.cal-ev.st-live { background: var(--green-soft); color: var(--green); border-left-color: var(--nile); }
.cal-ev.st-draft { background: var(--grey-soft); color: var(--grey); border-left-color: #aab4bf; border-left-style: dashed; }
.cal-ev.st-closed { opacity: .8; }
.cal-ev.expired { opacity: .55; }
.cal-list { display: none; }
.cal-li { display: flex; gap: .8rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid #edf0f4; color: var(--text); }
.cal-li:hover { text-decoration: none; }
.cal-li-d { flex: none; width: 56px; text-align: center; font-weight: 700; color: var(--denim); font-size: .85rem; }
@media (max-width: 720px) {
  .cal-year { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cal-y { display: none; }
  .cal-d { min-height: 46px; }
  .cal-ev { font-size: 0; padding: 0; height: 6px; border-left: 0; border-radius: 3px; background: var(--denim); }
  .cal-ev.st-live { background: var(--nile); }
  .cal-list { display: block; margin-top: 1rem; }
}
.photo-edit > div:last-child, .photo-edit > form { flex: 1; min-width: 220px; }
.me-text small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Agenda (printed layout: Presenter | No. | Item | Backup) */
.agenda-table td { vertical-align: top; }
.agenda-table .col-pres { width: 5.5rem; }
.agenda-table .col-no { width: 3.2rem; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.agenda-table .col-bk { width: 4.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.agenda-table .col-act { width: 1%; }
.agenda-table .actions { white-space: nowrap; text-align: right; }
.agenda-table .pres { color: var(--vine, #4A7729); font-weight: 700; letter-spacing: .02em; }
.agenda-table tr.ag-block td { background: color-mix(in srgb, var(--nile, #007681) 7%, transparent); color: var(--denim, #003B5C); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .03em; font-size: .86rem; padding-top: .75rem; }
.agenda-table tr.ag-block .ag-edit { text-transform: none; font-style: normal; font-weight: 400; letter-spacing: 0; }
.agenda-table tr.ag-sub .col-no { font-weight: 400; color: var(--muted); padding-left: 1.2rem; }
.agenda-table tr.ag-sub td { font-size: .92rem; }
.agenda-table tr.st-done .ag-title { color: var(--muted); }
.ag-edit { margin-top: .3rem; }
.ag-edit > summary { cursor: pointer; font-size: .8rem; color: var(--muted); list-style: none; display: inline-block; }
.ag-edit > summary::-webkit-details-marker { display: none; }
.ag-edit > summary:hover { color: var(--nile); text-decoration: underline; }
.ag-edit[open] > form { margin-top: .6rem; padding: .8rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); max-width: 520px; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; margin-bottom: 1rem; }
.seg label { padding: .35rem .9rem; cursor: pointer; font-size: .88rem; margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--denim, #003B5C); color: #fff; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--cherubim, #F0B323); outline-offset: -2px; }
.agenda-block { list-style: none; margin: 1.1rem 0 .5rem; padding: .35rem 0 .35rem .8rem; border-left: 3px solid var(--nile, #007681); color: var(--denim, #003B5C); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .03em; font-size: .85rem; }
.agenda-block:first-child { margin-top: 0; }
.subitems { list-style: none; margin: .5rem 0 0; padding: 0 0 0 .2rem; border-left: 2px solid var(--rule); }
.subitems li { padding: .2rem 0 .2rem .7rem; font-size: .92rem; }
.subitems .num { color: var(--muted); margin-right: .25rem; }
.subitems .bk, .agenda-item .bk { font-size: .78rem; color: var(--muted); }

/* ---------- Watermark preview (Settings) */
.wm-preview { position: relative; margin-top: .7rem; height: 210px; max-width: 360px; background: #fff; border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow: hidden; padding: 1.1rem 1.2rem; }
.wm-lines span { display: block; height: 7px; background: var(--slate-2); border-radius: 3px; margin-bottom: 11px; }
.wm-name { position: absolute; inset: 0; display: grid; place-items: center; transform: rotate(-35deg); font: 700 2rem/1 var(--sans, sans-serif); color: rgba(89,89,102,var(--wm)); white-space: nowrap; pointer-events: none; }
.wm-foot { position: absolute; left: .6rem; right: .6rem; bottom: .45rem; font-size: .55rem; color: rgba(34,34,51,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.muted-row td { color: var(--muted); }
.btn-icon { min-width: 2rem; justify-content: center; padding-left: .45rem; padding-right: .45rem; }
.dept-group + .dept-group { margin-top: 1rem; }
.dept-name { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--nile); margin-bottom: .35rem; }

/* ---------- Attendee picker */
.picker input[type=search] { width: 100%; }
.picker-bar { display: flex; justify-content: space-between; align-items: center; margin: .5rem 0 .35rem; color: var(--muted); }
.picker-bar b { color: var(--text); }
.linkish { background: none; border: 0; padding: 0; color: var(--nile); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.picker-list { max-height: 320px; overflow: auto; border: 1px solid var(--rule); border-radius: 8px; }
.picker-row { display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem; margin: 0; cursor: pointer; border-bottom: 1px solid var(--slate-2); }
.picker-row:last-of-type { border-bottom: 0; }
.picker-row:hover { background: var(--slate); }
.picker-row.on { background: var(--green-soft); }
.picker-row input { flex: none; }
.picker-row .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.picker-row .who small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-empty { padding: .7rem; margin: 0; }
.back-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }

/* ---------- Login code page */
.otp-email { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .9rem; margin: .2rem 0 1rem; background: var(--slate); border-radius: 8px; border-left: 3px solid var(--nile); }
.otp-email b { font-size: 1.02rem; word-break: break-all; }
.otp-email .linkish { align-self: flex-start; margin-top: .15rem; }
.otp-actions { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
#otp-expiry.warn { color: var(--amber); font-weight: 600; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--slate); }
#resend-btn:disabled { opacity: .65; cursor: not-allowed; }
input[type=range][data-wm-slider] { width: 100%; max-width: 360px; padding: 0; border: 0; box-shadow: none; background: transparent; accent-color: var(--nile); height: 1.6rem; }

/* ---------- Active / inactive switch */
.switch { display: inline-flex; align-items: center; gap: .45rem; background: none; border: 0; padding: .15rem 0; cursor: pointer; font: inherit; font-size: .82rem; color: var(--muted); }
.switch .knob { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--slate-2); transition: background .15s; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch.on .knob { background: var(--vine); }
.switch.on .knob::after { transform: translateX(14px); }
.switch.on .lbl { color: var(--text); }
.switch:focus-visible { outline: 2px solid var(--cherubim); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .switch .knob, .switch .knob::after { transition: none; } }
.inactive-row td { color: var(--muted); }

/* ---------- Click-to-open "Add" panels */
.add-panel { padding: 0; overflow: hidden; }
.add-panel > summary { list-style: none; display: flex; width: 100%; justify-content: center; border-radius: inherit; margin: 0; }
.add-panel > summary::-webkit-details-marker { display: none; }
details.add-panel[open] > summary.btn { transition: none; border-radius: 0; background: var(--slate); color: var(--text); border-color: transparent; border-bottom: 1px solid var(--rule); justify-content: flex-start; }
.add-panel[open] > summary::after { content: "Close"; margin-left: auto; font-size: .8rem; color: var(--muted); font-weight: 400; }
.add-panel > .add-body { padding: 1.1rem 1.25rem 1.25rem; }
details.add-panel[open] > summary.btn:hover { background: var(--slate-2); color: var(--text); }

/* ---------- Tags */
.tags { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .3rem; }
.tag { display: inline-flex; align-items: center; gap: .25rem; padding: .08rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--nile) 10%, transparent); color: var(--nile); font-size: .74rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; line-height: 1.5; }
a.tag:hover, .tag-btn:hover { border-color: var(--nile); }
.tag.on { background: var(--nile); color: #fff; }
.tag.on .muted { color: rgba(255,255,255,.8); }
.tag-btn { cursor: pointer; font-family: inherit; }
.tag-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .8rem; }
.tag-suggest { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.status-help { list-style: none; padding: 0; margin: .4rem 0 0; }
.status-help li { padding: .15rem 0; }

/* ---------- Bulk download */
.bulk-bar { margin: -.2rem 0 .8rem; padding: .55rem .8rem; background: var(--slate); border-radius: 8px; }
.bulk-inner { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.doc-pick { display: flex; align-items: center; padding-right: .35rem; margin: 0; cursor: pointer; }
.doc-pick input { width: 1.05rem; height: 1.05rem; }

/* ---------- Attendance */
.seg.att { margin: 0; }
.seg.att label { padding: .25rem .65rem; font-size: .82rem; }
.seg.att label.att-present:has(input:checked) { background: var(--vine); }
.seg.att label.att-apology:has(input:checked) { background: var(--cherubim); color: var(--text); }
.seg.att label.att-absent:has(input:checked) { background: var(--muted); }
tr.saving { opacity: .6; }
.quorum-card { border-left: 4px solid var(--rule); }
.quorum-card.ok { border-left-color: var(--vine); }
.quorum-card.no { border-left-color: var(--amber); }
.q-big { font-weight: 700; font-size: 1.05rem; margin: .2rem 0 .5rem; }
.quorum-card.ok .q-big { color: var(--vine); }
.quorum-card.no .q-big { color: var(--amber); }
.q-counts { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .6rem; }

/* ---------- Decisions & minutes */
.minutes-list { padding: 0 1.35rem 1rem; }
.mn-block { margin: 1rem 0 .4rem; padding-left: .6rem; border-left: 3px solid var(--nile); color: var(--denim); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: .84rem; letter-spacing: .03em; }
.mn-item { padding: .7rem 0; border-bottom: 1px solid var(--slate-2); }
.mn-item.sub { padding-left: 1.4rem; }
.mn-title { font-weight: 600; margin-bottom: .35rem; }
.mn-title .num { color: var(--nile); margin-right: .2rem; }
.mn-item textarea { width: 100%; }
.mn-vote { margin-top: .35rem; padding: .35rem .55rem; background: var(--slate); border-radius: 6px; }
.ap { display: flex; gap: .55rem; align-items: flex-start; padding: .45rem 0; }
.ap.done .ap-body > div:first-child { text-decoration: line-through; color: var(--muted); }
.ap-tick { width: 1.3rem; height: 1.3rem; border: 1.5px solid var(--nile); border-radius: 4px; background: #fff; color: #fff; font-weight: 700; line-height: 1; cursor: pointer; flex: none; margin-top: .1rem; padding: 0; }
.ap.done .ap-tick { background: var(--vine); border-color: var(--vine); }
.ap-body { flex: 1; min-width: 0; }
.ap-add { margin-top: .4rem; }
.ap-add > summary { cursor: pointer; font-size: .82rem; color: var(--nile); }
.ap-add[open] > .ap-form { margin-top: .5rem; padding: .8rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }

/* ---------- Settings sub-pages, privacy notices, templates */
.card-head-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .6rem; }
.split-wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .84rem; line-height: 1.55; }
.ph-list li { display: flex; gap: .5rem; flex-wrap: wrap; padding: .18rem 0; border-bottom: 1px dashed var(--rule); }
.ph-list code { font-size: .78rem; }
.accept-list { max-height: 26rem; overflow: auto; }
.accept-list li { padding: .3rem 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: .5rem; }
.notice-body { line-height: 1.6; }
.notice-body h1 { font-size: 1.35rem; }
.notice-body h2 { font-size: 1.15rem; margin: 0 0 .6rem; color: var(--navy); }
.notice-body h3 { font-size: .98rem; margin: 1.3rem 0 .35rem; color: var(--navy); }
.notice-body ul { padding-left: 1.2rem; margin: .4rem 0 .8rem; }
.notice-body li { margin: .25rem 0; }
.notice-preview { max-height: 46rem; overflow: auto; font-size: .9rem; padding-right: .5rem; }
.consent-card { padding: 0; overflow: hidden; }
.consent-head { display: flex; gap: .9rem; align-items: flex-start; padding: 1.4rem 1.5rem 1rem; background: var(--navy-soft); border-bottom: 1px solid var(--rule); }
.consent-head h1 { font-size: 1.3rem; margin: 0 0 .25rem; }
.consent-ico { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; }
.consent-card > .flash, .consent-card > .notice-meta { margin: 1rem 1.5rem 0; }
.consent-card .notice-body { margin: .6rem 1.5rem 0; max-height: 52vh; overflow: auto; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--paper); }
.consent-form { padding: 1.1rem 1.5rem 1.4rem; }
.consent-check { font-weight: 600; margin-bottom: .9rem; }
.tpl-pick { padding: 1rem 1.25rem; }
.tpl-pick-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .55rem; }
.tpl-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.tpl-chips .tag { font-size: .82rem; padding: .25rem .75rem; }
.tag.on { background: var(--navy); color: #fff; }
.inline-menu { display: inline-block; position: relative; }
.inline-menu > summary { list-style: none; cursor: pointer; }
.inline-menu > summary::-webkit-details-marker { display: none; }
.inline-menu-body { position: absolute; right: 0; top: calc(100% + .3rem); z-index: 20; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: .75rem; display: grid; gap: .6rem; min-width: 18rem; text-align: left; }
.inline-menu-body input[type=text] { min-width: 0; flex: 1; }
.g-mark { display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; font-size: .62rem; font-weight: 700; background: var(--slate); color: var(--muted); vertical-align: middle; }

/* ---------- Pop-up notifications */
.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 200; display: grid; gap: .6rem; width: min(24rem, calc(100vw - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: .7rem; padding: .8rem .8rem .8rem 1rem; background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); transform: translateY(10px); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
.toast.in { transform: none; opacity: 1; }
.toast-main { flex: 1; min-width: 0; display: grid; gap: .1rem; font-size: .86rem; }
.toast-main span { color: var(--muted); overflow-wrap: anywhere; }
.toast-action { border-left-color: var(--spark); }
.toast-action b { color: var(--spark); }
.toast-live { border-left-color: var(--green); }
.toast-x { border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .1rem .3rem; }
.side-install { margin: .4rem .9rem; display: flex; align-items: center; gap: .5rem; justify-content: center; padding: .55rem; border-radius: var(--radius-sm); border: 1px dashed rgba(255,255,255,.35); background: transparent; color: #fff; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.side-install:hover { background: rgba(255,255,255,.08); }
[hidden] { display: none !important; }
@media (max-width: 760px) { .toasts { right: .5rem; left: .5rem; bottom: .5rem; width: auto; } .split-wide { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---------- Emails log */
.mail-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.1rem; }
.mail-stats .stat { display: grid; gap: .1rem; color: inherit; text-decoration: none; padding: .8rem 1rem; }
.mail-stats .stat b { font-size: 1.45rem; line-height: 1.1; color: var(--denim); font-variant-numeric: tabular-nums; }
.mail-stats .stat span { color: var(--muted); font-size: .8rem; }
.mail-stats .stat.ok::after { background: var(--green); }
.mail-stats .stat.bad::after { background: var(--red); }
.mail-stats .stat.bad b { color: var(--red); }
.mail-stats .stat.wait::after { background: var(--spark); }
.mail-stats .stat.on { border-color: var(--navy); box-shadow: 0 0 0 2px color-mix(in srgb, var(--navy) 18%, transparent); }
.mail-stats .stat.plain b { font-size: 1.1rem; }
.card-flush { padding: 0; overflow: hidden; }
.mail-table td { vertical-align: top; }
.mail-table tr.mail-failed td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.mail-err { color: var(--red); font-size: .78rem; margin-top: .2rem; overflow-wrap: anywhere; }
.pager { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: .8rem; border-top: 1px solid var(--rule); }
.dns-check li { display: flex; gap: .65rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.dns-check li > div { min-width: 0; overflow-wrap: anywhere; }
.dns-dot { flex: none; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff; background: var(--grey); }
.dns-ok .dns-dot { background: var(--green); }
.dns-warn .dns-dot { background: var(--spark); }
.dns-bad .dns-dot { background: var(--red); }
.mail-frame { width: 100%; height: 34rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: #f3f5f8; }
.mail-text { white-space: pre-wrap; font-size: .85rem; background: var(--slate); padding: .9rem 1rem; border-radius: var(--radius-sm); max-height: 30rem; overflow: auto; }
.chain li { padding: .3rem 0; display: flex; gap: .5rem; align-items: center; }
.chain li.on { font-weight: 700; }
@media (max-width: 900px) { .mail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Login: how to receive the code */
.otp-via { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.otp-via legend { font-weight: 600; font-size: .9rem; margin-bottom: .45rem; padding: 0; }
.via-opt { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .85rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); cursor: pointer; background: #fff; }
.via-opt:has(input:checked) { border-color: var(--navy); background: var(--navy-soft); box-shadow: 0 0 0 1px var(--navy); }
.via-opt input { margin-top: .2rem; accent-color: var(--navy); }
.via-opt span { display: grid; gap: .05rem; }
.via-opt small { color: var(--muted); font-size: .8rem; }
.q-gender b { color: var(--text); }

/* ---------- Login: choose email or SMS */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.via-pick { border: 0; padding: 0; margin: 0 0 1.1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.via-tile { position: relative; display: grid; justify-items: center; gap: .4rem; padding: 1rem .5rem .85rem; border: 1.5px solid var(--rule); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.via-tile input { position: absolute; opacity: 0; pointer-events: none; }
.via-tile b { font-size: .95rem; color: var(--text); }
.via-tile:hover { border-color: color-mix(in srgb, var(--navy) 45%, var(--rule)); }
.via-tile:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); background: var(--navy-soft); }
.via-tile:has(input:checked)::after { content: "\2713"; position: absolute; top: .45rem; right: .55rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.via-tile:has(input:focus-visible) { outline: 3px solid var(--focus, #e09a2a); outline-offset: 2px; }
.via-art svg { display: block; }
#login-form.via-email .via-field-sms, #login-form.via-sms .via-field-email { display: none; }
#login-form:has(input[name="via"][value="sms"]:checked) .via-field-email { display: none; }
#login-form:has(input[name="via"][value="sms"]:checked) .via-field-sms { display: block; }
#login-form:has(input[name="via"][value="email"]:checked) .via-field-sms { display: none; }
#login-form:has(input[name="via"][value="email"]:checked) .via-field-email { display: block; }
@media (prefers-reduced-motion: reduce) { .via-tile { transition: none; } }
.phone-fix { margin: .4rem 0 0; padding-left: 1.2rem; } .phone-fix li { margin: .15rem 0; }

/* ---------- Breaks and timekeeping */
.break-form { margin-top: .9rem; padding: .9rem 1rem; border: 1px dashed var(--rule); border-radius: var(--radius-sm); background: var(--slate); }
.late-note { margin-top: .8rem; padding: .65rem .9rem; border-radius: var(--radius-sm); background: #fff6e6; border: 1px solid #f1d39a; font-size: .9rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.shift-row { margin-top: .7rem; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.now-banner.on-break { background: linear-gradient(135deg, #7a5a1e, #a87a24); }
.agenda-break .body { padding: .35rem 0; }
.break-line { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .55rem .85rem; border-radius: var(--radius-sm); background: #f6f1e6; border: 1px dashed #d9c79f; color: #5c4a22; }
.break-line .controls { margin-left: auto; display: flex; gap: .35rem; }
.agenda-break.done .break-line { opacity: .65; }
.agenda-break.in_progress .break-line { background: #fff3d6; border-style: solid; }
.agenda-table tr.ag-break td { background: #f8f4ea; }
.ag-break-line { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; color: #5c4a22; }
.ag-break-ico { font-size: 1rem; }

/* ---------- Dashboard: one screen on desktops, normal scrolling on phones */
.page-wide { max-width: 1480px; }
.dash-head { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; margin-bottom: 1rem; }
.dash-head h1 { margin: 0; }
.dash-alert { margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--red); background: #fdecee; padding: .3rem .75rem; border-radius: 999px; }
.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.dash-stats .stat { padding: .7rem .9rem; color: inherit; text-decoration: none; }
.dash-stats .stat .n { font-size: 1.45rem; }
.dash-stats .stat .l { font-size: .78rem; }
.dash-stats a.stat:hover { border-color: #c9d2de; }
.dash-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.dash-panel { display: flex; flex-direction: column; min-height: 0; margin: 0; }
.dash-panel .card-head { flex: none; }
.dash-scroll { overflow: auto; min-height: 0; }
.dash-chart .bars { height: 150px; }
@media (min-width: 1100px) {
  .dash-stats { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .dash-chart { grid-column: 1; grid-row: 1; }
  .dash-docs { grid-column: 1; grid-row: 2; }
  .dash-meetings { grid-column: 2; grid-row: 1 / span 2; }
  .dash-activity { grid-column: 3; grid-row: 1 / span 2; }
  .dash-activity .feed { max-height: none; }
}
/* Fit the whole page in the window on large screens. */
@media (min-width: 1100px) and (min-height: 640px) {
  body.fit-screen .main-wrap { height: 100vh; min-height: 0; overflow: hidden; }
  body.fit-screen .page-fit { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-top: 1.4rem; padding-bottom: 1rem; }
  body.fit-screen .page-fit .dash { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  body.fit-screen .dash-grid { flex: 1; min-height: 0; }
  body.fit-screen .dash-chart .dash-fill { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  body.fit-screen .dash-chart .bars { flex: 1; height: auto; min-height: 60px; }
  body.fit-screen .footer { padding-top: .4rem; padding-bottom: .6rem; }
}

/* ---------- Pop-up dialogs */
dialog.modal { border: 0; border-radius: var(--radius); padding: 1.4rem 1.5rem 1.2rem; width: min(26rem, calc(100vw - 2rem)); max-height: calc(100vh - 3rem); overflow: auto; box-shadow: 0 24px 60px rgba(0, 28, 48, .28); color: var(--text); }
dialog.modal-wide { width: min(40rem, calc(100vw - 2rem)); }
dialog.modal::backdrop { background: rgba(0, 28, 48, .45); }
dialog.modal h3 { margin: 0 0 1rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--rule); }
dialog.modal .picker-list { max-height: 45vh; }
.pre-wrap { white-space: pre-wrap; } .details-kv { margin-top: .4rem; }

/* ---------- Formatted text editor (decisions and minutes) */
.rt { border: 1px solid var(--rule); border-radius: var(--radius-sm); background: #fff; margin: .35rem 0 .6rem; }
.rt:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 14%, transparent); }
.rt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: .3rem .35rem; border-bottom: 1px solid var(--rule); background: var(--slate); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.rt-b { border: 0; background: transparent; min-width: 1.9rem; height: 1.9rem; padding: 0 .35rem; border-radius: 6px; cursor: pointer; color: var(--text); font: inherit; font-size: .85rem; line-height: 1; }
.rt-b:hover, .rt-b:focus-visible { background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.rt-sep { width: 1px; height: 1.3rem; background: var(--rule); margin: 0 .25rem; }
.rt-size { width: auto; height: 1.9rem; padding: 0 1.6rem 0 .45rem; font-size: .82rem; border-radius: 6px; }
.rt-pop { position: relative; display: inline-flex; }
.rt-colbtn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.rt-a { font-weight: 700; font-size: .85rem; }
.rt-bar-col { width: 14px; height: 3px; border-radius: 2px; background: #c0392b; }
.rt-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; display: flex; gap: 4px; padding: .4rem; background: #fff; border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--shadow-lg); }
.rt-menu.hide { display: none; }
.rt-list { flex-direction: column; min-width: 10rem; padding: .3rem; }
.rt-list button { border: 0; background: none; text-align: left; padding: .45rem .6rem; border-radius: 6px; cursor: pointer; font: inherit; font-size: .85rem; }
.rt-list button:hover { background: var(--slate); }
.rt-sw { width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); cursor: pointer; padding: 0; font-size: .8rem; color: var(--muted); display: inline-grid; place-items: center; position: relative; }
.rt-custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); color: #fff; font-weight: 700; }
.rt-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rt-area { min-height: 4.5rem; max-height: 22rem; overflow: auto; padding: .65rem .8rem; outline: none; line-height: 1.55; font-size: .95rem; }
.rt-area:empty::before { content: attr(data-placeholder); color: var(--muted); }
.rt-area ul, .rt-area ol, .rich ul, .rich ol { margin: .3rem 0; padding-left: 1.4rem; }
.rt-area table, .rich table { border-collapse: collapse; margin: .4rem 0; }
.rt-area td, .rt-area th, .rich td, .rich th { border: 1px solid #c9d2de; padding: .3rem .5rem; min-width: 3rem; }
.rt-area hr, .rich hr { border: 0; border-top: 1px solid var(--rule); margin: .6rem 0; }
.rt-foot { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; padding: .3rem .5rem; border-top: 1px solid var(--rule); }
.rt-status { font-size: .78rem; color: var(--muted); margin-right: auto; }
.rt-status.ok { color: var(--green); }
.rt-status.warn { color: var(--amber); }
.rt-status.err { color: var(--red); }
.outcome .rich { display: block; margin-top: .2rem; }
.app-ver { font-variant-numeric: tabular-nums; opacity: .8; }

/* Upload progress */
.upload-progress { margin: .7rem 0; max-width: 28rem; }
.upload-progress .up-label { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .3rem; }
.upload-progress .up-bar { height: .55rem; border-radius: 99px; background: var(--rule); overflow: hidden; }
.upload-progress .up-bar span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .25s ease;
  background: repeating-linear-gradient(45deg, var(--denim) 0 10px, color-mix(in srgb, var(--denim) 75%, white) 10px 20px); background-size: 28px 28px; animation: up-stripes .8s linear infinite; }
.upload-progress.busy .up-bar span { animation-duration: .4s; }
@keyframes up-stripes { to { background-position: 28px 0; } }
@media (prefers-reduced-motion: reduce) { .upload-progress .up-bar span { animation: none; } }
.confirm-modal h3 { font-size: 1.05rem; line-height: 1.4; }
/* Waiting room */
.waiting-screen { text-align: center; padding: 3rem 1.5rem; }
.waiting-screen .w-icon { font-size: 2.6rem; }
.wait-list { list-style: none; margin: 0 0 .8rem; padding: 0; }
.wait-list li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--rule); }
.ap-mini { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .88rem; }
.ap-mini li { margin: .15rem 0; }
.ap-add { display: grid; grid-template-columns: 1fr 10rem 9rem auto; gap: .4rem; margin-top: .4rem; }
@media (max-width: 700px) { .ap-add { grid-template-columns: 1fr; } }
.w-hidden { display: none !important; }
/* Roles & permissions grid */
.perm-table th[scope=row] { font-weight: 600; white-space: nowrap; }
.perm-table .c { text-align: center; width: 5.5rem; }
.perm-table td .check { display: block; margin: .1rem 0; }
.perm-table input[type=checkbox] { width: 1.05rem; height: 1.05rem; accent-color: var(--denim); }
.perm-card .card-head .check { font-weight: 600; }
.sticky-save { position: sticky; bottom: 0; background: var(--bg, #f3f5f7); padding: .8rem 0; z-index: 2; }
.perm-table { table-layout: fixed; }
.perm-table thead th:first-child { width: 15rem; }
.perm-table thead th.c { width: 5.5rem; }
.perm-table tbody th[scope=row] { text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--text); background: transparent; vertical-align: middle; }
.perm-table td { vertical-align: middle; }
@media (max-width: 760px) { .perm-table { table-layout: auto; } .perm-table thead th:first-child { width: auto; } }
