:root {
  --ink: #1c232b;
  --muted: #5b6672;
  --blue: #1f7acb;
  --blue-dark: #1763a6;
  --border: #d7dde3;
  --topbar: #0b0f14;
}

.channel-narrow-card { max-width: 720px; }
.channel-narrow-card > h2 { margin: 6px 0 8px; }
.channel-narrow-card > p { color: var(--muted); line-height: 1.6; }
.channel-invitation-summary { display: grid; gap: 1px; margin: 22px 0; overflow: hidden; border: 1px solid #dbe3e9; border-radius: 9px; background: #dbe3e9; }
.channel-invitation-summary > div { display: grid; grid-template-columns: minmax(130px, .55fr) minmax(220px, 1.45fr); gap: 16px; padding: 14px 16px; background: #f7fafc; }
.channel-invitation-summary span { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.channel-invitation-security { font-size: .9rem; }
.channel-invitation-actions { justify-content: flex-start; margin-top: 20px; }
.channel-mfa-card { max-width: 860px; margin: 6px auto 0; padding: 0; gap: 0; overflow: hidden; }
.channel-mfa-header { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; padding: 28px 30px 24px; border-bottom: 1px solid #e4eaee; background: linear-gradient(135deg, #f8fbfd 0%, #fff 72%); }
.channel-mfa-header h2 { margin: 5px 0 7px; color: #18242e; font-size: 1.25rem; letter-spacing: -.01em; }
.channel-mfa-header p { max-width: 650px; margin: 0; color: #667784; font-size: .9rem; line-height: 1.55; }
.channel-mfa-shield { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: #e5f2fa; color: #176c9f; font-size: 1.25rem; font-weight: 800; }
.channel-mfa-shield svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.channel-mfa-shield.complete { background: var(--success-bg); color: var(--success); }
.channel-mfa-body { display: grid; gap: 22px; padding: 26px 30px 28px; }
.channel-mfa-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.channel-mfa-steps li { min-width: 0; display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 10px; align-items: start; padding: 13px; border: 1px solid #e1e7eb; border-radius: 8px; background: #fafcfd; }
.channel-mfa-steps li > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #cbd6dd; border-radius: 50%; background: #fff; color: #73838e; font-size: .72rem; font-weight: 800; }
.channel-mfa-steps li.current { border-color: #9ecbe5; background: #f2f9fd; }
.channel-mfa-steps li.current > span { border-color: #1f7acb; background: #1f7acb; color: #fff; }
.channel-mfa-steps li.complete > span { border-color: #b8dfca; background: var(--success-bg); color: var(--success); }
.channel-mfa-steps strong, .channel-mfa-steps small { display: block; }
.channel-mfa-steps strong { margin: 1px 0 4px; color: #263845; font-size: .78rem; line-height: 1.35; }
.channel-mfa-steps small { color: #74838e; font-size: .68rem; line-height: 1.45; }
.channel-mfa-intro { padding: 16px 18px; border-left: 3px solid #5fa8d3; border-radius: 0 7px 7px 0; background: #f5f9fc; }
.channel-mfa-intro strong { display: block; color: #2a3d4a; font-size: .86rem; }
.channel-mfa-intro p { margin: 4px 0 0; color: #6b7b86; font-size: .78rem; }
.channel-mfa-enrollment { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 16px; align-items: start; padding: 20px; border: 1px solid #dbe4ea; border-radius: 9px; background: #f8fafc; }
.channel-mfa-field { min-width: 0; display: grid; gap: 7px; color: #334e68; font-size: .78rem; font-weight: 700; }
.channel-mfa-qr { grid-column: 1 / -1; min-width: 0; display: grid; justify-items: center; gap: 10px; text-align: center; color: #334e68; font-size: .85rem; }
.channel-mfa-qr img { display: block; max-width: 100%; height: auto; background: #fff; }
.channel-mfa-qr small { max-width: 380px; color: #73838e; font-size: .75rem; line-height: 1.5; }
.channel-mfa-field input { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #cbd7de; border-radius: 6px; background: #fff; color: #1d2c36; font: inherit; font-size: .92rem; }
.channel-mfa-field input:focus { outline: none; border-color: #69a9cf; box-shadow: 0 0 0 3px rgba(31, 122, 203, .13); }
.channel-mfa-field small { color: #73838e; font-size: .7rem; font-weight: 400; line-height: 1.45; }
.channel-mfa-key-field input { font-family: "Courier New", monospace; letter-spacing: .04em; }
.channel-mfa-code-field input { max-width: 230px; font-size: 1.08rem; letter-spacing: .2em; }
.channel-mfa-complete { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 13px; align-items: center; padding: 17px 18px; border: 1px solid #c8e6d5; border-radius: 8px; background: var(--success-bg); }
.channel-mfa-complete > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--success); font-weight: 800; }
.channel-mfa-complete strong { color: #1d6a47; font-size: .88rem; }
.channel-mfa-complete p { margin: 3px 0 0; color: #47705c; font-size: .78rem; line-height: 1.45; }
.channel-mfa-actions { justify-content: flex-start; padding-top: 2px; }
.channel-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.channel-resource-calculator { grid-template-columns: minmax(0, 1fr); }
.channel-quote-builder { grid-template-columns: minmax(0, 1fr); }
.admin-card.channel-resource-calculator, .admin-card.channel-quote-builder { display: grid; gap: 24px; }
.channel-form-grid > h2, .channel-span { grid-column: 1 / -1; }
.channel-form-grid > h2 { margin: 0; color: #1d3346; font-size: 1.15rem; }
.channel-form-intro { grid-column: 1 / -1; margin: -7px 0 2px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.channel-form-section-title { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid #e4eaee; color: #2b4355; font-size: .92rem; }
.channel-form-section-title.first { margin-top: 0; padding-top: 0; border-top: 0; }
.channel-form-grid label { display: grid; gap: 6px; color: #334e68; font-size: .86rem; font-weight: 700; }
.channel-form-grid input:not([type="checkbox"]):not([type="file"]),
.channel-form-grid select,
.channel-form-grid textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #cbd7de; border-radius: 6px; background: #fff; color: #1d2c36; font: inherit; font-size: .92rem; }
.channel-form-grid textarea { min-height: 96px; resize: vertical; }
.channel-form-grid input[readonly] { background: #f3f6f8; color: #667784; }
.channel-resource-calculator label, .channel-quote-builder label { min-width: 0; align-content: start; }
.channel-resource-calculator input, .channel-resource-calculator select,
.channel-quote-builder input, .channel-quote-builder select, .channel-quote-builder textarea { min-width: 0; }
.channel-quote-field-group { min-width: 0; margin: 0; padding: 18px; border: 1px solid #dbe3e9; border-radius: 8px; }
.channel-quote-field-group legend, .channel-estimate-input-column legend { padding: 0 6px; color: #243b53; font-size: .88rem; font-weight: 700; }
.channel-quote-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.channel-pricing-fields .channel-field-label { min-height: 2.8em; line-height: 1.4; }
.channel-cost-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 20px; }
.channel-form-grid input[type="file"] { width: 100%; padding: 10px; border: 1px dashed #b9c8d2; border-radius: 7px; background: #f8fafc; color: var(--muted); font: inherit; font-size: .84rem; }
.channel-form-grid .remember-option { display: flex; flex-direction: row; align-items: center; gap: 9px; min-height: 42px; color: #405766; font-weight: 600; }
.channel-form-grid .remember-option input { width: auto; min-height: 0; flex: 0 0 auto; }
.channel-form-grid .button-row { justify-content: flex-start; }
.channel-field-hint { color: #778792; font-size: .72rem; font-weight: 400; line-height: 1.4; }
.channel-input-suffix { position: relative; display: block; }
.channel-input-suffix input { padding-right: 34px; }
.channel-input-suffix > span { position: absolute; top: 50%; right: 13px; transform: translateY(-50%); color: #627d98; font-weight: 700; pointer-events: none; }
.channel-input-suffix input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.channel-input-suffix input[type="number"]::-webkit-inner-spin-button,
.channel-input-suffix input[type="number"]::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }
.channel-option-group { margin: 0; padding: 14px 16px 16px; border: 1px solid #d8e1e7; border-radius: 8px; background: #f8fafc; }
.channel-option-group legend { padding: 0 5px; color: #334e68; font-size: .86rem; font-weight: 700; }
.channel-option-group > p { margin: 0 0 11px; color: var(--muted); font-size: .76rem; }
.channel-option-group > div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.channel-option-group .remember-option { min-height: 28px; font-size: .8rem; }
.channel-product-options > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.channel-product-option > span { display: grid; gap: 2px; }
.channel-product-option small { color: var(--muted); font-size: .7rem; font-weight: 500; }
.channel-price-lines { display: grid; gap: 10px; }
.channel-price-line { display: grid; grid-template-columns: minmax(240px, 2fr) minmax(110px, .7fr) minmax(170px, 1fr); gap: 12px; align-items: end; padding: 12px; border: 1px solid #d9e2ec; border-radius: 8px; }
.channel-price-line > span, table td small { display: block; color: #627d98; margin-top: 4px; }
.channel-price-line > div > span { display: block; color: #627d98; margin-top: 4px; }
.channel-quote-finalize-modal { width: min(520px, 100%); }
.channel-finalize-intro { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.channel-finalize-options { display: grid; gap: 2px; padding: 6px 0; }
.channel-finalize-options .remember-option { display: flex; align-items: center; gap: 10px; min-height: 40px; color: #334e68; font-size: .9rem; font-weight: 650; cursor: pointer; }
.channel-finalize-options input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.channel-price-column { display: grid; gap: 4px; justify-items: end; text-align: right; }
.channel-price-column > span { width: 100%; }
.channel-price-column > small { display: grid; grid-template-columns: auto auto; gap: 6px; align-items: baseline; margin-top: 6px; color: #627d98; }
.channel-price-column > small span { margin: 0; }
.channel-price-column > small strong { color: #334e68; white-space: nowrap; }
.channel-quote-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #dbe3e9; border-radius: 9px; background: #f7fafc; }
.channel-quote-summary > div { display: grid; gap: 4px; padding: 15px 17px; }
.channel-quote-summary > div + div { border-left: 1px solid #dbe3e9; }
.channel-quote-summary span { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.channel-resource-calculator { border-left: 4px solid #5fa8d3; }
.channel-estimate-input-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.channel-estimate-input-column { min-width: 0; margin: 0; padding: 18px; display: grid; gap: 18px; align-content: start; border: 1px solid #dbe3e9; border-radius: 8px; background: #f8fafc; }
.channel-estimate-heading { display: grid; gap: 5px; }
.channel-estimate-heading h2 { margin: 0; color: #1d3346; font-size: 1.15rem; }
.channel-estimate-heading p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.channel-estimate-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid #cfe0eb; border-radius: 9px; background: #f2f8fc; }
.channel-estimate-results > div { display: grid; gap: 4px; padding: 15px 17px; }
.channel-estimate-results > div + div { border-left: 1px solid #cfe0eb; }
.channel-estimate-results span { color: #496879; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.channel-cost-year-rows { display: grid; border: 1px solid #cfe0eb; border-radius: 9px; overflow: hidden; background: #f2f8fc; }
.channel-cost-year-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 16px 18px; }
.channel-cost-year-row + .channel-cost-year-row { border-top: 1px solid #cfe0eb; }
.channel-cost-year-row > div { display: grid; gap: 5px; }
.channel-cost-year-row span { color: #496879; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.channel-cost-year-row small { color: #627d98; line-height: 1.45; }
.channel-cost-year-row > strong { color: #1d3346; font-size: 1.08rem; white-space: nowrap; }
.channel-estimate-results strong { color: #1d3346; font-size: 1.08rem; }
.channel-resource-calculator > .channel-estimate-results { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.channel-estimate-notice { padding: 13px 15px; border: 1px solid #ead7a4; border-radius: 7px; background: #fff9e8; color: #67552d; font-size: .82rem; line-height: 1.5; }
.channel-estimate-notice strong { color: #57461f; }
.channel-dashboard-resources, .channel-support-card { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
.channel-dashboard-resources h2, .channel-support-card h2 { margin: 4px 0 8px; }
.channel-dashboard-resources p, .channel-support-card p { margin: 0; color: var(--muted); }
.token-table.channel-data-table { min-width: 760px; table-layout: fixed; }
.channel-data-table th,
.channel-data-table td { vertical-align: top; overflow-wrap: anywhere; }
.channel-domain-cell { line-height: 1.5; }
.channel-data-table th + th,
.channel-data-table td + td { border-left: 1px solid #e4eaee; }
.channel-data-table td strong { display: block; color: #243b53; }
.channel-data-table .status-pill + .status-pill { margin-top: 7px; }
.channel-data-table-card > .empty-state { border-top: 1px solid #e4eaee; }
.channel-filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 0 0 16px; padding: 14px 16px; border: 1px solid #dbe3e9; border-radius: 9px; background: #f8fafc; }
.channel-filter-bar label { min-width: 180px; display: grid; gap: 5px; color: #405766; font-size: .78rem; font-weight: 700; }
.channel-filter-bar input, .channel-filter-bar select { min-height: 39px; padding: 8px 10px; border: 1px solid #cbd7de; border-radius: 6px; background: #fff; color: #1d2c36; font: inherit; }
.channel-workflow-form { border-left: 4px solid var(--blue); }
.channel-detail-row > td { padding: 0 !important; background: #f8fafc; }
.channel-record-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 18px; }
.channel-record-detail p { margin: 6px 0; color: var(--muted); line-height: 1.5; }
.channel-opportunity-detail { display: grid; gap: 16px; padding: 18px; }
.channel-detail-form { margin: 0; padding: 18px; border: 1px solid #dbe3e9; border-radius: 8px; background: #fff; }
.channel-detail-form > h3 { grid-column: 1 / -1; margin: 0; color: #243b53; }
.channel-activity-list { display: grid; gap: 10px; }
.channel-activity-list h3 { margin: 0; }
.channel-activity-list article { padding: 13px 15px; border-left: 3px solid #84b7d4; border-radius: 0 7px 7px 0; background: #fff; }
.channel-activity-list article > span { float: right; color: var(--muted); font-size: .75rem; }
.channel-activity-list article p { margin: 6px 0 0; color: #405766; }
.channel-load-more { display: flex; justify-content: center; padding: 14px; border-top: 1px solid #e4eaee; }
.channel-id-cell { color: #657783; font-family: "Courier New", monospace; font-size: .8rem !important; overflow-wrap: anywhere; }
.token-table.channel-registration-table { min-width: 860px; }
.channel-registration-table td:nth-child(3) .status-pill { display: flex; width: fit-content; }
.channel-registration-table th:first-child,
.channel-registration-table td:first-child { width: 27%; }
.channel-registration-table th:nth-child(2),
.channel-registration-table td:nth-child(2) { width: 12%; }
.channel-registration-table th:nth-child(3),
.channel-registration-table td:nth-child(3) { width: 16%; }
.channel-registration-table th:nth-child(4),
.channel-registration-table td:nth-child(4),
.channel-registration-table th:nth-child(5),
.channel-registration-table td:nth-child(5) { width: 17%; }
.channel-registration-table th:last-child,
.channel-registration-table td:last-child { width: 11%; }
.channel-quote-table th:first-child,
.channel-quote-table td:first-child { width: 19%; }
.channel-quote-table th:nth-child(2),
.channel-quote-table td:nth-child(2) { width: 18%; }
.channel-quote-table th:nth-child(3),
.channel-quote-table td:nth-child(3) { width: 7%; }
.channel-quote-table th:nth-child(4),
.channel-quote-table td:nth-child(4) { width: 11%; }
.channel-quote-table th:nth-child(5),
.channel-quote-table td:nth-child(5) { width: 14%; }
.channel-quote-table th:nth-child(6),
.channel-quote-table td:nth-child(6) { width: 10%; }
.channel-quote-table th:last-child,
.channel-quote-table td:last-child { width: 21%; }
.channel-team-table th:first-child,
.channel-team-table td:first-child { width: 31%; }
.channel-team-table th:nth-child(2),
.channel-team-table td:nth-child(2) { width: 20%; }
.channel-team-table th:nth-child(3),
.channel-team-table td:nth-child(3) { width: 14%; }
.channel-team-table th:nth-child(4),
.channel-team-table td:nth-child(4) { width: 20%; }
.channel-team-table th:last-child,
.channel-team-table td:last-child { width: 15%; }
.channel-resource-section { display: grid; gap: 16px; }
.channel-resource-heading { display: grid; gap: 7px; }
.channel-resource-heading h2 { margin: 4px 0 0; }
.channel-resource-heading p { max-width: 820px; margin: 0; color: var(--muted); }
.channel-resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.channel-resource-card { min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 20px; border: 1px solid #dbe3e9; border-radius: 10px; background: linear-gradient(145deg, #fff, #f7fafc); box-shadow: 0 1px 2px rgba(18, 34, 47, .04); }
.channel-resource-card h3 { margin: 0 0 8px; color: #1d3346; }
.channel-resource-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.channel-resource-card a { width: fit-content; color: var(--blue-dark); font-weight: 700; text-decoration: none; }
.channel-resource-card a:hover { text-decoration: underline; }
.channel-guide-release { display: grid; gap: 16px; padding-top: 8px; }
.channel-guide-list { display: grid; gap: 12px; }
.channel-guide-card { overflow: hidden; border: 1px solid #dbe3e9; border-radius: 10px; background: #fff; }
.channel-guide-card summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; cursor: pointer; list-style: none; }
.channel-guide-card summary::-webkit-details-marker { display: none; }
.channel-guide-card summary > span:first-child { display: grid; gap: 5px; }
.channel-guide-card summary strong { color: #1d3346; font-size: 1rem; }
.channel-guide-card summary small { color: var(--muted); line-height: 1.45; }
.channel-guide-meta { color: var(--blue-dark); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.channel-guide-toggle { color: var(--blue-dark); font-size: 1.5rem; line-height: 1; transition: transform .15s ease; }
.channel-guide-card[open] .channel-guide-toggle { transform: rotate(45deg); }
.channel-guide-body { display: grid; gap: 18px; padding: 2px 20px 22px; border-top: 1px solid #edf1f4; }
.channel-guide-body > section { padding-top: 18px; }
.channel-guide-body h3 { margin: 0 0 8px; color: #1d3346; font-size: .95rem; }
.channel-guide-body p, .channel-guide-body ul { margin: 0; color: var(--muted); line-height: 1.58; }
.channel-guide-body ul { padding-left: 21px; }
.channel-guide-body li + li { margin-top: 7px; }
.channel-guide-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; }
.channel-guide-links a { color: var(--blue-dark); font-weight: 700; text-decoration: none; }
.channel-guide-links a:hover { text-decoration: underline; }
.channel-resource-note { padding: 13px 15px; border: 1px solid #cfe0eb; border-radius: 7px; background: #f2f8fc; color: #496879; font-size: .82rem; line-height: 1.5; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 10px 16px; border-radius: 6px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; }
.button-link:hover { background: var(--blue-dark); }
.button-link.secondary { border: 1px solid var(--border); background: #edf1f6; color: var(--ink); }
.channel-onboarding-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.channel-onboarding-callout a { color: inherit; font-weight: 700; }
.channel-support-card > div { max-width: 840px; }
.channel-support-card ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.channel-support-card li + li { margin-top: 7px; }
.channel-agreement-document { max-height: 42rem; overflow: auto; margin: 18px 0; padding: 20px; border: 1px solid #dbe3e9; border-radius: 8px; background: #fff; color: #243b53; line-height: 1.55; }
.channel-agreement-document h1 { font-size: 1.45rem; }
.channel-agreement-document h2 { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #dbe3e9; font-size: 1.2rem; }
.channel-agreement-document h3, .channel-agreement-document h4 { margin-top: 1.35rem; }
.channel-agreement-document li + li { margin-top: .45rem; }
@media (max-width: 1100px) {
  .channel-estimate-input-columns, .channel-quote-fields { grid-template-columns: 1fr; }
  .channel-pricing-fields .channel-field-label { min-height: 0; }
  .channel-resource-calculator > .channel-estimate-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #cfe0eb; }
  .channel-resource-calculator > .channel-estimate-results > div { border: 0; background: #f2f8fc; }
}
@media (max-width: 600px) {
  .channel-cost-settings, .channel-resource-calculator > .channel-estimate-results { grid-template-columns: 1fr; }
  .channel-filter-bar label { min-width: 0; width: 100%; }
  .channel-filter-bar input, .channel-filter-bar select { min-width: 0; width: 100%; }
  .channel-quote-builder .channel-price-line { grid-template-columns: minmax(0, 1fr); }
  .channel-quote-builder .channel-price-column { justify-items: start; text-align: left; }
}
@media (max-width: 820px) { .channel-form-grid, .channel-price-line, .channel-quote-summary, .channel-estimate-results, .channel-cost-year-row, .channel-mfa-steps, .channel-mfa-enrollment, .channel-record-detail { grid-template-columns: 1fr; } .channel-quote-summary > div + div, .channel-estimate-results > div + div { border-top: 1px solid #dbe3e9; border-left: 0; } .channel-invitation-summary > div { grid-template-columns: 1fr; gap: 5px; } .channel-mfa-card { margin-top: 0; } }
@media (max-width: 520px) { .channel-mfa-header { grid-template-columns: 1fr; padding: 22px; } .channel-mfa-body { padding: 22px; } }
@media (max-width: 820px) { .channel-resource-grid { grid-template-columns: 1fr; } .channel-dashboard-resources, .channel-support-card { align-items: stretch; flex-direction: column; } .channel-dashboard-resources .button-row { justify-content: flex-start; } }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #ffffff;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-with-drawer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr) 440px;
}

.app-with-drawer .topbar {
  grid-column: 1 / -1;
}

.app-with-drawer .content {
  grid-column: 1;
  min-width: 0;
}

.app-with-drawer .content-inner {
  max-width: none;
}

.topbar {
  background: var(--topbar);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-logo {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-mark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.environment-badge {
  align-self: center;
  border: 1px solid #fbbf24;
  border-radius: 999px;
  color: #fef3c7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-left: 0.75rem;
  padding: 0.3rem 0.6rem;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.content {
  flex: 1;
  padding: 32px 28px;
  background: #ffffff;
}

.content-centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.center-card h1,
.center-card p {
  margin: 0;
}

.center-card > p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.6;
}

.form-hint {
  font-size: 0.88rem;
}

.password-setup-form {
  width: min(440px, 100%);
  display: grid;
  gap: 16px;
  text-align: left;
}

.password-setup-form > label:not(.remember-option) {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.password-setup-form input[type="password"] {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.password-setup-form input[type="password"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 122, 203, 0.15);
}

.password-setup-form .form-hint {
  color: var(--muted);
  line-height: 1.5;
}

.password-setup-form .button-row {
  justify-content: flex-start;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.remember-option input {
  accent-color: var(--blue);
}

.greeting {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
}

.content-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-subtitle {
  margin-top: 6px;
  color: var(--muted);
}

.admin-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  background: #fdfdfd;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eula-section.eula-pending {
  gap: 16px;
}

.eula-frame {
  width: 100%;
  min-height: 520px;
  height: min(68vh, 760px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.admin-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customer-license-request-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(110px, 150px);
  gap: 12px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.field input,
.field select {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  background: #fff;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: #9bb6d1;
  box-shadow: 0 0 0 3px rgba(31, 122, 203, 0.15);
}

.field select {
  min-height: 42px;
}

.admin-form .button-row {
  justify-content: flex-start;
}

.status {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.status.success {
  background: #e7f6ec;
  color: #1f6d3c;
  border: 1px solid #c7e8d1;
}

.status.error {
  background: #fdecea;
  color: #9a1c1c;
  border: 1px solid #f5c6cb;
}

.table-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
}

.table-card > .admin-header {
  padding: 18px;
}

.table-scroll {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
}

.admin-subsection {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-subsection-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.system-integrators-section .token-table {
  min-width: 1100px;
}

.customer-list-status {
  margin: 0 18px 18px;
}

.customer-list-scroll {
  border: none;
  border-radius: 0;
  overflow-x: hidden;
}

.customer-list-table {
  min-width: 900px;
}

.customer-summary-row td {
  background: #fff;
  vertical-align: top;
}

.customer-summary-row {
  cursor: default;
}

.customer-summary-row:hover td,
.customer-summary-row:focus td {
  background: #f4f8fc;
}

.customer-summary-row.expanded td {
  background: #fbfcfe;
}

.customer-toggle-button {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  border: none;
  text-align: left;
}

.customer-toggle-button:hover:not(:disabled) {
  background: transparent;
  color: var(--blue);
}

.customer-toggle-glyph {
  width: 16px;
  font-weight: 800;
  color: var(--muted);
  flex: 0 0 auto;
}

.customer-label-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.customer-row-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.pending-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d7c38c;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff8e6;
  color: #6c5516;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.customer-details-row > td {
  padding: 0;
  background: #f7f8fb;
}

.customer-details-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.customer-request-list,
.customer-license-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customer-request-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.customer-request-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.customer-request-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 700;
}

.customer-request-meta {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.customer-license-block {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.customer-license-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfe;
}

.customer-license-summary-fields {
  display: grid;
  grid-template-columns: minmax(170px, 1.5fr) minmax(90px, 0.8fr) minmax(112px, 0.9fr) repeat(2, minmax(62px, 0.5fr));
  gap: 12px;
  width: 100%;
}

.customer-license-summary-fields > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.customer-license-summary .key-cell,
.customer-request-card .key-cell {
  white-space: normal;
  overflow-wrap: anywhere;
}

.customer-license-summary .key-cell {
  font-size: 0.76rem;
  line-height: 1.35;
}

.summary-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.customer-license-token {
  min-width: 180px;
  margin-right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.request-more-streams-button {
  margin-top: 4px;
}

.customer-license-table-scroll {
  border: none;
  border-radius: 0;
}

.customer-license-detail-table {
  min-width: 700px;
  table-layout: fixed;
}

.customer-license-detail-table th:first-child,
.customer-license-detail-table td:first-child { width: 190px; }
.customer-license-detail-table th:nth-child(2),
.customer-license-detail-table td:nth-child(2) { width: 105px; }
.customer-license-detail-table th:nth-child(3),
.customer-license-detail-table td:nth-child(3),
.customer-license-detail-table th:nth-child(4),
.customer-license-detail-table td:nth-child(4) { width: 145px; }
.customer-license-detail-table th:last-child,
.customer-license-detail-table td:last-child { width: 86px; }

.customer-detail-empty {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.add-license-row {
  display: flex;
  justify-content: flex-start;
}

.customer-request-modal {
  width: min(620px, 100%);
}

.customer-request-modal-body {
  gap: 16px;
}

.customer-request-modal .customer-license-request-grid {
  grid-template-columns: minmax(180px, 1fr) minmax(110px, 160px);
}

.license-filter {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfe;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ink);
}

.filter-option input {
  accent-color: var(--blue);
}

.sort-filter-label {
  margin-left: 8px;
}

.integrator-toggle-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.token-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1260px;
}

.token-table thead {
  background: #f7f8fb;
}

.token-table th,
.token-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.token-table th {
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
}

.token-table tbody tr:last-child td {
  border-bottom: none;
}

.exception-history-table {
  min-width: 0;
  table-layout: fixed;
}

.exception-history-table th,
.exception-history-table td {
  padding: 10px 12px;
}

.exception-history-table .actions-col,
.exception-history-table .actions-cell {
  width: 82px;
}

.exception-history-table th:nth-child(2),
.exception-history-table td:nth-child(2) {
  width: 180px;
}

.exception-history-table th:nth-child(3),
.exception-history-table td:nth-child(3) {
  width: auto;
  overflow-wrap: anywhere;
}

.admin-license-table {
  min-width: 1040px;
}

.admin-license-table .actions-col {
  width: 110px;
}

.integrator-license-groups {
  display: flex;
  flex-direction: column;
  min-width: 1180px;
}

.integrator-license-group {
  border-bottom: 1px solid var(--border);
}

.integrator-license-group:last-child {
  border-bottom: none;
}

.integrator-group-summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #fbfcfe;
  list-style: none;
}

.integrator-group-summary::-webkit-details-marker {
  display: none;
}

.integrator-license-group[open] .integrator-group-summary {
  border-bottom: 1px solid var(--border);
}

.integrator-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
}

.integrator-group-title > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integrator-group-status,
.integrator-group-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.integrator-group-status {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff;
  white-space: nowrap;
}

.integrator-group-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 14px;
  white-space: nowrap;
}

.hierarchy-empty,
.hierarchy-group-empty {
  padding: 28px 16px;
}

.hierarchy-table-scroll {
  border: none;
  border-radius: 0;
}

.integrator-hierarchy-table {
  min-width: 980px;
}

.integrator-hierarchy-table th:first-child,
.integrator-hierarchy-table td:first-child {
  width: 112px;
}

.hierarchy-license-row td {
  background: #fff;
}

.hierarchy-site-row td,
.hierarchy-instance-row td {
  background: #fbfcfe;
  color: var(--muted);
  font-size: 0.88rem;
}

.hierarchy-instance-row td {
  background: #f7f8fb;
}

.hierarchy-primary-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.hierarchy-site-cell {
  padding-left: 22px;
}

.hierarchy-instance-cell {
  padding-left: 44px;
}

.hierarchy-secondary-text {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hierarchy-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 4px 9px;
  background: #fff;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.hierarchy-type.customer-production {
  border-color: #b7dcc6;
  background: #eef8f2;
  color: #22643a;
}

.hierarchy-type.customer-development {
  border-color: #d7c38c;
  background: #fff8e6;
  color: #6c5516;
}

.hierarchy-type.evaluation {
  border-color: #b9c8df;
  background: #f0f5fb;
  color: #315a89;
}

.hierarchy-type.unassigned {
  border-color: #d8b6b6;
  background: #fdf0f0;
  color: #8a3434;
}

.hierarchy-type.site,
.hierarchy-type.instance {
  min-width: 74px;
  background: #fff;
  color: var(--muted);
}

.hierarchy-type.instance {
  margin-left: 22px;
}

.delete-license-col {
  width: 220px;
}

.delete-license-cell {
  min-width: 220px;
}

.delete-license-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.delete-confirm-input {
  width: 92px;
  min-width: 92px;
}

.delete-license-cell .status {
  margin-top: 8px;
}

.selected-row {
  background: #f4f8fc;
}

.actions-col {
  width: 260px;
}

.license-request-actions-col {
  width: 380px;
}

.license-request-actions-cell {
  min-width: 360px;
}

.clear-request-col {
  width: 72px;
}

.key-cell {
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-weight: 600;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.token-cell {
  color: var(--muted);
}

.token-value {
  font-family: "Courier New", monospace;
  background: #f2f4f7;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--ink);
}

.token-empty {
  color: var(--muted);
}

.date-time-cell {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
  white-space: nowrap;
}

.date-time-cell span + span {
  color: var(--muted);
  font-size: 0.86em;
}

.key-link-button {
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-align: left;
}

.key-link-button:hover:not(:disabled) {
  background: transparent;
  color: var(--blue);
  text-decoration: underline;
}

.compact-button {
  padding: 8px 11px;
}

.health-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.84rem;
}

.health-pill:hover:not(:disabled) {
  background: #f7f8fb;
  color: var(--ink);
}

.health-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aeb7c2;
}

.health-pill.online .health-dot {
  background: #2f9e55;
}

.health-pill.offline .health-dot {
  background: #c0392b;
}

.actions-cell .button-row {
  justify-content: flex-start;
}

.license-request-action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.entitlement-picker {
  width: 100%;
  min-width: 0;
}

.entitlement-picker-title {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.entitlement-checkbox-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  max-height: 170px;
  overflow: auto;
  padding-right: 4px;
}

.entitlement-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.3;
  min-width: 0;
}

.entitlement-option input {
  margin-top: 2px;
  accent-color: var(--blue);
}

.entitlement-option span {
  overflow-wrap: anywhere;
}

.performance-threshold-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.threshold-field input {
  min-width: 0;
}

.compact-status {
  padding: 8px 10px;
  font-size: 0.82rem;
}

.clear-request-cell {
  min-width: 72px;
}

button.clear-request-button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #c0392b;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 800;
}

button.clear-request-button:hover:not(:disabled) {
  background: #fdecea;
  color: #a93226;
  border-color: #f5c6cb;
}

.action-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 220px;
}

.inline-form input {
  min-width: 0;
  width: 150px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-family: "Open Sans", "Segoe UI", sans-serif;
}

.inline-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.confirm-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-family: "Open Sans", "Segoe UI", sans-serif;
}

.confirm-input:focus {
  outline: none;
  border-color: #9bb6d1;
  box-shadow: 0 0 0 3px rgba(31, 122, 203, 0.15);
}

.empty-state {
  text-align: center;
  padding: 24px 16px;
  color: var(--muted);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.button-row.left {
  justify-content: flex-start;
}

button {
  border: none;
  border-radius: 6px;
  padding: 11px 16px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover:not(:disabled) {
  background: var(--blue-dark);
}

button.secondary {
  background: #edf1f6;
  color: var(--ink);
  border: 1px solid var(--border);
}

button.secondary:hover:not(:disabled) {
  background: #e3e8ef;
}

button.danger {
  background: #c0392b;
}

button.danger:hover:not(:disabled) {
  background: #a93226;
}

button.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

button.ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.link-button {
  background: transparent;
  color: var(--blue);
  border: none;
  border-radius: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
}

.link-button:hover:not(:disabled) {
  background: transparent;
  color: var(--blue-dark);
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

.license-drawer {
  grid-column: 2;
  grid-row: 2;
  position: sticky;
  top: 0;
  align-self: start;
  z-index: 100;
  width: 100%;
  height: calc(100vh - 74px);
  max-height: calc(100vh - 74px);
  background: #fff;
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 24px rgba(11, 15, 20, 0.12);
  display: flex;
  flex-direction: column;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfe;
}

.drawer-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.drawer-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.drawer-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}

.drawer-tab {
  border-radius: 0;
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.85rem;
}

.drawer-tab:last-child {
  border-right: none;
}

.drawer-tab:hover:not(:disabled) {
  background: #f7f8fb;
  color: var(--ink);
}

.drawer-tab.active {
  background: #eaf3fb;
  color: var(--blue-dark);
}

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-action-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.detail-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.detail-list-row:last-child {
  border-bottom: none;
}

.detail-list-row strong {
  overflow-wrap: anywhere;
}

.license-drawer .key-cell {
  white-space: normal;
  overflow-wrap: anywhere;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 15, 20, 0.55);
}

.modal {
  width: min(920px, 100%);
  max-height: 84vh;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(11, 15, 20, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfe;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy-icon {
  position: relative;
  width: 17px;
  height: 17px;
  display: inline-block;
}

.copy-icon::before,
.copy-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 12px;
  border: 1.7px solid currentColor;
  border-radius: 2px;
}

.copy-icon::before {
  top: 1px;
  left: 5px;
}

.copy-icon::after {
  top: 5px;
  left: 1px;
  background: #edf1f6;
}

.copy-status {
  min-width: 74px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.copy-status.success {
  color: #1f7a3a;
}

.copy-status.error {
  color: #a93226;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  word-break: break-all;
}

.modal-body {
  padding: 18px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.report-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-field span,
.report-section-title {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-field strong {
  color: var(--ink);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.report-message {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fbfcfe;
  overflow-wrap: anywhere;
}

.report-json {
  margin: 0;
  padding: 12px;
  max-height: 420px;
  overflow: auto;
  border-radius: 6px;
  background: #101820;
  color: #f4f7fb;
  font-family: "Courier New", monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 640px) {
  .app-with-drawer {
    display: flex;
    flex-direction: column;
  }

  .topbar {
    padding: 12px 18px;
  }

  .brand-subtitle {
    display: none;
  }

  .button-row {
    flex-direction: column;
    width: 100%;
  }

  .button-row button {
    width: 100%;
  }

  .customer-license-request-grid {
    grid-template-columns: 1fr;
  }

  .customer-license-summary {
    flex-direction: column;
  }

  .customer-license-summary-fields,
  .customer-request-modal .customer-license-request-grid {
    grid-template-columns: 1fr;
  }

  .customer-license-token {
    width: 100%;
    align-items: flex-start;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions-col {
    width: auto;
  }

  .actions-cell .button-row {
    width: 100%;
  }

  .greeting {
    font-size: 1.4rem;
  }

  .eula-frame {
    min-height: 420px;
    height: 64vh;
  }

  .license-drawer {
    width: 100vw;
    height: auto;
    max-height: none;
    position: static;
    border-left: none;
    border-top: 1px solid var(--border);
    box-shadow: none;
  }

  .drawer-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-backdrop {
    align-items: stretch;
    padding: 12px;
  }

  .modal {
    max-height: none;
  }

  .modal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Role-based console shell and dashboard */
:root {
  --canvas: #f4f7fa;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --sidebar: #101922;
  --sidebar-active: #174665;
  --success: #21875a;
  --success-bg: #e8f6ef;
  --warning: #9a6309;
  --warning-bg: #fff2da;
  --danger: #aa3838;
  --danger-bg: #fce9e9;
  --focus: #62b6e8;
}

.app-signed-in {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  grid-template-rows: minmax(100vh, auto);
  background: var(--canvas);
}

.app-signed-in .topbar {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
  padding: 24px 18px 18px;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  background: var(--sidebar);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.05);
}

.app-signed-in .brand {
  min-height: 48px;
  padding: 0 8px;
}

.app-signed-in .brand-logo {
  max-width: 154px;
  max-height: 44px;
}

.app-signed-in .brand-subtitle {
  color: #9cadb9;
  letter-spacing: 0.03em;
}

.app-signed-in .content {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 32px 34px 56px;
  background: var(--canvas);
}

.app-signed-in .content-inner {
  max-width: 1440px;
  gap: 22px;
}

.app-signed-in.app-with-drawer {
  grid-template-columns: 248px minmax(0, 1fr) 440px;
  grid-template-rows: minmax(100vh, auto);
}

.app-signed-in.app-with-drawer .topbar {
  grid-column: 1;
  grid-row: 1;
}

.app-signed-in.app-with-drawer .content {
  grid-column: 2;
  grid-row: 1;
}

.app-signed-in.app-with-drawer .license-drawer {
  grid-column: 3;
  grid-row: 1;
  height: 100vh;
  max-height: 100vh;
}

.app-signed-in.app-with-drawer .customer-license-summary {
  align-items: stretch;
  flex-direction: column;
}

.app-signed-in.app-with-drawer .customer-license-summary-fields {
  grid-template-columns: minmax(180px, 1.5fr) repeat(2, minmax(90px, 1fr));
}

.app-signed-in.app-with-drawer .customer-license-token {
  min-width: 0;
  margin-right: 0;
  align-items: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
}

.app-signed-in.app-with-drawer .customer-license-detail-table { min-width: 620px; }
.app-signed-in.app-with-drawer .customer-license-detail-table th:first-child,
.app-signed-in.app-with-drawer .customer-license-detail-table td:first-child { width: 160px; }
.app-signed-in.app-with-drawer .customer-license-detail-table th:nth-child(3),
.app-signed-in.app-with-drawer .customer-license-detail-table td:nth-child(3),
.app-signed-in.app-with-drawer .customer-license-detail-table th:nth-child(4),
.app-signed-in.app-with-drawer .customer-license-detail-table td:nth-child(4) { width: 125px; }

.app-signed-in.app-with-drawer .integrator-hierarchy-table {
  min-width: 700px;
  font-size: 0.82rem;
}

.app-signed-in.app-with-drawer .integrator-hierarchy-table th:nth-child(3),
.app-signed-in.app-with-drawer .integrator-hierarchy-table td:nth-child(3),
.app-signed-in.app-with-drawer .integrator-hierarchy-table th:nth-child(6),
.app-signed-in.app-with-drawer .integrator-hierarchy-table td:nth-child(6) {
  display: none;
}

.console-navigation {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.console-nav-label {
  margin: 17px 11px 7px;
  color: #768997;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.console-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

button.console-nav-item {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #bac6ce;
  font-size: 0.9rem;
  font-weight: 400;
  text-align: left;
}

button.console-nav-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.07);
}

button.console-nav-item.active {
  border-left-color: #41ace9;
  background: var(--sidebar-active);
  color: #fff;
  font-weight: 600;
}

.console-nav-badge {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #dc5151;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.console-account {
  margin-top: auto;
  padding: 17px 10px 12px;
  border-top: 1px solid #2a3741;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.console-account strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-account span {
  color: #899aa6;
  font-size: 0.72rem;
}

.app-signed-in .top-actions {
  padding: 0 10px;
}

.app-signed-in .top-actions button {
  width: 100%;
  padding: 8px 12px;
  border-color: #35434e;
  color: #c2ccd3;
  font-size: 0.78rem;
}

.console-page-header {
  min-height: 76px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.console-eyebrow {
  color: #6e7f8c;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.console-page-header h1 {
  margin: 6px 0 5px;
  color: #18242e;
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.console-page-subtitle {
  max-width: 760px;
  color: #667784;
  font-size: 0.9rem;
  line-height: 1.5;
}

.console-page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.console-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.console-metric {
  position: relative;
  min-height: 112px;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid #dbe3e9;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(18, 34, 47, 0.04);
}

.console-metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: transparent;
}

.console-metric.success::before { background: #2aa06d; }
.console-metric.warning::before { background: #e2a027; }
.console-metric.danger::before { background: #d65454; }

.console-metric-label {
  color: #687985;
  font-size: 0.76rem;
  font-weight: 700;
}

.console-metric-value {
  margin-top: 7px;
  color: #18242e;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.15;
}

.console-metric-note {
  margin-top: 5px;
  color: #84919b;
  font-size: 0.7rem;
}

button.console-metric {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
}

.console-metric.interactive,
.console-panel.interactive {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.console-metric.interactive:hover:not(:disabled),
.console-panel.interactive:hover {
  border-color: #a8cde4;
  box-shadow: 0 5px 16px rgba(32, 90, 126, 0.1);
  transform: translateY(-1px);
}

button.console-metric.interactive:hover:not(:disabled) { background: #fff; }

.console-card-link {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--blue);
  font-size: 0.69rem;
  font-weight: 700;
}

.console-panel.interactive .console-highlight-list { cursor: pointer; }
.console-panel.interactive:focus-visible {
  outline: 3px solid rgba(98, 182, 232, 0.55);
  outline-offset: -3px;
}

.console-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 18px;
}

.console-panel,
.table-card,
.admin-card {
  border-color: #dbe3e9;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(18, 34, 47, 0.04);
}

.console-panel {
  overflow: hidden;
  border: 1px solid #dbe3e9;
}

.console-panel-header {
  padding: 17px 19px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e6ebef;
}

.console-panel-header h2 {
  margin: 0;
  color: #1b2731;
  font-size: 0.98rem;
}

.console-panel-header p {
  margin: 4px 0 0;
  color: #72818c;
  font-size: 0.76rem;
}

.console-panel-link {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.console-action-list {
  padding: 5px 19px;
}

button.console-action-item {
  width: 100%;
  min-height: 68px;
  padding: 13px 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: none;
  border-bottom: 1px solid #edf1f4;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

button.console-action-item:last-child { border-bottom: none; }
button.console-action-item:hover:not(:disabled) { background: #f8fafc; }

.console-action-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f3fa;
  color: #176c9f;
  font-size: 0.78rem;
  font-weight: 700;
}

.console-action-icon.warning { background: var(--warning-bg); color: var(--warning); }
.console-action-icon.danger { background: var(--danger-bg); color: var(--danger); }

.console-action-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.console-action-copy strong { font-size: 0.82rem; }
.console-action-copy span { color: #71808b; font-size: 0.72rem; line-height: 1.35; }

.console-action-label {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f3fa;
  color: #176c9f;
  font-size: 0.7rem;
  font-weight: 700;
}

.console-action-label.warning { background: var(--warning-bg); color: var(--warning); }
.console-action-label.danger { background: var(--danger-bg); color: var(--danger); }

.console-positive-empty {
  min-height: 118px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--success);
}

.console-positive-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success-bg);
  font-weight: 700;
}

.console-positive-empty div { display: flex; flex-direction: column; gap: 3px; }
.console-positive-empty span { font-size: 0.75rem; }

.console-highlight-list { padding: 5px 19px 13px; }

.console-highlight {
  padding: 13px 0;
  border-bottom: 1px solid #edf1f4;
}

.console-highlight:last-child { border-bottom: none; }

.console-highlight-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
}

.console-highlight-heading span { color: #42515c; font-weight: 700; }
.console-highlight-note { margin-top: 4px; color: #75838e; font-size: 0.7rem; }

.console-progress {
  height: 6px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f4;
}

.console-progress span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.console-progress span.success { background: #2aa06d; }
.console-progress span.warning { background: #dfa027; }
.console-progress span.danger { background: #d65454; }

.table-toolbar,
.license-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.table-search input {
  min-width: 230px;
  padding: 9px 11px;
  border: 1px solid #cfd9e1;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
}

.inventory-search {
  flex: 1 1 320px;
}

.inventory-search input { width: 100%; }

.filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #cfd9e1;
  border-radius: 999px;
  background: #fff;
  color: #52616c;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
}

.filter-chip.active {
  border-color: #a9d1e9;
  background: #e7f3fa;
  color: #176c9f;
}

.filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-result-count {
  color: #71808b;
  font-size: 0.75rem;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf1f4;
  color: #596872;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.active,
.status-pill.accepted { background: var(--success-bg); color: var(--success); }
.status-pill.invited,
.status-pill.pending,
.status-pill.submitted,
.status-pill.under_review,
.status-pill.action_required,
.status-pill.warning { background: var(--warning-bg); color: var(--warning); }
.status-pill.disabled,
.status-pill.rejected { background: var(--danger-bg); color: var(--danger); }

.token-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6f8fa;
  color: #647480;
  font-size: 0.69rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.token-table tbody tr:hover > td { background-color: #f8fbfd; }

.maintenance-confirmation {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #ead39e;
  border-radius: 8px;
  background: #fff9eb;
}

.maintenance-confirmation > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.maintenance-confirmation span { color: #725b2d; font-size: 0.8rem; }

.danger-zone {
  border-color: #e6b9b9;
  background: #fffafa;
}

.report-value-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.report-value-with-action > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.copy-value-button {
  flex: 0 0 auto;
  font-size: 0.7rem;
}

.drawer-summary-section,
.drawer-data-section {
  padding: 14px;
  border: 1px solid #dfe6eb;
  border-radius: 9px;
  background: #fff;
}

.drawer-summary-section.primary { background: #f8fbfd; }

.drawer-summary-heading {
  margin-bottom: 12px;
  color: #435664;
  font-size: 0.76rem;
  font-weight: 700;
}

.drawer-report-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.drawer-report-grid .full-width { grid-column: 1 / -1; }
.drawer-report-grid .report-field strong { font-size: 0.86rem; }

.drawer-data-section > .report-section-title { margin-bottom: 10px; }

.structured-data-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.structured-node,
.structured-group-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.structured-field-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e3e8ec;
  border-radius: 7px;
  background: #e3e8ec;
}

.structured-field {
  min-width: 0;
  padding: 10px 11px;
  background: #fbfcfd;
}

.structured-field dt {
  color: #71808b;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.structured-field dd {
  margin: 4px 0 0;
  color: #1d2b35;
  font-size: 0.82rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.structured-section {
  padding: 11px;
  border-left: 3px solid #bcd8e9;
  border-radius: 0 7px 7px 0;
  background: #f5f9fb;
}

.structured-section h4 {
  margin: 0 0 9px;
  color: #38576b;
  font-size: 0.75rem;
}

.structured-section .structured-section {
  margin-top: 9px;
  border-left-color: #d2dce2;
  background: #fff;
}

.structured-value-list,
.structured-empty {
  color: #53636e;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.invite-user-modal { width: min(520px, 100%); }
.invite-user-form { gap: 18px; }
.license-users-modal { width: min(1080px, 100%); }
.license-users-modal-body {
  gap: 18px;
  overflow-y: auto;
}
.license-users-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d9e4eb;
  border-radius: 7px;
  background: #fff;
}
.license-users-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.license-users-section-header > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.license-users-section-header span,
.license-user-detail {
  color: var(--muted);
  font-size: 0.72rem;
}
.license-users-table-scroll { max-height: 330px; }
.license-users-table { min-width: 900px; }
.license-users-table th { white-space: nowrap; }
.license-users-table td { vertical-align: top; }
.license-user-email,
.license-user-detail {
  display: block;
}
.license-user-email { overflow-wrap: anywhere; }
.license-user-detail { margin-top: 3px; }
.license-user-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.license-user-invite-form {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.license-user-invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}
.invite-user-context {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid #d9e4eb;
  border-radius: 7px;
  background: #f6fafc;
}
.invite-user-context span { color: var(--muted); font-size: 0.75rem; }
.invite-user-context strong { font-size: 0.78rem; overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .license-user-invite-row { grid-template-columns: 1fr; }
  .license-user-invite-row button { width: 100%; }
}

.notification-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.notification-connection-card { padding: 20px; }
.notification-connection-card.connected { border-left: 4px solid var(--success); }
.notification-connection-main {
  display: flex;
  align-items: center;
  gap: 14px;
}
.notification-provider-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf1f4;
  color: #60717d;
  font-size: 1.15rem;
  font-weight: 800;
}
.notification-provider-icon.connected { background: #e5f5ec; color: var(--success); }
.notification-card-eyebrow {
  margin-bottom: 3px;
  color: #778692;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.notification-connection-status {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.notification-connection-card { position: relative; }
.notification-destination-grid {
  margin-top: 18px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid #e7ecef;
}
.notification-enrollment-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.notification-enrollment-actions span { color: var(--muted); font-size: 0.75rem; }
.notification-preferences-card { overflow: hidden; }
.notification-preferences-header { margin: 0; padding: 18px 20px; }
.notification-preference-columns {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.2fr);
  border-top: 1px solid #e7ecef;
}
.notification-preference-group { min-width: 0; padding: 20px; }
.notification-preference-group + .notification-preference-group { border-left: 1px solid #e7ecef; }
.notification-group-heading {
  min-height: 52px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.notification-group-heading h3 { margin: 0; font-size: 0.9rem; }
.notification-group-heading p { margin: 5px 0 0; color: var(--muted); font-size: 0.73rem; line-height: 1.4; }
.notification-option-list {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #e1e7eb;
  border-radius: 8px;
}
.notification-option {
  min-height: 43px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e9edf0;
  color: #344550;
  font-size: 0.8rem;
  font-weight: 600;
}
.notification-option:last-child { border-bottom: none; }
.notification-option input,
.notification-master-toggle input { accent-color: var(--blue); }
.notification-master-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #52636e;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.notification-preference-group .performance-threshold-grid {
  grid-template-columns: repeat(3, minmax(115px, 1fr));
  margin-top: 12px;
}
.threshold-field span small { color: #84929c; font-size: 0.66rem; font-weight: 600; }
.notification-preferences-card > .status { margin: 0 20px 20px; }
.notification-guidance-card { padding: 20px; }
.notification-guidance-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.notification-guidance-grid > div {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #e1e7eb;
  border-radius: 8px;
  background: #f9fbfc;
}
.notification-guidance-grid strong { font-size: 0.8rem; }
.notification-guidance-grid span { color: var(--muted); font-size: 0.72rem; line-height: 1.45; }

/* Responsive customer and managed-license inventory */
.customer-list-table {
  min-width: 0;
  table-layout: fixed;
}
.customer-list-table th:first-child,
.customer-list-table td:first-child { width: 32%; }
.customer-list-table th:nth-child(2),
.customer-list-table td:nth-child(2) { width: 14%; }
.customer-list-table th:nth-child(3),
.customer-list-table td:nth-child(3),
.customer-list-table th:nth-child(5),
.customer-list-table td:nth-child(5),
.customer-list-table th:nth-child(6),
.customer-list-table td:nth-child(6) { width: 11%; }
.customer-list-table th:nth-child(4),
.customer-list-table td:nth-child(4) { width: 21%; }

.inventory-table-container {
  width: 100%;
  overflow: visible;
  border: none;
  border-radius: 0;
}

.inventory-detail-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.inventory-name-column { width: 30%; }
.inventory-streams-column { width: 15%; }
.inventory-time-column { width: 21%; }
.inventory-alert-column { width: 21%; }
.inventory-action-column { width: 13%; }
.inventory-detail-table th,
.inventory-detail-table td {
  padding: 12px clamp(8px, 1.1vw, 14px);
  overflow-wrap: anywhere;
}
.inventory-detail-table .actions-cell button { max-width: 100%; }

.managed-license-list {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.managed-license-list-card { overflow: visible; }
.managed-license-block { box-shadow: 0 1px 2px rgba(18, 34, 47, 0.04); }
.managed-license-summary-fields {
  grid-template-columns: minmax(170px, 1.45fr) minmax(110px, 1fr) repeat(4, minmax(92px, 0.8fr));
}
.managed-license-actions { min-width: 104px; }

.app-signed-in.app-with-drawer .customer-list-table th,
.app-signed-in.app-with-drawer .customer-list-table td,
.app-signed-in.app-with-drawer .inventory-detail-table th,
.app-signed-in.app-with-drawer .inventory-detail-table td {
  padding-right: 8px;
  padding-left: 8px;
  font-size: 0.78rem;
}
.app-signed-in.app-with-drawer .managed-license-summary-fields {
  grid-template-columns: minmax(170px, 1.4fr) repeat(2, minmax(90px, 1fr));
}
.app-signed-in.app-with-drawer .inventory-name-column { width: 32%; }
.app-signed-in.app-with-drawer .inventory-streams-column { width: 14%; }
.app-signed-in.app-with-drawer .inventory-time-column { width: 20%; }
.app-signed-in.app-with-drawer .inventory-alert-column { width: 20%; }
.app-signed-in.app-with-drawer .inventory-action-column { width: 14%; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(98, 182, 232, 0.55);
  outline-offset: 2px;
}

@media (max-width: 1120px) {
  .console-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-overview-grid { grid-template-columns: 1fr; }
  .app-signed-in.app-with-drawer {
    grid-template-columns: 248px minmax(0, 1fr);
  }
  .app-signed-in.app-with-drawer .license-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(440px, 100vw);
    z-index: 120;
    box-shadow: -12px 0 30px rgba(11, 15, 20, 0.2);
  }
}

@media (max-width: 820px) {
  .app-signed-in,
  .app-signed-in.app-with-drawer {
    display: flex;
    flex-direction: column;
  }

  .app-signed-in .topbar {
    position: static;
    width: 100%;
    height: auto;
    padding: 13px 16px;
  }

  .app-signed-in .brand { padding: 0; }
  .app-signed-in .brand-logo { height: 36px; }
  .app-signed-in .brand-subtitle { display: block; }

  .console-navigation {
    margin-top: 13px;
    padding-top: 11px;
    overflow-x: auto;
    border-top: 1px solid #2a3741;
  }

  .console-nav-label,
  .console-account { display: none; }

  .console-nav-group {
    flex-direction: row;
    min-width: max-content;
  }

  .console-nav-group + .console-nav-group { margin-top: 4px; }

  button.console-nav-item {
    width: auto;
    min-height: 36px;
    padding: 8px 11px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  button.console-nav-item.active { border-bottom-color: #41ace9; }

  .app-signed-in .top-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 0;
  }

  .app-signed-in .top-actions button { width: auto; }

  .app-signed-in .content {
    padding: 25px 20px 44px;
  }

  .console-page-header { flex-direction: column; gap: 14px; }
  .console-page-actions { width: 100%; }
  .console-page-actions button { width: 100%; }
}

@media (max-width: 560px) {
  .app-signed-in .content { padding: 20px 14px 38px; }
  .console-metric-grid { grid-template-columns: 1fr; }
  .console-metric { min-height: 98px; }
  .console-page-header h1 { font-size: 1.5rem; }
  .console-overview-grid { gap: 14px; }
  button.console-action-item { grid-template-columns: 32px minmax(0, 1fr); }
  .console-action-label { grid-column: 2; justify-self: start; }
  .table-toolbar { align-items: stretch; }
  .table-search,
  .table-search input { width: 100%; min-width: 0; }
  .table-toolbar > button { width: 100%; }
  .license-filter { align-items: stretch; }
  .license-filter .integrator-toggle-actions { width: 100%; }
  .maintenance-confirmation { align-items: stretch; flex-direction: column; }
}

@media (max-width: 1050px) {
  .notification-preference-columns { grid-template-columns: 1fr; }
  .notification-preference-group + .notification-preference-group {
    border-top: 1px solid #e7ecef;
    border-left: none;
  }
  .notification-destination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notification-guidance-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .notification-connection-status {
    position: static;
    margin-top: 16px;
    justify-content: space-between;
  }
  .notification-destination-grid,
  .notification-preference-group .performance-threshold-grid,
  .structured-field-grid,
  .drawer-report-grid { grid-template-columns: 1fr; }
  .notification-preferences-header,
  .notification-group-heading.with-toggle { align-items: stretch; flex-direction: column; }
  .notification-preferences-header > button { width: 100%; }
  .drawer-report-grid .full-width { grid-column: auto; }
}
