:root{--text:#1a1a1a;--muted:#4a4a4a;--bg:#fff;--surface:#f4f5f7;--border:#8a8f98;--border-soft:#d5d8dd;--primary:#0b57d0;--primary-dark:#08429f;--ok:#116b2b;--ok-bg:#e5f4e9;--warn:#8a4b00;--error:#b3261e;--error-bg:#fdecea;--focus:#ffbf47;--ring:#0009;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{margin:0}.topbar{background:var(--primary);color:#fff;align-items:center;min-height:56px;padding:12px 20px;display:flex}.brand{font-size:1.2rem;font-weight:700}.page{max-width:640px;margin:0 auto;padding:16px 20px 48px}h1{margin:16px 0;font-size:1.4rem;line-height:1.25}h2{margin:24px 0 8px;font-size:1.15rem}p{margin:12px 0}.form{flex-direction:column;gap:20px;margin:16px 0 24px;display:flex}.field{flex-direction:column;gap:6px;display:flex}.field label{font-weight:600}.field [slot=description]{color:var(--muted);font-size:1rem}.field input{font:inherit;border:1px solid var(--border);width:100%;min-height:36px;color:var(--text);background:#fff;border-radius:6px;padding:6px 10px}.field input[aria-invalid=true]{border-color:var(--error)}.field .react-aria-FieldError{color:var(--error);font-weight:600}.password-row{gap:8px;display:flex}.password-row .button{flex:none}.button{font:inherit;border:1px solid var(--primary);cursor:pointer;text-align:center;border-radius:6px;justify-content:center;align-items:center;gap:8px;min-width:32px;min-height:32px;padding:4px 12px;font-weight:600;display:inline-flex}.icon{flex:none}.button.primary{background:var(--primary);color:#fff}.button.primary[data-hovered]{background:var(--primary-dark)}.button.secondary{color:var(--primary);background:#fff}.button.quiet{color:var(--primary);background:0 0;border-color:#0000}.button.quiet[data-hovered]{background:var(--surface);border-color:var(--border)}.button.icon-only{width:32px;padding:0}.tooltip{background:var(--text);color:#fff;border-radius:6px;padding:4px 8px;font-size:14px}.button[data-pending]{opacity:.7}.button[data-focus-visible],.field input:focus-visible,.link:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.link{color:var(--primary);text-underline-offset:3px;align-items:center;min-height:32px;font-weight:600;display:inline-flex}.message{border-left:6px solid;border-radius:8px;margin:16px 0;padding:14px 16px}.message.error{background:var(--error-bg);border-color:var(--error)}.message.success{background:var(--ok-bg);border-color:var(--ok)}.steps{counter-reset:step;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.step{counter-increment:step;background:var(--surface);border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.step-text:before{content:counter(step) ". ";font-weight:700}.step-state{white-space:nowrap;font-weight:600}.step.done .step-state{color:var(--ok)}.step.todo .step-state{color:var(--warn)}.welcome-done{margin-top:32px}.welcome-done summary{cursor:pointer;min-height:32px;color:var(--muted);align-items:center;font-weight:600;display:flex}.welcome-done summary:focus-visible{outline:4px solid var(--focus)}.welcome-done[open] summary{margin-bottom:8px}.cards{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.card{border:1px solid var(--border);border-radius:10px;flex-direction:column;align-items:flex-start;gap:8px;padding:16px;display:flex}.card-title{font-weight:700}.status{font-weight:600}.status.ok{color:var(--ok)}.status.warn{color:var(--warn)}.muted{color:var(--muted);font-size:1rem}.actions{flex-wrap:wrap;align-items:center;gap:8px 24px;margin-top:32px;display:flex}.react-aria-ModalOverlay{z-index:10;background:#00000080;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.dialog{background:#fff;border-radius:12px;outline:none;flex-direction:column;width:min(480px,100%);max-height:calc(100dvh - 32px);padding:24px;display:flex;overflow:auto}.dialog.wide{width:min(1600px,100%)}.dialog>.form{flex-direction:column;flex:1;min-height:0;margin-bottom:0;display:flex}.dialog-body{flex-direction:column;flex:1;gap:20px;min-height:0;margin:-4px;padding:4px;display:flex;overflow-y:auto}.dialog-buttons.sticky{border-top:1px solid var(--border);flex:none;margin-top:0;padding-top:16px}.dialog h2{margin-top:0}.dialog-buttons{flex-wrap:wrap;gap:12px;margin-top:20px;display:flex}.topbar{flex-wrap:wrap;gap:24px}.topnav{gap:8px;display:flex}.toplink{color:#fff;border-radius:8px;align-items:center;min-height:32px;padding:0 12px;font-weight:600;text-decoration:none;display:inline-flex}.toplink[aria-current=page]{text-underline-offset:4px;background:#fff3;text-decoration:underline}.toplink:focus-visible{outline:4px solid var(--focus)}.page.wide{max-width:none;padding-top:8px}.page.roomy{max-width:none;padding-left:32px;padding-right:32px}@media (width>=900px){.page.roomy .cards{grid-template-columns:repeat(auto-fill,minmax(340px,1fr));align-items:start;display:grid}}.banner{border-left:6px solid;border-radius:8px;margin:8px 0;padding:10px 16px;font-weight:600}.banner.ok{background:var(--ok-bg);border-color:var(--ok)}.banner.warn{border-color:var(--warn);background:#fff4e5}.panes{grid-template-columns:minmax(280px,380px) 1fr;gap:16px;height:calc(100vh - 170px);min-height:420px;display:grid}.pane{border:1px solid var(--border);border-radius:10px;flex-direction:column;min-height:0;display:flex;overflow:hidden}.pane-head{border-bottom:1px solid var(--border);flex:none;justify-content:space-between;align-items:center;gap:8px;padding:4px 12px 4px 0;display:flex}.pane-title{margin:0;padding:12px 16px;font-size:1.3rem}.undo{background:var(--ok-bg);border-bottom:1px solid var(--border);flex-wrap:wrap;flex:none;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px 8px 16px;font-weight:600;display:flex}.pane-empty{padding:16px}.welcome{padding:0 16px 16px;overflow-y:auto}@media (width<=760px){.panes{grid-template-columns:1fr;height:calc(100vh - 150px)}.messages[data-open=list] .conversation-pane,.messages[data-open=conversation] .list-pane{display:none}}@media (width>=761px){.back-button{display:none}}.number-filter{border-bottom:1px solid var(--border);flex:none;gap:8px;padding:8px 12px;display:flex;overflow-x:auto}.filter-button{font:inherit;border:1px solid var(--border);min-height:28px;color:var(--text);white-space:nowrap;cursor:pointer;background:#fff;border-radius:14px;align-items:center;gap:8px;padding:2px 12px;font-size:.9rem;font-weight:600;display:inline-flex}.filter-button[aria-pressed=true]{border-color:var(--text);background:var(--surface);text-underline-offset:4px;font-weight:800;text-decoration:underline}.filter-button[data-focus-visible]{outline:4px solid var(--focus);outline-offset:2px}.conv-list{outline:none;flex:1;overflow-y:auto}.conv{cursor:pointer;border-bottom:1px solid #e3e5e8;outline:none;min-height:72px;padding:12px 16px}.conv[data-hovered]{background:var(--surface)}.conv[data-focus-visible]{outline:4px solid var(--focus);outline-offset:-4px}.conv.current{background:#e8f0fe}.conv-top{justify-content:space-between;gap:8px;display:flex}.conv-name{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.conv.unread .conv-name,.conv.unread .conv-preview{font-weight:800}.conv-time{color:var(--muted);white-space:nowrap;font-size:.9rem}.conv-preview{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:1rem;overflow:hidden}.conv-meta{align-items:center;gap:8px;margin-top:4px;font-size:.85rem;display:flex}.tag{border:1px solid var(--border);border-radius:6px;padding:0 6px;font-weight:600}.line-tag{box-shadow:0 0 0 1px var(--ring);border-radius:6px;padding:0 8px;font-weight:700}.unread-count{background:var(--primary);color:#fff;border-radius:10px;padding:0 8px;font-weight:700}.conversation{flex-direction:column;height:100%;min-height:0;display:flex}.conv-header{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:12px;padding:8px 16px;display:flex}.conv-who{flex-direction:column;min-width:0;display:flex}.conv-number{font-size:1rem}.conv-actions{flex:none;gap:4px;margin-left:auto;display:flex}.conv-line{color:var(--muted);align-items:center;gap:6px;font-size:1rem;display:inline-flex}.conv-title{margin:0;font-size:1.25rem}.thread{flex-direction:column;flex:1;gap:8px;padding:12px 16px;display:flex;overflow-y:auto}.bubble{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:12px;max-width:80%;padding:8px 12px}.bubble.in{background:var(--surface);align-self:flex-start}.bubble.out{background:#e8f0fe;align-self:flex-end}.bubble.failed{border:2px solid var(--error)}.bubble .resend{background:#fff;margin-top:8px}.bubble-text{margin:0}.bubble-meta{color:var(--muted);margin-top:4px;font-size:.85rem}.inline-link{font:inherit;color:var(--primary);cursor:pointer;overflow-wrap:anywhere;text-align:left;background:0 0;border:none;padding:0;text-decoration:underline}.inline-link[data-focus-visible]{outline:3px solid var(--focus)}.link-preview{background:var(--surface);overflow-wrap:anywhere;border-radius:6px;padding:8px;font-family:ui-monospace,monospace}.reply{border-top:1px solid var(--border);flex-direction:column;gap:8px;padding:8px 16px 12px;display:flex}.reply textarea{font:inherit;border:2px solid var(--border);resize:vertical;border-radius:8px;width:100%;padding:8px 12px}.reply textarea:focus-visible{outline:4px solid var(--focus)}.reply-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.replying-from{color:var(--muted);align-items:center;gap:6px;font-size:1rem;display:inline-flex}.line-dot{width:14px;height:14px;box-shadow:0 0 0 1.5px var(--ring);border-radius:50%;flex:none;display:inline-block}.card-subtitle{margin:8px 0 0;font-size:1rem}.numbers{flex-direction:column;gap:8px;width:100%;margin:0;padding:0;list-style:none;display:flex}.number{flex-wrap:wrap;align-items:center;gap:8px 12px;display:flex}.number-text{flex:1;min-width:200px}.card-buttons{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.colours{flex-direction:column;gap:8px;display:flex}.colours>label{font-weight:600}.colour-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;display:grid}.colour-choice{border:2px solid var(--border);cursor:pointer;border-radius:8px;align-items:center;gap:8px;min-height:32px;padding:6px 10px;display:flex}.colour-choice[data-selected]{border-color:var(--text);outline:2px solid var(--text);font-weight:700}.colour-choice[data-focus-visible]{outline:4px solid var(--focus);outline-offset:2px}.colour-swatch{width:24px;height:24px;box-shadow:0 0 0 1.5px var(--ring);border-radius:50%;flex:none}.tag-label{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:0 10px;font-weight:600}.conv-tags{flex-wrap:wrap;gap:6px;padding:8px 16px 0;display:flex}.tag-choices{flex-direction:column;gap:4px;max-height:40vh;margin:8px 0 16px;display:flex;overflow-y:auto}.tag-choice{cursor:pointer;border-radius:8px;align-items:center;gap:12px;min-height:32px;padding:4px 8px;display:flex}.tag-choice[data-hovered]{background:var(--surface)}.tag-choice[data-focus-visible]{outline:4px solid var(--focus)}.checkbox-box{border:2px solid var(--text);border-radius:4px;flex:none;justify-content:center;align-items:center;width:24px;height:24px;display:inline-flex}.tag-choice[data-selected] .checkbox-box{background:var(--primary);border-color:var(--primary)}.tag-choice[data-selected] .checkbox-box:after{content:"";border:3px solid #fff;border-width:0 3px 3px 0;width:6px;height:12px;transform:rotate(45deg)translate(-1px,-1px)}.search{border:2px solid var(--border);border-radius:24px;flex:none;align-items:center;gap:8px;min-height:32px;margin:8px 12px;padding:0 4px 0 12px;display:flex}.search:focus-within{outline:4px solid var(--focus);outline-offset:1px}.search input{font:inherit;min-width:0;min-height:44px;color:var(--text);background:0 0;border:none;outline:none;flex:1;font-size:16px}.search input::-webkit-search-cancel-button{display:none}.search-clear{min-width:44px;min-height:44px;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;display:inline-flex}.search-clear[data-focus-visible]{outline:4px solid var(--focus)}.results{flex:1;padding-bottom:12px;overflow-y:auto}.results-title{color:var(--muted);margin:12px 16px 4px;font-size:1rem}.result-list{margin:0;padding:0;list-style:none}.result{font:inherit;text-align:left;cursor:pointer;width:100%;min-height:56px;color:var(--text);background:0 0;border:none;border-bottom:1px solid #e3e5e8;flex-direction:column;gap:2px;padding:10px 16px;display:flex}.result[data-hovered]{background:var(--surface)}.result[data-focus-visible]{outline:4px solid var(--focus);outline-offset:-4px}.result-text{color:var(--muted);font-size:1rem}.result-meta{gap:6px;font-size:.85rem;display:flex}mark{color:inherit;background:#ffe58a;border-radius:3px;font-weight:700}.more-results{margin:12px 16px}.bubble.found{outline:3px solid var(--text);outline-offset:2px}.quick-replies{border-top:1px solid var(--border);gap:8px;padding:8px 16px 0;display:flex;overflow-x:auto}.quick-reply{font:inherit;border:1px solid var(--primary);min-width:120px;max-width:220px;min-height:40px;color:var(--text);text-align:left;cursor:pointer;background:#fff;border-radius:6px;flex-direction:column;flex:none;justify-content:center;align-items:flex-start;padding:4px 10px;display:flex}.quick-reply[data-hovered]{background:var(--surface)}.quick-reply[data-focus-visible]{outline:4px solid var(--focus);outline-offset:2px}.quick-reply.armed{background:var(--primary);color:#fff}.quick-title{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-weight:700;overflow:hidden}.quick-hint{font-size:.85rem}.quick-body{white-space:pre-wrap;overflow-wrap:anywhere}.add-quick{margin-top:12px}.field .textarea{font:inherit;border:2px solid var(--border);resize:vertical;border-radius:8px;width:100%;padding:8px 12px}.field .textarea:focus-visible{outline:4px solid var(--focus)}.checks{border:none;margin:0;padding:0}.checks legend{padding:0;font-weight:600}.field-error{color:var(--error);font-weight:600}.auto-number{margin-bottom:24px}.auto-number .card-subtitle{align-items:center;gap:8px;display:flex}.card.off .card-title,.card.off .quick-body{color:var(--muted)}.auto-rules{margin:8px 0 0;padding-left:20px}.choices{flex-direction:column;gap:8px;margin:8px 0;display:flex}.choices>label{font-weight:600}.choice{border:2px solid var(--border);cursor:pointer;border-radius:8px;align-items:center;gap:12px;min-height:32px;padding:6px 10px;display:flex}.choice:before{content:"";border:2px solid var(--text);box-sizing:border-box;border-radius:50%;flex:none;width:20px;height:20px}.choice[data-selected]:before{border:6px solid var(--primary)}.choice[data-focus-visible]{outline:4px solid var(--focus);outline-offset:2px}.schedule{border-left:3px solid var(--border);margin:0 0 8px 16px;padding-left:12px}.checks.days{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));display:grid}.checks.days legend{grid-column:1/-1}.times{flex-wrap:wrap;align-items:flex-end;gap:0 16px;display:flex}.times .muted,.times .field-error{flex-basis:100%}.switch{cursor:pointer;align-items:center;gap:12px;min-height:32px;font-weight:600;display:inline-flex}.switch-track{border:2px solid var(--text);background:var(--bg);border-radius:14px;flex:none;width:48px;height:28px;position:relative}.switch-track:after{content:"";background:var(--text);border-radius:50%;width:18px;height:18px;transition:left .15s;position:absolute;top:3px;left:3px}.switch[data-selected] .switch-track{background:var(--primary);border-color:var(--primary)}.switch[data-selected] .switch-track:after{background:#fff;left:23px}.switch[data-focus-visible] .switch-track{outline:4px solid var(--focus);outline-offset:2px}.bubble-auto{font-size:.85rem;font-weight:600}.form-columns{gap:20px 40px;display:grid}.form-column{flex-direction:column;gap:20px;min-width:0;display:flex}@media (width>=860px){.form-columns{grid-template-columns:1fr 1fr}}.choices.row{flex-flow:wrap}.choices.row>label{flex-basis:100%}.choices.row .choice{flex:200px}.tag-rows{grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:4px 24px;margin:0 0 12px;padding:0;list-style:none;display:grid}.tag-row{flex-wrap:wrap;align-items:center;gap:4px 12px;min-height:32px;display:flex}.tag-row-buttons{gap:8px;margin-left:auto;display:inline-flex}.new-tag{flex-wrap:wrap;align-items:flex-end;gap:8px 12px;display:flex}.new-tag .field{flex:0 360px}.tag-list .form{margin:0}.list-header{justify-content:space-between;align-items:center;gap:12px;margin:24px 0 8px;display:flex}.list-header h2,.list-header h3{margin:0}.item-list{border:1px solid var(--border-soft);border-radius:8px;margin:0;padding:0;list-style:none}.item{border-top:1px solid var(--border-soft);padding:8px 12px}.item:first-child{border-top:none}.item-main{align-items:center;gap:12px;min-height:32px;display:flex}.item-text{flex:1;min-width:0}.item-title{font-weight:600}.item-sub{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;overflow:hidden}.item-actions{flex-wrap:wrap;gap:4px 8px;padding:8px 0 4px;display:flex}.item-actions .danger{color:var(--error)}.account{grid-template-columns:220px minmax(0,1fr);align-items:start;gap:32px;display:grid}.side-menu ul{margin:0;padding:0;list-style:none;position:sticky;top:16px}.side-menu a{color:var(--text);border-radius:6px;padding:6px 12px;text-decoration:none;display:block}.side-menu a:hover{background:var(--surface)}.side-menu a[aria-current=page]{background:var(--surface);box-shadow:inset 3px 0 0 var(--primary);font-weight:700}.side-menu a:focus-visible{outline:3px solid var(--focus)}.account-body>section:first-of-type>h2,.account-body>section:first-of-type>.list-header{margin-top:0}@media (width<=760px){.account{grid-template-columns:1fr;gap:8px}.side-menu ul{flex-wrap:wrap;gap:4px;display:flex;position:static}}.phone-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));align-items:start;gap:16px;display:grid}.item.sub-item{padding-left:28px}.item-order{color:var(--muted);min-width:1.2em;font-weight:700}.item-body{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text);margin-top:4px;font-size:.95rem}.item.off .item-title,.item.off .item-body{color:var(--muted)}.choose-row{flex-wrap:wrap;align-items:center;gap:8px 16px;display:flex}.choose-row p{margin:0}.add-panel{align-items:flex-end;gap:8px;margin-bottom:12px;display:flex}.link-list{margin:8px 0 16px;padding:0;list-style:none}.choice{border:1px solid #0000;border-radius:6px;gap:8px;min-height:32px;padding:2px 8px}.choice:before{width:16px;height:16px}.choice[data-selected]{border-color:#0000;font-weight:600}.choice[data-selected]:before{border-width:5px}.choice[data-hovered]{background:var(--surface)}.tag-choice{gap:8px;min-height:28px;padding:2px 4px}.checkbox-box{width:18px;height:18px}.tag-choice[data-selected] .checkbox-box:after{border-width:0 2px 2px 0;width:5px;height:10px}.colour-choice{border-width:1px;min-height:32px;padding:2px 8px}.switch{white-space:nowrap;gap:8px;min-height:28px;font-size:.9rem;font-weight:500}.switch-track{border-radius:10px;width:36px;height:20px}.switch-track:after{width:12px;height:12px;top:2px;left:2px}.switch[data-selected] .switch-track:after{left:18px}.welcome-done summary{min-height:28px}
