:root{color-scheme:light;--ink:#17243b;--muted:#718099;--line:#e5eaf1;--surface:#fff;--soft:#f5f7fb;--blue:#225bd5;--blue-soft:#edf3ff;--green:#1d9b68}*{box-sizing:border-box}body{margin:0;background:#f4f6fa;color:var(--ink);font:15px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}.admin-body{min-height:100vh}.admin-shell{display:flex;min-height:100vh}.sidebar{background:#101b31;color:#dce5f5;display:flex;flex:0 0 252px;flex-direction:column;padding:25px 15px;position:fixed;inset:0 auto 0 0;width:252px}.sidebar-brand{align-items:center;display:flex;gap:11px;padding:0 10px}.sidebar-brand strong{display:block;color:#fff;font-size:13px;letter-spacing:.13em}.sidebar-brand small{color:#8393ae;display:block;font-size:11px;margin-top:2px}.brand-mark{align-items:center;background:linear-gradient(145deg,#4b82ef,#225bd5);border-radius:11px;color:#fff;display:flex;font-size:18px;font-weight:800;height:38px;justify-content:center;width:38px}.workspace-switcher{background:#1a2843;border:1px solid #2b3c5b;border-radius:12px;display:flex;flex-direction:column;gap:3px;margin:30px 3px 22px;padding:13px}.workspace-switcher strong{color:#fff;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.eyebrow,.nav-label{color:#8090aa;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.online-dot{align-items:center;color:#8fa2c0;display:flex;font-size:11px;gap:5px}.online-dot i{background:#37c889;border-radius:50%;height:6px;width:6px}.sidebar-nav{display:flex;flex-direction:column;gap:4px}.nav-label{padding:8px 12px 4px}.nav-label-spaced{margin-top:16px}.nav-link{align-items:center;border-radius:9px;color:#aab8ce;display:flex;font-size:13px;gap:10px;padding:10px 12px;transition:.15s}.nav-link:hover,.nav-link.active{background:#20355b;color:#fff}.nav-link.active{box-shadow:inset 3px 0 var(--blue)}.nav-icon{font-size:17px;line-height:1;text-align:center;width:18px}.nav-count,.nav-soon{border-radius:999px;font-size:9px;margin-left:auto;padding:2px 6px}.nav-count{background:#214a9b;color:#9fbeff}.nav-soon{background:#293754;color:#8fa2c0}.sidebar-footer{border-top:1px solid #273753;margin-top:auto;padding:16px 7px 0}.secure-note{align-items:flex-start;display:flex;gap:8px;margin-bottom:15px}.secure-note>span{align-items:center;background:#1b5a47;border-radius:50%;color:#81e0b5;display:flex;font-size:11px;height:19px;justify-content:center;width:19px}.secure-note strong,.secure-note small{display:block}.secure-note strong{color:#d8e4f5;font-size:11px}.secure-note small{color:#8191aa;font-size:10px}.logout-link{background:transparent;border:0;color:#9baac0;cursor:pointer;font-size:12px;padding:4px 0}.logout-link:hover{color:#fff}.admin-content{margin-left:252px;min-height:100vh;width:calc(100% - 252px)}.topbar{align-items:center;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;min-height:85px;padding:18px 38px}.topbar-kicker{color:var(--muted);display:block;font-size:11px;margin-bottom:1px}.topbar h1{font-size:21px;line-height:1.3;margin:0}.topbar-user{align-items:center;display:flex;gap:9px}.topbar-user strong,.topbar-user small{display:block}.topbar-user strong{font-size:12px}.topbar-user small{color:var(--muted);font-size:10px;margin-top:2px}.avatar{align-items:center;background:#e8efff;border:1px solid #c7d8ff;border-radius:50%;color:var(--blue);display:flex;font-size:13px;font-weight:700;height:34px;justify-content:center;width:34px}.content-panel{margin:0 auto;max-width:1400px;padding:32px 38px 60px}h1,h2,h3,p{margin-top:0}.page-heading{align-items:flex-end;display:flex;justify-content:space-between;margin-bottom:24px}.page-heading h2{font-size:25px;letter-spacing:-.02em;margin:0 0 4px}.page-heading p{color:var(--muted);font-size:13px;margin:0}.eyebrow-dark{color:var(--blue);font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.button{background:var(--blue);border:0;border-radius:8px;color:#fff;cursor:pointer;display:inline-flex;font-size:12px;font-weight:650;padding:10px 15px}.button.secondary{background:#fff;border:1px solid var(--line);color:var(--ink)}.button:hover{filter:brightness(.95)}.card-grid{display:grid;gap:15px;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:22px}.stat-card,.panel-card{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:18px}.stat-card{min-height:115px}.stat-label{color:var(--muted);font-size:12px}.stat-value{font-size:28px;font-weight:750;letter-spacing:-.04em;margin-top:11px}.stat-caption{color:var(--green);font-size:11px;margin-top:3px}.dashboard-grid{display:grid;gap:18px;grid-template-columns:1.4fr 1fr}.panel-card h3{font-size:15px;margin-bottom:4px}.panel-card>p{color:var(--muted);font-size:12px}.feature-list{display:grid;gap:9px;margin:17px 0 0;padding:0}.feature-list li{align-items:center;border-bottom:1px solid #f0f2f6;display:flex;gap:10px;list-style:none;padding:9px 0}.feature-list li:last-child{border-bottom:0}.feature-list .check{align-items:center;background:#e5f7ef;border-radius:50%;color:var(--green);display:flex;font-size:11px;height:21px;justify-content:center;width:21px}.feature-list strong{display:block;font-size:12px}.feature-list small{color:var(--muted);display:block;font-size:11px}.table-wrap{background:var(--surface);border:1px solid var(--line);border-radius:13px;overflow:auto}.data-table{border-collapse:collapse;min-width:600px;width:100%}.data-table th,.data-table td{border-bottom:1px solid #eef1f5;padding:13px 16px;text-align:left}.data-table th{color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase}.data-table td{font-size:12px}.data-table tr:last-child td{border-bottom:0}.status-pill{background:#e8f7ef;border-radius:999px;color:#18764e;font-size:10px;padding:4px 8px}.status-pill.off{background:#f1f3f6;color:#78869b}.notice{background:#fff4df;border:1px solid #f6d59d;border-radius:10px;color:#845c15;font-size:12px;padding:12px 14px}.muted{color:var(--muted);font-size:13px}.empty-state{background:var(--surface);border:1px dashed #cbd5e4;border-radius:13px;color:var(--muted);padding:35px;text-align:center}.feature-grid{display:grid;gap:15px;grid-template-columns:repeat(2,minmax(0,1fr))}.feature-card{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:18px}.feature-card h3{font-size:14px;margin-bottom:6px}.feature-card p{color:var(--muted);font-size:12px}.feature-card .button{margin-top:6px}.settings-list{display:grid;gap:12px;margin:0}.settings-row{align-items:center;border-bottom:1px solid #eef1f5;display:flex;justify-content:space-between;padding:13px 0}.settings-row:last-child{border-bottom:0}.settings-row strong,.settings-row small{display:block}.settings-row strong{font-size:12px}.settings-row small{color:var(--muted);font-size:11px;margin-top:2px}.toggle{background:#dfe5ed;border-radius:99px;height:22px;position:relative;width:40px}.toggle.on{background:#71cfa5}.toggle:after{background:#fff;border-radius:50%;content:"";height:16px;left:3px;position:absolute;top:3px;width:16px}.toggle.on:after{left:21px}@media(max-width:900px){.sidebar{flex-basis:220px;width:220px}.admin-content{margin-left:220px;width:calc(100% - 220px)}.content-panel{padding:25px 22px 45px}.topbar{padding:16px 22px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.sidebar{display:none}.admin-content{margin-left:0;width:100%}.topbar{padding:15px 16px}.topbar-user span:not(.avatar){display:none}.content-panel{padding:22px 15px 40px}.page-heading{align-items:flex-start;flex-direction:column;gap:13px}.card-grid,.dashboard-grid,.feature-grid{grid-template-columns:1fr}.stat-card{min-height:95px}}
.auth-card{background:#fff;border:1px solid var(--line);border-radius:16px;margin:8vh auto;max-width:460px;padding:34px}.auth-card header{border-bottom:1px solid var(--line);margin-bottom:24px;padding-bottom:18px}.auth-card .brand{color:var(--blue);font-size:13px;font-weight:800;letter-spacing:.16em}.auth-card header p{color:var(--muted);font-size:13px;margin:4px 0 0}.auth-card h1{font-size:25px;line-height:1.3}.auth-card label{display:block;font-size:12px;font-weight:650;margin:15px 0 6px}.auth-card input{border:1px solid #b7c3d4;border-radius:8px;padding:11px;width:100%}.auth-card input:focus-visible,.auth-card button:focus-visible{outline:3px solid #9fc1ff;outline-offset:2px}.auth-card button{background:var(--blue);border:0;border-radius:8px;color:#fff;cursor:pointer;margin-top:22px;padding:11px 18px}.auth-card .notice{margin-bottom:15px}.embed-code{background:#101b31;border-radius:9px;color:#d9e7ff;font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;overflow:auto;padding:14px;white-space:pre-wrap}
.chat-shell{background:#fff;border:1px solid var(--line);border-radius:14px;display:grid;grid-template-columns:320px minmax(0,1fr);height:min(680px,calc(100vh - 245px));min-height:500px;overflow:hidden}.chat-list-pane{border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}.chat-list-toolbar{align-items:center;display:flex;justify-content:space-between;padding:17px 16px 11px}.chat-list-toolbar strong,.chat-list-toolbar small{display:block}.chat-list-toolbar strong{font-size:14px}.chat-list-toolbar small{color:var(--muted);font-size:11px;margin-top:2px}.chat-refresh{background:var(--blue-soft);border:0;border-radius:8px;color:var(--blue);cursor:pointer;font-size:18px;height:30px;width:30px}.chat-search{align-items:center;background:var(--soft);border:1px solid #edf0f5;border-radius:8px;color:var(--muted);display:flex;gap:7px;margin:3px 13px 10px;padding:7px 9px}.chat-search input{background:transparent;border:0;min-width:0;outline:0;width:100%;font-size:11px}.chat-filters{display:flex;gap:5px;padding:0 13px 10px}.chat-filter{background:transparent;border:0;border-radius:6px;color:var(--muted);cursor:pointer;font-size:10px;padding:6px 8px}.chat-filter.active{background:var(--blue-soft);color:var(--blue);font-weight:700}.chat-list{border-top:1px solid #f0f2f6;overflow-y:auto}.chat-list-empty{color:var(--muted);font-size:12px;padding:38px 18px;text-align:center}.chat-list-item{align-items:center;background:#fff;border:0;border-bottom:1px solid #f0f2f6;cursor:pointer;display:flex;gap:9px;padding:12px 13px;text-align:left;width:100%}.chat-list-item:hover,.chat-list-item.selected{background:#f4f7fd}.list-avatar,.customer-avatar{align-items:center;background:#e4edff;border-radius:50%;color:var(--blue);display:flex;flex:0 0 36px;font-size:11px;font-weight:750;height:36px;justify-content:center;width:36px}.list-copy{flex:1;min-width:0}.list-copy strong,.list-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-copy strong{font-size:12px}.list-copy small,.list-time{color:var(--muted);font-size:10px}.list-time{align-self:flex-start;white-space:nowrap}.chat-main{background:#f5f7fb;display:flex;min-width:0}.chat-empty-state{align-items:center;display:flex;flex:1;flex-direction:column;justify-content:center;text-align:center}.chat-empty-icon{align-items:center;background:#e6edfc;border-radius:50%;color:var(--blue);display:flex;font-size:29px;height:60px;justify-content:center;width:60px}.chat-empty-state h3{font-size:16px;margin:15px 0 3px}.chat-empty-state p{color:var(--muted);font-size:12px;margin:0;max-width:250px}.chat-active{display:flex;flex:1;flex-direction:column;min-width:0}.chat-active[hidden]{display:none}.chat-header{align-items:center;background:#fff;border-bottom:1px solid var(--line);display:flex;gap:10px;min-height:67px;padding:10px 17px}.chat-back{background:transparent;border:0;color:var(--muted);cursor:pointer;display:none;font-size:25px}.customer-avatar{flex-basis:37px;height:37px;width:37px}.customer-heading{min-width:0}.customer-heading strong,.customer-heading small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-heading strong{font-size:13px}.customer-heading small{color:var(--muted);font-size:10px;margin-top:2px}.chat-status-pill{background:#e8f7ef;border-radius:999px;color:#18764e;font-size:10px;margin-left:7px;padding:4px 8px}.chat-header-actions{display:flex;gap:5px;margin-left:auto}.chat-header-actions button{background:#fff;border:1px solid var(--line);border-radius:6px;color:var(--muted);cursor:pointer;font-size:10px;padding:6px 8px}.chat-header-actions button:hover{border-color:#b9ccef;color:var(--blue)}.chat-messages{background-color:#f5f7fb;background-image:radial-gradient(#dfe6f1 0.7px,transparent .7px);background-size:13px 13px;flex:1;overflow-y:auto;padding:22px 25px}.messages-empty{color:var(--muted);font-size:12px;padding-top:80px;text-align:center}.chat-message-row{display:flex;margin:5px 0}.chat-message-row.incoming{justify-content:flex-start}.chat-message-row.outgoing{justify-content:flex-end}.chat-bubble{border-radius:9px;box-shadow:0 1px 1px #1a2d4d12;font-size:12px;max-width:min(72%,470px);padding:9px 11px;white-space:pre-wrap;overflow-wrap:anywhere}.incoming .chat-bubble{background:#fff;border-top-left-radius:2px}.outgoing .chat-bubble{background:#dcecff;border-top-right-radius:2px}.chat-bubble small{color:#8290a4;display:block;font-size:9px;margin-top:4px;text-align:right}.chat-composer{align-items:flex-end;background:#fff;border-top:1px solid var(--line);display:flex;gap:8px;padding:11px 15px;position:relative}.chat-composer textarea{background:var(--soft);border:1px solid #e3e8f0;border-radius:8px;min-height:37px;padding:9px 11px;resize:none;width:100%}.chat-composer button{align-items:center;background:var(--blue);border:0;border-radius:8px;color:#fff;cursor:pointer;display:flex;font-size:16px;height:37px;justify-content:center;width:42px}.chat-composer p{bottom:-19px;color:var(--muted);font-size:10px;left:15px;margin:0;position:absolute}.chat-page .page-heading{margin-bottom:18px}@media(max-width:800px){.chat-shell{grid-template-columns:280px}.chat-header-actions button{font-size:0}.chat-header-actions button:before{content:'•';font-size:14px}.chat-message-row .chat-bubble{max-width:85%}}@media(max-width:600px){.chat-shell{display:block;height:calc(100vh - 220px);min-height:470px}.chat-list-pane{border-right:0;height:100%}.chat-main{display:none;height:100%}.chat-shell.is-selected .chat-list-pane{display:none}.chat-shell.is-selected .chat-main{display:flex}.chat-back{display:block}.chat-header{padding-left:8px}.chat-messages{padding:17px 13px}}

/* Workspace polish: compact controls, clearer hierarchy, and touch-friendly mobile layout. */
:root{--ink:#14213d;--muted:#66758f;--line:#e3e9f2;--soft:#f6f8fc;--blue:#285fd7;--blue-dark:#1d49aa;--blue-soft:#edf3ff;--green:#1d9b68;--shadow:0 14px 38px rgba(29,55,95,.07)}
body{background:linear-gradient(145deg,#f4f7fb 0%,#eef3fa 100%);letter-spacing:.005em}
.admin-shell{background:transparent}
.sidebar{background:linear-gradient(180deg,#111d35 0%,#0e182c 100%);box-shadow:8px 0 30px rgba(11,27,55,.11);padding:22px 14px}
.sidebar-brand{padding:0 11px}.brand-mark{box-shadow:0 7px 18px rgba(49,111,231,.28)}
.workspace-switcher{box-shadow:inset 0 1px rgba(255,255,255,.04);margin-top:27px}
.nav-link{min-height:42px}.nav-link:hover{transform:translateX(2px)}.nav-link.active{background:linear-gradient(90deg,#24457a,#1c345b);box-shadow:inset 3px 0 #6c9cff,0 7px 18px rgba(5,15,35,.18)}
.admin-content{min-width:0}.topbar{backdrop-filter:blur(14px);background:rgba(255,255,255,.9);position:sticky;top:0;z-index:10}.topbar h1{font-weight:760;letter-spacing:-.035em}.topbar-kicker{font-weight:650;letter-spacing:.06em;text-transform:uppercase}
.content-panel{padding-top:36px}.page-heading{margin-bottom:28px}.page-heading h1,.page-heading h2{font-size:28px;font-weight:780;letter-spacing:-.035em;margin:0 0 4px}.page-heading p{max-width:720px}
.card-grid{gap:17px;grid-template-columns:repeat(3,minmax(0,1fr))}.stat-card,.panel-card,.feature-card{border-color:#e2e8f1;box-shadow:var(--shadow)}.stat-card{position:relative;overflow:hidden}.stat-card:after{background:linear-gradient(90deg,#6d9cff,#dce8ff);content:"";height:3px;left:0;position:absolute;right:0;top:0}.stat-value{color:var(--ink);font-size:31px}
.dashboard-grid{gap:20px}.panel-card{padding:22px}.panel-card h3{font-size:16px;font-weight:750}.panel-card>p{line-height:1.65}.feature-list{gap:0}.feature-list li{min-height:58px;padding:12px 0}.feature-list li>div{flex:1;min-width:0}.feature-list .button{margin-left:auto;white-space:nowrap}
.button{box-shadow:0 5px 12px rgba(40,95,215,.18);font-weight:700;min-height:38px;transition:transform .15s,box-shadow .15s,background .15s}.button:hover{box-shadow:0 8px 18px rgba(40,95,215,.23);transform:translateY(-1px)}.button.secondary{box-shadow:none}.button.secondary:hover{border-color:#a9c2f7;background:var(--blue-soft);color:var(--blue)}
.table-wrap{box-shadow:var(--shadow)}.data-table th{background:#f8faff}.data-table th,.data-table td{padding:14px 16px}.data-table tbody tr:hover{background:#f8faff}.data-table td small{color:var(--muted);display:block;font-size:11px;margin-top:2px}
.training-form,.settings-form,.profile-form,.prompt-form,.workshop-form{display:grid;gap:15px}.training-form label,.settings-form label,.profile-form label,.prompt-form label,.workshop-form label{color:#45546f;display:grid;font-size:12px;font-weight:700;gap:7px}.training-form input,.training-form textarea,.training-form select,.settings-form input,.settings-form textarea,.settings-form select,.profile-form input,.profile-form textarea,.profile-form select,.prompt-form input,.prompt-form textarea,.prompt-form select,.workshop-form input,.workshop-form textarea,.workshop-form select{background:#fff;border:1px solid #ced8e7;border-radius:9px;color:var(--ink);min-height:42px;outline:0;padding:10px 12px;transition:border .15s,box-shadow .15s}.training-form textarea,.settings-form textarea,.profile-form textarea,.prompt-form textarea,.workshop-form textarea{min-height:108px;resize:vertical}.training-form input:focus,.training-form textarea:focus,.training-form select:focus,.settings-form input:focus,.settings-form textarea:focus,.settings-form select:focus,.profile-form input:focus,.profile-form textarea:focus,.profile-form select:focus,.prompt-form input:focus,.prompt-form textarea:focus,.prompt-form select:focus,.workshop-form input:focus,.workshop-form textarea:focus,.workshop-form select:focus{border-color:#6e9af1;box-shadow:0 0 0 4px #e9f0ff}.check-row{align-items:center!important;display:flex!important;gap:9px!important}.check-row input{min-height:auto;width:17px}
.notice{box-shadow:0 4px 12px rgba(113,83,18,.06);line-height:1.55}.notice.success{background:#eaf9f1;border-color:#bcebd0;color:#176c49}.empty-state{box-shadow:var(--shadow);line-height:1.6}.status-pill{font-weight:700;letter-spacing:.02em}
.auth-card{box-shadow:0 25px 70px rgba(25,54,98,.12);margin-top:10vh}.auth-card input{background:#fbfcff;border-color:#cbd6e6}.auth-card button{box-shadow:0 8px 18px rgba(34,91,213,.2);width:100%}
.mobile-menu-toggle{display:none}
@media(max-width:900px){.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-panel{padding-top:28px}.topbar{min-height:76px}}
@media(max-width:650px){.admin-shell.nav-open .sidebar{display:flex}.admin-shell.nav-open:after{background:rgba(8,20,40,.48);content:"";inset:0;position:fixed;z-index:20}.admin-shell.nav-open .sidebar{z-index:30}.mobile-menu-toggle{align-items:center;background:var(--blue-soft);border:1px solid #c8d9fb;border-radius:8px;color:var(--blue);cursor:pointer;display:inline-flex;font-size:18px;height:36px;justify-content:center;margin-right:10px;width:36px}.topbar{align-items:flex-start;padding:14px 16px}.topbar>div:first-child{align-items:center;display:flex}.topbar h1{font-size:18px}.content-panel{padding:22px 14px 42px}.panel-card{padding:17px}.feature-list li{align-items:flex-start;flex-wrap:wrap}.feature-list li .button{margin-left:31px}.card-grid{gap:12px}.stat-card{min-height:108px;padding:15px}.stat-value{font-size:26px}}

/* AI Agent workspace: make the control room scannable and safe to operate. */
.ai-workspace-guide{align-items:center;background:#f0f5ff;border:1px solid #d8e5fb;border-radius:11px;color:#476181;display:flex;flex-wrap:wrap;font-size:11px;gap:9px;margin:-9px 0 19px;padding:10px 13px}.ai-workspace-guide .guide-label{color:var(--blue);font-size:10px;font-weight:800;letter-spacing:.08em;margin-right:5px;text-transform:uppercase}.ai-workspace-guide i{color:#8da9d8;font-size:17px;font-style:normal;line-height:1}.ai-config-card{border-top:3px solid var(--blue)}.ai-config-card .settings-form{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:19px}.ai-config-card .settings-form .check-row,.ai-config-card .settings-form button,.ai-config-card .settings-form>p{grid-column:1/-1}.ai-config-card .settings-form label:not(.check-row){background:#f8faff;border:1px solid #e4ebf6;border-radius:10px;padding:12px}.ai-config-card .settings-form label:not(.check-row) input{margin-top:3px}.ai-prompt-grid{align-items:start}.ai-prompt-grid .panel-card{min-height:100%}.prompt-form{margin-top:19px}.prompt-form .button{justify-self:start}.prompt-preview{border:1px solid #e0e7f1;line-height:1.7;overflow:auto}.mode-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.mode-grid>div{border:1px solid #e3eaf4;box-shadow:0 5px 14px rgba(23,56,103,.04);min-height:70px}.mode-grid strong{color:var(--ink);font-size:14px}.mode-grid small{line-height:1.45}.profile-panel{border-top:3px solid #6b8fe4}.profile-panel>.profile-form{background:#fbfcff;border:1px solid #e3eaf4;border-radius:12px;display:grid;grid-template-columns:68px minmax(0,1fr);margin-top:16px;padding:16px}.profile-panel>.profile-form+.profile-form{margin-top:12px}.profile-avatar-preview{align-items:center;background:linear-gradient(145deg,#dbe8ff,#edf3ff);border:1px solid #c9daf8;border-radius:14px;color:var(--blue);display:flex;font-size:22px;font-weight:800;height:56px;justify-content:center;overflow:hidden;width:56px}.profile-avatar-preview img{height:100%;object-fit:cover;width:100%}.profile-fields{display:grid;gap:11px;grid-template-columns:repeat(2,minmax(0,1fr))}.profile-fields label{color:#51627f;display:grid;font-size:11px;font-weight:700;gap:6px}.profile-fields .profile-prompt{grid-column:1/-1}.profile-fields input,.profile-fields textarea{background:#fff;border:1px solid #d4deeb;border-radius:8px;min-height:38px;padding:8px 10px}.profile-fields textarea{min-height:72px;resize:vertical}.profile-check{align-items:center;display:flex!important;gap:7px}.profile-check input{min-height:auto;width:16px}.profile-panel>.profile-form>.button,.profile-panel>.profile-form>small{grid-column:2}.profile-panel>.profile-form>.button{justify-self:start}.training-panel{border-top:3px solid #7c65d5}.training-panel .training-form{max-width:820px}.training-word-list{background:#fbfcff;border:1px dashed #d6dfed;border-radius:11px;padding:12px}.training-word{background:#fff;box-shadow:0 3px 8px rgba(34,55,89,.05)}.training-word .inline-form{margin-left:auto}.training-word .inline-form+ .inline-form{margin-left:0}.training-word button,.training-example button{background:transparent;border:0;cursor:pointer;font-size:11px;padding:2px 4px}.training-word button:hover,.training-example button:hover{color:var(--blue)}.training-example-list{grid-template-columns:repeat(2,minmax(0,1fr))}.training-example{background:#fbfcff;border-color:#e0e7f1;line-height:1.55}.training-example p{line-height:1.6}.profile-create{border-top:1px dashed #d6dfed;margin-top:18px;padding-top:16px}.profile-create summary{box-shadow:none}.ai-config-card+.panel-card,.ai-prompt-grid+.panel-card{scroll-margin-top:100px}
@media(max-width:760px){.ai-config-card .settings-form,.profile-panel>.profile-form{grid-template-columns:1fr}.ai-config-card .settings-form .check-row,.ai-config-card .settings-form button,.ai-config-card .settings-form>p{grid-column:auto}.profile-panel>.profile-form>.button,.profile-panel>.profile-form>small{grid-column:auto}.profile-avatar-preview{margin-bottom:2px}.profile-fields,.training-example-list,.mode-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.ai-workspace-guide{align-items:flex-start;flex-direction:column;gap:4px}.ai-workspace-guide i{display:none}.profile-fields,.training-example-list,.mode-grid{grid-template-columns:1fr}.ai-config-card .section-heading,.profile-panel .section-heading{align-items:flex-start;flex-direction:column}}

/* Team administration controls. */
.message-options{align-items:end;display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.message-options label{display:grid;font-size:11px;gap:4px}.message-options input,.message-options select{border:1px solid var(--line);border-radius:7px;min-height:34px;padding:7px 9px}
.invite-result{margin:0 0 18px}.invite-result p{margin:4px 0 10px}.invite-link-row{align-items:center;display:flex;gap:8px}.invite-link-row input{background:#fff;border:1px solid #b7d8c5;border-radius:8px;color:#176c49;min-width:0;padding:10px;width:100%}.team-admin-grid{align-items:start}.team-members-panel .data-table{min-width:980px}.compact-action{align-items:center;display:flex;gap:6px}.compact-action select{background:#fff;border:1px solid #cfd9e7;border-radius:7px;min-height:34px;padding:6px 8px}.compact-action .button,.member-actions .button{font-size:11px;min-height:34px;padding:7px 10px}.member-actions{align-items:flex-start;display:flex;flex-wrap:wrap;gap:7px}.member-actions details{position:relative}.member-actions details summary{cursor:pointer;list-style:none}.member-actions details summary::-webkit-details-marker{display:none}.compact-password{background:#fff;border:1px solid #dce5f1;border-radius:10px;box-shadow:0 14px 30px rgba(25,51,91,.14);display:grid;gap:8px;margin-top:7px;padding:12px;position:absolute;right:0;top:100%;width:230px;z-index:4}.compact-password input{border:1px solid #ccd8e8;border-radius:7px;min-height:35px;padding:7px 9px}.audit-filters{align-items:center;display:flex;flex-wrap:wrap;gap:8px;margin:17px 0}.audit-filters select,.audit-filters input{background:#fff;border:1px solid #ced8e7;border-radius:8px;min-height:38px;padding:8px 10px}.audit-filters input{min-width:220px}.audit-filters .button{min-height:38px}.audit-panel .pagination{margin-top:15px}@media(max-width:760px){.team-admin-grid{grid-template-columns:1fr}.invite-link-row{align-items:stretch;flex-direction:column}.audit-filters>*{width:100%}.audit-filters input{min-width:0}.compact-password{left:0;right:auto}.team-members-panel .data-table{min-width:900px}}
