:root{--lane:#004a8f;--lane-dark:#003567;--accent:#a8321a;--on-lane:#fff;--link:#004a8f;--chalk:#fff;--ground:#eef2f5;--ink:#15212c;--mute:#5b6b79;--line:#d3dce4;
--go:#236b48;--wait:#a86a10;--stop:#a3352b}
*{box-sizing:border-box}
body{margin:0;background:var(--ground);color:var(--ink);font:16px/1.55 "Avenir Next","Segoe UI",system-ui,sans-serif}
a{color:var(--link)}a[aria-current]{font-weight:700;text-decoration:none;color:var(--ink)}
:focus-visible{outline:3px solid #f0b429;outline-offset:2px}
h1{font-size:1.9rem;line-height:1.2;margin:.2rem 0 .4rem;letter-spacing:-.01em}
h2{font-size:1.15rem;margin:0 0 .6rem}
.muted{color:var(--mute);font-size:.92rem}.late{color:var(--stop);font-weight:600}.right{text-align:right}
.pre{white-space:pre-wrap;margin:.4rem 0;max-width:70ch}
.top{background:var(--lane);color:var(--on-lane);display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;align-items:center;padding:.5rem 1.25rem;border-bottom:5px solid var(--accent)}
.top a{color:var(--on-lane);text-decoration:none}
.brand{display:flex;align-items:center;gap:.7rem}.brand img{background:#fff;border-radius:50%;padding:2px;object-fit:contain;flex:none}
.brand .names{display:flex;flex-direction:column;line-height:1.2}.brand .names strong{font-size:1.05rem;letter-spacing:.01em}.brand .names span{font-size:.85rem;opacity:.85}
.top.plain{justify-content:center}.gate-logo{display:block;margin:0 auto .6rem;object-fit:contain}.gate h1{text-align:center}.gate h1+.muted{text-align:center}
input[type=color]{height:2.6rem;padding:.2rem;max-width:8rem;cursor:pointer}
.top nav{display:flex;flex-wrap:wrap;gap:.3rem 1.1rem;flex:1}.top nav a{padding:.2rem 0;border-bottom:2px solid transparent}.top nav a[aria-current]{color:var(--on-lane);border-bottom-color:var(--on-lane)}
.who{display:flex;gap:.9rem;align-items:center;font-size:.92rem}.who .link{color:var(--on-lane)}
main{max-width:980px;margin:0 auto;padding:1.6rem 1.25rem 4rem}
section{margin:1.8rem 0}
.flash,.note{background:#fff7e0;border-left:4px solid #f0b429;padding:.6rem .9rem;border-radius:2px;margin:.6rem 0}
.panel{background:var(--chalk);border:1px solid var(--line);border-radius:6px;padding:1.2rem 1.3rem;margin:1.6rem 0}
.narrow{max-width:420px;margin:8vh auto}.narrow.left,.left{margin-left:0}
label{display:block;font-size:.9rem;font-weight:600;margin:.7rem 0}
input,select,textarea{display:block;width:100%;margin-top:.25rem;padding:.5rem .6rem;font:inherit;font-weight:400;border:1px solid #9fb0bf;border-radius:4px;background:#fff;color:var(--ink)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:0 1rem}
.btn{display:inline-block;background:var(--lane);color:var(--on-lane);border:1px solid var(--lane);border-radius:4px;padding:.5rem .95rem;font:inherit;font-weight:600;cursor:pointer;text-decoration:none}
.btn:hover{background:var(--lane-dark)}.btn.ghost{background:transparent;color:var(--link)}.btn.ghost:hover{background:#dfe8ef}
.btn.small{padding:.25rem .6rem;font-size:.88rem}
.link{background:none;border:0;padding:0;font:inherit;font-size:.9rem;color:var(--link);text-decoration:underline;cursor:pointer}
.icon{background:#fff;border:1px solid var(--line);border-radius:4px;width:2rem;height:2rem;cursor:pointer}.icon:disabled{opacity:.35;cursor:default}
.btns{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem;align-items:flex-start}
.when{font-size:1.05rem;margin:.2rem 0 .6rem}
.next{background:var(--chalk);border:1px solid var(--line);border-left:6px solid var(--lane);border-radius:6px;padding:1.2rem 1.4rem;margin-top:0}
.next h1 a{color:var(--ink);text-decoration:none}
.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:0 2rem}
.plain{list-style:none;padding:0;margin:0}
.row{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:.6rem 0;border-bottom:1px solid var(--line)}
.tag{display:inline-block;font-size:.8rem;font-weight:600;padding:.1rem .5rem;border-radius:99px;background:#dfe8ef;color:var(--lane-dark)}
.tag.accepted,.tag.carried,.tag.confirmed,.tag.issued{background:#dcefe5;color:var(--go)}
.tag.submitted,.tag.deferred,.tag.held,.tag.withdrawn{background:#fbeccd;color:var(--wait)}
.tag.declined,.tag.lost{background:#f6dedb;color:var(--stop)}
table{width:100%;border-collapse:collapse;background:var(--chalk);border:1px solid var(--line);margin:.6rem 0}
th,td{text-align:left;padding:.55rem .7rem;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:.85rem;color:var(--mute)}tr.done td{color:var(--mute)}
.inline{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}.inline input,.inline select{width:auto;margin:0;padding:.25rem .4rem}
/* agenda: each item is a numbered lane */
.lanes{list-style:none;padding:0;margin:.6rem 0;counter-reset:lane;background:var(--chalk);border:1px solid var(--line);border-radius:6px}
.lanes>li{counter-increment:lane;display:flex;gap:1rem;align-items:flex-start;padding:.8rem 1rem .8rem 0;border-bottom:1px solid var(--line)}
.lanes>li:last-child{border-bottom:0}
.lanes>li::before{content:counter(lane);flex:0 0 3.2rem;text-align:center;font-size:1.5rem;font-weight:700;color:var(--lane);line-height:1.3}
.lanes .body{flex:1}.lanes .body strong{font-size:1.05rem;margin-right:.4rem}
.tools{display:flex;gap:.3rem;align-items:center}
.review{background:#fff7e0;border:1px solid #f0d58a;border-radius:6px;padding:1rem 1.2rem}
.sub{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.8rem;padding:.7rem 0;border-top:1px solid #f0d58a}
.att{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:0 1rem}
.num{display:inline-block;min-width:1.6rem;color:var(--lane)}
.rec{background:var(--ground);border-radius:4px;padding:.45rem .7rem;margin:.4rem 0}
details{margin:.6rem 0;border-top:1px solid var(--line);padding-top:.5rem}summary{cursor:pointer;font-weight:600;color:var(--lane)}
.qr{background:#fff;display:inline-block;padding:.3rem;border:1px solid var(--line)}
code{background:var(--ground);padding:.1rem .3rem;word-break:break-all}
.doc{background:var(--chalk);border:1px solid var(--line);padding:2.2rem 2.4rem;max-width:820px}
.doc .lanes{border-left:0;border-right:0;border-radius:0}
.orgline{font-weight:700;color:var(--lane);margin:0}
@media (max-width:600px){.lanes>li{flex-wrap:wrap}.lanes>li::before{flex-basis:2.2rem}.doc{padding:1.2rem}th,td{padding:.45rem}table{display:block;overflow-x:auto}}
.top.plain+main .panel.narrow{margin-top:5vh}
@media print{.site-foot,.top,.noprint,.flash{display:none}body{background:#fff}main{padding:0;max-width:none}.doc{border:0;padding:0}a{color:inherit;text-decoration:none}}

.check{display:flex;gap:.5rem;align-items:center;font-weight:400}.check input{width:auto;margin:0}
.panel h2:not(:first-child){margin-top:1.6rem;padding-top:1.1rem;border-top:1px solid var(--line)}
.file{display:inline-block;margin:0 .6rem .2rem 0;padding:.1rem .5rem;border:1px solid var(--line);border-radius:4px;background:var(--ground);font-size:.9rem}
.trap{position:absolute;left:-9999px}
.files{list-style:none;padding:0;margin:.4rem 0}.files li{display:flex;flex-wrap:wrap;gap:.3rem .8rem;align-items:baseline;padding:.15rem 0}
.attach{border-top:0;padding-top:0;margin:.3rem 0 0}.attach summary{font-weight:400;font-size:.92rem}.attach form{margin:.3rem 0}
fieldset{border:1px solid var(--line);border-radius:6px;margin:1rem 0;padding:.6rem 1rem}legend{font-weight:600;font-size:.95rem;padding:0 .4rem}
.inline label{margin:0}
.minutes h1{text-align:center;font-size:1.3rem}.minutes h2{font-size:1.1rem;margin:1.3rem 0 .4rem}
.minutes .mline{margin:.3rem 0}.minutes .mnote{color:var(--mute);font-style:italic}.minutes .subhead{margin:.8rem 0 .3rem}
.minutes .attendees{margin:1rem 0}.minutes th{background:#4472c4;color:#fff}.minutes .attendees td{background:#d9e2f3}
.minutes td,.minutes th{border:1px solid #222}.minutes .mfoot{margin-top:1.5rem}.minutes ul{margin:.3rem 0 .6rem}
.attform td{vertical-align:middle}.attform select,.attform input{margin:0}
.note.ok{background:#e4f3ea;border-left-color:var(--go)}.endorse{border-left:6px solid var(--go)}
.rte-bar{display:flex;flex-wrap:wrap;gap:.3rem;margin:.3rem 0 0;padding:.35rem;background:var(--ground);border:1px solid #9fb0bf;border-bottom:0;border-radius:4px 4px 0 0}
.rte-btn{font:inherit;font-size:.88rem;padding:.2rem .6rem;background:#fff;border:1px solid var(--line);border-radius:4px;cursor:pointer}
.rte-btn:hover{background:#dfe8ef}.rte-bold{font-weight:700}.rte-italic{font-style:italic}
.rte{min-height:9rem;padding:.7rem .9rem;background:#fff;border:1px solid #9fb0bf;border-radius:0 0 4px 4px;font:15px/1.4 "Times New Roman",Times,serif;color:#000;overflow-wrap:anywhere}
.rte:focus{outline:3px solid #f0b429;outline-offset:1px}
.rte p,.minutes p{margin:0 0 .55rem}.rte h4,.minutes h4{font-size:1em;font-weight:700;margin:.5rem 0 .4rem}
.rte ul,.rte ol{margin:0 0 .55rem;padding-left:1.8rem}.rte li{margin:.2rem 0}
.minutes ol{margin:.3rem 0 .6rem}
.richtext{max-width:70ch;margin:.4rem 0}.richtext p{margin:0 0 .5rem}.richtext h4{font-size:1em;margin:.5rem 0 .3rem}.richtext ul,.richtext ol{margin:0 0 .5rem;padding-left:1.6rem}
.lanes>li.sub{counter-increment:none;padding-top:.5rem;padding-bottom:.5rem;background:#f6f8fa}
.lanes>li.sub::before{content:"";flex-basis:5rem}
.subitem{margin:.7rem 0 0;padding:.5rem 0 0 1rem;border-left:3px solid var(--line)}
.subpanel{margin-left:2.2rem;border-left:4px solid var(--lane)}.addsub{border-left-style:dashed;background:#f6f8fa}
@media (max-width:600px){.subpanel{margin-left:.8rem}.lanes>li.sub::before{flex-basis:3rem}}
.where{font-size:1.05rem;margin:.2rem 0 .8rem;overflow-wrap:anywhere}
.printblock{display:none}
@media print{.unreleased .doc{display:none}.unreleased .printblock{display:block;font-size:1.2rem;margin:3rem 1rem}}
.lanes>li.addsub-row{background:#fff}.addsub-row .rte{min-height:6rem}
.sendout{border-left:6px solid var(--go)}
.locked{color:var(--mute)}.file.locked{border-style:dashed}
.lead{margin:.15rem 0 .3rem;font-size:.95rem;font-weight:600}.lead.unset{font-weight:400;color:var(--wait)}
.carried{padding:.6rem 0;border-top:1px solid var(--line)}.carried p{margin:0 0 .4rem}table.arising{font-size:.95rem}
.row.task{border-left:4px solid var(--accent);padding-left:.7rem}
.allactions{margin-top:2rem}.allactions .head{align-items:baseline}
fieldset.owners,form.owners{display:flex;flex-wrap:wrap;gap:.2rem 1.1rem}form.owners .check,fieldset.owners .check{margin:.2rem 0}fieldset.owners legend{flex-basis:100%}
table.log{font-size:.9rem}table.log td{overflow-wrap:anywhere}tr.warn td{background:#fdf1ee}.nowrap{white-space:nowrap}.logfilter{margin:.6rem 0 1rem}.logfilter input,.logfilter select{width:auto}
.site-foot{max-width:980px;margin:0 auto;padding:1.2rem 1.25rem 2rem;border-top:1px solid var(--line);color:var(--mute);font-size:.85rem;text-align:center}
/* links as buttons, so they are easy to see and tap */
.link{display:inline-block;background:#fff;border:1px solid var(--link);color:var(--link);border-radius:4px;padding:.2rem .6rem;font-size:.88rem;font-weight:600;text-decoration:none;line-height:1.4}
.link:hover{background:#dfe8ef}
.who .link{background:transparent;border-color:var(--on-lane);color:var(--on-lane)}.who .link:hover{background:rgba(255,255,255,.15)}
.btn.small.ghost{background:#fff}
.btns.right{justify-content:flex-end}
.tabs{display:inline-flex;flex-wrap:wrap;gap:0;border:1px solid var(--link);border-radius:6px;overflow:hidden;margin:0}
.tabs a{padding:.35rem .9rem;text-decoration:none;color:var(--link);font-weight:600;background:#fff;border-right:1px solid var(--link)}
.tabs a:last-child{border-right:0}.tabs a[aria-current]{background:var(--lane);color:var(--on-lane)}
.file{display:inline-block;margin:.15rem .5rem .15rem 0;padding:.25rem .65rem;border:1px solid var(--link);border-radius:4px;background:#fff;color:var(--link);font-weight:600;font-size:.9rem;text-decoration:none}
.file:hover{background:#dfe8ef}.file::before{content:"\2193  "}
.file.locked{border-style:dashed;color:var(--mute);border-color:var(--line);font-weight:400}.file.locked::before{content:""}
.btn.join{margin-left:.15rem;vertical-align:baseline}
.row .btns{gap:.4rem}
@media print{.link,.btn{border:0;padding:0}}

/* archived meetings */
.tag.archived { background: #e8e6f2; color: #4b4470; }
.panel .stored { font-size: 1.05rem; padding: .6rem .8rem; background: var(--soft, #f3f6fa); border-radius: 8px; }
.btn.danger { background: #a3261c; border-color: #a3261c; color: #fff; }
.btn.danger:hover { background: #861e16; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
td .btn{white-space:nowrap}
/* sub-committees, deleting meetings */
.subcom.closed { opacity: .7; }
.delete-meeting summary { color: #a3261c; }
.delete-meeting form { border-left: 3px solid #a3261c; padding-left: .8rem; margin-top: .5rem; }
.sending { opacity: .6; pointer-events: none; cursor: progress; }
/* attendance summary */
.att-wrap { overflow-x: auto; border: 1px solid #d9dfe6; border-radius: 8px; background: #fff; }
table.attgrid { border: 0; margin: 0; min-width: 100%; }
table.attgrid th, table.attgrid td { white-space: nowrap; text-align: center; padding: .45rem .55rem; }
table.attgrid .att-who { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; min-width: 12rem; }
table.attgrid thead .att-who, table.attgrid tfoot .att-who { background: #f3f6fa; }
table.attgrid .mtg a { text-decoration: none; font-weight: 600; }
table.attgrid td.present { background: #e4f3e8; color: #1d5e33; font-weight: 600; }
table.attgrid td.apology { background: #fdf4dc; color: #7a5a00; font-weight: 600; }
table.attgrid td.absent { background: #fbe4e1; color: #8e2418; font-weight: 700; }
table.attgrid td.none { background: #f6f7f8; }
table.attgrid .att-num { font-variant-numeric: tabular-nums; }
table.attgrid tr.flag .att-who { box-shadow: inset 4px 0 0 #a8321a; }
table.attgrid .rate { font-weight: 700; }
.subhint { grid-column: 1 / -1; margin: -.3rem 0 .2rem; }
label.since { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--muted, #555); }
label.since input { width: auto; }
.actgroup { margin: 1.4rem 0 .4rem; font-size: 1.05rem; }
.actgroup .muted { font-weight: normal; font-size: .9rem; }
.demobar { background: #fff4e0; border-bottom: 1px solid #f0c987; font-size: .9rem; }
.demobar-in { max-width: 1100px; margin: 0 auto; padding: .55rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.demobar-in > span { flex: 1 1 380px; }
.demobar select { width: auto; margin-left: .35rem; }
.demo-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1rem 0; }
.demo-roles .panel { margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.demo-roles .panel p { flex: 1; margin: 0; }
.mail { border: 1px solid #d9dfe6; border-radius: 6px; padding: .8rem 1rem; margin: .8rem 0; background: #fff; }
.mail pre { white-space: pre-wrap; font: inherit; margin: .5rem 0 0; }
.small-print { font-size: .8rem; line-height: 1.4; margin-top: 1rem; }

/* actions list */
table.acttable { table-layout: fixed; }
table.acttable thead th:nth-child(2) { width: 13rem; }
table.acttable thead th:nth-child(3) { width: 7.5rem; }
table.acttable thead th:nth-child(4) { width: 8rem; }
table.acttable tr.meetrow th { background: #f3f6fa; color: var(--ink, #0E2A47); font-size: .9rem; font-weight: 600; padding-top: .7rem; }
table.acttable tr.meetrow a { font-weight: normal; margin-left: .5rem; }
table.acttable .actitem { display: block; margin-top: .3rem; font-size: .88rem; color: var(--mute); }
table.acttable .actowner details.attach summary { font-size: .85rem; }
table.acttable .actdue { white-space: nowrap; }
table.acttable .phonelabel { display: none; }
@media (max-width: 700px) {
  table.acttable, table.acttable tbody, table.acttable tr, table.acttable td, table.acttable th { display: block; width: auto !important; }
  table.acttable thead { display: none; }
  table.acttable tr:not(.meetrow) { border-bottom: 1px solid var(--line); padding: .3rem 0; }
  table.acttable td { border: 0; padding: .2rem .7rem; }
  table.acttable td.right { text-align: left; }
  table.acttable .phonelabel { display: inline; }
}

/* suggested corrections */
.sugg { border-top: 1px solid var(--line); padding: .5rem 0; }
.sugg:first-of-type { border-top: 0; }
.sugg p { margin: .2rem 0; }
.sugg .tag { font-size: .8rem; }
.sugg.open .tag { background: #fff3cd; color: #6b4e00; }
.sugg.fixed .tag, .sugg.agreed .tag { background: #e3f1e6; color: #1d5a2c; }
.sugg form.inline { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .3rem; }
fieldset.suggpick { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; margin: .6rem 0; }
fieldset.suggpick label.check { display: block; margin: .3rem 0; }

fieldset.startchoice { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; margin: .4rem 0 .8rem; }
fieldset.startchoice label.check { display: block; margin: .25rem 0; }
fieldset.startchoice .later { margin-top: .4rem; }
.tag.planned { background: #e8e4f4; color: #46367a; }

section.created .choices { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; }
section.created .choices form.inline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
section.created .choices label { margin: 0; font-weight: normal; color: var(--mute); }

fieldset.mailbox { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; margin: .6rem 0; }
.ok-line { background: #e3f1e6; color: #1d5a2c; padding: .5rem .8rem; border-radius: 6px; }

.device-code { font: 700 1.6rem/1.2 ui-monospace, Menlo, monospace; letter-spacing: .12em; padding: .2rem .6rem; background: #f3f6fa; border-radius: 6px; }
.status.error { color: var(--accent); }
ol.steps > li { margin-bottom: .8rem; }
ol.steps .btns { margin-top: .4rem; align-items: center; }

table.meetlist .kindline { display: block; font-size: .85rem; color: var(--mute); }
.nowrap { white-space: nowrap; }
table.meetlist .btns form { display: inline; }
table.meetlist td.right .btns { flex-wrap: nowrap; justify-content: flex-end; }
table.meetlist td:first-child { width: 34%; }
table.meetlist td:nth-child(3) { min-width: 12.5rem; }
table.meetlist .tag { white-space: nowrap; }
@media (max-width: 700px) { table.meetlist td.right .btns { flex-wrap: wrap; } }

.tag.cancelled, .cancelled-panel h2 { color: #8a1c1c; }
.tag.cancelled { background: #f6dcdc; }
.cancelled-panel { border-left: 6px solid #c43c3c; }
