@charset "UTF-8";
:root{--size:1;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#173b37;background:#f5f6f2;font-synthesis:none;--green:#163e3a;--muted:#566b65;--border:#d2ddd6;--paper:#fff;--focus:#a34514;--bar:min(80px*var(--size),100px)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;touch-action:manipulation;color:inherit}button:disabled{cursor:default;opacity:.48}button,input,select,textarea{border:1px solid #a9bcb4;border-radius:12px}button{background:white;min-height:48px;padding:10px 18px;font-weight:650}button:hover{border-color:#426c60;background:#f0f5ef}button:active{transform:translateY(1px)}:focus-visible{outline:3px solid var(--focus);outline-offset:4px}svg{width:26px;height:26px;display:block;flex-shrink:0}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-.9px;margin-bottom:0;line-height:1.2}h2{font-size:26px;letter-spacing:-.6px;margin:0}h3{font-size:20px;margin-bottom:10px}p{line-height:1.6}hr{border:0;border-top:1px solid var(--border);margin:26px 0}[hidden]{display:none!important}.skip{position:absolute;left:15px;top:-100px;z-index:20;background:white;padding:12px}.skip:focus{top:10px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
body{background:#f5f6f2;padding-bottom:calc(var(--bar) + 40px + env(safe-area-inset-bottom))}
/* Top: brand, tools and the three sections. Stays in view while the page scrolls. */
.topbar{position:sticky;top:0;z-index:5;background:#f5f6f2;border-bottom:1px solid var(--border);padding:12px 16px 10px}
.topbar>*{max-width:1100px;margin-inline:auto}
.brand-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand-mark{display:grid;place-items:center;background:var(--green);color:#fff;border-radius:12px;width:40px;height:40px;flex-shrink:0}
.brand-mark svg{width:26px;height:26px}
.brand-name{font-size:20px;font-weight:750;letter-spacing:-.6px;white-space:nowrap}
.tool{width:48px;height:48px;padding:0;display:grid;place-items:center}
.tool svg{width:24px;height:24px}
.sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border-radius:16px;background:#e2eae1;margin-top:10px}
.sections button{border:0;background:transparent;min-height:60px;padding:6px;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:15px;font-weight:700}
.sections button:hover{background:#d3dfd2}
.sections button[aria-current=page]{background:var(--green);color:#fff}
.sections svg{width:24px;height:24px}
[data-conversation] .sections [data-view=answer]{position:relative}
[data-conversation] .sections [data-view=answer]::after{content:"";position:absolute;top:8px;right:10px;width:10px;height:10px;border-radius:50%;background:#9ab48a;box-shadow:0 0 0 2px #fff}
[data-conversation=hearing] .sections [data-view=answer]::after{background:#c0503f;animation:pulse 1s ease-in-out infinite alternate}
[data-conversation=paused] .sections [data-view=answer]::after{background:#c2cbc6}
main{max-width:1100px;margin:0 auto;padding:14px 16px 24px;min-width:0}
main:focus{outline:none}
/* Inside a group: Back and the group's name. */
.group-top{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.group-top.at-groups{margin:0}
.group-top h1{font-size:calc(26px*var(--size));letter-spacing:-.6px;overflow-wrap:anywhere}
.back{display:flex;align-items:center;gap:6px;min-height:52px;padding:8px 18px 8px 10px;border-radius:14px;border-width:1.5px;font-size:17px;font-weight:700;flex-shrink:0}
.back svg{width:26px;height:26px}
.board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.message-card{position:relative;min-width:0;border-radius:16px;background:white;border:1px solid var(--border);box-shadow:0 2px 1px #1b362505}
.phrase-button{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:left;border:0;border-radius:16px;background:transparent;width:100%;min-height:calc(148px*var(--size));height:100%;padding:16px}
.phrase-button:hover{background:#f0f5ec;box-shadow:inset 0 0 0 2px #5b7e65}
.picture{width:calc(48px*var(--size));height:calc(48px*var(--size));display:grid;place-items:center;border-radius:13px;background:#edf1e5;color:#3d6552;margin-bottom:14px}
.picture svg{width:calc(30px*var(--size));height:calc(30px*var(--size))}
.message-card:nth-child(4n+2) .picture{background:#f4eddf;color:#83632e}
.message-card:nth-child(4n+3) .picture{background:#e7edf2;color:#496c83}
.message-card:nth-child(4n+4) .picture{background:#f0e8e6;color:#8b6258}
.card-label{font-size:calc(19px*var(--size));line-height:1.25;font-weight:700;overflow-wrap:anywhere}
.card-detail{font-size:calc(11px*var(--size));font-weight:450;color:var(--muted);margin-top:6px;line-height:1.4}
.message-card.selected{box-shadow:0 0 0 3px #486c4a}
/* Help stands out, since it replaced the old Help button. The tile being spoken turns dark green. */
.message-card[data-id=help]{background:#fff1d6;border-color:#d2b775}
.message-card[data-id=help] .picture{background:#ffe3a8;color:#70500f}
.message-card[data-id=help] .card-label{color:#70500f}
.speaking .message-card.selected{background:var(--green);border-color:var(--green)}
.speaking .message-card.selected .phrase-button{color:#fff;background:transparent;box-shadow:none}
.speaking .message-card.selected .picture{background:#ffffff24;color:#fff}
.speaking .message-card.selected .card-label{color:#fff}
.speaking .message-card.selected .card-detail{color:#d9ebe0}
.speaking .message-card.selected::after{content:"Speaking";position:absolute;top:18px;right:14px;font-size:13px;font-weight:700;color:#d9ebe0;pointer-events:none}
.fav-badge{position:absolute;right:12px;top:12px;font-size:17px;color:#6f5319;pointer-events:none}
.favorite-toggle{position:absolute;right:6px;top:6px;border:1px solid #b5c7b7;width:48px;height:48px;padding:0;font-size:26px;background:#fff;z-index:1}
.editing .phrase-button{padding-right:48px}
.editing .card-detail{font-weight:700}
.add-card{min-height:148px;border:2px dashed #8faa94;border-radius:16px;background:#f0f5ec;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#315c42;font-size:16px}
.empty-slot{border:1px dashed #c3d0c5;border-radius:16px;min-height:148px;display:grid;place-items:center;font-size:12px;color:#62716a}
.empty-state{grid-column:1/-1;padding:28px;background:#fff;border:1px dashed #a9beb0;border-radius:14px;line-height:1.6;color:#52695b}
.board-hint{font-size:12px;color:var(--muted);margin:16px 0 0}
.board:focus{outline:none}
.board:focus-visible{outline:3px solid var(--focus);outline-offset:5px}
footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:24px;padding-top:12px;border-top:1px solid var(--border);font-size:11px;color:var(--muted)}
footer button{border:0;background:transparent;font-size:12px;min-height:44px;padding:4px 0}
/* Always here: Yes, No, Replay (Stop while speaking) and Home. */
.always{position:fixed;left:0;right:0;bottom:0;z-index:6;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px max(12px,calc((100% - 1100px)/2)) calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--border);box-shadow:0 -6px 18px #173b370f}
.always button{min-height:var(--bar);padding:6px 4px;border-radius:16px;border-width:1.5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:18px;font-weight:750}
.always svg{width:30px;height:30px}
.always .yes{background:#e7f0df;border-color:#9ab48a;color:#294c28}
.always .no{background:#f8e9e4;border-color:#cba396;color:#7b342b}
.always .replay.stop{background:#fff4ef;border-color:#dcb3a5;color:#8a362d}
.always .home,.always .home:hover{background:var(--green);border-color:var(--green);color:#fff}
/* Shown only when speech can't play, so the words can be shown to someone instead. */
.speech-note{position:fixed;left:12px;right:12px;bottom:calc(var(--bar) + 34px + env(safe-area-inset-bottom));z-index:6;max-width:1076px;margin:0 auto;display:flex;align-items:flex-start;gap:12px;padding:14px 16px;background:#fff3d7;border:1px solid #d6b46e;border-radius:16px;color:#4f3812;box-shadow:0 6px 30px #193d302b}
.speech-note>div{flex:1;min-width:0}
.message{font-size:calc(24px*var(--size));line-height:1.3;font-weight:650;margin-bottom:6px;overflow-wrap:anywhere}
.speech-status{font-size:13px;margin:0}
.speech-note .icon-button{background:#fff}
.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.6px;color:#4e6459;margin-bottom:10px;line-height:1.4}
.notice{background:#e9f0e3;border:1px solid #b6c9a6;border-radius:12px;padding:14px 16px;font-size:13px;line-height:1.6}
.warning{background:#fff3d7;border-color:#d6b46e;color:#654716;margin-bottom:18px}
.edit-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.edit-banner button{white-space:nowrap}
.primary{background:var(--green);color:white;border-color:var(--green)}
.primary:hover{background:#285c50;color:white}
.text-danger{border:0;color:#933c32;background:transparent;margin-right:auto}
.danger{color:#fff;background:#963f32;border-color:#963f32}
.error{font-size:13px;color:#943e30;min-height:0}
.error:empty{display:none}
dialog{border:1px solid #aebfb4;border-radius:22px;color:var(--green);width:min(560px,calc(100% - 30px));padding:27px;max-height:calc(100dvh - 40px);overflow-y:auto;box-shadow:0 20px 90px #14312640}
dialog::backdrop{background:#142d286e;backdrop-filter:blur(3px)}
.dialog-top{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:24px}
.dialog-top .eyebrow{margin-bottom:5px}
.icon-button{padding:0;width:48px;min-width:48px;font-size:30px;border-color:var(--border)}
label{display:block;font-size:13px;font-weight:700;margin-bottom:18px}
input:not([type=checkbox]),textarea,select{display:block;width:100%;min-height:51px;background:white;color:var(--green);padding:12px;margin-top:8px;font-size:16px}
textarea{resize:vertical;line-height:1.5}
.field-hint{font-size:12px;color:var(--muted);margin-top:-5px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.check-row{display:flex;gap:12px;align-items:center;min-height:48px}
.check-row input{width:25px;height:25px;accent-color:var(--green);margin:0;flex-shrink:0}
.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px;flex-wrap:wrap}
.icon-preview{background:#eff3e8;border-radius:12px;width:60px;height:60px;display:grid;place-items:center;margin-bottom:16px}
.icon-preview svg{width:36px;height:36px}
.backup-actions{display:flex;gap:10px;margin-bottom:20px}
dialog p{font-size:14px}
.settings-status{margin:16px 0 0;color:#476047}
.dialog-actions button{min-width:95px}
#import-result{overflow-wrap:anywhere}
#apply-import{width:100%;margin-top:10px}
/* Settings menu */
.menu-items{display:grid;gap:10px}
.menu-item{display:flex;align-items:center;gap:14px;min-height:76px;padding:12px 16px;border-radius:16px;text-align:left;font-size:19px}
.menu-item .picture{margin:0;flex-shrink:0}
.menu-item strong{display:block;font-weight:700}
.menu-item small{display:block;font-size:13px;font-weight:450;color:var(--muted);line-height:1.4;margin-top:2px}

/* Help me answer and Help me say it */
.view-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.view-top .eyebrow{margin-bottom:4px}
.view h1{font-size:26px;letter-spacing:-.6px}
.view h2{font-size:17px;letter-spacing:0;margin:0 0 10px}
.quiet-button{background:transparent;border-color:var(--border);font-size:14px;flex-shrink:0}
.experimental{display:inline-block;margin:0 0 16px;padding:6px 12px;border-radius:999px;border:1px solid #d2b775;background:#fff1d6;color:#70500f;font-size:14px;font-weight:700;line-height:1.4}
.topic-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.topic-chip{display:flex;align-items:center;gap:8px;min-height:48px;padding:8px 14px;border-radius:24px;font-size:calc(16px*var(--size))}
.topic-chip svg{width:20px;height:20px}
.topic-chip[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff}
.topic-chip[aria-pressed=true]:hover{background:#285c50}
.listen-row{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.listen{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;min-height:calc(72px*var(--size));padding:12px 24px;border-radius:16px;font-size:calc(20px*var(--size))}
.listen svg{width:28px;height:28px}
.listen.listening,.listen.listening:hover{background:#963f32;border-color:#963f32}
.listen-time{font-size:15px;color:var(--muted);font-variant-numeric:tabular-nums}
.wide{width:100%;min-height:56px;border-radius:14px}
.live{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:calc(16px*var(--size));font-weight:650;color:#476047}
.live::before{content:"";width:12px;height:12px;border-radius:50%;background:#9ab48a;flex-shrink:0}
.live.hearing{color:#963f32}.live.hearing::before{background:#963f32;animation:pulse 1s ease-in-out infinite alternate}
.live.paused::before{background:#c2cbc6}
@keyframes pulse{to{opacity:.35}}
#replies.stale .guess{opacity:.55}
#helper-status,#answer-status{min-height:22px;margin-bottom:12px}
.guesses{display:grid;gap:10px;margin-bottom:12px}
.guess{display:flex;align-items:center;justify-content:space-between;flex-direction:row-reverse;gap:12px;min-height:calc(68px*var(--size));text-align:left;padding:12px 16px;border-radius:16px;border:1.5px solid #9ab48a;font-size:calc(19px*var(--size));font-weight:650;line-height:1.3}
.guess svg{width:24px;height:24px;color:var(--green)}
.guess.best{font-size:calc(21px*var(--size));border:2px solid var(--green);background:#f0f5ec}
.guess.selected{box-shadow:0 0 0 3px #486c4a}
.more{margin-top:20px;border-top:1px solid var(--border);padding-top:6px}
.more summary{min-height:48px;display:flex;align-items:center;font-size:15px;font-weight:700;cursor:pointer}
.more[open] summary{margin-bottom:10px}
.earlier{background:#f0f5ec;border:1px solid var(--border);border-radius:12px;padding:14px 16px;margin-bottom:16px}
.view .earlier h2{font-size:14px;margin-bottom:6px}
.earlier ol{list-style:none;margin:0;padding:0;display:grid;gap:4px;font-size:calc(14px*var(--size));line-height:1.45}

/* Wider screens: sections side by side with their icons, groups wrap, more columns. */
@media(min-width:700px){.sections button{flex-direction:row;gap:10px;font-size:16px;min-height:56px}
.groups{flex-wrap:wrap;overflow:visible;margin-inline:0;padding-inline:0}
.board{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.phrase-button{padding:19px}
.card-detail{font-size:calc(12px*var(--size))}
}
@media(min-width:1000px){.board{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:370px){.brand-name{font-size:17px}
.always{gap:6px;padding-inline:8px}
.always button{font-size:16px}
.card-label{font-size:calc(17px*var(--size))}
}
/* A phone on its side has little height: let the top scroll away. */
@media(max-height:500px){.topbar{position:static}
}
@media(max-width:699px){dialog{padding:23px;max-height:calc(100dvh - 24px)}
.dialog-top{margin-bottom:20px}
.dialog-actions button{flex:1}
.form-row{grid-template-columns:1fr}
.form-row label{margin-bottom:12px}
.backup-actions{flex-wrap:wrap}
.backup-actions button{flex:1}
.edit-banner{align-items:flex-start;font-size:12px;flex-direction:column}
.edit-banner button{align-self:flex-end}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}
.live.hearing::before,[data-conversation=hearing] .sections [data-view=answer]::after{animation:none}
}

/* Text and button size (Voice & backup). Larger sizes also use fewer, wider columns. */
[data-size=large]{--size:1.2}
[data-size=xlarge]{--size:1.4}
[data-size=xlarge] .board{grid-template-columns:minmax(0,1fr)}
@media(min-width:700px){[data-size=large] .board,[data-size=xlarge] .board{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1000px){[data-size=large] .board{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Boards */
.board-list{border:0;padding:0;margin:0 0 12px}
.board-list legend{font-weight:700;padding:0;margin-bottom:6px}
.board-row{border-top:1px solid #dde6df}
.board-row:first-child{border-top:0}
.board-row .check-row{padding:8px 0}
.board-row small{display:block;font-size:13px;color:var(--muted)}

/* Boards admin (admin.html) */
.admin-main{max-width:760px;margin:0 auto;padding:24px 16px 48px}
.admin-main section{margin-top:32px}
.admin-main label{display:block;margin:12px 0}
.admin-main input:not([type=file]){display:block;width:100%;margin-top:6px;min-height:44px;padding:8px 12px}
.admin-link{display:inline-flex;align-items:center;padding:0 14px;min-height:44px;border:1px solid var(--border);border-radius:12px;color:inherit;text-decoration:none}
.admin-list{list-style:none;padding:0;margin:0}
.admin-list li{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--border)}
.admin-list small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.admin-list .backup-actions{margin:0}
.admin-groups{font-size:14px}
.admin-main progress{width:100%;height:12px;accent-color:var(--green)}
.admin-main h2+.field-hint{margin-top:6px}

/* A published board's own pictures: a bigger, white box, so full-colour symbols read well. */
.picture.photo{width:calc(72px*var(--size));height:calc(72px*var(--size));background:#fff;border:1px solid var(--border);padding:calc(4px*var(--size));overflow:hidden}
.message-card .picture.photo{background:#fff}
.picture.photo img{width:100%;height:100%;object-fit:contain;display:block}
.speaking .message-card.selected .picture.photo{background:#fff}
.credits{font-size:13px;margin:0 0 12px}
.credits summary{cursor:pointer;font-weight:700;min-height:32px}
.credits ul{margin:6px 0 0;padding-left:20px;color:var(--muted)}
