:root {
  --riq-brand: #c32030;
  --riq-brand-dark: #991726;
  --riq-brand-soft: #fff0f1;
  --riq-canvas: #f3f5f8;
  --riq-surface: #ffffff;
  --riq-surface-muted: #f8fafc;
  --riq-border: #e2e7ee;
  --riq-text: #18202b;
  --riq-muted: #667085;
  --riq-sidebar: #17191d;
  --riq-success: #16855b;
  --riq-warning: #b45f06;
  --riq-danger: #c92a3a;
  --riq-info: #2563eb;
  --riq-purple: #7656b5;
  --riq-radius: 10px;
  --riq-shadow: 0 1px 2px rgb(16 24 40 / 4%), 0 4px 14px rgb(16 24 40 / 4%);
  --riq-focus: 0 0 0 3px rgb(195 32 48 / 22%);
  --riq-sidebar-width: 244px;
  --riq-topbar-height: 72px;
  --tblr-primary: var(--riq-brand);
  --bs-primary: var(--riq-brand);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { color: var(--riq-text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--riq-brand); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--riq-focus) !important; }
.btn-primary { --bs-btn-bg: var(--riq-brand); --bs-btn-border-color: var(--riq-brand); --bs-btn-hover-bg: var(--riq-brand-dark); --bs-btn-hover-border-color: var(--riq-brand-dark); --tblr-btn-bg: var(--riq-brand); }
.btn-white { background: #fff; border: 1px solid var(--riq-border); color: #344054; }
.btn-white:hover { background: #f8fafc; border-color: #c9d0da; color: var(--riq-text); }
.btn-dark { background: #242931; border-color: #242931; color: #fff; }
.btn-link { color: var(--riq-muted); text-decoration: none; }
.btn-link:hover { color: var(--riq-brand); }
.card { border: 1px solid var(--riq-border); border-radius: var(--riq-radius); box-shadow: var(--riq-shadow); }
.form-control, .form-select { border-color: #d7dde5; border-radius: 7px; min-height: 40px; }
.form-control:focus, .form-select:focus { border-color: var(--riq-brand); box-shadow: var(--riq-focus); }
.mobile-blocker { display: none; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 2000; padding: 10px 16px; background: #fff; border-radius: 8px; box-shadow: var(--riq-shadow); }
.skip-link:focus { top: 12px; }

/* Shell */
.app-body { width: 100%; margin: 0; padding: 0; min-width: 1024px; overflow-x: hidden; background: var(--riq-canvas); }
.app-shell { width: 100%; margin: 0; display: grid; grid-template-columns: var(--riq-sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.app-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--riq-sidebar); color: #eef0f3; overflow: hidden; z-index: 30; transition: width .18s ease; }
.brand-lockup { height: var(--riq-topbar-height); display: flex; align-items: center; padding: 0 26px; border-bottom: 1px solid rgb(255 255 255 / 8%); }
.brand-lockup img { display: block; width: 166px; height: auto; }.brand-lockup .brand-icon { display: none; width: 32px; height: 32px; }
.sidebar-nav { padding: 22px 14px; flex: 1; }
.sidebar-kicker, .menu-label { margin: 0 12px 8px; color: #888f99; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-section { margin-top: 26px; }
.sidebar-nav .nav-link, .sidebar-footer .nav-link { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 9px 12px; margin: 3px 0; border-radius: 7px; color: #c8ccd2; font-size: 14px; font-weight: 600; }
.sidebar-nav .nav-link > span:first-child, .sidebar-footer .nav-link > span:first-child { display: grid; place-items: center; width: 24px; color: #a6abb3; font-size: 18px; }
.sidebar-nav .nav-link:hover, .sidebar-footer .nav-link:hover { color: #fff; background: rgb(255 255 255 / 6%); }
.sidebar-nav .nav-link.active { color: #fff; background: linear-gradient(90deg, rgb(195 32 48 / 35%), rgb(195 32 48 / 12%)); box-shadow: inset 3px 0 var(--riq-brand); }
.sidebar-nav .nav-link.active > span:first-child { color: #ff929c; }
.sidebar-footer { padding: 14px; border-top: 1px solid rgb(255 255 255 / 8%); }
.environment-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; margin: 10px 8px 0; color: #b4bac2; background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 8%); border-radius: 999px; font-size: 11px; font-weight: 700; }
.environment-chip.dark { color: var(--riq-muted); background: #fff; border-color: var(--riq-border); margin: 0; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #5ee1a4; box-shadow: 0 0 0 4px rgb(94 225 164 / 10%); }
.app-main { min-width: 0; display: flex; min-height: 100vh; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; min-height: var(--riq-topbar-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 30px; background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--riq-border); backdrop-filter: blur(8px); }
.workspace-context, .topbar-actions, .account-summary, .owner-cell, .detail-actions { display: flex; align-items: center; }
.workspace-context { gap: 13px; }
.workspace-context strong { font-size: 14px; }
.eyebrow { margin: 0 0 5px; color: var(--riq-brand); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: #ffb4bb; }
.icon-button { min-width: 36px; min-height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--riq-border); border-radius: 8px; background: #fff; color: #596273; cursor: pointer; }
.topbar-actions { gap: 10px; }
.global-search { position: relative; width: clamp(250px, 25vw, 390px); height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--riq-border); border-radius: 8px; background: #f8fafc; }
.global-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-size: 13px; }
.global-search kbd { padding: 2px 6px; color: #7a8492; background: #fff; border: 1px solid var(--riq-border); border-radius: 4px; font-size: 10px; }
.search-popover { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 80; }
.search-results-card { padding: 6px; background: #fff; border: 1px solid var(--riq-border); border-radius: 9px; box-shadow: 0 18px 40px rgb(16 24 40 / 16%); }
.search-results-card a { display: grid; grid-template-columns: 74px 1fr; column-gap: 10px; padding: 10px; border-radius: 6px; }
.search-results-card a:hover { background: var(--riq-brand-soft); }
.search-results-card .result-kind { grid-row: span 2; color: var(--riq-brand); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.search-results-card small { color: var(--riq-muted); }
.topbar-menu { position: relative; }
.topbar-menu > summary { list-style: none; cursor: pointer; }
.topbar-menu > summary::-webkit-details-marker { display: none; }
.notification-count { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; color: #fff; background: var(--riq-brand); border: 2px solid #fff; border-radius: 999px; font-size: 9px; }
.account-summary { gap: 9px; min-width: 190px; padding: 5px 8px; border-radius: 8px; cursor: pointer; }
.account-summary:hover { background: #f5f7fa; }
.account-summary > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.account-summary strong { font-size: 12px; }
.account-summary small { color: var(--riq-muted); font-size: 10px; }
.popover-panel { position: absolute; top: calc(100% + 12px); right: 0; z-index: 100; width: 320px; background: #fff; border: 1px solid var(--riq-border); border-radius: 10px; box-shadow: 0 20px 50px rgb(16 24 40 / 18%); }
.account-panel { width: 250px; padding: 8px; }
.popover-heading { display: flex; justify-content: space-between; padding: 14px 15px 10px; border-bottom: 1px solid var(--riq-border); }
.popover-heading span { color: var(--riq-muted); font-size: 11px; }
.account-identity { display: flex; flex-direction: column; padding: 10px; }
.account-identity span { color: var(--riq-muted); font-size: 11px; }
.account-panel .menu-label { margin-top: 8px; color: #8a94a3; }
.menu-action { width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: #394150; text-align: left; font-size: 12px; cursor: pointer; }
.menu-action:hover, .menu-action.current { background: #f4f6f9; color: var(--riq-text); }
.menu-action.current::after { content: "Current"; float: right; color: var(--riq-brand); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.menu-action.danger { color: var(--riq-danger); }
.menu-divider { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--riq-border); }
.notification-list { max-height: 430px; overflow: auto; }
.notification-item { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; color: inherit; border-bottom: 1px solid #edf0f4; }
.notification-item:hover { color: inherit; background: var(--riq-brand-soft); text-decoration: none; }
.notification-item:last-child { border: 0; }
.notification-symbol { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--riq-info); }
.notification-symbol.severity-success { background: var(--riq-success); }.notification-symbol.severity-danger { background: var(--riq-danger); }.notification-symbol.severity-warning { background: var(--riq-warning); }
.notification-item div { display: flex; flex-direction: column; }
.notification-item strong { font-size: 12px; }.notification-item p { margin: 2px 0; color: var(--riq-muted); font-size: 11px; }.notification-item time { color: #99a1ad; font-size: 9px; }
.notification-arrow { margin-left: auto; color: var(--riq-muted); font-weight: 800; }
.user-avatar { flex: none; width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #333b47, #111820); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; line-height: 1; }
.avatar-xs { width: 25px; height: 25px; font-size: 8px; }.avatar-sm { width: 31px; height: 31px; }.avatar-lg { width: 54px; height: 54px; font-size: 15px; }
.page-content { flex: 1; width: 100%; max-width: 1660px; margin: 0 auto; padding: 34px 36px 46px; }
.app-footer { display: flex; justify-content: space-between; padding: 15px 36px; color: #8a94a3; border-top: 1px solid var(--riq-border); font-size: 10px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.page-heading h1, .detail-heading h1 { margin: 0; font-size: clamp(27px, 2.1vw, 34px); line-height: 1.14; letter-spacing: -.035em; }
.page-heading > div > p:last-child, .detail-heading > div > p { max-width: 720px; margin: 8px 0 0; color: var(--riq-muted); font-size: 13px; }
.back-link { display: inline-block; margin-bottom: 13px; color: var(--riq-muted); font-size: 12px; font-weight: 600; }
.toast-banner { margin: 0 0 18px; padding: 12px 15px; color: #0d6747; background: #e9f9f2; border: 1px solid #bcead7; border-radius: 8px; font-size: 12px; }

/* Dashboard */
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 13px; margin-bottom: 17px; }
.metric-card { min-height: 142px; display: flex; flex-direction: column; padding: 17px 18px; background: #fff; border: 1px solid var(--riq-border); border-radius: var(--riq-radius); box-shadow: var(--riq-shadow); transition: transform .15s, box-shadow .15s; }
a.metric-card:hover { color: inherit; transform: translateY(-2px); box-shadow: 0 10px 25px rgb(16 24 40 / 8%); }
.metric-primary { border-top: 3px solid var(--riq-brand); }
.metric-top { min-height: 32px; display: flex; align-items: flex-start; justify-content: space-between; }
.metric-icon { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--riq-brand); border-radius: 7px; font-size: 13px; font-weight: 800; }
.metric-icon.neutral { background: #3b4858; }.metric-icon.success { background: var(--riq-success); }.metric-icon.purple { background: var(--riq-purple); }.metric-icon.gold { background: #b46f16; }
.metric-link, .metric-change { color: var(--riq-muted); font-size: 9px; font-weight: 700; }.metric-change.positive { color: var(--riq-success); }
.metric-card p { margin: 9px 0 1px; color: var(--riq-muted); font-size: 11px; font-weight: 650; }
.metric-card strong { font-size: 25px; letter-spacing: -.03em; }
.metric-card small { margin-top: 2px; color: #8a94a3; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr); gap: 17px; margin-bottom: 17px; }
.panel-card { overflow: hidden; margin-bottom: 17px; }
.panel-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--riq-border); }
.panel-header h2 { margin: 0; font-size: 16px; letter-spacing: -.015em; }.panel-header .eyebrow { margin-bottom: 3px; }.panel-header > span { color: var(--riq-muted); font-size: 10px; }
.text-link { color: var(--riq-brand); font-size: 11px; font-weight: 700; }
.chart-frame { min-height: 235px; }.chart-frame.tall { min-height: 290px; }
.chart-actions { display: flex; align-items: center; gap: 6px; }.chart-actions .active { color: #fff; background: var(--riq-text); }.usage-breakdowns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; margin-bottom: 17px; }
.count-pill { min-width: 25px; height: 25px; display: grid; place-items: center; color: var(--riq-danger) !important; background: var(--riq-brand-soft); border-radius: 999px; font-weight: 800; }
.compact-list { padding: 0; }
.attention-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 14px 17px; border-bottom: 1px solid var(--riq-border); }
.attention-row:last-child { border: 0; }.attention-row:hover { color: inherit; background: #fbfcfd; }
.alert-icon { width: 27px; height: 27px; display: grid; place-items: center; color: var(--riq-danger); background: var(--riq-brand-soft); border-radius: 50%; font-size: 11px; font-weight: 900; }
.attention-row > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }.attention-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.attention-row small { color: var(--riq-muted); font-size: 9px; }

/* Tables and workflow filters */
.workflow-card { overflow: visible; }
.workflow-toolbar { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(6, minmax(105px, .6fr)) auto auto; gap: 10px; align-items: end; padding: 16px; background: #fff; border-bottom: 1px solid var(--riq-border); border-radius: var(--riq-radius) var(--riq-radius) 0 0; }
.filter-search { position: relative; display: flex; align-items: center; }
.filter-search > span { position: absolute; left: 12px; color: #7c8591; }.filter-search input { padding-left: 34px; }
.filter-field { display: flex; flex-direction: column; gap: 4px; }.filter-field > span { color: var(--riq-muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.workflow-toolbar .form-control, .workflow-toolbar .form-select { min-height: 38px; font-size: 11px; }
.advanced-filters { grid-column: 1 / -1; border-top: 1px solid var(--riq-border); }
.advanced-filters summary { padding-top: 10px; color: var(--riq-muted); cursor: pointer; font-size: 10px; font-weight: 700; }
.advanced-filters summary span { margin-left: 5px; padding: 2px 6px; color: var(--riq-brand); background: var(--riq-brand-soft); border-radius: 999px; font-size: 8px; }
.advanced-filters > div { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 10px; padding-top: 10px; }
.results-meta { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; background: #fafbfc; border-bottom: 1px solid var(--riq-border); color: var(--riq-muted); font-size: 11px; }
.results-meta strong { color: var(--riq-text); }.filter-scope { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--riq-border); }
.table-controls, .table-controls label { display: flex; align-items: center; gap: 7px; }.table-controls select { border: 1px solid var(--riq-border); border-radius: 5px; background: #fff; }
.column-chooser { position: relative; }.column-chooser summary { list-style: none; cursor: pointer; }.column-chooser summary::-webkit-details-marker { display: none; }.column-chooser > div { position: absolute; right: 0; z-index: 20; display: grid; gap: 7px; min-width: 145px; padding: 11px; margin-top: 5px; background: #fff; border: 1px solid var(--riq-border); border-radius: 7px; box-shadow: var(--riq-shadow); }.column-chooser > div label { justify-content: flex-start; }.workflow-table.hide-column-source [data-column="source"], .workflow-table.hide-column-owner [data-column="owner"], .workflow-table.hide-column-created [data-column="created"], .workflow-table.hide-column-complexity [data-column="complexity"], .workflow-table.hide-column-usage [data-column="usage"], .workflow-table.hide-column-artifacts [data-column="artifacts"] { display: none; }
.table-responsive { overflow-x: auto; }
.operational-table { width: 100%; min-width: 920px; margin: 0; vertical-align: middle; }
.operational-table thead th { height: 43px; padding: 8px 13px; color: #6d7683; background: #f8f9fb; border-color: var(--riq-border); font-size: 9px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; }
.operational-table thead th a { color: inherit; }.operational-table tbody td { min-height: 61px; padding: 11px 13px; color: #364152; border-color: #edf0f3; font-size: 11px; }
.operational-table tbody tr:hover { background: #fcfcfd; }.operational-table tbody tr.archived-row { opacity: .72; background: #fafafa; }
.operational-table td > small, .primary-cell + small, .owner-cell small, .platform-mark + small, .complexity-pill + small { display: block; margin-top: 2px; color: #8a94a3; font-size: 8px; }
.primary-cell { display: block; max-width: 280px; overflow: hidden; color: #202a36; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.owner-cell { gap: 8px; white-space: nowrap; }.owner-cell > span:last-child { display: flex; flex-direction: column; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; color: #596273; background: #f1f3f5; border: 0; border-radius: 999px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-completed, .status-active { color: #11734f; background: #e7f7ef; }.status-processing { color: #1c65b4; background: #e9f3ff; }.status-queued { color: #5d53a5; background: #efedff; }.status-failed, .status-suspended { color: #b52232; background: #fdebed; }.status-canceled { color: #646d78; background: #eef0f2; }.status-draft, .status-invited { color: #9b5a05; background: #fff3df; }
.status-processing .status-dot { animation: pulse 1.5s infinite; }
.platform-mark { display: inline-block; padding: 3px 6px; border: 1px solid #dbe2ea; border-radius: 5px; color: #3b536c; background: #f4f8fb; font-size: 9px; font-weight: 750; }
.platform-alteryx { color: #6f3a08; background: #fff3e8; border-color: #f2d4b8; }
.complexity-pill { display: inline-block; padding: 3px 7px; border-radius: 999px; font-size: 8px; font-weight: 800; text-transform: uppercase; }.complexity-low { color: #13704e; background: #e8f7ef; }.complexity-medium { color: #9a5a08; background: #fff3dd; }.complexity-high { color: #b12030; background: #fdebed; }
.artifact-count { width: 25px; height: 25px; display: grid; place-items: center; background: #f1f3f6; border-radius: 6px; font-weight: 700; }.row-action, .row-arrow { display: inline-grid; min-width: 28px; min-height: 28px; place-items: center; color: #77808c; border-radius: 6px; font-weight: 800; }.row-action:hover, .row-arrow:hover { color: var(--riq-brand); background: var(--riq-brand-soft); }
.pagination-wrap { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; color: var(--riq-muted); background: #fff; border-top: 1px solid var(--riq-border); font-size: 10px; }.pagination-wrap .btn-group { display: flex; align-items: center; }.page-indicator { display: inline-flex; align-items: center; padding: 0 11px; border-top: 1px solid var(--riq-border); border-bottom: 1px solid var(--riq-border); min-height: 31px; background: #fafbfc; }
.empty-state { min-height: 230px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 35px; color: var(--riq-muted); text-align: center; }.empty-state.compact { min-height: 220px; }.empty-state strong { color: var(--riq-text); font-size: 14px; }.empty-state p { max-width: 380px; margin: 5px 0 14px; font-size: 11px; }.empty-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 12px; color: var(--riq-brand); background: var(--riq-brand-soft); border-radius: 50%; }

/* Create */
.create-heading { align-items: flex-end; }.stepper { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 760px; margin: 0 auto 24px; padding: 0; list-style: none; }.stepper li { position: relative; display: flex; align-items: center; gap: 10px; }.stepper li:not(:last-child)::after { content: ""; height: 1px; flex: 1; margin: 0 15px; background: #d6dce4; }.stepper li > span { width: 29px; height: 29px; display: grid; place-items: center; flex: none; color: var(--riq-brand); background: var(--riq-brand-soft); border: 1px solid #f0c3c8; border-radius: 50%; font-size: 10px; font-weight: 800; }.stepper li > div { display: flex; flex-direction: column; white-space: nowrap; }.stepper strong { font-size: 11px; }.stepper small { color: var(--riq-muted); font-size: 8px; }
.validation-summary { max-width: 980px; margin: 0 auto 18px; }.validation-summary ul { margin: 6px 0 0; }.validation-summary a { text-decoration: underline; }
.create-form { max-width: 1120px; margin: 0 auto; }.form-section { position: relative; display: grid; grid-template-columns: 54px 250px minmax(0, 1fr); gap: 22px; padding: 26px; margin-bottom: 17px; overflow: hidden; }.section-number { color: #d5d9df; font-size: 27px; font-weight: 850; letter-spacing: -.05em; }.section-copy h2 { margin: 0; font-size: 17px; }.section-copy > p:last-child { margin: 7px 0; color: var(--riq-muted); font-size: 10px; line-height: 1.55; }.section-fields { min-width: 0; }.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }.form-field > span, .choice-fieldset legend { color: #394150; font-size: 10px; font-weight: 750; }.form-field b { color: var(--riq-brand); }.form-field small, .choice-fieldset > p { color: var(--riq-muted); font-size: 9px; }.form-grid { display: grid; gap: 14px; }.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-fieldset { padding: 0; margin: 3px 0 18px; border: 0; }.choice-fieldset legend { margin-bottom: 8px; }.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.choice-card { position: relative; min-height: 76px; display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--riq-border); border-radius: 8px; cursor: pointer; }.choice-card:has(input:checked) { border-color: var(--riq-brand); background: var(--riq-brand-soft); box-shadow: 0 0 0 1px var(--riq-brand); }.choice-card input { position: absolute; top: 8px; right: 8px; accent-color: var(--riq-brand); }.choice-card > span:last-child { display: flex; flex-direction: column; }.choice-card strong { font-size: 10px; }.choice-card small { color: var(--riq-muted); font-size: 8px; }.choice-icon { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: #356b9c; border-radius: 7px; font-weight: 900; }.choice-icon.alteryx { background: #df7629; }
.file-drop { min-height: 120px; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px dashed #b9c1cc; border-radius: 9px; background: #fafbfc; }.file-drop.dragging { border-color: var(--riq-brand); background: var(--riq-brand-soft); }.file-drop.has-error { border-color: var(--riq-danger); }.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }.file-drop > div { flex: 1; }.file-drop strong { font-size: 11px; }.file-drop p { margin: 2px 0; color: var(--riq-muted); font-size: 9px; }.file-drop small { color: #8a94a3; font-size: 8px; }.upload-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--riq-brand); background: var(--riq-brand-soft); border-radius: 50%; font-size: 18px; }.selected-file { display: flex; align-items: center; gap: 11px; margin-top: 8px; padding: 10px; background: #f5f8fa; border-radius: 7px; }.selected-file > div { display: flex; flex: 1; flex-direction: column; }.selected-file strong { font-size: 10px; }.selected-file small { color: var(--riq-muted); font-size: 8px; }.file-type { padding: 4px; color: var(--riq-brand); background: #fff; border: 1px solid var(--riq-border); border-radius: 4px; font-size: 7px; font-weight: 800; }.field-error { margin: 6px 0; color: var(--riq-danger); font-size: 10px; }
.output-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }.output-choice { display: flex; gap: 9px; align-items: center; padding: 11px; border: 1px solid var(--riq-border); border-radius: 8px; cursor: pointer; }.output-choice:has(input:checked) { border-color: #e3a3aa; background: var(--riq-brand-soft); }.output-choice input { accent-color: var(--riq-brand); }.output-choice > span:last-child { display: flex; flex-direction: column; }.output-choice strong { font-size: 9px; }.output-choice small { color: var(--riq-muted); font-size: 7px; }.output-icon { width: 25px; height: 25px; display: grid; place-items: center; color: var(--riq-brand); background: #fff; border-radius: 5px; font-weight: 800; }.advanced-panel { margin-top: 17px; border-top: 1px solid var(--riq-border); }.advanced-panel summary { display: flex; justify-content: space-between; padding: 14px 0; color: #344054; cursor: pointer; font-size: 10px; font-weight: 700; }.advanced-panel summary span { color: var(--riq-muted); font-size: 8px; }.review-callout { display: flex; gap: 10px; padding: 13px; background: #edf5ff; border: 1px solid #cfe2fa; border-radius: 8px; }.review-callout > span { width: 24px; height: 24px; display: grid; place-items: center; color: #2464a7; background: #fff; border-radius: 50%; font-weight: 800; }.review-callout strong { font-size: 10px; }.review-callout p { margin: 3px 0 0; color: #58728d; font-size: 9px; }.acknowledgement { display: flex; gap: 9px; margin: 16px 0; color: #465263; font-size: 10px; }.acknowledgement input { accent-color: var(--riq-brand); }.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 18px; }

/* Detail */
.detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }.title-status { display: flex; align-items: center; gap: 12px; }.detail-meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: 13px; }.detail-meta span { padding-right: 10px; margin-right: 10px; color: #647081; border-right: 1px solid #d7dde5; font-size: 9px; }.detail-meta span:last-child { border: 0; }.detail-actions { gap: 8px; }.detail-tabs, .settings-tabs { display: flex; gap: 25px; margin-bottom: 17px; border-bottom: 1px solid #dbe0e6; }.detail-tabs a, .settings-tabs a { position: relative; padding: 11px 2px; color: #667085; font-size: 11px; font-weight: 650; }.detail-tabs a.active, .settings-tabs a.active { color: var(--riq-text); }.detail-tabs a.active::after, .settings-tabs a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--riq-brand); }.detail-tabs a span { margin-left: 4px; padding: 2px 5px; background: #e9edf2; border-radius: 999px; font-size: 8px; }
.run-header-meta { display: flex; align-items: center; gap: 8px; color: var(--riq-muted); font-size: 10px; }.run-header-meta strong { color: var(--riq-text); font-size: 10px; }
.detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 17px; }.detail-definition { display: grid; grid-template-columns: repeat(2, 1fr); gap: 21px; }.detail-definition > div, .security-summary > div { display: flex; flex-direction: column; }.detail-definition span, .security-summary span { color: var(--riq-muted); font-size: 9px; text-transform: uppercase; }.detail-definition strong, .security-summary strong { margin-top: 4px; font-size: 11px; }.detail-definition small { color: #8a94a3; font-size: 9px; }.complexity-display { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }.complexity-display .complexity-pill { padding: 9px 13px; }.complexity-display strong { font-size: 11px; }.complexity-display p { margin: 2px 0; color: var(--riq-muted); font-size: 8px; }.inline-form { display: flex; align-items: flex-end; gap: 8px; }.inline-form label { flex: 1; }.inline-form label span { display: block; margin-bottom: 5px; color: var(--riq-muted); font-size: 9px; }.timeline-card { margin-top: 0; }.run-timeline { display: grid; grid-template-columns: repeat(3, 1fr); padding: 5px 10px; margin: 0; list-style: none; }.run-timeline li { position: relative; display: flex; align-items: center; gap: 10px; }.run-timeline li:not(:last-child)::after { content: ""; height: 1px; flex: 1; margin: 0 12px; background: #dce1e7; }.run-timeline li > span { width: 30px; height: 30px; display: grid; place-items: center; flex: none; color: #7b8491; background: #f0f2f5; border-radius: 50%; font-size: 9px; font-weight: 800; }.run-timeline li.complete > span { color: #fff; background: var(--riq-success); }.run-timeline li.failed > span { color: #fff; background: var(--riq-danger); }.run-timeline li > div { display: flex; flex-direction: column; white-space: nowrap; }.run-timeline strong { font-size: 10px; }.run-timeline small { color: var(--riq-muted); font-size: 8px; }.error-panel { margin-top: 20px; padding: 15px; color: #8a1d2a; background: #fff2f3; border: 1px solid #f3c5ca; border-radius: 8px; }.error-panel strong { font-size: 11px; }.error-panel p { font-family: ui-monospace, monospace; font-size: 9px; }
.artifact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; padding: 17px; }.artifact-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--riq-border); border-radius: 8px; }.artifact-card > div { display: flex; flex: 1; min-width: 0; flex-direction: column; }.artifact-card > div > span { color: var(--riq-brand); font-size: 8px; font-weight: 800; text-transform: uppercase; }.artifact-card strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.artifact-card small { color: var(--riq-muted); font-size: 8px; }.artifact-icon { width: 35px; height: 35px; display: grid; place-items: center; color: var(--riq-brand); background: var(--riq-brand-soft); border-radius: 7px; font-weight: 850; }.share-list { padding: 0; }.share-person { display: flex; align-items: center; gap: 11px; padding: 13px 17px; border-bottom: 1px solid var(--riq-border); }.share-person > div { display: flex; flex: 1; flex-direction: column; }.share-person strong { font-size: 10px; }.share-person small { color: var(--riq-muted); font-size: 8px; }.access-pill { padding: 4px 7px; color: #536172; background: #f0f2f5; border-radius: 999px; font-size: 8px; font-weight: 750; }.danger-link { color: var(--riq-danger); }.stack-form { display: flex; flex-direction: column; gap: 13px; }.stack-form label > span { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 700; }.permission-note { padding: 12px; background: #f7f8fa; border: 1px solid var(--riq-border); border-radius: 7px; }.permission-note strong { font-size: 10px; }.permission-note p { margin: 2px 0; color: var(--riq-muted); font-size: 9px; }.activity-list article { position: relative; display: flex; gap: 13px; padding: 4px 0 21px; }.activity-list article:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 17px; bottom: 0; width: 1px; background: #dfe4ea; }.activity-symbol { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 3px; background: var(--riq-brand); border: 3px solid #f5cbd0; border-radius: 50%; }.activity-list strong { font-size: 10px; }.activity-list p { margin: 2px 0; color: #556071; font-size: 9px; }.activity-list small { color: #8a94a3; font-size: 8px; }

/* Usage, users, billing, settings */
.date-range { display: flex; flex-direction: column; align-items: flex-end; padding: 9px 13px; background: #fff; border: 1px solid var(--riq-border); border-radius: 8px; }.date-range span { font-size: 11px; font-weight: 700; }.date-range small { color: var(--riq-muted); font-size: 8px; }.usage-metrics { grid-template-columns: repeat(6, 1fr); }.usage-metrics .metric-card, .billing-metrics .metric-card { min-height: 116px; }.usage-grid { grid-template-columns: 1.65fr .75fr; }.estimate-label { padding: 4px 7px; background: #f0f2f5; border-radius: 999px; }.model-legend { display: grid; gap: 8px; margin-top: 8px; }.model-legend > div { display: flex; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--riq-border); font-size: 9px; }.quota-panel { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 30px; padding: 20px 22px; margin-bottom: 17px; }.quota-panel h2 { margin: 0; font-size: 17px; }.quota-panel p { margin: 5px 0; color: var(--riq-muted); font-size: 10px; }.quota-values { display: flex; justify-content: space-between; color: var(--riq-muted); font-size: 9px; }.quota-progress { width: 100%; height: 9px; margin: 8px 0 3px; border: 0; border-radius: 999px; overflow: hidden; }.quota-progress::-webkit-progress-bar { background: #eceff3; }.quota-progress::-webkit-progress-value { background: var(--riq-brand); border-radius: 999px; }.quota-progress::-moz-progress-bar { background: var(--riq-brand); }.quota-meter small { color: var(--riq-muted); font-size: 8px; }.table-search { display: flex; gap: 7px; }.table-search input { width: 220px; }
.usage-date-form { display: grid; grid-template-columns: 180px 130px 140px 140px auto; align-items: end; gap: 8px; padding: 10px; background: #fff; border: 1px solid var(--riq-border); border-radius: 9px; }.usage-date-form label { display: flex; flex-direction: column; gap: 3px; }.usage-date-form label span { color: var(--riq-muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }.usage-date-form .form-control, .usage-date-form .form-select { min-height: 36px; font-size: 9px; }.usage-date-form > small { grid-column: 1 / -1; color: var(--riq-muted); text-align: right; font-size: 8px; }
.usage-table-filters { display: grid; grid-template-columns: 190px 125px 110px 90px auto; gap: 6px; }.usage-table-filters .form-control, .usage-table-filters .form-select { min-height: 34px; font-size: 9px; }
.metadata-editor { display: grid; grid-template-columns: minmax(16rem, 2fr) minmax(12rem, 1fr) auto; gap: 1rem; align-items: end; }.metadata-editor label, .metadata-editor label > span { display: block; }.metadata-editor label > span { margin-bottom: .4rem; color: var(--riq-muted); font-size: .78rem; font-weight: 700; }.metadata-editor .metadata-description { grid-column: 1 / -1; }
.run-filters { display: grid; grid-template-columns: 120px 115px 110px auto; gap: 6px; }.run-filters .form-select { min-height: 34px; font-size: 9px; }
.admin-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 17px; }.admin-summary > div { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; background: #fff; border: 1px solid var(--riq-border); border-radius: 8px; }.admin-summary span { color: var(--riq-muted); font-size: 9px; }.admin-summary strong { font-size: 15px; }.user-toolbar { grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(115px, .55fr)) auto auto; border-radius: var(--riq-radius) var(--riq-radius) 0 0; }.cell-form { margin: 0; }.cell-form .form-select { min-width: 104px; }.restriction-menu { position: relative; }.restriction-menu summary { cursor: pointer; color: var(--riq-brand); font-size: 9px; font-weight: 700; }.restriction-form { position: absolute; right: 0; z-index: 20; width: 230px; padding: 12px; background: #fff; border: 1px solid var(--riq-border); border-radius: 8px; box-shadow: 0 12px 30px rgb(16 24 40 / 15%); }.restriction-form label { display: block; margin-bottom: 8px; color: var(--riq-muted); font-size: 8px; }
.group-management-card { margin-top: 18px; }.group-management-card .panel-header p:not(.eyebrow) { margin: 3px 0 0; color: var(--riq-muted); font-size: 9px; }.group-table td { vertical-align: middle; }.group-id { display: block; color: var(--riq-muted); font-size: 8px; }.group-member-list { display: flex; flex-wrap: wrap; gap: 5px; min-width: 280px; }.member-chip { display: inline-flex; gap: 4px; padding: 4px 7px; background: #f3f5f7; border-radius: 999px; font-size: 8px; font-weight: 700; }.member-chip small { color: var(--riq-muted); font-size: 7px; font-weight: 600; }.group-actions { display: flex; align-items: center; gap: 4px; }.group-actions form { margin: 0; }.member-picker { max-height: 300px; margin: 14px 0; padding: 12px; overflow: auto; border: 1px solid var(--riq-border); border-radius: 8px; }.member-picker legend { padding: 0 5px; font-size: 10px; font-weight: 800; }.member-picker label { display: grid; grid-template-columns: 18px 1fr; padding: 7px 4px; border-bottom: 1px solid #eef0f3; }.member-picker label:last-child { border-bottom: 0; }.member-picker input { grid-row: 1 / 3; align-self: center; }.member-picker span { font-size: 9px; font-weight: 750; }.member-picker small { color: var(--riq-muted); font-size: 8px; }.group-avatar { color: #6f42c1; background: #eee8fb; }
.invitation-actions, .invitation-actions form { display: inline-flex; align-items: center; margin: 0; }
.user-summary-card { display: flex; align-items: center; gap: 30px; padding: 17px 20px; margin-bottom: 17px; }
.user-summary-card h2 { margin: 0; font-size: 16px; }.user-summary-card p:last-child { margin: 3px 0 0; color: var(--riq-muted); font-size: 9px; }
.user-summary-stats { display: flex; flex: 1; justify-content: center; gap: 30px; }.user-summary-stats span { display: flex; flex-direction: column; color: var(--riq-muted); font-size: 9px; }.user-summary-stats strong { color: var(--riq-text); font-size: 17px; }
.app-dialog { max-width: 100vw; max-height: 100vh; padding: 0; border: 0; border-radius: 12px; box-shadow: 0 25px 70px rgb(16 24 40 / 28%); }.app-dialog::backdrop { background: rgb(17 24 39 / 56%); backdrop-filter: blur(2px); }.dialog-card { width: 480px; max-width: 90vw; padding: 23px; }.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 17px; }.dialog-header h2 { margin: 0; font-size: 19px; }
.billing-hero { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 25px 28px; margin-bottom: 17px; color: #fff; background: radial-gradient(circle at 85% 20%, rgb(195 32 48 / 40%), transparent 34%), linear-gradient(130deg, #17191d, #2e1c20); border-radius: 12px; box-shadow: var(--riq-shadow); }.plan-label { color: #ffb8be; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.plan-title { display: flex; align-items: center; gap: 10px; }.plan-title h2 { margin: 3px 0; font-size: 31px; }.billing-hero p { margin: 5px 0 13px; color: #cfd3d8; font-size: 11px; }.plan-meta { display: flex; gap: 10px; }.plan-meta span { padding: 5px 8px; background: rgb(255 255 255 / 8%); border-radius: 4px; font-size: 9px; }.invoice-estimate { display: flex; min-width: 250px; flex-direction: column; align-items: flex-end; padding-left: 25px; border-left: 1px solid rgb(255 255 255 / 17%); }.invoice-estimate span { color: #cdd1d6; font-size: 9px; }.invoice-estimate strong { font-size: 29px; }.invoice-estimate small { color: #aeb4bc; font-size: 8px; }.billing-metrics { grid-template-columns: repeat(4, 1fr); }.billing-grid { grid-template-columns: 1fr 1fr; }.billing-grid-single { grid-template-columns: 1fr; }.meter-list { display: grid; gap: 19px; }.meter-list > div > div { display: flex; justify-content: space-between; font-size: 10px; }.payment-card { display: flex; align-items: center; gap: 14px; }.card-brand { width: 55px; height: 36px; display: grid; place-items: center; color: #15306c; background: #edf2ff; border: 1px solid #cad6f5; border-radius: 6px; font-size: 11px; font-weight: 900; font-style: italic; }.payment-card > div { flex: 1; }.payment-card strong { font-size: 11px; }.payment-card p { margin: 2px 0; color: var(--riq-muted); font-size: 8px; }
.invoice-filters { display: grid; grid-template-columns: 150px 110px 120px 110px auto; gap: 6px; }.invoice-filters .form-control, .invoice-filters .form-select { min-height: 34px; font-size: 9px; }
.settings-tabs { gap: 32px; }.settings-layout { display: grid; gap: 17px; max-width: 1060px; }.settings-card { display: grid; grid-template-columns: 290px 1fr; gap: 30px; padding: 25px; }.settings-intro { display: flex; align-items: flex-start; gap: 13px; }.settings-intro h2 { margin: 0; font-size: 17px; }.settings-intro p { margin: 5px 0; color: var(--riq-muted); font-size: 9px; }.settings-fields { max-width: 640px; }.switch-list > label { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--riq-border); }.switch-list > label > span { display: flex; flex-direction: column; }.switch-list strong { font-size: 10px; }.switch-list small { color: var(--riq-muted); font-size: 8px; }.switch-list input { accent-color: var(--riq-brand); }.settings-actions { display: flex; align-items: center; gap: 12px; }.settings-actions span { color: var(--riq-muted); font-size: 9px; }.checkbox-row { display: flex; gap: 20px; }.checkbox-row label { color: var(--riq-muted); font-size: 10px; }.checkbox-row input { accent-color: var(--riq-brand); }.input-suffix { display: flex; }.input-suffix input { border-radius: 7px 0 0 7px; }.input-suffix span { display: grid; place-items: center; padding: 0 10px; background: #f5f7f9; border: 1px solid #d7dde5; border-left: 0; border-radius: 0 7px 7px 0; color: var(--riq-muted); font-size: 9px; }.security-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; grid-column: 2; }.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }.roadmap-card { padding: 20px; background: #fff; border: 1px solid var(--riq-border); border-radius: 9px; }.roadmap-card > span { display: inline-grid; width: 35px; height: 35px; place-items: center; color: var(--riq-brand); background: var(--riq-brand-soft); border-radius: 7px; font-size: 9px; font-weight: 800; }.roadmap-card h3 { margin: 14px 0 4px; font-size: 13px; }.roadmap-card p { min-height: 48px; color: var(--riq-muted); font-size: 9px; line-height: 1.6; }

/* Authentication and standalone states */
.auth-body { min-width: 1024px; min-height: 100vh; margin: 0; background: #f2f4f7; }.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(480px, 1.05fr) minmax(500px, .95fr); }.auth-story { display: flex; flex-direction: column; justify-content: space-between; padding: 54px clamp(48px, 6vw, 96px); color: #fff; background: radial-gradient(circle at 15% 85%, rgb(195 32 48 / 42%), transparent 35%), linear-gradient(145deg, #15171b 20%, #2b1a1e); }.auth-brand-lockup { display: flex; align-items: center; gap: 12px; white-space: nowrap; }.auth-brand-lockup a { display: flex; border-radius: 4px; }.auth-brand-lockup .auth-logo { display: block; flex: 0 0 auto; height: auto; }.auth-brand-lockup .auth-logo-refactoriq { width: 200px; }.auth-brand-lockup .auth-logo-estuate { width: 128px; }.auth-brand-lockup p { flex: 0 0 auto; margin: 0; color: #c7ccd2; font-size: 11px; font-weight: 800; letter-spacing: .12em; }.auth-story .eyebrow, .auth-card .eyebrow { font-size: 12px; }.auth-story h1 { max-width: 680px; margin: 10px 0 18px; font-size: clamp(42px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -.055em; }.auth-story > div > p:last-child { max-width: 660px; color: #c7ccd2; font-size: 18px; line-height: 1.6; }.auth-proof { display: flex; gap: 22px; color: #d9dde2; font-size: 13px; }.auth-card { width: min(520px, 88%); align-self: center; justify-self: center; padding: 34px; background: #fff; border: 1px solid var(--riq-border); border-radius: 13px; box-shadow: 0 25px 70px rgb(16 24 40 / 11%); }.brand-mark { display: inline-grid; width: 44px; height: 44px; place-items: center; margin-bottom: 20px; color: #fff; background: var(--riq-brand); border-radius: 8px; font-size: 12px; font-weight: 900; }.auth-card h2 { margin: 0; font-size: 31px; letter-spacing: -.035em; }.auth-card > div > p:last-child { font-size: 15px; line-height: 1.5; }.persona-list { display: grid; gap: 10px; margin-top: 18px; }.persona-button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 13px; text-align: left; background: #fff; border: 1px solid var(--riq-border); border-radius: 8px; cursor: pointer; }.persona-button:hover { border-color: #e2a2a8; background: var(--riq-brand-soft); }.persona-button > span:nth-child(2) { display: flex; flex-direction: column; }.persona-button .user-avatar { width: 42px; height: 42px; font-size: 12px; }.persona-button strong { font-size: 14px; }.persona-button small { margin-top: 2px; color: var(--riq-muted); font-size: 12px; }.auth-card .stack-form label { font-size: 14px; font-weight: 700; }.auth-card .stack-form .form-control, .auth-card .stack-form .btn { min-height: 46px; font-size: 14px; }.auth-footnote { margin: 18px 0 0; color: #737d8c; text-align: center; font-size: 12px; line-height: 1.45; }
.auth-brand-lockup > * { align-self: flex-end; }
.auth-feedback { padding: 12px 14px; margin: 15px 0; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 650; line-height: 1.5; }
.auth-feedback[hidden], .signup-summary[hidden], #signup-details[hidden] { display: none; }
.auth-feedback.is-error { color: #8a1d2a; background: #fff0f1; border-color: #efb8be; }
.auth-feedback.is-success { color: #17633b; background: #ecf8f0; border-color: #add9bb; }
.auth-feedback.is-pending { color: #72520d; background: #fff8e5; border-color: #ead38d; }
.signup-summary { display: grid; gap: 10px; padding: 15px; margin: 0; background: #f6f8fa; border: 1px solid var(--riq-border); border-radius: 8px; }
.signup-summary > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.signup-summary dt { color: #667085; font-size: 12px; font-weight: 600; }
.signup-summary dd { margin: 0; color: var(--riq-text); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.auth-brand-lockup p { line-height: 1; }
.auth-home-link { flex: 0 0 auto; }
.auth-card .brand-mark { width: auto; min-width: 54px; padding: 0 10px; font-size: 10px; }
.suite-home-button { width: fit-content; display: flex; align-items: center; gap: 7px; margin: 16px auto 0; }
.login-error { margin: 14px 0 0; padding: 10px 12px; color: #8f1724; background: var(--riq-brand-soft); border: 1px solid #efc0c5; border-radius: 7px; font-size: 12px; line-height: 1.45; }
.standalone-body { min-height: 100vh; display: grid; place-items: center; margin: 0; padding: 30px; background: radial-gradient(circle at 90% 10%, #fae4e6, transparent 28%), var(--riq-canvas); }.standalone-card { width: min(640px, 92vw); padding: 42px; text-align: center; background: #fff; border: 1px solid var(--riq-border); border-radius: 14px; box-shadow: 0 24px 70px rgb(16 24 40 / 11%); }.standalone-card > img { width: 220px; margin-bottom: 32px; }.standalone-card h1 { margin: 7px 0 12px; font-size: 31px; letter-spacing: -.04em; }.standalone-card > p:not(.eyebrow) { max-width: 500px; margin: 0 auto 22px; color: var(--riq-muted); font-size: 12px; line-height: 1.65; }.standalone-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 16px; color: var(--riq-brand); background: var(--riq-brand-soft); border-radius: 50%; font-size: 22px; }.standalone-icon.danger { color: var(--riq-danger); }.standalone-actions { display: flex; justify-content: center; gap: 8px; }.error-code { display: block; color: var(--riq-brand); font-size: 70px; font-weight: 900; letter-spacing: -.07em; line-height: 1; }.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 25px 0; text-align: left; }.help-grid > div { display: flex; flex-direction: column; padding: 13px; background: #f7f8fa; border-radius: 7px; }.help-grid strong { font-size: 10px; }.help-grid span { margin-top: 4px; color: var(--riq-muted); font-size: 8px; line-height: 1.55; }.empty-inline { padding: 15px; color: var(--riq-muted); font-size: 10px; }

.app-shell.sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }.app-shell.sidebar-collapsed .app-sidebar { width: 76px; }.app-shell.sidebar-collapsed .brand-lockup { justify-content: center; padding: 0; }.app-shell.sidebar-collapsed .brand-lockup .brand-full { display: none; }.app-shell.sidebar-collapsed .brand-lockup .brand-icon { display: block; }.app-shell.sidebar-collapsed .sidebar-kicker, .app-shell.sidebar-collapsed .nav-link > span:last-child, .app-shell.sidebar-collapsed .environment-chip { display: none; }.app-shell.sidebar-collapsed .sidebar-nav .nav-link, .app-shell.sidebar-collapsed .sidebar-footer .nav-link { justify-content: center; }
.compact-density .operational-table tbody td { padding-block: 7px; }
.htmx-indicator { display: none; }.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline-block; }
.loading-skeleton { width: 100%; padding: 15px; background: #fff; }.loading-skeleton span { height: 42px; display: block; margin-bottom: 8px; background: linear-gradient(90deg, #f2f4f6 25%, #fafbfc 50%, #f2f4f6 75%); background-size: 200% 100%; border-radius: 6px; animation: skeleton-shift 1.3s linear infinite; }
.review-impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }.review-impact span { display: flex; flex-direction: column; padding: 10px; color: var(--riq-muted); background: #f7f8fa; border-radius: 7px; font-size: 8px; }.review-impact strong { color: var(--riq-text); font-size: 11px; }

/* Frontend feedback refinements. */
.ai-usage-disabled .invoice-estimate small, .ai-usage-disabled .meter-list > div:nth-child(2) { display: none; }
.workflow-nav-icon { position: relative; width: 20px; height: 12px; display: inline-block; }.workflow-nav-icon::before, .workflow-nav-icon::after { content: ""; position: absolute; top: 2px; width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; }.workflow-nav-icon::before { left: 0; }.workflow-nav-icon::after { right: 0; }.workflow-nav-icon i { position: absolute; left: 7px; right: 7px; top: 5px; height: 2px; background: currentColor; }
.detail-heading { align-items: stretch; flex-direction: column; gap: 7px; }.detail-title-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }.detail-actions form { margin: 0; }.status-button { border: 0; cursor: pointer; }.action-menu { position: relative; }.action-menu summary { list-style: none; cursor: pointer; }.action-menu summary::-webkit-details-marker { display: none; }.action-menu-panel { position: absolute; right: 0; z-index: 30; min-width: 170px; padding: 6px; background: #fff; border: 1px solid var(--riq-border); border-radius: 8px; box-shadow: 0 12px 30px rgb(16 24 40 / 16%); }.action-menu-panel button { width: 100%; padding: 9px 10px; text-align: left; background: transparent; border: 0; border-radius: 5px; font-size: 10px; cursor: pointer; }.action-menu-panel button:hover { background: #f5f6f8; }.action-menu-panel button.danger { color: var(--riq-danger); }.archive-notice { display: flex; gap: 12px; padding: 10px 13px; margin: -10px 0 14px; color: #744b00; background: #fff8e8; border: 1px solid #f1d79a; border-radius: 8px; font-size: 10px; }.run-timeline li > button { width: 30px; height: 30px; flex: none; color: #fff; background: var(--riq-danger); border: 0; border-radius: 50%; font-weight: 800; cursor: pointer; }.input-count { display: inline-grid; min-width: 24px; height: 24px; padding: 0 6px; place-items: center; color: inherit; background: #eef1f4; border: 0; border-radius: 6px; font: inherit; font-weight: 800; }.input-count-button { cursor: pointer; }.input-count-button:hover { background: #dfe5eb; }.output-dialog-button { margin-right: 5px; }.run-artifact-section + .run-artifact-section { border-top: 1px solid var(--riq-border); }.run-artifact-heading { display: flex; align-items: center; justify-content: space-between; padding: 14px 17px 0; font-size: 10px; }.run-artifact-heading span { color: var(--riq-muted); }.dialog-artifacts { grid-template-columns: 1fr; padding: 0; }.input-filename-list { display: grid; gap: 8px; padding-left: 20px; overflow-wrap: anywhere; }.error-dialog pre { max-height: 260px; padding: 12px; overflow: auto; white-space: pre-wrap; color: #8a1d2a; background: #fff2f3; border-radius: 7px; font-size: 10px; }.dashboard-grid-single { grid-template-columns: 1fr; }.compact-membership-card { width: fit-content; min-width: 520px; margin-left: auto; padding-block: 12px; }.usage-settings-card { margin-bottom: 17px; }.disabled-usage-state { display: flex; align-items: center; gap: 15px; padding: 24px; }.disabled-usage-state > span { font-size: 28px; }.disabled-usage-state h2, .disabled-usage-state p { margin: 0; }.help-logo img { width: 140px; margin-bottom: 20px; }.pagination-wrap .btn-group > .btn, .page-indicator { min-height: 31px; height: 31px; box-sizing: border-box; }

@keyframes pulse { 50% { opacity: .35; transform: scale(.78); } }
@keyframes skeleton-shift { to { background-position: -200% 0; } }
@media (max-width: 1280px) { .metric-grid { grid-template-columns: repeat(5, minmax(130px, 1fr)); }.usage-metrics { grid-template-columns: repeat(3, 1fr); }.workflow-toolbar { grid-template-columns: minmax(230px, 1.4fr) repeat(3, minmax(125px, .7fr)) repeat(2, auto); }.workflow-toolbar .filter-field:nth-of-type(4), .workflow-toolbar .filter-field:nth-of-type(5) { display: none; }.form-section { grid-template-columns: 45px 205px minmax(0, 1fr); }.output-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1023px) { .app-shell, .auth-layout { display: none !important; }.app-body, .auth-body { min-width: 0; }.mobile-blocker { min-height: 100vh; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 32px; text-align: center; background: #fff; }.mobile-blocker img { margin-bottom: 35px; }.mobile-blocker h1 { font-size: 28px; }.mobile-blocker p { max-width: 480px; color: var(--riq-muted); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

.demo-banner { position: sticky; top: 0; z-index: 2000; margin: 0; border-radius: 0; text-align: center; font-weight: 600; }

/* Keep the default-target explanation available to pointer, keyboard, and screen-reader users. */
.field-label-with-help { position: relative; display: inline-flex; align-items: center; gap: 6px; width: fit-content; }
.info-tooltip-trigger { display: inline-grid; width: 16px; height: 16px; padding: 0; place-items: center; color: var(--riq-muted); background: #fff; border: 1px solid #98a2b3; border-radius: 50%; cursor: help; font-size: 10px; font-weight: 800; line-height: 1; }
.info-tooltip-trigger:hover, .info-tooltip-trigger:focus-visible { color: var(--riq-brand); border-color: var(--riq-brand); }
.info-tooltip { position: absolute; top: calc(100% + 8px); left: 0; z-index: 100; display: none; width: min(280px, calc(100vw - 40px)); padding: 10px 12px; color: #fff; background: #242931; border-radius: 7px; box-shadow: var(--riq-shadow); font-size: 11px; font-weight: 500; line-height: 1.5; }
.field-label-with-help:hover .info-tooltip, .field-label-with-help:focus-within .info-tooltip { display: block; }
