:root{--ink:#173446;--muted:#536b7a;--primary:#105d71;--primary-hover:#084b5e;--navy:#0a2f3f;--bg:#f4f7fa;--card:#fff;--line:#dce5ec;--soft:#eaf4f5;--danger:#aa2537;--radius:16px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.6rem,2.3vw,2.15rem);letter-spacing:-.045em;line-height:1.2}h2{font-size:1.12rem;letter-spacing:-.025em;line-height:1.45}p{line-height:1.65}strong{font-weight:650}a{color:var(--primary)}:focus-visible{outline:3px solid #137e9a;outline-offset:4px}input:focus,select:focus{outline:3px solid #137e9a;outline-offset:1px;border-color:transparent}[hidden]{display:none!important}.muted{color:var(--muted)}.small{font-size:.8rem}.grow{flex:1}.eyebrow{font-size:.67rem;font-weight:750;letter-spacing:.15em;color:var(--primary);margin-bottom:10px}.wide{width:100%}.initial{min-height:90vh;display:flex;align-items:center;justify-content:center;gap:18px}.brand-mark{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;background:#d9efec;color:#104d5c;font-size:2.1rem;font-weight:800;line-height:1;letter-spacing:-.15em;padding-right:5px}
.skip-link{position:fixed;top:-80px;left:16px;z-index:100;background:white;padding:12px 20px;border:2px solid var(--primary);border-radius:10px}.skip-link:focus{top:12px}.button{min-height:42px;padding:10px 17px;border:1px solid transparent;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:.8rem;font-weight:650;line-height:1.4;text-align:center;transition:background .15s,border-color .15s,color .15s}.button.primary{background:var(--primary);color:white;box-shadow:0 3px 7px #103c4e12}.button.primary:hover{background:var(--primary-hover)}.button.secondary{background:white;border-color:var(--line);color:var(--ink)}.button.secondary:hover{background:#f0f5f7;border-color:#b1c8d2}.button.ghost{background:transparent;color:var(--primary);padding:9px 11px}.button.ghost:hover{background:var(--soft)}.button.danger{color:var(--danger)}.button.danger:hover{background:#fff0f2}.row-actions,.card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.card-actions{margin-top:auto;padding-top:24px}
.app-shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--navy);color:#e8f3f6;padding:30px 20px;display:flex;flex-direction:column}.sidebar-brand{display:flex;align-items:center;gap:11px;padding:0 9px 38px}.sidebar-brand strong,.login-brand strong{font-size:1.8rem;letter-spacing:-.065em;color:white}.sidebar-caption{color:#abc5d0;font-size:.59rem;font-weight:700;letter-spacing:.18em;padding:0 14px 16px}.navigation{display:flex;flex-direction:column;gap:6px}.button.nav-item{width:100%;justify-content:flex-start;background:transparent;color:#c0d6df;padding:13px 16px;min-height:46px;font-size:.82rem}.button.nav-item:hover{background:#173f50;color:white}.button.nav-item[aria-current=page]{background:#1a5262;color:white;box-shadow:inset 3px 0 #9ce1d6}.sidebar-bottom{margin-top:auto;border-top:1px solid #315364;padding:22px 12px 0;font-size:.72rem;color:#b8d0d9}.sidebar-bottom>span{vertical-align:middle}.sidebar-bottom p{padding-top:12px;max-width:160px;color:#a8c1cd;line-height:1.6}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#8ad6bc;margin-right:8px}.app-main{min-width:0}.topbar{min-height:86px;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 40px;background:white;border-bottom:1px solid var(--line)}.topbar strong{font-size:.82rem}.topbar .small{font-size:.7rem;margin-top:3px}.topbar-actions{display:flex;align-items:center;gap:8px}.content{padding:38px 40px 56px;max-width:1500px;margin:0 auto;outline:none}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 30px}.page-heading .muted{font-size:.84rem;margin-top:12px;max-width:690px}.page-heading>.button{flex-shrink:0}.loading{padding:40px;color:var(--muted)}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:26px}.metric{border:1px solid var(--line);border-radius:var(--radius);background:white;padding:23px 25px}.metric-value{display:block;font-size:2.5rem;letter-spacing:-.07em;padding:10px 0 7px;color:var(--primary);font-weight:650}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);gap:24px;align-items:start}.section-panel{border:1px solid var(--line);background:white;border-radius:var(--radius);padding:25px 28px;margin-bottom:24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.section-panel>.muted{font-size:.8rem;margin-bottom:12px}.list-row{padding:18px 0;border-top:1px solid #e7edf1;display:flex;align-items:center;justify-content:space-between;gap:16px}.list-row p{font-size:.8rem}.list-row strong{font-size:.86rem}.list-row .badge{margin-left:12px}.step-number{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:var(--soft);color:var(--primary);border-radius:50%;flex-shrink:0;font-size:.8rem;font-weight:700}.badge{display:inline-flex;padding:5px 9px;border-radius:6px;font-size:.63rem;font-weight:700;line-height:1.3;white-space:nowrap}.badge.active{background:#e6f4ed;color:#216347}.badge.inactive{background:#edf0f3;color:#526472}.assistant-card{background:#e9f1f1;border:1px solid #d2e4e5;border-radius:var(--radius);padding:28px;color:#23495b}.assistant-orb{display:flex;align-items:center;justify-content:center;width:66px;height:66px;font-size:3rem;letter-spacing:-.12em;font-weight:750;background:#c7e4df;color:var(--primary);border-radius:22px;margin-bottom:24px;padding-right:6px}.assistant-card h2{font-size:1.6rem;letter-spacing:-.06em;margin-bottom:14px}.assistant-card p{font-size:.82rem}.assistant-rules{padding-left:18px;font-size:.76rem;line-height:1.8;margin:22px 0}.assistant-rules li{margin:8px 0}.phone-note{border-top:1px solid #c9dce0;padding:20px 0;font-size:.68rem}.phone-note strong{display:block;font-size:1.08rem;letter-spacing:-.025em;margin-top:8px}
.resource-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:22px;margin-bottom:28px}.resource-card{padding:25px;border:1px solid var(--line);border-radius:var(--radius);background:white;display:flex;flex-direction:column;align-items:flex-start;min-height:244px}.resource-top{display:flex;justify-content:space-between;align-items:center;width:100%;margin-bottom:24px}.resource-monogram{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;background:var(--soft);color:var(--primary);font-size:1.2rem;font-weight:600}.resource-card h2{margin-bottom:8px}.resource-card .muted{font-size:.8rem}.resource-card>.button{margin-top:auto}.resource-card .small{margin:4px 0 20px}.empty-state{background:white;border:1px dashed #b9cbd6;border-radius:var(--radius);padding:60px 28px;text-align:center;min-height:310px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px}.empty-symbol{width:50px;height:50px;border-radius:16px;background:var(--soft);color:var(--primary);font-size:1.8rem;line-height:50px;margin-bottom:4px}.empty-state p{font-size:.86rem;max-width:510px}.empty-state .button{margin-top:5px}.info-panel{background:#e9f1f5;border:1px solid #d6e4eb;border-radius:var(--radius);padding:25px;max-width:850px}.info-panel p{font-size:.84rem;margin-top:10px}.notice{background:#f4f8f9;border-left:3px solid #35788b;border-radius:5px;padding:13px 16px;font-size:.8rem;line-height:1.7}.section-panel .notice{margin-top:12px}.filters{display:flex;align-items:flex-end;gap:16px;padding:22px;background:white;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:25px}.filters .field{flex:1;min-width:0}.filters .button{min-height:44px}
.field{display:flex;flex-direction:column;gap:8px}.field label{font-size:.75rem;font-weight:650}.field input,.field select,.topbar>select{width:100%;min-height:45px;background:white;border:1px solid #c6d4df;border-radius:8px;color:var(--ink);padding:11px 12px;font-size:.84rem;min-width:0}.field input:disabled{background:#f0f4f6}.field-hint{font-size:.73rem!important;color:var(--muted);line-height:1.7!important}.form-stack{display:flex;flex-direction:column;gap:21px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-error{color:#9e2636;background:#fff0f2;border-radius:7px;padding:13px;font-size:.8rem}.dialog{width:min(570px,calc(100vw - 32px));border:1px solid var(--line);border-radius:19px;padding:30px;color:var(--ink);max-height:calc(100dvh - 48px);overflow:auto;box-shadow:0 30px 100px #09253533}.dialog::backdrop{background:#08273785;backdrop-filter:blur(3px)}.dialog h2{font-size:1.45rem;letter-spacing:-.04em}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;border-top:1px solid var(--line);padding-top:20px;margin-top:5px}.checklist{padding:16px;border:1px solid var(--line);border-radius:10px;margin:0}.checklist legend{font-size:.78rem;font-weight:650;padding:0 5px}.check-row{display:flex;align-items:center;gap:11px;font-size:.84rem;min-height:40px}.check-row input{width:18px;height:18px;accent-color:var(--primary)}.notification{position:fixed;bottom:24px;right:24px;z-index:20;background:#153f4d;color:white;border-radius:12px;box-shadow:0 8px 40px #16344522;padding:17px 22px;font-size:.83rem;max-width:min(490px,calc(100vw - 36px));line-height:1.6}.notification.error{background:#912436}
.table-panel{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:auto}table{width:100%;border-collapse:collapse;min-width:860px;text-align:left}th{padding:17px 20px;background:#f8fafb;border-bottom:1px solid var(--line);font-size:.65rem;color:var(--muted);letter-spacing:.07em;text-transform:uppercase}td{padding:20px;border-bottom:1px solid #e8edf1;vertical-align:top;font-size:.79rem;line-height:1.6}tbody tr:last-child td{border-bottom:0}td strong{font-size:.83rem}td .row-actions{max-width:190px;gap:0}td .row-actions .button{font-size:.69rem;padding:8px;min-height:36px}.reference{display:block;font-family:ui-monospace,monospace;font-size:.59rem;color:var(--muted);margin-top:7px}.pagination{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:20px}.account-panel{max-width:640px;text-align:center;padding:40px}.avatar{display:flex;align-items:center;justify-content:center;background:var(--soft);color:var(--primary);border-radius:50%;font-weight:700}.avatar.large{width:72px;height:72px;font-size:2rem;margin:0 auto 20px}.account-panel .button{margin:25px 0}.account-panel .field-hint{max-width:430px;margin:auto}
.login-layout{min-height:100dvh;display:grid;grid-template-columns:1.05fr 1fr;background:white}.login-story{background:var(--navy);color:white;padding:clamp(30px,5vw,80px);display:flex;flex-direction:column;position:relative;overflow:hidden}.login-story::after{content:"";position:absolute;width:420px;height:420px;border:1px solid #7db1b82e;border-radius:50%;bottom:-200px;right:-150px;box-shadow:0 0 0 65px #7db1b80d,0 0 0 130px #7db1b809;pointer-events:none}.login-brand{display:flex;align-items:center;gap:12px}.login-copy{margin:auto 0;padding:70px 0;position:relative;z-index:1}.login-copy .eyebrow{color:#abd7d3;margin-bottom:25px}.login-copy h1{font-size:clamp(2.9rem,4.8vw,5rem);font-weight:550;letter-spacing:-.075em;line-height:1.12;margin-bottom:28px}.login-copy>p:last-child{font-size:1rem;line-height:1.9;max-width:370px;color:#bfd5df}.login-footer{font-size:.75rem;color:#bfd5df;position:relative;z-index:1}.login-form-panel{display:flex;align-items:center;justify-content:center;padding:48px 36px}.login-form-wrap{width:100%;max-width:380px}.login-form-wrap h2{font-size:1.9rem;font-weight:600;letter-spacing:-.06em;margin-bottom:14px}.login-form-wrap>.muted{font-size:.85rem;margin-bottom:35px}.login-form-wrap .form-stack{gap:23px}.login-form-wrap>.field-hint{margin-top:28px}.login-form-wrap>.notice{margin:20px 0}
@media(min-width:1600px){.content{padding-top:48px}.topbar{padding-left:48px;padding-right:48px}.app-shell{grid-template-columns:250px minmax(0,1fr)}}
@media(max-width:1100px){.app-shell{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding:26px 14px}.content{padding:30px 25px}.topbar{padding:18px 25px}.dashboard-grid{grid-template-columns:1fr}.assistant-card{display:none}.metrics{gap:12px}.metric{padding:18px}.page-heading{align-items:flex-start}.page-heading>.button{max-width:185px}.section-panel{padding:22px}}
@media(max-width:740px){.app-shell{display:block}.sidebar{height:auto;position:static;padding:18px 16px}.sidebar-brand{padding:0 0 18px}.sidebar-brand .brand-mark{width:32px;height:32px;font-size:1.6rem;border-radius:10px}.sidebar-brand strong{font-size:1.45rem}.sidebar-caption,.sidebar-bottom{display:none}.navigation{flex-direction:row;overflow:auto;gap:6px;padding-bottom:3px}.button.nav-item{width:auto;flex-shrink:0;justify-content:center;padding:10px 14px;min-height:42px}.button.nav-item[aria-current=page]{box-shadow:none}.topbar{padding:16px 18px;align-items:flex-start}.topbar-actions{gap:0}.topbar-actions>.button{font-size:.7rem;padding:7px}.topbar strong{font-size:.72rem}.topbar .small{font-size:.64rem;max-width:180px}.content{padding:26px 18px 50px}.page-heading{flex-direction:column;gap:18px;margin-bottom:24px}.page-heading>.button{max-width:none}.page-heading .muted{font-size:.8rem}.metrics{grid-template-columns:1fr;gap:12px}.metric{display:grid;grid-template-columns:1fr auto;align-items:center;padding:18px 22px}.metric-value{grid-column:2;grid-row:1/3;font-size:2.1rem;margin-left:15px}.metric>p:last-child{margin-top:5px}.section-panel{padding:20px}.section-heading{align-items:flex-start;flex-wrap:wrap}.list-row{gap:12px;flex-wrap:wrap}.list-row>.row-actions{width:100%;justify-content:flex-end}.list-row .badge{margin-left:0}.list-row>.button{margin-left:auto}.step-number{width:28px;height:28px}.resource-grid{grid-template-columns:1fr}.resource-card{min-height:225px}.filters{flex-wrap:wrap;padding:18px;gap:16px}.filters .field{min-width:calc(50% - 16px)}.filters>.button{width:100%}.form-grid{grid-template-columns:1fr}.dialog{padding:24px 20px}.dialog-actions .button{flex:1}.pagination{align-items:flex-start;flex-direction:column}.login-layout{grid-template-columns:1fr}.login-story{padding:26px 28px;min-height:230px}.login-brand .brand-mark{width:34px;height:34px;font-size:1.7rem}.login-brand strong{font-size:1.5rem}.login-copy{padding:28px 0 0;margin:0}.login-copy .eyebrow{margin-bottom:12px;font-size:.57rem}.login-copy h1{font-size:2.5rem;margin-bottom:10px}.login-copy h1 br{display:none}.login-copy>p:last-child,.login-footer{display:none}.login-form-panel{padding:35px 26px 48px}.login-form-wrap h2{font-size:1.7rem}.notification{bottom:18px;right:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.conversation-filters{flex-wrap:wrap}.conversation-filters .field{flex:1 1 180px}.transcript{max-width:960px}.transcript h3{font-size:.95rem;margin:20px 0 12px}.conversation-turn{padding:16px 18px;margin:12px 0;border:1px solid var(--line);border-radius:12px;background:var(--bg);overflow-wrap:anywhere}.conversation-turn.agent{background:var(--soft)}.conversation-turn p,.conversation-summary{white-space:pre-wrap;overflow-wrap:anywhere}.conversation-turn strong{font-size:.85rem}.topbar>select{max-width:280px}.resource-card h2,.list-row strong,.workspace-name{overflow-wrap:anywhere}fieldset.form-stack{border:1px solid var(--line);border-radius:10px;padding:16px;min-width:0}fieldset.form-stack legend{font-size:.85rem}form.filters{flex-wrap:wrap}@media(max-width:740px){.topbar{flex-wrap:wrap}.topbar>select{max-width:100%;flex-basis:100%}.conversation-filters .field{min-width:100%}}
.channel-form{max-width:900px;margin-top:20px}.channel-form textarea{font:inherit;width:100%;min-height:90px;resize:vertical;border:1px solid var(--line);border-radius:8px;padding:12px;color:var(--ink);background:var(--card)}.channel-form textarea:focus{outline:3px solid #137e9a;outline-offset:1px}.channel-form .check-row{overflow-wrap:anywhere}.channel-form .field-hint{margin:0}.channel-form label{line-height:1.5}
.channel-qr>p{margin:16px 0}.channel-qr-picture{display:flex;justify-content:center}.channel-qr canvas{max-width:100%;height:auto;image-rendering:pixelated}
.channel-activity-metrics{min-width:0}.channel-activity-metrics .reference{max-width:100%;overflow-wrap:anywhere}.channel-activity-metrics .resource-grid{width:100%;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}.channel-activity-metrics .resource-grid>div,.channel-activity-metrics .resource-card{min-width:0}.channel-activity-metrics dd{overflow-wrap:anywhere}
.channel-history{min-width:0}.channel-history>.notice{margin-bottom:20px}.channel-inbox-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:18px}.channel-episode{margin:0;min-width:0}.channel-history .reference,.channel-history p,.channel-history strong,.channel-history h2{overflow-wrap:anywhere}.channel-episode>.button{margin-top:18px}.channel-history>.row-actions{margin-bottom:20px}.channel-history [aria-pressed=true]{background:var(--primary);color:white}.channel-message{padding:20px 0;border-bottom:1px solid var(--line);min-width:0}.channel-message-ai{border-left:3px solid var(--primary);padding-left:16px}.channel-message .section-heading{margin-bottom:8px;flex-wrap:wrap}.channel-message .badge{white-space:normal}.channel-message-content{margin-top:14px}.channel-message-content h3{font-size:.85rem;margin-top:16px}.channel-message-text{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;background:var(--bg);border-radius:8px;margin:8px 0}.channel-history-page>.pagination{flex-wrap:wrap}.channel-history-page{min-width:0}.channel-history-page>[aria-busy=true]{opacity:.7}
