/* Native-feeling mobile workbench, shared by the server and trial. */
:root{--muted:#746b75;--line:#eee9ec;--border:var(--line)}.ui-icon{width:22px;height:22px;display:block;flex:none}.nav-icon{display:grid;place-items:center}.row>div,.task .info,.setting>div{min-width:0}button,a,input,textarea{ -webkit-tap-highlight-color:transparent}button{transition:background .16s,transform .16s}button:active{transform:scale(.98)}.today-actions>button{display:flex;align-items:center;justify-content:center;gap:8px}.welcome-caption{display:block;font-size:14px;letter-spacing:.08em;margin-bottom:10px}.stat-icon{display:none}.quick-icon{display:grid;place-items:center;width:42px;height:42px;background:var(--soft);border-radius:13px;color:var(--accent);margin-bottom:12px}#help{display:flex;align-items:center;gap:6px}.account-menu button{display:flex;align-items:center;gap:10px}.library-detail summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px}.library-detail summary::-webkit-details-marker{display:none}.library-detail summary:after{content:'＋';color:var(--muted);font-size:20px;flex:none}.library-detail[open] summary:after{content:'−'}.library-detail summary h3{margin:0}.library-detail[open] summary{margin-bottom:16px}
@media(max-width:760px){
 body{background:#f5f6f8;line-height:1.55;overflow-x:clip}main{margin:0;padding:0 16px calc(112px + env(safe-area-inset-bottom));max-width:100%;width:100%}aside{display:none}header{padding:20px 2px 18px;margin:0;gap:12px}header .eyebrow{font-size:14px;letter-spacing:.025em;color:var(--muted);font-weight:500}header h1{font-size:25px;letter-spacing:-.03em;line-height:1.25;margin-top:5px}header #help{width:44px;height:44px;min-height:44px;display:grid;place-items:center;background:white;border:1px solid var(--line);border-radius:50%;padding:10px;color:var(--ink)}#help span{display:none}#help .ui-icon{width:20px;height:20px}h2{font-size:18px;line-height:1.45;letter-spacing:-.02em;margin-bottom:14px}h3{font-size:16px;line-height:1.5}p{overflow-wrap:anywhere}.muted,.date{font-size:14px;line-height:1.6}.card{padding:18px;border:1px solid #eceef2;border-radius:20px;box-shadow:0 3px 14px #25334a04}.section-gap{margin-top:16px}.grid{gap:12px}.cols2{grid-template-columns:1fr}.cols3{grid-template-columns:repeat(2,minmax(0,1fr))}.grid>*{min-width:0}.row{gap:10px}.row.between{gap:12px}.row>button{max-width:100%}button,.button{min-height:44px;border-radius:12px;font-size:14px;line-height:1.45;padding:10px 14px;touch-action:manipulation}.small{min-height:40px;font-size:14px;padding:9px 12px}.quiet{color:#635969;border-color:#e8e4e8;background:#fff}.link-like{padding:8px 0;font-size:14px;min-height:40px;flex-shrink:0}.pill{font-size:13px;line-height:1.5;padding:4px 10px;max-width:100%}.notice{font-size:14px;line-height:1.65;padding:14px 16px;margin-bottom:16px;border-radius:14px}.welcome{border:0;border-radius:24px;padding:23px 22px;margin:0 0 14px;color:#fff;background:var(--accent);background:linear-gradient(125deg,var(--accent),color-mix(in srgb,var(--accent),#391425 28%));box-shadow:0 8px 22px #a42c5514;min-height:134px;position:relative;overflow:hidden}.welcome h2{font-size:24px;font-weight:650;line-height:1.35;color:white;margin:0 0 7px}.welcome .date{color:#fff;opacity:.82;margin:0;font-size:14px}.welcome-caption{color:#fff;opacity:.76;font-size:13px;margin-bottom:8px}.welcome .seal{flex:none;font-family:serif;width:64px;height:64px;display:grid;place-items:center;border:1px solid #ffffff55;background:#ffffff0e;color:#fff;border-radius:19px;font-size:34px;padding:0;transform:rotate(-7deg);opacity:.9}.today-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.today-actions button{min-height:46px;border-radius:14px;text-align:center}.today-actions button:first-child{font-weight:500}.mobile-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:14px}.mobile-stats .stat{padding:14px 11px;position:relative;border-radius:17px;box-shadow:none;min-height:130px}.mobile-stats .stat-icon{display:block;color:var(--accent);margin-bottom:9px}.stat-icon .ui-icon{width:19px;height:19px}.mobile-stats strong{font-size:29px;line-height:1.2;margin:8px 0;letter-spacing:-.04em;font-weight:700}.mobile-stats strong small{font-size:13px;font-weight:500;letter-spacing:0;color:var(--muted)}.mobile-stats .muted{font-size:13px;line-height:1.6;display:block}.mobile-stats .pill{font-size:12px;padding:3px 6px;white-space:normal}.mobile-stats .progress{margin-top:12px;height:4px}.assistant{background:#f4f0fc;border-color:#e9e1f6}.assistant h2{color:#655086}.assistant>p{font-size:15px;line-height:1.85;margin:0 0 16px}.assistant .muted{font-size:13px;margin:12px 0 0}.task{padding:15px 0;gap:11px}.task .avatar{width:42px;height:42px;flex-shrink:0;border-radius:14px}.task h3{font-size:16px;margin:0 0 4px}.task .small{flex:none;min-width:60px}.task .info .muted{font-size:13px}.avatar{flex-shrink:0}.guide-card{padding:17px 18px}.guide-card .row.wrap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.guide-card .row.wrap button{text-align:left;min-height:48px;font-size:14px;line-height:1.55;font-weight:500;background:#f7f8fa;border:0}.guide-card .row.between h2{font-size:16px}.guide-card .row.between>button{padding:8px;font-size:13px;min-height:40px;background:none;border:0;flex:none}.quick-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.quick-actions .tool-card{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:15px 8px;min-height:109px;border-radius:18px}.quick-actions h3{font-size:14px;line-height:1.5;margin:0;text-align:center;font-weight:600}.quick-actions .quick-icon{width:40px;height:40px;margin-bottom:10px}.quick-actions .ui-icon{width:21px;height:21px}.tool-card{min-height:147px;padding:18px;border-radius:18px;box-shadow:0 3px 12px #25334a03}.tool-card:hover{transform:none}.tool-icon{width:39px;height:39px;margin-bottom:12px;border-radius:12px}.tool-card h3{font-size:16px}.tool-card p{font-size:14px;line-height:1.65}.member-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px}.member-toolbar .search{grid-column:1/-1;width:100%;min-width:0;min-height:49px;border-radius:15px;border:1px solid #e6e5e9;padding:12px 16px;box-shadow:0 2px 6px #192d3d02}.member-toolbar>button{font-size:14px;padding:10px 5px;font-weight:500;min-height:44px}.member-toolbar>button:last-child:nth-of-type(4){grid-column:1/-1}.filters{display:flex;flex-wrap:nowrap;gap:8px;overflow:auto;scrollbar-width:none;margin:0 -16px 16px;padding:1px 16px 5px;overscroll-behavior-x:contain}.filters::-webkit-scrollbar{display:none}.filters button{flex:0 0 auto;min-height:40px;padding:9px 15px;border-radius:22px;font-size:14px;white-space:nowrap;border-color:#e7e5e9}.filters button.active{box-shadow:0 3px 8px #b9316015}.client-grid{grid-template-columns:1fr;gap:12px}.client-card{padding:18px;gap:14px}.client-card>.row:first-child{gap:12px}.client-card h3{font-size:17px;font-weight:650}.client-card>.row:first-child p{margin:5px 0 0}.client-card>.row:last-child{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:2px}.client-card>.row:last-child button{min-height:44px;font-size:14px;border-radius:11px}.client-card>.muted{margin:0;line-height:1.9}.setting{padding:16px 0;align-items:flex-start;gap:14px;flex-wrap:wrap}.setting h3{font-size:16px}.setting .row{flex-wrap:wrap;gap:8px}.setting p{font-size:14px}.setting button{min-height:42px}.account-menu{padding:17px 0 0;overflow:hidden}.account-menu>h2{padding:0 18px 12px;margin:0;font-size:16px;color:var(--muted);font-weight:500}.account-menu>.row{display:grid;grid-template-columns:1fr;gap:0}.account-menu button{width:100%;border:0;border-radius:0;background:white;text-align:left;justify-content:flex-start;gap:13px;padding:14px 18px;min-height:54px;font-size:15px;font-weight:500;border-top:1px solid #f1eef1;color:var(--ink)}.account-menu button>.ui-icon{width:21px;height:21px;color:var(--accent)}.account-menu button:after{content:'›';margin-left:auto;color:#b2a7b1;font-size:24px;font-weight:400;line-height:1}.account-menu button:hover{background:#fbf9fb}.copy-card{padding:17px 18px;font-size:16px;line-height:1.9}.copy-card>.pill{font-size:12px;background:transparent;padding:0;color:var(--muted);margin-bottom:7px}.library-detail summary h3{font-size:16px}.library-detail>div{font-size:15px;line-height:1.95}.library-detail button{width:100%;min-height:44px}.poster{min-height:220px;padding:18px 9px;border-width:5px}.poster h2{font-size:22px;letter-spacing:1px;line-height:1.55;margin:10px 0;overflow-wrap:anywhere}.poster p{font-size:14px;line-height:1.8}.poster small{font-size:12px}.post{padding:16px 0}.result{padding:17px;font-size:16px;line-height:1.85;border:1px solid #eee9ee;border-radius:15px;overflow-wrap:anywhere}.client-table{font-size:14px}.client-table th,.client-table td{padding:13px 12px;border-color:var(--line)}#feedback-fab{width:42px;height:42px;min-height:42px;border-radius:50%;padding:10px;bottom:calc(88px + env(safe-area-inset-bottom));right:17px;background:#fff;color:var(--accent);border:1px solid #ebdce2;box-shadow:0 5px 18px #3c203318;display:grid;place-items:center;z-index:12}#feedback-fab span{display:none}#feedback-fab .ui-icon{width:19px;height:19px}#bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;border-top:1px solid #e8e7ec;background:#ffffffed;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);padding:7px 10px calc(7px + env(safe-area-inset-bottom));z-index:20;box-shadow:0 -5px 24px #20304404}#bottom-nav button{min-width:0;min-height:57px;padding:5px 2px;font-size:12px;line-height:1.4;gap:4px;color:#8a818d;font-weight:500;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center}#bottom-nav button.active{background:#fcf0f4;color:var(--accent);font-weight:650}#bottom-nav .nav-icon{width:25px;height:25px;font-size:inherit;display:grid;place-items:center;min-width:0}#bottom-nav .nav-icon .ui-icon{width:23px;height:23px}#bottom-nav .ai-nav .nav-icon{margin:0;border:0;width:28px;height:28px;box-shadow:none;border-radius:10px;background:#f0eafb;color:#7755ae}#bottom-nav .ai-nav.active{background:#f3edfc;color:#7755ae}dialog{position:fixed;inset:auto 0 0;width:100%;max-width:none;max-height:calc(100dvh - 40px);margin:0;border-radius:26px 26px 0 0;padding:13px 20px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -12px 60px #30253728;overscroll-behavior:contain;scroll-padding-top:74px}dialog::before{content:'';display:block;margin:0 auto 17px;width:36px;height:4px;border-radius:3px;background:#ddd6dd}dialog::backdrop{background:#231c2c69;backdrop-filter:blur(4px)}.modal-head{position:sticky;top:-13px;z-index:5;background:#fff;padding:10px 0 14px;margin-bottom:10px;border-bottom:1px solid #f1edf1;gap:12px}.modal-head h2{font-size:20px;line-height:1.45}.modal-head button{width:38px;height:38px;min-height:38px;flex:none;display:grid;place-items:center;padding:0;background:#f4f1f5;border-radius:50%;color:#786d7e;font-size:24px}label{font-size:14px;color:#655b6a;margin-bottom:17px}input,select,textarea{font-size:16px;line-height:1.5;min-height:49px;padding:12px 13px;border:1px solid #e4dfe7;border-radius:13px;background:#fbfafc;color:var(--ink)}input:focus,select:focus,textarea:focus{outline:2px solid #b9316033;border-color:var(--accent);background:#fff}input[type=checkbox]{width:20px!important;height:20px;min-height:20px;vertical-align:middle;margin-right:6px;accent-color:var(--accent)}input[hidden]{display:none}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.form-grid label{min-width:0}.form-grid input,.form-grid select{min-width:0}textarea{min-height:120px}form>button[type=submit],form>button:last-child{width:100%;min-height:49px;margin-top:10px;border-radius:14px;font-size:16px}#toast{bottom:calc(99px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 40px);font-size:14px;line-height:1.6;padding:12px 17px;border-radius:13px;background:#38283c;box-shadow:0 8px 24px #38283c22}#preview-notice{margin:0 -16px;border-radius:0;padding:10px 18px;display:flex;align-items:center;gap:8px;background:#fcf0f4;border:0;border-bottom:1px solid #f1e2e8;font-size:13px;color:#966076;line-height:1.4}#preview-notice b{font-size:13px;color:#94344f}#preview-notice .trial-info{margin-left:auto;border:0;background:none;padding:0 3px;min-height:28px;font-size:13px;color:#985572;font-weight:500}#preview-notice .trial-note{font-size:13px}.empty{padding:34px 20px;border-radius:20px}.empty button{margin-left:12px}.login-card{padding:27px;border-radius:24px}.login-card input{background:white}.login-card .mark{border-radius:16px}
}
@media(max-width:360px){main{padding-left:13px;padding-right:13px}.welcome{padding:21px 17px}.welcome h2{font-size:22px}.welcome .seal{width:54px;height:54px}.mobile-stats .stat{padding:13px 8px}.mobile-stats .muted{font-size:12px}.mobile-stats strong{font-size:27px}.mobile-stats .pill{font-size:11px}.quick-actions{gap:8px}.quick-actions h3{font-size:13px}.member-toolbar>button{font-size:13px}.form-grid{grid-template-columns:1fr}.filters{margin-left:-13px;margin-right:-13px;padding-left:13px;padding-right:13px}#preview-notice{margin-left:-13px;margin-right:-13px;padding-left:15px;padding-right:15px}#preview-notice .trial-note{font-size:12px}dialog{padding-left:17px;padding-right:17px}}
@media(prefers-reduced-motion:reduce){button{transition:none}button:active{transform:none}}

/* Customer directory and raised AI navigation for small screens. */
@media(max-width:760px){
 body{background:radial-gradient(ellipse at 90% 0,#f4e8ef 0,transparent 44%),#f7f3f6}
 body[data-page="clients"] header{padding:20px 2px 16px;align-items:center}
 body[data-page="clients"] header .eyebrow{display:none}
 body[data-page="clients"] header h1{font-size:24px;margin:0;font-weight:750;letter-spacing:0}
 body[data-page="clients"] header>div{flex:1;overflow:hidden}
 body[data-page="clients"] header #help{width:42px;height:42px;min-height:42px;flex:none;border:0;background:#fffafd;box-shadow:0 3px 8px #49354206;color:#63555f}
 body[data-page="clients"] #help .ui-icon{width:24px;height:24px}
 .directory-summary{margin:6px 0 0;color:#867681;font-size:13px;line-height:1.55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .directory-search{height:44px;display:flex;align-items:center;gap:10px;padding:0 15px;border-radius:23px;border:1px solid #ece5eb;background:#fffafd;box-shadow:0 2px 6px #35243606;margin-bottom:12px}
 .directory-search>.ui-icon{width:19px;height:19px;color:#8a7a84}
 .directory-search .search{flex:1;min-width:0;width:100%;padding:0;min-height:42px;border:0;background:transparent;border-radius:0;font-size:14px;outline:0;color:#362c36}
 .directory-search .search::placeholder{color:#8a7a84;opacity:1}
 .directory-search:focus-within{outline:2px solid #b9316022;border-color:#dbb9ca}
 .directory-filters{margin:0 -16px;padding:0 16px 4px;gap:8px}
 .directory-filters button{display:flex;align-items:center;gap:5px;min-height:41px;padding:10px 14px;background:#fffafd;border:1px solid #ece5eb;color:#64555f;font-size:13px;font-weight:650;border-radius:25px;box-shadow:0 1px 3px #402c3503}
 .directory-filters button span{font-size:12px;font-weight:400;opacity:.8}
 .directory-filters button.active{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 4px 12px #b9316025}
 .directory-actions{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 0 20px;color:#897a85;font-size:13px;margin-top:2px}
 .directory-actions b{color:#382d38;font-weight:700}
 .directory-actions>div{display:flex;gap:7px}
 .directory-actions button{display:flex;align-items:center;gap:5px;min-height:38px;font-size:12px;font-weight:650;padding:9px 12px;border-radius:25px;background:#fffafd;border:1px solid #eee7ec;color:#62545f;white-space:nowrap}
 .directory-actions .ui-icon{width:16px;height:16px}
 .directory-list{border:1px solid #ece5eb;border-radius:25px;background:#fffafd;overflow:hidden;box-shadow:0 2px 7px #3f293906}
 .directory-member{display:flex;align-items:center;width:100%;min-height:96px;padding:15px 13px;gap:11px;border:0;border-bottom:1px solid #eee7ed;border-radius:0;background:transparent;color:#352a35;text-align:left;font-weight:400;position:relative}
 .directory-member:last-child{border-bottom:0}
 .directory-member:active{background:#f9eff5;transform:none}
 .directory-member:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
 .directory-avatar{width:43px;height:43px;flex:0 0 43px;border-radius:50%;display:grid;place-items:center;font-size:18px;font-weight:700;position:relative}
 .directory-avatar.female{color:#b93160;background:#fcecf3;border:1px solid #f8ccde}
 .directory-avatar.male{color:#6e5e69;background:#f2edf2;border:1px solid #e7dfe7}
 .directory-avatar i{position:absolute;right:-1px;bottom:0;width:13px;height:13px;border-radius:50%;background:#36a16b;border:2px solid #fffafd}
 .directory-avatar i.due{background:#df4379}
 .directory-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
 .directory-name{display:flex;align-items:baseline;gap:7px;min-width:0;white-space:nowrap}
 .directory-name strong{font-size:15px;font-weight:750;overflow:hidden;text-overflow:ellipsis;max-width:58%}
 .directory-name>span{font-size:13px;color:#867680;overflow:hidden;text-overflow:ellipsis;min-width:0}
 .directory-meta{display:block;font-size:12px;line-height:1.5;color:#8a7986;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .directory-tags{display:flex;gap:5px;align-items:center;overflow:hidden;white-space:nowrap}
 .directory-tags>span{padding:3px 7px;border-radius:12px;font-size:11px;line-height:1.45;font-weight:600;max-width:100px;overflow:hidden;text-overflow:ellipsis}
 .intent-tag{background:#f2edf2;color:#6a5967}
 .profile-tag{background:#fbedf3;color:#bb3263}
 .directory-reminder{flex:none;position:absolute;right:36px;top:41px;max-width:93px;padding:5px 9px;background:#fcebf3;color:#ba2f61;border-radius:20px;font-size:12px;line-height:1.4;font-weight:650}
 .directory-member:has(.directory-reminder) .directory-meta{padding-right:86px}
 .directory-chevron{font-size:25px;color:#bbaeb9;flex:none;line-height:1}
 .directory-workflows{margin-top:20px;background:#fffafd;border-color:#ece5eb}
 #bottom-nav{padding-top:8px;background:#fffafdf0;border-top-color:#eee5eb;box-shadow:none;overflow:visible}
 #bottom-nav button{font-size:12px;gap:3px;color:#897782;background:transparent!important}
 #bottom-nav button.active{color:var(--accent)}
 #bottom-nav button:not(.ai-nav) .nav-icon{width:29px;height:26px;border-radius:10px;position:relative}
 #bottom-nav button.active:not(.ai-nav) .nav-icon{background:#fcebf3}
 #bottom-nav .nav-icon .ui-icon{width:24px;height:24px}
 #bottom-nav .has-notice .nav-icon:after{content:'';position:absolute;top:0;right:0;width:5px;height:5px;border-radius:50%;background:#df4379}
 #bottom-nav .ai-nav{position:relative;overflow:visible}
 #bottom-nav .ai-nav .nav-icon{position:absolute;bottom:15px;width:58px;height:58px;border-radius:50%;margin:0;background:linear-gradient(135deg,#bb5085,#7045a0);color:#fff;box-shadow:0 0 0 5px #f4eaf780,0 6px 18px #774b9230;border:1px solid #c59abb;display:grid;place-items:center}
 #bottom-nav .ai-letter{font-size:29px;font-weight:800;letter-spacing:-1px;line-height:1}
 #bottom-nav .ai-spark{position:absolute;right:11px;top:8px;font-size:10px;color:#fff}
 #bottom-nav .ai-caption{display:none}
 #member-add-fab{display:grid;place-items:center;position:fixed;right:16px;bottom:calc(86px + env(safe-area-inset-bottom));width:51px;height:51px;min-height:51px;padding:12px;border-radius:50%;background:linear-gradient(135deg,#bd4c83,#724aa5);border:1px solid #b88caf;color:#fff;z-index:16;box-shadow:0 6px 14px #643d7829}
 #member-add-fab .ui-icon{width:27px;height:27px;stroke-width:2}
 body[data-page="clients"] #feedback-fab{right:74px;bottom:calc(91px + env(safe-area-inset-bottom));width:40px;height:40px;background:#fffafd;color:#76606f;border-color:#eee5eb}
}
@media(max-width:360px){.directory-actions button{padding:8px 9px;font-size:11px}.directory-actions .ui-icon{width:14px;height:14px}.directory-member{gap:8px;padding-left:11px;padding-right:10px}.directory-name strong{font-size:14px}.directory-name>span{font-size:12px}.directory-avatar{width:38px;height:38px;flex-basis:38px}.directory-reminder{right:30px;font-size:11px;padding:4px 7px}}

@media(max-width:760px){.toolbar.directory-ocr-actions{display:none}}

.directory-avatar .directory-avatar-photo{position:absolute;inset:0;display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:center;border:0}.directory-avatar i{z-index:1}

.directory-pagination{display:flex;align-items:center;justify-content:center;gap:12px;padding:20px 0;flex-wrap:wrap}.directory-pagination span{font-size:13px;color:#877680}.directory-pagination button{min-height:42px}.directory-pagination button:disabled{opacity:.4;cursor:default}.directory-page-table{overflow-x:auto}.directory-page-table table{width:100%;border-collapse:collapse}.directory-page-table th,.directory-page-table td{padding:12px;text-align:left;border-bottom:1px solid #eee3eb}
