/* Approved main-page design. Scoped to the signed-in address book. */
@font-face{font-family:'DM Serif Display';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/dm-serif-display-latin-400-normal.woff2')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/dm-sans-latin-400-normal.woff2')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/dm-sans-latin-600-normal.woff2')}
body.book-view{--ink:#263e36;--muted:#5d7067;--dark:#246d5b;--line:#d5e1da;--tint:#f3f7f4;background:white;font:16px/1.5 'DM Sans',sans-serif}
.book-view>header{position:relative;max-width:1092px;height:auto;min-height:0;margin:32px auto 0;padding:0 2px 28px;gap:16px;flex-wrap:wrap}
.book-view .brand{font:400 38px/1.12 'DM Serif Display',serif;letter-spacing:-.6px;color:#246d5b}
.book-view .brand span{color:#348d77}.book-view .brand small{font:400 10px/1.4 'DM Sans',sans-serif;letter-spacing:2.3px;margin:10px 0 0;color:var(--muted)}
.book-view #header-actions{margin-left:auto}.book-view .cloud-status{flex-basis:100%;font-size:14px;text-align:right;margin:0}.book-view .cloud-status:empty{display:none}
.book-view>main{max-width:1140px;margin:auto;padding:32px 24px}
.book-view button,.book-view input,.book-view select{font-family:'DM Sans',sans-serif}.book-view button{min-height:44px;line-height:1.5;border-radius:6px;color:var(--dark);font-size:14px}.book-view button.primary{color:white;background:var(--dark)}
.book-view .quiet{border:0;background:none;padding:0;text-decoration:underline;text-underline-offset:4px;font-size:14px;font-weight:400;border-radius:0}
.book-view .menu{font-size:14px}.book-view .menu>summary{color:var(--dark);display:flex;align-items:center;gap:8px;min-height:44px;list-style:none;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}.book-view .menu>summary::-webkit-details-marker{display:none}.book-view .menu>summary:after{content:'';width:6px;height:6px;border-bottom:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg);margin:0 4px 4px}
.book-view .menu[open]>div{top:100%;right:0;padding:6px;border-radius:6px;min-width:205px;z-index:20}.book-view .menu .quiet{display:block;width:100%;padding:10px 12px;margin:0;text-align:left;text-decoration:none;white-space:normal}.book-view .menu .quiet:hover{background:var(--tint)}.book-view .menu .danger{color:#9f3b4c}
.book-view .book-heading{align-items:center;margin-bottom:8px;gap:24px}.book-view .book-heading h1{font:400 36px/1.15 'DM Serif Display',serif;letter-spacing:-.02em}.book-view .book-heading .subtitle{font:400 14px/1.5 'DM Sans',sans-serif;margin:8px 0 0}.book-view .book-heading .subtitle p{margin:0}
.book-view .phone-tools{padding:16px 0;border-bottom:1px solid var(--line);margin-bottom:20px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px}.book-view .phone-tools h3{font-size:16px;font-weight:600;margin:0}.book-view .phone-tools-actions{display:flex;gap:16px;flex-wrap:wrap}.book-view .phone-tools p{flex-basis:100%;font-size:14px;color:var(--muted);margin:4px 0 0}.book-view strong{font-weight:600}
.book-view .messaging-actions{display:flex;gap:12px;margin-bottom:24px}.book-view .messaging-actions button{font-size:16px;padding:12px 18px;border-color:#b9cec1;font-weight:600;min-height:48px}
.book-view .find-row{display:grid;grid-template-columns:minmax(260px,440px) max-content;align-items:center;gap:12px;justify-content:start}.book-view .search{width:100%;font-size:16px;padding:12px;border-color:#bdcec3;min-height:48px;order:initial}
.book-view .filter-row{display:flex;align-items:flex-start;gap:24px;flex-wrap:wrap;margin-top:12px}.book-view .tabs{display:flex;flex-wrap:wrap;gap:4px}.book-view .tabs button{font-size:14px;padding:8px 10px;border:1px solid transparent;border-radius:5px;min-height:40px;color:var(--muted);background:none;font-weight:400}.book-view .tabs button.selected{background:var(--tint);border-color:var(--line);color:var(--dark);font-weight:600}
.book-view .since-control{font-size:14px;position:relative}.book-view .since-control summary{color:var(--dark);min-height:40px;align-content:center;text-decoration:underline;text-underline-offset:4px;cursor:pointer}.book-view .since-options{position:absolute;left:0;top:100%;z-index:3;width:310px;background:white;border:1px solid var(--line);padding:16px;border-radius:6px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.book-view .since-field{font-size:14px}.book-view .since-field input{font:inherit;min-height:44px;padding:8px}
.book-view .list-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-height:44px;margin:4px 0 8px;font-size:14px;color:var(--muted)}.book-view .response-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.book-view #response-summary:not(:empty){width:100%}.book-view .refresh-responses{display:inline-flex;align-items:center;gap:6px;text-decoration:none}.book-view .refresh-icon{width:16px;height:16px}
.book-view .list{border:0;background:none;display:grid;gap:12px}.book-view .household,.book-view .household:last-child{border:1px solid var(--line);border-radius:8px;background:white;padding:20px 24px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 32px}.book-view .household.address-confirmed{background:#edf6ef;border-color:#b5d2bf}
.book-view .household-name{font:600 20px/1.3 'DM Sans',sans-serif;letter-spacing:0;margin:0 0 4px}.book-view .envelope-name{font-size:14px;margin:0 0 6px}.book-view .address-line{font-size:16px;line-height:1.5;color:var(--ink);margin:0}.book-view .confirmation-line{gap:4px 12px;margin:8px 0 0}.book-view .address-confirm-label{color:var(--ink);font-size:14px;gap:10px;min-height:44px;margin:0}.book-view .address-confirm-label input{margin:0;accent-color:var(--dark)}.book-view .confirmation-detail{font-size:14px;line-height:1.5}.book-view .awaiting-badge{font-size:14px;border-radius:4px;padding:4px 8px}
.book-view .combo{font-size:16px;min-height:48px;padding:12px 84px 12px 12px;border-color:#bdcec3}.book-view .picker-toggle{height:46px}.book-view .combo-wrap>input.phone-check{accent-color:var(--dark)}.book-view .helper-picker .combo{padding-right:40px}.book-view .hint{font-size:14px;min-height:36px;margin:0;gap:12px}.book-view .hint .quiet{font-size:14px;min-height:36px}
.book-view .helper-section{margin:0;font-size:14px}.book-view .helper-section>summary{font-size:14px;color:var(--dark);min-height:36px;align-content:center;text-decoration:underline;text-underline-offset:4px;padding:0}.book-view .helper-section>summary:before{content:'▸';margin-right:6px}.book-view .helper-section[open]>summary:before{content:'▾'}.book-view .helper-grid,.book-view .address-confirmed .helper-grid{background:none;border:0;border-left:2px solid var(--line);border-radius:0;padding:4px 0 4px 12px;margin:4px 0 12px;grid-template-columns:1fr auto}.book-view .helper-title,.book-view .send-mode{font-size:14px}.book-view .helper-message-name input{font-size:16px}.book-view .helper-message-name small{font-size:14px}
.book-view .message-row-actions{display:flex;align-items:center;gap:4px 24px;flex-wrap:wrap;margin:0;padding:0}.book-view .message-row-actions .quiet{min-height:44px;text-align:left}.book-view [data-message-one]{font-weight:600}.book-view .edit-panel{margin-top:12px}.book-view .edit-panel .actions button{padding:10px 16px}.book-view .saved-note{font-size:14px}
.book-view #phone-review{background:var(--tint);border-left:3px solid var(--dark);padding:16px;margin-top:4px}.book-view .review-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.book-view .review-heading h3{font:600 20px/1.4 'DM Sans',sans-serif;margin:0}.book-view .review-heading p{font-size:14px;color:var(--muted);margin:4px 0 0}.book-view #phone-review .tabs{margin-top:12px}.book-view .auto-approval-control{display:flex;align-items:center;gap:4px;margin-top:8px;font-size:14px}.book-view .auto-approval-control label{display:flex;align-items:center;gap:10px;font-weight:600;min-height:44px;cursor:pointer}.book-view .auto-approval-control input{width:20px;height:20px;flex-shrink:0;margin:0;accent-color:var(--dark)}.book-view .info-button{width:44px;min-height:44px;padding:0;flex-shrink:0;display:grid;place-items:center;border:0;background:none}.book-view .info-button svg{width:18px;height:18px}.book-view #phone-approval-info{font-size:14px;line-height:1.6;color:var(--muted);background:white;border:1px solid var(--line);border-radius:6px;padding:12px 14px;max-width:460px;margin:8px 0 0}
/* The phone-import dialog is part of the approved main-page flow. */
.book-view #contact-import-dialog{font-family:'DM Sans',sans-serif;line-height:1.5;padding:24px;max-width:620px}.book-view #contact-import-dialog h2{font:400 28px/1.2 'DM Serif Display',serif;letter-spacing:0}.book-view #contact-import-dialog h3{font:600 16px/1.5 'DM Sans',sans-serif;margin:0 0 12px}.book-view #contact-import-dialog p{font:400 16px/1.5 'DM Sans',sans-serif;margin:0 0 16px;color:var(--muted)}.book-view #contact-import-dialog .head-row{margin-bottom:12px;flex-direction:row}.book-view #contact-import-dialog button,.book-view #contact-import-dialog .button-link{font-family:'DM Sans',sans-serif;font-size:16px;font-weight:600}.book-view #contact-import-dialog [data-close-import]{font-size:14px;font-weight:400}.book-view #contact-import-dialog .contact-import-option{margin-top:24px}.book-view #contact-import-dialog .contact-import-phone{margin-top:24px;padding-top:24px}.book-view #contact-import-dialog .privacy-note{font-size:14px;margin:8px 0 0}.book-view #contact-import-dialog .export-help{margin-top:16px}.book-view #contact-import-dialog .export-help summary{font-size:14px;min-height:44px;align-content:center}.book-view #contact-import-dialog .contact-import-option>.primary{padding:12px 18px}.book-view #contact-import-dialog .phone-upload-note,.book-view #contact-import-dialog .phone-upload-waiting{font-size:14px}
@media(max-width:899px){.book-view>header{margin:24px 16px 0;padding:0 2px 24px}.book-view .brand{font-size:29px;letter-spacing:-.4px}.book-view .brand small{font-size:9px;letter-spacing:2px;margin-top:8px}.book-view>main{padding:24px 16px}.book-view .book-heading{align-items:flex-start;flex-direction:column;gap:16px}.book-view .book-heading h1{font-size:32px}.book-view .book-menu[open]>div{left:0;right:auto}.book-view .phone-tools{display:grid;gap:4px}.book-view .phone-tools-actions{gap:12px}.book-view .phone-tools p{margin-top:4px}.book-view .messaging-actions{display:grid;gap:8px}.book-view .messaging-actions button{width:100%}.book-view .find-row{grid-template-columns:minmax(0,1fr) auto;gap:12px}.book-view .find-row .quiet{white-space:nowrap}.book-view .filter-row{display:block}.book-view .tabs{justify-content:flex-start;width:auto;gap:4px}.book-view .since-control{margin-top:4px}.book-view .since-options{position:static;width:auto;border:0;padding:8px 0 12px}.book-view .household,.book-view .household:last-child{grid-template-columns:minmax(0,1fr);gap:12px;padding:16px}.book-view .household>div:first-child{margin-bottom:0}.book-view .household>.contact-cell{grid-column:1}.book-view .message-row-actions{gap:4px 16px}.book-view .helper-grid{grid-template-columns:1fr auto}.book-view .refresh-icon{display:none}.book-view .refresh-responses{text-decoration:underline}.book-view .review-heading h3{font-size:18px}.book-view #contact-import-dialog h2{font-size:26px}.book-view #contact-import-dialog .contact-import-option>button{width:100%}}
@media(min-width:900px) and (max-width:1140px){.book-view>header{margin-left:24px;margin-right:24px}}
.book-view #contact-import-dialog .button-link{background:white;border:1px solid #b9cec1;color:var(--dark);border-radius:6px;min-height:48px;text-align:center}.book-view #contact-import-dialog .upload-copy{min-width:48px;height:48px;padding:12px;display:grid;place-items:center}.book-view .upload-copy svg{width:20px;height:20px}

.book-view #response-summary:empty{display:none}
