@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');
:root{--p:#6c5ce7;--ps:#f0edff;--ink:#202330;--muted:#7b8190;--line:#e8eaf0;--bg:#f7f8fb;--danger:#ef5d74;--orange:#f6a842;--green:#2fb67c;--shadow:0 8px 24px rgba(31,34,52,.055)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px "Be Vietnam Pro",sans-serif}button,input,select,textarea{font:inherit}.sidebar{position:fixed;z-index:20;inset:0 auto 0 0;width:256px;padding:18px 14px;background:#151726;color:#fff;display:flex;flex-direction:column}.brand{height:52px;padding:0 8px;display:flex;align-items:center;gap:11px}.brand-mark{display:grid;place-items:center;color:#fff;background:linear-gradient(140deg,#8b7cf6,#6251dc);font-weight:700}.brand-mark{width:36px;height:36px;border-radius:10px;font-size:23px}.brand strong{font-size:18px;display:block}.brand small{font-size:10px;color:#85899b}.collapse{margin-left:auto;border:0;background:#242738;color:#9296a8;width:25px;height:25px;border-radius:7px}.workspace{display:flex;align-items:center;gap:10px;margin:17px 0 16px;padding:10px;border:1px solid #2b2e40;border-radius:10px;background:#1b1e2e}.workspace-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:linear-gradient(145deg,#f28267,#d2588d);font-size:11px;font-weight:700}.workspace div{flex:1}.workspace small{display:block;font-size:8px;color:#73788f;letter-spacing:.8px}.workspace strong{font-size:12px}.nav-label{padding:0 11px;margin:13px 0 7px;color:#62677d;font-size:9px;letter-spacing:1.2px;font-weight:700}.nav-space{margin-top:24px}.nav{width:100%;display:flex;align-items:center;gap:12px;border:0;background:transparent;color:#aeb2c2;padding:11px 12px;border-radius:8px;cursor:pointer;text-align:left}.nav-icon{display:block;flex:0 0 20px;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav span{flex:1}.nav b{font-size:10px;background:#2b2e40;padding:3px 7px;border-radius:9px}.nav:hover,.nav.active{color:#fff;background:#292b42}.nav.active:before{content:"";position:absolute;left:14px;width:3px;height:22px;border-radius:3px;background:#8b7cf6}.integration-row{display:flex;align-items:center;gap:10px;padding:8px 11px;color:#aeb2c2}.integration-row>span:nth-child(2){flex:1}.integration-row small{font-size:10px;color:#666b80}.app-icon{width:23px;height:23px;border-radius:6px;display:grid;place-items:center;color:#fff;font-size:10px;font-weight:700}.sea{background:#16a8e8}.goog{background:#ef5a55}.sidebar-bottom{margin-top:auto}.help{width:100%;border:0;background:transparent;color:#8f93a5;text-align:left;padding:10px}.user{margin-top:9px;border-top:1px solid #2a2c3b;padding:16px 5px 0;display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;flex:none;border-radius:10px;display:grid;place-items:center;background:linear-gradient(145deg,#ffcc82,#ef856d);color:#402d31;font-size:11px;font-weight:700;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.user div:nth-child(2){min-width:0;flex:1}.user strong,.user small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user strong{font-size:11px}.user small{font-size:9px;color:#777b90;margin-top:2px}.user button{border:0;background:transparent;color:#777b90;cursor:pointer}.app-shell{margin-left:256px;min-height:100vh}.topbar{height:70px;position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:22px;padding:0 32px;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.breadcrumbs{display:flex;align-items:center;gap:9px;font-size:12px;white-space:nowrap}.breadcrumbs span,.breadcrumbs b{color:#a1a5af}.global-search{width:min(390px,35vw);height:38px;margin:auto;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:#f8f9fb}.global-search input{border:0;outline:0;background:transparent;flex:1;min-width:0}.global-search kbd{font:10px inherit;color:#9ea3ad;border:1px solid #dde0e6;border-radius:4px;padding:2px 5px;background:#fff}.top-actions{display:flex;align-items:center;gap:9px}.mini-btn,.filter-btn,.text-btn{border:1px solid var(--line);background:#fff;color:#626878;cursor:pointer;border-radius:8px}.primary,.secondary{border:0;border-radius:8px;padding:11px 17px;font-weight:600;cursor:pointer}.primary{color:#fff;background:linear-gradient(135deg,#8b7cf6,var(--p));box-shadow:0 6px 16px rgba(108,92,231,.25)}.secondary{background:#f0f1f5;color:#545968}.menu{display:none;border:0;background:transparent;font-size:21px}main{padding:30px 32px 50px;max-width:1600px;margin:auto}.page-title{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:25px}.eyebrow,.panel-kicker{font-size:9px;letter-spacing:1.25px;font-weight:700;color:var(--p)}h1{font-size:25px;letter-spacing:-.5px;margin:6px 0}.page-title p{color:var(--muted);margin:0}.team-stack{display:flex}.team-stack span,.team-stack button{width:33px;height:33px;margin-left:-7px;border:3px solid var(--bg);border-radius:50%;display:grid;place-items:center;font-size:9px;font-weight:700;color:#fff}.team-stack span:nth-child(1){background:#ef8c69}.team-stack span:nth-child(2){background:#41a4a0}.team-stack span:nth-child(3){background:#7168cc}.team-stack button{background:#fff;color:#737888}.view{display:none}.view.active{display:block}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat-card{position:relative;overflow:hidden;padding:18px 19px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow)}.stat-card:after{content:"";position:absolute;right:-18px;bottom:-22px;width:76px;height:76px;border-radius:50%;opacity:.09;background:currentColor}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#737988;font-size:12px}.stat-top i{font-style:normal;width:31px;height:31px;border-radius:8px;display:grid;place-items:center}.purple{color:var(--p)}.purple i{background:var(--ps)}.orange{color:var(--orange)}.orange i{background:#fff4e4}.pink{color:var(--danger)}.pink i{background:#fff0f3}.green{color:var(--green)}.green i{background:#e9f8f2}.stat-card>strong{display:block;color:var(--ink);font-size:27px;margin:10px 0 2px}.stat-card p{color:#969aa5;font-size:10px;margin:0}.stat-card p b{color:var(--green)}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.panel-head{min-height:70px;padding:17px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}h2{font-size:15px;margin:4px 0 0}.text-btn{border:0;color:var(--p);font-size:11px;font-weight:600}.mini-btn{padding:7px 11px;font-size:11px}.task{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:15px 20px;border-bottom:1px solid #f0f1f4}.task:last-child{border:0}.complete{width:22px;height:22px;border:1.5px solid #d7d9e1;border-radius:6px;background:#fff;color:transparent;cursor:pointer}.complete:hover{border-color:var(--p);color:var(--p)}.task h3{font-size:12px;margin:0 0 6px}.task-meta{display:flex;gap:8px;color:#969aa6;font-size:9px}.project-chip{padding:3px 6px;background:#f2f1ff;color:#7569ce;border-radius:5px}.due{font-size:9px;color:#888e9b}.due.overdue{color:var(--danger)}.schedule{padding:8px 18px}.event{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #f0f1f4}.event-time{width:42px;color:var(--p);font-size:10px;font-weight:600}.event-dot{width:8px;height:8px;margin-top:4px;border-radius:50%;background:var(--p);box-shadow:0 0 0 4px var(--ps)}.event h3{font-size:11px;margin:0 0 5px}.event p{font-size:9px;color:#999eaa;margin:0}.view-toolbar,.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.view-tabs{display:flex;padding:3px;border:1px solid var(--line);border-radius:9px;background:#fff}.view-tabs button{border:0;background:transparent;color:#7f8491;padding:8px 13px;border-radius:6px;cursor:pointer}.view-tabs button.selected{color:#fff;background:#272a3b}.filters{display:flex;gap:8px}.filters select,.filter-btn,.calendar-toolbar select{width:auto;margin:0;padding:8px 30px 8px 11px;border:1px solid var(--line);background:#fff;color:#696e7b;border-radius:8px}.filter-btn{padding:8px 11px}.kanban{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:14px;align-items:start}.kanban-col{min-height:460px;padding:0 0 6px}.kanban-head{display:flex;align-items:center;gap:8px;padding:5px 3px 8px}.kanban-head strong{font-size:11px}.kanban-head b{font-size:9px;color:#8e939f;background:#fff;padding:3px 7px;border-radius:10px}.status-dot{width:8px;height:8px;border-radius:50%;background:#9da2ad}.status-dot.in_progress{background:var(--orange)}.status-dot.done{background:var(--green)}.kanban-card{background:#fff;border:1px solid #e5e6ec;border-radius:10px;padding:9px 11px;margin-bottom:7px;box-shadow:0 3px 10px rgba(34,37,53,.035);transition:.2s}.kanban-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(34,37,53,.08)}.kanban-card h3{font-size:12px;line-height:1.5;margin:7px 0 14px}.task-table{overflow:hidden}.table-head,.table-row{display:grid;grid-template-columns:minmax(220px,2fr) 1fr 1fr 1fr .6fr;gap:14px;align-items:center}.table-head{padding:12px 18px;background:#f8f9fb;color:#9297a3;font-size:8px;font-weight:700}.table-row{padding:14px 18px;border-top:1px solid var(--line)}.table-row h3{font-size:11px;margin:0}.table-row span{font-size:10px;color:#767c89}.status-select{width:auto;margin:0;border:0;border-radius:6px;padding:6px;background:#f1efff;color:#675ac5}.calendar-toolbar strong{font-size:14px}.calendar-toolbar>div{display:flex;gap:6px}.calendar-wrap{overflow:hidden}.week-labels{display:grid;grid-template-columns:repeat(7,1fr);background:#f8f9fb;border-bottom:1px solid var(--line)}.week-labels span{text-align:center;padding:10px;color:#999eaa;font-size:9px;font-weight:700}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}.day{min-height:145px;padding:10px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.day:nth-child(7n){border-right:0}.day>strong{font-size:10px;color:#737987}.day.today>strong{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--p);color:#fff}.cal-task{margin-top:7px;padding:6px;border-left:3px solid var(--p);border-radius:4px;background:var(--ps);font-size:8px;color:#554aa0}.summary-hero{display:flex;align-items:center;justify-content:space-between;padding:28px 32px;margin-bottom:16px;border-radius:14px;color:#fff;background:linear-gradient(120deg,#28233d,#5f53cb)}.ai-badge{font-size:9px;color:#d8d2ff}.summary-hero h2{font-size:22px;margin:10px 0 5px}.summary-hero p{color:#c8c3ec;margin:0}.summary-orb{width:74px;height:74px;border-radius:50%;display:grid;place-items:center;background:#ffffff21;font-size:28px;box-shadow:0 0 0 14px #ffffff0c}.summary-content{padding:24px}.summary-group{margin-bottom:24px}.summary-group h3{font-size:12px}.summary-item{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:11px}.scope{background:#f1efff;color:#675e9e;padding:12px;border-radius:8px;font-size:10px}.empty{padding:40px;text-align:center;color:#999eaa}dialog{width:min(590px,calc(100% - 24px));border:0;border-radius:14px;padding:0;box-shadow:0 30px 80px rgba(24,25,39,.3)}dialog::backdrop{background:#14152199;backdrop-filter:blur(3px)}dialog form{padding:28px}.modal-head{display:flex;justify-content:space-between;margin-bottom:20px}.modal-head h2{font-size:20px;margin:6px 0}.modal-head p{margin:0;color:var(--muted);font-size:11px}.close{border:0;background:transparent;font-size:24px;cursor:pointer}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}label{display:block;margin:12px 0;color:#5e6471;font-size:11px;font-weight:600}input,select,textarea{width:100%;margin-top:7px;padding:11px 12px;border:1px solid #dfe1e7;border-radius:8px;background:#fff;outline:0}input:focus,select:focus,textarea:focus{border-color:#9185ef;box-shadow:0 0 0 3px var(--ps)}.check{display:flex;align-items:center;gap:9px}.check input{width:auto;margin:0}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.toast{position:fixed;right:24px;bottom:24px;z-index:60;padding:12px 17px;border-radius:9px;background:#292b3c;color:#fff;transform:translateY(90px);opacity:0;transition:.25s}.toast.show{transform:none;opacity:1}.login-screen{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at 50% 0,#deefff,transparent 70%),#f6f9fc}.login-screen[hidden]{display:none}.login-card{width:min(430px,100%);padding:42px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);text-align:center}.login-logo{display:block;object-fit:contain;margin:0 auto 16px;border-radius:12px}.login-card h1{font-size:28px;line-height:1.35}.login-card p{color:var(--muted);line-height:1.6;margin:14px 0 27px}.google-login{display:flex;align-items:center;justify-content:center;gap:11px;padding:13px;border:1px solid var(--line);border-radius:9px;color:var(--ink);text-decoration:none;font-weight:600}.google-login svg{width:20px}.login-card small{display:block;color:#969aa6;margin-top:17px}.mobile-overlay{display:none}
@media(max-width:1050px){.stats{grid-template-columns:1fr 1fr}.kanban{overflow-x:auto;grid-template-columns:repeat(3,300px)}.table-head,.table-row{grid-template-columns:minmax(180px,2fr) 1fr 1fr}.table-head>*:nth-child(n+4),.table-row>*:nth-child(n+4){display:none}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.25s}.sidebar.open{transform:none}.mobile-overlay.show{display:block;position:fixed;inset:0;z-index:15;background:#10111c80}.app-shell{margin-left:0}.topbar{height:60px;padding:0 14px;gap:10px}.menu{display:block}.breadcrumbs,.global-search{display:none}.top-actions{margin-left:auto}.top-actions .primary{font-size:0;padding:10px}.top-actions .primary span{font-size:15px}main{padding:22px 14px 35px}.page-title h1{font-size:20px}.team-stack{display:none}.stats{grid-template-columns:1fr 1fr;gap:9px}.stat-card{padding:14px}.stat-card>strong{font-size:23px}.view-toolbar{align-items:flex-start;gap:10px;flex-direction:column}.calendar-grid{grid-template-columns:repeat(2,1fr)}.week-labels{display:none}.day:nth-child(7n){border-right:1px solid var(--line)}.form-row{grid-template-columns:1fr}.summary-orb{display:none}.summary-hero{padding:24px}.table-head,.table-row{grid-template-columns:minmax(180px,2fr) 1fr}.table-head>*:nth-child(n+3),.table-row>*:nth-child(n+3){display:none}}
.google-login:hover{background:var(--ps);border-color:#b5d4f0}.google-login:focus-visible{outline:2px solid var(--p);outline-offset:3px}.google-login[hidden]{display:none}.google-login.disabled{opacity:.45;pointer-events:none}.login-card small{line-height:1.55}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-x:hidden}body{min-width:320px;overflow-x:hidden}
@media(max-width:760px){.topbar{width:100%;overflow:hidden}.top-actions{flex:none}.page-title{display:block}.page-title p{font-size:12px;line-height:1.55}.stats{align-items:stretch}.stat-card{min-width:0}.stat-top span{font-size:10px}.stat-card p{line-height:1.4}.task{grid-template-columns:22px minmax(0,1fr);padding:14px}.task>div:last-child{grid-column:2}.task-meta{flex-wrap:wrap}.sidebar{width:min(82vw,300px);padding-bottom:max(18px,env(safe-area-inset-bottom))}.workspace,.nav,.integration-row{white-space:nowrap}.nav span,.integration-row span{overflow:hidden;text-overflow:ellipsis}.help{white-space:nowrap}.login-card{padding:30px 22px}}
.bot-admin-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.bot-tabs{display:inline-flex;padding:4px;background:#ececf3;border-radius:12px}.bot-tabs button{border:0;background:transparent;padding:9px 18px;border-radius:9px;color:var(--muted);font-weight:700;cursor:pointer}.bot-tabs button.active{background:#fff;color:var(--ink);box-shadow:0 2px 8px #19192c12}.bot-registry{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}.store-card,.bot-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;text-align:left}.store-card{display:flex;flex-direction:column;min-height:225px}.store-card small{color:#6c5ce7;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.store-card h3{margin:12px 0 7px}.store-card p{color:var(--muted);line-height:1.55;flex:1}.store-card button{width:100%;margin-top:14px}.store-icon,.bot-card-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eeeafe;color:#6c5ce7;font-size:22px;margin-bottom:14px}.bot-card{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;cursor:pointer}.bot-card:hover,.bot-card.active{border-color:#8a7cf0;box-shadow:0 7px 24px #4e3ed012}.bot-card .bot-card-icon{margin:0}.bot-card strong,.bot-card small{display:block}.bot-card small{color:var(--muted);margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bot-state{font-size:11px;font-style:normal;background:#f1f1f4;color:#777b89;padding:6px 9px;border-radius:20px;white-space:nowrap}.bot-state.on{background:#dcf8ed;color:#16865f}.bot-editor{padding:0;overflow:hidden}.empty-editor{display:grid;place-items:center;min-height:230px;text-align:center;color:var(--muted)}.editor-icon{font-size:32px}.editor-head{display:flex;align-items:flex-start;justify-content:space-between;padding:24px 28px;border-bottom:1px solid var(--line);gap:20px}.editor-head h2{margin:4px 0}.editor-head p{margin:5px 0;color:var(--muted)}.editor-head code{font-size:11px;word-break:break-all}.settings-section{padding:24px 28px;border-bottom:1px solid var(--line)}.settings-section h3{margin:0 0 18px}.settings-section>label{display:block;margin-top:14px}.settings-section label{font-size:13px;font-weight:650;color:#4c4f5d}.settings-section input,.settings-section textarea,.settings-section select{margin-top:7px}.prompt-editor{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;line-height:1.55}.copy-field{display:flex;gap:8px}.copy-field input{min-width:0}.copy-field button{margin-top:7px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 13px;font-weight:700}.setting-checks{display:flex;gap:24px;margin-top:18px}.setting-checks input{width:auto;margin-right:7px}.editor-actions{display:flex;justify-content:flex-end;gap:10px;padding:20px 28px;background:#fafafe}.switch{display:flex;align-items:center;gap:9px;white-space:nowrap}.switch input{width:20px;height:20px}.bot-empty{grid-column:1/-1;padding:40px}.install-bot:disabled{opacity:.65;cursor:default}
@media(max-width:950px){.bot-registry{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.bot-admin-head .primary{font-size:0;padding:11px}.bot-admin-head .primary:first-letter{font-size:18px}.bot-tabs{width:100%}.bot-tabs button{flex:1}.bot-registry{grid-template-columns:1fr}.bot-card{grid-template-columns:42px minmax(0,1fr)}.bot-state{grid-column:2;justify-self:start}.editor-head{padding:20px;flex-direction:column}.settings-section{padding:20px}.setting-checks{flex-direction:column;gap:12px}.editor-actions{padding:16px 20px;position:sticky;bottom:0}.copy-field{flex-direction:column}.copy-field button{height:40px}.store-card{min-height:210px}}
.integration-link{width:100%;border:0;font:inherit;cursor:pointer}.connection-badge{background:#ececf3;color:#777b89;border-radius:30px;padding:9px 14px;font-size:13px;font-weight:750;white-space:nowrap}.connection-badge.connected{background:#dcf8ed;color:#16865f}.google-connect-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;margin-bottom:18px}.connect-copy{display:flex;align-items:center;gap:16px;min-width:0}.connect-copy h3{margin:0 0 6px}.connect-copy p{margin:0;color:var(--muted);line-height:1.5}.connect-copy code{font-size:12px;word-break:break-all}.google-big{display:grid;place-items:center;width:50px;height:50px;flex:none;border-radius:15px;background:conic-gradient(from -45deg,#4285f4 0 25%,#34a853 0 50%,#fbbc05 0 75%,#ea4335 0);color:#fff;font-size:22px;font-weight:900}.google-connect-btn{background:#fff;border:1px solid #d8dae2;border-radius:10px;padding:12px 18px;font-weight:750;white-space:nowrap;cursor:pointer}.google-connect-btn:hover{border-color:#4285f4}.connect-actions{display:flex;gap:9px;flex:none}.workspace-services{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:18px}.workspace-service{background:#fff;border:1px solid var(--line);border-radius:15px;padding:16px;min-width:0}.workspace-service.enabled{border-color:#9bd7bf;background:#fbfffd}.workspace-service label{display:flex;align-items:center;gap:10px;cursor:pointer}.workspace-service input{position:absolute;opacity:0;pointer-events:none}.workspace-service label>span:last-child{min-width:0}.workspace-service strong,.workspace-service small{display:block}.workspace-service small{color:var(--muted);font-size:11px;line-height:1.35;margin-top:4px}.workspace-service>b{display:block;margin:12px 0 0 48px;color:var(--muted);font-size:11px}.workspace-service.enabled>b{color:#16865f}.service-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:11px;font-weight:850;background:#eef3ff;color:#4285f4}.service-icon.tasks{background:#e9f1ff;color:#4285f4}.service-icon.drive{background:#fff5dc;color:#e5a800}.service-icon.sheets{background:#e3f7ed;color:#188b55}.service-icon.gmail{background:#ffebe9;color:#d94b3d}.sync-activity{overflow:hidden}.sync-activity .panel-head select{width:auto}.google-items{max-height:430px;overflow:auto}.google-item{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:13px;padding:13px 22px;border-top:1px solid var(--line);color:inherit;text-decoration:none}.google-item:hover{background:#fafafe}.google-item strong,.google-item small{display:block}.google-item small{color:var(--muted);margin-top:4px}.google-item i{font-size:11px;color:var(--muted);font-style:normal}.google-item .service-icon{width:36px;height:36px}.google-items>.empty{padding:40px}
@media(max-width:1100px){.workspace-services{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.google-connect-panel{align-items:stretch;flex-direction:column}.connect-actions{width:100%}.connect-actions button,.google-connect-btn{flex:1}.workspace-services{grid-template-columns:1fr}.workspace-service small{font-size:12px}.sync-activity .panel-head{align-items:flex-start;gap:12px;flex-direction:column}.sync-activity .panel-head select{width:100%}.google-item{grid-template-columns:38px minmax(0,1fr)}.google-item i{grid-column:2}}
.bot-head-actions{display:flex;gap:9px}.guide-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px;border-radius:18px;background:linear-gradient(130deg,#e7f8ff,#f0edff);margin-bottom:16px}.guide-hero h2{font-size:28px;margin:7px 0}.guide-hero p{font-size:15px;line-height:1.6;color:#62697a;margin:0}.guide-open{text-decoration:none;white-space:nowrap}.guide-notice{display:flex;align-items:center;gap:14px;padding:15px 20px;margin-bottom:16px;border:1px solid #f1d697;border-radius:12px;background:#fff9e8;font-size:14px;line-height:1.5}.guide-notice strong{color:#9c6a00;white-space:nowrap}.guide-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.7fr);gap:16px;align-items:start}.guide-steps{list-style:none;margin:0;padding:8px 24px;background:#fff;border:1px solid var(--line);border-radius:14px}.guide-steps li{display:grid;grid-template-columns:42px minmax(0,1fr);gap:16px;padding:23px 0;border-bottom:1px solid var(--line)}.guide-steps li:last-child{border:0}.guide-steps li>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#eeeafe;color:var(--p);font-size:16px;font-weight:800}.guide-steps h3{font-size:16px;margin:0 0 7px}.guide-steps p{font-size:14px;line-height:1.65;color:#6f7583;margin:0}.guide-side{display:grid;gap:14px}.callback-panel{padding:21px}.callback-panel>h3{font-size:17px;margin:7px 0 16px}.callback-item{display:grid;gap:7px;padding:14px 0;border-top:1px solid var(--line)}.callback-item strong{font-size:14px}.callback-item code{display:block;padding:9px;border-radius:7px;background:#f5f6fa;color:#555d72;font-size:12px;line-height:1.45;word-break:break-all}.callback-item button{justify-self:start;border:0;background:#eeeafe;color:#6254c8;padding:7px 10px;border-radius:7px;font-size:13px;font-weight:700;cursor:pointer}.guide-check,.guide-warning{padding:20px;border-radius:14px}.guide-check{background:#fff;border:1px solid var(--line)}.guide-check h3,.guide-warning h3{font-size:16px;margin:0 0 12px}.guide-check label{display:flex;align-items:center;gap:9px;margin:11px 0;font-size:14px}.guide-check input{width:18px;height:18px;margin:0}.guide-warning{background:#fff0f2;color:#75464d}.guide-warning strong{font-size:15px}.guide-warning p{font-size:14px;line-height:1.55;margin:7px 0 0}.help{cursor:pointer;border-radius:8px}.help:hover{background:#242738;color:#fff}
@media(max-width:900px){.guide-layout{grid-template-columns:1fr}.guide-side{grid-template-columns:1fr 1fr}.callback-panel{grid-column:1/-1}}
@media(max-width:760px){.bot-head-actions{flex-direction:column}.bot-head-actions .secondary{font-size:12px}.guide-hero{align-items:flex-start;flex-direction:column;padding:23px 20px}.guide-hero h2{font-size:23px}.guide-open{width:100%;text-align:center}.guide-notice{align-items:flex-start;flex-direction:column}.guide-layout{display:block}.guide-steps{padding:4px 17px;margin-bottom:14px}.guide-steps li{grid-template-columns:36px minmax(0,1fr);gap:12px;padding:19px 0}.guide-steps li>span{width:34px;height:34px}.guide-side{display:grid;grid-template-columns:1fr}.callback-panel{grid-column:auto}}
.integration-link{background:transparent!important;color:#aeb2c2!important;-webkit-appearance:none;appearance:none;text-align:left}.integration-link:hover{background:#242738!important;color:#fff!important;border-radius:8px}
.workspace-service.sync-error{border-color:#f2b8b5;background:#fffafa}.workspace-service.sync-error>b{color:#b3261e;line-height:1.45;margin-left:0}.enable-api{display:inline-block;margin:10px 0 0;padding:0;border:0;background:transparent;color:#5c4fd4;font:inherit;font-size:11px;font-weight:750;text-decoration:none;cursor:pointer}.enable-api:hover{text-decoration:underline}
.kanban-card,.table-row,.task,.event[data-id]{cursor:pointer}.cal-task{display:block;width:100%;border:0;text-align:left;cursor:pointer;font:inherit}.cal-task:hover{filter:brightness(.96)}
.bot-state.warn{background:#fff3d8;color:#9a6700}.bot-readiness{display:flex;align-items:center;gap:12px;margin:18px 24px 0;padding:13px 15px;border-radius:10px;font-size:12px}.bot-readiness strong{white-space:nowrap}.bot-readiness span{color:#666d7d}.bot-readiness.ok{background:#e9f8f2;color:#16865f}.bot-readiness.warn{background:#fff5df;color:#9a6700}
.gemini-guide{margin-top:28px;padding-top:28px;border-top:1px solid var(--line)}.gemini-guide-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}.gemini-guide-head h2{margin:5px 0 6px;font-size:28px}.gemini-guide-head p{margin:0;color:var(--muted)}.gemini-guide-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:18px;align-items:start}.gemini-steps{margin:0}.gemini-links{display:grid;gap:14px}.guide-link-actions{display:flex;gap:8px;margin-top:9px}.guide-link-actions button,.guide-link-actions a{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;background:#fff;color:#5c4fd4;padding:8px 10px;font:inherit;font-size:12px;font-weight:750;text-decoration:none;cursor:pointer}.guide-link-actions button:hover,.guide-link-actions a:hover{border-color:#6c5ce7;background:#f7f5ff}.gemini-guide code{word-break:break-all}
@media(max-width:760px){.gemini-guide-head{align-items:stretch;flex-direction:column}.gemini-guide-head h2{font-size:23px}.gemini-guide-grid{display:block}.gemini-links{margin-top:14px}.guide-link-actions>*{flex:1}}
.skill-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.skill-head h3{margin:0 0 5px}.skill-head p{margin:0;color:var(--muted);font-size:11px}.bot-skills{display:grid;gap:8px;margin-top:14px}.skill-item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;text-align:left;cursor:pointer}.skill-item strong,.skill-item small{display:block}.skill-item small{margin-top:4px;color:var(--muted)}.skill-item i{color:var(--p);font-size:11px;font-style:normal}.skill-item.off{opacity:.55}.skill-command{display:block;margin-top:12px;color:#6c648b}
.account-ai-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.account-ai-meta a { color: var(--p); font-weight: 700; }
.account-ai-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }

.appointment-counts { display: flex; flex-wrap: wrap; gap: 4px; padding: 7px 10px 5px; }
.appointment-counts strong { margin-inline-start: 3px; font-variant-numeric: tabular-nums; }
.appointment-list { max-height: 208px; overflow: auto; list-style: none; margin: 0; padding: 0 10px; }
.appointment-panel .appointment-list { max-height: none; }
.appointment-footer { display: flex; justify-content: flex-end; padding: 2px 10px 6px; }
.appointment-footer .text-btn { min-height: 32px; padding: 4px; }
#appointmentHistoryDialog { width: min(510px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 14px; }
.appointment-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.appointment-history-head h2 { margin: 0; }
.appointment-history-head button { padding: 8px 12px; }
#appointmentHistoryStatus { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
#appointmentHistoryItems { max-height: min(55dvh, 420px); padding: 0; }
#appointmentHistoryItems:empty { display: none; }
#appointmentHistoryMore { margin-top: 10px; }
.appointment-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 5px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.appointment-row > div { min-width: 0; overflow-wrap: anywhere; }
.appointment-row time { display: block; margin-top: 2px; color: #606777; font-size: 11px; line-height: 1.3; }
.appointment-status { flex: none; padding: 2px 5px; border-radius: 999px; font-size: 10px; line-height: 1.4; font-weight: 650; }
.appointment-status--pending { color: #5545b6; background: var(--ps); }
.appointment-status--sent { color: #126a50; background: #e9f8f2; }
.appointment-status--failed { color: #9f2543; background: #fff0f2; }
.appointment-panel .empty { padding: 10px 12px; font-size: 12px; }
.appointment-connect p { margin: 0 0 6px; color: var(--muted); }
.appointment-connect .primary { min-height: 30px; padding: 4px 8px; font-size: 12px; }
.appointment-link { margin: 16px auto 0; max-width: 480px; }
.appointment-link code {
  display: block;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

#botsView [hidden] { display: none; }
#adminNav[hidden] { display: none; }
.admin-panel { margin-top: 18px; }
.admin-panel .panel-head { flex-wrap: wrap; }
.admin-list { display: grid; }
.admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.admin-row > div { flex: 1 1 180px; overflow-wrap: anywhere; }
.admin-row small { display: block; color: var(--muted); }
.admin-template-form { display: grid; gap: 12px; margin-top: 20px; }
.admin-template-form label { display: grid; gap: 5px; }
.admin-template-form .setting-checks label { display: flex; }
.admin-template-form textarea { resize: vertical; }

#workspaceShell[hidden], #googleLoginLink[hidden] { display: none; }
#loginError { margin: 14px 0 0; color: var(--danger); }

.demo-banner { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.demo-banner .secondary { text-decoration: none; }
.demo-banner[hidden],
.demo-mode [data-view="bots"],
.demo-mode [data-view="integrations"],
.demo-mode .nav-space,
.demo-mode #helpView .guide-hero button,
.demo-mode #logoutBtn { display: none; }

#newTask[hidden] { display: none; }

.appointment-status--cancelled { color: #535a6b; background: #eef0f4; }
#accountAISettings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 340px); align-items: start; gap: 24px; }
#accountAISettings[hidden] { display: none; }
.my-bot-list { display: grid; gap: 12px; }
.my-bot-instances, .my-bot-services { min-width: 0; }
.my-bot-instances h2, .my-bot-services h2 { margin: 0 0 10px; font-size: 17px; }
.my-bot-service-list { overflow: hidden; }
.my-bot-card + .my-bot-card { border-top: 1px solid var(--line); }
.my-bot-service-list .bot-head-actions { flex-wrap: wrap; }
.my-bot-card > header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.my-bot-card > header > div { flex: 1; min-width: 0; }
.my-bot-card h3, .my-bot-instance h3 { margin: 0; font-size: 15px; }
.my-bot-card small, .my-bot-instance small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.my-bot-card .settings-icon { font-size: 16px; flex: none; }
.account-switch { position: relative; flex: none; width: 39px; height: 22px; padding: 0; border: 0; border-radius: 14px; background: #7c8193; }
.account-switch::after { content: ""; position: absolute; inset: 3px auto auto 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.account-switch[aria-checked="true"] { background: var(--p); }
.account-switch[aria-checked="true"]::after { left: 20px; }
.account-switch:disabled { opacity: .55; cursor: default; }
.my-bot-card > form, #myBotSeatalkSettings { padding: 14px 16px; border-top: 1px solid var(--line); }
#myBotSeatalkSettings > p { color: var(--muted); }
.my-bot-empty { margin: 0; color: var(--muted); grid-column: 1 / -1; }
.my-bot-link-setup { margin: 0 0 14px; padding: 16px; line-height: 1.5; }
.my-bot-link-setup > p, .my-bot-link-setup ol { margin: 0 0 12px; color: var(--muted); }
.my-bot-link-setup ol { padding-inline-start: 20px; }
.my-bot-link-setup li + li { margin-top: 4px; }
.my-bot-link-actions, .my-bot-link-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.my-bot-link-code { margin-bottom: 12px; }
.my-bot-link-code code { min-width: 0; padding: 8px 10px; border-radius: 8px; background: #f1eefb; overflow-wrap: anywhere; }
.my-bot-link-code small { color: var(--muted); }
.my-bot-link-setup #myBotLinkFeedback { margin: 10px 0 0; }
.my-bot-instance { min-width: 0; padding: 16px 18px 0; }
.my-bot-instance-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.my-bot-instance-head .store-icon { margin: 0; }
.my-bot-identity { min-width: 0; overflow-wrap: anywhere; }
.my-bot-controls { display: flex; align-items: center; gap: 8px; }
.my-bot-badge { padding: 3px 8px; border-radius: 999px; background: #eef0f5; color: #50596c; font-size: 12px; font-weight: 650; }
.my-bot-badge[data-active="true"] { background: #e8f6ef; color: #166c52; }
.my-bot-gear { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; font-size: 17px; }
.my-bot-connections { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.my-bot-connections > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; padding: 4px 8px; border-radius: 6px; background: #f4f5f9; font-size: 12px; }
.my-bot-connections dd { margin: 0; color: var(--muted); font-weight: 650; }
.my-bot-connections dd.is-active { color: #166c52; }
.my-bot-description { margin: 10px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.my-bot-metadata { display: flex; flex-wrap: wrap; gap: 5px 18px; margin: 12px 0 14px; font-size: 12px; }
.my-bot-metadata > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 6px; }
.my-bot-metadata dt, .my-bot-history-note { color: var(--muted); }
.my-bot-metadata dd { margin: 0; font-weight: 650; }
.my-bot-history { border-top: 1px solid var(--line); }
.my-bot-history[open] { padding-bottom: 12px; }
.my-bot-history summary { display: flex; align-items: center; justify-content: space-between; min-height: 42px; cursor: pointer; list-style: none; color: var(--p); font-size: 13px; font-weight: 650; }
.my-bot-history summary::-webkit-details-marker { display: none; }
.my-bot-history summary::after { content: ""; width: 7px; height: 7px; margin-right: 4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.my-bot-history[open] summary::after { transform: rotate(225deg); }
.my-bot-history-note { margin: 8px 0; font-size: 12px; }
.my-bot-history-list { max-height: 420px; overflow-y: auto; }
.my-bot-history-more { margin-top: 8px; }
@media (max-width: 1050px) { #accountAISettings { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 450px) {
  .my-bot-instance { padding-inline: 13px; }
  .my-bot-instance-head { grid-template-columns: auto minmax(0, 1fr); }
  .my-bot-controls { grid-column: 2; flex-wrap: wrap; }
}
#unlinkMyBotDialog form { border: 0; }
#unlinkMyBotDialog fieldset { border: 1px solid var(--line); border-radius: 8px; }
#unlinkMyBotDialog fieldset label { display: flex; flex-direction: row; align-items: center; gap: 8px; }
#unlinkMyBotDialog input[type="radio"] { width: auto; }

.bot-tab-note { margin: 0 0 16px; color: var(--muted); line-height: 1.6; }


.guide-images { display: grid; gap: 12px; margin-top: 14px; }
.guide-images-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.guide-images figure { margin: 0; }
.guide-images img { display: block; width: auto; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.guide-images figcaption, .guide-side .callback-item span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.guide-steps code { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .guide-images-pair { grid-template-columns: 1fr; }
}

#helpView [hidden] { display: none; }
.guide-search { display: grid; gap: 6px; max-width: 520px; margin-bottom: 16px; }
.guide-search label { font-weight: 650; }
.guide-search input { min-width: 0; padding: 10px 12px; border: 1px solid #d4d8e1; border-radius: 10px; background: #fff; color: var(--ink); }
.guide-search-status { margin: 0 0 12px; color: var(--muted); }
.guide-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 256px), 1fr)); gap: 12px; }
.guide-topic { display: grid; gap: 6px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; }
.guide-topic:hover, .guide-topic:focus-visible { border-color: var(--p); }
.guide-topic span { color: var(--muted); line-height: 1.5; }
#guideIndex { max-width: 1120px; }
.guide-feature {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 24px;
  padding: 20px;
  border-color: #bfd9f2;
  background: #eef6ff;
}
.guide-feature > div { display: grid; gap: 5px; }
.guide-feature small { color: #0759a6; font-size: 12px; font-weight: 700; }
.guide-feature strong { font-size: clamp(17px, 2.2vw, 22px); }
.guide-feature .guide-cta { padding: 8px 13px; border-radius: 8px; background: var(--p); color: #fff; font-size: 13px; font-weight: 650; }
.guide-group { margin-top: 20px; }
.guide-group h2 { margin: 0 0 9px; font-size: 16px; }
.guide-sequence { counter-reset: guide-step; margin: 0; padding: 0; list-style: none; }
.guide-sequence li { display: grid; counter-increment: guide-step; }
.guide-sequence .guide-topic::before {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: var(--ps);
  color: #0759a6;
  font-size: 12px;
  font-weight: 700;
  content: counter(guide-step);
}
.guide-personal { grid-template-columns: repeat(2,minmax(0,1fr)); }
#guideSearchResults .guide-feature { display: block; padding: 16px; background: #fff; border-color: var(--line); }
#guideSearchResults .guide-feature strong { font-size: inherit; }
#guideSearchResults .guide-feature :is(small, .guide-cta) { display: none; }
.guide-article { max-width: 1120px; }
.guide-article .guide-hero { background: #eef6ff; border: 1px solid #d7e7f5; }
.guide-notice a { color: var(--p); }
.guide-alternative { margin-top: 14px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.guide-alternative summary { cursor: pointer; color: var(--ink); font-weight: 650; }
.guide-alternative .guide-options { margin-top: 9px; }
@media (max-width: 560px) {
  .guide-feature, .guide-personal { grid-template-columns: minmax(0,1fr); }
  .guide-feature .guide-cta { justify-self: start; }
}
.guide-back { margin-bottom: 14px; }
.guide-back a, .guide-next a { color: var(--p); font-weight: 650; }
.guide-next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; }
.guide-options { display: grid; gap: 9px; margin: 0; line-height: 1.6; }
.guide-options dt { font-weight: 650; }
.guide-options dd { color: var(--muted); margin: 2px 0 0; }
.guide-article .guide-steps p + p { margin-top: 8px; }

.global-search[hidden] { display: none; }

.danger-text { color: #a7253b; }
.danger-notice { padding: 12px; border-radius: 9px; background: #fff0f2; color: #9c1e35; font-weight: 750; }
.danger-button { padding: 10px 15px; border: 0; border-radius: 9px; background: #ae2740; color: #fff; font-weight: 750; cursor: pointer; }
.danger-button:disabled { opacity: .5; cursor: default; }
.bot-removal-data { min-width: 0; margin: 16px 0; border: 1px solid var(--line); border-radius: 9px; }
.bot-removal-data p { color: var(--muted); }
#removeAppBotRecipients { max-height: 220px; overflow: auto; }
#removeAppBotRecipients .bot-removal-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0; }
.bot-removal-choice span { overflow-wrap: anywhere; }
#removeAppBotRecipients select { width: auto; min-width: 75px; }

.bot-origin { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; margin-top: 7px; border-radius: 7px; font-size: 11px; line-height: 1.2; font-weight: 650; }
.bot-origin.from-store { color: #5545b6; background: var(--ps); }
.bot-origin.from-custom { color: #394760; background: #edf0f5; }

.app-bot-form .editor-head { flex-direction: row; align-items: center; padding: 16px 22px; gap: 12px; }
.app-bot-form .editor-head h2 { margin: 0 0 5px; font-size: 18px; }
.app-bot-form .switch input { margin: 0; }
.app-bot-status { display: inline-block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.app-bot-status.on { color: #126a50; }
.app-bot-status.warn { color: #865600; }
.app-bot-form .settings-section { padding: 16px 22px; }
.app-bot-form .app-bot-setup { display: grid; gap: 12px; }
.app-bot-setup > label { margin: 0; }
.app-bot-connection-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.app-bot-connection-heading h3 { margin: 0; font-size: 15px; }
.app-bot-connection-heading a { color: var(--p); font-size: 12px; font-weight: 650; }
.app-bot-credentials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-bot-form .copy-field { flex-direction: row; }
.app-bot-form .copy-field input, .app-bot-form .copy-field button { margin: 0; }
.app-bot-form .copy-field button { height: auto; white-space: nowrap; }
.app-bot-details { border-bottom: 1px solid var(--line); }
.app-bot-details summary { padding: 13px 22px; cursor: pointer; font-weight: 650; }
.app-bot-form .app-bot-details-body { display: grid; gap: 12px; padding-top: 0; border-bottom: 0; }
.app-bot-details-body > label, .app-bot-details-body .skill-head h3 { margin: 0; }
.app-bot-form .editor-actions { flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 22px; }
.app-bot-form #removeBotBtn { margin-right: auto; }
@media (max-width: 760px) {
  .app-bot-form .editor-head, .app-bot-form .settings-section, .app-bot-form .editor-actions, .app-bot-details summary { padding-left: 14px; padding-right: 14px; }
  .app-bot-credentials { grid-template-columns: 1fr; }
}

.app-bot-form .app-bot-name-only { grid-template-columns: minmax(0, 1fr); }

#createAppBotDialog { width: min(480px, calc(100% - 24px)); }
.create-app-bot-form .modal-head p { font-size: 13px; line-height: 1.5; }
.create-app-bot-form > small { display: block; margin: -3px 0 13px; color: var(--muted); line-height: 1.5; }
.create-app-bot-form label { margin-bottom: 5px; }
.app-bot-form-error { margin: 8px 0 0; color: #a7253b; font-size: 13px; }
.create-app-bot-form .modal-actions { margin-top: 16px; }

.demo-mode #seatalkMenuLink { display: none; }

#botSkillDialog, #personalSkillsDialog, #actionConfirmDialog { width: min(480px, calc(100% - 24px)); }
.my-bot-activity-row { border-bottom: 1px solid var(--line); padding: 10px 0; }
.my-bot-activity-row header { display: flex; gap: 8px; justify-content: space-between; }
.my-bot-activity-row small, .my-bot-activity-row time { color: var(--muted); font-size: 12px; }
.my-bot-activity-row p { margin: 5px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.my-bot-activity-row p b { display: block; }
#personalSkillsDialog [hidden] { display: none; }
#personalSkillsDialog #personalSkillFields { margin-top: 12px; }
.personal-skill-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.personal-skill-row p { margin: 4px 0 8px; overflow-wrap: anywhere; white-space: pre-wrap; }
.personal-skill-row > div { display: flex; gap: 8px; }
.bot-skill-form .modal-head p, #actionConfirmDialog .modal-head p { font-size: 13px; line-height: 1.5; }
.bot-skill-form textarea { resize: vertical; }
.bot-skill-form .modal-actions { margin-top: 16px; }

.task-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.task-hint { margin: 5px 0 0; color: #5e556c; font-size: 12px; line-height: 1.45; }

.task-due-preview {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 3px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.task-due-preview:last-child { border-bottom: 0; }
.task-due-preview:hover span { color: var(--p); }
.task-due-preview span { font-size: 13px; font-weight: 650; }
.task-due-preview small { color: #605199; }
#workspacePageHeading[hidden] { display: none; }
.calendar-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 14px;
}
.calendar-stats > div { min-width: 0; padding: 10px 15px; }
.calendar-stats > div + div { border-inline-start: 1px solid var(--line); }
.calendar-stats dt { color: var(--muted); font-size: 12px; line-height: 1.4; }
.calendar-stats dd { margin: 3px 0 0; color: var(--ink); font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.calendar-period, .calendar-navigation { display: flex; align-items: center; gap: 6px; }
.calendar-period { flex-wrap: wrap; column-gap: 13px; min-width: 0; }
.calendar-navigation .mini-btn { min-height: 36px; font-size: 12px; }
.calendar-nav-arrow { display: grid; place-items: center; width: 36px; padding: 0; }
.calendar-nav-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calendar-navigation .mini-btn:hover { background: var(--ps); color: var(--p); }
.calendar-period-label h1 { margin: 0; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.35; letter-spacing: -.02em; }
.calendar-period-label p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
@media (max-width: 520px) {
  .calendar-stats > div { padding-inline: 9px; }
  .calendar-agenda-head { padding-inline: 12px; }
  .calendar-navigation .mini-btn { min-height: 44px; }
  .calendar-nav-arrow { width: 44px; }
}
.calendar-agenda-head { flex-wrap: wrap; gap: 10px; }
.calendar-agenda-actions, .calendar-event-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.calendar-agenda-actions a { text-decoration: none; }
.calendar-status { margin: 16px 20px 8px; color: #566173; font-size: 13px; }
.calendar-status:empty { display: none; }
#calendarConnect { margin: 0 20px 14px; padding-left: 0; }
#calendarConnect[hidden] { display: none; }
.calendar-agenda-list { list-style: none; margin: 0; padding: 0 20px 12px; }
.calendar-agenda-event {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 20px;
  padding: 13px 0 13px 12px;
  border-left: 3px solid #a1cdbf;
  border-bottom: 1px solid var(--line);
}
.calendar-agenda-event:last-child { border-bottom: 0; }
.calendar-agenda-event time { color: #286755; font-size: 12px; font-weight: 650; }
.calendar-agenda-event h3 { margin: 3px 0; font-size: 15px; overflow-wrap: anywhere; }
.calendar-agenda-event p { margin: 0; color: #566173; font-size: 13px; overflow-wrap: anywhere; }
.calendar-event-links a {
  border-radius: 7px;
  padding: 6px 9px;
  background: #e8f6f1;
  color: #245f4e;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.calendar-event-links a:hover { text-decoration: underline; }
.calendar-detail-button {
  appearance: none;
  background: var(--ps);
  border: 0;
  border-radius: 7px;
  color: #0759a6;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  font-size: 12px;
  font-weight: 650;
  padding: 6px 9px;
  text-align: start;
}
.calendar-detail-button:hover { text-decoration: underline; }
.dashboard-event .calendar-detail-button { padding: 4px 7px; }
.calendar-grid-title {
  background: transparent;
  font-size: inherit;
  overflow-wrap: anywhere;
  padding: 2px 0;
}
/* Event detail */
/* Calendar event details */
.calendar-detail-dialog {
  --detail-inset: 17px;
  --detail-rail: 28px;
  position: fixed;
  width: min(470px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0 0 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  border-block-start: 3px solid #8ebced;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 30px #13335329;
}
.calendar-detail-dialog.is-anchored { right: auto; bottom: auto; margin: 0; }
.calendar-detail-dialog::backdrop { background: transparent; backdrop-filter: none; }
.calendar-detail-dialog .calendar-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 7px 8px 1px;
}
.calendar-detail-toolbar .calendar-detail-actions:empty,
.calendar-detail-fields:empty,
.calendar-detail-conference[hidden] { display: none; }
.calendar-detail-toolbar a, .calendar-detail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.calendar-detail-toolbar a { padding-inline: 6px; text-decoration: none; }
.calendar-detail-close { width: 34px; padding: 0; cursor: pointer; }
.calendar-detail-toolbar :is(a,button):hover { background: var(--ps); color: var(--p); }
.calendar-detail-toolbar .editor-line-icon { width: 16px; height: 16px; }

.calendar-detail-heading,
.calendar-detail-conference {
  display: grid;
  grid-template-columns: var(--detail-rail) minmax(0, 1fr);
  margin-inline: var(--detail-inset);
}
.calendar-detail-heading { margin-block: 2px 11px; }
.calendar-detail-marker { width: 9px; height: 9px; margin: 8px 0 0 4px; border-radius: 2px; background: var(--p); }
.calendar-detail-heading h2 { margin: 0 0 3px; font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.calendar-detail-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.calendar-detail-conference { padding-block: 9px; border-block: 1px solid var(--line); }
.calendar-detail-conference .editor-line-icon,
.calendar-detail-row dt svg { width: 18px; height: 18px; color: #456987; }
.calendar-detail-conference .calendar-detail-join { color: #0759a6; font-size: 14px; font-weight: 650; text-underline-offset: 3px; }
.calendar-detail-conference strong { font-size: 14px; }
.calendar-detail-conference dl { margin: 4px 0 0; font-size: 12px; }
.calendar-detail-conference dl > div { display: flex; flex-wrap: wrap; gap: 2px 6px; line-height: 1.5; }
.calendar-detail-conference dt { color: var(--muted); }
.calendar-detail-conference dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.calendar-detail-fields { margin: 4px var(--detail-inset) 0; }
.calendar-detail-row { position: relative; padding: 5px 0 5px var(--detail-rail); }
.calendar-detail-row dt { margin-bottom: 1px; color: var(--muted); font-size: 11px; font-weight: 650; }
.calendar-detail-row dt svg { position: absolute; inset: 6px auto auto 0; }
.calendar-detail-row dd { margin: 0; font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.calendar-detail-row dd a { color: #0759a6; }
.calendar-detail-row ul { margin: 0; padding-inline-start: 16px; white-space: normal; }
.calendar-detail-row small { color: var(--muted); }
@media (max-width: 640px) {
  .calendar-detail-dialog { --detail-inset: 13px; margin: auto auto 12px; }
  .calendar-detail-dialog::backdrop { background: #152e4d35; }
}
.connect-copy .zoom-logo { color: #fff; background: #1765ce; }

#tasksView {
  --task-heading-action-width: 32px;
  --task-heading-gap: 4px;
}
.task-item-heading {
  display: grid;
  grid-template-columns: var(--task-heading-action-width) minmax(0,1fr) var(--task-heading-action-width);
  align-items: start;
  gap: var(--task-heading-gap);
}
.task-item-heading > div { min-width: 0; overflow-wrap: anywhere; }
.card-heading-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) fit-content(50%);
  align-items: baseline;
  align-self: center;
  gap: 8px;
}
.kanban-card .task-item-heading h3 { margin: 0; }
.task-check, .task-menu-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #605970;
  cursor: pointer;
}
.task-check span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid #777083;
  border-radius: 50%;
  color: transparent;
  font-size: 12px;
  line-height: 1;
}
.task-check:hover:not(:disabled) span,
.task-check:focus-visible span { border-color: var(--p); color: var(--p); }
.task-check[aria-pressed="true"] span,
.task-check[aria-pressed="true"]:hover span,
.task-check[aria-pressed="true"]:focus-visible span { border-color: #28735c; background: #28735c; color: #fff; }
.task-menu-button { font-size: 21px; line-height: 1; }
.task-menu-button:hover:not(:disabled), .task-menu-button[aria-expanded="true"] { background: var(--ps); color: #5142aa; }
.task-star-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #986100;
  cursor: pointer;
}
.task-star-button span { color: inherit; font: 21px/1 sans-serif; }
.task-star-button:hover:not(:disabled), .task-star-button:focus-visible { background: #fff4e4; }
.card-details { display: flex; align-items: flex-start; gap: 8px; margin-top: 3px; }
.card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: pre-line;
  flex: 1;
  min-width: 0;
  margin: 0;
  margin-inline-start: calc(var(--task-heading-action-width) + var(--task-heading-gap));
  color: #565b6c;
  font-size: 12px;
  line-height: 1.5;
}
.card-description:has(a) { display: block; }
.card-description a { color: #2356b0; text-decoration: underline; }
#boardTasks .card-due {
  color: #565b6c;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  text-align: right;
}
#boardTasks .card-due.overdue { color: #b42d4b; }
.card-details .task-star-button { flex: none; margin-inline-start: auto; }
.task-check:disabled, .task-menu-button:disabled, .task-star-button:disabled { opacity: .55; cursor: wait; }
.task-list-status { display: flex; align-items: center; gap: 6px; }
.task-list-status { color: #575b70; font-size: 11px; }
.task-actions-menu {
  position: fixed;
  z-index: 45;
  display: grid;
  width: min(184px,calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(31 34 52 / 15%);
}
.task-actions-menu[hidden] { display: none; }
.task-actions-menu button {
  min-height: 36px;
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}
.task-actions-menu button:hover, .task-actions-menu button:focus-visible { background: var(--ps); }
.task-actions-menu .task-menu-delete { color: #9d3a4e; }
#boardTasks[hidden], #listTasks[hidden] { display: none; }
#listTasks .table-row { overflow-wrap: anywhere; }
@media(max-width: 1050px) {
  #listTasks .table-row .task-list-status { display: flex; grid-column: 1 / -1; }
  #listTasks .table-row:has(.task-star-button) .task-list-status { grid-column: 1 / -2; }
  #listTasks .table-row .task-star-button { display: grid; grid-column: -2 / -1; justify-self: end; }
}
@media(max-width: 760px) {
  :root {
    --mobile-topbar-height: calc(60px + env(safe-area-inset-top, 0px));
    scroll-padding-top: var(--mobile-topbar-height);
  }
  .app-shell { padding-top: var(--mobile-topbar-height); }
  .topbar {
    position: fixed;
    inset: 0 0 auto;
    height: var(--mobile-topbar-height);
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }
  .topbar .menu {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--ink);
    cursor: pointer;
  }
  #tasksView .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  #tasksView .filters select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px;
    font-size: 16px;
  }
  #tasksView .filter-btn { grid-column: 2; justify-self: end; min-height: 44px; }
  #boardTasks { grid-template-columns: minmax(0, 1fr); gap: 12px; overflow-x: visible; }
  #boardTasks .kanban-col { min-height: auto; }
  #boardTasks .kanban-col > .empty { padding: 12px 8px; }
  #boardTasks .kanban-card:last-child { margin-bottom: 0; }
  #listTasks .table-head, #listTasks .table-row {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 8px;
    padding-inline: 10px;
  }
}

#taskDialog {
  --editor-gutter: 35px;
  --editor-inset: 24px;
  --editor-field: #f3f7fb;
  --editor-top: max(env(safe-area-inset-top), clamp(12px, 5dvh, 40px));
  width: min(540px, calc(100% - 24px));
  margin-block: var(--editor-top) auto;
  max-height: calc(100dvh - var(--editor-top) - max(12px, env(safe-area-inset-bottom)));
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
}
#taskDialog::backdrop { background: rgb(32 29 52 / 44%); backdrop-filter: none; }
#taskDialog [hidden] { display: none; }
.editor-line-icon {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#taskDialog .task-close {
  position: absolute;
  z-index: 1;
  inset: 10px 12px auto auto;
  display: grid;
  place-items: center;
  padding: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
#taskDialog .task-close:hover { background: var(--editor-field); }

.create-item-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  padding: 0 var(--editor-inset) 0 calc(var(--editor-inset) + var(--editor-gutter));
}
.create-item-types button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.create-item-types .editor-line-icon { width: 16px; height: 16px; }
.create-item-types button:hover { background: var(--editor-field); }
.create-item-types button[aria-pressed="true"] { background: var(--ps); color: #0759a6; }

.editor-title-field {
  margin: 39px var(--editor-inset) 13px calc(var(--editor-inset) + var(--editor-gutter));
}
.editor-title-field input {
  margin: 0;
  padding: 4px 0 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 23px;
  font-weight: 600;
}
.editor-title-field input:focus { border-bottom-color: var(--p); box-shadow: 0 1px 0 var(--p); }
.editor-title-field input:focus-visible { outline: 0; }
#taskDialog form { display: grid; gap: 12px; padding: 16px var(--editor-inset) 19px; }
.editor-row {
  display: grid;
  grid-template-columns: var(--editor-gutter) minmax(0, 1fr);
  align-items: start;
}
.editor-row > .editor-line-icon { margin-top: 8px; color: var(--muted); }
.editor-schedule { min-width: 0; margin: 0; padding: 0; border: 0; }
.editor-date-row { display: flex; align-items: center; gap: 7px; }
.editor-date-row + .editor-date-row { margin-top: 6px; }
#taskDialog form label { min-width: 0; margin: 0; color: var(--ink); font-size: 13px; }
.editor-date-row > label { flex: 0 0 62px; }
#taskDialog form :is(input:not([type="checkbox"]), textarea, select) {
  margin: 4px 0 0;
  padding: 7px 10px;
  border-color: var(--line);
  background: var(--editor-field);
  color: var(--ink);
  font-size: 13px;
}
#taskDialog form textarea { display: block; resize: vertical; }
#taskDialog form .editor-date-row input { margin: 0; min-width: 0; min-height: 37px; }
.editor-date-row input[type="date"] { flex: 1 1 0; width: auto; }
.editor-date-row input[type="time"] { flex: 0 0 126px; width: 126px; }
#calendarEventForm .editor-date-row { flex-wrap: wrap; }
.event-clock-range {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 252px;
  max-width: 100%;
  color: var(--muted);
}
#calendarEventForm .event-clock-range input[type="time"] {
  flex: 1 1 0;
  width: 0;
  padding-inline: 7px;
}
#taskTimeField:disabled { color: var(--muted); opacity: .7; }
#taskDialog form input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--p); }
#taskDialog form .check { display: flex; gap: 8px; align-items: center; min-height: 33px; }
#taskDialog form .editor-all-day { margin-top: 4px; }
#calendarEventForm .event-meet { align-self: center; }
#eventCalendarPermission, #taskFormError, .event-form-error { margin-inline-start: var(--editor-gutter); }
#taskFormError, .event-form-error { margin-block: 0; padding: 9px; border-radius: 8px; background: #fff1f1; color: #9b2838; }
:is(#eventGoogleSettings, #taskGoogleSettings, #taskReloadLists) { padding-left: 0; background: transparent; }
#taskDialog .modal-actions { margin-top: 0; padding-top: 12px; border-top: 1px solid var(--line); }
#taskDialog .modal-actions .primary { min-width: 76px; min-height: 40px; padding-inline: 16px; }
#workspaceShell #taskDialog .modal-actions .primary:disabled { background: #e6edf4; color: #52667a; box-shadow: none; cursor: default; }
#taskForm .task-repeat-field { display: block; width: min(100%, 256px); }
.task-destination { min-width: 0; color: var(--muted); font-size: 13px; }
#taskDestination { margin: 5px 0 0; }
#taskDestination:empty { display: none; }
#taskGoogleListField select { max-width: 310px; }
#taskDialog form :is(input, textarea, select):focus { border-color: var(--p); }

@media (max-width: 520px) {
  #taskDialog { --editor-gutter: 28px; --editor-inset: 15px; }
  #taskDialog form { gap: 10px; }
}
@media (max-width: 430px) {
  .editor-date-row { flex-wrap: wrap; }
  .editor-date-row > label { flex-basis: 100%; }
  .editor-date-row input[type="date"] { flex: 1 1 125px; width: auto; }
  .editor-date-row input[type="time"] { flex: 0 0 118px; width: 118px; }
  .event-clock-range { flex: 1 1 238px; }
}

.task-progress-control {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0 8px;
  margin: 10px 0 0;
  color: #574d73;
  font-size: 12px;
}
.task-progress-control output { color: #5142aa; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dashboard-task-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 8px;
  max-width: 220px;
  margin-top: 7px;
  color: #574d73;
  font-size: 11px;
}
.dashboard-task-progress strong { color: #5142aa; font-variant-numeric: tabular-nums; }
.dashboard-task-progress progress { grid-column: 1 / -1; width: 100%; height: 6px; accent-color: var(--p); }
.task-progress-control input {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  height: 26px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: pan-y;
}
.task-progress-control input:active { cursor: grabbing; }
.task-progress-control input:disabled { opacity: .6; cursor: wait; }
.task-progress-control input:focus-visible { outline: 2px solid var(--p); outline-offset: 1px; }
.task-progress-control input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #6c5ce7 var(--task-progress), #e5e0ef var(--task-progress));
}
.task-progress-control input::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #6c5ce7 var(--task-progress), #e5e0ef var(--task-progress));
}
.task-progress-control input::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border: 2px solid #6c5ce7;
  border-radius: 50%;
  background: white;
}
.task-progress-control input::-moz-range-thumb {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 2px solid #6c5ce7;
  border-radius: 50%;
  background: white;
}
.table-row .task-progress-control { max-width: 220px; }

#calendarView [hidden] { display: none; }
.calendar-layout-switch { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: #f0f1f6; }
.calendar-layout-switch button {
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #52586a;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.calendar-layout-switch button[aria-pressed="true"] { background: #fff; color: #5142aa; box-shadow: var(--shadow); }
#calendarTiles .week-labels, #calendarGrid { grid-template-columns: repeat(7,minmax(0,1fr)); }
#calendarGrid .calendar-day { min-height: 120px; }
.calendar-grid-blank { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8f9fb; }
.calendar-day > time { display: inline-block; padding: 3px 6px; border-radius: 6px; color: #4c5366; font-size: 12px; font-weight: 700; }
.calendar-today > time { background: var(--ps); color: #5142aa; }
.calendar-mobile-weekday { display: none; }
.calendar-day ul { display: grid; gap: 5px; margin: 7px 0 0; padding: 0; list-style: none; }
.calendar-grid-event {
  display: grid;
  gap: 2px;
  padding: 5px 6px;
  border-inline-start: 2px solid #82b9a8;
  border-radius: 5px;
  background: #eaf6f1;
  color: #234e43;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.calendar-grid-event small { font-size: 10px; font-weight: 650; }
.calendar-grid-event a { color: inherit; text-underline-offset: 2px; }
.calendar-grid-meet { justify-self: start; font-size: 11px; }
@media(max-width: 760px) {
  #calendarGrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #calendarGrid .calendar-grid-blank { display: none; }
  .calendar-mobile-weekday { display: inline; color: #566173; font-size: 11px; }
}

.work-item-title { display: flex; align-items: flex-start; gap: 6px; overflow-wrap: anywhere; }
.work-item-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
}
.work-item-icon--event { color: #245f4e; background: #e1f2eb; }
.work-item-icon--event::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.work-item-icon--event::after {
  position: absolute;
  top: 7px;
  width: 10px;
  border-top: 1px solid currentColor;
  content: '';
}
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 12px; }
.dashboard-grid > .panel, .dashboard-side { min-width: 0; }
.dashboard-side { display: grid; gap: 12px; }
.dashboard-grid .panel > .panel-head {
  min-height: 48px;
  padding: 9px 12px;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.dashboard-grid .panel > .panel-head h2 { margin: 0; font-size: 14px; line-height: 1.28; }
.dashboard-grid .panel > .panel-head button { flex-shrink: 0; }
.dashboard-grid .schedule { padding: 2px 12px; }
.dashboard-grid .task-due-preview { padding-block: 8px; }
@media(min-width: 1040px) {
  .dashboard-grid {
    grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
    grid-template-areas: "calendar priorities" "calendar deadlines";
    grid-template-rows: auto 1fr;
  }
  .dashboard-calendar { grid-area: calendar; }
  .dashboard-priorities { grid-area: priorities; }
  .dashboard-side { grid-area: deadlines; }
}
@media(min-width: 1280px) {
  .dashboard-grid {
    grid-template-columns: minmax(0,1.05fr) minmax(0,1.18fr) minmax(0,.75fr);
    grid-template-areas: "calendar priorities deadlines";
    grid-template-rows: auto;
  }
}
.dashboard-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 9px;
  padding: 9px 12px 12px;
}
.dashboard-calendar-week {
  min-width: 0;
  align-self: start;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f8fc;
}
.dashboard-calendar-week-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 8px; }
#dashboardCalendarRange { margin: 0; color: #575b70; font-size: 12px; font-weight: 650; }
#dashboardCalendarUpcoming[aria-pressed="true"] { border-color: #d9d1fa; color: #5142aa; background: var(--ps); }
.dashboard-calendar-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
.dashboard-calendar-days button {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 48px;
  min-width: 0;
  padding: 5px 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.dashboard-calendar-days button:hover:not(:disabled) { border-color: #d9d1fa; }
.dashboard-calendar-days button[aria-current="date"] { border-color: #b8acf3; color: #5142aa; }
.dashboard-calendar-days button[aria-pressed="true"] { border-color: var(--p); background: var(--ps); color: #5142aa; }
.dashboard-calendar-days button:disabled { cursor: default; opacity: .75; }
.dashboard-calendar-days button span { font-size: 10px; color: #626777; }
.dashboard-calendar-days button strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.dashboard-calendar-dot { width: 5px; height: 5px; border-radius: 50%; }
.dashboard-calendar-dot.has-events { background: #27836a; }
.dashboard-calendar-events { min-width: 0; }
#dashboardEventsHeading { margin: 0 0 7px; font-size: 13px; }
#dashboardEventsStatus { margin: 8px 0 0; color: #566173; font-size: 12px; }
#dashboardEventsStatus:empty, #dashboardEvents:empty { display: none; }
#dashboardEvents { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.dashboard-event {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  column-gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 7px 8px;
  border-inline-start: 2px solid #82b9a8;
  border-radius: 6px;
  background: #f4faf7;
}
.dashboard-event h4 { grid-column: 1; margin: 0; font-size: 13px; line-height: 1.4; }
.dashboard-event time { grid-column: 1; margin-left: 24px; color: #286755; font-size: 12px; }
.dashboard-event .calendar-event-links { grid-column: 2; grid-row: 1 / span 2; }
.dashboard-event .calendar-event-links a { padding: 4px 7px; }
@media(max-width: 520px) {
  .dashboard-event .calendar-event-links { grid-column: 1 / -1; grid-row: auto; margin: 4px 0 0 24px; }
}

.dashboard-overview { display: grid; align-items: center; gap: 12px; margin-bottom: 14px; }
.dashboard-overview > .page-title { min-width: 0; margin: 0; }
.dashboard-overview h1 { overflow-wrap: anywhere; }
.dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.dashboard-stats .stat-card {
  display: grid;
  grid-template-columns: max-content minmax(0,1fr);
  grid-template-areas: "label label" "value note";
  align-items: center;
  gap: 4px 7px;
  padding: 8px 11px 9px;
}
.dashboard-stats .stat-card::after { right: -13px; bottom: -16px; width: 52px; height: 52px; }
.dashboard-stats .stat-top { grid-area: label; gap: 4px; }
.dashboard-stats .stat-top i { flex: 0 0 23px; width: 23px; height: 23px; border-radius: 6px; }
.dashboard-stats .stat-card strong { grid-area: value; margin: 0; font-size: 24px; line-height: 1.05; }
.dashboard-stats .stat-card p { grid-area: note; color: #606777; line-height: 1.25; }
@media(min-width: 1040px) {
  .dashboard-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media(min-width: 1200px) {
  .dashboard-overview { grid-template-columns: minmax(218px,.86fr) minmax(0,2.6fr); gap: 16px; }
  .dashboard-overview h1 { font-size: clamp(20px,1.45vw,25px); }
}

/* Shared navigation and controls */
#workspaceShell, .login-screen {
  --p: #0969c3;
  --ps: #e8f3ff;
  --ink: #182638;
  --muted: #536579;
  --line: #dfe7ef;
  --shadow: 0 1px 2px #162d4609;
}

#workspaceShell {
  min-height: 100vh;
  background: #f6f9fc;
}

#mainSidebar {
  background: #fff;
  color: var(--ink);
  border-inline-end: 1px solid var(--line);
}

.brand-home {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.brand-home img {
  flex: none;
  border-radius: inherit;
  object-fit: contain;
}
.brand-home:hover strong { color: var(--p); }
.brand-home:focus-visible { outline: 2px solid var(--p); outline-offset: 3px; }
#mainSidebar .brand small,
#mainSidebar .nav-label,
#mainSidebar .integration-row small,
#mainSidebar .user small { color: var(--muted); }

#mainSidebar .collapse {
  background: #f1f5f9;
  color: #455b73;
}

#mainSidebar .nav,
#mainSidebar .help,
#mainSidebar .user button { color: #40546b; }

#mainSidebar .nav b { background: #edf2f7; color: #435972; }
#mainSidebar .nav.active { background: var(--ps); color: #0759a6; font-weight: 700; }
#mainSidebar .nav.active::before { content: none; }
#mainSidebar .nav.active b { background: #d5eaff; color: #0759a6; }
#mainSidebar .nav:not(.active):hover,
#mainSidebar .help:hover { background: #f2f6fa; color: var(--ink); }

#mainSidebar .integration-link { color: #40546b !important; }
#mainSidebar .integration-link:hover { background: #f2f6fa !important; color: var(--ink) !important; }
#mainSidebar .user { border-color: var(--line); }

#workspaceShell .topbar { background: #fff; backdrop-filter: none; }
#workspaceShell .global-search { background: #f3f7fb; }
#workspaceShell .global-search:focus-within { border-color: var(--p); }
#workspaceShell .global-search kbd { color: #536579; border-color: var(--line); }
#workspaceShell .primary { background: var(--p); box-shadow: none; }
#workspaceShell .primary:hover:not(:disabled) { background: #0759a6; }
#workspaceShell :is(button, a, summary):focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }

/* Dashboard */
.dashboard-overview { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
.dashboard-overview h1 { font-size: clamp(21px, 2vw, 29px); }

.dashboard-stats {
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  overflow: hidden;
}

.dashboard-stats .stat-card {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "label" "value" "note";
  align-content: start;
  gap: 4px;
  padding: 12px 15px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.dashboard-stats .stat-card::after { content: none; }
.dashboard-stats .stat-top { color: var(--muted); }
.dashboard-stats .stat-top span { font-size: 12px; }
.dashboard-stats .stat-top i { background: var(--ps); color: #0759a6; }
.dashboard-stats .stat-card strong { font-size: 25px; font-variant-numeric: tabular-nums; }
.dashboard-stats .stat-card p { color: var(--muted); font-size: 12px; line-height: 1.4; }
.dashboard-stats .stat-card p b { color: #166c52; }

.dashboard-grid, .dashboard-side { gap: 16px; }
.dashboard-grid .panel > .panel-head { min-height: 52px; padding: 10px 15px; flex-wrap: wrap; gap: 5px 10px; }
.dashboard-grid .panel > .panel-head h2 { font-size: 16px; }
.dashboard-grid .panel-head :is(.mini-btn, .text-btn) { font-size: 12px; }
.dashboard-grid .schedule { padding: 2px 15px; }
.dashboard-grid .task-due-preview { padding-block: 10px; }
#priorityTasks .task {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 12px;
}
.dashboard-task-copy { min-width: 0; overflow-wrap: anywhere; }
.dashboard-task-copy h3,
.dashboard-grid .task-due-preview span,
.dashboard-event h4 { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.4; }
.dashboard-task-copy .due { margin: 3px 0 0; color: var(--muted); }
.dashboard-task-copy .due.overdue { color: #a92a42; }
.dashboard-task-copy .due,
.dashboard-task-progress,
.dashboard-grid .task-due-preview small { font-size: 12px; line-height: 1.4; }
.dashboard-task-progress { color: var(--muted); }
.dashboard-task-progress strong { color: #0759a6; }
.dashboard-grid .task-due-preview small { color: var(--muted); }

.dashboard-calendar-layout { padding: 11px 15px 15px; gap: 13px; }
.dashboard-calendar-week { background: #f5f8fc; }
#dashboardCalendarRange { color: var(--ink); }
#dashboardCalendarUpcoming[aria-pressed="true"],
.dashboard-calendar-days button[aria-current="date"],
.dashboard-calendar-days button[aria-pressed="true"] { border-color: #8bb9e5; color: #0759a6; }
.dashboard-calendar-days button:hover:not(:disabled) { border-color: #8bb9e5; }
.dashboard-calendar-days button[aria-pressed="true"] { background: var(--ps); }
.dashboard-calendar-dot.has-events { background: var(--p); }
.dashboard-event { background: #f2f7fd; border-inline-start-color: #9ac6ee; padding: 8px 9px; }
.dashboard-event time { color: var(--muted); }
.dashboard-event .calendar-event-links :is(a, .calendar-detail-button) {
  background: transparent;
  color: #49677f;
  font-weight: 500;
}
.dashboard-event .calendar-event-links :is(a, .calendar-detail-button):hover {
  background: var(--ps);
  color: #0759a6;
}
.dashboard-event .calendar-event-links :is(a, .calendar-detail-button):focus-visible {
  outline: 2px solid var(--p);
  outline-offset: 1px;
}

@media (max-width: 520px) {
  .dashboard-overview { gap: 12px; margin-bottom: 15px; }
  .dashboard-stats .stat-card { padding: 10px 11px; }
  .dashboard-grid .panel > .panel-head { padding-inline: 12px; }
  .dashboard-calendar-layout { padding-inline: 12px; }
}

main:has(> #tasksView.active) #workspacePageHeading { margin-bottom: 12px; }
main:has(> #tasksView.active) #pageTitle { font-size: clamp(20px, 2vw, 24px); margin-block: 2px; }
#tasksView .view-toolbar { margin-bottom: 9px; }
#boardTasks .task-progress-control { margin-top: 6px; }

/* Compact help index and article reader */
#helpView { scroll-margin-top: 76px; }
main:has(> #helpView.active) #workspacePageHeading { margin-bottom: 12px; }
main:has(> #helpView.active #guideReading:not([hidden])) #workspacePageHeading { display: none; }
.guide-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  max-width: 1360px;
  margin-bottom: 8px;
}
.guide-toolbar .guide-search { flex: 1 1 210px; max-width: 315px; margin: 0; }
.guide-toolbar .guide-search input { margin: 0; padding-block: 7px; font-size: 13px; }
.guide-toolbar .guide-back { margin: 0; font-size: 13px; }
.guide-toolbar .guide-back:not([hidden]) + .guide-search { margin-inline-start: auto; }

.guide-index { grid-template-columns: repeat(auto-fit, minmax(min(100%, 201px), 1fr)); gap: 8px; }
.guide-topic { padding: 11px 12px; gap: 4px; font-size: 13px; }
.guide-topic strong { font-size: 14px; }
.guide-topic span { line-height: 1.4; }
.guide-feature { padding: 13px 15px; }
.guide-feature strong { font-size: 17px; }
.guide-group { margin-top: 13px; }
.guide-group h2 { margin-bottom: 7px; }
.guide-sequence .guide-topic::before { width: 20px; height: 20px; margin: 0; font-size: 11px; }
#guideSearchResults .guide-feature { padding: 11px 12px; }
#guideSearchResults .guide-feature strong { font-size: 14px; }

.guide-reading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(235px, 305px);
  gap: 14px;
  align-items: start;
  max-width: 1360px;
}
.guide-reading-body { min-width: 0; }
.guide-reading-rail { display: grid; gap: 10px; }
.guide-outline, .guide-related { padding: 10px 12px; }
.guide-outline h2 { margin: 0 0 5px; font-size: 14px; }
.guide-outline ol { padding-inline-start: 22px; margin: 0; color: var(--muted); font-size: 12px; }
.guide-outline button { display: block; width: 100%; padding: 6px 2px; border: 0; background: transparent; color: #0759a6; text-align: start; font: inherit; line-height: 1.45; }
.guide-outline button:hover { text-decoration: underline; }
.guide-steps h3 { scroll-margin-top: 84px; }
.guide-related h2 { margin: 0 0 4px; font-size: 14px; }
.guide-related nav a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 2px;
  border-top: 1px solid var(--line);
  color: #0759a6;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}
.guide-related nav a:first-child { border-top: 0; }
.guide-related nav a:hover { text-decoration: underline; }
.guide-related nav a > span { flex: none; }
.guide-article .guide-hero { padding: 9px 12px; gap: 7px 12px; margin-bottom: 8px; border-radius: 10px; background: #fff; border-color: var(--line); }
.guide-hero h1 { margin: 0; font-size: 18px; line-height: 1.35; }
.guide-article .guide-hero p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.guide-article .guide-hero .primary { flex: none; max-width: 100%; padding: 7px 10px; font-size: 12px; }
.guide-article .guide-steps { padding: 2px 14px; }
.guide-article .guide-steps li { grid-template-columns: 25px minmax(0,1fr); gap: 8px; padding: 10px 0; }
.guide-article .guide-steps li > span { width: 25px; height: 25px; border-radius: 7px; background: var(--ps); font-size: 12px; }
.guide-article .guide-steps h3 { margin-bottom: 3px; font-size: 14px; }
.guide-article .guide-steps p { max-width: 82ch; font-size: 13px; line-height: 1.55; }
.guide-article .guide-notice { padding: 9px 12px; margin-bottom: 10px; gap: 5px 11px; }
.guide-article .guide-images { margin: 8px 0; }
.guide-overview-image img { max-width: min(100%, 640px); }
@media (max-width: 1000px) {
  .guide-reading { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  .guide-toolbar .guide-back:not([hidden]) + .guide-search { margin-inline-start: 0; }
  .guide-feature .guide-cta { padding: 6px 9px; }
}

/* Google integrations */
main:has(> #integrationsView.active) #workspacePageHeading { margin-bottom: 13px; }
#integrationsView .google-connect-panel { gap: 12px; padding: 12px 14px; margin-bottom: 10px; }
#integrationsView .connect-copy { gap: 10px; }
#integrationsView .connect-copy > div { min-width: 0; }
#integrationsView .google-big { width: 34px; height: 34px; border-radius: 9px; font-size: 17px; }
#integrationsView .connect-copy h3 { margin: 0 0 3px; font-size: 14px; overflow-wrap: anywhere; }
#integrationsView .connect-copy p { font-size: 12px; }
.google-account-label { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; margin-bottom: 3px; }
#integrationsView .google-account-label h3 { margin: 0; }
#integrationsView .connection-badge { padding: 3px 7px; font-size: 11px; font-weight: 650; color: #166c52; background: #e8f6ef; }
#integrationsView .connect-actions { flex-wrap: wrap; gap: 6px; }
#integrationsView :is(.connect-actions button, .google-connect-btn) { min-height: 34px; padding: 6px 10px; font-size: 12px; }

#integrationsView .workspace-services {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 184px), 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
#integrationsView .workspace-service { padding: 9px 10px; border-radius: 10px; }
#integrationsView .workspace-service.enabled:not(.sync-error) { background: #fff; border-color: var(--line); }
#integrationsView .workspace-service label { gap: 7px; margin: 0; font-size: 12px; }
#integrationsView .workspace-service small { margin-top: 2px; font-size: 11px; }
#integrationsView .workspace-service input {
  position: static;
  order: 1;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin: 0 0 0 auto;
  opacity: 1;
  pointer-events: auto;
  accent-color: var(--p);
}
#integrationsView .workspace-service .service-icon { width: 28px; height: 28px; border-radius: 7px; }
#integrationsView .workspace-service > b { margin: 5px 0 0 35px; }
#integrationsView .workspace-service.sync-error > b { margin-inline-start: 0; overflow-wrap: anywhere; }
#integrationsView .workspace-service .enable-api { margin-top: 6px; }
#integrationsView .sync-activity .panel-head { min-height: 0; padding: 9px 13px; }
#integrationsView .sync-activity .panel-head h2 { margin: 0; font-size: 16px; }
#integrationsView .sync-activity .panel-head select { margin: 0; padding: 6px 9px; font-size: 12px; }
#integrationsView .google-item { gap: 9px; padding: 8px 13px; overflow-wrap: anywhere; }
#integrationsView .google-item .service-icon { width: 30px; height: 30px; }
#integrationsView .google-items > .empty { padding: 17px; }

.login-screen { overflow-y: auto; align-items: safe center; color: var(--ink); --shadow: 0 12px 36px #163c6310; }
.login-card small { color: var(--muted); }
.legal-footer {
  margin-block-start: 22px;
  padding-block-start: 14px;
  border-block-start: 1px solid #dfe7ef;
  text-align: center;
}
.legal-footer a { display: inline-block; padding: 7px 10px; }
.legal-footer a, .legal-content a { color: #095ca8; text-underline-offset: 3px; }
.legal-footer a:focus-visible, .legal-content a:focus-visible {
  outline: 2px solid #0969c3;
  outline-offset: 3px;
}

.legal-page { background: #f6f9fc; color: #182638; }
.legal-content {
  width: min(760px, calc(100% - 32px));
  margin: clamp(16px, 5vw, 48px) auto;
  padding: clamp(20px, 5vw, 48px);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.legal-content h1 { margin: 0; font-size: clamp(24px, 5vw, 32px); line-height: 1.25; }
.legal-content header p { color: #536579; }
.legal-content section { margin-block-start: 24px; }
.legal-content h2 { margin: 0; font-size: 16px; line-height: 1.4; }
.legal-content p, .legal-content ul { margin: 8px 0 0; }
.legal-content ul { padding-inline-start: 21px; }

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.app-shell > .topbar { flex: none; }
.app-shell > main {
  flex: 1 0 auto;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 24px;
}
.workspace-legal-footer {
  width: calc(100% - 64px);
  border-block-start: 0;
  max-width: 1536px;
  margin: 0 auto;
  padding: 3px 0 max(3px, env(safe-area-inset-bottom, 0px));
  font-size: 12px;
}
.workspace-legal-footer a { text-decoration: none; }
@media (max-width: 760px) {
  .workspace-legal-footer { width: calc(100% - 28px); }
}

/* Account administration */
main:has(> #adminView.active) #workspacePageHeading { margin-bottom: 15px; }
#adminView { max-width: 1220px; }
.account-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0 0 12px; }
.account-summary > div { padding: 10px 14px; }
.account-summary > div + div { border-inline-start: 1px solid var(--line); }
.account-summary dt { color: var(--muted); font-size: 12px; }
.account-summary dd { margin: 4px 0 0; font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }

.account-directory { overflow: hidden; }
.account-directory-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 15px; flex-wrap: wrap; padding: 10px 14px; }
.account-directory-head h2 { margin: 0; font-size: 16px; }
#adminSearchStatus { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
#adminSearchStatus:empty { display: none; }
.account-search { width: min(100%, 270px); margin: 0; }
.account-search input { margin: 0; padding: 8px 10px; font-size: 13px; }
.account-search input:focus { border-color: var(--p); }
.account-table { width: 100%; border-collapse: collapse; text-align: start; font-size: 13px; }
.account-table :is(th,td) { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; text-align: start; }
.account-table thead th { padding-block: 8px; background: #f6f9fc; color: var(--muted); font-size: 12px; font-weight: 650; }
.account-table tbody tr:hover { background: #f8fbfe; }
.account-table .account-action { text-align: end; }
.account-action .secondary { min-height: 33px; padding: 6px 10px; white-space: nowrap; font-size: 12px; }
.account-identity > span { vertical-align: middle; }
.account-identity > span:last-child { display: inline-block; width: calc(100% - 45px); overflow-wrap: anywhere; }
.account-identity strong { font-size: 14px; font-weight: 650; }
.account-identity small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; }
.account-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-inline-end: 7px; border-radius: 8px; background: var(--ps); color: #0759a6; font-size: 12px; }
.account-status { display: inline-block; padding: 4px 7px; border-radius: 999px; font-size: 11px; font-weight: 650; }
.account-status.is-active { background: #e8f6ef; color: #166c52; }
.account-status.is-suspended { background: #fff1e1; color: #80510d; }
.account-mobile-label { display: none; }
.account-empty { margin: 0; padding: 16px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .account-summary > div { padding: 8px 9px; }
  .account-summary dt { line-height: 1.35; }
  .account-summary dd { font-size: 18px; }
  .account-search { width: 100%; }
  .account-table, .account-table tbody { display: block; }
  .account-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .account-table tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
  .account-table :is(th,td) { padding: 0; border: 0; }
  .account-table .account-identity { grid-column: 1 / -1; }
  .account-mobile-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; }
  .account-table .account-action { align-self: end; }
}
