:root{--accent:#005ebc;--sky:#50b8ff;--ink:#202124;--muted:#62676c;--canvas:#f7f9fc;--line:#e1e5eb;--soft:#e5f0ff;--danger:#b3261e;font-family:Arial,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--canvas)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent)}button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:38px;padding:8px 16px;background:white;color:var(--ink);border:1px solid var(--line);border-radius:22px;transition:background .15s}button:hover{background:#edf2f9}button:disabled{opacity:.48;cursor:not-allowed}.primary{background:var(--accent);border-color:var(--accent);color:white}.primary:hover{background:#004c98}.danger{color:var(--danger)}a{color:var(--accent);text-decoration:none}svg{width:22px;height:22px;flex-shrink:0}h1,h2,h3,p{margin-top:0}h1{font-size:28px;font-weight:400;letter-spacing:-.6px;margin-bottom:10px}h2{font-size:18px;font-weight:500}h3{font-size:16px;font-weight:500}.muted,small{color:var(--muted)}p{line-height:1.6}.app-header{height:76px;display:flex;align-items:center;padding:0 28px;gap:28px;background:var(--canvas);position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:16px}.brand img{width:140px;height:36px;object-fit:contain}.brand span{font-size:23px;color:#5f6368;font-weight:400;border-left:1px solid #d5dde5;padding-left:16px}.header-actions{display:flex;gap:12px;align-items:center;margin-left:auto}.icon-button{border:0;background:transparent;border-radius:50%;width:40px;height:40px;font-size:23px;padding:8px}.avatar{width:38px;height:38px;border-radius:50%;background:#dcecff;color:#004c98;padding:0;font-weight:600}#context{color:#5f6368}#shell{display:flex;min-height:calc(100vh - 76px)}#sidebar{width:244px;flex-shrink:0;padding:20px 12px;position:sticky;top:76px;height:calc(100vh - 76px)}#sidebar:empty{display:none}.nav-item{display:flex;gap:15px;align-items:center;padding:12px 20px;border-radius:28px;color:#444746;margin-bottom:4px}.nav-item.active{background:#dceaff;color:#003c78;font-weight:600}.nav-item:hover{background:#e9edf4}.nav-label{padding:18px 20px 8px;font-size:11px;text-transform:uppercase;letter-spacing:1.2px;color:#72777d}#main{flex:1;min-width:0;background:white;border-radius:24px 24px 0 0;margin:0 20px 0 0;padding:32px 36px;outline:none}#sidebar:empty+#main{margin:0 auto;background:transparent;width:100%;max-width:1240px;padding-top:44px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:26px}.page-head p{color:var(--muted);margin:0}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.search{display:flex;align-items:center;gap:12px;background:#edf2f8;border-radius:28px;padding:0 18px;width:min(440px,100%);height:48px}.search input{border:0;background:none;outline:none;width:100%;min-width:0}.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:20px 0 26px;flex-wrap:wrap}.toolbar select{padding:10px 14px;border-radius:10px;border:1px solid var(--line);background:white}.section-title{display:flex;align-items:center;justify-content:space-between;margin:32px 0 14px}.section-title h2{margin:0}.app-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}.app-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:left;border:1px solid var(--line);background:white;border-radius:18px;padding:24px;min-height:190px;position:relative}.app-card:hover{border-color:#a7cafa;background:#fafdff;box-shadow:0 2px 8px #15294c08}.app-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:#e4f1ff;border-radius:13px;color:var(--accent);margin-bottom:16px}.app-icon svg{width:28px;height:28px}.app-card strong{font-size:16px;font-weight:500}.app-card p{font-size:13px;color:var(--muted);margin:8px 0 0;line-height:1.5}.app-card .badge{position:absolute;right:16px;top:18px}.badge{display:inline-flex;align-items:center;padding:5px 9px;font-size:11px;border-radius:12px;background:#edf1f6;color:#5b6470;white-space:nowrap}.badge.green{background:#e4f5eb;color:#17683b}.badge.blue{background:#e5f0ff;color:#0055a6}.badge.orange{background:#fff3df;color:#8a5500}.welcome{background:#eaf3ff;border:1px solid #dbeafd;border-radius:22px;padding:28px 32px;margin-bottom:30px;display:flex;justify-content:space-between;gap:28px;align-items:center}.welcome h1{font-size:32px}.welcome p{margin:0;color:#4c617b}.welcome-mark{width:80px;height:80px;border-radius:22px;background:#d2e8ff;display:flex;align-items:center;justify-content:center;color:var(--accent)}.welcome-mark svg{width:42px;height:42px}.empty{padding:70px 24px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px}.empty>svg{width:52px;height:52px;color:#8dabc9}.empty h1,.empty h2,.empty p{margin:0}.empty p{max-width:500px;color:var(--muted)}.spinner{width:28px;height:28px;border:3px solid #e1ebf7;border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:12px;font-weight:500;color:#666;background:#f8faff;padding:14px 16px;white-space:nowrap}td{padding:16px;border-top:1px solid var(--line);font-size:13px}td strong{display:block;font-size:14px;font-weight:500}td small{display:block;margin-top:6px}tr:hover td{background:#fafcff}.inline-actions{display:flex;gap:6px}.inline-actions button{font-size:12px;padding:6px 12px;min-height:32px}.panel{border:1px solid var(--line);border-radius:16px;padding:26px;margin-bottom:22px}.panel h2{display:flex;align-items:center;gap:12px}.note{padding:14px 18px;border-radius:12px;background:#f1f6fc;color:#496079;line-height:1.6;font-size:13px;margin:18px 0}.note.warning{background:#fff8e9;color:#7c5a20}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:20px;font-size:13px;color:#444}.field input,.field select,.field textarea{padding:12px 13px;border:1px solid #bdc5ce;border-radius:8px;width:100%;background:white;color:var(--ink);min-height:44px}.field textarea{resize:vertical;line-height:1.6;min-height:120px}.field input:disabled,.field textarea:disabled{background:#f4f6f8;color:#777}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.check{display:flex;align-items:center;gap:10px;padding:8px 0;font-size:14px}.check input{accent-color:var(--accent);width:17px;height:17px}.checks{display:flex;flex-wrap:wrap;gap:4px 24px;margin-bottom:20px}.error{color:var(--danger);font-size:13px;line-height:1.6}dialog{border:0;border-radius:22px;width:560px;max-width:calc(100vw - 32px);max-height:90dvh;padding:28px;box-shadow:0 18px 80px #16294133;overflow:auto}dialog.wide{width:820px}dialog::backdrop{background:#1e2c4055}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.dialog-head h2{font-size:23px;margin:0}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;padding-top:15px}.help-layout{display:grid;grid-template-columns:160px 1fr;gap:24px}.help-layout nav button{border-radius:10px;width:100%;justify-content:flex-start;margin-bottom:6px;border:0}.help-layout article{line-height:1.7}.help-layout h3{font-size:20px}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}.project-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:white}.project-top{background:#eef4fc;min-height:120px;display:flex;align-items:center;justify-content:center;color:#6d9ccd;cursor:pointer}.project-top svg{height:46px;width:46px}.project-info{padding:18px}.project-info h3{margin:0 0 8px;overflow-wrap:anywhere}.project-info .inline-actions{margin-top:16px;flex-wrap:wrap}.breadcrumbs{display:flex;gap:10px;align-items:center;margin-bottom:24px;font-size:13px;color:var(--muted)}.master-card{background:#f7faff;border:1px dashed #bccfe5;border-radius:16px;padding:24px;margin-bottom:24px;display:flex;align-items:center;gap:20px}.master-card p{margin:5px 0 0;font-size:13px;color:var(--muted)}.input-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.input-column{border:1px solid var(--line);border-radius:16px;padding:22px;min-width:0}.input-column h2{font-size:16px}.dropzone{border:1px dashed #c4d0df;border-radius:12px;background:#fafcff;padding:30px 15px;text-align:center;margin:18px 0;min-height:180px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#8495a7}.dropzone p{font-size:12px;margin:0}.input-column textarea{min-height:200px}.stepbar{display:flex;gap:18px;margin-bottom:24px;color:#8c949b;font-size:12px}.stepbar .current{color:var(--accent);font-weight:600}.settings-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:28px;padding-bottom:12px}.settings-tabs a{padding:10px 16px;border-radius:20px;color:#555}.settings-tabs .active{background:var(--soft);color:var(--accent)}.status-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.kv{display:grid;grid-template-columns:180px 1fr;gap:16px;font-size:13px}.kv dd{margin:0}.audit-detail{white-space:pre-wrap;word-break:break-word;font:12px/1.6 monospace;background:#f5f7fa;padding:16px;border-radius:10px}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#253347;color:white;padding:14px 22px;border-radius:12px;z-index:100;max-width:90vw;transition:all .2s}#toast.show{transform:translate(-50%,0);opacity:1}.search-result{width:100%;justify-content:space-between;margin-bottom:6px;border-radius:10px}.dirty{color:#a46300}hr{border:0;border-top:1px solid var(--line);margin:24px 0}@media(max-width:1000px){#sidebar{width:200px}#main{padding:26px 24px}.input-grid{grid-template-columns:1fr}.input-column textarea{min-height:120px}.dropzone{min-height:100px}.app-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}}@media(max-width:700px){.app-header{padding:0 16px;height:66px;gap:12px}.brand img{width:110px}.brand span{font-size:18px;padding-left:10px}.header-actions{gap:2px}#context{display:none}#shell{display:block}#sidebar{width:auto;height:auto;position:static;padding:8px 12px;display:flex;overflow:auto;gap:4px}#sidebar .nav-label{display:none}.nav-item{white-space:nowrap;padding:10px 14px}.nav-item svg{width:18px}#main{margin:0 8px;padding:24px 18px}.welcome{padding:24px}.welcome h1{font-size:26px}.welcome-mark{display:none}.page-head{flex-direction:column}.app-grid{grid-template-columns:1fr 1fr}.app-card{padding:18px;min-height:180px}.form-grid{grid-template-columns:1fr}.help-layout{grid-template-columns:1fr}.help-layout nav{display:flex;overflow:auto}.help-layout nav button{width:auto;white-space:nowrap}.kv{grid-template-columns:1fr}.master-card{align-items:flex-start}.stepbar{gap:10px;font-size:11px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.project-card > button.project-top{width:100%;border:0;border-radius:0}

body.project-host{height:100dvh;display:flex;flex-direction:column;overflow:hidden}body.project-host .app-header{flex-shrink:0}body.project-host #shell{flex:1;min-height:0;overflow:hidden;display:flex}body.project-host #sidebar{display:none}body.project-host #main{margin:0;padding:0;border-radius:0;min-width:0;min-height:0;width:100%;max-width:none;overflow:hidden}body.project-host .ctv-frame{display:block;width:100%;height:100%;border:0;background:#061225}
/* Admin member directory: compact, keyboard-accessible controls. */
.member-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-top:-10px}.member-tabs button{border:0;border-radius:8px 8px 0 0;color:#526176;font-weight:600}.member-tabs button[aria-selected="true"]{background:#e7f1ff;color:#0055a6;box-shadow:inset 0 -2px #005ebc}.member-table-wrap{max-width:100%}.member-table{min-width:1280px}.member-table th,.member-table td{padding:11px 12px}.member-sort{border:0;background:transparent;min-height:28px;padding:2px 4px;border-radius:6px;font-size:12px;color:#586473;white-space:nowrap}.member-sort.selected{color:#005ebc;font-weight:700;background:#e7f1ff}.member-sort span{font-size:15px}.member-identity{display:flex;align-items:center;justify-content:flex-start;gap:10px;text-align:left;border:0;padding:0;min-height:38px;border-radius:7px}.member-identity strong{font-weight:600}.member-identity:hover strong{text-decoration:underline;color:#005ebc}.member-avatar{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;overflow:hidden;border-radius:50%;background:#e3efff;color:#0055a6;font-weight:700}.member-avatar img{width:100%;height:100%;object-fit:cover}.member-role{font-weight:600}.member-role.owner{color:#bd6500;font-weight:800}.member-role.manager{color:#007f9c;font-weight:800}.member-status{display:inline-flex;align-items:center;gap:3px}.member-status button{min-height:25px;width:25px;padding:0;border:0;border-radius:50%;font-size:14px;color:#526176}.member-profile .kv{margin:20px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.help-admin{max-width:980px}.help-admin-head,.help-topic-head,.help-topic-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.help-admin-head{margin-bottom:18px}.help-topic{padding:18px;margin:0 0 14px;border:1px solid rgba(147,187,230,.25);border-radius:14px;background:rgba(13,36,68,.45)}.help-topic-head{margin-bottom:14px}.help-topic-actions{justify-content:flex-end}.help-topic-actions button{min-width:34px}.help-topic label{display:block;margin:10px 0;color:#bad1ed;font-size:13px}.help-topic input,.help-topic textarea{display:block;width:100%;margin-top:7px;padding:10px 12px;box-sizing:border-box;border:1px solid rgba(147,187,230,.35);border-radius:9px;background:#0b213d;color:#fff;font:inherit}.help-topic textarea{resize:vertical;min-height:96px;line-height:1.5}.help-copy{white-space:pre-line;line-height:1.6}
