/* Web app */
html, body { height: 100%; }
body { font-size: .9375rem; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }
.small { font-size: .86rem; }
.link { background: none; border: 0; padding: 0; color: var(--clay-dark); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font-size: .86rem; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btns.end { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--teal-700); color: #dbe9eb; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; text-decoration: none; color: #fff; }
.side .brand img { filter: brightness(0) invert(1); }
.side .brand span { display: flex; flex-direction: column; line-height: 1.1; }
.side .brand b { font-family: var(--serif); font-weight: 600; letter-spacing: .03em; }
.side .brand i { font-style: normal; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); }
.side nav { padding: 4px 10px 12px; flex: 1; }
.ng { margin: 14px 10px 4px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #8fb1b8; font-weight: 700; }
.nv { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; color: inherit; border-radius: 9px; cursor: pointer; text-align: left; font-weight: 500; }
.nv:hover { background: rgba(255, 255, 255, .08); }
.nv.on { background: var(--cream); color: var(--teal-700); font-weight: 700; }
.side-foot { padding: 12px 18px 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.side-foot a { color: #dbe9eb; text-decoration: none; display: flex; gap: 8px; align-items: center; font-size: .88rem; }
.scrim { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; gap: 12px; padding: 10px 22px; background: rgba(251, 246, 236, .95); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
/* min-width lets the title shrink before the controls beside it do */
.crumb { min-width: 0; font-family: var(--serif); font-size: 1.1rem; color: var(--teal-700); font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { border: 0; background: none; cursor: pointer; padding: 6px; border-radius: 8px; font-size: 1.2rem; line-height: 1; color: inherit; }
.iconbtn.menu { display: none; }
.roleswitch { display: flex; align-items: center; gap: 8px; background: var(--gold-soft); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: .78rem; font-weight: 700; color: #7a5510; }
.roleswitch select { border: 0; background: #fff; border-radius: 999px; padding: 4px 8px; font-weight: 700; color: var(--teal-700); cursor: pointer; }
.me { display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; text-align: left; padding: 2px; border-radius: 999px; }
.me span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.me i { font-style: normal; font-size: .74rem; color: var(--muted); }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--teal-100); color: var(--teal-700); display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.content { padding: 24px 22px 96px; max-width: 1180px; width: 100%; margin: 0 auto; outline: none; }

.hello h1, .vhead h1 { font-size: 1.8rem; margin-bottom: .15em; }
.hello p, .vhead p { color: var(--muted); margin: 0; max-width: 46em; }
.hello { margin-bottom: 18px; }
.vhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: start; }
.s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: span 12; }
.stack { display: grid; gap: 16px; }
.stack > .card { grid-column: auto; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; box-shadow: 0 1px 2px rgba(60, 40, 10, .04); min-width: 0; }
.card > header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.card h3 { font-size: 1.05rem; margin: 0; flex: 1; display: flex; gap: 8px; align-items: center; min-width: 0; }
.card.warm { background: linear-gradient(160deg, #fff8ea, var(--gold-soft)); border-color: #ecd9a8; }
.card.teal { background: var(--teal-700); border-color: var(--teal-700); color: #e6f0f1; }
.card.teal h3, .card.teal .big { color: #fff; }
.card.teal .muted, .card.teal i { color: #bcd3d7; }
.card.teal .link { color: var(--gold-soft); }
.card p:last-child { margin-bottom: 0; }

.rows { list-style: none; margin: 0 0 10px; padding: 0; }
.rows:last-child { margin-bottom: 0; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); min-width: 0; }
.rows li:first-child { border-top: 0; padding-top: 2px; }
.rm { flex: 1; min-width: 0; }
.rm b { display: block; font-weight: 600; }
.rm i { display: block; font-style: normal; color: var(--muted); font-size: .84rem; }
.rr { text-align: right; flex: none; font-size: .82rem; max-width: 50%; }
.rr.btns { justify-content: flex-end; flex-shrink: 1; }
.rowbtn { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; cursor: pointer; padding: 4px 8px; margin: -4px -8px; border-radius: 9px; }
.rowbtn:hover, .rowbtn.on { background: var(--sand); }
.playbtn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--clay); color: #fff; cursor: pointer; flex: none; display: grid; place-items: center; }
.playbtn:hover { background: var(--clay-dark); }
.playbtn .ic { width: 14px; height: 14px; }

.sunday { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.big { font-family: var(--serif); font-size: 1.9rem; display: block; line-height: 1.1; }
.big small { font-size: .85rem; }
.sunday b, .sunday i { display: block; font-style: normal; }
.alert { background: var(--rose-soft); color: var(--clay-dark); border-radius: 9px; padding: 8px 12px; font-weight: 600; font-size: .88rem; }
.status { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.running { background: var(--gold); animation: pulse 1s infinite; }
.dot.draft { background: var(--clay); }
.dot.published { background: var(--sage); }
@keyframes pulse { 50% { opacity: .3; } }

.steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: .84rem; font-weight: 600; }
.steps li { position: relative; padding-top: 34px; color: var(--muted); }
.steps li::before { content: ""; position: absolute; top: 13px; left: 28px; right: 0; height: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps li span { position: absolute; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); display: grid; place-items: center; font-size: .8rem; }
.steps li.done span { background: var(--sage); border-color: var(--sage); color: #fff; }
.steps li.done::before { background: var(--sage); }
.steps li.now { color: var(--ink); }
.steps li.now span { border-color: var(--clay); color: var(--clay); box-shadow: 0 0 0 4px var(--rose-soft); }
.steps i { font-style: normal; font-weight: 400; font-size: .78rem; }

.fld { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.fld input, .fld select, .fld textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; font-weight: 400; color: var(--ink); }
.check { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; font-size: .9rem; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; min-width: min(320px, 100%); color: var(--muted); }
.search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; color: var(--ink); }
.search:focus-within { border-color: var(--gold); }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.inline-form .fld { margin: 0; flex: 1; min-width: 140px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.9rem, 1fr)); gap: 10px; margin-bottom: 10px; }
.stats div { background: var(--sand); border-radius: 10px; padding: 10px 12px; font-size: .82rem; color: var(--muted); }
.stats b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--teal-700); line-height: 1.15; }
.card .bar { display: grid; grid-template-columns: 1fr 44px; gap: 2px 10px; align-items: center; margin-bottom: 12px; position: static; padding: 0; background: none; border: 0; backdrop-filter: none; }
.bl { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: .88rem; }
.bl span { color: var(--muted); }
.bt { height: 10px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.bt i { display: block; height: 100%; background: var(--teal-500); border-radius: 99px; }
.bt i.full { background: var(--sage); }
.bp { font-size: .82rem; font-weight: 700; text-align: right; }

.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 6px 8px; }
.tbl td { padding: 9px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr.mine td { background: #fff8ea; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
.matrix th:not(:first-child), .matrix td:not(:first-child) { text-align: center; width: 76px; }
.yes { color: var(--sage); } .no { color: #c9bfa9; }
.yes .ic { width: 1.3em; height: 1.3em; stroke-width: 2.6; }

.todos { display: grid; gap: 2px; margin-bottom: 10px; }
.todo { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--line); cursor: pointer; }
.todo:first-child { border-top: 0; }
.todo input { margin-top: 4px; accent-color: var(--sage); width: 16px; height: 16px; }
.todo b { display: block; font-weight: 600; }
.todo i { font-style: normal; font-size: .82rem; color: var(--muted); }
.todo input:checked + span b { text-decoration: line-through; color: var(--muted); }

.tabs { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 8px 14px; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--teal-700); border-bottom-color: var(--clay); }

.fam header .av { width: 40px; height: 40px; }
.closeup { display: flex; gap: 8px; align-items: center; background: var(--rose-soft); color: var(--clay-dark); border-radius: 9px; padding: 6px 10px; font-size: .8rem; font-weight: 600; margin-bottom: 10px; }
.album { padding: 0; overflow: hidden; }
.album img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.album div { padding: 12px 16px 14px; }
.album h3 { font-size: 1rem; }
.filelist { list-style: none; padding: 0; margin: 12px 0; font-size: .88rem; }
.filelist li { padding: 6px 0; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.folder .btns { margin-top: 12px; }
.drop { border: 2px dashed var(--line); border-radius: 10px; text-align: center; padding: 18px; margin-bottom: 12px; color: var(--muted); font-weight: 600; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 4px 6px; font-weight: 700; }
.day { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; min-height: 92px; padding: 5px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.day.off { background: none; border: 0; }
.day.today { border-color: var(--clay); box-shadow: 0 0 0 2px var(--rose-soft); }
.dn { font-size: .78rem; font-weight: 700; color: var(--muted); }
.ev { font-size: .72rem; border-radius: 5px; padding: 2px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--sand); }
.ev.worship { background: var(--teal-100); color: var(--teal-700); }
.ev.group { background: var(--sage-soft); color: #3f6142; }
.ev.event { background: var(--gold-soft); color: #7a5510; }
.ev.leaders { background: var(--rose-soft); color: var(--clay-dark); }
.legend { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.legend .ev { font-size: .78rem; padding: 3px 9px; }
.cal-list { display: none; }

.cols { display: flex; align-items: flex-end; gap: 10px; height: 170px; }
.cols div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.cols span { width: 100%; background: var(--teal-500); border-radius: 6px 6px 0 0; display: flex; justify-content: center; min-height: 22px; }
.cols b { color: #fff; font-size: .8rem; padding-top: 3px; }
.cols i { font-style: normal; font-size: .78rem; color: var(--muted); }

.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #cfc5b0; border-radius: 99px; transition: .15s; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--sage); }
.switch input:checked + span::after { left: 21px; }
.switch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.auto.offc { opacity: .65; }

/* Bulletin */
.srcs { list-style: none; margin: 0 0 14px; padding: 0; }
.srcs li { display: flex; gap: 10px; padding: 6px 0; align-items: flex-start; }
.srcs li > span { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; margin-top: 2px; display: grid; place-items: center; color: #fff; }
.srcs li.done > span { background: var(--sage); border-color: var(--sage); }
.srcs li.run > span { border-color: var(--gold); border-top-color: transparent; animation: spin .7s linear infinite; }
.srcs .ic { width: 12px; height: 12px; stroke-width: 3; }
.srcs b { display: block; font-size: .9rem; }
.srcs i { font-style: normal; font-size: .8rem; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--clay); animation: spin .8s linear infinite; margin: 0 auto 14px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar .status { margin: 0; }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 28px 30px; font-size: .86rem; line-height: 1.45; }
.paper[contenteditable]:focus { outline: 2px dashed var(--gold); outline-offset: 3px; }
.paper.empty { text-align: center; padding: 64px 24px; color: var(--muted); }
.paper.empty > .ic { width: 40px; height: 40px; color: var(--line); }
.bh { display: flex; gap: 14px; align-items: center; border-bottom: 2px solid var(--teal-700); padding-bottom: 12px; margin-bottom: 14px; }
.bh h2 { margin: 0; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .08em; }
.bh p { margin: 0; color: var(--clay); font-weight: 600; }
.bcols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.paper h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin: 14px 0 6px; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.paper h4:first-child { margin-top: 0; }
.paper p { margin: 0 0 7px; }
.order { margin: 0; }
.order dt { font-family: var(--serif); font-weight: 600; color: var(--teal-700); margin-top: 7px; }
.order dd { margin: 0; color: #4a463e; }
.bnote { font-style: italic; margin-top: 10px !important; }
.bt2 { width: 100%; border-collapse: collapse; }
.bt2 td { padding: 2px 8px 2px 0; vertical-align: top; }
.bt2 td:first-child { color: var(--muted); width: 46%; }
.bf { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--line); text-align: center; font-size: .76rem; color: var(--muted); }

/* Community, announcements, reading */
h2.sec { font-size: 1.15rem; margin: 26px 0 12px; }
.facts { display: grid; grid-template-columns: 5.5em 1fr; gap: 4px 10px; margin: 0 0 10px; font-size: .92rem; }
.facts dt { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding-top: 3px; }
.facts dd { margin: 0; }
.minegroup { border-top: 4px solid var(--sage); }
.folk { display: flex; flex-wrap: wrap; gap: 5px; }
.ann.pinned { background: linear-gradient(160deg, #fff8ea, var(--gold-soft)); border-color: #ecd9a8; }
.ann .btns { gap: 16px; }
.todo.today { background: #fff8ea; border-radius: 8px; padding-inline: 8px; margin-inline: -8px; }
.todo em { display: block; font-style: normal; font-size: .84rem; color: var(--teal-500); margin-top: 2px; }
.follow { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.follow .stats { flex: 1; min-width: 260px; margin: 0; }
.book { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.cover { aspect-ratio: 2 / 3; border-radius: 4px 8px 8px 4px; padding: 10px 8px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); border-left: 5px solid rgba(0, 0, 0, .22); }
.cover b { font-family: var(--serif); font-size: .86rem; line-height: 1.15; }
.cover i { font-style: normal; font-size: .64rem; opacity: .85; }
.cover.c0 { background: var(--teal-700); } .cover.c1 { background: var(--clay); } .cover.c2 { background: var(--sage); } .cover.c3 { background: #7a5a2a; }
.book p { font-size: .9rem; margin: 6px 0; }

/* Giving and accounting */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(60, 40, 10, .12); }
.checklist li:first-child { border-top: 0; }
.checklist li > span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--clay); flex: none; display: grid; place-items: center; color: #fff; }
.checklist li.done > span { background: var(--sage); border-color: var(--sage); }
.checklist li.done b { color: var(--muted); font-weight: 500; }
.checklist li > div { flex: 1; min-width: 0; }
.checklist b, .checklist i { display: block; font-style: normal; }
.checklist i { font-size: .84rem; color: var(--muted); }
.badge { background: var(--clay); color: #fff; border-radius: 99px; font-size: .72rem; padding: 1px 7px; margin-left: 4px; }
.lookup { min-height: 1.5em; font-size: .88rem; font-weight: 600; color: #3f6142; margin: -4px 0 10px; display: flex; gap: 6px; align-items: center; }
h4.sub { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin: 16px 0 6px; }
.bt i.over { background: var(--clay); }
.scroll.tall { max-height: 380px; overflow-y: auto; margin-top: 10px; }
.tbl.pick tbody tr { cursor: pointer; }
.tbl.pick tbody tr:hover td { background: var(--sand); }
.tbl select { max-width: 190px; padding: 5px 8px; border: 1.5px solid var(--clay); border-radius: 8px; background: #fff; }
.mchart { display: flex; gap: 8px; align-items: flex-end; height: 170px; }
.mchart > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; min-width: 0; }
.mchart .pair { flex: 1; width: 100%; display: flex; gap: 3px; align-items: flex-end; justify-content: center; }
.mchart .pair i { width: 42%; max-width: 22px; border-radius: 4px 4px 0 0; }
.mchart .in, .key.in { background: var(--teal-500); } .mchart .out, .key.out { background: var(--gold); }
.mchart em { font-style: normal; font-size: .74rem; color: var(--muted); }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; }
p.legend { display: block; font-size: .8rem; color: var(--muted); }
.fld.inline { display: flex; align-items: center; gap: 10px; margin: 0; }
.fld.inline select { width: auto; margin: 0; }
.bt2.nums td:last-child { text-align: right; width: auto; font-variant-numeric: tabular-nums; }
.bt2.nums td:first-child { width: auto; color: var(--ink); }
.bt2 .tot td { border-top: 1px solid var(--ink); font-weight: 700; padding-top: 4px; }
.csv { width: 100%; margin-top: 10px; font: .75rem/1.4 ui-monospace, Menlo, Consolas, monospace; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; }
.side-foot .link { color: #9fc0c6; margin-top: 8px; font-weight: 500; }
.player a { color: var(--gold-soft); font-size: .84rem; }
.stats.two { grid-template-columns: 1fr 1fr; }
.stats.wide { margin-bottom: 16px; }
.stats.wide div { background: var(--paper); border: 1px solid var(--line); }
.printwrap { max-width: 760px; margin: 20px auto 0; }
.receipt .amount { background: var(--sand); border-radius: 8px; padding: 10px 12px; margin: 12px 0 8px !important; }
.receipt .amount b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--teal-700); }
.receipt .sig { margin-top: 28px !important; border-top: 1px solid var(--ink); padding-top: 4px; font-size: .78rem; color: var(--muted); }
.alert.ok { background: var(--sage-soft); color: #3f6142; }

/* Meetings */
.hidden-note { display: flex; gap: 8px; align-items: center; background: var(--sand); border-radius: 9px; padding: 8px 12px; font-size: .84rem; color: var(--muted); margin: 10px 0 0; }
.empty-card { text-align: center; color: var(--muted); padding: 48px 20px; }
.empty-card > .ic { width: 36px; height: 36px; color: var(--line); margin-bottom: 8px; }
.meeting h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin: 16px 0 6px; }
.bul { margin: 0; padding-left: 1.2em; }
.bul li { margin-bottom: 4px; }
.bul.dec li::marker { color: var(--sage); }
.transcript { max-height: 320px; overflow-y: auto; margin-top: 10px; }
.transcript p { margin: 0; padding: 7px 0; border-top: 1px solid var(--line); }
.transcript b { color: var(--teal-700); margin-right: 8px; }
.ts { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 8px; }
.transcript.live { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; height: 220px; margin-bottom: 14px; }
.interim { color: var(--muted); font-style: italic; }
.access-line { display: flex; gap: 8px; align-items: center; background: var(--rose-soft); color: var(--clay-dark); border-radius: 9px; padding: 9px 12px; }
.recdot { width: 12px; height: 12px; border-radius: 50%; background: #c0392b; animation: pulse 1s infinite; flex: none; }
.clock { font-family: var(--serif); font-size: 1.4rem; color: var(--teal-700); font-variant-numeric: tabular-nums; }
.wave { display: flex; align-items: center; gap: 3px; height: 54px; margin-bottom: 8px; }
.wave i { flex: 1; background: var(--teal-500); border-radius: 3px; height: 30%; animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(4n) { animation-delay: -.55s; } .wave i:nth-child(5n) { animation-delay: -.8s; } .wave i:nth-child(7n) { animation-delay: -.15s; }
.wave.still i { animation: none; opacity: .45; }
.wave.still i:nth-child(3n) { height: 60%; } .wave.still i:nth-child(4n) { height: 85%; } .wave.still i:nth-child(5n) { height: 45%; }
@keyframes wave { 0%, 100% { height: 18%; } 50% { height: 95%; } }

/* Sign-in, locked */
.app.bare { display: block; }
.signin { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; text-align: center; }
.signin img { margin: 0 auto 12px; }
.signin h1 { font-size: 2rem; margin-bottom: .1em; }
.signin-box { max-width: 380px; margin: 20px auto 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: left; box-shadow: var(--shadow); }
.signin-box .btn { width: 100%; margin-bottom: 10px; }
.demo-note { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--clay); }
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.who button { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.who button:hover { border-color: var(--clay); background: #fff8ea; }
.who i { font-style: normal; font-size: .76rem; color: var(--muted); line-height: 1.3; }
.locked { text-align: center; max-width: 440px; margin: 60px auto; }
.locked > .ic { width: 44px; height: 44px; color: var(--clay); }

.player { position: fixed; left: 50%; bottom: 14px; transform: translate(-50%, 140%); width: min(680px, calc(100vw - 24px)); background: var(--teal-900); color: #fff; border-radius: 16px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); transition: transform .25s, visibility .25s; z-index: 30; visibility: hidden; }
.player.on { transform: translate(-50%, 0); visibility: visible; }
.player .pt { min-width: 0; flex: 1; line-height: 1.2; }
.player .pt b, .player .pt i { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .pt i { font-style: normal; font-size: .78rem; color: #b9d0d4; }
.player audio { height: 34px; flex: 1.4; min-width: 0; }
.toast { position: fixed; left: 50%; top: 14px; transform: translate(-50%, -160%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 12px; z-index: 40; visibility: hidden; transition: transform .25s, visibility .25s; max-width: calc(100vw - 24px); text-align: center; font-weight: 500; box-shadow: var(--shadow); }
.toast.on { transform: translate(-50%, 0); visibility: visible; }

@media (max-width: 1020px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 248px; z-index: 20; transform: translateX(-105%); transition: transform .2s; }
  .nav-open .side { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 15; }
  .iconbtn.menu { display: block; }
}
@media (max-width: 860px) {
  .s4, .s5, .s6, .s7, .s8 { grid-column: span 12; }
  .who { grid-template-columns: 1fr 1fr; }
  .bcols { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .book { grid-template-columns: 72px 1fr; }
  .mchart { gap: 3px; }
  .bar { padding: 8px 12px; gap: 8px; }
  .content { padding: 16px 12px 96px; }
  .me span:last-child, .roleswitch span { display: none; }
  .roleswitch { padding: 4px 6px; }
  .cal { display: none; }
  .cal-list { display: block; }
  .legend { display: none; }
  .sunday { grid-template-columns: 1fr; }
  .steps { font-size: .74rem; }
  .steps i { display: none; }
  .paper { padding: 18px 16px; }
  .hello h1, .vhead h1 { font-size: 1.5rem; }
  .rr { max-width: 44%; }
  .player audio { flex: 2; }
  .tbl { font-size: .86rem; }
}
@media print {
  body.print-paper .side, body.print-paper .bar, body.print-paper .vhead, body.print-paper .content > .grid, body.print-paper .toolbar, body.print-paper .player, body.print-paper .toast { display: none !important; }
  body.print-paper .app { display: block; }
  body.print-paper .content { padding: 0; max-width: none; }
  body.print-paper .paper { border: 0; box-shadow: none; }
  body.print-bulletin .side, body.print-bulletin .bar, body.print-bulletin .vhead, body.print-bulletin .steps, body.print-bulletin .builder > .s4, body.print-bulletin .toolbar, body.print-bulletin .player, body.print-bulletin .toast { display: none !important; }
  body.print-bulletin .app, body.print-bulletin .grid { display: block; }
  body.print-bulletin .content { padding: 0; max-width: none; }
  body.print-bulletin .paper { border: 0; box-shadow: none; }
}

/* Large text switch */
.bigbtn.float { position: fixed; top: 12px; right: 14px; z-index: 6; }
@media (max-width: 620px) { .bigbtn .lbl { display: none; } .bigbtn .aa { display: inline; } }

/* Tablet width: book cards and meeting rows need more room. */
.book > div { min-width: 0; }
.rowbtn { flex-wrap: wrap; }
.rowbtn .rr { max-width: none; }
@media (min-width: 861px) and (max-width: 1180px) { .book.s4 { grid-column: span 6; } }

/* Large text: give content more room instead of letting it spill. */
html.big .chip { white-space: normal; text-align: left; }
html.big .rows li, html.big .rowbtn { flex-wrap: wrap; }
html.big .rr { max-width: none; text-align: left; }
html.big .rr.btns { flex: 1 1 100%; justify-content: flex-start; }
html.big .stats.two { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
html.big .who { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
html.big .card > header h3 { flex-basis: 60%; }
html.big .me span:last-child { display: none; }
html.big .roleswitch > span { display: none; }
html.big .tbl select { max-width: 11rem; }
@media (max-width: 1320px) {
  html.big .s4 { grid-column: span 6; }
  html.big .s5, html.big .s7, html.big .s8 { grid-column: span 12; }
  html.big .stack > .card { grid-column: auto; }
  html.big .bcols { grid-template-columns: 1fr; }
  html.big .matrix th:not(:first-child), html.big .matrix td:not(:first-child) { width: auto; }
}
@media (max-width: 860px) {
  html.big .s4, html.big .s6 { grid-column: span 12; }
  html.big .sunday { grid-template-columns: 1fr; }
  html.big .cal { display: none; }
  html.big .cal-list { display: block; }
  html.big .bigbtn .lbl { display: none; } html.big .bigbtn .aa { display: inline; }
  html.big .steps { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  html.big .steps li::before { display: none; }
}
@media (max-width: 620px) {
  html.big .book { grid-template-columns: 1fr; }
  html.big .cover { max-width: 96px; }
  html.big .content { padding-inline: 10px; }
  html.big .card { padding-inline: 12px; }
  html.big .fam header, html.big .toolbar { flex-wrap: wrap; }
}
@media (max-width: 360px) { html.big .crumb { display: none; } html.big .bar { gap: 6px; } .roleswitch select { max-width: 7.5rem; } }
@media (max-width: 360px) { html.big .roleswitch select { max-width: 6.5rem; } html.big .me .av { width: 30px; height: 30px; } }
@media (max-width: 340px) { html.big .me { display: none; } }
