:root {
  --ink: #172033;
  --muted: #6b7890;
  --line: #e4e9f1;
  --surface: #ffffff;
  --canvas: #f6f8fb;
  --blue: #315efb;
  --blue-soft: #edf2ff;
  --green: #16a475;
  --green-soft: #e8f8f1;
  --orange: #e87932;
  --orange-soft: #fff3e9;
  --violet: #8059d9;
  --violet-soft: #f2edff;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
[v-cloak] { display: none; }
.auth-gate { min-height: 100vh; display: grid; place-content: center; justify-items: center; padding: 32px; text-align: center; background: var(--canvas); }
.auth-mark { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid #cad7ff; border-radius: 18px; color: var(--blue); background: var(--blue-soft); }
.auth-mark svg { width: 30px; height: 30px; }
.auth-mark-warn { color: var(--orange); border-color: #ffd9bd; background: var(--orange-soft); }
.auth-gate h1 { margin: 8px 0 10px; font-size: 32px; letter-spacing: 0; }
.auth-copy { max-width: 360px; margin: 0 0 28px; color: var(--muted); line-height: 1.7; }
.kicker { margin: 0; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.error-text { margin: 18px 0 0; color: #c2413b; font-size: 13px; }
.app-frame { display: flex; min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 244px; padding: 24px 16px 18px; border-right: 1px solid var(--line); background: var(--surface); }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 27px; }
.brand-symbol { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--ink); font-size: 17px; font-weight: 800; }
.sidebar-brand strong, .sidebar-brand span { display: block; }
.sidebar-brand strong { font-size: 15px; letter-spacing: .01em; }
.sidebar-brand span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.workspace-switcher { display: flex; align-items: center; gap: 9px; min-height: 55px; padding: 10px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 7px; color: inherit; background: #fafbfd; text-decoration: none; }
.workspace-switcher > span:nth-child(2) { flex: 1; min-width: 0; }
.workspace-switcher small, .workspace-switcher strong { display: block; }
.workspace-switcher small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.workspace-switcher strong { margin-top: 3px; font-size: 13px; }
.workspace-switcher > svg { width: 15px; color: #9ba6b8; }
.workspace-dot, .live-status span, .status-dot-label span, .health-badge span, .table-status span { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--green); }
.nav-label { margin: 20px 10px 7px; color: #98a3b5; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-scroll { min-height: 0; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
.sidebar-scroll > .nav-label:first-child { margin-top: 0; }
.main-nav { display: grid; gap: 4px; }
.main-nav button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 0 11px; border: 0; border-radius: 7px; color: #66738a; background: transparent; text-align: left; transition: color 160ms ease, background 160ms ease, transform 160ms ease-out; }
.main-nav button:hover { color: var(--ink); background: #f4f6fa; }
.main-nav button:active, .button:active, .icon-button:active { transform: scale(.97); }
.main-nav button.active { color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.main-nav svg { width: 17px; height: 17px; }
.nav-count { min-width: 23px; margin-left: auto; padding: 2px 6px; border-radius: 9px; color: var(--blue); background: #dbe5ff; font-size: 10px; text-align: center; }
.sidebar-spacer { flex: 1; }
.sidebar-footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 13px 5px 0; border-top: 1px solid var(--line); }
.user-chip, .table-user { display: flex; align-items: center; gap: 9px; min-width: 0; }
.user-chip > span:last-child { min-width: 0; }
.user-chip strong, .user-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip strong { max-width: 135px; font-size: 12px; }
.user-chip small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.user-avatar { width: 29px; height: 29px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 800; }
.main-column { width: calc(100% - 244px); margin-left: 244px; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 0 42px; border-bottom: 1px solid rgba(228, 233, 241, .9); background: rgba(246, 248, 251, .92); backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: #92a0b3; font-size: 12px; }
.breadcrumb svg { width: 14px; }
.breadcrumb strong { color: var(--ink); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.live-status { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.live-status span { box-shadow: 0 0 0 4px rgba(22, 164, 117, .12); }
.last-updated { color: #95a1b3; font-size: 11px; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 7px; color: #7a8799; background: transparent; transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease-out; }
.icon-button:hover { border-color: var(--line); color: var(--ink); background: var(--surface); }
.icon-button svg { width: 16px; height: 16px; }
.content { width: min(1320px, 100%); padding: 42px; margin: 0 auto; }
.notice { display: flex; align-items: center; gap: 10px; padding: 11px 13px; margin-bottom: 24px; border: 1px solid #f2c9c5; border-radius: 7px; color: #b53e37; background: #fff7f6; font-size: 13px; }
.notice-success { border-color: #bfe8d8; color: #107957; background: #f1fbf7; }
.notice > span { flex: 1; }
.notice svg { width: 16px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-heading h1 { margin: 7px 0 5px; font-size: 29px; letter-spacing: 0; }
.page-heading p:not(.kicker) { margin: 0; color: var(--muted); font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 700; transition: transform 160ms ease-out, background 160ms ease, border-color 160ms ease, color 160ms ease; }
.button svg { width: 15px; height: 15px; }
.button-primary { color: white; background: var(--blue); box-shadow: 0 4px 12px rgba(49, 94, 251, .18); }
.button-primary:hover { background: #234bd9; }
.button-secondary { border-color: var(--line); color: #536176; background: var(--surface); }
.button-secondary:hover { border-color: #c5d1e1; color: var(--ink); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card, .stat-line { min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.metric-card { position: relative; overflow: hidden; }
.metric-card-blue { color: var(--blue); }.metric-card-green { color: var(--green); }.metric-card-orange { color: var(--orange); }.metric-card-violet { color: var(--violet); }
.metric-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.metric-top svg { width: 17px; height: 17px; color: currentColor; }
.metric-card strong { position: relative; z-index: 1; display: block; margin: 15px 0 5px; color: var(--ink); font-size: 29px; line-height: 1; letter-spacing: 0; }
.metric-card small { position: relative; z-index: 1; color: var(--muted); font-size: 11px; }.metric-card small b { color: currentColor; font-weight: 800; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .95fr); gap: 14px; margin-top: 14px; }
.dashboard-grid-bottom { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 0; }.panel-heading h2 { margin: 0; font-size: 14px; letter-spacing: 0; }.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.trend-chart, .large-trend-chart { position: relative; display: flex; align-items: flex-end; gap: clamp(6px, 1.2vw, 16px); height: 205px; padding: 22px 22px 22px; }
.trend-column, .large-trend-column { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; gap: 8px; }.trend-column small, .large-trend-column small { color: #9ba6b8; font-size: 9px; }.trend-bar, .large-bar { width: min(22px, 80%); min-height: 5px; border-radius: 4px 4px 2px 2px; background: var(--blue); transition: height 220ms var(--ease-out); }.trend-value { min-height: 12px; color: var(--blue); font-size: 10px; font-weight: 700; }.empty-chart { position: absolute; inset: 22px; display: grid; place-content: center; justify-items: center; gap: 8px; color: #a3adbd; font-size: 12px; }.empty-chart svg { width: 24px; }
.status-dot-label, .status-badge-large { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 12px; font-size: 10px; font-weight: 700; }.health-good { color: var(--green); background: var(--green-soft); }.health-muted { color: #8d98aa; background: #f1f3f6; }.health-good > span, .health-good span { background: var(--green); }.health-muted > span, .health-muted span { background: #9aa6b5; }
.service-list { padding: 16px 20px 18px; }.service-row { display: flex; align-items: center; gap: 10px; min-height: 57px; border-bottom: 1px solid #eff2f6; }.service-row:last-child { border-bottom: 0; }.service-row > span:nth-child(2) { flex: 1; min-width: 0; }.service-row strong, .service-row small { display: block; }.service-row strong { font-size: 12px; }.service-row small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.service-row em, .health-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; font-style: normal; white-space: nowrap; }.service-row em span, .health-badge span { width: 6px; height: 6px; border-radius: 50%; background: #adb6c3; }.service-row em.is-good, .health-badge.is-good, .table-status.is-good { color: var(--green); }.service-row em.is-good span, .health-badge.is-good span, .table-status.is-good span { background: var(--green); }.service-row em.is-muted, .health-badge.is-muted { color: #8e9aaa; }
.service-icon { width: 32px; height: 32px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; }.service-icon svg { width: 16px; }.service-icon-blue { color: var(--blue); background: var(--blue-soft); }.service-icon-orange { color: var(--orange); background: var(--orange-soft); }.service-icon-green { color: var(--green); background: var(--green-soft); }
.text-button { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; border: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 700; }.text-button svg { width: 13px; }
.platform-summary { display: flex; align-items: center; gap: 24px; padding: 25px 22px 27px; }.donut { width: 116px; height: 116px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; }.donut > div { width: 74px; height: 74px; display: grid; place-content: center; border-radius: 50%; text-align: center; background: var(--surface); }.donut strong, .donut small { display: block; }.donut strong { font-size: 20px; }.donut small { margin-top: 2px; color: var(--muted); font-size: 10px; }.legend-list { display: grid; flex: 1; gap: 10px; }.legend-list > div { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }.legend-list strong { margin-left: auto; color: var(--ink); font-size: 12px; }.legend-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; }.empty-inline { color: #a3adbd; font-size: 11px; }.activity-list { padding: 12px 20px 17px; }.activity-row { display: flex; align-items: center; gap: 10px; min-height: 51px; border-bottom: 1px solid #eff2f6; }.activity-row:last-child { border-bottom: 0; }.activity-row > span:nth-child(2) { flex: 1; min-width: 0; }.activity-row strong, .activity-row small { display: block; }.activity-row strong { font-size: 11px; }.activity-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }.activity-row em { color: #8e9aaa; font-size: 10px; font-style: normal; }.activity-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: var(--blue); background: var(--blue-soft); }.activity-icon svg { width: 14px; }
.metric-grid-small { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }.stat-line { min-height: auto; padding: 16px 18px; }.stat-line span, .stat-line strong { display: block; }.stat-line span { color: var(--muted); font-size: 11px; }.stat-line strong { margin-top: 7px; font-size: 22px; }
.table-panel { overflow: hidden; }.table-panel .panel-heading { align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }.search-box { display: flex; align-items: center; gap: 7px; width: min(250px, 40%); padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); }.search-box svg { width: 14px; color: #98a3b5; }.search-box input { width: 100%; height: 32px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }.table-scroll { overflow-x: auto; }table { width: 100%; border-collapse: collapse; text-align: left; }th, td { padding: 13px 20px; border-bottom: 1px solid #eff2f6; font-size: 11px; white-space: nowrap; }th { color: #8b98aa; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }td { color: #637187; }tbody tr:last-child td { border-bottom: 0; }td strong { color: var(--ink); font-size: 11px; }.table-user small { display: block; margin-top: 3px; color: #91a0b2; font-size: 10px; }.pill { display: inline-flex; padding: 4px 7px; border-radius: 11px; font-size: 10px; font-weight: 700; }.pill-trial { color: #69788d; background: #eef1f5; }.pill-paid { color: #c1621c; background: var(--orange-soft); }.pill-full { color: #6c47c5; background: var(--violet-soft); }.table-status { display: inline-flex; align-items: center; gap: 5px; color: #8793a4; font-size: 10px; }.table-status.is-off { color: #c85c54; }.table-status.is-off span { background: #d97870; }.empty-state { display: grid; justify-items: center; gap: 8px; padding: 52px 20px; color: #a1adbe; text-align: center; }.empty-state svg { width: 26px; }.empty-state strong { color: #7d8a9e; font-size: 12px; }.empty-state span { font-size: 11px; }.empty-state.compact { padding: 20px; }
.secure-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 11px; font-weight: 700; }.secure-badge svg { width: 15px; }.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.permission-card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }.permission-header { display: flex; gap: 13px; padding: 22px; border-bottom: 1px solid var(--line); }.permission-icon { width: 37px; height: 37px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 9px; }.permission-icon svg { width: 18px; }.tone-blue { color: var(--blue); background: var(--blue-soft); }.tone-violet { color: var(--violet); background: var(--violet-soft); }.permission-header h2 { margin: 1px 0 5px; font-size: 15px; }.permission-header p { margin: 0; color: var(--muted); font-size: 11px; }.permission-items { padding: 14px 22px; }.permission-items div { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: #5e6d83; font-size: 11px; }.permission-items svg { width: 14px; color: var(--green); }.permission-card footer { display: flex; justify-content: space-between; padding: 12px 22px; border-top: 1px solid #eff2f6; color: #9aa5b5; font-size: 10px; }.permission-card footer strong { color: #68768b; font-weight: 600; }.policy-note { display: flex; align-items: flex-start; gap: 10px; padding: 15px 18px; margin-top: 14px; color: #69778b; font-size: 11px; line-height: 1.6; }.policy-note svg { width: 16px; flex: 0 0 auto; color: var(--blue); }
.service-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.service-card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }.service-card-head { display: flex; align-items: center; gap: 10px; padding: 20px; border-bottom: 1px solid var(--line); }.service-card-head > span:nth-child(2) { flex: 1; }.service-card-head small { color: #9aa5b5; font-size: 9px; font-weight: 800; letter-spacing: .08em; }.service-card-head h2 { margin: 4px 0 0; font-size: 14px; }.health-badge { padding: 4px 7px; border-radius: 10px; background: #f1f3f6; }.service-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px; margin: 0; }.service-card dt { color: #9aa5b5; font-size: 10px; }.service-card dd { margin: 6px 0 0; overflow: hidden; color: #526177; font-size: 11px; text-overflow: ellipsis; }
.select-control { min-height: 37px; padding: 0 30px 0 11px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: #526177; background: var(--surface); font-size: 11px; }.heading-controls { display: flex; gap: 8px; }.event-name, .platform-cell { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; }.event-name svg { width: 14px; color: var(--blue); }.nowrap { white-space: nowrap; }
.account-mode { display: inline-flex; gap: 3px; margin-bottom: 14px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #eef2f7; }
.account-mode button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 13px; border: 0; border-radius: 5px; color: #718096; background: transparent; font-size: 11px; font-weight: 700; }
.account-mode button.active { color: var(--blue); background: var(--surface); box-shadow: 0 1px 4px rgba(35, 48, 72, .1); }
.account-mode svg { width: 14px; }
.account-panel .table-scroll { min-height: 210px; }
.account-toolbar { display: flex; align-items: center; gap: 8px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.account-toolbar .account-search { width: min(390px, 100%); margin-right: auto; }
.account-toolbar .select-control { min-width: 112px; }
.account-panel tbody tr { transition: background 140ms ease; }
.account-panel tbody tr:hover { background: #fafbfe; }
.account-panel td:last-child, .account-panel th:last-child { width: 48px; padding-right: 12px; padding-left: 8px; }
.mono-cell { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; color: #758298; font-size: 10px; }
.team-avatar { width: 31px; height: 31px; display: inline-grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #315efb; background: #eaf0ff; }
.team-avatar svg { width: 15px; }
.team-avatar.large, .user-avatar.large { width: 43px; height: 43px; }
.team-avatar.large svg { width: 19px; }
.account-pagination { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 8px 14px 8px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.account-pagination > div { display: flex; gap: 3px; }
.account-drawer-layer { position: fixed; z-index: 60; inset: 0; display: flex; justify-content: flex-end; background: rgba(18, 27, 43, .28); backdrop-filter: blur(2px); }
.account-drawer { width: min(620px, 94vw); height: 100%; overflow-y: auto; color: var(--ink); background: var(--surface); box-shadow: -18px 0 48px rgba(20, 31, 50, .18); animation: drawer-in 220ms var(--ease-out); }
@keyframes drawer-in { from { transform: translateX(24px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
.drawer-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); }
.drawer-header h2 { margin: 4px 0 0; font-size: 19px; letter-spacing: 0; }
.drawer-loading { display: grid; justify-items: center; gap: 10px; padding: 90px 20px; color: var(--muted); font-size: 11px; }
.drawer-loading svg { width: 22px; }
.detail-identity { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.detail-identity strong, .detail-identity small { display: block; }
.detail-identity strong { font-size: 12px; }
.detail-identity small { max-width: 490px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.detail-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.detail-stats > div { min-width: 0; padding: 16px 18px; border-right: 1px solid var(--line); }
.detail-stats > div:last-child { border-right: 0; }
.detail-stats span, .detail-stats strong { display: block; }
.detail-stats span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.detail-stats strong { margin-top: 6px; font-size: 20px; }
.drawer-section { padding: 22px; border-bottom: 1px solid var(--line); }
.drawer-section h3 { margin: 0 0 16px; font-size: 12px; }
.drawer-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.drawer-form label > span { display: block; margin-bottom: 6px; color: #78869a; font-size: 10px; font-weight: 700; }
.drawer-form input:not([type="checkbox"]), .drawer-form select, .drawer-form textarea, .member-row select { width: 100%; min-height: 37px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; outline: 0; color: var(--ink); background: var(--surface); font-size: 11px; }
.drawer-form textarea { resize: vertical; }
.drawer-form input:focus, .drawer-form select:focus, .drawer-form textarea:focus, .member-row select:focus { border-color: #9aafea; box-shadow: 0 0 0 3px rgba(49, 94, 251, .08); }
.drawer-form .form-wide { grid-column: 1 / -1; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.toggle-row > span { margin: 0 !important; }
.toggle-row input { width: 17px; height: 17px; accent-color: var(--blue); }
.drawer-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); }
.inline-save { display: flex; justify-content: flex-end; margin-top: 16px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-heading h3 { margin: 0; }
.section-heading span { color: var(--muted); font-size: 9px; }
.member-list { border-top: 1px solid var(--line); }
.member-row { display: grid; grid-template-columns: 31px minmax(130px, 1fr) 96px 96px 34px; align-items: center; gap: 9px; min-height: 62px; border-bottom: 1px solid #eef1f5; }
.member-identity { min-width: 0; }
.member-identity strong, .member-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-identity strong { font-size: 10px; }
.member-identity small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.member-row select { min-height: 32px; padding: 4px 6px; font-size: 9px; }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 14px; }.analytics-trend { min-height: 295px; }.large-trend-chart { height: 240px; padding-top: 25px; }.large-trend-column { gap: 9px; }.large-bar { width: min(30px, 75%); background: var(--green); }.large-bar span { display: block; transform: translateY(-19px); color: var(--green); font-size: 10px; text-align: center; }.platform-summary-large { min-height: 240px; padding-top: 30px; padding-bottom: 30px; }.preferences-panel { margin-top: 14px; }.preference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; padding: 23px 22px 26px; }.preference-group h3 { margin: 0 0 13px; font-size: 12px; }.preference-row { display: grid; grid-template-columns: 90px 1fr 25px; align-items: center; gap: 9px; min-height: 29px; color: var(--muted); font-size: 10px; }.preference-row strong { color: var(--ink); font-size: 10px; text-align: right; }.preference-track { height: 6px; overflow: hidden; border-radius: 4px; background: #edf0f4; }.preference-track span { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width 220ms var(--ease-out); }
.mobile-menu, .sidebar-close { display: none; }.spin { animation: spin 900ms linear infinite; }@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) { .content { padding: 32px 25px; }.topbar { padding: 0 25px; }.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.dashboard-grid, .dashboard-grid-bottom, .analytics-grid { grid-template-columns: 1fr; }.service-cards { grid-template-columns: 1fr; }.service-card dl { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .sidebar { transform: translateX(-100%); transition: transform 220ms var(--ease-out); box-shadow: 0 18px 50px rgba(23, 32, 51, .16); }.sidebar.open { transform: translateX(0); }.sidebar-close, .mobile-menu { display: inline-grid; }.main-column { width: 100%; margin-left: 0; }.topbar { min-height: 62px; padding: 0 16px; gap: 8px; }.breadcrumb { flex: 1; }.topbar-actions { gap: 7px; }.last-updated { display: none; }.live-status { font-size: 9px; }.content { padding: 26px 16px 36px; }.page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }.page-heading h1 { font-size: 25px; }.page-heading > .button, .page-heading > .select-control, .heading-controls { width: 100%; }.heading-controls .select-control { width: 100%; }.metric-grid, .metric-grid-small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.metric-card { min-height: 118px; padding: 15px; }.metric-card strong { font-size: 25px; }.metric-card small { font-size: 10px; }.panel-heading { padding: 16px 15px 0; }.trend-chart { padding: 18px 12px 17px; }.service-list { padding: 9px 15px 13px; }.platform-summary { gap: 15px; padding: 20px 15px 22px; }.donut { width: 94px; height: 94px; }.donut > div { width: 62px; height: 62px; }.donut strong { font-size: 17px; }.table-panel .panel-heading { align-items: stretch; flex-direction: column; }.search-box { width: 100%; }.table-panel th, .table-panel td { padding-right: 15px; padding-left: 15px; }.permission-grid, .preference-grid { grid-template-columns: 1fr; }.permission-header, .permission-items, .permission-card footer { padding-right: 16px; padding-left: 16px; }.service-card dl { padding: 15px; }.analytics-trend { min-height: 260px; }.large-trend-chart { height: 205px; padding-right: 12px; padding-left: 12px; }.large-bar { width: min(22px, 75%); }.preference-grid { gap: 19px; padding: 20px 15px; }.preference-row { grid-template-columns: 75px 1fr 20px; }.status-badge-large { align-self: flex-start; }.account-mode { display: flex; }.account-mode button { flex: 1; justify-content: center; }.account-toolbar { align-items: stretch; flex-direction: column; }.account-toolbar .account-search { width: 100%; margin: 0; }.account-toolbar .select-control, .account-toolbar .button { width: 100%; }.account-drawer { width: 100%; max-width: none; }.detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }.detail-stats > div:nth-child(2) { border-right: 0; }.detail-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.drawer-form { grid-template-columns: 1fr; }.drawer-form .form-wide { grid-column: auto; }.member-row { grid-template-columns: 31px minmax(120px, 1fr) 34px; padding: 10px 0; }.member-row select { grid-column: 2 / 4; }.member-row .icon-button { grid-column: 3; grid-row: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; } }

/* Unified admin operations surfaces */
.module-heading { margin-bottom: 20px; }
.content > .admin-grid { margin-bottom: 4px; }
.admin-list-panel,
.admin-detail-panel {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}
.admin-detail-panel > .panel-heading,
.admin-list-panel > .panel-heading {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.admin-row {
  border-color: #e7ebf1;
  background: #fafbfd;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.admin-row:hover,
.admin-row.active {
  border-color: #c9d5e8;
  background: var(--blue-soft);
}
.admin-row:active { transform: scale(.995); }
.row-avatar { border-color: #d8e2f5; border-radius: 7px; color: var(--blue); background: var(--blue-soft); }
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 4px 12px rgba(49, 94, 251, .16); }
.button.primary:hover { background: #234bd9; }
.button.secondary { border-color: var(--line); color: #536176; background: var(--surface); }
.button.secondary:hover { border-color: #c5d1e1; color: var(--ink); background: #fff; }
.button.ghost { color: #6f7c90; background: transparent; }
.button.ghost:hover { color: var(--ink); background: #f2f4f8; }
.field input,
.field select,
.field textarea,
.admin-toolbar input,
.admin-toolbar select {
  border-color: var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fafbfd;
  box-shadow: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.admin-toolbar input:focus,
.admin-toolbar select:focus {
  border-color: #9eb3f8;
  outline: 3px solid rgba(49, 94, 251, .1);
}
.field > span,
.eyebrow { color: var(--muted); }
.state-pill,
.status-badge { border-radius: 999px; }
.detail-actions .button,
.admin-toolbar .button { min-height: 38px; }
.api-version-row { border-color: var(--line); }
.worker-priority-status { border-color: var(--line); background: #fafbfd; }

.service-row-worker {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  min-height: 112px;
  padding: 10px 0 12px;
}

.service-row-worker > .service-icon {
  grid-column: 1;
  grid-row: 1;
}

.service-row-worker > span:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.service-row-worker > em {
  grid-column: 3;
  grid-row: 1;
}

.worker-fleet-visual {
  display: flex;
  grid-column: 2 / 4;
  align-items: center;
  gap: 13px;
  min-width: 0;
  margin-top: 7px;
}

.worker-fleet-rings {
  --worker-online-angle: 0deg;
  --worker-idle-angle: 0deg;
  width: 58px;
  height: 58px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 var(--worker-online-angle), #e8edf3 var(--worker-online-angle) 360deg);
  box-shadow: inset 0 0 0 1px rgba(114, 132, 157, .08);
}

.worker-fleet-ring-inner {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--orange) 0 var(--worker-idle-angle), #f1f3f6 var(--worker-idle-angle) 360deg);
}

.worker-fleet-ring-inner::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--surface);
}

.worker-fleet-ring-inner span {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.worker-fleet-stats {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
  margin: 0;
}

.worker-fleet-stats > div {
  display: grid;
  grid-template-columns: 7px minmax(30px, 1fr) auto 29px;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.worker-fleet-stats dt,
.worker-fleet-stats dd,
.worker-fleet-stats small {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.worker-fleet-stats dt {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-fleet-stats dd {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.worker-fleet-stats small {
  color: #8a96a8;
  font-size: 9px;
  text-align: right;
}

.worker-fleet-swatch {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca8b8;
}

.worker-fleet-swatch.is-online { background: var(--green); }
.worker-fleet-swatch.is-idle { background: var(--orange); }

@media (max-width: 1100px) {
  .admin-grid,
  .compact-grid,
  .update-grid { grid-template-columns: 1fr; }
  .api-version-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .sidebar-scroll { padding-bottom: 16px; }
  .admin-toolbar { grid-template-columns: 1fr 1fr; }
  .admin-toolbar .search-field { grid-column: 1 / -1; }
  .api-version-row { grid-template-columns: 1fr; }
  .worker-fleet-visual { gap: 10px; }
  .worker-fleet-rings { width: 54px; height: 54px; }
  .worker-fleet-ring-inner { width: 38px; height: 38px; }
}
