:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#1b2435;background:#f6f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}.app-shell{min-height:100vh;display:flex}.sidebar{width:234px;flex:none;background:#fff;border-right:1px solid #e9ebf0;display:flex;flex-direction:column;padding:26px 16px}.brand{display:flex;align-items:center;gap:10px;padding:0 6px 48px;font-size:15px;font-weight:750;letter-spacing:-.4px;white-space:nowrap}.brand-muted{font-weight:450;color:#747d8e}.brand-mark{display:block;flex:none;width:32px;height:32px;object-fit:contain}.sidebar-label{color:#a2a9b5;font-size:11px;font-weight:700;margin:0 12px 12px;letter-spacing:.08em}.nav-item{height:42px;border-radius:8px;background:#f0efff;color:#5952d6;font-size:13px;font-weight:650;display:flex;align-items:center;gap:11px;padding:0 12px}.nav-item>span:first-child{font-size:18px}.nav-count{margin-left:auto;font-size:11px;color:#817be5}.sidebar-note{margin-top:auto;border:1px solid #eef0f3;background:#fafbfc;border-radius:10px;padding:14px 12px;display:flex;gap:9px;align-items:flex-start;font-size:12px}.sidebar-note strong{font-weight:650}.sidebar-note p{margin:5px 0 0;color:#98a0ad;font-size:11px}.status-indicator{width:7px;height:7px;border-radius:50%;background:#49bc8e;display:inline-block;flex:none;margin-top:5px;box-shadow:0 0 0 3px #e3f7ef}.main{flex:1;min-width:0}.topbar{height:68px;background:#fff;border-bottom:1px solid #e9ebf0;display:flex;align-items:center;justify-content:space-between;padding:0 48px;color:#747e8d;font-size:12px}.slash{margin:0 10px;color:#c6cbd3}.topbar-end{display:flex;align-items:center;gap:9px;color:#657082}.topbar-end .status-indicator{margin:0}.content{max-width:1280px;margin:auto;padding:46px 48px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:30px}.eyebrow{font-size:10px;color:#8882e2;letter-spacing:.14em;font-weight:750;margin-bottom:10px}h1,h2,p{margin:0}h1{font-size:27px;letter-spacing:-.04em;font-weight:720}h2{font-size:16px;font-weight:700}.page-heading p,.panel-header p,.dialog-head p{color:#87909e;font-size:13px;margin-top:9px;line-height:1.6}.primary,.secondary,.subtle,.small-button{border:0;border-radius:8px;font-weight:650;transition:background .15s,transform .15s}.primary{background:#625bea;color:white;padding:12px 17px;box-shadow:0 3px 8px #625bea27}.primary:hover{background:#514bd3}.summary-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:26px}.summary{background:#fff;border:1px solid #eceef2;border-radius:12px;padding:20px;display:flex;align-items:center;gap:14px;min-height:94px}.summary-icon{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;font-size:20px}.violet{background:#f0efff;color:#6d66e8}.green{background:#eaf8f2;color:#40ad81}.blue{background:#edf5ff;color:#5b92d9}.summary span{display:block;color:#9099a7;font-size:12px}.summary strong{display:block;font-size:23px;margin-top:5px;line-height:1}.summary .summary-text{font-size:15px;margin-top:10px}.panel{background:#fff;border:1px solid #eaecf1;border-radius:12px;overflow:hidden;min-height:260px}.panel-header{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f0f1f4}.panel-header h2{display:flex;align-items:center;gap:8px}.panel-header p{font-size:12px;margin-top:5px}.count-badge{background:#f2f1ff;color:#7770df;border-radius:20px;font-size:11px;padding:3px 7px}.subtle{background:#fff;border:1px solid #e8eaf0;padding:8px 11px;color:#697486;font-size:12px}.subtle:hover,.secondary:hover,.small-button:hover{background:#f6f7fb}.profile-row{padding:19px 24px;display:flex;align-items:center;gap:15px;border-bottom:1px solid #f1f2f5}.profile-row:last-child{border:0}.profile-avatar{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;flex:none;background:#f1f0ff;color:#6b64de;font-size:18px;font-weight:700}.profile-info{flex:1;min-width:0}.profile-name{font-size:14px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-meta{display:flex;gap:9px;align-items:center;color:#9aa2af;font-size:11px;margin-top:6px}.profile-status{display:inline-flex;align-items:center;gap:6px;color:#818a99}.profile-status:before{content:"";width:6px;height:6px;border-radius:50%;background:#b9c0cb}.profile-status.running{color:#2ba376}.profile-status.running:before{background:#40bd8a}.row-actions{display:flex;gap:8px;align-items:center}.small-button{padding:8px 12px;font-size:12px;background:#fff;color:#677182;border:1px solid #e8eaf0;white-space:nowrap}.small-button.open{background:#f0efff;border-color:#f0efff;color:#5c55d7}.small-button.delete{color:#a0a8b4;font-size:15px}.empty{text-align:center;color:#a3aab6;padding:68px 20px;font-size:13px}.empty-symbol{font-size:25px;color:#aaa5e9;display:block;margin-bottom:12px}.footnote{font-size:11px;color:#a5adba;margin-top:18px;text-align:center}#message:not(:empty){margin:14px 24px 0;padding:11px 13px;border-radius:8px;font-size:12px;background:#fff3f1;color:#b5483e;line-height:1.5}dialog{border:0;border-radius:14px;padding:0;width:min(440px,calc(100% - 32px));box-shadow:0 18px 80px #101b3530;color:#1b2435}dialog::backdrop{background:#151c2a75}dialog form{padding:27px}.dialog-head{display:flex;justify-content:space-between;margin-bottom:25px}.dialog-head p{font-size:12px}.icon-button{border:0;background:none;font-size:24px;color:#a0a8b4;align-self:flex-start;padding:0 4px}label{display:block;font-size:12px;font-weight:650;margin:17px 0 8px}label span{color:#a0a8b4;font-weight:400;margin-left:5px}input{width:100%;border:1px solid #e1e5eb;border-radius:8px;padding:11px 12px;outline:none;color:#253044;font-size:13px}input:focus{border-color:#817bf0;box-shadow:0 0 0 3px #efeeff}.field-help{font-size:11px;color:#9aa2af;line-height:1.5;margin-top:8px}.form-error{font-size:12px;color:#b5483e;min-height:16px;margin-top:10px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.secondary{background:#fff;border:1px solid #e6e9ef;color:#677182;padding:11px 16px}@media(max-width:760px){.topbar{padding:0 20px}.content{padding:30px 20px}.page-heading{align-items:flex-start}.summary-row{grid-template-columns:repeat(2,1fr)}.summary-info{display:none}.profile-row{flex-wrap:wrap}.row-actions{width:100%;padding-left:57px}.profile-name{max-width:190px}}@media(max-width:440px){.page-heading{display:block}.page-heading .primary{margin-top:18px}.summary{padding:14px;gap:9px}.summary-icon{width:35px;height:35px}.topbar-end{display:none}}

