:root {
  --ink: #172336;
  --muted: #6b7788;
  --line: #dce4ea;
  --soft-line: #e9eef2;
  --canvas: #f3f6f7;
  --surface: #ffffff;
  --navy: #183b5b;
  --blue: #1b78d0;
  --blue-soft: #e8f2fb;
  --mint: #cceee6;
  --mint-ink: #197a6e;
  --coral: #ffd8cf;
  --coral-ink: #b44935;
  --amber: #f7e4af;
  --amber-ink: #946600;
  --radius: 8px;
  font-family: "Noto Sans SC", "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(27,120,208,.24); outline-offset: 1px; }
svg { width: 17px; height: 17px; stroke-width: 1.8; }
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: sticky; top: 0; width: 232px; height: 100vh; min-height: 100vh; flex: 0 0 232px; display: flex; flex-direction: column; overflow: hidden; background: #17344d; color: #d9e5ed; padding: 14px 12px 12px; box-shadow: 4px 0 18px rgba(15,35,52,.1); }
.brand { display: flex; align-items: center; height: 42px; gap: 10px; margin: 0 0 10px; padding: 0 7px; color: #fff; text-decoration: none; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 15px; font-weight: 800; letter-spacing: 0; }
.brand-mark { width: 30px; height: 30px; display: grid; flex: 0 0 30px; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 3px; padding: 5px; border-radius: 7px; background: #f6a623; }
.brand-mark span { background: #193650; border-radius: 1px; }
.brand-mark span:nth-child(1) { height: 52%; }.brand-mark span:nth-child(2) { height: 100%; }.brand-mark span:nth-child(3) { height: 72%; }
.nav-list { display: grid; gap: 5px; overflow-y: auto; padding-bottom: 108px; }
.nav-item { width: 100%; height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #b9d3e3; text-align: left; text-decoration: none; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 13px; font-weight: 700; }
.nav-item:hover { background: rgba(255,255,255,.08); color: white; }.nav-item.active { background: #2b6088; color: white; }.nav-item svg { color: currentColor; }
.sidebar-bottom { position: fixed; z-index: 20; left: 12px; bottom: 12px; width: 208px; margin-top: 0; padding: 10px 0 0; border-top: 1px solid rgba(255,255,255,.12); background: #17344d; }
.workspace-mini { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #aebfcd; padding: 11px 7px; }.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #72d5a1; }
.user-chip { width: 100%; display: grid; grid-template-columns: 32px minmax(0,1fr) 14px; align-items: center; gap: 9px; padding: 6px 7px; color: #eaf2f7; border: 0; background: transparent; border-radius: 6px; text-align: left; }.user-chip:hover { background: rgba(255,255,255,.07); }.user-chip > .ops-user-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e08a54; color: #fff; font-size: 11px; font-weight: 800; }.user-chip svg { width: 14px; }.ops-user-copy { min-width: 0; }.ops-user-copy strong, .ops-user-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.ops-user-copy strong { color: #f7fbfd; font-size: 12px; }.ops-user-copy small { margin-top: 2px; color: #aebfcd; font-size: 10px; }

.main-content { min-width: 0; width: 100%; padding: 26px clamp(20px, 3.2vw, 52px) 38px; }
.main-content.view-overview #boardSection, .main-content.view-overview #teamSection { display: none; }
.main-content.view-workflow #dataPanel, .main-content.view-workflow #boardSection, .main-content.view-workflow #teamSection { display: none; }
.main-content.view-data #workspaceStats, .main-content.view-data #modulePanel, .main-content.view-data #configPanel, .main-content.view-data #developmentArchitecture, .main-content.view-data #resultsSection, .main-content.view-data #boardSection, .main-content.view-data #teamSection { display: none; }
.main-content.view-data #workspaceGrid { grid-template-columns: minmax(0, 1fr); margin-top: 23px; }
.main-content.view-data #dataPanel { grid-column: 1; }
.main-content.view-board #workspaceHeader, .main-content.view-board #workspaceStats, .main-content.view-board #workspaceGrid, .main-content.view-board #developmentArchitecture, .main-content.view-board #resultsSection, .main-content.view-board #teamSection { display: none; }
.main-content.view-team #workspaceHeader, .main-content.view-team #workspaceStats, .main-content.view-team #workspaceGrid, .main-content.view-team #developmentArchitecture, .main-content.view-team #resultsSection, .main-content.view-team #boardSection { display: none; }
.main-content.view-records #workspaceHeader, .main-content.view-records #workspaceStats, .main-content.view-records #workspaceGrid, .main-content.view-records #developmentArchitecture, .main-content.view-records #boardSection, .main-content.view-records #teamSection { display: none; }
.main-content.view-board #boardSection, .main-content.view-team #teamSection { margin-top: 0; }
.ops-access-loading .main-content { visibility: hidden; }
.ops-access-gate, .ops-onboarding-gate { min-height: calc(100vh - 64px); place-content: center; justify-items: center; padding: 36px; text-align: center; }
.ops-access-gate[hidden] { display: none; }
.ops-onboarding-gate[hidden] { display: none; }
.ops-access-pending:not(.ops-admin-view) .main-content > :not(#opsAccessGate) { display: none !important; }
.ops-access-pending:not(.ops-admin-view) #opsAccessGate { display: grid; }
.ops-onboarding .main-content > :not(#opsOnboardingGate) { display: none !important; }
.ops-onboarding #opsOnboardingGate { display: grid; }
.ops-admin-view #opsAccessGate { display: none !important; }
.ops-access-gate-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px; border: 1px solid #b9d7e9; border-radius: 8px; color: #176c9f; background: #eaf5fb; }
.ops-access-gate-icon svg { width: 27px; height: 27px; }
.ops-access-gate h1, .ops-onboarding-gate h1 { margin: 3px 0 8px; color: var(--ink); font: 800 25px/1.25 "Manrope", "Noto Sans SC", sans-serif; letter-spacing: 0; }
.ops-access-gate > p:not(.eyebrow), .ops-onboarding-gate > p:not(.eyebrow) { max-width: 500px; margin: 0; color: #6e8190; font-size: 13px; line-height: 1.75; }
.ops-access-gate-actions { display: flex; gap: 9px; margin-top: 22px; }
.ops-access-gate-actions .secondary-button { width: auto; text-decoration: none; }
.ops-onboarding-identity { display: flex; align-items: center; width: min(500px, 100%); gap: 10px; margin-top: 22px; padding: 11px 13px; border: 1px solid #dbe5ea; border-radius: 6px; background: #fff; text-align: left; }.ops-onboarding-identity > .ops-user-avatar { position: relative; display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: #2c729f; font-size: 12px; font-weight: 800; }.ops-onboarding-identity strong, .ops-onboarding-identity small { display: block; }.ops-onboarding-identity strong { color: #29485c; font-size: 13px; }.ops-onboarding-identity small { margin-top: 2px; color: #7d8f9a; font-size: 10px; }
.ops-onboarding-form { display: grid; width: min(500px, 100%); gap: 14px; margin-top: 12px; padding: 18px; border: 1px solid #dbe5ea; border-radius: 8px; background: #fff; text-align: left; }.ops-onboarding-form fieldset { margin: 0; padding: 0; border: 0; }.ops-onboarding-form legend { margin-bottom: 10px; color: #445d6e; font-size: 12px; font-weight: 800; }.position-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }.position-choice-grid label { position: relative; }.position-choice-grid input { position: absolute; opacity: 0; pointer-events: none; }.position-choice-grid label > span { display: flex; align-items: center; justify-content: center; min-height: 42px; gap: 7px; border: 1px solid #d8e4e9; border-radius: 6px; color: #526b7c; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }.position-choice-grid label > span:hover { border-color: #9dc7df; background: #f5fafc; }.position-choice-grid input:checked + span { border-color: #4b9acc; color: #176a9f; background: #eaf5fb; box-shadow: inset 0 0 0 1px #4b9acc; }.position-choice-grid input:focus-visible + span { outline: 3px solid rgba(27,120,208,.24); outline-offset: 1px; }.position-choice-grid svg { width: 15px; height: 15px; }.ops-team-group-field { display: grid; gap: 6px; color: #627180; font-size: 11px; font-weight: 700; }.ops-team-group-field select { width: 100%; height: 38px; border: 1px solid #cfd9e0; border-radius: 5px; padding: 0 9px; color: var(--ink); background: #fff; font-size: 12px; }.ops-onboarding-form .run-button { justify-self: end; min-width: 132px; }.ops-onboarding-error { min-height: 17px; margin: -4px 0 -5px; color: #b4443a; font-size: 11px; }
.ops-access-pending .nav-item[data-target]:not([data-target="#teamSection"]) { display: none; }
.module-list-empty { padding: 24px 16px; color: #82939e; font-size: 11px; text-align: center; }
.permission-empty { color: #8797a1; font-size: 10px; }
.team-source-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 31px; padding: 0 9px; border: 1px solid #d8e5eb; border-radius: 5px; color: #587284; background: #f8fbfc; font-size: 10px; font-weight: 700; }
.team-source-badge svg { width: 14px; height: 14px; color: #23816b; }
.main-content.view-records #resultsSection { margin-top: 0; }
.topbar, .results-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }.crumb, .eyebrow { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }.crumb { margin-bottom: 5px; }.eyebrow { margin: 0 0 3px; text-transform: uppercase; font-family: "DM Mono", monospace; font-size: 10px; }.topbar h1 { margin: 0; font-family: "Manrope", "Noto Sans SC", sans-serif; font-size: 26px; line-height: 1.25; letter-spacing: 0; }.top-actions { display: flex; align-items: center; gap: 10px; }.save-state { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }.save-state svg { width: 16px; color: #2ba681; }.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 6px; background: white; color: #506172; }.icon-button:hover { color: var(--navy); border-color: #b7c8d5; background: #fbfdfe; }.icon-button.small { width: 31px; height: 31px; }.run-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border: 0; border-radius: 6px; padding: 0 15px; font-weight: 700; }.run-button { background: var(--blue); color: #fff; box-shadow: 0 2px 4px rgba(27,120,208,.17); }.run-button:hover { background: #1169b8; }.run-button[disabled] { opacity: .65; cursor: wait; }.secondary-button { padding: 0 12px; border: 1px solid var(--line); background: white; color: #34516a; }.secondary-button:hover:not(:disabled) { background: #f5f9fb; }.secondary-button:disabled { cursor: not-allowed; opacity: .52; }

.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 23px 0 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }.stat-strip > div { padding: 11px 16px; border-right: 1px solid var(--soft-line); }.stat-strip > div:last-child { border-right: 0; }.stat-strip span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }.stat-strip strong { font-size: 14px; font-weight: 700; }
.workspace-grid { display: grid; grid-template-columns: minmax(225px,.88fr) minmax(340px,1.28fr) minmax(275px,.98fr); gap: 14px; align-items: start; }.panel, .results-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }.panel { min-width: 0; }.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 17px 18px 13px; border-bottom: 1px solid var(--soft-line); }.panel-heading h2, .results-heading h2 { margin: 0; font-family: "Manrope", "Noto Sans SC", sans-serif; font-size: 16px; letter-spacing: 0; }.module-count { display: inline-grid; place-items: center; min-width: 25px; height: 24px; padding: 0 7px; border-radius: 4px; background: #edf3f5; color: #507084; font-family: "DM Mono", monospace; font-size: 11px; font-weight: 700; }.module-list { padding: 8px; max-height: 472px; overflow: auto; }.module-button { width: 100%; min-height: 54px; display: grid; grid-template-columns: 32px minmax(0,1fr) 15px; align-items: center; gap: 10px; padding: 8px 9px; border: 0; border-bottom: 1px solid var(--soft-line); background: transparent; color: var(--ink); text-align: left; }.module-button:last-child { border-bottom: 0; }.module-button:hover { background: #f7fafb; }.module-button.active { background: #ecf5fb; box-shadow: inset 3px 0 0 #1b78d0; }.module-button strong { display: block; font-size: 12px; font-weight: 700; }.module-button small { display: block; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }.module-button > i { color: #6a93af; width: 15px; }.role-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 5px; }.role-icon svg { width: 16px; }.role-finance { color: #0f7a67; background: #cceee6; }.role-ads { color: #986500; background: #f8e6b2; }.role-product { color: #3e64b4; background: #dfeafb; }.role-brand { color: #984667; background: #f7dce7; }.role-image { color: #8b5c1e; background: #f9e4c7; }.role-plan { color: #6150aa; background: #e7e1f9; }.role-ops { color: #1b748e; background: #d9eef3; }.role-patent { color: #a4473a; background: #f6dbd5; }.module-note { display: flex; align-items: flex-start; gap: 8px; margin: 4px 14px 15px; padding: 10px 0 0; border-top: 1px solid var(--soft-line); color: #5a6c79; font-size: 11px; line-height: 1.55; }.module-note svg { flex: 0 0 auto; width: 16px; color: #287e91; }.workflow-context { display: flex; align-items: flex-start; gap: 10px; margin: 14px 18px 1px; padding: 10px 0 13px; border-bottom: 1px solid var(--soft-line); }.workflow-context .role-icon { flex: 0 0 auto; width: 36px; height: 36px; }.workflow-context .role-icon svg { width: 18px; }.workflow-context strong { display: block; color: #334b5d; font-size: 12px; }.workflow-context p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.development-architecture { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }.development-architecture-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 15px 18px 13px; border-bottom: 1px solid var(--soft-line); }.development-architecture-heading h2 { margin: 0; font-family: "Manrope", "Noto Sans SC", sans-serif; font-size: 16px; letter-spacing: 0; }.architecture-active-task { display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; border: 1px solid #b6d4e9; border-radius: 4px; color: #256a99; background: #edf7fc; font-size: 11px; font-weight: 700; }.development-canvas { overflow: auto; padding: 18px; background-color: #fbfdff; background-image: radial-gradient(#dce7ee 1px, transparent 1px); background-size: 10px 10px; }.development-canvas-inner { position: relative; width: 1540px; min-height: 440px; }.development-wires { position: absolute; inset: 0; width: 1540px; height: 440px; overflow: visible; pointer-events: none; }.development-wires path { fill: none; stroke: #8794f6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .82; }.architecture-node { position: absolute; display: grid; gap: 8px; min-height: 76px; padding: 10px 11px; border: 1px solid #d5e0e7; border-radius: 6px; color: #355168; background: #fff; box-shadow: 0 3px 10px rgba(33,71,98,.06); }.architecture-node-title { display: flex; align-items: center; min-width: 0; gap: 6px; color: #304a5e; font-size: 12px; font-weight: 800; }.architecture-node-title svg { flex: 0 0 auto; width: 15px; color: #397cad; }.architecture-node small { overflow: hidden; color: #6c8190; font-size: 10px; font-weight: 600; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }.architecture-trigger { min-height: 64px; align-content: center; border-color: #9ec6df; background: #f2f9fd; }.architecture-trigger .architecture-node-title svg { color: #247db5; }.architecture-source { min-height: 76px; }.architecture-tags { display: flex; flex-wrap: wrap; gap: 4px; }.architecture-tags span { padding: 2px 5px; border-radius: 3px; color: #587082; background: #eef3f6; font-size: 9px; font-weight: 700; }.architecture-process { min-height: 88px; align-content: center; border-color: #c9d5f5; background: #f8f9ff; }.architecture-process .architecture-node-title svg { color: #666fc3; }.architecture-engine { min-height: 88px; align-content: center; border-color: #9ec9e2; background: #f2f9fd; }.architecture-engine .architecture-node-title svg { color: #247db5; }.architecture-decision { min-height: 88px; align-content: center; border-color: #d9d5bd; background: #fffdf5; }.architecture-decision .architecture-node-title svg { color: #a27d14; }.architecture-store { min-height: 88px; align-content: center; border-color: #b9ded3; background: #f4fcf8; }.architecture-store .architecture-node-title svg { color: #21816c; }

.connection-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 99px; background: #f6f4ed; color: #80651b; font-size: 11px; font-weight: 700; }.connection-badge > span { width: 6px; height: 6px; border-radius: 50%; background: #bd9a35; }.connection-badge.online { background: #eaf7f2; color: #18755d; }.connection-badge.online > span { background: #2da67e; }.config-form { padding: 3px 18px 18px; }.config-form fieldset { min-width: 0; margin: 0; padding: 13px 0 14px; border: 0; border-bottom: 1px solid var(--soft-line); }.config-form fieldset:last-child { padding-bottom: 0; border-bottom: 0; }.config-form legend { margin-bottom: 9px; padding: 0; font-size: 12px; font-weight: 700; }.optional { color: #8795a1; font-size: 10px; font-weight: 500; }.config-form label { display: grid; gap: 6px; color: #627180; font-size: 11px; font-weight: 600; }.config-form label + label { margin-top: 10px; }.field-row, .mapping-grid { display: grid; gap: 10px; }.two-cols, .mapping-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.config-form select, .config-form input, .config-form textarea { width: 100%; border: 1px solid #cfd9e0; border-radius: 5px; color: var(--ink); background: white; font-size: 12px; }.config-form select, .config-form input { height: 34px; padding: 0 9px; }.config-form textarea { min-height: 88px; padding: 8px 9px; line-height: 1.5; resize: vertical; }.config-form input::placeholder { color: #a3afb8; }.segmented { display: grid; grid-template-columns: 1fr 1fr; height: 34px; padding: 3px; border-radius: 6px; background: #eef2f4; }.segment { border: 0; border-radius: 4px; background: transparent; color: #70808e; font-size: 11px; font-weight: 700; }.segment.active { color: #1e5a86; background: white; box-shadow: 0 1px 3px rgba(30,58,80,.12); }.password-field { display: flex; overflow: hidden; border: 1px solid #cfd9e0; border-radius: 5px; }.password-field input { min-width: 0; border: 0; }.field-icon { display: grid; place-items: center; width: 34px; flex: 0 0 34px; border: 0; background: #fff; color: #748493; }.field-icon:hover { color: #315b7c; }
.sync-control { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 2px; cursor: pointer; }.sync-control > span:first-child { display: grid; gap: 2px; }.sync-control strong { color: #3e5567; font-size: 11px; }.sync-control small { color: var(--muted); font-size: 10px; font-weight: 500; }.sync-control input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }.switch { position: relative; flex: 0 0 auto; width: 34px; height: 20px; border-radius: 99px; background: #b5c2ca; transition: background .15s; }.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.18); transition: transform .15s; }.sync-control input:checked + .switch { background: #2181c8; }.sync-control input:checked + .switch::after { transform: translateX(14px); }

.file-badge { padding: 4px 7px; border-radius: 4px; background: #edf3f5; color: #5c7280; font-size: 10px; font-weight: 700; }.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 129px; gap: 5px; margin: 16px 17px 13px; padding: 15px; border: 1px dashed #aac0cf; border-radius: 6px; background: #fbfdfe; text-align: center; color: #6d7e8a; transition: border .16s, background .16s; }.dropzone:hover, .dropzone.dragover { border-color: #277fca; background: #eff7fc; }.dropzone svg { width: 23px; height: 23px; margin-bottom: 2px; color: #3178b4; }.dropzone strong { color: #2d4c65; font-size: 12px; }.dropzone span { font-size: 10px; }.dataset-meta { display: grid; grid-template-columns: 1fr auto; gap: 15px; margin: 0 17px 13px; padding: 10px 0; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }.dataset-meta div:last-child { text-align: right; }.dataset-meta span { display: block; color: var(--muted); font-size: 10px; }.dataset-meta strong { display: block; max-width: 155px; overflow: hidden; margin-top: 3px; color: #384f61; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }.preview-wrap { padding-bottom: 15px; }.preview-head { display: flex; align-items: center; justify-content: space-between; padding: 0 17px 8px; color: #607080; font-size: 11px; font-weight: 700; }.text-button { border: 0; padding: 3px 0; color: #1a72bc; background: transparent; font-size: 11px; font-weight: 700; }.text-button:hover { color: #0d5795; }.table-scroll { overflow: auto; max-height: 180px; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }table { width: 100%; border-collapse: collapse; font-size: 11px; }th { color: #657889; background: #f6f8f9; font-size: 10px; font-weight: 700; text-align: left; }th, td { min-width: 96px; max-width: 200px; padding: 8px 10px; border-bottom: 1px solid #eef2f4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }td { color: #344757; }tr:last-child td { border-bottom: 0; }

.results-section { margin-top: 14px; overflow: hidden; }.results-heading { padding: 15px 18px; border-bottom: 1px solid var(--soft-line); }.result-actions { display: flex; align-items: center; gap: 12px; }.result-summary { color: #657786; font-size: 12px; font-weight: 600; }.empty-results { min-height: 160px; display: grid; place-content: center; justify-items: center; gap: 8px; color: #8a99a4; font-size: 12px; }.empty-results svg { width: 24px; height: 24px; color: #9db1bf; }.result-table-wrap { overflow: auto; max-height: 340px; }.result-table-wrap table { min-width: 820px; }.result-table-wrap th, .result-table-wrap td { min-width: 120px; }.result-table-wrap th:nth-last-child(2), .result-table-wrap td:nth-last-child(2) { min-width: 360px; max-width: 480px; white-space: normal; line-height: 1.55; }.status-success, .status-error { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; }.status-success { color: #19765c; }.status-error { color: #bc4738; }.hidden { display: none; }
.team-section { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }.primary-outline { border-color: #9bc4e4; color: #176cab; }.team-layout { display: grid; grid-template-columns: 156px minmax(0,1fr); }.team-table-wrap { min-width: 0; overflow: auto; }.team-table-wrap table { min-width: 760px; }.team-table-wrap th, .team-table-wrap td { min-width: 88px; }.member-cell { min-width: 176px !important; }.member-name { display: block; color: #2c465b; font-weight: 700; }.member-email { display: block; margin-top: 2px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; }.member-role-cell { position: relative; overflow: visible; }.member-role-hover { position: relative; display: inline-flex; align-items: center; min-height: 25px; border-bottom: 1px dotted #9eb0bb; color: #405b6d; cursor: help; outline: 0; }.member-role-hover:focus-visible { border-radius: 3px; box-shadow: 0 0 0 3px rgba(40,129,184,.14); }.member-role-permissions-popover { position: absolute; z-index: 30; top: 50%; left: calc(100% + 9px); display: grid; visibility: hidden; width: max-content; min-width: 180px; max-width: 300px; gap: 7px; border: 1px solid #cbdbe4; border-radius: 5px; padding: 9px 10px; background: #fff; box-shadow: 0 10px 26px rgba(29,64,87,.18); opacity: 0; transform: translate(4px,-50%); pointer-events: none; transition: opacity .14s, transform .14s, visibility .14s; }.member-role-permissions-popover::before { content: ""; position: absolute; top: 50%; left: -5px; width: 8px; height: 8px; border-bottom: 1px solid #cbdbe4; border-left: 1px solid #cbdbe4; background: #fff; transform: translateY(-50%) rotate(45deg); }.member-role-permissions-popover strong { color: #405b6d; font-size: 10px; }.member-role-permission-list { display: flex; flex-wrap: wrap; gap: 3px; }.member-role-hover:hover .member-role-permissions-popover, .member-role-hover:focus .member-role-permissions-popover, .member-role-hover:focus-within .member-role-permissions-popover { visibility: visible; opacity: 1; transform: translate(0,-50%); }.permission-cell { min-width: 230px !important; white-space: normal !important; }.permission-chip { display: inline-flex; align-items: center; margin: 2px 3px 2px 0; padding: 3px 5px; border-radius: 3px; background: #eef4f6; color: #4d6c80; font-size: 9px; font-weight: 700; }.member-role-permission-list .permission-chip { margin: 0; }.status-pill { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 10px; font-weight: 700; }.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }.status-active { color: #19765c; }.status-active::before { background: #2ca47d; }.status-invited { color: #986500; }.status-invited::before { background: #d5a827; }.status-suspended { color: #a1463c; }.status-suspended::before { background: #c66055; }.member-actions { display: flex; gap: 5px; }.table-icon-button { display: inline-grid; place-items: center; width: 27px; height: 27px; border: 1px solid #dce5ea; border-radius: 4px; background: white; color: #557181; }.table-icon-button:hover { border-color: #99b7c9; background: #f4f9fb; color: #205f91; }.table-icon-button.danger:hover { border-color: #e4b2aa; color: #b5483c; background: #fff7f5; }.table-icon-button svg { width: 14px; }
  .board-section { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }.board-actions { display: flex; align-items: center; gap: 8px; }.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 18px; border-bottom: 1px solid var(--soft-line); }.view-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 6px; background: #eef3f5; }.view-tab { height: 28px; padding: 0 10px; border: 0; border-radius: 4px; color: #657886; background: transparent; font-size: 11px; font-weight: 700; }.view-tab.active { color: #215f8c; background: #fff; box-shadow: 0 1px 2px rgba(30,58,80,.12); }.board-summary { color: var(--muted); font-size: 11px; font-weight: 600; }.board-table-wrap { overflow: auto; max-height: 360px; }.board-table-wrap table { min-width: 1000px; }.board-table-wrap th, .board-table-wrap td { min-width: 92px; }.board-task-cell { min-width: 212px !important; white-space: normal !important; line-height: 1.45; font-weight: 700; }.board-table-wrap td.inline-editable { cursor: text; transition: background .14s, box-shadow .14s; }.board-table-wrap td.inline-editable:hover { background: #f5fafc; box-shadow: inset 0 0 0 1px #c9deea; }.board-table-wrap td.inline-editable:focus-visible { outline: 2px solid #4d9acf; outline-offset: -2px; }.board-table-wrap td.inline-editable.is-editing { padding: 3px 5px; background: #f3f9fc; box-shadow: inset 0 0 0 1px #83b7d8; }.board-table-wrap td.inline-editable.is-saving { opacity: .7; }.inline-cell-editor { box-sizing: border-box; width: 100%; min-width: 0; height: 30px; border: 1px solid #9bc3dc; border-radius: 4px; padding: 0 7px; color: #29475b; background: #fff; font: inherit; outline: none; }.inline-cell-editor:focus { border-color: #2b85bd; box-shadow: 0 0 0 2px rgba(43,133,189,.15); }.inline-relation-editor { height: auto; min-height: 62px; padding: 3px; white-space: normal; }.board-status { display: inline-flex; padding: 3px 6px; border-radius: 3px; font-size: 10px; font-weight: 700; }.board-status-pending { background: #eef2f4; color: #607381; }.board-status-progress { background: #e5f0fb; color: #276b9f; }.board-status-review { background: #fff0d5; color: #9b6a00; }.board-status-complete { background: #e5f2ed; color: #20765f; }.board-status-blocked { background: #f9e3df; color: #b3483d; }.priority-pill { display: inline-flex; padding: 3px 6px; border-radius: 3px; font-size: 10px; font-weight: 700; }.priority-high { background: #fce6e1; color: #b54c3f; }.priority-medium { background: #f8efcf; color: #947000; }.priority-low { background: #e5f1ef; color: #277d70; }.approval-pill { font-size: 10px; font-weight: 700; color: #5d7080; }.approval-pending { color: #9a6900; }.approval-approved { color: #1c795e; }.approval-rejected { color: #b2473d; }.empty-board { padding: 24px !important; color: #83929d; text-align: center; }.board-row-menu { position: fixed; z-index: 30; width: 196px; padding: 4px; border: 1px solid #cbd9e0; border-radius: 5px; background: #fff; box-shadow: 0 10px 24px rgba(21,49,70,.18); }.board-row-menu button { display: flex; align-items: center; width: 100%; min-height: 32px; gap: 8px; border: 0; border-radius: 3px; padding: 0 8px; color: #3f6176; background: transparent; text-align: left; font-size: 11px; font-weight: 700; }.board-row-menu button:hover { color: #176a9f; background: #edf6fb; }.board-row-menu svg { width: 14px; height: 14px; }
.member-dialog { width: min(590px, calc(100vw - 28px)); padding: 0; border: 1px solid #cfdce4; border-radius: 8px; box-shadow: 0 20px 60px rgba(20,49,71,.26); }.member-dialog::backdrop { background: rgba(19,43,61,.42); }.member-form { padding: 20px; }.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--soft-line); }.dialog-heading h2 { margin: 0; font-family: "Manrope", "Noto Sans SC", sans-serif; font-size: 18px; }.member-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 16px 0; }.member-fields label { display: grid; gap: 6px; color: #627180; font-size: 11px; font-weight: 700; }.member-fields input, .member-fields select { height: 35px; width: 100%; border: 1px solid #cfd9e0; border-radius: 5px; padding: 0 9px; color: var(--ink); background: white; font-size: 12px; }.permission-fieldset { margin: 0; padding: 0 0 16px; border: 0; }.permission-fieldset legend { margin-bottom: 10px; padding: 0; font-size: 12px; font-weight: 700; }.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }.permission-option { display: flex; align-items: center; min-height: 35px; gap: 8px; padding: 6px 8px; border: 1px solid #dbe5ea; border-radius: 5px; color: #486273; font-size: 11px; font-weight: 600; }.permission-option:has(input:checked) { border-color: #8ebce1; background: #eef7fc; color: #1c669f; }.permission-option input { accent-color: #197bc4; }.permission-option input:disabled { cursor: not-allowed; }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 14px; border-top: 1px solid var(--soft-line); }
.member-fields input[readonly] { color: #526b7b; background: #f3f7f9; }
#memberDialog { width:min(920px, calc(100vw - 28px)); max-height:calc(100dvh - 28px); overflow:auto; }
.member-permission-tabs { display:flex; gap:22px; margin:0 -20px 16px; padding:0 20px; border-bottom:1px solid var(--soft-line); }
.member-permission-tabs button { position:relative; min-height:42px; padding:0; border:0; background:transparent; color:#718092; font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
.member-permission-tabs button::after { position:absolute; right:0; bottom:-1px; left:0; height:2px; background:#247dd1; content:""; opacity:0; }
.member-permission-tabs button.active { color:#176cab; }
.member-permission-tabs button.active::after { opacity:1; }
.member-permission-panel { min-height:220px; }
.member-data-permissions { display:grid; grid-template-columns:250px minmax(0,1fr); min-height:360px; border:1px solid #dbe5ea; border-radius:7px; overflow:hidden; }
.member-table-permission-list { padding:14px; border-right:1px solid #e2e9ed; background:#f7f9fb; }
.member-table-permission-list > label { display:grid; gap:6px; margin-bottom:13px; color:#627180; font-size:10px; font-weight:700; }
.member-table-permission-list select { width:100%; height:34px; padding:0 8px; border:1px solid #cfd9e0; border-radius:5px; background:#fff; color:#2c465b; font-size:11px; }
#memberPermissionTableList { display:grid; gap:5px; }
#memberPermissionTableList button { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center; min-height:39px; padding:7px 9px; border:1px solid transparent; border-radius:6px; background:transparent; color:#40586a; font:inherit; text-align:left; cursor:pointer; }
#memberPermissionTableList button:hover { background:#eef3f6; }
#memberPermissionTableList button.active { border-color:#b8d4ea; background:#eaf4fc; color:#176cab; }
#memberPermissionTableList button span { min-width:0; overflow:hidden; font-size:11px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
#memberPermissionTableList button small { color:#8493a1; font-size:9px; white-space:nowrap; }
.member-data-permission-editor { padding:17px 18px; }
.member-data-permission-editor h3 { margin:0 0 13px; color:#2b4050; font-size:15px; }
.member-data-permission-editor fieldset { margin:0; padding:13px 0; border:0; border-top:1px solid #edf1f3; }
.member-data-permission-editor legend, .automation-permission-fieldset legend { margin-bottom:9px; padding:0; color:#334c5e; font-size:12px; font-weight:800; }
.permission-radio-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.permission-radio-grid label, .member-field-permission-list label { display:flex; align-items:center; gap:8px; min-height:34px; padding:6px 9px; border:1px solid #dbe5ea; border-radius:5px; color:#4b6475; font-size:11px; font-weight:650; cursor:pointer; }
.permission-radio-grid label:has(input:checked), .member-field-permission-list label:has(input:checked) { border-color:#8ebce1; background:#eef7fc; color:#176cab; }
.permission-radio-grid input, .member-field-permission-list input { accent-color:#197bc4; }
.member-field-permission-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; max-height:148px; margin-top:9px; overflow:auto; }
.member-field-permission-list p { grid-column:1/-1; margin:0; padding:9px; color:#7a8995; font-size:10px; line-height:1.5; }
.automation-permission-fieldset > p { margin:-2px 0 13px; color:#7a8995; font-size:11px; }
.studio-access-summary { display:flex; align-items:center; gap:12px; margin-bottom:16px; padding:13px 14px; border:1px solid #b9ddcf; border-radius:6px; background:#f2faf7; }
.studio-access-summary > span { display:grid; flex:0 0 auto; place-items:center; width:36px; height:36px; border-radius:5px; color:#18745c; background:#dcefe8; }
.studio-access-summary svg { width:19px; height:19px; }.studio-access-summary strong { display:block; color:#245b4c; font-size:12px; }.studio-access-summary p { margin:3px 0 0; color:#628176; font-size:10px; line-height:1.5; }
.studio-permission-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.studio-permission-grid .permission-option { cursor:default; }
.data-permission-summary { color:#527084; font-size:10px; font-weight:700; white-space:nowrap; }
.admin-auth-dialog { width: min(430px, calc(100vw - 28px)); }
.admin-auth-copy { display: flex; align-items: center; gap: 12px; padding: 18px 0 13px; }
.admin-auth-copy > span { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 6px; color: #176c9f; background: #eaf5fb; }
.admin-auth-copy svg { width: 20px; height: 20px; }.admin-auth-copy strong { color: #334f62; font-size: 12px; }.admin-auth-copy p { margin: 3px 0 0; color: #758995; font-size: 11px; line-height: 1.55; }
.admin-password-field { display: grid; gap: 6px; padding-bottom: 7px; color: #627180; font-size: 11px; font-weight: 700; }.admin-password-field input { height: 39px; border: 1px solid #cfd9e0; border-radius: 5px; padding: 0 10px; color: var(--ink); background: #fff; font-size: 13px; outline: 0; }.admin-password-field input:focus { border-color: #68a9d3; box-shadow: 0 0 0 3px rgba(56,139,193,.12); }
.admin-auth-error { min-height: 18px; margin: 0 0 8px; color: #b4443a; font-size: 11px; }
.field-span-2 { grid-column: span 2; }
.member-fields.hidden { display: none; }
.custom-field-inputs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 0 0 16px; }.custom-field-inputs label { display: grid; gap: 6px; color: #627180; font-size: 11px; font-weight: 700; }.custom-field-inputs input, .custom-field-inputs select { height: 35px; width: 100%; border: 1px solid #cfd9e0; border-radius: 5px; padding: 0 9px; color: var(--ink); background: white; font-size: 12px; }.calculated-field input { color: #6d7e8a; background: #f4f7f8; cursor: default; }.relation-field { min-width: 0; margin: 0; padding: 0; border: 0; }.relation-field legend { margin-bottom: 6px; padding: 0; color: #627180; font-size: 11px; font-weight: 700; }.relation-picker { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; max-height: 144px; overflow: auto; padding: 7px; border: 1px solid #cfd9e0; border-radius: 5px; background: #fbfdfe; }.relation-option { display: flex !important; align-items: center; min-width: 0; gap: 7px; padding: 6px 7px; border: 1px solid #e0e8ec; border-radius: 4px; background: white; color: #496273 !important; font-size: 10px !important; font-weight: 600 !important; }.relation-option:has(input:checked) { border-color: #8ebce1; background: #eef7fc; color: #1c669f !important; }.relation-option input { width: auto !important; height: auto !important; margin: 0; padding: 0 !important; accent-color: #197bc4; }.relation-option span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.relation-empty { padding: 6px; color: #8a99a4; font-size: 10px; }.relation-chips { display: flex; flex-wrap: wrap; gap: 4px; }.relation-chip { max-width: 132px; overflow: hidden; padding: 3px 5px; border-radius: 3px; color: #376986; background: #eaf4f8; font-size: 9px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }.field-form-fields { padding-bottom: 4px; }
.formula-config { display: grid; gap: 9px; }.formula-config > label { display: grid; gap: 6px; color: #627180; font-size: 11px; font-weight: 700; }.formula-config > label input { height: 35px; width: 100%; border: 1px solid #cfd9e0; border-radius: 5px; padding: 0 9px; color: var(--ink); background: white; font-size: 12px; }.formula-builder { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.45fr) minmax(0,.7fr); gap: 9px; padding: 9px; border: 1px solid #dbe6eb; border-radius: 5px; background: #f9fbfc; }.formula-builder > div { min-width: 0; }.formula-builder > div > span { display: block; margin-bottom: 6px; color: #738895; font-size: 10px; font-weight: 700; }.formula-token-list { display: flex; flex-wrap: wrap; gap: 5px; }.formula-token { max-width: 100%; min-height: 27px; padding: 0 7px; border: 1px solid #cbdce6; border-radius: 4px; color: #2b6f99; background: #fff; font-size: 10px; font-weight: 700; }.formula-token:hover { border-color: #8dbde0; background: #eaf5fb; }.formula-token.function { color: #556c39; border-color: #d4dfc6; background: #fbfdf8; }.formula-token.function:hover { border-color: #a9bf8e; background: #f2f8e9; }.formula-token.operator { min-width: 27px; padding: 0 6px; color: #536d7e; }.formula-token-empty { color: #8a9ba5; font-size: 10px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 10; max-width: min(360px, calc(100vw - 44px)); padding: 12px 14px; border-radius: 6px; color: white; background: #1d3850; box-shadow: 0 8px 24px rgba(16,45,67,.22); font-size: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s, transform .18s; }.toast.show { opacity: 1; transform: translateY(0); }.toast.error { background: #a33c32; }
.field-header-content { display: flex; align-items: center; min-width: 0; gap: 4px; }.field-header-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.field-drag-handle { display: inline-flex; flex: 0 0 auto; color: #94a5b0; }.field-drag-handle svg { width: 13px; height: 13px; }.field-filter-button { display: inline-grid; flex: 0 0 auto; place-items: center; width: 22px; height: 22px; margin-left: auto; border: 0; border-radius: 3px; color: #8296a4; background: transparent; }.field-filter-button:hover { color: #236f9f; background: #eaf4f9; }.field-filter-button.active { color: #156a9e; background: #dceefa; }.field-filter-button svg { width: 13px; height: 13px; }.filter-dialog { width: min(480px, calc(100vw - 28px)); }.board-filter-content { min-height: 112px; padding: 16px 0; }.filter-text-input { display: grid; gap: 6px; color: #627180; font-size: 11px; font-weight: 700; }.filter-text-input input, .filter-range input { height: 35px; width: 100%; border: 1px solid #cfd9e0; border-radius: 5px; padding: 0 9px; color: var(--ink); background: white; font-size: 12px; }.filter-range { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }.filter-range label { display: grid; gap: 6px; color: #627180; font-size: 11px; font-weight: 700; }.filter-option-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; max-height: 288px; overflow: auto; padding-right: 3px; }.filter-option { display: flex; align-items: center; min-width: 0; min-height: 35px; gap: 8px; padding: 6px 8px; border: 1px solid #dbe5ea; border-radius: 5px; color: #486273; background: #fff; font-size: 11px; font-weight: 600; }.filter-option:has(input:checked) { border-color: #8ebce1; background: #eef7fc; color: #1c669f; }.filter-option input { flex: 0 0 auto; margin: 0; accent-color: #197bc4; }.filter-option span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.field-filter-picker { position: relative; }.field-filter-picker-panel { position: absolute; z-index: 25; top: calc(100% + 6px); right: 0; display: grid; min-width: 188px; max-height: 288px; overflow: auto; padding: 4px; border: 1px solid #cbd9e0; border-radius: 5px; background: #fff; box-shadow: 0 10px 24px rgba(21,49,70,.18); }.field-filter-picker-panel.hidden { display: none; }.field-filter-picker-item { display: flex; align-items: center; justify-content: space-between; min-width: 0; min-height: 32px; gap: 10px; border: 0; border-radius: 3px; padding: 0 8px; color: #456276; background: transparent; text-align: left; font-size: 11px; font-weight: 700; }.field-filter-picker-item:hover { color: #176a9f; background: #edf6fb; }.field-filter-picker-item.active { color: #176a9f; background: #e6f3fb; }.field-filter-picker-item span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.field-filter-picker-item small { flex: 0 0 auto; color: #2a7cae; font-size: 9px; }.field-filter-picker-empty { padding: 9px; color: #81929d; font-size: 11px; }.board-table-wrap th[data-column-key] { position: relative; }.column-resize-handle { position: absolute; z-index: 2; top: 0; right: -4px; bottom: 0; width: 8px; cursor: col-resize; }.column-resize-handle::after { content: ""; position: absolute; top: 7px; bottom: 7px; left: 3px; width: 2px; border-radius: 1px; background: transparent; }.column-resize-handle:hover::after, .is-resizing-column .column-resize-handle::after { background: #3b90c5; }.is-resizing-column, .is-resizing-column * { cursor: col-resize !important; user-select: none; }
.column-resize-handle { display: grid; place-items: center; right: -4px; width: 8px; margin: 0; border: 0; padding: 0; color: #8ea4b2; background: transparent; }.column-resize-handle svg { position: relative; z-index: 1; width: 12px; height: 12px; opacity: .72; }.column-resize-handle::after { top: 5px; bottom: 5px; left: 3px; background: #b9cbd6; }.column-resize-handle:hover { color: #2379b0; background: #e7f3fa; }.column-resize-handle:hover::after, .is-resizing-column .column-resize-handle::after { background: #2d89c1; }
.column-resize-handle::after { background: transparent; }
.field-header-content { position: relative; padding-right: 2px; }.field-filter-button { position: absolute; top: 50%; right: 0; margin-left: 0; opacity: 0; transform: translateY(-50%); pointer-events: none; transition: opacity .14s, background .14s, color .14s; }.custom-field-header:hover .field-filter-button, .base-field-header:hover .field-filter-button, .field-header-content:focus-within .field-filter-button, .field-filter-button.active { opacity: 1; pointer-events: auto; }
.relation-match-config { display: grid; gap: 8px; padding: 10px; border: 1px solid #dbe6eb; border-radius: 5px; background: #f9fbfc; }.relation-match-list { display: grid; gap: 7px; }.relation-match-row { display: grid; grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr) 28px; align-items: end; gap: 7px; }.relation-match-row label { min-width: 0; }.relation-match-row label span { display: block; margin-bottom: 5px; color: #718693; font-size: 10px; font-weight: 700; }.relation-match-row select { width: 100%; height: 32px; border: 1px solid #cfd9e0; border-radius: 4px; padding: 0 7px; color: #344e61; background: #fff; font-size: 11px; }.relation-match-arrow { display: grid; place-items: center; height: 32px; color: #6e8da1; }.relation-match-delete { display: grid; place-items: center; width: 28px; height: 32px; border: 1px solid #d8e3e8; border-radius: 4px; color: #78909e; background: #fff; }.relation-match-delete:hover { border-color: #e7b7b0; color: #b14b40; background: #fff7f5; }.relation-match-delete svg, .relation-match-add svg { width: 14px; height: 14px; }.relation-match-add { justify-self: start; min-height: 32px; }
@media (max-width: 1120px) { .workspace-grid { grid-template-columns: minmax(210px,.72fr) minmax(370px,1.28fr); }.data-panel { grid-column: span 2; }.data-panel .table-scroll { max-height: 156px; }.dropzone { min-height: 108px; }.data-panel { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(0,1.2fr); }.data-panel .panel-heading { grid-column: span 2; }.data-panel .dataset-meta { align-self: center; }.data-panel .preview-wrap { grid-column: 2; grid-row: 2 / span 2; padding-top: 16px; }.data-panel .dropzone { margin-right: 0; }.data-panel .dataset-meta { margin-right: 0; }.data-panel .preview-wrap { padding-right: 17px; } }
@media (max-width: 780px) { .sidebar { width: 60px; flex-basis: 60px; padding: 18px 8px; }.brand { padding: 2px 8px 28px; }.brand > span, .nav-item span, .workspace-mini, .user-chip svg { display: none; }.nav-item { justify-content: center; padding: 0; }.nav-list { padding-bottom: 64px; }.sidebar-bottom { left: 8px; bottom: 18px; width: 44px; padding: 0; border-top: 0; }.user-chip { justify-content: center; padding: 6px 0; }.main-content { padding: 20px 16px 28px; }.topbar { align-items: flex-start; }.top-actions { flex-wrap: wrap; justify-content: flex-end; }.save-state { display: none; }.stat-strip { grid-template-columns: repeat(2,1fr); }.stat-strip > div:nth-child(2) { border-right: 0; }.stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--soft-line); }.workspace-grid, .data-panel { display: grid; grid-template-columns: minmax(0,1fr); }.data-panel, .data-panel > *, .preview-wrap, .table-scroll { min-width: 0; max-width: 100%; }.data-panel { grid-column: auto; }.data-panel .panel-heading, .data-panel .preview-wrap { grid-column: auto; grid-row: auto; }.data-panel .dropzone, .data-panel .dataset-meta { margin-right: 17px; }.data-panel .preview-wrap { padding: 0 0 15px; }.development-architecture-heading { align-items: flex-start; flex-direction: column; }.development-canvas { padding: 12px; }.two-cols, .mapping-grid, .member-fields, .filter-option-list, .filter-range, .formula-builder { grid-template-columns: minmax(0,1fr); }.config-form label + label { margin-top: 10px; } }
@media (max-width: 780px) { .user-chip { grid-template-columns: 32px; place-content: center; }.ops-user-copy { display: none; }.position-choice-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width:780px) { .member-data-permissions { grid-template-columns:minmax(0,1fr); }.member-table-permission-list { border-right:0; border-bottom:1px solid #e2e9ed; }.member-field-permission-list { grid-template-columns:repeat(2,minmax(0,1fr)); }.permission-radio-grid { grid-template-columns:minmax(0,1fr); } }
@media (max-width:780px) { .member-permission-tabs { gap:16px; overflow-x:auto; }.member-permission-tabs button { flex:0 0 auto; }.studio-permission-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 780px) { .field-span-2 { grid-column: auto; }.board-toolbar { align-items: flex-start; flex-direction: column; }.view-tabs { width: 100%; }.view-tab { flex: 1; }.sync-control { margin-bottom: 2px; } }
@media (max-width: 560px) { .board-actions { width: 100%; }.board-actions .secondary-button { flex: 1; }.custom-field-inputs { grid-template-columns: 1fr; } }
@media (max-width: 490px) { .topbar h1 { font-size: 21px; }.top-actions .icon-button { display: none; }.run-button { width: 38px; padding: 0; }.run-button span { display: none; }.stat-strip { margin-top: 17px; }.results-heading { align-items: flex-start; }.result-actions { flex-direction: column; align-items: flex-end; gap: 6px; }.secondary-button span { display: none; }.secondary-button { width: 36px; padding: 0; } }
@media (max-width: 490px) { .ops-access-gate { padding: 24px 16px; }.ops-access-gate-actions { flex-direction: column; width: min(220px, 100%); }.ops-access-gate-actions .secondary-button, .ops-access-gate-actions .run-button { width: 100%; padding: 0 12px; }.ops-access-gate-actions .secondary-button span, .ops-access-gate-actions .run-button span { display: inline; } }
@media (max-width: 490px) { .ops-onboarding-gate { padding: 24px 0; }.ops-onboarding-form { padding: 14px; }.ops-onboarding-form .run-button { width: 100%; padding: 0 12px; }.ops-onboarding-form .run-button span { display: inline; } }
@media (max-width: 490px) { .member-dialog .dialog-actions .secondary-button, .member-dialog .dialog-actions .run-button { width: auto; padding: 0 13px; }.member-dialog .dialog-actions .run-button span { display: inline; } }

/* Member directory filters use the same role values as the permission editor. */
.team-role-filters { display: grid; align-content: start; gap: 4px; margin: 15px 0; padding: 0 14px; border-right: 1px solid var(--soft-line); }
.team-role-filters .eyebrow { margin: 0 0 7px 8px; }
.team-role-filter { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 34px; gap: 8px; border: 0; border-radius: 5px; padding: 0 9px; color: #597080; background: transparent; font-size: 11px; font-weight: 700; text-align: left; }
.team-role-filter:hover { color: #205f91; background: #f1f7fa; }
.team-role-filter.active { color: #176a9f; background: #e7f3fa; }
.team-role-filter small { display: inline-grid; min-width: 20px; height: 19px; place-items: center; padding: 0 5px; border-radius: 4px; color: #728895; background: #edf2f5; font-family: "DM Mono", monospace; font-size: 9px; }
.team-role-filter.active small { color: #176a9f; background: #d4eaf7; }
@media (max-width: 780px) {
  .team-layout { grid-template-columns: minmax(0,1fr); }
  .team-role-filters { grid-template-columns: repeat(2, minmax(0,1fr)); margin: 0; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .team-role-filters .eyebrow { grid-column: 1 / -1; margin-left: 0; }
}

/* The workflow picker and editor occupy the same master-detail position. */
.workflow-heading-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.workflow-back-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 31px; gap: 6px; border: 1px solid var(--line); border-radius: 5px; padding: 0 9px; color: #506172; background: #fff; font-size: 11px; font-weight: 700; }
.workflow-back-button:hover { color: var(--navy); border-color: #b7c8d5; background: #f7fafb; }
.workflow-back-button svg { width: 15px; height: 15px; }
.workspace-grid.workflow-list-open { grid-template-columns: minmax(300px,.72fr) minmax(420px,1.28fr); }
.workspace-grid.workflow-list-open #configPanel { display: none; }
.workspace-grid.workflow-config-open { grid-template-columns: minmax(420px,470px) minmax(0,1fr); }
.workspace-grid.workflow-config-open #modulePanel { display: none; }
.main-content.view-workflow .workspace-grid.workflow-list-open,
.main-content.view-workflow .workspace-grid.workflow-config-open { grid-template-columns: minmax(0,720px); }
@media (max-width: 1120px) {
  .workspace-grid.workflow-list-open,
  .workspace-grid.workflow-config-open,
  .main-content.view-workflow .workspace-grid.workflow-list-open,
  .main-content.view-workflow .workspace-grid.workflow-config-open { grid-template-columns: minmax(0,1fr); }
  .workspace-grid.workflow-list-open .data-panel,
  .workspace-grid.workflow-config-open .data-panel { grid-column: 1; }
}

.member-role-cell:hover, .member-role-cell:focus-within { z-index: 40; }
.team-table-wrap table { min-width: 620px; }
.member-role-hover { border-bottom: 0; }
.team-table-wrap th { font-size: 12px; }
.team-table-wrap td { padding-top: 10px; padding-bottom: 10px; font-size: 12px; }
.member-cell { min-width: 220px !important; }
.member-profile { display: flex; align-items: center; min-width: 0; gap: 10px; }
.member-avatar { position: relative; display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; overflow: hidden; border-radius: 50%; color: #475569; background: #e2e8f0; font-size: 12px; font-weight: 800; }
.member-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member-profile-text { min-width: 0; }
.member-name { font-size: 13px; }
.member-email { margin-top: 3px; font-size: 10px; }
.member-role-hover { font-size: 12px; }
.status-pill { font-size: 11px; }
.member-cell { position: relative; overflow: visible; }
.member-cell:hover, .member-cell:focus-within { z-index: 40; }
.member-role-secondary { display: flex; width: max-content; min-height: 18px; margin-top: 2px; color: #6b7e8c; font-size: 11px; }
.team-filter-label { display: inline-flex; align-items: center; min-width: 0; gap: 7px; }
.team-filter-label svg { width: 14px; height: 14px; color: #748694; }
.team-role-filter.active .team-filter-label svg { color: #176a9f; }
.team-filter-divider { height: 1px; margin: 9px 7px; background: var(--soft-line); }
.user-chip > .ops-user-avatar { position: relative; overflow: hidden; }
.ops-user-avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ops-user-avatar img[hidden] { display: none; }
.last-login-label { display: inline-flex; align-items: center; min-height: 23px; border-radius: 4px; padding: 0 7px; color: #18745d; background: #e7f5ef; font-size: 11px; font-weight: 700; white-space: nowrap; }
