/* A fixed outer shell; only writing and long detail views scroll when needed. */
html:has(.tap-flow){height:100%;overflow:hidden}
.tap-flow{height:var(--flow-height,100dvh);overflow:hidden;display:flex;flex-direction:column;background:#f5f7f0}
.tap-flow .header{width:100%;height:64px;min-height:64px;flex:none;max-width:920px;padding:8px 24px;border-bottom:0;flex-wrap:nowrap;gap:12px}
.tap-flow .brand{font-size:22px}.tap-flow .brand img{width:34px;height:34px}.tap-flow .header-actions{display:flex;gap:8px;flex-wrap:nowrap}.tap-flow .header-actions .quiet{font-size:13px;padding:10px;min-height:44px;border:1px solid var(--line);border-radius:10px;background:white}
.tap-flow .legacy-utility,.tap-flow .intro,.tap-flow #coverage-summary,.tap-flow .sidebar,.tap-flow main>footer{display:none}
.tap-flow main{width:100%;max-width:920px;flex:1;min-height:0;padding:0 24px 16px;display:flex;flex-direction:column;gap:8px}
.tap-flow .steps{flex:none;margin:0;border:0;gap:6px}.tap-flow .steps button{flex-direction:row;align-items:center;gap:8px;justify-content:center;border:0;border-radius:8px;padding:9px 4px;min-height:44px;font-size:12px;background:#eaf0e5}.tap-flow .steps button.active{background:var(--ink);color:white}.tap-flow .steps button.active span{border-color:#9bb4a4}.tap-flow .steps span{width:22px;height:22px;flex:none}.tap-flow .steps button.done{color:var(--ink)}
#flow-summary{flex:none;min-width:0}#flow-summary>button{border:0;background:none;width:100%;display:flex;align-items:center;gap:8px;min-height:32px;padding:4px;color:#607168;font-size:12px}#flow-summary svg{width:15px;height:15px;flex:none}#flow-summary span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;flex:1}#flow-summary b{font-size:11px;flex:none}
.tap-flow .workspace{display:flex;flex:1;min-height:0;align-items:stretch}.tap-flow .panel{width:100%;min-height:0;display:flex;flex-direction:column;border-radius:20px;padding:24px 30px 0;box-shadow:0 5px 24px #173d3510;overflow:hidden;gap:0}.tap-flow .panel:focus{outline:none}
.flow-heading{flex:none}.tap-flow .section-kicker{font-size:10px;letter-spacing:1.3px;margin:0 0 7px}.tap-flow h2{font-size:32px;line-height:1.14;letter-spacing:-.6px;margin:0 0 10px}.flow-intro{color:#65736b;font-size:14px;line-height:1.45;margin:0 0 18px;max-width:660px}
.flow-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px 2px 8px;scroll-padding:12px}.flow-content>p:last-child{margin-bottom:0}
.flow-actions{flex:none;display:flex;justify-content:space-between;align-items:center;gap:8px;background:white;border-top:1px solid var(--line);padding:12px 0;min-height:70px}.flow-forward{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.flow-actions .button{min-height:44px;font-size:13px;padding:12px 18px}.tap-flow .text-button{color:var(--ink);background:none;border:0;font-size:12px;min-height:40px;padding:8px 3px;box-shadow:none;text-decoration:none}.tap-flow .text-button:hover{text-decoration:underline;background:transparent}
.choice-stack{display:grid;gap:10px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choice-tile{display:flex;align-items:center;gap:13px;min-height:76px;padding:17px 18px;border:1px solid #cfdccc;border-radius:12px;background:#f8faf5;text-align:left;color:var(--ink);font-size:15px;line-height:1.3}.choice-tile:hover{background:#eaf2e5;border-color:#8aaa92}.choice-tile>svg{width:25px;height:25px;flex:none;color:#537f66}.choice-tile>span:not(.tile-arrow){flex:1;min-width:0}.choice-tile b{display:block;font-weight:600;overflow-wrap:anywhere}.choice-tile small{display:block;font-size:12px;color:#6d7d72;line-height:1.4;margin-top:4px;overflow-wrap:anywhere}.tile-arrow{font-size:23px;color:#839980;flex:none}.choice-tile.chosen,.choice-tile[aria-pressed=true]{border-color:#3d705a;background:#e7f0e1}.compact .choice-tile{font-size:14px;min-height:90px}
.flow-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#6e7b71;margin:12px 0 0}.flow-pagination .button{min-height:40px}.flow-pagination span{white-space:nowrap}.flow-hint{font-size:12px;line-height:1.5;color:#617269;margin:12px 0}.flow-hint .text-button{font-size:12px}.flow-explanation{border-radius:14px;background:var(--mint);padding:18px;max-width:620px}.flow-explanation>svg{width:30px;height:30px}.flow-explanation p{font-size:14px;line-height:1.55;margin:10px 0}.inline-options{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.tap-flow .field{margin-bottom:14px;gap:7px}.tap-flow .field label{font-size:13px}.tap-flow .field input,.tap-flow .field textarea,.tap-flow .field select{font-size:16px;border-radius:10px;padding:13px;min-height:48px}.tap-flow .field input::placeholder,.tap-flow .field textarea::placeholder{font-size:14px}
.location-card{display:flex;align-items:center;gap:16px;padding:20px;border:1px solid #d1dfcb;background:#eef4e8;border-radius:14px;margin-bottom:16px}.location-card>svg{width:30px;height:30px;flex:none}.location-card>div{flex:1;min-width:0}.location-card strong{font-size:25px;font-family:Georgia,serif;font-weight:400;display:block;overflow-wrap:anywhere}.location-card span,.location-card small{display:block;font-size:13px;line-height:1.6;color:#63765d}
.level-choices{display:grid;gap:8px}.level-choice{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #cfdccc;border-radius:10px;background:#fafcf8;min-height:48px;padding:10px 15px;font-size:14px}.level-choice svg{width:22px;height:22px;flex:none}.level-choice.chosen{background:#e7f0e1;border-color:#54775d}.choice-label{font-size:12px;font-weight:bold;margin:14px 0 8px}.choice-row{display:flex;gap:8px;flex-wrap:wrap}.choice-pill{background:white;color:var(--ink);border:1px solid #c5d3bf;min-height:44px;font-size:13px;flex:1;border-radius:10px;padding:11px}.choice-pill[aria-pressed=true]{background:var(--mint);border:2px solid #54775d;padding:10px}.choice-pill:hover{color:var(--ink);background:var(--mint)}
.recipient-toolbar{display:flex;gap:6px;justify-content:space-between}.recipient-toolbar .button{min-height:38px;font-size:12px;padding:8px 10px}.recipient-toolbar .group-picker{flex:1}.flow-contact{border:1px solid #cedbc8;border-radius:14px;padding:18px;background:#fafcf8}.flow-contact.selected{background:#edf4e8;border-color:#659163}.office-label{display:flex;align-items:center;gap:7px;font-size:11px;color:#64775e;margin-bottom:12px}.office-label svg{width:18px;height:18px;flex:none}.selected-mark{margin-left:auto;color:#2a6246;white-space:nowrap}.flow-contact h3{font-size:19px;font-weight:600;line-height:1.3;margin:0 0 6px;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.office-place{font-size:12px;line-height:1.4;color:#637263;margin:0 0 10px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.flow-contact .contact-email{font-size:14px;margin:8px 0;line-height:1.4}.office-purpose{font-size:12px;line-height:1.45;color:#5b6d5e;margin:8px 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.specialist-note{font-size:12px;margin:6px 0;color:#8b5b32}.office-tools,.office-decisions{display:flex;justify-content:space-between;align-items:center;gap:10px}.office-decisions{margin-top:10px}.office-decisions .button{flex:1;min-height:44px}.mode-buttons{display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}.mode-buttons button{border:0;border-radius:0;background:white;min-width:44px;min-height:40px;padding:8px;font-size:12px}.mode-buttons [aria-pressed=true]{background:var(--ink);color:white}.flow-empty{font-size:15px;line-height:1.6;padding:20px 4px}.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.message-editor{display:flex;flex-direction:column;overflow:hidden}.message-editor .subject-field{flex:none}.message-editor .field:has(#body){flex:1;min-height:0;margin-bottom:6px}.tap-flow #body{flex:1;min-height:80px;height:100%;resize:none;line-height:1.55;font-size:16px}.writing-prompt .field textarea{height:clamp(110px,28vh,260px);resize:none}.message-editor .inline-options{flex:none}.review-card{border:1px solid var(--line);border-radius:12px;overflow:hidden}.review-card button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:#f7faf3;padding:12px 16px}.review-card button:last-child{border-bottom:0}.review-card span{display:block;font-size:11px;color:#6d7e65;margin-bottom:4px}.review-card b{display:block;font-size:14px;line-height:1.4;overflow-wrap:anywhere}.review-check{padding:10px 12px;background:var(--mint);border-radius:8px}.tap-flow .checkrow{font-size:13px;line-height:1.5}.review-address{padding:14px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.review-address p{margin:5px 0}.mail-apps .choice-pill{min-width:75px}.tap-flow #send-link[aria-disabled=true]{opacity:.5}.tap-flow .error{margin:7px 0;font-size:12px}.tap-flow #toast{bottom:84px;max-width:min(90vw,500px);pointer-events:none}.tap-flow dialog{max-height:calc(var(--flow-height,100dvh) - 24px);padding:24px;border-radius:18px;overscroll-behavior:contain}.tap-flow dialog #dialog-close{position:sticky;bottom:0;box-shadow:0 0 0 8px white;min-height:44px}.tap-flow dialog .choice-tile{min-height:62px;padding:13px 16px}.tap-flow dialog .contact-card{padding:14px}.tap-flow dialog .draft-area{min-height:120px}.tap-flow dialog .button:not(.text-button){min-height:44px}.tap-flow dialog .row{margin-bottom:8px}.tap-flow .lookup-status{line-height:1.45}
@media(min-width:701px){.tap-flow main{padding-bottom:24px}.tap-flow .panel{padding-top:28px}.choice-stack{max-width:660px}.flow-content .choice-grid{max-width:760px}.flow-contact{max-width:640px}.flow-heading{margin-bottom:4px}.tap-flow .field{max-width:700px}}
@media(max-width:700px){.tap-flow .header{height:56px;min-height:56px;padding:6px 14px}.tap-flow .brand{font-size:19px;gap:8px}.tap-flow .brand img{width:30px;height:30px}.tap-flow .brand small{font-size:7px}.tap-flow .header-actions .quiet{font-size:11px;padding:8px;min-height:40px}.tap-flow main{padding:0 10px 10px;gap:5px}.tap-flow .steps{gap:4px}.tap-flow .steps button{font-size:10px;gap:4px;min-height:40px;padding:7px 2px}.tap-flow .steps span{width:18px;height:18px;font-size:9px}.tap-flow .panel{padding:18px 16px 0;border-radius:16px}.tap-flow h2{font-size:27px}.flow-intro{font-size:13px;margin-bottom:13px}.choice-tile{font-size:14px;min-height:72px;padding:13px 12px;gap:9px}.choice-tile>svg{width:21px;height:21px}.choice-tile small{font-size:11px}.choice-grid{gap:8px}.choice-grid .tile-arrow{display:none}.choice-grid .choice-tile{align-items:flex-start;flex-direction:column;min-height:104px}.choice-grid.compact .choice-tile{min-height:110px}.flow-actions{padding:10px 0;min-height:65px}.flow-actions .button{font-size:12px;padding:11px 12px}.flow-actions .text-button{padding:8px 2px}.flow-forward{gap:6px}.flow-hint{font-size:11px;margin:10px 0}.flow-contact{padding:14px}.flow-contact h3{font-size:17px}.office-label{margin-bottom:9px;font-size:10px}.flow-contact .contact-email{font-size:12px}.office-purpose{font-size:11px}.office-place{font-size:11px}.office-tools{gap:6px}.flow-contact .small{margin:7px 0}.flow-contact .button{font-size:12px;padding:10px 12px}.flow-pagination{margin-top:5px}.flow-pagination .text-button{min-height:34px}.flow-content{padding-bottom:4px}.flow-explanation p{font-size:13px}.location-card{padding:16px;gap:12px}.location-card strong{font-size:23px}.level-choice{min-height:46px;font-size:13px}.level-choices{gap:7px}.tap-flow dialog{padding:19px}.tap-flow dialog h2{font-size:25px}.review-card button{padding:10px 12px}.review-card b{font-size:13px}.tap-flow .review-check{font-size:12px}.tap-flow .message-editor .inline-options{gap:12px}}
@media(max-height:680px){.tap-flow .panel{padding-top:12px}.tap-flow h2{font-size:25px;margin-bottom:7px}.flow-intro{margin-bottom:10px}.tap-flow .section-kicker{font-size:9px;margin-bottom:5px}.choice-stack{gap:8px}.choice-tile{min-height:64px;padding:11px 12px}.choice-grid .choice-tile{min-height:90px}.flow-contact{padding:11px}.office-label{margin-bottom:7px}.office-tools .text-button{min-height:32px}.office-decisions{margin-top:6px}.office-place{margin-bottom:6px}.flow-hint{margin:7px 0}.flow-actions{min-height:60px;padding:8px 0}.level-choice{min-height:42px;padding:8px 12px}.level-choices{gap:6px}}
.compact-keyboard #flow-summary,.compact-keyboard .steps,.compact-keyboard .section-kicker{display:none}.compact-keyboard .header{height:44px;min-height:44px}.compact-keyboard .header .brand img{width:24px;height:24px}.compact-keyboard .header .brand small{display:none}.compact-keyboard .panel{padding-top:10px}.compact-keyboard h2{font-size:23px}.compact-keyboard .flow-intro{font-size:12px;margin-bottom:8px}.compact-keyboard .flow-actions{min-height:52px;padding:5px 0}.compact-keyboard .flow-actions .button{min-height:40px;padding:9px 12px}.compact-keyboard .message-editor .subject-field{margin-bottom:6px}.compact-keyboard .field input{min-height:38px;padding:8px 10px}.compact-keyboard .message-editor .inline-options{display:none}.compact-keyboard .writing-prompt textarea{height:110px}.compact-keyboard .flow-content{overflow:auto}
@media(max-width:700px){.level-choices{grid-template-columns:1fr 1fr}.level-choice:last-child{grid-column:1/-1}.level-choice{font-size:12px;gap:8px}.choice-grid .choice-tile:not(:has(small)){justify-content:center}}
.tap-flow #panel[data-view="review"] .review-card button{padding-top:8px;padding-bottom:8px}
@media(max-height:610px){.tap-flow #flow-summary,.tap-flow .section-kicker{display:none}.tap-flow .flow-heading{margin-bottom:0}.tap-flow .flow-contact h3{font-size:16px}.tap-flow .flow-contact{padding:10px}.tap-flow .office-label{margin-bottom:5px}.tap-flow .office-purpose{margin:6px 0}}
@media(max-height:500px){.tap-flow .steps{display:none}.tap-flow .header{height:44px;min-height:44px}.tap-flow .header .brand small{display:none}.tap-flow .panel{padding-top:10px}.tap-flow h2{font-size:23px}.tap-flow .flow-intro{font-size:12px;margin-bottom:8px}.tap-flow .flow-actions{min-height:52px;padding:5px 0}.tap-flow .flow-actions .button{min-height:40px;padding:9px 12px}.tap-flow .message-editor .subject-field{margin-bottom:6px}.tap-flow .field input{min-height:38px;padding:8px 10px}.tap-flow .message-editor .inline-options{display:none}.tap-flow .writing-prompt textarea{height:110px}}
@media(prefers-reduced-motion:no-preference){.choice-tile,.level-choice,.choice-pill{transition:background .12s,border-color .12s}}@media print{html:has(.tap-flow),.tap-flow{height:auto;overflow:visible}.tap-flow main,.tap-flow .workspace,.tap-flow .panel,.flow-content{display:block;overflow:visible;height:auto}.flow-actions,#flow-summary{display:none}}

@media(max-width:700px){#panel[data-view="board"] .choice-grid{grid-template-columns:1fr}#panel[data-view="board"] .choice-tile{flex-direction:row;align-items:center;min-height:64px}.flow-contact .office-purpose{-webkit-line-clamp:1}}

@media(max-height:680px){.tap-flow main:has(#panel[data-view="recipients"]) #flow-summary{display:none}}

.help-video {border-top: 1px solid #c6d2cc; padding-block: .75rem}
.help-video h3 {margin: 0 0 .65rem}
.help-video-controls {display: flex; align-items: center; flex-wrap: wrap; gap: .75rem}
.help-video-controls button[hidden] {display: none}
.help-player {display: block; width: 100%; min-height: 200px; aspect-ratio: 16 / 9; margin: 0 auto .75rem; border: 0; background: #111}
.help-player.portrait {width: min(100%, max(200px, 34vh)); aspect-ratio: 9 / 16}
