svg.icon { width: 16px; height: 16px; flex-shrink: 0; vertical-align: -3px; }

:root {
  --cream: #f4eedf;
  --paper: #fffaf1;
  --ink: #183b33;
  --forest: #163e34;
  --forest-soft: #245348;
  --moss: #839d6b;
  --orange: #e85e16;
  --gold: #e3aa42;
  --blue: #6e9d9a;
  --muted: #746f62;
  --danger: #a84432;
  --line: rgba(24, 59, 51, 0.14);
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden], .view:not(.active), .print-sheet { display: none !important; }
html { min-width: 320px; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 88% 7%, rgba(227,170,66,.12), transparent 24rem), radial-gradient(circle at 35% 90%, rgba(110,157,154,.1), transparent 30rem), var(--cream); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.sr-only { width: 1px; height: 1px; padding: 0; margin: -1px; position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { min-height: 100vh; padding: 28px 20px 24px; position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; color: var(--cream); background: linear-gradient(145deg, transparent 0 72%, rgba(227,170,66,.07) 72% 73%, transparent 73%), radial-gradient(circle at 12% 84%, rgba(227, 170, 66, .14), transparent 16rem), var(--forest); box-shadow: 10px 0 35px rgba(22,62,52,.08); }
.brand { padding: 0 9px 26px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.brand img { width: 27px; height: 29px; object-fit: contain; }
.brand > span:last-child { position: relative; top: 6px; }
.product-name { width: 100%; margin-bottom: 28px; padding: 15px 12px; display: flex; align-items: center; gap: 12px; border: 0; border-block: 1px solid rgba(244,238,223,.13); color: inherit; background: transparent; text-align: left; cursor: pointer; }
.product-name:hover { background: rgba(244,238,223,.055); }
.product-icon { width: 39px; height: 39px; flex: 0 0 auto; overflow: hidden; border-radius: 8px; background: var(--paper); }
.product-icon img { width: 100%; height: 100%; object-fit: cover; }
.product-name div { min-width: 0; display: grid; gap: 1px; }
.product-name small { color: rgba(244,238,223,.56); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.product-name strong { overflow: hidden; font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-link { min-height: 38px; margin: 0 0 12px; padding: 0 13px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(244,238,223,.18); border-radius: 6px; color: rgba(244,238,223,.68); font-size: 13px; font-weight: 700; transition: color .16s, background .16s, border-color .16s; }
.dashboard-link:hover { color: var(--paper); border-color: rgba(244,238,223,.35); background: rgba(244,238,223,.1); }
.sidebar nav { display: grid; gap: 5px; }
.nav-label { margin: 18px 12px 7px; color: rgba(244,238,223,.43); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.nav-item { width: 100%; padding: 11px 13px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 6px; color: rgba(244,238,223,.68); background: transparent; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; transition: color .16s, background .16s; }
.nav-item > span:first-child { width: 20px; font-size: 16px; text-align: center; }
.nav-item > span:first-child svg.icon { width: 18px; height: 18px; vertical-align: -4px; }
.nav-item:hover, .nav-item.active { color: var(--paper); background: rgba(244,238,223,.1); }
.sidebar-note { margin: auto 4px 0; padding: 16px; border: 1px solid rgba(244,238,223,.13); border-radius: 8px; background: rgba(244,238,223,.055); }
.sidebar-note > span { color: var(--gold); }
.sidebar-note p { margin: 7px 0 0; color: rgba(244,238,223,.56); font-size: 12px; line-height: 1.55; }
.sidebar-note strong { display: block; color: var(--cream); font-family: var(--serif); font-size: 16px; font-weight: 500; }

.workspace { min-width: 0; }
.topbar { height: 72px; padding: 0 38px; position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(244,238,223,.92); backdrop-filter: blur(10px); }
.breadcrumb { display: flex; gap: 9px; color: var(--muted); font-size: 13px; }
.breadcrumb i { opacity: .4; }
.breadcrumb strong { color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.role-badge { padding: 5px 9px; border-radius: 999px; color: var(--forest); background: rgba(131,157,107,.2); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.account-button { padding: 7px 8px; border: 0; color: var(--muted); background: transparent; font-size: 12px; font-weight: 600; cursor: pointer; }
.account-button:hover { color: var(--ink); }
.account-menu { position: relative; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu-trigger { min-height: 38px; padding: 0 11px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,250,241,.72); font-size: 12px; font-weight: 700; cursor: pointer; }
.account-menu-trigger span:last-child { color: var(--muted); transition: transform .16s; }
#account-menu-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu[open] .account-menu-trigger span:last-child { transform: rotate(180deg); }
.account-menu-panel { min-width: 160px; padding: 6px; position: absolute; z-index: 30; right: 0; top: calc(100% + 8px); display: grid; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); box-shadow: 0 14px 36px rgba(24,59,51,.18); }
.account-menu-username { margin: 2px 4px 4px; padding: 0 7px 8px; color: var(--muted); font-size: 11px; font-weight: 700; border-bottom: 1px solid var(--line); }
.account-menu-panel a, .account-menu-panel button { width: 100%; min-height: 38px; padding: 0 11px; display: flex; align-items: center; border: 0; border-radius: 4px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; }
.account-menu-panel a:hover, .account-menu-panel button:hover { background: rgba(24,59,51,.07); }
.account-menu-panel button { color: var(--danger); }
.club-switcher { max-width: 220px; padding: 7px 11px; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; color: var(--forest); background: rgba(255,250,241,.72); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.auth-dialog-footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.auth-dialog-footer p { margin: 0; color: var(--muted); font-size: 12px; }
.auth-dialog-footer p a { color: var(--forest); font-weight: 700; }
.auth-dialog-links { margin-top: 7px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 11px; }
.auth-dialog-links a { color: inherit; transition: color .16s ease; }
.auth-dialog-links a:hover { color: var(--forest); }
dialog.club-dialog { width: min(620px, calc(100% - 28px)); padding: 27px; }
.club-choice-list { margin: 20px 0; display: grid; gap: 8px; }
.club-choice { width: 100%; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper); text-align: left; cursor: pointer; }
.club-choice strong { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.club-choice span { color: var(--orange); }
.club-dialog-footer { margin: 0 0 6px; text-align: center; }
.club-dialog-footer a { color: var(--forest); font-size: 13px; font-weight: 700; }
.club-menu-panel { min-width: 220px; }
.club-menu-panel #club-menu-list button { width: 100%; min-height: 38px; padding: 0 11px; display: flex; align-items: center; border: 0; border-radius: 4px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; }
.club-menu-panel #club-menu-list button:hover { background: rgba(24,59,51,.07); }
.club-menu-empty { margin: 2px 4px 4px; padding: 0 7px; color: var(--muted); font-size: 12px; }
.account-menu-panel a.club-menu-new { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--forest); }

.content { width: min(1240px, calc(100% - 70px)); margin: 0 auto; padding-bottom: 70px; }
.page-heading { min-height: 150px; padding: 34px 0 28px; position: relative; overflow: hidden; display: flex; align-items: end; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.page-heading::after { width: 118px; height: 118px; position: absolute; right: 8%; bottom: -66px; content: "✦"; display: grid; place-items: start center; padding-top: 15px; border: 1px solid rgba(232,94,22,.16); border-radius: 50%; color: rgba(232,94,22,.28); background: radial-gradient(circle, rgba(227,170,66,.12) 0 26%, transparent 27%); font-family: var(--serif); font-size: 18px; }
.page-heading > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 10px; display: flex; align-items: center; gap: 9px; color: var(--orange); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow span { width: 20px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); }
h1 { margin: 0; font-size: clamp(38px, 4vw, 50px); font-weight: 500; line-height: 1; letter-spacing: -.025em; }
h2 { margin: 0; font-size: 28px; font-weight: 500; line-height: 1.1; }
.intro { max-width: 690px; margin: 9px 0 0; color: var(--muted); }
.heading-actions, .panel-actions { display: flex; align-items: center; gap: 10px; }
.meeting-identity { min-width: 0; display: flex; align-items: center; gap: 22px; }
.meeting-detail-cover { width: 86px; height: 126px; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center; border-radius: 5px; color: rgba(244,238,223,.9); background: var(--forest-soft); font-family: var(--serif); font-size: 28px; box-shadow: 0 10px 24px rgba(22,62,52,.16); }
.meeting-detail-cover img { width: 100%; height: 100%; object-fit: cover; }

.primary-button, .secondary-button, .quiet-button { min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--forest); border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .16s, background .16s; }
.primary-button { color: var(--paper); background: var(--forest); box-shadow: 0 7px 18px rgba(22,62,52,.12); }
.primary-button:hover { background: var(--forest-soft); transform: translateY(-1px); }
.secondary-button { background: transparent; }
.secondary-button:hover, .quiet-button:hover { background: rgba(24,59,51,.06); }
.quiet-button { min-height: 38px; border-color: var(--line); background: transparent; }
.full-button { width: 100%; }
.text-button { padding: 8px 2px; border: 0; color: var(--forest); background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.danger-text { color: var(--danger); }

.stats-grid { margin: 18px 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats-grid article { min-height: 88px; padding: 16px 18px; position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,250,241,.7); box-shadow: 0 8px 24px rgba(22,62,52,.045); }
.stats-grid article::after { width: 46px; height: 3px; position: absolute; top: 0; left: 18px; content: ""; border-radius: 0 0 4px 4px; background: var(--moss); }
.stats-grid article:nth-child(2)::after { background: var(--gold); }
.stats-grid article:nth-child(3)::after { background: var(--orange); }
.stats-grid article:nth-child(4)::after { background: var(--blue); }
.stat-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50% 50% 50% 12px; font-size: 18px; }
.stat-icon svg.icon { width: 20px; height: 20px; vertical-align: middle; }
.stat-icon.green { background: rgba(131,157,107,.23); }
.stat-icon.gold { background: rgba(227,170,66,.23); }
.stat-icon.orange { background: rgba(232,94,22,.16); }
.stat-icon.blue { background: rgba(110,157,154,.2); }
.stats-grid article div { display: grid; }
.stats-grid strong { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; }
.stats-grid article div span { margin-top: 3px; color: var(--muted); font-size: 11px; }

.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,250,241,.76); box-shadow: 0 12px 34px rgba(22,62,52,.045); }
.panel-heading { min-height: 92px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); }
.panel-heading.compact { min-height: 82px; }
.panel-heading .eyebrow { margin-bottom: 5px; }
.panel-description { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.search-box { min-width: 225px; height: 39px; padding: 0 11px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.search-box span { color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 17px; color: var(--muted); background: rgba(24,59,51,.035); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
td { height: 64px; padding: 9px 17px; border-top: 1px solid rgba(24,59,51,.09); vertical-align: middle; }
tbody tr:first-child td { border-top: 0; }
tbody tr:hover { background: rgba(255,255,255,.35); }
.member-cell { display: flex; align-items: center; gap: 11px; }
.avatar { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: var(--forest-soft); font-size: 11px; font-weight: 700; }
.member-cell div { display: grid; }
.member-cell strong { font-size: 13px; }
.member-cell small { color: var(--muted); font-size: 11px; }
.check-wrap { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.check-wrap input { width: 18px; height: 18px; accent-color: var(--forest); }
.check-wrap span { color: var(--muted); font-size: 11px; }
.loading-cell, .empty-cell { height: 130px; color: var(--muted); text-align: center; }
.status-pill { padding: 5px 9px; border-radius: 999px; background: rgba(131,157,107,.19); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.status-pill.inactive { color: var(--muted); background: rgba(116,111,98,.12); }

.collection-toolbar { min-height: 78px; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.collection-toolbar > p { margin: 0; color: var(--muted); font-size: 12px; }
.meeting-toolbar .search-box { width: min(390px, 60%); }
.meeting-collections { display: grid; gap: 34px; }
.meeting-section { min-width: 0; }
.meeting-section > header { margin-bottom: 14px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.meeting-section > header .eyebrow { margin-bottom: 5px; }
.meeting-section > header h2 { font-size: 31px; }
.section-count { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: rgba(255,250,241,.55); font-family: var(--serif); font-size: 16px; }
.upcoming-meeting-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.upcoming-meeting-card { min-width: 0; min-height: 215px; padding: 18px; position: relative; overflow: hidden; display: grid; grid-template-columns: 112px minmax(0,1fr) auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: linear-gradient(145deg, rgba(255,250,241,.92), rgba(255,250,241,.62)); box-shadow: 0 12px 30px rgba(22,62,52,.055); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.upcoming-meeting-card::after { width: 105px; height: 105px; position: absolute; right: -55px; bottom: -55px; content: ""; border: 1px solid rgba(227,170,66,.22); border-radius: 50%; background: rgba(227,170,66,.1); }
.upcoming-meeting-card:hover, .past-meeting-card:hover { border-color: rgba(24,59,51,.3); box-shadow: 0 17px 38px rgba(22,62,52,.1); transform: translateY(-3px); }
.next-meeting-card { min-height: 280px; grid-column: 1 / -1; grid-template-columns: 150px minmax(0,1fr) auto; color: var(--cream); border-color: rgba(244,238,223,.14); background: radial-gradient(circle at 91% 6%, rgba(227,170,66,.22), transparent 13rem), linear-gradient(135deg, var(--forest), #245348); box-shadow: 0 18px 42px rgba(22,62,52,.16); }
.next-meeting-card::after { width: 170px; height: 170px; right: -85px; bottom: -92px; border-color: rgba(244,238,223,.14); background: rgba(244,238,223,.04); }
.meeting-card-cover { width: 112px; aspect-ratio: 2 / 3; overflow: hidden; display: grid; place-items: center; border-radius: 6px; color: var(--cream); background: var(--forest-soft); font-family: var(--serif); font-size: 30px; box-shadow: 0 12px 25px rgba(22,62,52,.18); }
.next-meeting-card .meeting-card-cover { width: 150px; background: rgba(244,238,223,.12); box-shadow: 0 16px 34px rgba(0,0,0,.2); }
.meeting-card-cover img, .past-meeting-cover img { width: 100%; height: 100%; object-fit: cover; }
.upcoming-meeting-copy { min-width: 0; }
.meeting-status-label { display: inline-block; margin-bottom: 11px; padding: 4px 8px; border-radius: 999px; color: var(--forest); background: rgba(131,157,107,.2); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.next-meeting-card .meeting-status-label { color: var(--forest); background: var(--gold); }
.meeting-calendar-date { margin: 0 0 8px; display: flex; align-items: baseline; gap: 7px; color: var(--orange); }
.meeting-calendar-date strong { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: .8; }
.meeting-calendar-date span { font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.next-meeting-card .meeting-calendar-date { color: var(--gold); }
.upcoming-meeting-card h2 { overflow: hidden; font-size: 25px; text-overflow: ellipsis; }
.next-meeting-card h2 { color: var(--cream); font-size: clamp(31px, 4vw, 43px); }
.meeting-card-author { margin: 4px 0 0; color: var(--orange); font-size: 12px; font-weight: 600; }
.next-meeting-card .meeting-card-author { color: rgba(244,238,223,.7); }
.meeting-card-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.meeting-card-meta span { padding: 5px 8px; border-radius: 999px; color: var(--muted); background: rgba(24,59,51,.06); font-size: 9px; font-weight: 700; }
.next-meeting-card .meeting-card-meta span { color: rgba(244,238,223,.78); background: rgba(244,238,223,.1); }
.meeting-card-arrow { position: relative; z-index: 1; font-size: 23px; }
.past-meetings { padding-top: 3px; }
.past-meeting-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.past-meeting-card { min-width: 0; min-height: 105px; padding: 12px; display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: rgba(255,250,241,.58); box-shadow: 0 8px 20px rgba(22,62,52,.035); text-align: left; cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.past-meeting-cover { width: 54px; aspect-ratio: 2 / 3; overflow: hidden; display: grid; place-items: center; border-radius: 4px; color: var(--cream); background: var(--forest-soft); font-family: var(--serif); font-size: 15px; }
.past-meeting-card > div:nth-child(2) { min-width: 0; }
.past-meeting-date { color: var(--orange); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.past-meeting-card h3, .past-meeting-card p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.past-meeting-card h3 { margin: 4px 0 0; font-size: 17px; font-weight: 600; }
.past-meeting-card p { margin: 1px 0 0; color: var(--muted); font-size: 10px; }
.meeting-section-empty { min-height: 115px; padding: 20px; display: flex; align-items: center; gap: 14px; border: 1px dashed rgba(24,59,51,.23); border-radius: 10px; background: rgba(255,250,241,.4); }
.meeting-section-empty > span { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: rgba(131,157,107,.18); }
.meeting-section-empty div { margin-right: auto; }
.meeting-section-empty strong { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.meeting-section-empty p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.meeting-section-empty.quiet { opacity: .75; }
.upcoming-meeting-card.status-in_progress .meeting-status-label { color: var(--paper); background: var(--orange); }
.upcoming-meeting-card.status-completed .meeting-status-label { color: var(--paper); background: var(--forest-soft); }
.empty-collection { min-height: 260px; padding: 40px; display: grid; grid-column: 1 / -1; place-items: center; align-content: center; border: 1px dashed rgba(24,59,51,.22); border-radius: 9px; color: var(--muted); text-align: center; }
.empty-collection span { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 50%; background: rgba(131,157,107,.18); font-size: 22px; }
.empty-collection h2 { margin-top: 15px; color: var(--ink); }
.empty-collection p { max-width: 440px; margin: 7px 0 18px; }

.book-insights { margin-top: 18px; padding: 22px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: radial-gradient(circle at 94% 5%, rgba(227,170,66,.14), transparent 18rem), linear-gradient(145deg, rgba(255,250,241,.84), rgba(255,250,241,.54)); box-shadow: 0 14px 38px rgba(22,62,52,.055); }
.book-insights::after { width: 170px; height: 170px; position: absolute; right: -95px; top: -105px; content: ""; border: 1px solid rgba(232,94,22,.16); border-radius: 50%; }
.book-insights-heading { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.book-insights-heading .eyebrow { margin-bottom: 6px; }
.book-insights-heading h2 { font-size: 30px; }
.book-insights-heading > p { max-width: 380px; margin: 0; color: var(--muted); font-size: 11px; text-align: right; }
.book-stats { margin: 20px 0 12px; }
.book-stats article { background: rgba(255,255,255,.38); box-shadow: none; }
.book-insight-grid { display: grid; grid-template-columns: 1fr 1fr 1.08fr; gap: 12px; }
.book-insight-panel { min-width: 0; min-height: 235px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.32); }
.insight-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.insight-panel-heading span { color: var(--orange); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.insight-panel-heading h3 { margin: 3px 0 0; font-size: 21px; font-weight: 600; }
.insight-panel-heading > strong { padding: 4px 7px; border-radius: 999px; color: var(--muted); background: rgba(24,59,51,.06); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.book-bar-list { margin-top: 20px; display: grid; gap: 14px; }
.book-bar-row { display: grid; grid-template-columns: minmax(90px,1fr) minmax(70px,1.2fr) 20px; align-items: center; gap: 9px; }
.book-bar-row > div:first-child { min-width: 0; display: grid; }
.book-bar-row strong, .book-bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-bar-row strong { font-size: 10px; }
.book-bar-row > div:first-child span { color: var(--muted); font-size: 8px; }
.book-bar-row b { font-family: var(--serif); font-size: 15px; text-align: right; }
.book-bar-track { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(24,59,51,.08); }
.book-bar-track span { min-width: 3px; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--moss), var(--forest-soft)); }
.genre-bars .book-bar-track span { background: linear-gradient(90deg, var(--gold), var(--orange)); }
.insight-empty { margin: 30px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.shelf-status-visual { margin-top: 20px; display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: center; gap: 20px; }
.shelf-status-ring { width: 112px; height: 112px; position: relative; display: grid; place-content: center; border-radius: 50%; text-align: center; }
.shelf-status-ring::after { width: 76px; height: 76px; position: absolute; inset: 18px; content: ""; border-radius: 50%; background: var(--paper); }
.shelf-status-ring strong, .shelf-status-ring span { position: relative; z-index: 1; }
.shelf-status-ring strong { font-family: var(--serif); font-size: 27px; line-height: 1; }
.shelf-status-ring span { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.shelf-status-legend { margin: 0; display: grid; gap: 9px; }
.shelf-status-legend > div { display: flex; justify-content: space-between; gap: 10px; }
.shelf-status-legend dt { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.shelf-status-legend dt i { width: 8px; height: 8px; border-radius: 50%; background: var(--forest-soft); }
.shelf-status-legend dt i.upcoming { background: var(--gold); }
.shelf-status-legend dt i.unscheduled { background: rgba(110,157,154,.55); }
.shelf-status-legend dd { margin: 0; font-family: var(--serif); font-size: 15px; font-weight: 600; }
.book-era-note { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.book-sort-control { display: grid; gap: 3px; }
.book-sort-control > span { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.book-sort-control select { min-width: 170px; height: 39px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 6px; outline: 0; color: var(--ink); background: var(--paper); font-size: 11px; font-weight: 600; }
.book-sort-control select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(22,62,52,.08); }
.book-view-toggle { height: 39px; padding: 3px; display: flex; align-self: end; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,250,241,.62); }
#view-books .collection-toolbar { flex-wrap: wrap; }
.book-view-toggle button { min-width: 72px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.book-view-toggle button span { font-size: 14px; line-height: 1; }
.book-view-toggle button[aria-pressed="true"] { color: var(--paper); background: var(--forest); box-shadow: 0 3px 9px rgba(22,62,52,.16); }
.book-view-toggle button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.book-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.book-list.compact-grid { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); }
.book-list.compact-grid .book-card { min-height: 0; padding: 13px; display: flex; flex-direction: column; gap: 0; }
.book-list.compact-grid .book-cover { width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: 6px; }
.book-list.compact-grid .book-card-copy { min-height: 155px; padding: 12px 2px 0; display: flex; flex: 1; flex-direction: column; }
.book-list.compact-grid .book-card h2 { margin: 0; display: -webkit-box; overflow: hidden; font-size: 20px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.book-list.compact-grid .book-author { margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-list.compact-grid .book-description { display: none; }
.book-list.compact-grid .book-meta { margin-top: 2px; max-height: 48px; overflow: hidden; }
.book-list.compact-grid .book-details-cue { margin-top: auto; padding-top: 13px; }
.book-list.compact-grid .book-card-actions { margin-top: 11px; padding-top: 7px; position: static; justify-content: space-between; border-top: 1px solid rgba(24,59,51,.08); }
.book-list.compact-grid .book-card-actions button { padding-inline: 3px; font-size: 9px; }
.book-card { min-height: 250px; padding: 18px; position: relative; display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 18px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(135deg, rgba(255,250,241,.88), rgba(255,250,241,.58)); box-shadow: 0 10px 28px rgba(22,62,52,.04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.book-card:hover { border-color: rgba(24,59,51,.28); box-shadow: 0 16px 36px rgba(22,62,52,.09); transform: translateY(-3px); }
.book-card[role="button"] { cursor: pointer; }
.book-card[role="button"]:focus-visible { outline: 3px solid rgba(227,170,66,.45); outline-offset: 3px; }
.book-cover { width: 118px; height: 176px; overflow: hidden; display: grid; place-items: center; border-radius: 5px; color: rgba(244,238,223,.85); background: var(--forest-soft); font-family: var(--serif); font-size: 35px; box-shadow: 0 10px 25px rgba(22,62,52,.14); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card-copy { min-width: 0; padding-right: 4px; }
.book-card h2 { margin-top: 4px; font-size: 24px; }
.book-author { margin: 3px 0 10px; color: var(--orange); font-size: 12px; font-weight: 600; }
.book-description { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.book-meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 5px; }
.book-meta span { padding: 4px 7px; border-radius: 999px; color: var(--muted); background: rgba(24,59,51,.06); font-size: 9px; font-weight: 700; }
.book-card-actions { position: absolute; right: 14px; bottom: 13px; display: flex; gap: 4px; }
.book-card-actions button { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border: 0; color: var(--forest); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.book-card-actions button svg.icon { width: 12px; height: 12px; }
.book-card-actions .danger-text { color: var(--danger); }
.book-details-cue { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--forest); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.book-details-cue b { color: var(--orange); font-size: 15px; transition: transform .16s ease; }
.book-card:hover .book-details-cue b { transform: translateX(3px); }
.book-detail-dialog { width: min(1080px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: hidden; border: 0; border-radius: 13px; color: var(--ink); background: var(--cream); box-shadow: 0 30px 90px rgba(0,0,0,.34); }
.book-detail-shell { max-height: calc(100vh - 32px); overflow-y: auto; }
.book-detail-topbar { min-height: 66px; padding: 12px 18px; position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: rgba(244,238,223,.94); backdrop-filter: blur(12px); }
.book-detail-navigation, .book-detail-actions { display: flex; align-items: center; gap: 8px; }
.book-detail-navigation .quiet-button { min-height: 36px; font-size: 11px; }
.book-detail-navigation .quiet-button:disabled { opacity: .38; cursor: not-allowed; }
.book-detail-hero { min-height: 330px; padding: 38px 42px; position: relative; overflow: hidden; display: grid; grid-template-columns: 170px minmax(0,1fr); align-items: center; gap: 34px; color: var(--cream); background: radial-gradient(circle at 88% 12%, rgba(227,170,66,.24), transparent 17rem), linear-gradient(135deg, var(--forest), var(--forest-soft)); }
.book-detail-hero::after { width: 260px; height: 260px; position: absolute; right: -135px; bottom: -155px; content: ""; border: 1px solid rgba(244,238,223,.13); border-radius: 50%; }
.book-detail-cover { width: 170px; aspect-ratio: 2 / 3; overflow: hidden; display: grid; place-items: center; border-radius: 7px; color: var(--cream); background: rgba(244,238,223,.1); font-family: var(--serif); font-size: 46px; box-shadow: 0 20px 45px rgba(0,0,0,.26); }
.book-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-detail-intro { min-width: 0; position: relative; z-index: 1; }
.book-detail-intro .eyebrow { color: var(--gold); }
.book-detail-intro h2 { max-width: 720px; color: var(--cream); font-size: clamp(34px, 5vw, 55px); line-height: .98; }
.book-detail-author { margin: 9px 0 0; color: rgba(244,238,223,.72); font-size: 14px; font-weight: 600; }
.book-detail-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.book-detail-tags span { padding: 5px 9px; border: 1px solid rgba(244,238,223,.13); border-radius: 999px; color: rgba(244,238,223,.82); background: rgba(244,238,223,.08); font-size: 9px; font-weight: 700; }
.book-detail-description { max-width: 720px; margin: 18px 0 0; color: rgba(244,238,223,.7); font-family: var(--serif); font-size: 16px; line-height: 1.65; }
.book-detail-metrics { padding: 18px 24px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; border-bottom: 1px solid var(--line); background: rgba(255,250,241,.68); }
.book-detail-metrics article { min-height: 108px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.38); }
.book-detail-metrics article > span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.book-detail-metrics strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 29px; font-weight: 600; line-height: 1; }
.book-detail-metrics strong small { margin-left: 2px; color: var(--muted); font-family: var(--sans); font-size: 10px; }
.book-detail-metrics p { margin: 6px 0 0; color: var(--muted); font-size: 9px; }
.book-detail-metrics .metric-stars { color: var(--gold); letter-spacing: .08em; }
.book-detail-grid { padding: 24px 24px 0; display: grid; grid-template-columns: 1.12fr .88fr; gap: 14px; }
.book-detail-grid.book-detail-lower { padding-bottom: 28px; grid-template-columns: .9fr 1.1fr; }
.book-detail-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,250,241,.66); }
.detail-section-heading { min-height: 82px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.detail-section-heading .eyebrow { margin-bottom: 4px; }
.detail-section-heading h3 { margin: 0; font-size: 22px; font-weight: 600; }
.detail-section-heading > span { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: rgba(131,157,107,.18); font-family: var(--serif); font-weight: 600; }
.book-history-list, .book-review-list { max-height: 400px; overflow-y: auto; padding: 10px; display: grid; gap: 8px; }
.book-history-entry { width: 100%; padding: 12px; display: grid; grid-template-columns: 85px minmax(0,1fr) auto; align-items: center; gap: 13px; border: 1px solid rgba(24,59,51,.09); border-radius: 8px; color: var(--ink); background: rgba(255,255,255,.35); text-align: left; cursor: pointer; }
.book-history-entry:hover { border-color: rgba(24,59,51,.24); background: rgba(255,255,255,.65); }
.book-history-date { color: var(--orange); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.book-history-entry div { min-width: 0; }
.book-history-entry strong { font-family: var(--serif); font-size: 16px; }
.book-history-entry p { margin: 3px 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.book-history-entry small { color: var(--forest); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.book-history-entry > b { color: var(--orange); }
.book-review { padding: 14px; border: 1px solid rgba(24,59,51,.09); border-radius: 8px; background: rgba(255,255,255,.35); }
.book-review header { display: flex; align-items: center; gap: 9px; }
.review-avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: var(--forest-soft); font-size: 9px; font-weight: 800; }
.book-review header > div:last-child { display: grid; }
.book-review header strong { font-size: 11px; }
.book-review header span { color: var(--gold); font-size: 10px; letter-spacing: .05em; }
.book-review > p { margin: 10px 0 0; color: var(--muted); font-family: var(--serif); font-size: 13px; font-style: italic; line-height: 1.55; }
.book-detail-empty { min-height: 130px; padding: 24px; display: grid; place-items: center; align-content: center; color: var(--muted); text-align: center; }
.book-detail-empty.large { min-height: 420px; }
.book-detail-empty strong { color: var(--ink); font-family: var(--serif); font-size: 20px; }
.book-detail-empty p { max-width: 360px; margin: 5px 0 0; font-size: 11px; }
.book-facts { margin: 0; padding: 8px 20px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.book-facts > div { min-width: 0; padding: 11px 0; border-bottom: 1px solid rgba(24,59,51,.08); }
.book-facts dt { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.book-facts dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 600; }
.book-catalogue-link { margin: 0 20px 18px; display: inline-block; color: var(--orange); font-size: 10px; font-weight: 800; }
.book-notes-panel > p { margin: 0; padding: 20px; color: var(--muted); font-family: var(--serif); font-size: 15px; line-height: 1.75; white-space: pre-wrap; }
.book-detail-loading { min-height: 500px; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); }
.book-detail-loading span { width: 36px; height: 36px; border: 3px solid rgba(24,59,51,.12); border-top-color: var(--orange); border-radius: 50%; animation: book-detail-spin .8s linear infinite; }
.book-detail-loading p { margin: 0; font-size: 11px; }
@keyframes book-detail-spin { to { transform: rotate(360deg); } }
.field-help { color: var(--muted); font-size: 10px; }
.book-dialog { width: min(760px, calc(100% - 32px)); }
.catalogue-import { padding: 14px; border: 1px solid rgba(22,62,52,.16); border-radius: 8px; background: rgba(255,255,255,.36); }
.catalogue-import label { display: block; }
.catalogue-import-row { display: flex; align-items: stretch; gap: 10px; }
.catalogue-import-row input { min-width: 0; flex: 1; }
.catalogue-import-row button { flex: 0 0 auto; white-space: nowrap; }
.catalogue-import-row .book-picker { flex: 1; min-width: 0; }
.catalogue-import .book-picker .search-box { display: flex; }
.catalogue-result-cover { width: 32px; height: 44px; flex: 0 0 auto; object-fit: cover; border-radius: 3px; background: rgba(22,62,52,.08); }
.catalogue-import .field-help { display: block; margin-top: 7px; }
.catalogue-import .field-help.success { color: var(--forest); font-weight: 600; }
.catalogue-import .field-help.error { color: #9c342a; }

.session-command-bar { min-height: 68px; margin: -8px 0 20px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,250,241,.62); box-shadow: 0 9px 24px rgba(22,62,52,.04); }
.session-navigation, .session-mode-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.session-navigation .quiet-button { min-width: 92px; }
#meeting-position { min-width: 58px; color: var(--muted); font-size: 10px; font-weight: 700; text-align: center; text-transform: uppercase; }
.meeting-status-badge { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid rgba(24,59,51,.18); cursor: pointer; font-size: 11px; transition: border-color .16s ease, box-shadow .16s ease, transform .12s ease; }
.meeting-status-badge:hover:not(:disabled) { border-color: rgba(24,59,51,.4); box-shadow: 0 4px 10px rgba(22,62,52,.12); }
.meeting-status-badge:active:not(:disabled) { transform: scale(.97); }
.meeting-status-badge:disabled { cursor: not-allowed; opacity: .6; }
.meeting-status-badge.in_progress { color: var(--paper); background: var(--orange); border-color: rgba(255,255,255,.35); }
.meeting-status-badge.completed { color: var(--paper); background: var(--forest-soft); border-color: rgba(255,255,255,.35); }
.meeting-status-badge.in_progress:hover:not(:disabled), .meeting-status-badge.completed:hover:not(:disabled) { border-color: rgba(255,255,255,.6); }
#day-of-mode { border-color: rgba(227,170,66,.55); background: rgba(227,170,66,.1); }
#day-of-mode:hover { background: rgba(227,170,66,.18); }
body.day-of-mode #day-of-mode { color: var(--paper); border-color: var(--forest); background: var(--forest); }
.reminder-trigger { min-height: 42px; padding: 5px 11px 5px 7px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(227,170,66,.42); border-radius: 7px; color: var(--ink); background: rgba(227,170,66,.1); text-align: left; cursor: pointer; }
.reminder-trigger:hover { border-color: var(--gold); background: rgba(227,170,66,.17); }
.reminder-trigger:disabled { opacity: .55; cursor: not-allowed; }
.reminder-trigger-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: rgba(227,170,66,.28); }
.reminder-trigger-icon svg.icon { width: 15px; height: 15px; }
.reminder-trigger strong, .reminder-trigger small { display: block; white-space: nowrap; }
.reminder-trigger strong { font-size: 10px; }
.reminder-trigger small { margin-top: 1px; color: var(--muted); font-size: 8px; }
.reminder-trigger.is-sent { border-color: rgba(36,83,72,.55); background: rgba(36,83,72,.12); }
.reminder-trigger.is-sent:hover { border-color: rgba(36,83,72,.7); background: rgba(36,83,72,.18); }
.reminder-trigger.is-sent .reminder-trigger-icon { color: var(--forest); background: rgba(36,83,72,.24); }
#open-giveaway-dialog { display: none; }
body.day-of-mode #open-giveaway-dialog { display: flex; }
.session-workspace-grid { display: grid; gap: 20px; }
.discussion-notes-panel { margin-top: 0; }
.session-summary-strip { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.session-summary-strip article { min-width: 78px; padding: 2px 13px; display: grid; border-left: 1px solid var(--line); }
.session-summary-strip article:first-child { padding-left: 0; border-left: 0; }
.session-summary-strip strong { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1; }
.session-summary-strip span { margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.session-rsvp-summary { margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 13px; color: var(--muted); font-size: 10px; }
.session-rsvp-summary > span:not(.session-rsvp-label) { white-space: nowrap; }
.session-rsvp-summary strong { color: var(--forest); font-size: 11px; }
.session-rsvp-label { padding: 3px 7px; border-radius: 999px; color: var(--forest); background: rgba(110,157,154,.17); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.giveaway-content { min-height: 300px; padding: 28px; display: flex; align-items: center; flex-direction: column; justify-content: center; text-align: center; }
.giveaway-content p { max-width: 320px; color: var(--muted); }
.giveaway-orbit { width: 88px; height: 88px; display: grid; place-items: center; border: 1px dashed rgba(227,170,66,.8); border-radius: 50%; background: rgba(227,170,66,.12); }
.giveaway-orbit span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: var(--orange); font-size: 21px; box-shadow: 0 10px 24px rgba(232,94,22,.22); }
.giveaway-orbit.drawing { animation: giveaway-spin 900ms linear infinite; }
.winner-name { margin: 13px 0 4px; font-family: var(--serif); font-size: 32px; animation: giveaway-reveal 320ms ease; }

@keyframes giveaway-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes giveaway-reveal {
  from { opacity: 0; transform: scale(.85); }
  to { opacity: 1; transform: scale(1); }
}

.archive-hero { border-bottom: none; padding-bottom: 10px; }
.archive-hero .meeting-detail-cover { width: 108px; height: 158px; box-shadow: 0 16px 34px rgba(22,62,52,.22); }
.archive-hero h1 { font-size: clamp(32px, 3.4vw, 44px); }
#archive-content { display: grid; gap: 22px; padding-bottom: 40px; }
.archive-stats-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.archive-stat { min-height: 96px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,250,241,.7); box-shadow: 0 8px 24px rgba(22,62,52,.045); }
.archive-stat strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--forest); }
.archive-stat strong small { color: var(--muted); font-family: var(--sans); font-size: 11px; }
.archive-stat span:first-child { font-size: 12px; }
.archive-stat > div > span:last-child { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.archive-giveaway-panel { padding: 32px; display: flex; flex-direction: column; align-items: center; text-align: center; background: radial-gradient(circle at 50% 0, rgba(227,170,66,.14), transparent 18rem), rgba(255,250,241,.7); }
.archive-giveaway-panel p { margin: 2px 0 0; color: var(--muted); }
.archive-attendance-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.archive-attendance-lists h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.archive-name-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.archive-name-list li { padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,250,241,.6); font-size: 13px; }
.archive-empty { margin: 0; color: var(--muted); font-size: 12px; }
.archive-notes-panel .archive-notes-text { margin: 0; padding: 0 24px 22px; color: var(--ink); line-height: 1.7; white-space: pre-wrap; }
.archive-participant-notes { margin: 0; padding: 0 24px 22px; list-style: none; display: grid; gap: 10px; }
.archive-participant-notes li { display: grid; gap: 2px; }
.archive-participant-notes strong { font-size: 13px; }
.archive-participant-notes span { color: var(--muted); font-size: 12px; }

.discussion-notes-editor { padding: 0 24px 22px; }
.discussion-notes-editor textarea { width: 100%; min-height: 220px; padding: 16px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: rgba(255,255,255,.52); line-height: 1.65; }
.discussion-notes-editor textarea:focus { outline: 2px solid rgba(227,170,66,.35); border-color: var(--gold); }
.discussion-notes-actions { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.discussion-notes-actions > span { color: var(--muted); font-size: 10px; }
.recap-panel { margin-top: 20px; overflow: hidden; background: radial-gradient(circle at 92% 0, rgba(227,170,66,.15), transparent 15rem), rgba(255,250,241,.66); }
.recap-panel.is-complete { border-color: rgba(131,157,107,.55); box-shadow: 0 15px 34px rgba(22,62,52,.08); }
.recap-panel.is-collapsed .panel-heading { border-bottom-color: transparent; }
.recap-heading-actions { display: flex; align-items: center; gap: 8px; }
.recap-toggle { min-width: 108px; }
.recap-toggle-icon { display: inline-block; font-size: 15px; transition: transform .16s ease; }
.recap-toggle[aria-expanded="true"] .recap-toggle-icon { transform: rotate(180deg); }
.recap-grid { padding: 0 24px 22px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.recap-grid article { min-width: 0; min-height: 112px; padding: 15px; display: grid; align-content: center; border: 1px solid rgba(24,59,51,.1); border-radius: 8px; background: rgba(255,255,255,.5); }
.recap-grid article > span { color: var(--orange); font-size: 16px; }
.recap-grid strong { margin-top: 5px; overflow: hidden; color: var(--forest); font-family: var(--serif); font-size: 24px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.recap-grid strong small { color: var(--muted); font-family: var(--sans); font-size: 10px; }
.recap-grid p { margin: 2px 0 0; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.recap-narrative { margin: 0; padding: 14px 24px; border-top: 1px solid rgba(24,59,51,.08); color: var(--muted); background: rgba(24,59,51,.035); font-size: 11px; }

.empty-card { min-height: 180px; display: grid; place-items: center; align-content: center; color: var(--muted); text-align: center; }
.empty-card span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: rgba(131,157,107,.2); font-size: 18px; }
.empty-card p { margin: 8px 0; }
.helper-text { color: var(--muted); font-size: 11px; text-align: center; }

.settings-panel { margin-top: 26px; }
.settings-panel form { padding: 22px 24px 24px; }
.settings-panel .form-grid { margin: 0; }
.settings-panel .dialog-actions { justify-content: flex-end; }

.settings-section-heading { margin: 44px 0 0; padding-top: 30px; border-top: 1px solid var(--line); }
.settings-section-heading .intro { margin-top: 6px; }

.template-layout { margin-top: 22px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.template-list { display: grid; gap: 8px; }
.template-option { width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: rgba(255,250,241,.55); text-align: left; cursor: pointer; }
.template-option strong, .template-option small { display: block; }
.template-option small { margin-top: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.template-option.active { border-color: var(--forest); background: var(--paper); box-shadow: inset 3px 0 var(--orange); }
.template-editor form { padding-bottom: 22px; }
.template-editor .field { margin: 18px 24px 0; }
.variable-row { margin: 14px 24px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 11px; }
.variable-row button { padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; background: transparent; font-size: 10px; cursor: pointer; }
.template-editor .dialog-actions, .template-editor .form-error { margin-inline: 24px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field > span, .field > label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.field b { color: var(--orange); }
.field input, .field textarea, .field select { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 6px; outline: 0; color: var(--ink); background: var(--paper); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(22,62,52,.08); }
.field textarea { resize: vertical; }
.form-error { min-height: 19px; margin: 12px 0 0; color: var(--danger); font-size: 12px; }

dialog { color: var(--ink); }
dialog::backdrop { background: rgba(12,35,30,.62); backdrop-filter: blur(3px); }
.form-dialog, .auth-dialog { width: min(660px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 10px; background: var(--cream); box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.form-dialog form, .history-dialog { padding: 27px; }
.compact-dialog { width: min(540px, calc(100% - 32px)); }
.dialog-heading { margin-bottom: 22px; display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.dialog-heading .eyebrow { margin-bottom: 6px; }
.dialog-heading h2 { font-size: 31px; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 19px; cursor: pointer; }
.icon-button svg.icon { width: 17px; height: 17px; vertical-align: baseline; }
.dialog-actions { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-action-group { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.action-dialog-content { padding: 27px; }
.action-dialog-intro { margin: -5px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.followup-member { margin-bottom: 18px; padding: 14px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.48); }
.followup-member strong, .followup-member small { display: block; }
.followup-member small { color: var(--muted); font-size: 10px; }
.followup-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.followup-actions .primary-button { grid-column: 1 / -1; }
.reminder-recipient-summary { margin: 0; padding: 15px; border: 1px dashed rgba(227,170,66,.55); border-radius: 8px; color: var(--muted); background: rgba(227,170,66,.07); font-size: 11px; }
.reminder-actions { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.reminder-actions .primary-button { grid-column: 1 / -1; }
.auth-dialog { width: min(430px, calc(100% - 32px)); }
.auth-dialog form { padding: 34px; }
.auth-mark { width: 70px; height: 70px; margin-bottom: 22px; overflow: hidden; border-radius: 14px; }
.auth-mark img { width: 100%; height: 100%; object-fit: cover; }
.auth-dialog h2 { margin: 0; font-size: 34px; }
.auth-intro { margin: 7px 0 22px; color: var(--muted); }
.auth-dialog .field { margin-top: 13px; }
.history-dialog { width: min(820px, calc(100% - 32px)); max-height: min(780px, 88vh); overflow: auto; }
.history-summary-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.history-summary-grid article { min-height: 105px; padding: 15px; position: relative; overflow: hidden; display: grid; align-content: center; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,250,241,.72); }
.history-summary-grid article::after { width: 42px; height: 42px; position: absolute; right: -15px; bottom: -15px; content: ""; border-radius: 50%; background: rgba(227,170,66,.15); }
.history-summary-grid article > span { color: var(--orange); font-family: var(--serif); }
.history-summary-grid strong { margin-top: 3px; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; }
.history-summary-grid small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.history-book-grid { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.history-book-card { min-width: 0; padding: 12px; display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,250,241,.65); }
.history-book-cover { width: 62px; aspect-ratio: 2 / 3; overflow: hidden; display: grid; place-items: center; border-radius: 4px; color: var(--cream); background: var(--forest-soft); font-family: var(--serif); font-size: 18px; box-shadow: 0 7px 16px rgba(22,62,52,.12); }
.history-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.history-book-card > div:last-child { min-width: 0; align-self: center; }
.history-book-card strong, .history-book-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-book-card strong { margin-top: 3px; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.history-book-card small { color: var(--muted); font-size: 10px; }
.history-book-date { color: var(--orange); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.history-book-card p { margin: 8px 0 0; color: var(--muted); font-size: 9px; }
.history-book-card p b { margin-left: 5px; color: var(--forest); }
.history-empty { min-height: 220px; margin-top: 17px; border: 1px dashed var(--line); border-radius: 9px; }
.history-empty h3 { margin: 10px 0 0; font-size: 24px; font-weight: 500; }

body.day-of-mode { background: radial-gradient(circle at 90% 0, rgba(227,170,66,.14), transparent 26rem), var(--cream); }
body.day-of-mode .app-shell { display: block; }
body.day-of-mode .sidebar, body.day-of-mode .topbar { display: none; }
body.day-of-mode #view-meeting .content { width: min(1380px, calc(100% - 48px)); }
body.day-of-mode #view-meeting .page-heading { min-height: 190px; padding-block: 28px; }
body.day-of-mode #view-meeting .session-command-bar { position: sticky; top: 0; z-index: 20; border-color: rgba(24,59,51,.18); background: rgba(244,238,223,.95); box-shadow: 0 14px 30px rgba(22,62,52,.12); backdrop-filter: blur(12px); }
body.day-of-mode #view-meeting .stats-grid, body.day-of-mode #view-meeting .recap-panel { display: none; }
body.day-of-mode #view-meeting .roster-panel { border-color: rgba(227,170,66,.45); box-shadow: 0 18px 40px rgba(22,62,52,.1); }
body.day-of-mode #view-meeting .session-workspace-grid { grid-template-columns: minmax(0, 2fr) minmax(300px, .82fr); align-items: start; }
body.day-of-mode #view-meeting .discussion-notes-panel { position: sticky; top: 90px; border-color: rgba(227,170,66,.35); box-shadow: 0 16px 34px rgba(22,62,52,.08); }
body.day-of-mode #view-meeting .discussion-notes-editor textarea { min-height: 360px; }

.toast { max-width: 380px; padding: 11px 16px; position: fixed; right: 25px; bottom: 25px; z-index: 50; border-radius: 6px; color: var(--paper); background: var(--forest); box-shadow: 0 12px 35px rgba(0,0,0,.2); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
footer { padding: 26px 38px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .content { width: calc(100% - 40px); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .recap-grid { grid-template-columns: 1fr 1fr; }
  .archive-stats-row { grid-template-columns: 1fr 1fr; }
  .past-meeting-grid { grid-template-columns: 1fr 1fr; }
  .template-layout { grid-template-columns: 220px minmax(0,1fr); }
  .book-list { grid-template-columns: 1fr; }
  .book-insight-grid { grid-template-columns: 1fr 1fr; }
  .book-shelf-status { grid-column: 1 / -1; }
  .topbar { padding-inline: 22px; }
  .role-badge { display: none; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { min-height: auto; padding: 14px; position: static; }
  .brand, .product-name, .dashboard-link, .sidebar-note, .nav-label { display: none; }
  .sidebar nav { display: flex; overflow-x: auto; }
  .nav-item { width: auto; flex: 0 0 auto; }
  .topbar { height: auto; min-height: 64px; padding: 10px 16px; gap: 12px; }
  .breadcrumb { display: none; }
  .topbar-actions { width: 100%; min-width: 0; justify-content: flex-end; }
  .club-switcher { max-width: 145px; }
  #account-menu-name { max-width: 90px; }
  .content { width: calc(100% - 28px); }
  .page-heading { min-height: 0; padding: 26px 0 22px; align-items: start; flex-direction: column; }
  .page-heading::after { right: -35px; }
  .session-command-bar { align-items: stretch; flex-direction: column; }
  .session-navigation, .session-mode-controls { justify-content: space-between; }
  .session-mode-controls { align-items: stretch; }
  body.day-of-mode #view-meeting .session-workspace-grid { grid-template-columns: 1fr; }
  body.day-of-mode #view-meeting .discussion-notes-panel { position: static; }
  body.day-of-mode #view-meeting .discussion-notes-editor textarea { min-height: 240px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .book-insights { padding: 16px; }
  .book-insights-heading { align-items: start; flex-direction: column; }
  .book-insights-heading > p { text-align: left; }
  .book-insight-grid { grid-template-columns: 1fr; }
  .book-shelf-status { grid-column: auto; }
  .collection-toolbar { align-items: stretch; flex-direction: column; }
  .collection-toolbar .search-box, .book-sort-control select { width: 100%; }
  .book-view-toggle { width: 100%; }
  .book-view-toggle button { flex: 1; }
  .book-detail-hero { min-height: 0; padding: 28px 22px; grid-template-columns: 110px minmax(0,1fr); gap: 20px; }
  .book-detail-cover { width: 110px; }
  .book-detail-intro h2 { font-size: 32px; }
  .book-detail-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
  .book-detail-metrics { grid-template-columns: 1fr 1fr; }
  .book-detail-grid, .book-detail-grid.book-detail-lower { grid-template-columns: 1fr; }
  .panel-heading { align-items: stretch; flex-direction: column; }
  .recap-heading-actions { width: 100%; }
  .recap-heading-actions button { flex: 1; }
  .panel-actions { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; }
  .template-layout { grid-template-columns: 1fr; }
  .template-list { grid-template-columns: 1fr 1fr; }
  .upcoming-meeting-grid, .past-meeting-grid { grid-template-columns: 1fr; }
  .next-meeting-card { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .catalogue-import-row { flex-direction: column; }
  .field-wide { grid-column: auto; }
  footer { flex-direction: column; }
  .roster-card-grid { grid-template-columns: 1fr; }
  body.day-of-mode #view-meeting .content { width: calc(100% - 28px); }
}

.status-pill.new-badge { display: inline-block; margin-top: 3px; padding: 3px 8px; color: var(--forest); background: rgba(227,170,66,.35); font-size: 9px; }
.status-pill.first-session-badge { padding: 3px 8px; color: var(--paper); background: var(--forest-soft); font-size: 9px; letter-spacing: .05em; box-shadow: 0 3px 8px rgba(22,62,52,.18); }

.unscheduled-badge, .past-selection-badge { position: absolute; top: 12px; left: 12px; z-index: 1; color: var(--forest); background: rgba(227,170,66,.35); }
.past-selection-badge { color: var(--paper); background: var(--forest-soft); }
.member-directory-panel, .roster-panel { overflow: visible; }
.member-directory-tools { display: flex; align-items: end; gap: 9px; }
.member-sort-control { display: grid; gap: 4px; }
.member-sort-control > span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.member-sort-control select { min-width: 145px; height: 39px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 6px; outline: 0; color: var(--ink); background: var(--paper); font-size: 12px; font-weight: 600; }
.member-sort-control select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(22,62,52,.08); }
.member-card-grid { padding: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.member-profile-card { min-width: 0; min-height: 390px; padding: 21px; position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(24,59,51,.12); border-radius: 14px; background: radial-gradient(circle at 100% 0,rgba(131,157,107,.1),transparent 10rem),linear-gradient(145deg,rgba(255,255,255,.76),rgba(255,250,241,.8)); box-shadow: 0 10px 28px rgba(22,62,52,.055); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.member-profile-card::before { height: 4px; position: absolute; inset: 0 0 auto; content: ""; background: linear-gradient(90deg,var(--moss),rgba(131,157,107,.08) 72%); }
.member-profile-card.community-community_active::before { background: linear-gradient(90deg,var(--moss),rgba(131,157,107,.08) 72%); }
.member-profile-card.community-verification_pending::before { background: linear-gradient(90deg,var(--gold),rgba(227,170,66,.08) 72%); }
.member-profile-card.community-invitation_not_accepted::before { background: linear-gradient(90deg,var(--blue),rgba(110,157,154,.08) 72%); }
.member-profile-card.community-account_disabled::before,.member-profile-card.community-inactive_member::before { background: linear-gradient(90deg,#aaa397,rgba(116,111,98,.06) 72%); }
.member-profile-card:hover { border-color: rgba(24,59,51,.3); box-shadow: 0 17px 38px rgba(22,62,52,.1); transform: translateY(-2px); }
.member-profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.member-profile-heading .member-cell { min-width: 0; }
.member-profile-heading .member-cell > div { min-width: 0; }
.member-profile-heading .member-cell strong, .member-profile-heading .member-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-profile-heading .member-cell strong { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.08; }
.member-profile-heading .avatar { width: 50px; height: 50px; background: linear-gradient(145deg,var(--forest-soft),var(--forest)); box-shadow: 0 8px 18px rgba(22,62,52,.17); }
.member-profile-heading > .status-pill { margin-top: 2px; padding: 5px 8px; font-size: 8px; letter-spacing: .06em; }
.member-email-row { display: flex; align-items: center; gap: 5px; min-width: 0; }
.member-profile-heading .member-cell .member-email { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11.5px; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.member-profile-heading .member-cell .member-email:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.member-profile-heading .member-cell .member-email-missing { font-style: italic; opacity: .65; }
.member-profile-heading .member-cell .member-email-missing:hover { color: var(--muted); text-decoration: none; }
.copy-email-button { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: transparent; font-size: 11px; line-height: 1; cursor: pointer; }
.copy-email-button svg.icon { width: 12px; height: 12px; transform: translate(-1px, -1px); }
.copy-email-button:hover { color: var(--forest); border-color: var(--forest); background: rgba(24,59,51,.06); }
.member-badge-row { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.member-badge-row:empty { display: none; }
.attention-badge { color: var(--danger); background: rgba(232,94,22,.11); }
.community-access-row { margin-top: 15px; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-left: 3px solid rgba(110,157,154,.65); border-radius: 0 8px 8px 0; background: rgba(110,157,154,.09); }
.community-access-row > div > span { display: block; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.community-access-status { margin-top: 3px; display: flex; align-items: center; gap: 6px; font-size: 11px; }
.community-access-status i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 3px rgba(131,157,107,.15); }
.community-access-status.verification_pending i { background: var(--gold); box-shadow: 0 0 0 3px rgba(227,170,66,.15); }
.community-access-status.invitation_not_accepted i { background: var(--blue); box-shadow: 0 0 0 3px rgba(110,157,154,.15); }
.community-access-status.account_disabled, .community-access-status.inactive_member { color: var(--muted); }
.community-access-status.account_disabled i, .community-access-status.inactive_member i { background: #aaa397; box-shadow: 0 0 0 3px rgba(116,111,98,.12); }
.announcements-off-badge { color: #7a5311; background: #fff2d8; white-space: nowrap; }
.member-engagement { margin-top: 15px; padding: 16px; display: grid; grid-template-columns: minmax(0,1fr) minmax(108px,.72fr); gap: 18px; border: 1px solid rgba(24,59,51,.08); border-radius: 11px; background: linear-gradient(135deg,rgba(131,157,107,.13),rgba(255,250,241,.48)); }
.member-engagement span, .member-engagement small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.member-engagement strong { display: block; margin-top: 3px; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; }
.member-engagement strong small { font-family: var(--sans); font-size: 10px; }
.attendance-track { height: 4px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: rgba(24,59,51,.1); }
.attendance-track span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--moss), var(--forest-soft)); }
.giveaway-summary { min-width: 0; padding-left: 17px; border-left: 1px solid rgba(24,59,51,.12); }
.member-detail-list { margin: 16px 0 0; padding: 0 2px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px 14px; }
.member-detail-list > div { min-width: 0; }
.member-detail-list dt { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.member-detail-list dd { margin: 3px 0 0; overflow: hidden; font-size: 10.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.member-card-notes { margin: 15px 0 0; padding: 10px 12px; overflow: hidden; display: -webkit-box; border-left: 3px solid var(--gold); border-radius: 0 7px 7px 0; color: var(--muted); background: rgba(227,170,66,.075); font-size: 10.5px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.member-profile-actions { margin-top: auto; padding-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid transparent; }
.member-profile-actions.has-community-action { grid-template-columns: 1fr 1fr; }
.member-profile-actions.has-community-action > button:first-child { grid-column: 1 / -1; }
.member-profile-actions button { min-height: 39px; padding: 0 10px; border-radius: 7px; }
.member-directory-empty, .member-grid-loading { min-height: 260px; grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 9px; }
.member-directory-empty h3 { margin: 12px 0 0; font-size: 24px; font-weight: 500; }
.member-directory-empty p { margin: 4px 0 0; }

.book-picker { position: relative; }
.book-picker .search-box { width: 100%; min-width: 0; }
.book-picker .search-box input { padding: 0; border: 0; background: transparent; }
.roster-add-bar { width: min(560px, 62%); }
.roster-add-search-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.roster-add-search { width: 100%; min-width: 0; border-color: rgba(24,59,51,.24); box-shadow: 0 6px 18px rgba(22,62,52,.05); }
.roster-card-grid { padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.roster-member-card { width: 100%; min-width: 0; padding: 14px 16px; position: relative; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.5); box-shadow: 0 8px 22px rgba(22,62,52,.035); font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .16s ease; }
.roster-member-card:hover { border-color: rgba(24,59,51,.27); background: rgba(255,255,255,.72); box-shadow: 0 12px 26px rgba(22,62,52,.07); transform: translateY(-2px); }
.roster-member-card:hover:has(.roster-card-menu[open]) { transform: none; }
.roster-member-card:focus-visible { outline: 2px solid var(--forest-soft); outline-offset: 2px; }
.roster-member-card.is-attended { border-color: rgba(36,83,72,.55); background: linear-gradient(145deg, rgba(36,83,72,.16), rgba(36,83,72,.07)); box-shadow: 0 10px 24px rgba(22,62,52,.13); }
.roster-card-main { min-width: 0; display: flex; align-items: center; gap: 11px; padding-right: 26px; }
.roster-card-identity { min-width: 0; display: grid; gap: 1px; }
.roster-card-identity strong { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.roster-card-name-row { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.roster-rsvp-flag { padding: 3px 7px; font-size: 8px; letter-spacing: .035em; }
.roster-rsvp-flag.is-attending { color: #315f45; background: rgba(94,148,105,.18); }
.roster-rsvp-flag.is-maybe { color: #795c1c; background: rgba(227,170,66,.2); }
.roster-rsvp-flag.is-not-attending { color: #7f4d43; background: rgba(178,112,96,.16); }
.roster-card-status { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; transition: color .18s ease; }
.roster-member-card.is-attended .roster-card-status { color: var(--forest-soft); }
.roster-card-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.roster-card-flags:empty { display: none; }
.roster-note-indicator { padding: 4px 9px; border-radius: 999px; color: var(--orange); background: rgba(227,170,66,.16); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.roster-email-badge { max-width: 100%; overflow: hidden; border: 0; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.roster-email-badge:hover { filter: brightness(.95); }
.self-reported-attendance { border: 0; color: var(--forest); background: rgba(227,170,66,.2); cursor: pointer; }
.self-reported-attendance:hover { background: rgba(227,170,66,.3); }
.attendance-report-difference { color: var(--orange); background: rgba(227,170,66,.14); }
.roster-card-menu { position: absolute; top: 8px; right: 8px; z-index: 2; }
.roster-card-menu[open] { z-index: 20; }
.roster-card-menu summary { list-style: none; }
.roster-card-menu summary::-webkit-details-marker { display: none; }
.roster-card-menu-trigger { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 16px; line-height: 1; cursor: pointer; }
.roster-card-menu-trigger:hover { color: var(--ink); background: rgba(24,59,51,.09); }
.roster-card-menu[open] .roster-card-menu-trigger { color: var(--ink); background: rgba(24,59,51,.12); }
.roster-card-menu-panel { min-width: 152px; padding: 6px; position: absolute; z-index: 3; right: 0; top: calc(100% + 6px); display: grid; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); box-shadow: 0 14px 32px rgba(24,59,51,.18); }
.roster-card-menu-panel button { width: 100%; min-height: 36px; padding: 0 10px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 4px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; }
.roster-card-menu-panel button:hover { background: rgba(24,59,51,.07); }
.roster-card-menu-panel .roster-menu-danger { color: var(--danger); }
.roster-empty-state { min-height: 130px; margin: 18px; grid-column: 1 / -1; display: grid; place-items: center; padding: 0 24px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); font-size: 13px; text-align: center; }
.roster-empty-state p { max-width: 440px; margin: 0; line-height: 1.6; }
.roster-empty-state .text-button { padding: 0; font-size: 13px; }
.roster-empty-state .text-button:hover { text-decoration: underline; }
.member-search-results { max-height: 260px; overflow-y: auto; position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0; padding: 6px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 14px 32px rgba(24,59,51,.16); }
.member-search-result { width: 100%; padding: 9px 10px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.member-search-result:hover { background: rgba(24,59,51,.06); }
.member-search-result strong { display: block; font-size: 13px; }
.member-search-result small { color: var(--muted); font-size: 11px; }
.member-search-add-new { color: var(--forest); font-weight: 700; font-size: 12px; border-top: 1px solid var(--line); border-radius: 0 0 5px 5px; }

.status-pill.arrival-badge { color: var(--forest); background: rgba(110,157,154,.28); }
.jump-badge { border: 0; cursor: pointer; }
.jump-badge:hover { filter: brightness(0.95); }

.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }

.history-notes { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: rgba(255,250,241,.5); font-size: 12px; font-style: italic; }

@media (max-width: 1050px) {
}

@media (max-width: 760px) {
  .member-directory-tools { width: 100%; align-items: stretch; flex-direction: column; }
  .member-sort-control select { width: 100%; }
  .roster-add-bar { width: 100%; }
  .roster-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr; }
  .book-list.compact-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
  .book-detail-dialog { width: 100%; max-height: 100vh; border-radius: 0; }
  .book-detail-shell { max-height: 100vh; }
  .book-detail-topbar { align-items: stretch; flex-direction: column-reverse; }
  .book-detail-actions { justify-content: space-between; }
  .book-detail-navigation { display: grid; grid-template-columns: 1fr 1fr; }
  .book-detail-hero { grid-template-columns: 82px minmax(0,1fr); align-items: start; }
  .book-detail-cover { width: 82px; }
  .book-detail-intro h2 { font-size: 27px; }
  .book-detail-tags, .book-detail-description { display: none; }
  .book-detail-metrics { padding: 12px; }
  .book-detail-grid { padding: 12px 12px 0; }
  .book-detail-grid.book-detail-lower { padding-bottom: 18px; }
  .book-history-entry { grid-template-columns: 1fr auto; }
  .book-history-date { grid-column: 1 / -1; }
  .book-facts { grid-template-columns: 1fr; }
  .upcoming-meeting-card, .next-meeting-card { min-height: 0; padding: 14px; grid-template-columns: 88px minmax(0,1fr) auto; gap: 13px; }
  .meeting-card-cover, .next-meeting-card .meeting-card-cover { width: 88px; }
  .next-meeting-card h2 { font-size: 27px; }
  .meeting-card-meta { display: none; }
  .meeting-toolbar { align-items: stretch; flex-direction: column; }
  .meeting-toolbar .search-box { width: 100%; }
  .meeting-section-empty { align-items: flex-start; flex-wrap: wrap; }
  .meeting-section-empty .secondary-button { width: 100%; }
  .session-navigation .quiet-button { min-width: 0; padding-inline: 9px; }
  .session-mode-controls { flex-direction: column; }
  .recap-grid { grid-template-columns: 1fr; }
  .member-card-grid { padding: 12px; grid-template-columns: 1fr; }
  .member-profile-card { min-height: 0; }
  .history-summary-grid, .history-book-grid { grid-template-columns: 1fr; }
  .history-summary-grid article { min-height: 82px; }
  .roster-add-bar { width: 100%; }
  .roster-card-grid { padding: 12px; }
}

/* Sized for an 80mm thermal receipt printer (e.g. Epson TM series) — the
   transit label prints one at a time from "Send a book", never as a batch
   sheet, so this targets the roll width directly rather than a page grid. */
@media print {
  body > :not(.print-sheet) { display: none !important; }
  .print-sheet { display: block !important; width: 80mm; margin: 0; padding: 0; color: #000; background: #fff; }
  .print-label { width: 100%; margin: 0; padding: 4mm 4mm 14mm; font: 11pt/1.5 "Courier New", Courier, monospace; text-align: left; white-space: pre-wrap; word-break: break-word; }
  @page { size: 80mm auto; margin: 0; }
}