a.small-button{text-decoration:none;display:inline-block}#login-dialog::backdrop{background:#171e30dd}#login-dialog .primary{width:100%}#login-dialog .dialog-actions{margin-top:10px}
@media(max-width:440px){.topbar-end{display:flex;font-size:0}.topbar-end .status-indicator{display:none}.topbar-end button{font-size:12px}}

/* Proxy management */
select, textarea { font: inherit; width: 100%; border: 1px solid #e1e5eb; border-radius: 8px; padding: 11px 12px; color: #253044; background: #fff; font-size: 13px; }
select:focus, textarea:focus { outline: none; border-color: #817bf0; box-shadow: 0 0 0 3px #efeeff; }
.select-wrap { position: relative; min-width: 0; }
.select-wrap::after { content: ''; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border-right: 1px solid #87909e; border-bottom: 1px solid #87909e; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 36px; text-overflow: ellipsis; cursor: pointer; }
@media (forced-colors: active) {
  .select-wrap::after { display: none; }
  .select-wrap select { appearance: auto; -webkit-appearance: auto; padding-right: 12px; }
  .select-wrap select:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
}
textarea { resize: vertical; min-height: 150px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.6; }
.nav-item { text-decoration: none; background: transparent; color: #747e8d; }
.nav-item + .nav-item { margin-top: 8px; }
.nav-item:hover { background: #f6f7fb; }
.nav-item.active { background: #f0efff; color: #5952d6; }
.mobile-panel-nav { display: none; gap: 8px; margin-bottom: 16px; }
.mobile-panel-nav a { text-decoration: none; padding: 9px 12px; border-radius: 7px; color: #747e8d; font-size: 13px; font-weight: 650; }
.mobile-panel-nav a.active { background: #f0efff; color: #5952d6; }
.proxy-panel { margin-top: 24px; min-height: 180px; }
.proxies { max-height: 360px; overflow: auto; }
.proxy-row { padding: 15px 24px; border-bottom: 1px solid #f1f2f5; display: flex; gap: 14px; align-items: center; }
.proxy-row:last-child { border: 0; }
.proxy-protocol { background: #edf5ff; color: #5082bf; border-radius: 6px; font-size: 10px; font-weight: 750; padding: 6px 8px; min-width: 57px; text-align: center; }
.proxy-address { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.proxy-auth { font-size: 11px; color: #9099a7; margin-top: 4px; overflow-wrap: anywhere; }
.proxy-notice:empty { display: none; }
.proxy-notice { margin: 14px 24px 0; padding: 11px 13px; border-radius: 8px; background: #eaf8f2; color: #23815e; font-size: 12px; }
.proxy-notice.error { background: #fff3f1; color: #b5483e; }
.profile-status.error { color: #bf493e; }
.profile-status.error:before { background: #d25d50; }
.profile-error { color: #bf493e; font-size: 12px; line-height: 1.5; margin-top: 8px; overflow-wrap: anywhere; }
.profile-meta { flex-wrap: wrap; overflow-wrap: anywhere; }
.row-actions { flex-wrap: wrap; justify-content: flex-end; }
.wide-dialog { width: min(610px, calc(100% - 32px)); }
dialog { max-height: calc(100vh - 40px); overflow: auto; }
.form-columns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.multiline { white-space: pre-wrap; max-height: 150px; overflow: auto; line-height: 1.6; }
#format-help { white-space: pre-wrap; }
.file-label { margin-top: 18px; }
#proxy-file { padding: 8px; font-size: 12px; }
button:disabled { cursor: not-allowed; }
@media (max-width: 760px) { .row-actions { justify-content: flex-start; } }
@media (max-width: 440px) { .form-columns { grid-template-columns: 1fr; gap: 0; } .proxy-row { padding: 15px; } }

/* Dense workspace lists: headers remain visible while scanning large inventories. */
.sidebar { width: 200px; padding: 20px 12px; }
.brand { gap: 8px; font-size: 13px; padding: 0 3px 30px; }
.topbar { height: 48px; padding: 0 24px; }
.content { max-width: 1600px; padding: 22px 24px; }
.page-heading { margin-bottom: 16px; align-items: center; }
.page-heading .eyebrow { display: none; }
h1 { font-size: 23px; }
.page-heading p { margin-top: 5px; font-size: 12px; }
.primary { padding: 9px 13px; font-size: 13px; }
.summary-row { display: flex; gap: 24px; border: 1px solid #e9ebf0; background: #fff; border-radius: 9px; padding: 10px 16px; margin-bottom: 16px; }
.summary { min-height: 0; border: 0; border-radius: 0; padding: 0; background: none; gap: 8px; }
.summary-icon { width: 26px; height: 26px; font-size: 15px; border-radius: 6px; }
.summary > div:last-child { display: flex; align-items: baseline; gap: 8px; }
.summary strong { margin: 0; font-size: 16px; }
.summary span { font-size: 12px; }
.panel { min-height: 0; border-radius: 9px; }
.panel-header { padding: 12px 16px; }
.panel-header h2 { font-size: 14px; }
.panel-header p { font-size: 11px; margin-top: 3px; }
.list-toolbar { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid #edf0f5; }
.list-toolbar input { width: min(360px, 65%); padding: 8px 10px; font-size: 12px; }
.list-toolbar select { width: 118px; padding: 8px 10px; font-size: 12px; }
.table-scroll { overflow: auto; }
.environment-scroll { max-height: calc(100vh - 310px); min-height: 120px; }
.compact-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: 100%; font-size: 12px; text-align: left; }
.environment-table { min-width: 820px; }
.compact-table th { position: sticky; top: 0; z-index: 1; height: 32px; padding: 6px 12px; background: #f8f9fc; color: #8c95a4; font-size: 11px; font-weight: 550; border-bottom: 1px solid #eaedf3; }
.compact-table td { height: 40px; padding: 5px 12px; border-bottom: 1px solid #f0f2f6; vertical-align: middle; }
.compact-table tr:last-child td { border-bottom: 0; }
.compact-table .profile-row, .compact-table .proxy-row { display: table-row; padding: 0; border: 0; }
.compact-table tbody tr:hover { background: #fafaff; }
.compact-table .row-number { width: 54px; color: #98a1af; font-variant-numeric: tabular-nums; padding-left: 16px; }
.compact-table .status-cell { width: 108px; }
.compact-table .actions-cell { width: 270px; text-align: right; }
.environment-table th:nth-child(2) { width: 25%; }
.environment-table .name-cell, .environment-table .proxy-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name-cell { font-weight: 600; }
.proxy-cell { color: #818c9d; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.profile-status { white-space: nowrap; font-size: 11px; }
.row-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 5px; width: auto; padding: 0; }
.small-button { padding: 5px 7px; border-radius: 5px; font-size: 11px; }
.small-button.open { color: #5851d6; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; border-top: 1px solid #edf0f5; font-size: 11px; color: #8b95a3; }
.page-controls { display: flex; gap: 9px; align-items: center; }
.page-controls label { margin: 0; font-size: 11px; font-weight: 400; }
.page-controls select { width: 64px; padding: 5px 6px; font-size: 11px; }
.page-controls .subtle { padding: 4px 9px; font-size: 16px; line-height: 18px; }
#page-number { font-variant-numeric: tabular-nums; min-width: 40px; text-align: center; }
.empty { height: auto !important; padding: 32px 16px !important; font-size: 12px; }
.proxy-panel { margin-top: 0; }
.proxy-scroll { max-height: calc(100vh - 310px); }
.proxy-table { min-width: 840px; }
.proxy-table th:first-child { width: 96px; padding-left: 16px; }
.proxy-table td:first-child { padding-left: 16px; }
.proxy-table th:nth-child(3) { width: 19%; }
.proxy-table th:nth-child(4) { width: 29%; }
.proxy-table th:last-child { width: 178px; text-align: right; }
.proxy-table .proxy-actions { text-align: right; }
.proxy-actions .small-button + .small-button { margin-left: 6px; }
.proxy-actions .danger:disabled { color: #8791a0; cursor: not-allowed; }
.proxy-check-result { margin: 0; color: #8791a0; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.proxy-check-result:empty { display: none; }
.proxy-check-result.success { color: #23815e; }
.proxy-check-result.error { color: #b5483e; }
.proxy-check-result.pending { color: #665cc9; }
.proxy-check-cell .proxy-check-result { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proxy-check-box { margin: 10px 0 14px; }
.proxy-check-toolbar { display: flex; align-items: center; gap: 9px; }
.proxy-check-toolbar span { font-size: 11px; color: #8c95a4; line-height: 1.5; }
.proxy-check-box .proxy-check-result:not(:empty) { margin-top: 8px; padding: 8px 10px; border-radius: 6px; background: #f7f8fb; }
.proxy-clear-password { display: flex; align-items: center; gap: 7px; font-weight: 450; }
#proxy-edit-form .form-columns { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.proxy-table td { height: 34px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.proxy-table .proxy-address { font-size: 12px; font-weight: 400; }
.proxy-table .proxy-auth { margin: 0; font-size: 11px; }
.proxy-protocol { padding: 3px 6px; }
.proxy-notice { margin: 8px 16px; padding: 8px 10px; }
.footnote { margin-top: 12px; }
.profile-status.pending { color: #b27a20; }
.profile-status.pending:before { background: #dfaa4e; }
.sync-message { display: block; max-width: 220px; margin-top: 4px; color: #727e91; font-size: 10px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.fingerprint-fields { border: 1px solid #e9ebf2; border-radius: 9px; margin: 20px 0 0; padding: 0 14px 14px; }
.fingerprint-fields legend { color: #727e91; padding: 0 6px; font-size: 12px; }
.fingerprint-fields[hidden] { display: none; }
.fingerprint-fields .form-columns { grid-template-columns: 1fr 1fr; }
.fingerprint-fields label { margin: 12px 0 6px; }
.fingerprint-fields input, .fingerprint-fields select { padding: 9px 11px; }
.inline-proxy-fields { border: 1px solid #e9ebf2; border-radius: 9px; margin: 14px 0 0; padding: 0 12px 10px; }
.inline-proxy-fields legend { padding: 0 6px; color: #727e91; font-size: 12px; }
.inline-proxy-fields label { margin: 10px 0 6px; }
.inline-proxy-fields .form-columns { grid-template-columns: 1fr 1fr; }
.inline-proxy-fields input, .inline-proxy-fields select { padding: 9px 10px; }
#profile-inline-text { min-height: 58px; resize: vertical; font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.inline-proxy-fields .field-help { margin-bottom: 0; }
@media (max-width: 440px) { .inline-proxy-fields .form-columns { grid-template-columns: 1fr; } }
.wide-dialog .dialog-head { margin-bottom: 18px; }
input[readonly] { background: #f6f7fa; color: #808a9a; }
@media (max-width: 440px) { .fingerprint-fields .form-columns { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .mobile-panel-nav { display: flex; }
  .content { padding: 16px; }
  .topbar { padding: 0 16px; }
}
@media (max-width: 540px) {
  .summary-row { gap: 12px; padding: 10px; }
  .summary-icon { display: none; }
  .summary-info { display: flex; }
  .summary > div:last-child { gap: 5px; }
  .summary span { font-size: 11px; }
  .page-heading { display: flex; gap: 10px; }
  .page-heading .primary { margin: 0; white-space: nowrap; }
  h1 { font-size: 20px; }
  .page-heading p { display: none; }
  .environment-scroll { max-height: calc(100vh - 280px); }
}

/* Accounts, teams and compact environment organization. */
[hidden] { display: none !important; }
.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; }
.topbar { min-height: 60px; height: auto; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.workspace-switch { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.workspace-switch select { width: 190px; font-size: 12px; padding: 7px 9px; }
.workspace-switch .subtle { white-space: nowrap; padding: 7px 9px; }
.topbar-end { margin-left: auto; }
#current-user { max-width: 100px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.list-toolbar { flex-wrap: wrap; gap: 8px; }
.list-toolbar input[type="search"] { flex: 1 1 210px; width: auto; max-width: 380px; }
.list-toolbar select { width: 110px; }
.list-toolbar #tag-filter { width: 128px; }
#batch-assign { margin-left: auto; font-size: 12px; white-space: nowrap; }
#selected-count { padding-left: 5px; font-variant-numeric: tabular-nums; }
.environment-table { min-width: 990px; }
.environment-table th:nth-child(2) { width: 48px; }
.environment-table th:nth-child(3) { width: 24%; }
.compact-table .select-cell { width: 36px; padding: 7px 8px 7px 12px; text-align: center; }
.compact-table .row-number { width: 48px; padding-left: 8px; }
.compact-table .assigned-cell { width: 122px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: #7b8698; }
.compact-table .actions-cell { width: 228px; }
input[type="checkbox"] { width: 15px; height: 15px; padding: 0; accent-color: #625bea; vertical-align: middle; cursor: pointer; }
.name-line { display: flex; align-items: center; gap: 5px; min-height: 20px; }
.name-line > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-indicator { border: 0; border-radius: 4px; padding: 1px 4px; background: #f0efff; color: #7b74ce; cursor: pointer; font-size: 13px; flex: none; }
.profile-tags { display: flex; overflow: hidden; gap: 4px; margin: 1px 0 2px; }
.tag-badge { font-size: 10px; font-weight: 450; border-radius: 3px; padding: 1px 5px; color: #5d61a1; background: #f1f2fa; flex: none; max-width: 130px; text-overflow: ellipsis; overflow: hidden; }
.auth-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 8px; background: #f4f5fa; margin-bottom: 18px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; border-radius: 6px; color: #8790a1; padding: 8px; font-size: 12px; font-weight: 600; }
.auth-tabs button.active { background: #fff; color: #625bea; box-shadow: 0 1px 4px #18244a0c; }
.security-status { font-size: 13px; color: #59667c; line-height: 1.65; }
.security-secret { font-family: ui-monospace, monospace; letter-spacing: .06em; }
.security-import { margin-top: 12px; color: #697486; font-size: 12px; }
.security-import summary { cursor: pointer; }
.security-import textarea, .security-recovery textarea { width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid #e1e5eb; border-radius: 8px; font: 12px/1.65 ui-monospace, monospace; resize: vertical; color: #253044; background: #fafbff; overflow-wrap: anywhere; }
.security-recovery { padding: 0 14px 14px; border: 1px solid #e2dff7; border-radius: 8px; background: #f8f7ff; }
.security-recovery h3 { margin-top: 14px; }
#account-security-submit.danger { background: #ad4e47; box-shadow: none; }
@media(max-width:440px) { .topbar-end:has(#account-security) { display: flex; } .topbar-end #current-user { display: none; } }
.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.notes-input { font-family: inherit; min-height: 76px; font-size: 12px; }
.member-picker-field { margin: 18px 0 0; padding: 10px 12px; border: 1px solid #e9ebf2; border-radius: 8px; min-width: 0; }
.member-picker-field legend { color: #727e91; font-size: 12px; padding: 0 5px; }
.member-picker { max-height: 170px; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; font-size: 12px; color: #8b95a5; }
.member-choice { display: flex; align-items: center; gap: 7px; margin: 0; padding: 7px 0; font-size: 12px; font-weight: 450; min-width: 0; }
.member-choice span { margin: 0; color: #667287; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-choice input { flex: none; }
.dialog-body { padding: 27px; }
.dialog-body form { padding: 0; }
.team-dialog { width: min(720px, calc(100% - 32px)); }
h3 { font-size: 13px; color: #647086; margin: 22px 0 6px; font-weight: 650; }
.member-table { min-width: 440px; }
.member-table th:first-child { width: 45%; }
.member-table th:nth-child(2) { width: 90px; }
.member-table th:last-child, .member-table td:last-child { text-align: right; }
.member-table td:last-child .small-button { margin-left: 5px; }
.member-table td strong, .invitation-row strong { display: block; font-size: 12px; font-weight: 550; }
.member-table td small, .invitation-row small { display: block; color: #98a1ae; font-size: 10px; margin-top: 3px; overflow-wrap: anywhere; }
.invite-result { margin-top: 14px; padding: 12px; border-radius: 8px; background: #f4f3ff; }
.invite-result label { margin-top: 0; }
.invite-result input { font-size: 11px; margin-bottom: 8px; }
.invitation-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf0f4; }
.invitation-row:last-child { border-bottom: 0; }
.small-button.danger { color: #b5645e; }
#team-error:empty { display: none; }

/* Codes stay compact and expire using the server's clock. */
.environment-table { min-width: 990px; }
.environment-table th:nth-child(3) { width: 20%; }
.environment-table .status-cell { width: 96px; }
.environment-table .assigned-cell { width: 100px; }
.environment-table .actions-cell { width: 190px; padding-left: 8px; padding-right: 8px; }
.environment-table .row-actions { gap: 4px; }
.environment-table .row-actions .small-button { padding-left: 5px; padding-right: 5px; }
.compact-table .totp-cell { width: 128px; padding-left: 10px; padding-right: 10px; }
.totp-line { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 22px; }
.totp-code { appearance: none; border: 0; background: transparent; color: #514bbd; padding: 1px 0; font: 650 13px ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: .035em; white-space: nowrap; cursor: pointer; }
.totp-code:hover:not(:disabled) { color: #3028a7; }
.totp-code:focus-visible { outline: 2px solid #a39df5; outline-offset: 2px; border-radius: 2px; }
.totp-code:disabled { color: #a0a8b5; font-size: 11px; letter-spacing: 0; font-weight: 450; }
.totp-remaining { color: #8f98a7; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; min-width: 22px; text-align: right; }
.totp-progress { height: 3px; overflow: hidden; border-radius: 3px; background: #eae8fa; margin: 1px 0 4px; }
.totp-progress > span { display: block; height: 100%; border-radius: inherit; background: #8a80e7; }
.totp-expiring .totp-progress > span { background: #d6a24d; }
.totp-expiring .totp-remaining { color: #b5822e; }
.totp-unset { font-size: 11px; color: #a0a8b5; }
.totp-remove { display: flex; align-items: center; gap: 7px; font-weight: 450; color: #a15e59; margin-top: 12px; }
.totp-settings { margin-top: 18px; padding-top: 1px; border-top: 1px solid #edf0f5; }
#bind-running-help { border-radius: 6px; background: #f5f3ff; color: #7b73ba; padding: 9px 11px; }
#bind-engine-fields:disabled { opacity: .65; }
.clipboard-buffer { position: fixed; top: -1000px; left: -1000px; width: 1px; height: 1px; min-height: 0; }

/* Sync state stays in the existing compact row rather than adding columns. */
.runtime-notice { margin: 12px 18px 0; padding: 9px 11px; border-radius: 7px; background: #f3f4ff; color: #726ba1; font-size: 11px; line-height: 1.6; }
.runtime-notice.runtime-warning { background: #fff3e8; color: #a47127; }
.runtime-preparation { margin: 8px 18px 0; padding: 9px 11px; border: 1px solid #e8e6f3; border-radius: 7px; background: #fcfbff; font-size: 11px; }
.runtime-preparation[hidden] { display: none; }
.runtime-preparation-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 20px; }
.runtime-preparation-line strong { color: #68618d; font-weight: 600; }
.runtime-preparation-actions { display: flex; gap: 9px; flex-shrink: 0; }
.runtime-preparation-actions button { padding: 0; border: 0; background: none; color: #7266d8; font-size: 11px; cursor: pointer; }
.runtime-preparation-actions button:disabled { opacity: .5; cursor: default; }
.runtime-preparation p { margin: 3px 0; color: #647087; line-height: 1.5; overflow-wrap: anywhere; }
.runtime-preparation small { color: #939bad; font-size: 10px; }
.runtime-preparation progress { display: block; width: 100%; height: 4px; margin: 6px 0; accent-color: #8073dc; }
.runtime-preparation progress[hidden] { display: none; }
.runtime-preparation[data-state="error"] { background: #fffaf4; border-color: #f2e4cf; }
.runtime-preparation[data-state="ready"] { padding-block: 6px; background: #f8fcfa; border-color: #e0ede6; }
.runtime-preparation[data-state="ready"] strong { color: #4e8b70; }
.environment-table { min-width: 1080px; }
.environment-table .status-cell { width: 148px; max-width: 170px; }
.environment-table .actions-cell { width: 250px; }
.sync-detail { display: block; max-width: 150px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 400; color: #99a1ad; }
.environment-table button:disabled { cursor: default; }
@media (max-width: 900px) {
  .topbar { gap: 9px; }
  .workspace-switch { gap: 5px; }
  .workspace-switch select { width: 155px; }
  .workspace-switch .subtle { font-size: 11px; padding: 7px; }
  .topbar-end { gap: 6px; }
  #current-user { max-width: 70px; font-size: 11px; }
  .environment-scroll { max-height: calc(100vh - 340px); }
}
@media (max-width: 540px) {
  .workspace-switch { width: 100%; }
  .workspace-switch select { flex: 1 1 125px; }
  .topbar-end { width: 100%; justify-content: flex-end; }
  .topbar-end #current-user { max-width: 160px; display: inline; }
  .member-picker { grid-template-columns: 1fr; }
  .dialog-body { padding: 22px; }
  .list-toolbar input[type="search"] { max-width: none; flex-basis: 100%; }
  .list-toolbar #tag-filter, .list-toolbar #status-filter { flex: 1; }
  .environment-scroll { max-height: calc(100vh - 360px); }
}

/* Team extension library and per-profile installation choices. */
.extension-import-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding: 12px 16px; border-bottom: 1px solid #edf0f5; }
.extension-file-field { flex: 1 1 260px; min-width: 0; }
.extension-file-field label { margin: 0 0 6px; font-size: 12px; }
.extension-file-field label span { font-size: 11px; color: #8c95a4; font-weight: 400; margin-left: 5px; }
#extension-file { width: 100%; padding: 6px 8px; font-size: 12px; }
.extension-import-form .field-help { width: 100%; margin: 0; }
.extension-scroll { max-height: calc(100vh - 430px); min-height: 110px; }
.extension-table { min-width: 670px; }
.extension-table th:first-child { width: 31%; }
.extension-table th:nth-child(2) { width: 100px; }
.extension-table th:nth-child(4) { width: 80px; }
.extension-table th:last-child { width: 78px; text-align: right; }
.extension-name strong, .extension-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.extension-name strong { font-size: 12px; font-weight: 550; }
.extension-name small { font-size: 10px; color: #8c95a4; margin-top: 3px; }
.extension-permissions { color: #7b8698; font-size: 11px; }
.extension-permissions summary { cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.extension-permissions details[open] summary { color: #5d56bb; }
.extension-permissions details div { padding-top: 5px; white-space: normal; overflow-wrap: anywhere; line-height: 1.65; }
.extension-actions { text-align: right; }
.extension-picker { max-height: 170px; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; font-size: 12px; color: #8b95a5; }
.extension-choice { display: flex; align-items: center; gap: 8px; margin: 0; padding: 5px 0; font-size: 12px; font-weight: 450; min-width: 0; }
.extension-choice input { flex: none; }
.extension-choice span { margin: 0; color: #667287; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bind-extension-fields:disabled { opacity: .65; }
#create-extension-count, #bind-extension-count { margin-left: 6px; font-size: 10px; color: #99a1ad; font-variant-numeric: tabular-nums; }
@media (max-width: 540px) { .mobile-panel-nav { flex-wrap: wrap; gap: 4px; } .extension-import-form .primary { width: 100%; } }

/* Configurable branding */
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
#brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-preview-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #e7eaf0; border-radius: 10px; background: #fafbfe; margin-bottom: 10px; }
.brand-preview-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; flex: none; background: #fff; border: 1px solid #eef0f5; }
.brand-preview-info { display: flex; flex-direction: column; min-width: 0; }
.brand-preview-info strong { font-size: 15px; font-weight: 700; color: #1b2435; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-logo-controls { display: flex; align-items: center; gap: 10px; }
.brand-logo-controls input[type="file"] { flex: 1; padding: 8px; font-size: 12px; }
.brand-logo-controls button { flex: none; white-space: nowrap; }
.site-admin-body { padding: 20px 24px; }
.site-admin-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #747e8d; font-size: 12px; }
.site-admin-identity strong { color: #253044; }
.site-admin-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.site-admin-counts > div { border: 1px solid #eceef2; border-radius: 9px; background: #fafbfe; padding: 14px; }
.site-admin-counts dt { color: #87909e; font-size: 12px; }
.site-admin-counts dd { margin: 7px 0 0; font-size: 22px; font-weight: 650; }
.site-brand-settings { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #edf0f5; padding: 20px 0 12px; }
.site-brand-settings p { margin-top: 8px; font-size: 12px; color: #87909e; line-height: 1.6; }
.site-brand-settings p strong { color: #4d586b; margin-right: 10px; }
#site-admin-message[data-status="success"] { color: #2ba376; }
.site-registration-settings { margin: 18px 0; padding: 16px 0; border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; }
#site-registration-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 10px; }
.site-registration-field { flex: 0 1 240px; min-width: 170px; }
.site-registration-field label { margin: 0 0 6px; }
.site-registration-field select { width: 100%; padding: 8px 30px 8px 10px; font-size: 12px; }
#site-registration-save { padding: 9px 14px; font-size: 12px; }
.site-registration-message { margin-top: 8px; font-size: 12px; color: #238367; line-height: 1.5; }
.site-registration-message:empty { display: none; }
.site-registration-message[data-status="loading"] { color: #87909e; }
.site-registration-message[data-status="error"] { color: #b5483e; }
@media (max-width: 760px) { .site-admin-body { padding: 16px; } .site-admin-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* A single left menu keeps team and account actions next to the workspace. */
body { --desktop-titlebar-height: 0px; }
body.desktop-app { --desktop-titlebar-height: 40px; padding-top: var(--desktop-titlebar-height); }
.app-shell { min-height: calc(100vh - var(--desktop-titlebar-height)); }
.sidebar {
  position: sticky; top: var(--desktop-titlebar-height); align-self: flex-start;
  width: 176px; height: calc(100vh - var(--desktop-titlebar-height));
  padding: 16px 8px 12px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; display: flex;
}
.sidebar .brand { gap: 7px; padding: 0 3px 16px; }
.sidebar .brand > .brand-text { display: flex; }
.sidebar .sidebar-label { display: block; margin: 0 8px 7px; font-size: 10px; letter-spacing: .06em; }
.sidebar-team { padding: 0 2px 12px; }
.sidebar-team .sidebar-label { margin-left: 6px; }
.team-select-wrap { position: relative; }
.team-select-wrap::after { content: ''; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border-right: 1px solid #87909e; border-bottom: 1px solid #87909e; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sidebar-team select { appearance: none; -webkit-appearance: none; width: 100%; height: 34px; padding: 0 30px 0 10px; font-size: 12px; text-overflow: ellipsis; background-color: #fafbfe; cursor: pointer; }
@media (forced-colors: active) {
  .team-select-wrap::after { display: none; }
  .sidebar-team select { appearance: auto; -webkit-appearance: auto; padding-right: 8px; }
  .sidebar-team select:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
}
.sidebar-team-management { margin-top: 5px; }
.sidebar-team-management > summary { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 6px; border-radius: 7px; color: #747e8d; cursor: pointer; font-size: 12px; font-weight: 550; list-style: none; }
.sidebar-team-management > summary::-webkit-details-marker { display: none; }
.sidebar-team-management > summary > span { width: 18px; text-align: center; font-size: 16px; }
.sidebar-team-management > summary::after { content: ''; width: 5px; height: 5px; margin-left: auto; margin-right: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg); }
.sidebar-team-management[open] > summary::after { transform: rotate(45deg); }
.sidebar-team-management > summary:hover { background: #f6f7fb; }
.sidebar-team-management > summary:focus-visible { outline: 2px solid #817bf0; outline-offset: -2px; }
.sidebar-team-actions { margin: 3px 0 0 14px; padding-left: 8px; border-left: 1px solid #edf0f5; }
.sidebar .sidebar-team-actions .nav-item { height: 32px; padding-left: 6px; font-size: 11px; }
.sidebar-navigation { padding-top: 12px; border-top: 1px solid #edf0f5; }
.sidebar .nav-item { display: flex; width: 100%; height: 32px; padding: 0 8px; gap: 7px; border: 0; text-align: left; font-size: 12px; font-weight: 550; flex: none; }
.sidebar .nav-item + .nav-item { margin-top: 3px; }
.sidebar .nav-item > span:first-child { width: 18px; text-align: center; font-size: 16px; flex: none; }
.sidebar .nav-count { margin-left: 1px; }
.sidebar-account { margin-top: auto; padding-top: 12px; border-top: 1px solid #edf0f5; }
.sidebar-user { display: flex; align-items: center; gap: 9px; margin: 0 8px 7px; min-width: 0; }
.user-avatar { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: #f0efff; color: #7770df; font-size: 13px; }
.sidebar #current-user { display: block; max-width: none; min-width: 0; font-size: 12px; color: #4d586b; font-weight: 600; }
.sidebar #logout { color: #87909e; }
.sidebar .sidebar-note { display: flex; margin-top: 12px; padding: 9px 8px; border-radius: 8px; flex: none; font-size: 11px; }
.sidebar .sidebar-note p { font-size: 10px; }
.content { padding-top: 26px; }
.environment-scroll, .proxy-scroll { max-height: calc(100vh - var(--desktop-titlebar-height) - 270px); }
.extension-scroll { max-height: calc(100vh - var(--desktop-titlebar-height) - 370px); }
@media (max-width: 760px) {
  .content { padding: 18px 16px; }
  .environment-scroll, .proxy-scroll { max-height: calc(100vh - var(--desktop-titlebar-height) - 310px); }
  .extension-scroll { max-height: calc(100vh - var(--desktop-titlebar-height) - 410px); }
}
@media (max-width: 540px) {
  .environment-scroll, .proxy-scroll { max-height: calc(100vh - var(--desktop-titlebar-height) - 330px); }
}

/* Site-level client publication. Team roles never expose these controls. */
.site-download-settings { margin-top: 24px; padding-top: 24px; border-top: 1px solid #edf0f5; }
.download-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.download-section-heading p { margin-top: 7px; font-size: 12px; color: #87909e; line-height: 1.7; }
.download-section-heading > a { text-decoration: none; flex: none; }
.download-settings-notice { font-size: 12px; color: #a05e37; margin-top: 10px; }
.download-settings-notice:empty { display: none; }
.download-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; margin-top: 18px; }
.download-setting-card { min-width: 0; border: 1px solid #e7eaf1; border-radius: 10px; padding: 18px; background: #fcfcfe; }
.download-setting-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.download-setting-heading h3 { margin: 0; font-size: 16px; }
.download-setting-heading p { margin-top: 5px; color: #87909e; font-size: 11px; }
.download-publish-state { flex: none; padding: 4px 7px; border-radius: 5px; color: #8a93a1; background: #f0f2f6; font-size: 10px; }
.download-publish-state.published { color: #238367; background: #eaf6f1; }
.download-current-meta { min-height: 34px; margin-top: 13px; color: #8992a0; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.download-setting-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.download-setting-card label { margin-top: 14px; font-size: 11px; }
.download-setting-card input, .download-setting-card select { padding: 9px 10px; font-size: 12px; background-color: #fff; }
.download-setting-card .select-wrap select { padding-right: 30px; }
.download-setting-card input[type="file"] { padding: 7px; }
.download-setting-card input[type="file"]::file-selector-button { border: 1px solid #e1e4ec; background: #f6f6fd; color: #625baa; border-radius: 5px; padding: 5px 8px; margin-right: 8px; font: inherit; cursor: pointer; }
.download-setting-card .field-help { color: #919aa8; }
.download-published-link { margin-top: 16px; padding-top: 1px; border-top: 1px dashed #e4e7ef; }
.download-published-link > div { display: flex; gap: 7px; }
.download-published-link input { min-width: 0; color: #7c8595; font-size: 11px; }
.download-published-link button { flex: none; }
.download-published-link details { margin-top: 8px; font-size: 10px; color: #8c94a1; }
.download-published-link summary { cursor: pointer; }
.download-published-link code { display: block; overflow-wrap: anywhere; margin-top: 6px; line-height: 1.6; }
.download-setting-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.download-setting-actions .primary { padding: 9px 12px; font-size: 12px; }
.download-setting-actions button:disabled { cursor: default; }
.download-setting-message { margin-top: 10px; color: #238367; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.download-setting-message:empty { display: none; }
.download-setting-message[data-status="error"] { color: #b5483e; }
.download-upload-progress { margin-top: 15px; padding: 10px; border-radius: 7px; background: #f1f0ff; }
.download-upload-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #6861c5; font-size: 11px; }
.download-upload-progress .text-button { padding: 0; border: 0; background: none; color: #77718a; font-size: 11px; }
.download-upload-progress progress { display: block; width: 100%; height: 5px; margin-top: 10px; accent-color: #6962dc; }
@media (max-width: 1000px) { .download-settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .download-section-heading { flex-direction: column; gap: 10px; } .download-setting-card { padding: 14px; } .download-setting-fields { grid-template-columns: 1fr; gap: 0; } }
.login-location-note{font-size:12px;line-height:1.65;color:#5e6575;margin:16px 0 0}
.email-code-controls { display: flex; align-items: center; gap: 10px; }
.email-code-controls input { min-width: 0; flex: 1; }
.email-code-controls button { flex: none; white-space: nowrap; }
.auth-options { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; }
#login-form .auth-option { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 12px; line-height: 1.5; cursor: pointer; }
#login-form .auth-option[hidden] { display: none; }
#login-form .auth-option input { flex: none; width: 15px; height: 15px; margin: 0; padding: 0; accent-color: #6962dc; }
#login-form .auth-option span { margin: 0; color: #4d5567; font-weight: 500; }
