:root {
  color: #182230; background: #f7f8fa; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px; letter-spacing: 0; --border: #dfe3e8; --muted: #667085; --blue: #2f6685; --green: #257a55; --red: #b42318; --amber: #a15c07;
}

.issue-radar-mark { background: #167b83 !important; color: #fff !important; overflow: visible !important; }
.issue-radar-mark svg { width: 20px; height: 20px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: #f7f8fa; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
.topbar { height: 58px; padding: 0 28px; display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 20; }
.brand { color: #182230; display: flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 6px; color: #fff; background: #244d63; font-size: 11px; }
nav { display: flex; align-self: stretch; gap: 4px; }
.nav-link { display: flex; align-items: center; padding: 0 13px; color: #475467; border-bottom: 2px solid transparent; }
.nav-link:hover { color: #182230; border-bottom-color: #3b6e8f; }
.nav-link.active { color: #1f5876; border-bottom-color: #2f6685; font-weight: 700; }
.user-menu { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.role-badge, .status-pill { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; color: #475467; background: #fff; font-size: 12px; }
.username { font-weight: 600; }
.page-shell { width: min(1500px, 100%); margin: 0 auto; padding: 28px; }
.portal-heading { margin-bottom: 24px; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 980px; }
.portal-entry { min-height: 150px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; align-items: center; gap: 18px; padding: 26px; border: 1px solid var(--border); border-radius: 8px; color: #182230; background: #fff; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.portal-entry:hover { border-color: #aab7c2; box-shadow: 0 8px 22px rgba(24, 34, 48, .08); transform: translateY(-2px); }
.portal-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 8px; }
.portal-icon svg { width: 27px; height: 27px; }
.portal-hapi .portal-icon { color: #245f7d; background: #e8f2f7; }
.portal-gitlab .portal-icon { color: #8f3b27; background: #fbece7; }
.portal-codex .portal-icon { color: #3f5f8f; background: #edf2fa; }
.portal-configure { border-style: dashed; color: #475467; }
.portal-configure .portal-icon { color: #667085; background: #f2f4f7; }
.portal-copy { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.portal-copy strong { font-size: 22px; line-height: 1.1; }
.portal-copy small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.portal-arrow { width: 20px; height: 20px; color: #667085; }
.portal-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; max-width: 980px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--border); }
.portal-shortcuts a { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: #475467; }
.portal-shortcuts a:hover { color: #182230; background: #fff; }
.portal-shortcuts svg { width: 16px; height: 16px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { margin: 0 0 6px; font-size: 24px; line-height: 1.25; }
.page-heading p, .section-heading p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 700; margin-bottom: 6px; text-transform: uppercase; }
.heading-actions, .inline-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.button, .icon-button { border: 1px solid #cfd5dc; background: #fff; color: #344054; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 12px; border-radius: 6px; font-weight: 600; }
.button:hover, .icon-button:hover { border-color: #8796a5; background: #f9fafb; }
.button.primary { color: #fff; border-color: #2f6685; background: #2f6685; }
.button.small { min-height: 30px; padding: 4px 9px; font-size: 12px; }
.icon-button { width: 34px; padding: 0; border: 0; }
.button svg, .icon-button svg, .security-note svg { width: 16px; height: 16px; }
.segmented { display: flex; border: 1px solid #cfd5dc; border-radius: 6px; overflow: hidden; background: #fff; }
.segmented a { padding: 8px 12px; color: #475467; border-right: 1px solid #cfd5dc; }
.segmented a:last-child { border-right: 0; }.segmented a.active { background: #eaf1f5; color: #214c65; font-weight: 700; }
.metrics-band { display: grid; grid-template-columns: repeat(8, minmax(105px, 1fr)); border: 1px solid var(--border); background: #fff; margin-bottom: 22px; }
.metric { padding: 17px 18px; border-right: 1px solid var(--border); min-width: 0; }.metric:last-child { border-right: 0; }
.metric span, .facts-band span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }.metric strong { font-size: 23px; }
.status-running { color: var(--blue); }.status-failed { color: var(--red); }
.table-section, .timeline-section, .discussion-section, .form-section { background: #fff; border: 1px solid var(--border); border-radius: 7px; }
.panel-heading { height: 50px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--border); }
.panel-heading h2, .section-heading h2 { margin: 0; font-size: 15px; }.panel-heading span { color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: #667085; font-size: 11px; text-transform: uppercase; background: #fafbfc; } th, td { padding: 12px 14px; border-bottom: 1px solid #eaecf0; vertical-align: top; }
tbody tr:hover { background: #fbfcfd; } tbody tr:last-child td { border-bottom: 0; }
.mr-title { color: #182230; font-weight: 650; display: block; max-width: 560px; overflow-wrap: anywhere; }.muted { color: var(--muted); display: block; font-size: 12px; margin-top: 4px; }.branch { max-width: 340px; overflow-wrap: anywhere; }.nowrap { white-space: nowrap; }
.mr-row.mr-processed { background: #f7fcf9; }.mr-row.mr-unprocessed { background: #fffbf2; }.mr-row.mr-processed:hover { background: #f0f9f4; }.mr-row.mr-unprocessed:hover { background: #fff7e6; }.mr-row > td:first-child { box-shadow: inset 3px 0 0 transparent; }.mr-row.mr-processed > td:first-child { box-shadow: inset 3px 0 0 var(--green); }.mr-row.mr-unprocessed > td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.processing-label { display: inline-block; margin-left: 7px; padding-left: 7px; border-left: 1px solid #d0d5dd; font-weight: 700; }.processing-label.processed, .processed-at { color: var(--green); }.processing-label.unprocessed, .not-processed { color: var(--amber); font-weight: 600; }
.paused-label { display: inline-block; margin-left: 7px; padding-left: 7px; border-left: 1px solid #d0d5dd; color: var(--amber); font-weight: 600; }.actions-column { width: 126px; }.row-actions { display: flex; align-items: center; gap: 3px; min-width: 108px; }.row-actions form { margin: 0; display: flex; }.icon-button.table-action { width: 34px; height: 34px; min-height: 34px; border: 1px solid transparent; border-radius: 5px; }.icon-button.table-action:hover { border-color: #cfd5dc; }.icon-button.resume-action { color: var(--green); }
.status-completed { color: var(--green); border-color: #a6d6c1; background: #effaf5; }.status-needs_human { color: var(--red); border-color: #f0b7b2; background: #fff4f2; }.status-running, .status-queued { color: var(--blue); border-color: #b6cfdd; background: #eff6f9; }.status-idle, .status-cancelled { color: var(--amber); border-color: #f0cf99; background: #fff9eb; }
.empty-state { color: var(--muted); text-align: center; padding: 35px !important; }
.filter-bar { display: grid; grid-template-columns: 2fr 1.25fr 1fr 1fr 1fr auto; align-items: end; gap: 12px; padding: 16px; border: 1px solid var(--border); background: #fff; margin-bottom: 18px; }
.page-notice { margin: -8px 0 18px; align-items: center; }.page-notice svg { width: 17px; height: 17px; flex: 0 0 auto; }.notice.warning.runtime-notice { display: flex; }
.scan-dialog { width: min(880px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--border); border-radius: 7px; color: #182230; background: #fff; box-shadow: 0 20px 48px rgba(16,24,40,.2); }.scan-dialog::backdrop { background: rgba(24,34,48,.52); }.scan-dialog form { display: flex; flex-direction: column; }.dialog-heading { min-height: 62px; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }.dialog-heading h2 { margin: 0 0 4px; font-size: 17px; }.dialog-heading span { color: var(--muted); font-size: 12px; }.scan-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 18px; padding: 20px 18px; overflow-y: auto; }.scan-filter-grid .wide { grid-column: span 2; }.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 13px 18px; border-top: 1px solid var(--border); background: #fafbfc; }
label { display: flex; flex-direction: column; gap: 6px; min-width: 0; } label > span { font-size: 12px; color: #475467; font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid #cfd5dc; border-radius: 5px; background: #fff; padding: 8px 10px; color: #182230; min-height: 36px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #c7dce8; border-color: #3b6e8f; }.detail-heading h1 { max-width: 950px; overflow-wrap: anywhere; }
.facts-band { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--border); margin-bottom: 20px; }.facts-band > div { min-width: 0; padding: 14px 16px; border-right: 1px solid var(--border); overflow: hidden; }.facts-band > div:last-child { border-right: 0; }.facts-band code, .facts-band strong { overflow-wrap: anywhere; }
.ai-session-section { margin-bottom: 20px; border: 1px solid var(--border); background: #fff; }.ai-session-heading { min-height: 58px; padding: 9px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); }.ai-session-heading h2 { margin: 0 0 4px; font-size: 15px; }.ai-session-heading div > span { color: var(--muted); font-size: 12px; }.ai-session-heading label { width: min(420px, 48%); }.ai-session-heading label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }.session-progress-track { height: 3px; overflow: hidden; background: #edf0f2; }.session-progress-track span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--green); }.session-progress-track.complete span { transform: scaleX(1); }.session-progress-track.active span { width: 24%; transform: translateX(-100%); background: var(--blue); animation: session-progress 1.6s linear infinite; }.ai-session-runtime { display: flex; min-height: 38px; align-items: center; gap: 0; padding: 0 16px; overflow-x: auto; border-bottom: 1px solid #eaecf0; background: #fafbfc; }.ai-session-runtime span { padding: 0 12px; border-right: 1px solid #dfe3e8; color: var(--muted); font-size: 11px; white-space: nowrap; }.ai-session-runtime span:first-child { padding-left: 0; color: #344054; font-weight: 700; }.ai-session-runtime span:last-child { border-right: 0; }.ai-session-stream { max-height: 620px; overflow: auto; padding: 6px 16px 14px; }.session-event { padding: 10px 0 10px 13px; border-left: 2px solid #dfe3e8; border-bottom: 1px solid #eef0f2; }.session-event header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.session-event header strong { font-size: 12px; }.session-event header span { color: var(--muted); font-size: 11px; }.session-event p { margin: 5px 0 0; line-height: 1.5; white-space: pre-wrap; }.session-event pre { margin: 7px 0 0; padding: 9px 10px; max-height: 360px; overflow: auto; border: 1px solid #e2e5e9; background: #f8f9fa; color: #273444; font-size: 11px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }.session-progress { border-left-color: var(--blue); }.session-agent { border-left-color: var(--green); }.session-reasoning { border-left-color: #9a6b16; }.session-command { border-left-color: #667085; }.session-error { border-left-color: var(--red); }.session-empty { color: var(--muted); text-align: center; padding: 30px; }.session-event + .session-event { margin-top: 0; }@keyframes session-progress { from { transform: translateX(-100%); } to { transform: translateX(430%); } }
.ai-session-view-tabs { display: flex; align-items: center; padding-right: 6px; margin-right: 2px; border-right: 1px solid var(--border); }.ai-session-view-tabs .icon-button { border-radius: 5px; color: var(--muted); }.ai-session-view-tabs .icon-button.active { color: #214c65; background: #eaf1f5; }.ai-session-terminal { background: #111820; color: #d8e2ea; font-family: "SFMono-Regular", Consolas, monospace; }.terminal-output { height: 420px; overflow: auto; padding: 12px 16px; }.terminal-line { padding: 7px 0; border-bottom: 1px solid #26323d; color: #aebdca; font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }.terminal-line:last-child { border-bottom: 0; }.terminal-command-bar { display: grid; grid-template-columns: 18px minmax(0,1fr) 36px; align-items: center; gap: 7px; min-height: 52px; padding: 8px 12px; border-top: 1px solid #34424f; background: #17212b; }.terminal-command-bar > span { color: #6fd4a2; font-weight: 700; }.terminal-command-bar input { min-height: 34px; border: 0; padding: 5px 0; outline: 0; color: #f4f7f9; background: transparent; font-family: inherit; }.terminal-command-bar .icon-button { width: 34px; min-height: 34px; color: #d8e2ea; background: #263744; }.terminal-direct { color: #aebdca; }.terminal-session-message { color: #f2cc8f; }.terminal-item-completed { color: #d8e2ea; }.terminal-error, .terminal-turn-failed { color: #ffaaa3; }
.icon-button.primary { color: #fff; border: 1px solid #2f6685; background: #2f6685; }.icon-button.danger { color: var(--red); border: 1px solid #e5b9b5; }.icon-button:disabled, .button:disabled { cursor: not-allowed; opacity: .45; }.ai-session-controls { display: flex; align-items: center; gap: 6px; min-width: min(620px, 62%); }.ai-session-controls label { flex: 1; min-width: 220px; }.ai-session-controls label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }.ai-session-composer { display: grid; grid-template-columns: minmax(0,1fr) 40px; align-items: end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); background: #f8f9fa; }.ai-session-composer textarea { min-height: 54px; max-height: 180px; resize: vertical; }.ai-session-composer .icon-button { width: 40px; height: 40px; border-radius: 6px; }.session-user { border-left-color: var(--blue); }.session-user pre { background: #f2f7fa; }.detail-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }.timeline, .discussion-list { padding: 18px; }
.timeline-item { display: grid; grid-template-columns: 14px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }.timeline-item:before { content: ""; position: absolute; left: 6px; top: 15px; bottom: 0; width: 1px; background: #dfe3e8; }.timeline-item:last-child:before { display: none; }
.timeline-marker { width: 13px; height: 13px; border-radius: 50%; background: #98a2b3; z-index: 1; margin-top: 3px; }.timeline-marker.status-completed { background: var(--green); }.timeline-marker.status-running { background: var(--blue); }.timeline-marker.status-needs_human { background: var(--red); }
.timeline-content { border-bottom: 1px solid #eaecf0; padding-bottom: 17px; min-width: 0; }.timeline-title { display: flex; justify-content: space-between; gap: 12px; }.timeline-title time, .meta-row { color: var(--muted); font-size: 12px; }.timeline-content p { overflow-wrap: anywhere; }.meta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.discussion { border-bottom: 1px solid #eaecf0; padding: 0 0 12px; margin-bottom: 12px; }.discussion:last-child { border-bottom: 0; margin-bottom: 0; }.discussion-summary { min-height: 26px; display: flex; gap: 8px; align-items: center; }.discussion-summary > span { color: var(--muted); font-size: 12px; }.discussion-summary .discussion-count { margin-left: auto; white-space: nowrap; }.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }.status-dot.resolved { background: var(--green); }.status-dot.open { background: var(--red); }.discussion p { line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }.code-location { min-width: 0; overflow-wrap: anywhere; }.discussion-thread { margin: 4px 0 0 16px; }.discussion-note { padding: 7px 10px; border-left: 1px solid #dfe3e8; }.discussion-note + .discussion-note { border-top: 1px solid #f0f1f3; }.discussion-note.reply { margin-left: 10px; }.discussion-note p { margin: 4px 0 0; }.note-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.note-meta strong { font-size: 12px; }.note-meta time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.security-note { color: var(--green); display: flex; align-items: center; gap: 7px; font-weight: 600; }.password-settings-form { margin: 0 0 18px; }.settings-form { display: flex; flex-direction: column; gap: 18px; }.form-section { padding: 20px; }.section-heading { margin-bottom: 18px; }.section-heading h2 { margin-bottom: 5px; }.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px 18px; }.form-grid .wide { grid-column: span 2; }.form-grid small { color: var(--green); font-size: 11px; }.form-grid.compact { grid-template-columns: repeat(4, 1fr); }.inline-actions { margin-top: 16px; }
.link-button { border: 0; padding: 0; color: var(--red); background: transparent; cursor: pointer; font-size: 11px; }.codex-mobile-connectivity-actions small { color: var(--muted); font-size: 12px; }.codex-mobile-connectivity-results { display: grid; gap: 10px; margin-top: 14px; }.codex-mobile-connectivity-result { padding: 12px 0; border-top: 1px solid var(--border); }.codex-mobile-connectivity-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }.codex-mobile-connectivity-result-heading span { color: var(--green); font-size: 12px; font-weight: 700; }.codex-mobile-connectivity-result.is-failed .codex-mobile-connectivity-result-heading span { color: var(--red); }.codex-mobile-connectivity-result dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0; }.codex-mobile-connectivity-result dl div { min-width: 0; }.codex-mobile-connectivity-result dt { color: var(--muted); font-size: 11px; }.codex-mobile-connectivity-result dd { display: grid; gap: 3px; margin: 3px 0 0; min-width: 0; }.codex-mobile-connectivity-result code, .codex-mobile-connectivity-result small { overflow-wrap: anywhere; }.codex-mobile-connectivity-result small { color: var(--green); font-size: 11px; line-height: 1.4; }.codex-mobile-connectivity-result.is-failed small { color: var(--red); }.codex-mobile-instance-config { display: grid; align-content: start; gap: 8px; min-width: 0; }.codex-mobile-instance-config .inline-actions { margin-top: 0; }.codex-mobile-instance-config .notice { width: 100%; margin: 0; padding: 8px 10px; font-size: 12px; }.add-project { padding-top: 18px; margin-top: 6px; border-top: 1px solid #eaecf0; }
.login-shell { width: min(430px, calc(100% - 32px)); margin: 12vh auto 0; }.login-form { display: flex; flex-direction: column; gap: 16px; }.form-help { color: var(--muted); font-size: 12px; margin: 0; }
.project-settings { display: flex; flex-direction: column; }.project-row { display: grid; grid-template-columns: 70px minmax(180px,1fr) minmax(220px,2fr) 36px 36px; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #eaecf0; }.project-row:last-child { border-bottom: 0; }.project-title { min-width: 0; }.project-title strong, .project-title small { display: block; overflow-wrap: anywhere; }.project-title small { margin-top: 4px; color: var(--muted); font-size: 11px; }.project-delete-button { width: 34px; min-height: 34px; }.project-add-actions { display: flex; align-items: flex-end; }.project-add-actions .button { min-height: 36px; }.toggle { flex-direction: row; align-items: center; }.toggle input { width: 18px; min-height: 18px; }.toggle span { white-space: nowrap; }
.sticky-actions { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; padding: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.96); border-radius: 7px; z-index: 5; }.audit-section { margin-top: 24px; }.notice { display: flex; gap: 10px; padding: 13px; border: 1px solid var(--border); border-radius: 6px; }.notice.success { border-color: #a6d6c1; background: #effaf5; }.notice.warning { border-color: #f0cf99; background: #fff9eb; display: block; }.notice.danger { color: var(--red); border-color: #e5b9b5; background: #fff5f4; }.setup-body { background: #eef2f5; min-height: 100vh; }.setup-shell { width: min(900px, calc(100% - 32px)); margin: 42px auto; }.setup-header { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }.setup-header h1 { margin: 0 0 4px; font-size: 22px; }.setup-header p { margin: 0; color: var(--muted); }.form-actions { display: flex; justify-content: flex-end; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.ones-heading { margin-bottom: 18px; }.ones-empty-config { min-height: 180px; display: flex; align-items: center; gap: 18px; padding: 28px; border: 1px solid var(--border); background: #fff; }.ones-empty-config > svg { width: 34px; height: 34px; color: var(--blue); }.ones-empty-config h2 { margin: 0 0 5px; font-size: 17px; }.ones-empty-config p { margin: 0; color: var(--muted); }.ones-empty-config .button { margin-left: auto; }
.ones-filter-bar { display: grid; grid-template-columns: 1.1fr 1.3fr 1.3fr 1.15fr 1fr 1.25fr 74px; align-items: end; gap: 10px; padding: 13px 14px; border: 1px solid var(--border); border-bottom: 0; background: #fff; }.ones-filter-bar label { gap: 4px; }.ones-filter-bar input, .ones-filter-bar select { min-height: 34px; padding-top: 6px; padding-bottom: 6px; }.ones-filter-bar .icon-button { width: 34px; height: 34px; min-height: 34px; }.ones-filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.ones-list-section { border: 1px solid var(--border); background: #fff; }.ones-list-toolbar { min-height: 42px; padding: 0 14px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); background: #fafbfc; }.ones-list-toolbar strong { font-size: 12px; }.ones-list-toolbar span { color: var(--muted); font-size: 11px; }.ones-table th, .ones-table td { padding-top: 10px; padding-bottom: 10px; vertical-align: middle; }.ones-table th:first-child, .ones-table td:first-child { width: 34%; }.ones-issue-title { display: block; color: #182230; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }.ones-key { display: inline-block; min-width: 54px; margin-right: 7px; color: #4b6f88; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; font-weight: 600; }.ones-cell-primary { display: block; font-size: 12px; font-weight: 600; }.ones-status { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 8px; border: 1px solid #d8dee5; border-radius: 4px; color: #475467; background: #f8fafb; font-size: 12px; white-space: nowrap; }.ones-status i { width: 7px; height: 7px; border-radius: 50%; background: #98a2b3; }.ones-status-to_do i, .ones-status-pending i { background: #7b8794; }.ones-status-in_progress { color: #245b7a; border-color: #bad2df; background: #f1f7fa; }.ones-status-in_progress i { background: #2f7aa3; }.ones-status-done, .ones-status-completed { color: #216744; border-color: #b9d9c9; background: #f1f9f5; }.ones-status-done i, .ones-status-completed i { background: #2c8b5e; }.ones-status-canceled i, .ones-status-cancelled i { background: #b42318; }.ones-person { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }.ones-person b, .ones-avatar { width: 24px; height: 24px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #315367; background: #e5eef3; font-size: 11px; }.ones-link-state { color: var(--muted); font-size: 11px; white-space: nowrap; }.ones-link-state.linked { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-weight: 600; }.ones-link-state svg { width: 13px; height: 13px; }
.ones-detail-header { padding-bottom: 19px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }.ones-breadcrumb { min-height: 28px; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }.ones-breadcrumb svg { width: 14px; height: 14px; }.ones-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }.ones-title-row h1 { margin: 7px 0 0; max-width: 920px; font-size: 24px; line-height: 1.3; overflow-wrap: anywhere; }.ones-type-label { display: inline-flex; min-height: 22px; align-items: center; padding: 2px 7px; border-radius: 4px; color: #365d74; background: #e9f1f5; font-size: 11px; font-weight: 600; }.ones-detail-notice { margin-bottom: 18px; }.ones-detail-notice svg { width: 16px; height: 16px; }.ones-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }.ones-main-column, .ones-side-column { min-width: 0; display: flex; flex-direction: column; gap: 18px; }.ones-description-section, .ones-activity-section, .ones-properties-section, .ones-hapi-section { border: 1px solid var(--border); background: #fff; }.ones-section-heading { min-height: 46px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }.ones-section-heading h2 { margin: 0; font-size: 14px; }.ones-section-heading > span { color: var(--muted); font-size: 11px; }.ones-description { min-height: 150px; padding: 20px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }.ones-subissues { padding: 0 20px 18px; }.ones-subissues h3 { margin: 0 0 8px; font-size: 13px; }.ones-subissues h3 span { color: var(--muted); font-weight: 400; }.ones-subissues a { display: flex; align-items: center; gap: 7px; min-height: 34px; border-top: 1px solid #edf0f2; }.ones-subissues svg { width: 14px; height: 14px; }.ones-activity-list { padding: 8px 18px; }.ones-comment { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; padding: 13px 0; border-bottom: 1px solid #edf0f2; }.ones-comment:last-child { border-bottom: 0; }.ones-comment header { display: flex; justify-content: space-between; gap: 12px; }.ones-comment header time { color: var(--muted); font-size: 11px; white-space: nowrap; }.ones-comment p { margin: 5px 0 0; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }.ones-comment-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); background: #fafbfc; }.ones-comment-form textarea { resize: vertical; }
.ones-properties-form, .ones-link-form { display: flex; flex-direction: column; gap: 12px; padding: 15px; border-bottom: 1px solid var(--border); }.ones-workflow-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; padding: 12px 15px; border-bottom: 1px solid var(--border); background: #fafbfc; }.ones-workflow-form .button { min-height: 36px; }.ones-property-list { margin: 0; padding: 6px 15px 12px; }.ones-property-list > div { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 10px; min-height: 38px; align-items: center; border-bottom: 1px solid #edf0f2; }.ones-property-list > div:last-child { border-bottom: 0; }.ones-property-list dt { color: var(--muted); font-size: 12px; }.ones-property-list dd { margin: 0; overflow-wrap: anywhere; }.ones-linked-project { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; padding: 16px; }.ones-linked-project > svg { width: 22px; height: 22px; color: var(--green); }.ones-linked-project strong, .ones-linked-project code { display: block; overflow-wrap: anywhere; }.ones-linked-project code { margin-top: 5px; color: var(--muted); }.ones-hapi-section > .inline-actions { padding: 0 16px 16px; }.ones-hapi-section form { margin: 0; }.ones-integration-error { margin: 0; padding: 16px; color: var(--muted); line-height: 1.5; }
@media (max-width: 1050px) { .metrics-band { grid-template-columns: repeat(4, 1fr); }.metric { border-bottom: 1px solid var(--border); }.detail-grid { grid-template-columns: 1fr; }.filter-bar, .scan-filter-grid { grid-template-columns: repeat(2, 1fr); }.form-grid, .form-grid.compact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1050px) { .ones-filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }.ones-filter-bar .icon-button { align-self: end; }.ones-detail-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 700px) { .topbar { height: auto; min-height: 56px; padding: 10px 14px; flex-wrap: wrap; gap: 8px; }.brand span:last-child, .username, .role-badge { display: none; } nav { order: 3; width: 100%; height: 38px; overflow-x: auto; }.nav-link { padding: 0 10px; white-space: nowrap; }.page-shell { padding: 18px 12px; }.page-heading { align-items: flex-start; flex-direction: column; }.page-heading h1 { font-size: 21px; }.heading-actions { width: 100%; }.portal-grid { grid-template-columns: 1fr; }.portal-entry { min-height: 112px; padding: 18px; }.metrics-band { grid-template-columns: repeat(2, 1fr); }.metric:nth-child(even) { border-right: 0; }.filter-bar, .scan-filter-grid, .form-grid, .form-grid.compact { grid-template-columns: 1fr; }.scan-filter-grid .wide, .form-grid .wide { grid-column: auto; }.facts-band { grid-template-columns: repeat(2, 1fr); }.facts-band > div:nth-child(even) { border-right: 0; }.ai-session-heading { align-items: stretch; flex-direction: column; }.ai-session-controls { min-width: 0; width: 100%; flex-wrap: wrap; }.ai-session-controls label { width: 100%; min-width: 0; order: 2; flex-basis: 100%; }.ai-session-stream { max-height: 520px; padding-left: 10px; padding-right: 10px; }.ai-session-composer { padding: 10px; }.project-row { grid-template-columns: 70px 1fr; }.project-row label:last-child { grid-column: 1 / -1; }.setup-shell { margin: 18px auto; }.form-section { padding: 16px; }.ones-empty-config { align-items: flex-start; flex-wrap: wrap; padding: 20px; }.ones-empty-config .button { margin-left: 0; }.ones-filter-bar { grid-template-columns: 1fr 1fr; }.ones-filter-bar .ones-search { grid-column: 1 / -1; }.ones-list-toolbar { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 8px; padding-bottom: 8px; }.ones-table th:nth-child(3), .ones-table td:nth-child(3), .ones-table th:nth-child(5), .ones-table td:nth-child(5), .ones-table th:nth-child(6), .ones-table td:nth-child(6) { display: none; }.ones-table th:first-child, .ones-table td:first-child { width: auto; min-width: 190px; }.ones-title-row { flex-direction: column; }.ones-title-row h1 { font-size: 21px; }.ones-detail-layout { grid-template-columns: 1fr; }.ones-side-column { order: -1; }.ones-comment-form { grid-template-columns: 1fr; }.ones-comment-form .button { justify-self: end; }.ones-property-list > div { grid-template-columns: 82px minmax(0,1fr); } }

/* Shared application polish and MR workspace */
:root {
  --surface: #ffffff;
  --surface-subtle: #f8fafb;
  --surface-raised: #ffffff;
  --ink: #17212b;
  --ink-soft: #3f4d5a;
  --border: #dbe1e6;
  --border-strong: #c5ced6;
  --muted: #66727e;
  --blue: #28657f;
  --blue-soft: #eaf3f7;
  --green: #237451;
  --green-soft: #edf8f2;
  --red: #b13a32;
  --red-soft: #fff2f0;
  --amber: #98610d;
  --amber-soft: #fff7e8;
  color: var(--ink);
  background: #f3f5f7;
}

html { scrollbar-gutter: stable; }
body { color: var(--ink); background: #f3f5f7; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(40, 101, 127, .22);
  outline-offset: 2px;
}

.topbar {
  height: 64px;
  padding: 0 24px;
  gap: 28px;
  border-bottom-color: #d8dee4;
  box-shadow: 0 1px 3px rgba(24, 34, 48, .04);
}
.brand { gap: 9px; font-size: 15px; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #243d4a;
  box-shadow: inset 0 -3px 0 #e66a3c;
  font-size: 10px;
}
.topbar nav { gap: 2px; }
.nav-link { gap: 7px; padding: 0 12px; font-size: 13px; font-weight: 550; }
.nav-link svg { width: 15px; height: 15px; }
.nav-link:hover { background: #f8fafb; }
.nav-link.active { color: #1d566f; background: #f4f8fa; }
.user-menu { gap: 7px; }
.role-badge { border-radius: 4px; background: #f7f9fa; text-transform: capitalize; }
.page-shell { width: min(1440px, 100%); padding: 30px 28px 42px; }

.button, .icon-button { transition: border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.button:hover, .icon-button:hover { border-color: #8d99a4; box-shadow: 0 1px 2px rgba(24, 34, 48, .06); }
.button.primary, .icon-button.primary { border-color: #28657f; background: #28657f; }
.button.primary:hover, .icon-button.primary:hover { border-color: #1f5269; background: #1f5269; }
.copy-trigger.copy-success { color: #1f6a48; border-color: #afd5c2; background: var(--green-soft); }
.ones-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.ones-table th:last-child, .ones-table td:last-child { width: 82px; }
.button svg, .icon-button svg { flex: 0 0 auto; }
input, select, textarea { border-color: #c9d1d8; background: #fff; }
input:hover, select:hover, textarea:hover { border-color: #9aa6b1; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(40, 101, 127, .14); border-color: #39758e; }

.page-heading { margin-bottom: 22px; }
.page-heading h1 { color: #17212b; font-size: 26px; font-weight: 720; }
.eyebrow { margin-bottom: 7px; color: #4c7081; font-size: 11px; }
.table-section, .timeline-section, .form-section, .metrics-band {
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(24, 34, 48, .025);
}
.panel-heading { min-height: 54px; height: auto; }
.panel-heading h2, .section-heading h2 { color: #24313c; }
.panel-title { min-width: 0; display: flex; align-items: center; gap: 10px; }
.panel-title > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 6px; color: #315f74; background: #eaf2f5; }
.panel-title > span svg { width: 16px; height: 16px; }
.panel-title h2 { margin: 0; }
.panel-title small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.empty-state:not(td) { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.empty-state svg { width: 26px; height: 26px; color: #8d99a4; }
.empty-state strong { color: #3f4d5a; font-size: 14px; }
.empty-state span { color: var(--muted); font-size: 12px; }

.status-pill { gap: 5px; white-space: nowrap; font-weight: 650; }
.status-pill svg, .pipeline-status svg { width: 13px; height: 13px; }
.status-running svg, .status-queued svg, .pipeline-running svg, .pipeline-pending svg { animation: status-spin 1.4s linear infinite; }
@keyframes status-spin { to { transform: rotate(360deg); } }
.status-completed { color: #1f6a48; border-color: #afd5c2; background: var(--green-soft); }
.status-needs_human, .status-failed { color: #a6312a; border-color: #edb9b4; background: var(--red-soft); }
.status-running, .status-queued { color: #245f79; border-color: #b8d3df; background: #edf6fa; }
.status-idle, .status-cancelled { color: #66727e; border-color: #d5dce2; background: #f6f8f9; }
.pipeline-status { display: inline-flex; align-items: center; gap: 5px; color: #5c6873; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pipeline-success, .pipeline-passed { color: var(--green); }
.pipeline-failed { color: var(--red); }
.pipeline-running, .pipeline-pending { color: var(--blue); }
.pipeline-canceled, .pipeline-cancelled, .pipeline-skipped { color: var(--muted); }

.mr-list-heading { margin-bottom: 18px; }
.mr-summary-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  overflow: hidden;
}
.mr-summary-band > div { min-width: 0; padding: 14px 17px; border-right: 1px solid #e5e9ed; }
.mr-summary-band > div:last-child { border-right: 0; }
.mr-summary-band span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.mr-summary-band strong { color: #27343f; font-size: 22px; line-height: 1; }
.mr-summary-band strong.active { color: var(--blue); }
.mr-summary-band strong.attention { color: var(--amber); }
.mr-summary-band strong.danger { color: var(--red); }

.filter-bar.mr-filter-bar {
  grid-template-columns: minmax(240px, 1.7fr) minmax(160px, 1.15fr) minmax(145px, .85fr) minmax(120px, .72fr) minmax(145px, .85fr) auto;
  gap: 10px;
  padding: 13px 14px;
  margin-bottom: 14px;
  border-radius: 7px;
}
.mr-filter-bar label { gap: 4px; }
.mr-filter-bar input, .mr-filter-bar select { min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
.input-with-icon { position: relative; }
.input-with-icon > svg { position: absolute; left: 10px; top: 50%; width: 15px; height: 15px; color: #7c8893; transform: translateY(-50%); pointer-events: none; }
.input-with-icon input { padding-left: 32px; }
.filter-actions { display: flex; align-items: center; gap: 6px; }
.filter-actions .button { min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
.mr-list-section { overflow: hidden; }
.mr-list-toolbar { min-height: 42px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); background: #fafbfc; }
.mr-list-toolbar strong { color: #34414d; font-size: 12px; }
.mr-list-toolbar span { color: var(--muted); font-size: 11px; }

.mr-table { min-width: 1160px; table-layout: fixed; }
.mr-table th { height: 38px; padding: 9px 12px; color: #6a7681; background: #fff; font-size: 10px; font-weight: 700; }
.mr-table th:nth-child(1) { width: 28%; }
.mr-table th:nth-child(2) { width: 20%; }
.mr-table th:nth-child(3) { width: 12%; }
.mr-table th:nth-child(4) { width: 12%; }
.mr-table th:nth-child(5) { width: 10%; }
.mr-table th:nth-child(6) { width: 11%; }
.mr-table th:nth-child(7) { width: 112px; }
.mr-table td { height: 76px; padding: 12px; vertical-align: middle; }
.mr-table .mr-row, .mr-table .mr-row.mr-processed, .mr-table .mr-row.mr-unprocessed { background: #fff; }
.mr-table .mr-row:hover, .mr-table .mr-row.mr-processed:hover, .mr-table .mr-row.mr-unprocessed:hover { background: #f9fbfc; }
.mr-table .mr-row > td:first-child { box-shadow: inset 3px 0 0 #aab5be; }
.mr-table .mr-row.mr-processed > td:first-child { box-shadow: inset 3px 0 0 #70ad8f; }
.mr-table .mr-row.mr-attention > td:first-child { box-shadow: inset 3px 0 0 #d49a3a; }
.mr-table .mr-row.mr-critical > td:first-child { box-shadow: inset 3px 0 0 #d1433b; }
.mr-title-line { min-width: 0; display: flex; align-items: flex-start; gap: 8px; }
.mr-iid-link { min-width: 44px; padding: 2px 6px; flex: 0 0 auto; border: 1px solid #c9d8df; border-radius: 4px; color: #2c6076; background: #f0f6f8; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; font-weight: 700; text-align: center; }
.mr-title { min-width: 0; max-width: none; color: #1d2933; line-height: 1.38; }
.mr-title:hover { color: #1f617c; }
.mr-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding-left: 52px; margin-top: 6px; }
.mr-byline > svg { width: 12px; height: 12px; }
.mr-state { display: inline-flex; align-items: center; min-height: 20px; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.mr-state-opened { color: #206a48; background: #eaf6f0; }
.mr-state-closed { color: #66727e; background: #edf0f2; }
.mr-byline .processing-label { min-height: 20px; display: inline-flex; align-items: center; margin-left: 0; padding: 1px 6px; border: 0; border-radius: 4px; font-size: 10px; font-weight: 650; }
.mr-byline .processing-label.processed { color: #25684a; background: #edf7f2; }
.mr-byline .processing-label.unprocessed { color: #85520a; background: #fff3dc; }
.mr-risk-label { min-height: 20px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border: 1px solid transparent; border-radius: 4px; font-size: 10px; font-weight: 750; line-height: 1.2; white-space: nowrap; }
.mr-risk-label svg { width: 11px; height: 11px; }
.mr-risk-label.risk-comments { color: #8a5000; border-color: #e8b64d; background: #fff0bd; }
.mr-risk-label.risk-test { color: #a02d25; border-color: #e88c83; background: #ffe5e1; }
.mr-risk-label.risk-draft { color: #6d5500; border-color: #e0c44f; background: #fff7bd; }
.mr-risk-label.risk-conflict { color: #8b2459; border-color: #dd83b1; background: #fde4f1; }
.paused-label { min-height: 20px; display: inline-flex; align-items: center; gap: 3px; margin-left: 0; padding: 1px 6px; border: 0; border-radius: 4px; color: #85520a; background: #fff2d8; font-size: 10px; }
.paused-label svg { width: 11px; height: 11px; }
.mr-project-cell > strong { display: block; color: #35434f; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.branch { display: flex; align-items: center; gap: 5px; max-width: none; }
.branch svg { width: 12px; height: 12px; flex: 0 0 auto; }
.branch svg:nth-of-type(2) { width: 10px; }
.review-count { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.review-count strong { color: #293742; font-size: 13px; }
.review-count span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.review-count.unresolved-review strong, .review-count.unresolved-review span { color: #995800; }
.review-progress { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 3px; background: #e8ecef; }
.review-progress > span { display: block; height: 100%; border-radius: inherit; background: #3d9068; transition: width .2s ease; }
.mr-attention .review-progress > span { background: #d19632; }
.attempt-count { margin-top: 5px; }
.activity-time { color: #54616d; font-size: 11px; }
.processed-at, .not-processed { color: inherit; }
.row-actions { min-width: 0; justify-content: flex-end; }
.icon-button.table-action { color: #55636e; }
.icon-button.table-action:hover { color: #204f64; background: #fff; }
.mr-table td.empty-state { height: 250px; color: var(--muted); }
.mr-table td.empty-state > * { display: block; margin: 5px auto; }

.mr-detail-header { padding-bottom: 20px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.mr-breadcrumb { min-height: 26px; display: flex; align-items: center; gap: 5px; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.mr-breadcrumb a { display: inline-flex; align-items: center; gap: 5px; }
.mr-breadcrumb svg { width: 13px; height: 13px; }
.mr-detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.mr-detail-title { min-width: 0; }
.mr-detail-kicker { min-height: 24px; display: flex; align-items: center; gap: 6px; }
.mr-iid-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border: 1px solid #bfd2da; border-radius: 4px; color: #285c72; background: #eef5f8; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; font-weight: 700; }
.mr-detail-title h1 { max-width: 950px; margin: 8px 0 9px; color: #17212b; font-size: 27px; line-height: 1.32; overflow-wrap: anywhere; }
.mr-detail-meta { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.mr-detail-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.mr-detail-meta svg { width: 14px; height: 14px; }
.mr-detail-meta code { padding: 2px 5px; border-radius: 3px; color: #40505c; background: #edf1f3; overflow-wrap: anywhere; }
.branch-route svg:last-of-type { width: 11px; }
.mr-detail-actions { flex: 0 0 auto; padding-top: 25px; }
.mr-detail-actions form { margin: 0; }
.mr-paused-notice { margin: 0 0 14px; align-items: center; }
.mr-paused-notice svg { width: 17px; height: 17px; }

.mr-overview-band {
  display: grid;
  grid-template-columns: minmax(310px, 1.65fr) repeat(4, minmax(125px, .72fr));
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  overflow: hidden;
}
.mr-review-overview { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px 17px; border-right: 1px solid #e4e8eb; }
.overview-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 7px; color: #2a657d; background: #e9f2f6; }
.overview-icon svg { width: 19px; height: 19px; }
.overview-copy { min-width: 0; }
.overview-copy > span, .overview-fact > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.overview-copy strong { color: #2d3a45; font-size: 13px; }
.overview-copy .review-progress { width: min(240px, 100%); }
.pending-count { min-width: 48px; color: #50606c; font-size: 21px; text-align: center; }
.pending-count.has-pending { color: #9a600a; }
.pending-count small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 600; }
.overview-fact { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 13px 14px; border-right: 1px solid #e4e8eb; }
.overview-fact:last-child { border-right: 0; }
.overview-fact strong { color: #34424d; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.overview-fact .status-pill { align-self: flex-start; }

.ai-session-section { overflow: hidden; margin-bottom: 20px; border-radius: 7px; box-shadow: 0 1px 2px rgba(24, 34, 48, .04); }
.ai-session-heading { min-height: 64px; padding: 10px 14px; background: #fff; }
.ai-session-title { min-width: 180px; display: flex; align-items: center; gap: 10px; }
.ai-session-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: #8d4b2e; background: #fceee8; }
.ai-session-icon svg { width: 17px; height: 17px; }
.ai-session-heading .ai-session-title h2 { margin-bottom: 2px; }
.ai-session-heading .ai-session-title div > span { display: block; max-width: 330px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-session-controls { min-width: min(660px, 66%); justify-content: flex-end; }
.ai-session-controls label { min-width: 260px; max-width: 430px; }
.ai-session-controls select { min-height: 34px; padding-top: 5px; padding-bottom: 5px; font-size: 12px; }
.ai-session-view-tabs { order: 2; padding: 2px 4px; margin: 0; border: 1px solid #d5dce2; border-radius: 6px; background: #f5f7f8; }
.ai-session-view-tabs .icon-button { width: 30px; min-height: 28px; }
.ai-session-view-tabs .icon-button.active { background: #fff; box-shadow: 0 1px 2px rgba(24, 34, 48, .1); }
.ai-session-controls > .icon-button { order: 3; }
.ai-session-empty { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.ai-session-empty > span { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 8px; color: #4b7182; background: #edf3f5; }
.ai-session-empty svg { width: 22px; height: 22px; }
.ai-session-empty strong { color: #46545f; font-size: 13px; }
.ai-session-empty small { margin-top: 4px; font-size: 11px; }
.ai-session-stream { min-height: 180px; background: #fff; }
.session-event { margin-left: 3px; padding: 11px 12px; border-bottom-color: #edf0f2; background: #fff; }
.session-event pre { border-radius: 5px; }
.ai-session-runtime { background: #f7f9fa; }
.ai-session-composer { background: #f7f9fa; }

.detail-grid { grid-template-columns: minmax(0, 1.55fr) minmax(310px, .72fr); align-items: start; gap: 18px; }
.discussion-section { border: 0; border-radius: 0; background: transparent; }
.discussion-heading { min-height: 48px; padding: 0 0 10px; border-bottom: 0; }
.discussion-filters { display: flex; padding: 3px; border: 1px solid #d4dbe1; border-radius: 6px; background: #f4f6f7; }
.discussion-filters button { min-height: 28px; padding: 4px 9px; border: 0; border-radius: 4px; color: #66727e; background: transparent; cursor: pointer; font-size: 11px; font-weight: 650; }
.discussion-filters button.active { color: #264f62; background: #fff; box-shadow: 0 1px 2px rgba(24, 34, 48, .1); }
.discussion-filters b { margin-left: 3px; font-size: 10px; }
.discussion-list { padding: 0; }
.discussion {
  overflow: hidden;
  margin: 0 0 10px;
  padding: 0;
  border: 1px solid var(--border);
  border-left: 3px solid #d29a3b;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 34, 48, .025);
}
.discussion.discussion-resolved { border-left-color: #68a887; }
.discussion.is-filtered { display: none; }
.discussion-summary { min-height: 48px; padding: 9px 13px; gap: 12px; border-bottom: 1px solid #e8ecef; background: #fbfcfd; }
.discussion-location { min-width: 0; display: flex; align-items: center; gap: 8px; }
.discussion-location > strong { font-size: 12px; }
.file-icon { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 5px; color: #506e7c; background: #eaf0f3; }
.file-icon svg { width: 14px; height: 14px; }
.code-location { display: inline-flex; align-items: center; gap: 6px; color: #315f73; }
.code-location code { overflow-wrap: anywhere; }
.code-location > svg { width: 12px; height: 12px; flex: 0 0 auto; }
.discussion-state { min-height: 23px; display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 2px 7px; border-radius: 4px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.discussion-state svg { width: 12px; height: 12px; }
.discussion-state.open { color: #8f5809; background: #fff1d6; }
.discussion-state.resolved { color: #1e6746; background: #e9f6ef; }
.discussion-thread { margin: 0; padding: 4px 14px 8px; }
.discussion-note { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; padding: 11px 0; border-left: 0; }
.discussion-note + .discussion-note { border-top-color: #edf0f2; }
.discussion-note.reply { margin-left: 24px; }
.note-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #315b6d; background: #e5eef2; font-size: 10px; font-weight: 700; }
.discussion-note.reply .note-avatar { color: #59636d; background: #edf0f2; }
.note-content { min-width: 0; }
.note-meta { min-height: 23px; justify-content: flex-start; }
.note-meta time { margin-left: auto; }
.discussion-note p { margin: 5px 0 0; color: #303e49; line-height: 1.58; }

.timeline-section { overflow: hidden; border-radius: 7px; background: #fff; }
.timeline-section .panel-heading { padding: 9px 14px; }
.timeline { padding: 16px 14px; }
.timeline-item { grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding-bottom: 16px; }
.timeline-item:before { left: 12px; top: 26px; background: #d7dde2; }
.timeline-marker { width: 26px; height: 26px; display: grid; place-items: center; margin-top: 0; border: 1px solid #cfd6dc; color: #697681; background: #f3f5f6; }
.timeline-marker svg { width: 13px; height: 13px; }
.timeline-marker.status-completed { color: #fff; border-color: #3f8a65; background: #3f8a65; }
.timeline-marker.status-running { color: #fff; border-color: #3a7894; background: #3a7894; }
.timeline-marker.status-needs_human, .timeline-marker.status-failed { color: #fff; border-color: #b14a43; background: #b14a43; }
.timeline-content { padding: 2px 0 14px; }
.timeline-title { align-items: baseline; }
.timeline-title strong { color: #34424d; font-size: 12px; }
.timeline-title time { font-size: 10px; white-space: nowrap; }
.timeline-content p { margin: 7px 0; color: #52606c; font-size: 12px; line-height: 1.5; }
.meta-row { gap: 9px; margin-bottom: 8px; }
.meta-row > span { display: inline-flex; align-items: center; gap: 4px; }
.meta-row svg { width: 13px; height: 13px; }

@media (max-width: 1180px) {
  .filter-bar.mr-filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mr-search-field { grid-column: span 2; }
  .filter-actions { justify-content: flex-end; }
  .mr-overview-band { grid-template-columns: minmax(300px, 1.6fr) repeat(2, minmax(150px, 1fr)); }
  .mr-review-overview { grid-row: span 2; }
  .overview-fact:nth-child(3) { border-right: 0; }
  .overview-fact:nth-child(4), .overview-fact:nth-child(5) { border-top: 1px solid #e4e8eb; }
  .detail-grid { grid-template-columns: minmax(0, 1.35fr) minmax(290px, .75fr); }
}

@media (max-width: 900px) {
  .mr-summary-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mr-summary-band > div { border-bottom: 1px solid #e5e9ed; }
  .mr-summary-band > div:nth-child(3) { border-right: 0; }
  .mr-summary-band > div:nth-child(n+4) { border-bottom: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .mr-detail-title-row { flex-direction: column; }
  .mr-detail-actions { padding-top: 0; }
  .ai-session-heading { align-items: stretch; flex-direction: column; }
  .ai-session-controls { width: 100%; min-width: 0; }
  .ai-session-controls label { max-width: none; }
}

@media (max-width: 760px) {
  .page-shell { padding: 20px 14px 34px; }
  .filter-bar.mr-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mr-search-field { grid-column: 1 / -1; }
  .filter-actions { grid-column: 1 / -1; }
  .mr-list-section { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .mr-list-toolbar { border: 1px solid var(--border); border-radius: 7px; background: #fff; }
  .mr-list-section .table-wrap { overflow: visible; }
  .mr-table, .mr-table tbody { min-width: 0; width: 100%; display: block; }
  .mr-table thead { display: none; }
  .mr-table tbody { display: grid; gap: 10px; margin-top: 10px; }
  .mr-table .mr-row { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--border); border-left: 3px solid #aab5be; border-radius: 7px; background: #fff; box-shadow: 0 1px 2px rgba(24, 34, 48, .03); }
  .mr-table .mr-row.mr-processed { border-left-color: #70ad8f; }
  .mr-table .mr-row.mr-attention { border-left-color: #d49a3a; }
  .mr-table .mr-row.mr-critical { border-left-color: #d1433b; }
  .mr-table .mr-row > td { height: auto; min-width: 0; padding: 10px 12px; border: 0; border-top: 1px solid #edf0f2; box-shadow: none !important; }
  .mr-table .mr-row > td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #7a8690; font-size: 9px; font-weight: 700; text-transform: uppercase; }
  .mr-table .mr-row > td.not-processed::before { content: "最后处理"; }
  .mr-table .mr-row > td.mr-primary-cell { grid-column: 1 / -1; padding-top: 13px; padding-bottom: 12px; border-top: 0; }
  .mr-table .mr-row > td.mr-primary-cell::before { display: none; }
  .mr-table .mr-row > td.mr-project-cell { grid-column: 1 / -1; }
  .mr-table .mr-row > td:last-child { display: flex; align-items: center; justify-content: space-between; }
  .mr-table .mr-row > td:last-child::before { margin: 0; }
  .mr-table .mr-row:hover { background: #fff; }
  .mr-title { font-size: 13px; }
  .mr-byline { padding-left: 52px; }
  .mr-table td.empty-state { display: flex; min-height: 220px; border: 1px solid var(--border); border-radius: 7px; background: #fff; }
  .mr-overview-band { grid-template-columns: 1fr 1fr; }
  .mr-review-overview { grid-column: 1 / -1; grid-row: auto; border-right: 0; border-bottom: 1px solid #e4e8eb; }
  .overview-fact { border-top: 0 !important; }
  .overview-fact:nth-child(3) { border-right: 0; }
  .overview-fact:nth-child(4) { border-top: 1px solid #e4e8eb !important; }
  .overview-fact:nth-child(5) { border-top: 1px solid #e4e8eb !important; border-right: 0; }
  .discussion-heading { align-items: flex-start; }
  .discussion-note.reply { margin-left: 14px; }
  .discussion-summary { align-items: flex-start; }
  .discussion-state { margin-top: 2px; }
}

@media (max-width: 700px) {
  .topbar { padding: 9px 12px 0; gap: 8px 12px; }
  .topbar nav { height: 42px; gap: 0; margin: 0 -12px; padding: 0 8px; border-top: 1px solid #edf0f2; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .nav-link { gap: 6px; padding: 0 9px; }
  .nav-link svg { width: 14px; height: 14px; }
  .page-heading h1, .mr-detail-title h1 { font-size: 22px; }
  .ai-session-title { width: 100%; }
  .ai-session-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; }
  .ai-session-controls label { grid-column: 1 / -1; order: 0; }
  .ai-session-view-tabs { order: 0; }
  .ai-session-controls > .icon-button { order: 0; }
}

@media (max-width: 520px) {
  .mr-summary-band { grid-template-columns: 1fr 1fr; }
  .mr-summary-band > div:nth-child(2), .mr-summary-band > div:nth-child(4) { border-right: 0; }
  .mr-summary-band > div:nth-child(3) { border-right: 1px solid #e5e9ed; }
  .mr-summary-band > div:nth-child(n+4) { border-bottom: 1px solid #e5e9ed; }
  .mr-summary-band > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .filter-bar.mr-filter-bar { grid-template-columns: 1fr; }
  .mr-search-field, .filter-actions { grid-column: auto; }
  .filter-actions .button { flex: 1; }
  .mr-table .mr-row { grid-template-columns: 1fr 1fr; }
  .mr-table .mr-row > td.mr-project-cell, .mr-table .mr-row > td.mr-primary-cell, .mr-table .mr-row > td:last-child { grid-column: 1 / -1; }
  .mr-title-line { flex-direction: column; gap: 6px; }
  .mr-byline { padding-left: 0; flex-wrap: wrap; }
  .mr-detail-actions { width: 100%; }
  .mr-detail-actions .button, .mr-detail-actions form { flex: 1; }
  .mr-detail-actions form .button { width: 100%; }
  .mr-review-overview { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 13px; }
  .overview-icon { width: 34px; height: 34px; }
  .discussion-heading { flex-direction: column; gap: 10px; }
  .discussion-filters { width: 100%; }
  .discussion-filters button { flex: 1; }
  .discussion-summary { flex-direction: column; }
  .discussion-state { margin-left: 34px; }
  .note-meta { align-items: flex-start; flex-direction: column; gap: 2px; }
  .note-meta time { margin-left: 0; white-space: normal; }
}

/* Devflow control-plane visual system */
:root {
  --surface: #ffffff;
  --surface-subtle: #f5f8f9;
  --surface-raised: #ffffff;
  --ink: #17272f;
  --ink-soft: #40515a;
  --border: #d5dfe3;
  --border-strong: #b9c8ce;
  --muted: #68777f;
  --blue: #167a83;
  --blue-soft: #e5f3f2;
  --green: #2f805c;
  --green-soft: #eaf6ef;
  --red: #b43e35;
  --red-soft: #fff0ee;
  --amber: #98610d;
  --amber-soft: #fff4df;
  --coral: #d56345;
  color: var(--ink);
  background: #edf2f4;
}

html { background: #edf2f4; }
body { color: var(--ink); background: #edf2f4; }
a { color: #126d76; }
a:hover { color: #0d555d; }

.topbar {
  min-height: 62px;
  height: 62px;
  padding: 0 22px;
  gap: 24px;
  border-bottom: 1px solid #29434d;
  color: #eaf1f3;
  background: #132a34;
  box-shadow: 0 2px 8px rgba(16, 35, 43, .16);
}
.brand { gap: 10px; color: #f5f8f9; }
.brand:hover { color: #fff; }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; background: transparent; box-shadow: none; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-copy { display: flex; flex-direction: column; justify-content: center; line-height: 1.05; }
.brand-copy strong { font-size: 14px; font-weight: 750; }
.brand-copy small { margin-top: 4px; color: #8fa7b0; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.topbar nav { gap: 3px; }
.nav-link {
  position: relative;
  gap: 7px;
  padding: 0 11px;
  border: 0;
  color: #b8c7cc;
  font-size: 12px;
  font-weight: 600;
}
.nav-link::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 2px; background: transparent; }
.nav-link svg { width: 15px; height: 15px; }
.nav-link:hover { color: #f4f8f9; border: 0; background: #19343f; }
.nav-link.active { color: #fff; border: 0; background: #1b3742; }
.nav-link.active::after { background: #6dd0c6; }
.user-menu { gap: 8px; }
.username { color: #d7e2e5; font-size: 12px; }
.role-badge { gap: 5px; border-color: #3b5660; border-radius: 4px; color: #b9d7d4; background: #1c3741; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.role-badge svg { width: 12px; height: 12px; }
.topbar .icon-button { color: #b9c8ce; background: transparent; }
.topbar .icon-button:hover { border-color: #46616b; color: #fff; background: #1d3944; }

.page-shell { width: min(1440px, 100%); padding: 26px 28px 44px; }
.page-heading { align-items: center; margin-bottom: 20px; }
.page-heading h1 { margin-bottom: 5px; color: #14262e; font-size: 25px; font-weight: 760; }
.page-heading p, .section-heading p { color: #68777f; }
.eyebrow { margin-bottom: 6px; color: #167a83; font-size: 10px; font-weight: 800; }

.portal-heading { padding: 6px 0 2px; margin-bottom: 18px; }
.portal-heading h1 { font-size: 28px; }
.portal-grid { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 12px; max-width: 1180px; }
.portal-entry {
  min-height: 118px;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  gap: 15px;
  padding: 20px;
  border-color: #d2dde1;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(25, 47, 56, .035);
}
.portal-entry:hover { border-color: #96adb5; box-shadow: 0 7px 18px rgba(25, 47, 56, .09); transform: translateY(-1px); }
.portal-icon { width: 44px; height: 44px; border-radius: 7px; }
.portal-icon svg { width: 22px; height: 22px; }
.portal-hapi .portal-icon { color: #116b75; background: #e2f2f2; }
.portal-gitlab .portal-icon { color: #b04930; background: #fbece7; }
.portal-codex .portal-icon { color: #2d6f56; background: #e8f4ed; }
.portal-configure .portal-icon { color: #5e6f77; background: #eef2f4; }
.portal-copy { gap: 5px; }
.portal-copy strong { color: #1a2c34; font-size: 17px; line-height: 1.25; }
.portal-copy small { color: #6a7981; font-size: 11px; }
.portal-arrow { width: 17px; height: 17px; color: #84949b; }
.portal-shortcuts { gap: 5px; max-width: 1180px; padding-top: 13px; margin-top: 15px; }
.portal-shortcuts a { min-height: 34px; padding: 6px 9px; border-radius: 5px; font-size: 12px; }
.portal-shortcuts a:hover { background: #fff; box-shadow: 0 1px 2px rgba(25, 47, 56, .05); }

.button, .icon-button { border-color: #c7d2d7; border-radius: 5px; color: #35464e; box-shadow: none; }
.button:hover, .icon-button:hover { border-color: #8fa3ab; background: #f7f9fa; box-shadow: none; }
.button.primary, .icon-button.primary { border-color: #167a83; background: #167a83; }
.button.primary:hover, .icon-button.primary:hover { border-color: #0f6068; background: #0f6068; }

.table-section, .timeline-section, .form-section, .metrics-band,
.ones-list-section, .ones-description-section, .ones-activity-section, .ones-properties-section, .ones-hapi-section {
  border-color: #d4dfe3;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(25, 47, 56, .045);
}
.panel-heading { min-height: 52px; border-bottom-color: #e1e7ea; background: #fbfcfc; }
.panel-heading h2, .section-heading h2 { color: #263840; font-size: 14px; }
.panel-title > span { color: #116c75; background: #e3f2f2; }
.panel-title > span:has([data-lucide="git-pull-request-arrow"]) { color: #2d7155; background: #e8f4ed; }
.panel-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 650; }
.panel-link svg { width: 13px; height: 13px; }

.metrics-band { overflow: hidden; border-top: 3px solid #167a83; }
.metric { padding: 15px 16px; border-right-color: #e1e7ea; }
.metric span, .facts-band span { margin-bottom: 6px; color: #718087; font-size: 10px; font-weight: 650; }
.metric strong { color: #21343c; font-family: "SFMono-Regular", Consolas, monospace; font-size: 22px; }

th { color: #68777f; background: #f5f8f9; font-size: 10px; font-weight: 750; }
th, td { border-bottom-color: #e4eaec; }
tbody tr:hover { background: #f7fafb; }
.mr-table th { color: #65757d; background: #f5f8f9; }
.mr-table .mr-row:hover, .mr-table .mr-row.mr-processed:hover, .mr-table .mr-row.mr-unprocessed:hover { background: #f6f9fa; }
.mr-iid-link { border-color: #bdd5d8; color: #126c75; background: #eaf5f4; }
.mr-title:hover { color: #106973; }
.review-progress > span { background: #2f805c; }

.filter-bar, .ones-filter-bar { border-color: #d4dfe3; border-radius: 7px; box-shadow: 0 1px 2px rgba(25, 47, 56, .035); }
label > span { color: #52636b; font-size: 11px; }
input, select, textarea { border-color: #c7d3d7; border-radius: 5px; color: #1c2e36; background: #fff; }
input:hover, select:hover, textarea:hover { border-color: #91a7ae; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(22, 122, 131, .14); border-color: #167a83; }
.form-section { padding: 19px 20px; }
.section-heading { padding-bottom: 12px; margin-bottom: 17px; border-bottom: 1px solid #e3e9eb; }
.sticky-actions { border-color: #cbd7db; background: rgba(237, 242, 244, .95); }
.security-note { color: #2c7455; }

.status-completed { color: #256c4d; border-color: #afd4c0; background: #eaf6ef; }
.status-needs_human, .status-failed { color: #a8362e; border-color: #eab7b2; background: #fff0ee; }
.status-running, .status-queued { color: #106c76; border-color: #acd3d5; background: #e8f5f4; }
.status-idle, .status-cancelled { color: #617179; border-color: #d1dadd; background: #f3f6f7; }
.notice { border-radius: 6px; }
.notice.warning { color: #79500d; border-color: #e7c98e; background: #fff5df; }
.notice.danger { color: #9f352e; border-color: #e9b9b4; background: #fff0ee; }
.notice.success { color: #286c4e; border-color: #acd2bd; background: #eaf6ef; }

.ones-status { border-radius: 4px; }
.ones-key { color: #126f78; background: #e7f4f3; }
.ones-person b { color: #126d76; background: #e4f2f2; }
.ones-link-state.linked { color: #2b7555; background: #eaf6ef; }
.copy-trigger.copy-success { color: #256c4d; border-color: #a9d2bb; background: #eaf6ef; }

.setup-body { min-height: 100vh; padding: 28px 18px; background: #e9eff1; }
.setup-shell, .login-shell { margin: 0 auto; }
.setup-shell { width: min(980px, 100%); }
.login-shell { width: min(430px, 100%); }
.setup-header {
  min-height: 88px;
  padding: 20px 22px;
  border: 1px solid #29434d;
  border-radius: 8px 8px 0 0;
  color: #eef4f5;
  background: #132a34;
}
.setup-header .brand-mark { width: 42px; height: 42px; }
.setup-header h1 { color: #fff; font-size: 19px; }
.setup-header p { color: #9db1b8; }
.login-shell .login-form { border-top: 0; border-radius: 0 0 8px 8px; box-shadow: 0 8px 24px rgba(25, 47, 56, .12); }
.login-form .button { min-height: 40px; }

@media (max-width: 1120px) {
  .topbar { gap: 15px; padding-left: 16px; padding-right: 16px; }
  .brand-copy small { display: none; }
  .nav-link { padding-left: 8px; padding-right: 8px; }
  .nav-link::after { left: 8px; right: 8px; }
  .username { display: none; }
}

@media (max-width: 700px) {
  .topbar { min-height: 108px; height: auto; padding: 9px 12px 0; gap: 8px 12px; background: #132a34; }
  .brand { min-height: 40px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-copy { display: none; }
  .topbar nav { height: 46px; margin: 0 -12px; padding: 0 8px; border-top: 1px solid #29434d; background: #17313b; }
  .nav-link { min-height: 45px; gap: 5px; padding: 0 9px; color: #b8c7cc; }
  .nav-link::after { left: 9px; right: 9px; }
  .nav-link:hover, .nav-link.active { color: #fff; background: #1b3742; }
  .page-shell { padding: 20px 14px 34px; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-entry { min-height: 104px; padding: 16px; }
  .metrics-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 82px; }
  .setup-body { padding: 16px 12px; }
  .setup-header { padding: 17px; }
}

@media (max-width: 430px) {
  .nav-link { padding-left: 8px; padding-right: 8px; }
  .nav-link svg { display: none; }
  .page-heading h1 { font-size: 22px; }
  .portal-heading h1 { font-size: 24px; }
}

/* Devflow engineering control-plane theme */
:root {
  --canvas: #eef2f4;
  --surface: #ffffff;
  --surface-subtle: #f5f8f9;
  --surface-strong: #e8eef0;
  --ink: #17262e;
  --ink-soft: #40535d;
  --muted: #657680;
  --border: #d5dfe3;
  --border-strong: #b9c8ce;
  --blue: #167b83;
  --blue-soft: #e6f4f3;
  --green: #348365;
  --green-soft: #eaf6ef;
  --red: #b84a3a;
  --red-soft: #fff0ed;
  --amber: #9b6818;
  --amber-soft: #fff5df;
  --coral: #d66146;
  color: var(--ink);
  background: var(--canvas);
}

html { background: var(--canvas); }
body { min-height: 100vh; color: var(--ink); background: var(--canvas); }
a { color: #116d75; }

.topbar {
  min-height: 62px;
  height: 62px;
  padding: 0 22px;
  gap: 24px;
  border-bottom: 1px solid #29414b;
  color: #f2f7f8;
  background: #132a34;
  box-shadow: 0 3px 12px rgba(13, 30, 37, .16);
}
.brand { min-width: 174px; gap: 10px; color: #f6fafb; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid #38515b;
  border-radius: 8px;
  background: #132a34;
  box-shadow: none;
}
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 15px; font-weight: 720; }
.brand-copy small { margin-top: 5px; color: #8eacb5; font-size: 8px; font-weight: 700; }
.topbar nav { gap: 3px; }
.nav-link {
  position: relative;
  gap: 7px;
  min-height: 38px;
  align-self: center;
  padding: 0 11px;
  border: 0;
  border-radius: 5px;
  color: #b8c9cf;
  font-size: 12px;
  font-weight: 600;
}
.nav-link::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 2px;
  left: 11px;
  height: 2px;
  background: transparent;
}
.nav-link:hover { color: #fff; border: 0; background: #1d3943; }
.nav-link.active { color: #fff; border: 0; background: #203d47; }
.nav-link.active::after { background: #6dd0c6; }
.nav-link svg { width: 15px; height: 15px; }
.user-menu { gap: 8px; }
.user-menu form { display: flex; margin: 0; }
.topbar .role-badge {
  min-height: 24px;
  border-color: #3e5660;
  color: #bcd0d5;
  background: #1b333d;
}
.topbar .username { color: #e6eef0; font-size: 12px; }
.topbar .icon-button { color: #b9cbd0; background: transparent; }
.topbar .icon-button:hover { color: #fff; border-color: #48636d; background: #203d47; }

.page-shell { width: min(1440px, 100%); padding: 26px 26px 42px; }
.page-heading { align-items: center; margin-bottom: 20px; }
.page-heading h1 { margin-bottom: 5px; color: #14242c; font-size: 25px; font-weight: 730; }
.page-heading p { color: #687983; font-size: 12px; }
.eyebrow { margin-bottom: 6px; color: #14737a; font-size: 10px; font-weight: 760; }

.button, .icon-button {
  border-color: #c4d0d5;
  color: #304650;
  background: #fff;
  box-shadow: none;
}
.button:hover, .icon-button:hover { border-color: #8ea3ac; color: #173b43; background: #f8fafb; }
.button.primary, .icon-button.primary { border-color: #167b83; color: #fff; background: #167b83; }
.button.primary:hover, .icon-button.primary:hover { border-color: #11666d; color: #fff; background: #11666d; }
.button:active, .icon-button:active { transform: translateY(1px); }

.table-section, .timeline-section, .form-section, .metrics-band,
.ones-list-section, .ones-description-section, .ones-activity-section, .ones-properties-section, .ones-hapi-section {
  border-color: var(--border);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 2px 7px rgba(27, 47, 56, .045);
}
.panel-heading, .ones-section-heading {
  min-height: 54px;
  border-bottom-color: #e1e8eb;
  background: #fbfcfc;
}
.panel-title > span { color: #146f77; background: #e5f3f2; }
.panel-title h2, .section-heading h2 { color: #20343d; }
.panel-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; }
.panel-link svg { width: 14px; height: 14px; }

.portal-heading { max-width: 1180px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.portal-grid { max-width: 1180px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-entry {
  min-height: 122px;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  gap: 14px;
  padding: 20px;
  border-color: var(--border);
  border-radius: 7px;
  box-shadow: 0 2px 7px rgba(27, 47, 56, .045);
}
.portal-entry:hover { border-color: #92a9b1; box-shadow: 0 7px 16px rgba(27, 47, 56, .09); transform: translateY(-1px); }
.portal-icon { width: 44px; height: 44px; border-radius: 7px; }
.portal-icon svg { width: 22px; height: 22px; }
.portal-copy { gap: 5px; }
.portal-copy strong { color: #1b2d35; font-size: 17px; }
.portal-copy small { font-size: 11px; }
.portal-hapi { border-top: 3px solid #167b83; }
.portal-hapi .portal-icon { color: #126d75; background: #e5f3f2; }
.portal-gitlab { border-top: 3px solid #d66146; }
.portal-gitlab .portal-icon { color: #b34c35; background: #faece8; }
.portal-codex { border-top: 3px solid #348365; }
.portal-codex .portal-icon { color: #2c7358; background: #e8f4ed; }
.portal-configure { border-top: 3px solid #8799a1; }
.portal-shortcuts { max-width: 1180px; margin-top: 14px; padding-top: 14px; }
.portal-shortcuts a { border-radius: 5px; font-size: 12px; font-weight: 600; }
.portal-shortcuts a:hover { color: #126d75; background: #fff; }

.metrics-band, .mr-summary-band, .mr-overview-band { border-color: var(--border); border-radius: 7px; box-shadow: 0 2px 7px rgba(27, 47, 56, .04); }
.metric { padding: 15px 16px; border-right-color: #e2e9eb; }
.metric span, .facts-band span { color: #6c7d86; font-size: 10px; font-weight: 650; text-transform: uppercase; }
.metric strong { color: #20343d; font-size: 22px; font-weight: 720; }
.metric strong.status-running { color: #14777f; }
.metric strong.status-failed { color: #b64b3b; }

.filter-bar, .ones-filter-bar { border-color: var(--border); border-radius: 7px; box-shadow: 0 2px 7px rgba(27, 47, 56, .035); }
label > span { color: #455a64; font-size: 11px; font-weight: 680; }
input, select, textarea { border-color: #c4d0d5; color: #1c3039; background: #fff; }
input:hover, select:hover, textarea:hover { border-color: #93a7af; }
input:focus, select:focus, textarea:focus { border-color: #248b92; outline: 3px solid rgba(22, 123, 131, .14); }
input::placeholder, textarea::placeholder { color: #98a6ad; }

th { color: #61727b; background: #f3f6f7; }
th, td { border-bottom-color: #e3eaec; }
tbody tr:hover { background: #f6fafa; }
.mr-table th { color: #61727b; background: #f3f6f7; }
.mr-table .mr-row:hover, .mr-table .mr-row.mr-processed:hover, .mr-table .mr-row.mr-unprocessed:hover { background: #f5f9f9; }
.mr-iid-link { border-color: #b9d6d5; color: #116a71; background: #e9f5f4; }
.mr-title:hover { color: #0f6f76; }
.review-progress > span { background: #348365; }
.mr-attention .review-progress > span { background: #c78325; }
.mr-list-toolbar, .ones-list-toolbar { border-bottom-color: #e0e7e9; background: #fafcfc; }

.form-section { padding: 20px 22px; }
.section-heading { padding-bottom: 13px; margin-bottom: 17px; border-bottom: 1px solid #e4eaec; }
.section-heading h2 { margin-bottom: 4px; font-size: 14px; }
.section-heading p { font-size: 11px; }
.settings-form { gap: 14px; }
.sticky-actions { border-color: #afc2c8; background: rgba(247, 250, 250, .97); box-shadow: 0 6px 20px rgba(27, 47, 56, .11); }
.security-note { color: #2e765b; }
.toggle { min-height: 36px; justify-content: center; }
.toggle input { accent-color: #167b83; }
.notice { border-radius: 6px; }
.notice.success { border-color: #aed5bf; background: #edf8f1; }
.notice.warning { border-color: #e3c27d; background: #fff6e4; }
.notice.danger { border-color: #e4b0a8; background: #fff1ef; }

.setup-body { color: var(--ink); background: #e8eef0; }
.setup-shell { width: min(920px, calc(100% - 32px)); margin: 34px auto; }
.setup-header {
  min-height: 86px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 1px solid #29434d;
  border-radius: 8px;
  color: #f3f8f9;
  background: #132a34;
  box-shadow: 0 8px 24px rgba(19, 42, 52, .14);
}
.setup-header .brand-mark { flex: 0 0 auto; }
.setup-header h1 { color: #fff; font-size: 20px; }
.setup-header p { color: #a9bec5; font-size: 12px; }
.login-shell { width: min(440px, calc(100% - 32px)); margin-top: 10vh; }
.login-shell .setup-header { margin-bottom: 0; border-radius: 8px 8px 0 0; }
.login-form { padding: 22px; border-top: 0; border-radius: 0 0 8px 8px; }
.login-form .button { min-height: 40px; }

@media (max-width: 1120px) {
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand { min-width: 150px; }
  .topbar { gap: 14px; }
  .nav-link { padding-right: 8px; padding-left: 8px; }
}

@media (max-width: 900px) {
  .topbar { padding-right: 12px; padding-left: 12px; gap: 8px; }
  .brand { min-width: 0; }
  .brand-copy { display: none; }
  .topbar nav { min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .nav-link { flex: 0 0 auto; white-space: nowrap; }
  .topbar .username { display: none; }
}

@media (max-width: 760px) {
  .portal-grid { grid-template-columns: 1fr; }
  .portal-entry { min-height: 106px; }
}

@media (max-width: 700px) {
  .topbar { min-height: 102px; height: auto; padding: 9px 12px 0; background: #132a34; }
  .brand { min-width: 0; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-copy { display: none; }
  .topbar nav { order: 3; width: calc(100% + 24px); height: 44px; flex: 0 0 calc(100% + 24px); margin: 0 -12px; padding: 0 8px; border-top-color: #29414b; background: #132a34; }
  .nav-link { min-height: 36px; color: #adbec4; }
  .nav-link:hover, .nav-link.active { color: #fff; background: #203d47; }
  .page-shell { padding: 20px 12px 34px; }
  .page-heading { align-items: flex-start; }
  .portal-heading { padding-bottom: 14px; }
  .portal-entry { padding: 16px; }
  .metrics-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 82px; border-bottom: 1px solid #e2e9eb; }
  .form-section { padding: 16px; }
  .setup-header { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* GitLab sync status bar shared by MR pages. */
.gitlab-sync-bar {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #c9d9dc;
  border-left: 3px solid #287985;
  border-radius: 6px;
  background: #f7fbfb;
}
.gitlab-sync-bar.sync-completed { border-left-color: #348365; }
.gitlab-sync-bar.sync-failed { border-color: #e8b9b3; border-left-color: #b84a3a; background: #fff5f3; }
.gitlab-sync-bar.sync-running .sync-icon svg { animation: status-spin 1.4s linear infinite; }
.sync-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 6px; color: #196c76; background: #e4f2f3; }
.sync-icon svg { width: 16px; height: 16px; }
.sync-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 2px; }
.sync-copy strong { color: #20343d; font-size: 12px; }
.sync-copy span, .sync-copy small { color: #657680; font-size: 11px; overflow-wrap: anywhere; }
.sync-copy small { color: var(--red); }
.gitlab-sync-bar > .status-pill { flex: 0 0 auto; }

.panel-actions { display: flex; align-items: center; gap: 12px; }
.count-badge { min-width: 34px; display: inline-flex; justify-content: center; padding: 3px 8px; border-radius: 999px; color: #176b74 !important; background: #e5f3f3; font-size: 11px !important; font-weight: 700; }

.filter-bar.mr-filter-bar {
  grid-template-columns: minmax(220px, 1.55fr) repeat(5, minmax(120px, 1fr));
}

@media (max-width: 1200px) {
  .filter-bar.mr-filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .gitlab-sync-bar { align-items: flex-start; flex-wrap: wrap; }
  .gitlab-sync-bar > .status-pill { margin-left: 44px; }
  .panel-actions { gap: 8px; }
  .filter-bar.mr-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .panel-heading { padding-right: 12px; padding-left: 12px; }
  .count-badge { display: none; }
  .filter-bar.mr-filter-bar { grid-template-columns: 1fr; }
}

/* ONES work item detail: complete properties with a dedicated activity rail. */
.ones-detail-header-v2 { padding-bottom: 0; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 7px; background: #fff; box-shadow: 0 2px 7px rgba(27, 47, 56, .04); }
.ones-detail-header-v2 .ones-breadcrumb { min-height: 38px; padding: 0 18px; border-bottom: 1px solid #e4eaec; background: #fafcfc; }
.ones-detail-header-v2 .ones-title-row { padding: 18px; }
.ones-title-copy { min-width: 0; }
.ones-title-copy .ones-type-label { gap: 5px; }
.ones-title-copy .ones-type-label svg { width: 13px; height: 13px; }
.ones-detail-header-v2 .ones-title-row h1 { margin-top: 8px; color: #1b2d35; font-size: 22px; }
.ones-glance { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #e2e8ea; background: #fbfcfc; }
.ones-glance > div { min-width: 0; min-height: 70px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 11px 16px; border-right: 1px solid #e2e8ea; }
.ones-glance > div:last-child { border-right: 0; }
.ones-glance span { min-width: 0; display: flex; align-items: center; gap: 6px; color: #6b7c84; font-size: 10px; font-weight: 680; }
.ones-glance span svg { width: 13px; height: 13px; }
.ones-glance strong { min-width: 0; color: #20343d; font-size: 13px; overflow-wrap: anywhere; }
.ones-glance-status-in_progress { color: #246b87 !important; }
.ones-glance-status-done, .ones-glance-status-completed { color: #287356 !important; }
.ones-glance-status-canceled, .ones-glance-status-cancelled { color: #af4236 !important; }

.ones-detail-v2 { grid-template-columns: minmax(0, 1fr) minmax(350px, 390px); gap: 20px; }
.ones-detail-v2 .ones-main-column { gap: 16px; }
.ones-detail-v2 .ones-detail-section, .ones-activity-panel { overflow: hidden; border: 1px solid var(--border); border-radius: 7px; background: #fff; box-shadow: 0 2px 7px rgba(27, 47, 56, .04); }
.ones-detail-v2 .ones-section-heading { min-height: 50px; background: #fafcfc; }
.ones-detail-v2 .ones-section-heading h2 { display: flex; align-items: center; gap: 7px; color: #20343d; font-size: 13px; }
.ones-detail-v2 .ones-section-heading h2 svg { width: 15px; height: 15px; color: #52717d; }
.ones-detail-v2 .ones-description { min-height: 128px; padding: 20px 22px; color: #263a43; font-size: 13px; line-height: 1.75; }
.ones-detail-v2 .ones-description.is-empty { color: #8a989e; }

.ones-detail-properties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; margin: 0; padding: 7px 20px 13px; }
.ones-detail-properties > div { min-width: 0; min-height: 45px; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 10px; border-bottom: 1px solid #e8edef; }
.ones-detail-properties > div:nth-last-child(-n + 2) { border-bottom: 0; }
.ones-detail-properties > .ones-property-wide { grid-column: 1 / -1; border-top: 0; }
.ones-detail-properties dt { color: #667982; font-size: 11px; }
.ones-detail-properties dd { min-width: 0; margin: 0; color: #253943; font-size: 12px; overflow-wrap: anywhere; }
.ones-detail-properties dd small { display: block; margin-top: 3px; color: #85939a; font-size: 10px; }
.ones-basic-properties > div { grid-template-columns: 112px minmax(0, 1fr); }
.ones-watcher { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 7px; margin: 2px 5px 2px 0; border: 1px solid #cfdddf; border-radius: 4px; color: #315e67; background: #f4f9f9; font-size: 11px; }

.ones-detail-v2 .ones-subissues { padding: 6px 18px 12px; }
.ones-detail-v2 .ones-subissues a { min-height: 42px; color: #253943; }
.ones-detail-v2 .ones-subissues a > span:nth-child(2) { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.ones-detail-v2 .ones-subissues .ones-status { margin-left: auto; }
.ones-editor-section > summary { min-height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; cursor: pointer; list-style: none; background: #fafcfc; }
.ones-editor-section > summary::-webkit-details-marker { display: none; }
.ones-editor-section > summary span { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.ones-editor-section > summary svg { width: 15px; height: 15px; color: #52717d; }
.ones-editor-section[open] > summary > svg { transform: rotate(180deg); }
.ones-editor-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); }
.ones-editor-body .ones-properties-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; border: 0; }
.ones-editor-body .ones-workflow-form { border: 0; border-left: 1px solid var(--border); }
.ones-detail-v2 .ones-link-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; border: 0; }
.ones-detail-v2 .ones-hapi-section > .inline-actions { margin-top: 0; padding-top: 0; }

.ones-activity-column { min-width: 0; }
.ones-activity-panel { position: sticky; top: 82px; }
.ones-activity-heading { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid #e2e8ea; background: #fafcfc; }
.ones-activity-heading h2 { margin: 0 0 2px; color: #20343d; font-size: 14px; }
.ones-activity-heading span { color: #71828a; font-size: 10px; }
.ones-activity-heading > svg { width: 16px; height: 16px; color: #52717d; }
.ones-activity-tabs { height: 43px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 8px; border-bottom: 1px solid #e4eaec; background: #fff; }
.ones-activity-tabs button { min-width: 0; border: 0; border-bottom: 2px solid transparent; color: #667780; background: transparent; cursor: pointer; font-size: 11px; white-space: nowrap; }
.ones-activity-tabs button:hover { color: #1f6871; background: #f6fafa; }
.ones-activity-tabs button.active { border-bottom-color: #1c7880; color: #176a72; font-weight: 700; }
.ones-activity-tabs button span { margin-left: 2px; color: #95a1a6; font-size: 9px; }
.ones-activity-error { min-height: 38px; display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-bottom: 1px solid #edc9c3; color: #a64035; background: #fff4f2; font-size: 11px; }
.ones-activity-error svg { width: 14px; height: 14px; }
.ones-activity-panel .ones-activity-list { max-height: calc(100vh - 230px); padding: 5px 16px 14px; overflow-y: auto; overscroll-behavior: contain; }
.ones-activity-item { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 14px 0 16px; }
.ones-activity-item::before { content: ""; position: absolute; top: 40px; bottom: -1px; left: 13px; width: 1px; background: #dfe7e9; }
.ones-activity-item:last-of-type::before { display: none; }
.ones-activity-avatar { width: 28px; height: 28px; display: grid; place-items: center; z-index: 1; border: 2px solid #fff; border-radius: 50%; color: #315e67; background: #e5f1f2; font-size: 10px; font-weight: 700; }
.ones-activity-comment .ones-activity-avatar { color: #2c6f55; background: #e6f3eb; }
.ones-activity-file .ones-activity-avatar { color: #7c5b20; background: #f8eedc; }
.ones-activity-content { min-width: 0; padding-top: 1px; }
.ones-activity-content header { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.ones-activity-content header p { min-width: 0; margin: 0; color: #687a83; font-size: 11px; line-height: 1.45; }
.ones-activity-content header strong { margin-right: 5px; color: #263b44; font-size: 11px; }
.ones-activity-content header time { flex: 0 0 auto; color: #8a989e; font-size: 9px; white-space: nowrap; }
.ones-activity-comment { margin-top: 8px; padding: 9px 10px; border-left: 2px solid #3d8968; color: #2d3f47; background: #f6faf8; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ones-activity-file { min-width: 0; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 8px; padding: 8px 9px; border: 1px solid #e3e8e9; background: #fafbfb; }
.ones-activity-file > svg { width: 15px; height: 15px; color: #856426; }
.ones-activity-file strong, .ones-activity-file span { display: block; min-width: 0; overflow-wrap: anywhere; }
.ones-activity-file strong { color: #33464f; font-size: 10px; }
.ones-activity-file span { margin-top: 2px; color: #85939a; font-size: 9px; }
.ones-activity-diff { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); align-items: center; gap: 5px; margin-top: 8px; font-size: 10px; }
.ones-activity-diff > span { min-width: 0; padding: 5px 6px; overflow-wrap: anywhere; }
.ones-activity-diff .old { color: #9a4137; background: #fff1ef; text-decoration: line-through; }
.ones-activity-diff .new { color: #276d52; background: #edf8f1; }
.ones-activity-diff svg { width: 13px; height: 13px; color: #8a989e; }
.ones-activity-empty { margin: 0; padding: 34px 10px; color: #85939a; text-align: center; font-size: 11px; }
.ones-activity-panel .ones-comment-form { grid-template-columns: minmax(0, 1fr) 36px; padding: 10px 12px; }
.ones-activity-panel .ones-comment-form .icon-button { width: 36px; height: 36px; }

@media (max-width: 1180px) {
  .ones-glance { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ones-glance > div { border-bottom: 1px solid #e2e8ea; }
  .ones-glance > div:nth-child(3) { border-right: 0; }
  .ones-glance > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .ones-detail-v2 { grid-template-columns: minmax(0, 1fr) 350px; }
  .ones-detail-properties { grid-template-columns: 1fr; }
  .ones-detail-properties > div:nth-last-child(-n + 2) { border-bottom: 1px solid #e8edef; }
  .ones-detail-properties > div:last-child { border-bottom: 0; }
  .ones-detail-properties > .ones-property-wide { grid-column: auto; }
  .ones-editor-body, .ones-editor-body .ones-properties-form { grid-template-columns: 1fr; }
  .ones-editor-body .ones-workflow-form { border-top: 1px solid var(--border); border-left: 0; }
}

@media (max-width: 900px) {
  .ones-detail-v2 { grid-template-columns: 1fr; }
  .ones-detail-v2 .ones-side-column { order: initial; }
  .ones-activity-panel { position: static; }
  .ones-activity-panel .ones-activity-list { max-height: none; }
}

@media (max-width: 700px) {
  .ones-detail-header-v2 .ones-breadcrumb { padding-right: 13px; padding-left: 13px; overflow-x: auto; white-space: nowrap; }
  .ones-detail-header-v2 .ones-title-row { padding: 15px 13px; }
  .ones-detail-header-v2 .ones-title-row h1 { font-size: 19px; }
  .ones-detail-header-v2 .heading-actions .button { flex: 1 1 auto; }
  .ones-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ones-glance > div, .ones-glance > div:nth-child(3) { min-height: 64px; border-right: 1px solid #e2e8ea; border-bottom: 1px solid #e2e8ea; }
  .ones-glance > div:nth-child(even) { border-right: 0; }
  .ones-glance > div:last-child { border-right: 0; border-bottom: 0; }
  .ones-detail-properties { padding-right: 14px; padding-left: 14px; }
  .ones-detail-properties > div { grid-template-columns: 94px minmax(0, 1fr); }
  .ones-detail-v2 .ones-link-form { grid-template-columns: 1fr; }
  .ones-activity-tabs { padding: 0 4px; }
  .ones-activity-content header { flex-direction: column; gap: 3px; }
}

@media (max-width: 430px) {
  .ones-glance { grid-template-columns: 1fr; }
  .ones-glance > div, .ones-glance > div:nth-child(3), .ones-glance > div:nth-child(even) { border-right: 0; border-bottom: 1px solid #e2e8ea; }
  .ones-glance > div:last-child { border-bottom: 0; }
  .ones-detail-properties > div { grid-template-columns: 82px minmax(0, 1fr); }
  .ones-activity-tabs button span { display: none; }
}

/* Home module layout controls. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.portal-heading .portal-layout-reset { flex: 0 0 auto; border: 1px solid var(--border); }
.portal-layout-reset:disabled { visibility: hidden; }
.portal-grid { align-items: start; }
.portal-module { position: relative; min-width: 0; }
.portal-module-controls {
  position: absolute;
  top: 7px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 1px;
  z-index: 2;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: rgba(255, 255, 255, .94);
  opacity: .38;
  transition: opacity .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.portal-module:hover .portal-module-controls, .portal-module:focus-within .portal-module-controls {
  border-color: #d6e0e3;
  box-shadow: 0 2px 5px rgba(27, 47, 56, .06);
  opacity: 1;
}
.portal-module-control {
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #5f747d;
  background: transparent;
  cursor: pointer;
}
.portal-module-control:hover { color: #145f68; background: #edf5f5; }
.portal-module-control:disabled { color: #aeb9be; cursor: default; background: transparent; }
.portal-module-control svg { width: 14px; height: 14px; pointer-events: none; }
.portal-drag-handle { cursor: grab; touch-action: none; }
.portal-drag-handle:active { cursor: grabbing; }
.portal-module .portal-entry { width: 100%; padding-top: 38px; }
.portal-module .portal-entry[data-portal-health] {
  grid-template-columns: 44px minmax(0, 1fr) 20px;
}
.portal-icon-stack {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.portal-health-indicator {
  position: absolute;
  left: -6px;
  bottom: -6px;
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #647982;
  background: #edf3f5;
  box-shadow: 0 1px 3px rgba(27, 47, 56, .14);
}
.portal-health-indicator svg { width: 12px; height: 12px; }
.portal-health-indicator.is-online { color: #0b7a4b; background: #e6f6ee; }
.portal-health-indicator.is-offline { color: #9a3412; background: #fff0e8; }
.portal-module.is-dragging { opacity: .48; }
.portal-module.is-dragging .portal-entry { border-color: #5f9ca0; box-shadow: 0 8px 20px rgba(27, 47, 56, .12); }
.portal-collapse-closed { display: none; }
.portal-module.is-collapsed .portal-collapse-open { display: none; }
.portal-module.is-collapsed .portal-collapse-closed { display: block; }
.portal-module.is-collapsed .portal-entry {
  min-height: 58px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 132px 10px 12px;
}
.portal-module.is-collapsed .portal-entry[data-portal-health] {
  grid-template-columns: 34px minmax(0, 1fr);
}
.portal-module.is-collapsed .portal-icon-stack { width: 34px; height: 34px; }
.portal-module.is-collapsed .portal-icon { width: 34px; height: 34px; }
.portal-module.is-collapsed .portal-icon svg { width: 17px; height: 17px; }
.portal-module.is-collapsed .portal-health-indicator {
  left: -5px;
  bottom: -5px;
  width: 18px;
  height: 18px;
}
.portal-module.is-collapsed .portal-health-indicator svg { width: 11px; height: 11px; }
.portal-module.is-collapsed .portal-copy { gap: 0; }
.portal-module.is-collapsed .portal-copy strong { font-size: 14px; }
.portal-module.is-collapsed .portal-copy small, .portal-module.is-collapsed .portal-arrow { display: none; }

@media (max-width: 700px) {
  .portal-heading { flex-direction: row; align-items: flex-start; }
  .portal-module-controls { opacity: 1; }
  .portal-module .portal-entry { padding-top: 38px; }
}

@media (max-width: 430px) {
  .portal-module-controls { right: 6px; }
  .portal-module-control { width: 25px; height: 25px; }
  .portal-module.is-collapsed .portal-entry { padding-right: 118px; }
}

/* Live MR records and server-side pagination. */
.mr-commit-section { border: 1px solid var(--border); border-radius: 8px; background: #fff; overflow: hidden; }
.mr-commit-heading { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.mr-commit-heading > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mr-commit-heading strong, .mr-commit-heading small { display: block; }
.mr-commit-heading small { color: var(--muted); font-size: 11px; }
.mr-commit-list { display: flex; flex-direction: column; }
.mr-commit-item { border-bottom: 1px solid #eef2f3; color: inherit; }
.mr-commit-item:last-child { border-bottom: 0; }
.mr-commit-item > summary { min-height: 58px; display: grid; grid-template-columns: 96px minmax(0,1fr) 28px; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; list-style: none; }
.mr-commit-item > summary::-webkit-details-marker { display: none; }
.mr-commit-item > summary:hover { background: #f6fafb; }
.commit-sha code { color: #16656d; font-weight: 700; }
.commit-copy { min-width: 0; }
.commit-copy strong, .commit-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commit-copy strong { font-size: 12px; }
.commit-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.commit-open { color: #668088; }
.commit-open svg { width: 16px; height: 16px; transition: transform .15s ease; }
.mr-commit-item[open] .commit-open svg { transform: rotate(90deg); }
.commit-diff-panel { padding: 12px 16px 16px; border-top: 1px solid #eef2f3; background: #fbfcfc; }
.commit-diff-panel > span { color: var(--muted); font-size: 11px; }
.commit-diff-stats { min-height: 32px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #40545d; font-size: 11px; }
.commit-diff-files { gap: 10px; }
.mr-sync-bar { margin-bottom: 14px; }
.mr-table th:nth-child(7), .actions-column { width: 150px; }
.mr-pagination {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  background: #fafcfc;
}
.mr-page-summary { color: var(--muted); font-size: 11px; }
.mr-page-links { display: flex; align-items: center; gap: 4px; }
.mr-page-arrow, .mr-page-number {
  min-width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border: 1px solid #d2dcdf;
  border-radius: 5px;
  color: #425861;
  background: #fff;
  font-size: 11px;
  font-weight: 650;
}
.mr-page-arrow:hover, .mr-page-number:hover { border-color: #91a7ae; color: #145f68; }
.mr-page-arrow svg { width: 14px; height: 14px; }
.mr-page-arrow.disabled { color: #aeb9be; background: #f5f7f7; }
.mr-page-number.active { border-color: #167b83; color: #fff; background: #167b83; }
.mr-page-ellipsis { min-width: 22px; color: #819098; text-align: center; }

@media (max-width: 760px) {
  .mr-sync-bar { align-items: flex-start; }
  .mr-sync-bar > .status-pill { display: none; }
  .mr-pagination { border: 1px solid var(--border); border-radius: 7px; background: #fff; }
}

@media (max-width: 430px) {
  .mr-pagination { align-items: flex-start; flex-direction: column; gap: 8px; }
  .mr-page-links { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .mr-page-arrow, .mr-page-number { min-width: 28px; height: 28px; padding: 0 6px; }
}

/* Live GitLab merge request detail. */
.button.danger { color: var(--red); border-color: #dfb7b2; background: #fff8f7; }
.mr-state-draft { color: #805511; border-color: #ead09e; background: #fff8e9; }
.mr-state-draft svg { width: 12px; height: 12px; }
.mr-live-notice { align-items: center; margin-bottom: 10px; }
.mr-live-notice svg { width: 16px; height: 16px; flex: 0 0 auto; }
.gitlab-status-band, .gitlab-description-section, .gitlab-metadata-section, .gitlab-pipeline-section {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(25, 39, 48, .035);
}
.gitlab-status-band { overflow: hidden; margin-bottom: 16px; }
.gitlab-status-band.is-cached { border-color: #ddc38e; }
.gitlab-live-heading { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 16px; border-bottom: 1px solid #e5e9ec; background: #fafcfc; }
.gitlab-live-heading > div:first-child { min-width: 0; display: flex; align-items: center; gap: 12px; }
.gitlab-live-heading > div:first-child > strong { font-size: 14px; overflow-wrap: anywhere; }
.live-source { display: inline-flex; align-items: center; gap: 6px; color: #277054; font-size: 11px; font-weight: 700; white-space: nowrap; }
.is-cached .live-source { color: #8a5b13; }
.live-source svg { width: 14px; height: 14px; }
.gitlab-mr-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.gitlab-mr-actions form, .local-section-label form { margin: 0; }
.gitlab-status-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gitlab-status-facts > div { min-width: 0; min-height: 72px; display: flex; flex-direction: column; justify-content: center; padding: 12px 14px; border-right: 1px solid #e7ebed; }
.gitlab-status-facts > div:last-child { border-right: 0; }
.gitlab-status-facts span { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 650; text-transform: uppercase; }
.gitlab-status-facts strong { color: #2e4048; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.gitlab-status-facts .status-value-merged, .gitlab-status-facts .merge-value-mergeable { color: #237451; }
.gitlab-status-facts .merge-value-conflict { color: var(--red); }
.gitlab-status-facts .merge-value-need_rebase, .gitlab-status-facts .merge-value-ci_still_running { color: #8a5b13; }
.gitlab-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; align-items: start; gap: 16px; margin-bottom: 16px; }
.gitlab-description-section, .gitlab-metadata-section { overflow: hidden; }
.gitlab-section-heading { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 15px; border-bottom: 1px solid #e5e9ec; background: #fafcfc; }
.gitlab-section-heading h2 { display: flex; align-items: center; gap: 7px; margin: 0; color: #263a43; font-size: 13px; }
.gitlab-section-heading h2 svg { width: 15px; height: 15px; color: #54717d; }
.gitlab-section-heading > span { color: var(--muted); font-size: 10px; }
.gitlab-description { min-height: 148px; max-height: 440px; overflow: auto; padding: 18px 20px; color: #2c3d45; font-size: 13px; line-height: 1.68; white-space: pre-wrap; overflow-wrap: anywhere; }
.gitlab-description.is-empty { color: #849198; }
.gitlab-labels { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 20px 14px; border-top: 1px solid #edf0f2; }
.gitlab-labels span { padding: 3px 7px; border-radius: 4px; color: #425f6c; background: #eaf1f4; font-size: 10px; font-weight: 650; }
.gitlab-metadata { margin: 0; padding: 5px 15px 11px; }
.gitlab-metadata > div { min-height: 39px; display: grid; grid-template-columns: 94px minmax(0, 1fr); align-items: center; gap: 10px; border-bottom: 1px solid #edf0f2; }
.gitlab-metadata > div:last-child { border-bottom: 0; }
.gitlab-metadata dt { color: var(--muted); font-size: 11px; }
.gitlab-metadata dd { min-width: 0; margin: 0; color: #2f4149; font-size: 12px; overflow-wrap: anywhere; }
.gitlab-pipeline-section { overflow: hidden; margin-bottom: 18px; }
.pipeline-heading > div { display: flex; align-items: center; gap: 12px; }
.pipeline-summary { padding: 15px 17px; border-bottom: 1px solid #e8ecef; }
.pipeline-progress-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #364850; font-size: 11px; }
.pipeline-progress-copy span { color: var(--muted); }
.pipeline-progress { height: 7px; overflow: hidden; border-radius: 4px; background: #e7ebed; }
.pipeline-progress > span { display: block; height: 100%; border-radius: inherit; background: #317d5d; }
.pipeline-counts { display: flex; align-items: center; gap: 13px; margin-top: 9px; color: var(--muted); font-size: 10px; flex-wrap: wrap; }
.pipeline-counts .job-success { color: #237451; }
.pipeline-counts .job-running { color: #28657f; }
.pipeline-counts .job-failed { color: var(--red); }
.pipeline-counts .job-waiting { color: #8a5b13; }
.pipeline-stages { padding: 5px 17px 13px; }
.pipeline-stage { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid #edf0f2; }
.pipeline-stage:last-child { border-bottom: 0; }
.pipeline-stage-name { display: grid; grid-template-columns: 9px minmax(0, 1fr); align-items: center; gap: 7px; align-content: start; padding-top: 8px; }
.pipeline-stage-name strong { font-size: 12px; overflow-wrap: anywhere; }
.pipeline-stage-name small { grid-column: 2; color: var(--muted); font-size: 10px; }
.job-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #99a5aa; }
.job-status-dot.job-success { background: #2f8a65; }
.job-status-dot.job-failed { background: #bd443b; }
.job-status-dot.job-running, .job-status-dot.job-pending { background: #347c9d; }
.pipeline-jobs { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.pipeline-job { min-width: 0; min-height: 48px; display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #dfe5e8; border-radius: 5px; color: #31444d; background: #fff; }
.pipeline-job:hover { border-color: #9eb2ba; background: #fafcfc; }
.pipeline-job > svg { width: 15px; height: 15px; color: #7b898f; }
.pipeline-job > span { min-width: 0; }
.pipeline-job strong, .pipeline-job small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pipeline-job strong { font-size: 11px; }
.pipeline-job small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.pipeline-job.job-success > svg:first-child { color: #2c805f; }
.pipeline-job.job-failed { border-color: #e3bbb7; background: #fff8f7; }
.pipeline-job.job-failed > svg:first-child { color: var(--red); }
.pipeline-job.job-running > svg:first-child { color: #286f90; animation: status-spin 1.4s linear infinite; }
.pipeline-job-actions { display: flex; align-items: center; gap: 3px; }
.pipeline-job-actions .icon-button { width: 26px; height: 26px; padding: 5px; border: 0; background: transparent; }
.pipeline-job-error-summary { max-height: 68px; margin: 7px 0 0; padding: 6px 7px; overflow: hidden; border-left: 2px solid #bd443b; color: #78302a; background: #fff; font: 9px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.pipeline-trace-dialog { width: min(1000px, calc(100% - 32px)); height: min(760px, calc(100vh - 48px)); padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; color: #182230; background: #fff; box-shadow: 0 20px 48px rgba(16,24,40,.2); }
.pipeline-trace-dialog::backdrop { background: rgba(24,34,48,.52); }
.pipeline-trace-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.pipeline-trace-dialog > pre { margin: 0; padding: 16px 18px; overflow: auto; color: #d7e0e4; background: #172027; font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.audit-filter-bar { grid-template-columns: repeat(6, minmax(120px, 1fr)) auto; }
.audit-log-section details summary { cursor: pointer; color: var(--blue); font-size: 11px; }
.audit-log-section details pre { max-width: 440px; max-height: 220px; margin: 7px 0 0; padding: 8px; overflow: auto; border-radius: 4px; color: #d7e0e4; background: #172027; font-size: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .audit-filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .audit-filter-bar { grid-template-columns: 1fr; } }
.pipeline-empty { min-height: 110px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); }
.pipeline-empty svg { width: 19px; height: 19px; }
.local-section-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 25px 0 9px; }
.local-section-label > span { color: #586a72; font-size: 11px; font-weight: 750; text-transform: uppercase; }

@media (max-width: 1100px) {
  .gitlab-status-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gitlab-status-facts > div:nth-child(3n) { border-right: 0; }
  .gitlab-status-facts > div:nth-child(n+4) { border-top: 1px solid #e7ebed; }
  .gitlab-detail-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .pipeline-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .gitlab-live-heading { align-items: flex-start; flex-direction: column; }
  .gitlab-live-heading > div:first-child { align-items: flex-start; flex-direction: column; gap: 5px; }
  .gitlab-mr-actions { width: 100%; justify-content: flex-start; }
  .gitlab-status-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gitlab-status-facts > div:nth-child(3n) { border-right: 1px solid #e7ebed; }
  .gitlab-status-facts > div:nth-child(even) { border-right: 0; }
  .gitlab-status-facts > div:nth-child(n+3) { border-top: 1px solid #e7ebed; }
  .gitlab-detail-layout { grid-template-columns: 1fr; }
  .pipeline-stage { grid-template-columns: 1fr; gap: 7px; }
  .pipeline-stage-name { grid-template-columns: 9px minmax(0, 1fr) auto; }
  .pipeline-stage-name small { grid-column: 3; }
}

@media (max-width: 520px) {
  .gitlab-mr-actions form { flex: 1 1 calc(50% - 4px); }
  .gitlab-mr-actions .button { width: 100%; }
  .gitlab-status-facts { grid-template-columns: 1fr; }
  .gitlab-status-facts > div { min-height: 60px; border-right: 0 !important; border-top: 1px solid #e7ebed; }
  .gitlab-status-facts > div:first-child { border-top: 0; }
  .pipeline-heading { align-items: flex-start; }
  .pipeline-heading > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .pipeline-jobs { grid-template-columns: 1fr; }
}

/* MR live/record separation and scan scheduling. */
.mr-module-bar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
}
.mr-module-tabs { display: flex; align-items: center; gap: 3px; }
.mr-module-tabs a { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 5px; color: #5e6f77; font-size: 12px; font-weight: 650; }
.mr-module-tabs a:hover { color: #24576b; background: #f2f6f7; }
.mr-module-tabs a.active { color: #fff; background: #27677a; }
.mr-module-tabs svg, .mr-interval-readonly svg { width: 14px; height: 14px; }
.mr-interval-form { display: flex; align-items: center; gap: 6px; margin: 0; }
.mr-interval-form label { min-height: 34px; display: grid; grid-template-columns: auto 70px auto; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.mr-interval-form input { min-height: 32px; padding: 5px 7px; text-align: right; }
.mr-interval-form .icon-button { width: 32px; min-height: 32px; }
.mr-interval-readonly { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.mr-record-filter-bar { grid-template-columns: minmax(210px, 1.6fr) repeat(6, minmax(125px, 1fr)) auto; }
.live-discussion-section { margin-top: 18px; }
.live-discussion-section .discussion-list { padding: 0; }

.mr-detail-tabs { min-height: 43px; display: flex; align-items: stretch; gap: 22px; margin: 0 0 18px; border-bottom: 1px solid var(--border); }
.mr-detail-tabs a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 2px; color: #5b6b73; font-size: 12px; font-weight: 680; }
.mr-detail-tabs a::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; }
.mr-detail-tabs a:hover { color: #264f61; }
.mr-detail-tabs a.active { color: #1f6074; }
.mr-detail-tabs a.active::after { background: #1d7b82; }
.mr-detail-tabs svg { width: 15px; height: 15px; }
.mr-detail-tabs a > span { min-width: 20px; padding: 2px 6px; border-radius: 10px; color: #52636c; background: #e9eef0; font-size: 9px; text-align: center; }
.mr-changes-workspace { min-width: 0; }
.mr-changes-heading { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mr-changes-heading > div { display: flex; align-items: center; gap: 9px; }
.mr-changes-heading strong, .mr-changes-heading small { display: block; }
.mr-changes-heading strong { color: #263840; font-size: 14px; }
.mr-changes-heading small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.changes-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; color: #275f73; background: #e7f0f3; }
.changes-icon svg { width: 17px; height: 17px; }
.mr-change-totals { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; font-weight: 700; }
.change-additions, .diff-file-stats b { color: #237451; }
.change-deletions, .diff-file-stats em { color: #b13a32; }
.mr-change-totals .icon-button { margin-left: 5px; }
.mr-diff-files { display: flex; flex-direction: column; gap: 12px; }
.mr-diff-file { min-width: 0; overflow: hidden; border: 1px solid #d7dfe4; border-radius: 7px; background: #fff; }
.mr-diff-file > summary { min-height: 47px; display: grid; grid-template-columns: 18px auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 12px; cursor: pointer; list-style: none; background: #f8fafb; }
.mr-diff-file > summary::-webkit-details-marker { display: none; }
.diff-toggle { width: 18px; height: 18px; display: grid; place-items: center; color: #697a83; }
.diff-toggle svg { width: 14px; height: 14px; transition: transform .15s ease; }
.mr-diff-file[open] .diff-toggle svg { transform: rotate(90deg); }
.diff-file-state { min-width: 42px; padding: 2px 5px; border-radius: 4px; color: #53636c; background: #e9edef; font-size: 9px; font-weight: 750; text-align: center; }
.diff-file-state.new { color: #216c4a; background: #e6f4ec; }
.diff-file-state.deleted { color: #a53931; background: #fae9e7; }
.diff-file-state.renamed { color: #76560e; background: #f8f0da; }
.diff-file-path { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; }
.diff-file-path code { min-width: 0; overflow: hidden; color: #263a43; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.diff-file-path code:first-child:not(:last-child) { color: #7b898f; }
.diff-file-path svg { width: 12px; height: 12px; flex: 0 0 auto; color: #829098; }
.diff-file-stats { display: flex; align-items: center; justify-content: flex-end; gap: 8px; white-space: nowrap; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.diff-file-stats b, .diff-file-stats em { font-style: normal; }
.diff-file-stats small { padding: 2px 5px; border-radius: 3px; color: #6c5a2d; background: #f8f0da; font-family: inherit; font-size: 8px; }
.diff-table { max-height: 760px; overflow: auto; border-top: 1px solid #e0e6e9; background: #fff; font-family: "SFMono-Regular", Consolas, monospace; }
.diff-row { min-width: 720px; display: grid; grid-template-columns: 52px 52px 22px minmax(max-content, 1fr); min-height: 22px; border-bottom: 1px solid #f0f2f3; font-size: 11px; line-height: 21px; }
.diff-row:last-child { border-bottom: 0; }
.diff-row > span { user-select: none; }
.diff-line-number { padding: 0 7px; border-right: 1px solid #e5e9eb; color: #89969c; background: #fafbfc; text-align: right; }
.diff-marker { color: #7b898f; text-align: center; }
.diff-row > code { display: block; min-width: max-content; padding: 0 9px; color: #243640; font-size: 11px; letter-spacing: 0; white-space: pre; }
.diff-addition { background: #ecf8f1; }
.diff-addition .diff-line-number, .diff-addition .diff-marker { color: #28704f; background: #dff1e7; }
.diff-deletion { background: #fff0ee; }
.diff-deletion .diff-line-number, .diff-deletion .diff-marker { color: #a53c34; background: #f8e3df; }
.diff-hunk { background: #edf5f7; }
.diff-hunk .diff-line-number, .diff-hunk .diff-marker { background: #e4eff2; }
.diff-hunk > code { color: #35677a; font-weight: 650; }
.diff-meta > code { color: #77868d; font-style: italic; }
.diff-empty, .changes-empty { min-height: 92px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.diff-empty svg, .changes-empty svg { width: 18px; height: 18px; }
.diff-truncated { min-height: 34px; display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-top: 1px solid #ead9b6; color: #805b16; background: #fff9eb; font-size: 10px; }
.diff-truncated svg { width: 13px; height: 13px; }
.changes-limit-notice { margin-top: 12px; }

@media (max-width: 1180px) {
  .mr-record-filter-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mr-record-filter-bar .mr-search-field { grid-column: span 2; }
}

@media (max-width: 760px) {
  .mr-module-bar { align-items: stretch; flex-direction: column; }
  .mr-module-tabs a { flex: 1; justify-content: center; }
  .mr-interval-form { justify-content: flex-end; }
  .mr-record-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mr-record-filter-bar .mr-search-field, .mr-record-filter-bar .filter-actions { grid-column: 1 / -1; }
  .mr-diff-file > summary { grid-template-columns: 18px auto minmax(0, 1fr); }
  .diff-file-stats { grid-column: 3; justify-content: flex-start; }
}

@media (max-width: 520px) {
  .mr-module-tabs { width: 100%; }
  .mr-interval-form { justify-content: space-between; }
  .mr-record-filter-bar { grid-template-columns: 1fr; }
  .mr-record-filter-bar .mr-search-field, .mr-record-filter-bar .filter-actions { grid-column: auto; }
  .mr-detail-tabs { gap: 16px; }
  .mr-changes-heading { align-items: flex-start; }
  .mr-change-totals { flex-wrap: wrap; justify-content: flex-end; }
  .mr-diff-file > summary { padding-right: 8px; padding-left: 8px; }
  .diff-file-state { min-width: 38px; }
}

.codex-dispatch-panel { overflow: visible; margin: 0 0 18px; border: 1px solid #bfd4de; border-radius: 7px; background: #fff; box-shadow: 0 2px 7px rgba(27,47,56,.04); }
.codex-dispatch-heading { min-height: 50px; padding: 8px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); background: #f5fafc; }
.codex-dispatch-heading > div { display: flex; align-items: center; gap: 9px; }.codex-dispatch-heading strong, .codex-dispatch-heading small { display: block; }.codex-dispatch-heading strong { font-size: 13px; }.codex-dispatch-heading small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.codex-dispatch-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: #285f75; }.codex-dispatch-icon svg { width: 17px; height: 17px; }
.codex-draft-policy { display: inline-flex; align-items: center; gap: 5px; color: #80561c; font-size: 11px; font-weight: 650; }.codex-draft-policy svg { width: 14px; height: 14px; }
.codex-dispatch-form { display: grid; grid-template-columns: minmax(150px,.7fr) minmax(210px,1fr) minmax(280px,1.7fr) auto; align-items: end; gap: 10px; padding: 13px 14px; }.codex-dispatch-form label, .codex-project-control { min-width: 0; }.codex-dispatch-form select, .codex-dispatch-form textarea { width: 100%; }.codex-dispatch-form textarea { min-height: 38px; max-height: 120px; resize: vertical; }.codex-dispatch-form .button { min-height: 38px; }
.codex-project-control > span { min-height: 15px; display: flex; align-items: center; gap: 4px; margin-bottom: 5px; color: #344b55; font-size: 10px; font-weight: 700; }.codex-project-control .icon-button { width: 22px; min-height: 22px; padding: 4px; }.codex-project-control .icon-button svg { width: 13px; height: 13px; }
.codex-execution-config { grid-column: 1 / -1; display: grid; grid-template-columns: 190px minmax(130px,.65fr) minmax(190px,1fr) minmax(135px,.65fr) minmax(180px,.9fr); align-items: end; gap: 10px; padding-top: 9px; border-top: 1px solid #e6ecef; }
.codex-execution-config > label > span, .codex-skill-picker > span, .codex-mode-control legend { display: block; margin-bottom: 5px; color: #344b55; font-size: 10px; font-weight: 700; }
.codex-mode-control { min-width: 0; margin: 0; padding: 0; border: 0; }
.segmented-control { min-height: 32px; display: grid; grid-template-columns: 1fr 1fr; padding: 2px; border: 1px solid #bdcbd1; border-radius: 5px; background: #f1f4f5; }
.segmented-control label { cursor: pointer; }.segmented-control input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; pointer-events: none; }.segmented-control span { height: 26px; display: flex; align-items: center; justify-content: center; padding: 3px 8px; border-radius: 3px; color: #66767d; font-size: 10px; font-weight: 700; }.segmented-control input:checked + span { color: #185b68; background: #fff; box-shadow: 0 1px 3px rgba(31,55,64,.14); }
.codex-mode-control:disabled .segmented-control, .codex-execution-config select:disabled { cursor: wait; opacity: .58; }
.codex-skill-picker { min-width: 0; }.codex-skill-picker details { position: relative; }.codex-skill-picker summary { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px; border: 1px solid #bdcbd1; border-radius: 5px; color: #334b55; background: #fff; cursor: pointer; list-style: none; font-size: 10px; }.codex-skill-picker summary::-webkit-details-marker { display: none; }.codex-skill-picker summary svg { width: 13px; height: 13px; transition: transform .15s ease; }.codex-skill-picker details[open] summary svg { transform: rotate(180deg); }.codex-skill-picker details.is-disabled { pointer-events: none; opacity: .58; }
.codex-skill-picker details > div { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; left: 0; max-height: 250px; overflow: auto; padding: 5px; border: 1px solid #bdcbd1; border-radius: 5px; background: #fff; box-shadow: 0 8px 22px rgba(25,45,54,.16); }.codex-skill-picker details > div > label { display: grid; grid-template-columns: 16px minmax(0,1fr); align-items: center; gap: 7px; padding: 6px; border-radius: 4px; cursor: pointer; }.codex-skill-picker details > div > label:hover { background: #f1f6f7; }.codex-skill-picker input { width: 14px; height: 14px; accent-color: #167b83; }.codex-skill-picker label span, .codex-skill-picker label strong, .codex-skill-picker label small { min-width: 0; display: block; }.codex-skill-picker label strong { overflow: hidden; color: #314852; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.codex-skill-picker label small, .codex-skill-picker details > div > small { color: var(--muted); font-size: 9px; }
.codex-options-error { grid-column: 1 / -1; color: var(--red); font-size: 10px; }
.codex-retry-config { grid-column: 1 / -1; min-height: 38px; display: flex; align-items: center; gap: 16px; padding-top: 9px; border-top: 1px solid #e6ecef; }.codex-retry-config label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }.codex-retry-config input[type="number"] { width: 72px; min-height: 30px; padding: 4px 7px; }.codex-retry-config select { width: 112px; min-height: 30px; padding: 4px 7px; }.codex-retry-toggle { color: #315863 !important; font-weight: 700; }.codex-retry-toggle input { width: 15px; height: 15px; accent-color: #167b83; }
.codex-dispatch-history { border-top: 1px solid var(--border); }.codex-dispatch-history > p { margin: 0; padding: 11px 14px; color: var(--muted); font-size: 11px; }.codex-dispatch-history article { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 49px; padding: 6px 14px; border-bottom: 1px solid #edf0f2; }.codex-dispatch-history article:last-child { border-bottom: 0; }.codex-dispatch-history strong, .codex-dispatch-history small { display: block; }.codex-dispatch-history strong { font-size: 11px; }.codex-dispatch-history small { margin-top: 2px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }.codex-retry-meta.state-waiting { color: #9a5a08; }.codex-retry-meta.state-pending_review { color: #9a5a08; }.codex-retry-meta.state-retrying { color: var(--blue); }.codex-retry-meta.state-paused { color: #765609; }.codex-retry-meta.state-abandoned, .codex-retry-meta.state-exhausted { color: var(--red); }.codex-task-actions { display: flex; align-items: center; gap: 4px; }.codex-task-actions form { margin: 0; }.codex-task-actions .icon-button { width: 30px; min-height: 30px; }.codex-auto-retry-form { display: inline-flex; align-items: center; gap: 3px; }.codex-auto-retry-form select { width: 48px; min-height: 30px; padding: 3px 5px; font-size: 10px; }
.codex-task-state { font-size: 10px; font-weight: 700; }.codex-task-state.state-running, .codex-task-state.state-queued { color: var(--blue); }.codex-task-state.state-completed { color: var(--green); }.codex-task-state.state-needs_attention, .codex-task-state.state-failed { color: var(--red); }.codex-dispatch-empty { margin: 0; padding: 15px; color: var(--muted); }
.codex-execution-meta { color: #46636d !important; }

@media (max-width: 1100px) { .codex-execution-config { grid-template-columns: repeat(3,minmax(0,1fr)); }.codex-skill-picker { grid-column: span 2; } }
@media (max-width: 980px) { .codex-dispatch-form { grid-template-columns: 1fr 1fr; }.codex-dispatch-instruction { grid-column: 1 / -1; }.codex-retry-config { flex-wrap: wrap; } }
@media (max-width: 620px) { .codex-dispatch-form { grid-template-columns: 1fr; }.codex-dispatch-instruction { grid-column: auto; }.codex-dispatch-form .button { justify-self: end; }.codex-dispatch-heading { align-items: flex-start; flex-direction: column; }.codex-execution-config { grid-template-columns: 1fr; }.codex-skill-picker { grid-column: auto; }.codex-retry-config { align-items: flex-start; flex-direction: column; gap: 9px; }.codex-dispatch-history article { grid-template-columns: 62px minmax(0,1fr) auto; padding-left: 10px; padding-right: 10px; } }

@media (max-width: 700px) {
  .project-row { grid-template-columns: 70px minmax(0, 1fr) 36px 36px; }
  .project-title { grid-column: 2 / 3; }
  .project-row label:not(.toggle) { grid-column: 1 / -1; }
  .project-row > .icon-button:not(.project-delete-button) { grid-column: 3; grid-row: 1; }
  .project-delete-button { grid-column: 4; grid-row: 1; justify-self: end; }
  .project-add-actions { justify-content: flex-end; }
}

.auth-body { display: grid; place-items: start center; }
.auth-shell { margin-top: 10vh; }
.auth-header { min-height: 82px; margin-bottom: 0; border-radius: 8px 8px 0 0; box-shadow: 0 8px 24px rgba(19, 42, 52, .14); }
.auth-header h1 { font-size: 20px; }
.auth-header p { margin-top: 3px; font-size: 9px; font-weight: 750; letter-spacing: 0; }
.auth-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px; border-right: 1px solid #cbd7db; border-left: 1px solid #cbd7db; background: #edf2f4; }
.auth-switch a { min-height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 5px; color: #5f7078; font-size: 12px; font-weight: 700; }
.auth-switch a:hover { color: #185e67; background: #f7fafb; }
.auth-switch a.active { color: #155f68; background: #fff; box-shadow: 0 1px 4px rgba(26, 48, 57, .12); }
.auth-form { display: grid; gap: 15px; }
.auth-form label { display: grid; gap: 6px; }
.auth-form input { min-height: 40px; }
.auth-submit { width: 100%; justify-content: center; margin-top: 2px; }
.auth-submit svg { width: 16px; height: 16px; }

.user-account-link { color: #e6eef0; text-decoration: none; }
.user-account-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.user-management { margin-bottom: 18px; }
.user-management-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.user-management-heading > div > p { margin-top: 3px; }
.registration-policy-form { display: flex; align-items: center; gap: 8px; }
.registration-policy-form .toggle { min-height: 34px; padding: 5px 8px; border: 1px solid #d5dfe2; border-radius: 5px; background: #f7f9fa; }
.user-list { display: grid; gap: 7px; }
.user-row { min-height: 62px; display: grid; grid-template-columns: minmax(220px, 1fr) 150px 92px 36px; align-items: center; gap: 14px; padding: 8px 10px; border: 1px solid #dce4e7; border-radius: 6px; background: #fbfcfc; }
.user-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid #bcd3d5; border-radius: 50%; color: #176c75; background: #e9f4f3; }
.user-avatar svg { width: 16px; height: 16px; }
.user-identity strong, .user-identity small { display: block; }
.user-identity strong { overflow: hidden; color: #243941; font-size: 12px; text-overflow: ellipsis; }
.user-identity small { margin-top: 3px; color: #75858c; font-size: 9px; }
.user-row > label:not(.toggle) { display: grid; gap: 4px; }
.user-row > label > span { font-size: 9px; }
.user-row select { min-height: 34px; }
.user-active-toggle { justify-self: start; }
.account-heading { align-items: center; }
.account-role { color: #235e49; border-color: #acd0bd; background: #eaf5ef; }
.account-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; border-top: 1px solid #d6e0e3; border-bottom: 1px solid #d6e0e3; background: #f7f9fa; }
.account-summary > div { min-width: 0; padding: 15px 18px; border-right: 1px solid #d6e0e3; }
.account-summary > div:last-child { border-right: 0; }
.account-summary span, .account-summary strong { display: block; }
.account-summary span { margin-bottom: 5px; color: #74848b; font-size: 9px; font-weight: 700; }
.account-summary strong { overflow-wrap: anywhere; color: #253941; font-size: 12px; }
.account-password-form { max-width: 920px; }
.account-notice { margin: 0 0 14px; }
.account-integration-section { margin-bottom: 18px; }
.integration-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.integration-heading > div { min-width: 0; }
.integration-heading > div > p { margin-top: 3px; }
.integration-state { min-height: 28px; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 4px 8px; border: 1px solid #cfdadd; border-radius: 5px; color: #687980; background: #f7f9fa; font-size: 10px; font-weight: 700; }
.integration-state svg { width: 14px; height: 14px; }
.integration-state.configured { color: #246348; border-color: #afd1bd; background: #edf7f1; }
.account-integration-form { display: grid; gap: 13px; }
.account-auth-mode { max-width: 420px; margin: 0; padding: 0; border: 0; }
.account-auth-mode legend { margin-bottom: 6px; color: #344b55; font-size: 10px; font-weight: 700; }
.integration-actions, .integration-secondary-actions { display: flex; align-items: center; gap: 9px; }
.integration-secondary-actions { min-height: 42px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #e2e8ea; }
.integration-secondary-actions form { margin: 0; }
[data-auth-panel][hidden] { display: none; }

@media (max-width: 760px) {
  .auth-shell { margin-top: 4vh; }
  .user-management-heading { align-items: flex-start; flex-direction: column; }
  .registration-policy-form { width: 100%; justify-content: space-between; }
  .user-row { grid-template-columns: minmax(0, 1fr) 36px; gap: 10px; }
  .user-row > label:not(.toggle) { grid-column: 1 / -1; }
  .user-active-toggle { grid-column: 1; }
  .user-row > .icon-button { grid-column: 2; grid-row: 1; }
  .account-summary { grid-template-columns: 1fr; }
  .account-summary > div { border-right: 0; border-bottom: 1px solid #d6e0e3; }
  .account-summary > div:last-child { border-bottom: 0; }
  .integration-heading { align-items: flex-start; }
  .integration-secondary-actions { align-items: flex-start; flex-wrap: wrap; }
}
.work-item-relations {
  margin: 16px 0;
  border-top: 1px solid var(--border, #dfe4ea);
  border-bottom: 1px solid var(--border, #dfe4ea);
  background: var(--surface, #fff);
}

.work-item-relations-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}

.work-item-relations-heading > div,
.work-item-relation-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.work-item-relations-heading svg { width: 18px; height: 18px; }
.work-item-relations-heading span { display: grid; gap: 2px; }
.work-item-relations-heading small { color: var(--muted, #667085); font-weight: 400; }
.work-item-relations-list { padding: 0 8px 8px; }

.work-item-relation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  border-radius: 6px;
}

.work-item-relation-row:hover { background: var(--surface-subtle, #f6f8fa); }
.work-item-relation-main { min-width: 0; padding: 8px; color: inherit; text-decoration: none; }
.work-item-relation-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-item-relation-type { width: 52px; color: #087f5b; font-size: 12px; font-weight: 700; }
.work-item-relation-row form { margin: 0; }
.work-item-relations-empty { display: flex; gap: 8px; align-items: center; padding: 18px 8px; color: var(--muted, #667085); }
.work-item-relations-empty svg { width: 17px; height: 17px; }

.work-item-link-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border, #dfe4ea);
}

.work-item-link-form label { display: grid; gap: 6px; min-width: 0; }
.work-item-link-form label span { color: var(--muted, #667085); font-size: 12px; font-weight: 600; }
.gitlab-issue-description { margin-top: 16px; }

@media (max-width: 640px) {
  .work-item-link-form { grid-template-columns: 1fr; }
  .work-item-link-form .button { width: 100%; justify-content: center; }
}

/* Requirement pool: dense intake workflow with an explicit Feishu dependency boundary. */
.requirement-heading { align-items: end; }
.requirement-notice { margin: 0 0 14px; }
.gateway-dependency { display: grid; grid-template-columns: minmax(330px, .85fr) minmax(480px, 1.15fr); gap: 22px; align-items: center; margin-bottom: 18px; padding: 16px 18px; border: 1px solid #d5dfe2; border-left: 4px solid #778991; border-radius: 7px; background: #fff; }
.gateway-dependency.dependency-healthy { border-left-color: #16815b; }
.gateway-dependency.dependency-degraded { border-left-color: #b86a12; }
.gateway-dependency.dependency-incompatible, .gateway-dependency.dependency-offline { border-left-color: #b44040; }
.dependency-flow { min-width: 0; display: grid; grid-template-columns: minmax(125px, 1fr) minmax(100px, .7fr) minmax(125px, 1fr); align-items: center; }
.dependency-node { min-width: 0; display: flex; align-items: center; gap: 10px; }
.dependency-node > span:last-child { min-width: 0; }
.dependency-node small, .dependency-node strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dependency-node small { margin-bottom: 3px; color: #77868d; font-size: 9px; }
.dependency-node strong { color: #263d46; font-size: 12px; }
.dependency-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid #bad0d3; border-radius: 7px; color: #176e77; background: #eef7f7; }
.dependency-icon svg { width: 17px; height: 17px; }
.dependency-edge { min-width: 0; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; padding: 0 8px; color: #809097; }
.dependency-edge span { height: 1px; background: #bac8cd; }
.dependency-edge svg { width: 15px; height: 15px; margin-left: -2px; }
.dependency-edge small { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; overflow: hidden; font-size: 8px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.dependency-summary { min-width: 0; padding-left: 20px; border-left: 1px solid #dde5e7; }
.dependency-summary > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dependency-summary h2 { margin: 0; color: #263b44; font-size: 12px; }
.dependency-summary > p { margin: 5px 0 10px; color: #64767e; font-size: 10px; }
.dependency-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; margin: 0; }
.dependency-summary dl > div { min-width: 0; }
.dependency-summary dt, .dependency-summary dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dependency-summary dt { color: #88969c; font-size: 8px; }
.dependency-summary dd { margin: 2px 0 0; color: #314750; font-size: 10px; font-weight: 680; }
.dependency-state { min-height: 24px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid #d2dcdf; border-radius: 5px; color: #64767e; background: #f6f8f9; font-size: 9px; font-weight: 750; }
.dependency-state svg { width: 12px; height: 12px; }
.dependency-state.state-healthy { color: #126d4d; border-color: #afd5c2; background: #edf8f2; }
.dependency-state.state-degraded { color: #94530b; border-color: #e2c49f; background: #fff8e9; }
.dependency-state.state-incompatible, .dependency-state.state-offline { color: #9f3030; border-color: #e3baba; background: #fff1f1; }
.dependency-identity { display: block; margin-top: 8px; color: #819097; font-size: 8px; overflow-wrap: anywhere; }

.requirement-filter-bar { display: grid; grid-template-columns: auto 180px minmax(220px, 1fr) 36px; align-items: end; gap: 10px; margin-bottom: 14px; padding: 10px 12px; border-top: 1px solid #d7e1e4; border-bottom: 1px solid #d7e1e4; background: #f8fafb; }
.requirement-filter-bar > label { display: grid; gap: 4px; }
.requirement-filter-bar > label > span { color: #61747d; font-size: 9px; font-weight: 700; }
.requirement-filter-bar select, .requirement-filter-bar input { min-height: 34px; }
.requirement-pool-tabs { min-width: 330px; }
.requirement-pool-tabs label span { min-height: 34px; gap: 5px; }
.requirement-pool-tabs svg { width: 13px; height: 13px; }
.requirement-list-section { margin-bottom: 20px; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; background: #fff; }
.requirement-list-toolbar { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 13px; border-bottom: 1px solid #e2e8ea; background: #fafcfc; }
.requirement-list-toolbar strong { color: #2b414a; font-size: 11px; }
.requirement-list-toolbar span { color: #7b8b92; font-size: 9px; }
.requirement-table { width: 100%; }
.requirement-table th:first-child, .requirement-table td:first-child { width: 40%; }
.requirement-table td { height: 58px; vertical-align: middle; }
.requirement-table td:first-child > span { display: block; max-width: 580px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.requirement-title { display: block; overflow: hidden; color: #1e566b; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.requirement-title:hover { color: #14828a; }
.requirement-source, .visibility-badge { min-height: 24px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid #d4dee1; border-radius: 5px; color: #586a72; background: #f7f9fa; font-size: 9px; font-weight: 700; white-space: nowrap; }
.requirement-source svg, .visibility-badge svg { width: 12px; height: 12px; }
.requirement-source.source-feishu { color: #365f9e; border-color: #c2d2ec; background: #f0f5ff; }
.visibility-badge.visibility-public { color: #256149; border-color: #b7d4c6; background: #eef8f2; }
.visibility-badge.visibility-private { color: #75541a; border-color: #ddcea9; background: #fff9eb; }
.requirement-status { display: inline-flex; align-items: center; gap: 6px; color: #52656d; font-size: 9px; font-weight: 750; white-space: nowrap; }
.requirement-status i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #85969d; }
.requirement-status.status-collecting i, .requirement-status.status-importing i, .requirement-status.status-refining i { background: #277ca1; }
.requirement-status.status-ready i { background: #16815b; }
.requirement-status.status-publishing i { background: #a65d0b; }
.requirement-status.status-published i { background: #4d6d32; }
.requirement-status.status-failed i, .requirement-status.status-published_with_errors i { background: #bd4141; }
.requirement-status.status-cancelled i { background: #727c81; }

.manual-requirement { scroll-margin-top: 20px; padding: 18px; border-top: 1px solid #d7e0e3; border-bottom: 1px solid #d7e0e3; background: #f8fafb; }
.manual-requirement .section-heading { margin-bottom: 14px; }
.manual-requirement-form { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(260px, .8fr); gap: 13px 18px; }
.manual-requirement-form > label { display: grid; gap: 5px; }
.manual-requirement-form > label.wide { grid-column: 1 / -1; }
.manual-requirement-form > label > span, .manual-requirement-form legend { color: #405660; font-size: 10px; font-weight: 700; }
.manual-requirement-form fieldset { margin: 0; padding: 0; border: 0; }
.manual-requirement-form legend { margin-bottom: 5px; }
.manual-requirement-form textarea { resize: vertical; }
.manual-requirement-actions { display: flex; align-items: end; justify-content: flex-end; }
.project-context-fieldset { grid-column: 1 / -1; }
.project-context-fieldset > p, .requirement-project-context-form > p { margin: 0 0 10px; color: #60727a; font-size: 10px; line-height: 1.55; }
.project-context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.project-context-option { display: grid; grid-template-columns: minmax(0, 1fr) minmax(94px, .7fr); align-items: end; gap: 7px; padding: 8px; border: 1px solid #d9e3e6; border-radius: 5px; background: #fbfcfc; }
.project-context-option > label:not(.toggle) { display: grid; gap: 4px; color: #60727a; font-size: 9px; font-weight: 700; }
.project-context-option input[type="text"], .project-context-option input:not([type]) { min-width: 0; }
.requirement-job-list { display: grid; gap: 0; }
.requirement-job-list > div { display: grid; gap: 3px; padding: 11px 14px; border-bottom: 1px solid #e4eaec; }
.requirement-job-list > div:last-child { border-bottom: 0; }
.requirement-job-list strong { color: #324b54; font-size: 10px; }
.requirement-job-list small, .requirement-job-list p { margin: 0; color: #65767d; font-size: 9px; overflow-wrap: anywhere; }
.requirement-instance-list, .requirement-thread-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.requirement-thread-actions form { margin: 0; }

.requirement-detail-header { margin-bottom: 16px; border-bottom: 1px solid #d6e0e3; }
.requirement-breadcrumb { min-height: 34px; display: flex; align-items: center; gap: 7px; color: #75868d; font-size: 10px; }
.requirement-breadcrumb a { color: #346a79; }
.requirement-breadcrumb svg { width: 13px; height: 13px; }
.requirement-detail-title-row { min-height: 112px; display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 17px 0; }
.requirement-detail-title-row > div { min-width: 0; }
.requirement-detail-kicker { display: flex; align-items: center; gap: 7px; }
.requirement-detail-title-row h1 { margin: 10px 0 7px; color: #1d3038; font-size: 25px; line-height: 1.35; overflow-wrap: anywhere; }
.requirement-detail-title-row p { margin: 0; color: #76868d; font-size: 10px; }
.detail-status { margin-top: 8px; padding: 6px 9px; border: 1px solid #d6e0e3; border-radius: 5px; background: #fafcfc; }
.requirement-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 18px; }
.requirement-main-column, .requirement-side-column { display: grid; gap: 14px; }
.requirement-content-section, .requirement-properties, .requirement-action-section { overflow: hidden; border: 1px solid #d9e2e5; border-radius: 7px; background: #fff; }
.requirement-section-heading { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid #e2e8ea; background: #fafcfc; }
.requirement-section-heading h2 { display: flex; align-items: center; gap: 7px; margin: 0; color: #2b424b; font-size: 11px; }
.requirement-section-heading h2 svg { width: 14px; height: 14px; color: #52717d; }
.requirement-section-heading > span { color: #849299; font-size: 9px; }
.requirement-editor { display: grid; gap: 13px; padding: 16px; }
.requirement-editor label { display: grid; gap: 5px; }
.requirement-editor label > span, .requirement-description-field > span { color: #4f626b; font-size: 9px; font-weight: 700; }
.requirement-editor textarea { resize: vertical; }
.requirement-editor > div { display: flex; justify-content: flex-end; }
.requirement-description-field { display: grid; gap: 5px; }
.rich-text-field { overflow: hidden; border: 1px solid #b8c9ce; border-radius: 5px; background: #fff; }
.rich-text-toolbar { min-height: 42px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 5px 6px; border-bottom: 1px solid #dce5e7; background: #f7fafb; }
.editor-tool { width: 30px; height: 30px; display: inline-grid; place-items: center; flex: 0 0 30px; padding: 0; border: 1px solid transparent; border-radius: 4px; color: #4d6670; background: transparent; cursor: pointer; }
.editor-tool:hover, .editor-tool:focus-visible { border-color: #9eb9c1; color: #126f78; background: #fff; outline: 0; }
.editor-tool svg { width: 15px; height: 15px; }
.editor-tool-separator { width: 1px; height: 19px; margin: 0 2px; background: #d5e0e3; }
.editor-beautify { min-height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; margin-left: auto; padding: 0 9px; border: 1px solid #8ebfc4; border-radius: 4px; color: #096b73; background: #fff; font: inherit; font-size: 9px; font-weight: 750; cursor: pointer; }
.editor-beautify:hover, .editor-beautify:focus-visible { border-color: #167b83; color: #075b62; background: #edf8f8; outline: 0; }
.editor-beautify svg { width: 14px; height: 14px; }
.rich-text-editor { min-height: 300px; padding: 13px 14px; color: #293f48; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; outline: 0; }
.rich-text-editor:focus { box-shadow: inset 0 0 0 1px #16808a; }
.rich-text-editor > :first-child, .requirement-description > :first-child { margin-top: 0; }
.rich-text-editor > :last-child, .requirement-description > :last-child { margin-bottom: 0; }
.rich-text-editor p, .requirement-description p { margin: 0 0 12px; }
.rich-text-editor h2, .requirement-description h2 { margin: 19px 0 8px; color: #1f505e; font-size: 16px; line-height: 1.45; }
.rich-text-editor h3, .requirement-description h3 { margin: 16px 0 6px; color: #2c5864; font-size: 13px; line-height: 1.45; }
.rich-text-editor ul, .rich-text-editor ol, .requirement-description ul, .requirement-description ol { margin: 0 0 12px; padding-left: 21px; }
.rich-text-editor li, .requirement-description li { margin: 3px 0; }
.rich-text-editor blockquote, .requirement-description blockquote { margin: 0 0 12px; padding: 7px 11px; border-left: 3px solid #74aeb5; color: #536b74; background: #f2f8f8; }
.rich-text-editor pre, .requirement-description pre { margin: 0 0 12px; padding: 10px; overflow: auto; border: 1px solid #dce5e7; border-radius: 4px; background: #f6f8f9; font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.rich-text-editor code, .requirement-description code { padding: 1px 3px; border-radius: 3px; background: #edf2f3; font: .92em ui-monospace, SFMono-Regular, Menlo, monospace; }
.rich-text-editor pre code, .requirement-description pre code { padding: 0; background: transparent; }
.requirement-description { min-height: 180px; padding: 18px; color: #293f48; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.requirement-source-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px; }
.requirement-source-summary p { flex: 1 1 100%; margin: 0; color: #4f626b; font-size: 11px; line-height: 1.65; }
.requirement-source-summary > span { display: inline-flex; align-items: center; gap: 5px; color: #61727a; font-size: 9px; }
.requirement-source-summary svg { width: 13px; height: 13px; }
.requirement-source-messages { max-height: 540px; margin: 0; padding: 0 16px 10px; overflow: auto; list-style: none; }
.requirement-source-messages li { padding: 10px 0; border-top: 1px solid #e7edef; }
.requirement-source-messages li > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.requirement-source-messages strong { color: #36515c; font-size: 9px; }
.requirement-source-messages time { color: #89969c; font-size: 8px; }
.requirement-source-messages p { margin: 5px 0 0; color: #344a53; font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.requirement-attachment-list { padding: 0 14px 12px; }
.requirement-attachment-list > div { min-height: 45px; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border-top: 1px solid #e7edef; }
.requirement-attachment-list > div > svg { width: 14px; height: 14px; color: #687b84; }
.requirement-attachment-list strong, .requirement-attachment-list small { display: block; }
.requirement-attachment-list strong { overflow: hidden; color: #344a53; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.requirement-attachment-list small { margin-top: 3px; color: #89969c; font-size: 8px; }
.attachment-state { color: #64767e; font-size: 8px; font-style: normal; font-weight: 700; }
.attachment-state.state-uploaded { color: #16704f; }
.attachment-state.state-missing { color: #a43a36; }
.requirement-properties dl { margin: 0; padding: 5px 14px 10px; }
.requirement-properties dl > div { min-height: 40px; display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: center; gap: 10px; border-bottom: 1px solid #e8edef; }
.requirement-properties dl > div:last-child { border-bottom: 0; }
.requirement-properties dt { color: #77868d; font-size: 9px; }
.requirement-properties dd { min-width: 0; margin: 0; color: #2e444d; font-size: 10px; font-weight: 650; overflow-wrap: anywhere; }
.requirement-action-section > form, .requirement-action-copy { display: grid; gap: 11px; padding: 14px; }
.requirement-action-section > form .segmented-control { width: 100%; }
.requirement-owner-field { display: grid; gap: 5px; }
.requirement-owner-field > span { color: #60727a; font-size: 9px; font-weight: 700; }
.requirement-action-section > form .button, .requirement-action-copy .button { justify-content: center; }
.requirement-action-copy p { margin: 0; color: #61727a; font-size: 10px; line-height: 1.55; }
.requirement-action-copy form { margin: 0; }
.requirement-action-copy form .button { width: 100%; }
.requirement-ones-link strong { color: #2d4a55; font-size: 11px; }
.requirement-reconcile-section { border-color: #e1c39b; }
.requirement-reconcile-section .requirement-section-heading { background: #fff9ed; }
.requirement-reconcile-form { border-top: 1px solid #ece4d7; }
.requirement-reconcile-form label:not(.toggle) { display: grid; gap: 5px; min-width: 0; }
.requirement-reconcile-form label:not(.toggle) > span { color: #60727a; font-size: 9px; font-weight: 700; }

@media (max-width: 1080px) {
  .gateway-dependency { grid-template-columns: 1fr; }
  .dependency-summary { padding: 14px 0 0; border-top: 1px solid #dde5e7; border-left: 0; }
  .requirement-filter-bar { grid-template-columns: auto 160px minmax(180px, 1fr) 36px; }
  .requirement-table th:nth-child(5), .requirement-table td:nth-child(5) { display: none; }
}
@media (max-width: 780px) {
  .requirement-heading { align-items: flex-start; }
  .requirement-filter-bar { grid-template-columns: 1fr 1fr 36px; }
  .requirement-pool-tabs { min-width: 0; grid-column: 1 / -1; }
  .requirement-search { grid-column: 1 / 3; }
  .requirement-table th:nth-child(2), .requirement-table td:nth-child(2), .requirement-table th:nth-child(5), .requirement-table td:nth-child(5), .requirement-table th:nth-child(6), .requirement-table td:nth-child(6) { display: none; }
  .requirement-table th:first-child, .requirement-table td:first-child { width: auto; min-width: 190px; }
  .manual-requirement-form { grid-template-columns: 1fr; }
  .manual-requirement-form > label.wide { grid-column: auto; }
  .project-context-grid { grid-template-columns: 1fr; }
  .requirement-detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .gateway-dependency { padding: 14px 12px; }
  .dependency-flow { grid-template-columns: 1fr; gap: 8px; }
  .dependency-edge { grid-template-columns: 1px minmax(0, 1fr); grid-template-rows: 20px; justify-content: start; padding-left: 17px; }
  .dependency-edge span { width: 1px; height: 20px; }
  .dependency-edge svg { display: none; }
  .dependency-edge small { grid-column: 2; grid-row: 1; align-self: center; margin: 0 0 0 8px; text-align: left; }
  .dependency-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .requirement-pool-tabs { grid-template-columns: 1fr; }
  .requirement-pool-tabs span { justify-content: flex-start; }
  .requirement-list-toolbar { align-items: flex-start; flex-direction: column; gap: 2px; }
  .requirement-table th:nth-child(3), .requirement-table td:nth-child(3) { display: none; }
  .requirement-detail-title-row { flex-direction: column; gap: 4px; }
  .requirement-detail-title-row h1 { font-size: 21px; }
  .detail-status { margin-top: 0; }
}

.lark-binding-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 12px; border-top: 1px solid #e0e7e9; border-bottom: 1px solid #e0e7e9; background: #fafcfc; }
.lark-binding-facts > div { min-width: 0; padding: 12px 14px; border-right: 1px solid #e0e7e9; }
.lark-binding-facts > div:last-child { border-right: 0; }
.lark-binding-facts dt { color: #7b8a91; font-size: 9px; }
.lark-binding-facts dd { margin: 4px 0 0; overflow: hidden; color: #2c434c; font-size: 11px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.lark-binding-section > .integration-secondary-actions { margin: 0; padding-top: 0; border-top: 0; }
.lark-binding-flow { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr); align-items: center; gap: 8px; margin: 2px 0 15px; }
.lark-binding-flow > div { min-height: 52px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid #d9e3e5; border-radius: 6px; background: #fafcfc; }
.lark-binding-flow > div > span { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #24747c; font-size: 9px; font-weight: 800; }
.lark-binding-flow p { margin: 0; color: #3e555e; font-size: 10px; }
.lark-binding-flow > svg { width: 15px; height: 15px; color: #88979d; }
.lark-binding-code { margin-top: 14px; padding: 13px 15px; border: 1px solid #b7d5c5; border-radius: 6px; background: #eff8f3; }
.lark-binding-code > span, .lark-binding-code > strong { display: block; }
.lark-binding-code > span { color: #5e756a; font-size: 9px; font-weight: 700; }
.lark-binding-code > strong { margin: 5px 0; color: #1d5e43; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px; letter-spacing: 0; }
.lark-binding-code p { margin: 0; color: #355b49; font-size: 10px; line-height: 1.55; }
.lark-binding-code code { padding: 2px 4px; border-radius: 3px; background: #dfeee6; }
.lark-binding-code small { display: block; margin-top: 6px; color: #688074; font-size: 8px; }

@media (max-width: 760px) {
  .lark-binding-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lark-binding-facts > div:nth-child(2) { border-right: 0; }
  .lark-binding-facts > div:nth-child(-n + 2) { border-bottom: 1px solid #e0e7e9; }
  .lark-binding-flow { grid-template-columns: 1fr; }
  .lark-binding-flow > svg { transform: rotate(90deg); justify-self: center; }
}

.requirement-publish-heading { margin-bottom: 12px; }
.requirement-publish-heading .requirement-breadcrumb { min-height: 24px; }
.publication-boundary { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 15px; padding: 9px 14px; border-top: 1px solid #d9e2e5; border-bottom: 1px solid #d9e2e5; color: #687981; background: #f8fafb; }
.publication-boundary > span { display: inline-flex; align-items: center; gap: 6px; color: #324b55; font-size: 10px; font-weight: 700; }
.publication-boundary svg { width: 14px; height: 14px; }
.publication-boundary > i, .publication-boundary > svg { color: #87969c; }
.publication-team-form { max-width: 420px; margin-bottom: 14px; }
.publication-team-form label { display: grid; gap: 5px; }
.publication-team-form label > span { color: #53666f; font-size: 9px; font-weight: 700; }
.requirement-publication-form { display: grid; gap: 14px; }
.publication-section { overflow: hidden; border: 1px solid #d9e2e5; border-radius: 7px; background: #fff; }
.publication-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; padding: 15px; }
.publication-grid label, .publication-fields label { min-width: 0; display: grid; gap: 5px; }
.publication-grid label > span, .publication-fields label > span { color: #4d626b; font-size: 9px; font-weight: 700; }
.publication-fields label > span b { margin-left: 5px; color: #9e3535; font-size: 8px; }
.publication-watchers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 13px 15px; }
.publication-watchers label { min-width: 0; min-height: 34px; display: flex; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid #e0e6e8; border-radius: 5px; color: #405660; background: #fafcfc; font-size: 9px; cursor: pointer; }
.publication-watchers input { width: 14px; height: 14px; flex: 0 0 14px; accent-color: #167b83; }
.publication-watchers span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.publication-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; padding: 15px; }
.publication-fields textarea { resize: vertical; }
.publication-empty { grid-column: 1 / -1; margin: 10px 0; color: #7c8c93; text-align: center; font-size: 10px; }
.publication-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 2px 0 10px; }

@media (max-width: 820px) {
  .publication-grid { grid-template-columns: 1fr; }
  .publication-watchers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .publication-fields { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .publication-boundary { align-items: flex-start; flex-direction: column; }
  .publication-boundary > svg { transform: rotate(90deg); margin-left: 8px; }
  .publication-watchers { grid-template-columns: 1fr; }
  .publication-actions .button { flex: 1; }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .topbar { gap: 10px; padding-right: 14px; padding-left: 14px; }
  .brand-copy small, .topbar .role-badge { display: none; }
  .topbar nav { min-width: 0; flex: 1; overflow-x: auto; }
  .nav-link { padding-right: 8px; padding-left: 8px; white-space: nowrap; }
}

@media (max-width: 700px) {
  .codex-mobile-connectivity-result dl { grid-template-columns: 1fr; }
  .codex-mobile-connectivity-result-heading { align-items: flex-start; }
}

/* ONES list semantics are server-normalized into a small, stable visual vocabulary. */
.ones-status-tone-info { color: #176887; border-color: #bdd9e6; background: #f0f8fb; }
.ones-status-tone-info i { background: #247aa0; }
.ones-status-tone-warning { color: #815307; border-color: #e7ce9a; background: #fff8e9; }
.ones-status-tone-warning i { background: #b7780b; }
.ones-status-tone-success { color: #236746; border-color: #b8d9c7; background: #f0f8f3; }
.ones-status-tone-success i { background: #2b8b5d; }
.ones-status-tone-danger { color: #973c36; border-color: #e6bbb6; background: #fff2f0; }
.ones-status-tone-danger i { background: #be4c43; }
.ones-status-tone-neutral { color: #5d6b72; border-color: #d7dfe2; background: #f7f9fa; }
.ones-status-tone-neutral i { background: #829097; }
.ones-status { max-width: 12rem; white-space: normal; }
.ones-status i { flex: 0 0 7px; }
.ones-status-label { min-width: 0; overflow-wrap: anywhere; }
.ones-status-mobile { display: none; }
.ones-glance .ones-status { display: inline-flex; font-size: 12px; font-weight: 400; }
.ones-glance .ones-status-tone-info { color: #176887; }
.ones-glance .ones-status-tone-warning { color: #815307; }
.ones-glance .ones-status-tone-success { color: #236746; }
.ones-glance .ones-status-tone-danger { color: #973c36; }
.ones-glance .ones-status-tone-neutral { color: #5d6b72; }
.ones-glance .ones-status-label { display: inline; color: inherit; font-size: inherit; font-weight: inherit; }

.ones-issue-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; margin-bottom: 5px; min-width: 0; }
.ones-issue-type, .ones-type-label { display: inline-flex; max-width: 100%; align-items: flex-start; gap: 5px; min-height: 22px; padding: 2px 7px; border: 1px solid #d8e1e4; border-radius: 4px; color: #506169; background: #f7f9fa; font-size: 10px; font-weight: 700; line-height: 1.2; }
.ones-issue-type svg, .ones-type-label svg { width: 13px; height: 13px; flex: 0 0 auto; }
.ones-issue-type-label { min-width: 0; overflow-wrap: anywhere; }
.ones-issue-type-requirement { color: #80530b; border-color: #e7cf9d; background: #fff8ea; }
.ones-issue-type-task { color: #256886; border-color: #bbd8e5; background: #f0f8fb; }
.ones-issue-type-subtask { color: #416995; border-color: #c7d8eb; background: #f3f7fc; }
.ones-issue-type-bug { color: #983f39; border-color: #e7c0bc; background: #fff3f1; }
.ones-issue-type-item { color: #4f6068; border-color: #d7e0e3; background: #f7f9fa; }
.ones-child-count { display: inline-flex; align-items: center; gap: 4px; color: #60727a; font-size: 10px; font-weight: 650; white-space: nowrap; }
.ones-child-count svg { width: 12px; height: 12px; color: #75858c; }
.ones-parent-context { display: inline-flex; min-width: 0; align-items: center; gap: 4px; color: #5d7079; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.ones-parent-context:hover { color: #176887; text-decoration: underline; }
.ones-parent-context svg { width: 12px; height: 12px; flex: 0 0 auto; }
.ones-issue-title-wrap { position: relative; min-width: 0; }
.ones-issue-level-1 { margin-left: 16px; }
.ones-issue-level-2 { margin-left: 32px; }
.ones-issue-level-3 { margin-left: 48px; }
.ones-issue-level-1::before, .ones-issue-level-2::before, .ones-issue-level-3::before { position: absolute; top: 3px; bottom: 3px; left: -9px; width: 1px; content: ""; background: #d9e3e6; }
.ones-issue-title { display: flex; align-items: flex-start; gap: 6px; }
.ones-issue-title .ones-key { flex: 0 0 auto; margin-right: 0; }
.ones-issue-title > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.ones-child-marker { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 2px; color: #7394a1; }
.ones-glance .ones-status { width: fit-content; max-width: 100%; }

@media (max-width: 700px) {
  .ones-table { table-layout: fixed; }
  .ones-table th:nth-child(2), .ones-table td:nth-child(2), .ones-table th:nth-child(3), .ones-table td:nth-child(3), .ones-table th:nth-child(4), .ones-table td:nth-child(4), .ones-table th:nth-child(5), .ones-table td:nth-child(5), .ones-table th:nth-child(6), .ones-table td:nth-child(6) { display: none; }
  .ones-table th:first-child, .ones-table td:first-child { min-width: 0; }
  .ones-table th, .ones-table td { padding-right: 10px; padding-left: 10px; }
  .ones-table th:last-child, .ones-table td:last-child { width: 98px; padding-right: 4px; padding-left: 4px; }
  .ones-filter-bar .icon-button { width: 44px; height: 44px; min-height: 44px; }
  .ones-issue-level-1 { margin-left: 12px; }
  .ones-issue-level-2 { margin-left: 24px; }
  .ones-issue-level-3 { margin-left: 36px; }
  .ones-status-mobile { display: inline-flex; max-width: 100%; }
  .ones-parent-context { flex-basis: 100%; }
  .ones-row-actions .icon-button { width: 44px; min-height: 44px; }
}

/* Customer issue intake and its authenticated triage workspace. */
.customer-report-body { min-height: 100vh; margin: 0; padding: 36px 18px; background: #edf1f3; }
.customer-report-shell { width: min(760px, 100%); margin: 0 auto; }
.customer-report-header { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border: 1px solid #cbd5da; border-bottom: 0; border-radius: 7px 7px 0 0; background: #243d4a; color: #fff; }
.customer-report-header .brand-mark { flex: 0 0 auto; }
.customer-report-header p { margin: 0 0 5px; color: #d6e4e8; font-size: 12px; font-weight: 700; }
.customer-report-header h1 { margin: 0; color: inherit; font-size: 25px; }
.customer-report-header dl { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; }
.customer-report-header dl div { display: flex; gap: 6px; font-size: 13px; }
.customer-report-header dt { color: #b9cdd4; }
.customer-report-header dd { margin: 0; overflow-wrap: anywhere; }
.customer-report-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 22px; border: 1px solid #cbd5da; border-radius: 0 0 7px 7px; background: #fff; }
.customer-report-form label, .customer-issue-properties label, .customer-note-form label { display: grid; gap: 7px; min-width: 0; color: #41515a; font-size: 13px; font-weight: 650; }
.customer-report-form label.wide { grid-column: 1 / -1; }
.customer-file-field small { color: #66727e; font-weight: 400; line-height: 1.4; }
.customer-upload-file-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.customer-upload-file-list.wide { grid-column: 1 / -1; }
.customer-upload-file { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 28px; gap: 9px 10px; align-items: center; padding: 9px; border: 1px solid #d8e1e4; background: #f8fafb; }
.customer-upload-file-preview { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 4px; color: #60727a; background: #e7eef1; font-size: 9px; font-weight: 700; object-fit: cover; cursor: zoom-in; }
.customer-upload-file-details { min-width: 0; display: grid; gap: 2px; }
.customer-upload-file-details strong, .customer-upload-file-details small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-upload-file-details small, .customer-upload-file-status { color: #66727e; font-size: 12px; }
.customer-upload-file-visibility { display: inline-flex; align-items: center; gap: 5px; width: fit-content; color: #40606a; font-size: 11px; font-weight: 400; }
.customer-upload-file-visibility input { margin: 0; }
.customer-upload-file-status { white-space: nowrap; }
.customer-upload-file-remove { width: 28px; height: 28px; padding: 0; border: 1px solid #cbd5da; color: #66727e; background: #fff; font-size: 19px; line-height: 1; cursor: pointer; }
.customer-upload-file-remove:hover { border-color: #b13a32; color: #b13a32; }
.customer-upload-file progress { grid-column: 2 / -1; width: 100%; height: 7px; accent-color: #167b83; }
.customer-upload-error { margin: 0; }
.customer-report-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding-top: 4px; }
.customer-submitted-shell { min-height: calc(100vh - 72px); display: grid; place-items: center; }
.customer-submitted-card { width: min(620px, 100%); display: grid; justify-items: center; gap: 12px; padding: 38px 26px; border: 1px solid #c8d7cf; border-radius: 7px; background: #fff; text-align: center; }
.customer-submitted-card > svg { width: 42px; height: 42px; color: #237451; }
.customer-submitted-card p, .customer-submitted-card h1, .customer-submitted-card span { margin: 0; }
.customer-submitted-card h1 { font-size: 22px; letter-spacing: 0; }
.customer-submitted-card span { color: #66727e; font-size: 13px; }
.customer-submitted-card .button { margin-top: 8px; }
.customer-upload-more-form { width: min(100%, 500px); display: grid; gap: 10px; padding: 16px; border: 1px solid #d8e1e4; background: #f8fafb; text-align: left; }
.customer-upload-more-form label { display: grid; gap: 7px; color: #41515a; font-size: 13px; font-weight: 650; }
.customer-upload-more-form small { color: #66727e; font-weight: 400; line-height: 1.4; }
.customer-upload-more-form .button { justify-self: end; margin-top: 0; }
.customer-upload-notice { width: min(100%, 500px); margin: 0; text-align: left; }
.customer-uploaded-files { width: min(100%, 500px); border-top: 1px solid #d8e1e4; padding-top: 14px; text-align: left; }
.customer-uploaded-files h2 { margin: 0 0 8px; font-size: 14px; }
.customer-uploaded-files ul { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.customer-uploaded-files li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border: 1px solid #d8e1e4; background: #f8fafb; }
.customer-uploaded-files img, .customer-uploaded-file-placeholder { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 4px; color: #60727a; background: #e7eef1; font-size: 9px; font-weight: 700; object-fit: cover; }
.customer-uploaded-files span:not(.customer-uploaded-file-placeholder) { min-width: 0; display: grid; gap: 3px; }
.customer-uploaded-files strong, .customer-uploaded-files small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-uploaded-files small { color: #66727e; }
.customer-tracking-card { width: min(620px, 100%); }
.customer-tracking-link-action { width: min(100%, 500px); display: flex; margin-top: -2px; }.customer-tracking-copy-link { width: 100%; min-height: 42px; color: #fff; }.customer-tracking-copy-link span { color: #fff; }.customer-tracking-copy-link svg { width: 17px; height: 17px; }.customer-tracking-copy-link.copy-success { color: #fff; border-color: #237451; background: #237451; }
.customer-tracking-supplement { width: min(100%, 500px); justify-content: center; }
.customer-tracking-status { width: min(100%, 500px); display: grid; gap: 4px; padding: 14px; border: 1px solid #c8d7cf; background: #f8fafb; text-align: left; }
.customer-tracking-status strong { color: #2c5969; font-size: 17px; }.customer-tracking-status small, .customer-tracking-result small { color: #66727e; }
.customer-tracking-status.state-processing { border-color: #9ac5d2; background: #f0f8fa; }.customer-tracking-status.state-resolved { border-color: #a9d7bd; background: #f1f9f3; }.customer-tracking-status.state-resolved strong { color: #237451; }
.customer-tracking-result { width: min(100%, 500px); padding-top: 14px; border-top: 1px solid #d8e1e4; text-align: left; }.customer-tracking-result h2 { margin: 0 0 8px; font-size: 14px; }.customer-tracking-result > div { white-space: pre-wrap; overflow-wrap: anywhere; color: #2e4650; line-height: 1.55; }
.customer-tracking-description { width: min(100%, 500px); padding-top: 14px; border-top: 1px solid #d8e1e4; text-align: left; }.customer-tracking-description h2 { margin: 0 0 8px; font-size: 14px; }.customer-tracking-description > div { color: #2e4650; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-tracking-upload-form, .customer-tracking-attachments { width: min(100%, 500px); }.customer-tracking-attachments li { grid-template-columns: 46px minmax(0, 1fr); }
.customer-issue-filter-bar { grid-template-columns: 130px repeat(3, minmax(140px, 1fr)) minmax(220px, 1.5fr) auto; }
.issue-archive-info { display: grid; gap: 3px; white-space: nowrap; }
.issue-archive-info span { color: #94a3b8; font-size: 11px; }
.issue-is-archived .customer-issue-properties,
.issue-is-archived .customer-note-form,
.issue-is-archived .customer-message-actions,
.issue-is-archived .customer-attachment-actions form { display: none; }
.customer-issue-title { display: grid; gap: 3px; min-width: 190px; }
.customer-issue-title strong { color: #4f6876; font-size: 11px; }
.customer-issue-title span, .customer-issue-table td { overflow-wrap: anywhere; }
.customer-issue-table td > strong, .customer-link-table td > strong { display: block; }
.customer-issue-table .muted, .customer-link-table .muted { display: block; margin-top: 3px; }
.customer-link-copy { display: flex; align-items: center; gap: 5px; max-width: 440px; }
.customer-link-url { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; gap: 6px; color: #2c6076; }
.customer-link-url code { min-width: 0; flex: 1; }
.customer-link-url svg { width: 14px; height: 14px; flex: 0 0 auto; color: #6e858e; }
.customer-link-url:hover code { text-decoration: underline; }
.customer-link-copy code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-link-send-hint { display: block; max-width: 440px; margin-top: 5px; color: #66727e; font-size: 11px; line-height: 1.4; }
.customer-link-issue-count { color: #167b83; font-weight: 700; text-decoration: none; }
.customer-link-issue-count:hover, .customer-link-issue-count:focus-visible { color: #0e6870; text-decoration: underline; }
.customer-link-actions { display: flex; justify-content: flex-end; gap: 3px; }
.customer-link-actions form { margin: 0; }
.customer-issue-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.customer-issue-main, .customer-issue-side { display: grid; gap: 18px; min-width: 0; }
.customer-issue-copy { padding: 18px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.solution-config-form { display: grid; gap: 14px; padding: 16px; }
.solution-config-form > label { display: grid; gap: 6px; max-width: 340px; color: #41515a; font-size: 13px; font-weight: 650; }
.solution-waiting-note { padding: 12px 14px; border: 1px solid #fde68a; border-radius: 6px; color: #92400e; background: #fffbeb; font-size: 13px; line-height: 1.55; }
.solution-attachment-picker { display: grid; gap: 9px; padding: 14px; border: 1px solid #dbe5e9; border-radius: 6px; background: #f8fafc; }
.solution-attachment-picker header { color: #334155; font-size: 13px; }
.solution-attachment-picker ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.solution-attachment-picker li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; min-width: 0; border: 1px solid #e2e8f0; border-radius: 5px; background: #fff; }
.solution-attachment-picker li > label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; padding: 8px 9px; cursor: pointer; }
.solution-attachment-picker input[type="checkbox"] { width: 16px; min-height: 16px; margin: 0; accent-color: #0f766e; }
.solution-attachment-picker label > span { min-width: 0; display: grid; gap: 2px; }
.solution-attachment-picker strong, .solution-attachment-picker small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.solution-attachment-picker small { color: #64748b; font-size: 11px; font-weight: 400; }
.solution-attachment-picker .icon-button { width: 32px; height: 32px; margin-right: 5px; padding: 0; }
.solution-rich-text { min-height: 0; }
.solution-rich-text .rich-text-editor { min-height: 210px; }
.solution-rich-text .rich-text-editor img { display: block; max-width: min(100%, 680px); max-height: 420px; margin: 10px 0; border: 1px solid #dbe5e9; object-fit: contain; }
[data-solution-section][hidden] { display: none; }
.customer-attachment-list > div { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #e5eaed; }
.customer-attachment-list > .empty-state { display: block; width: 100%; }
.customer-attachment-list > div:last-child { border-bottom: 0; }
.customer-attachment-list span { min-width: 0; display: grid; gap: 2px; }
.customer-attachment-list strong, .customer-attachment-list small { overflow-wrap: anywhere; }
.customer-attachment-list small { color: #66727e; }
.customer-image-preview { color: #256886; }
.customer-image-dialog { width: min(96vw, 1800px); max-width: none; max-height: 96vh; margin: auto; padding: 38px 16px 16px; overflow: hidden; border: 0; background: #111b21; }
.customer-image-dialog::backdrop { background: rgba(8, 15, 20, .84); }
.customer-image-dialog img { display: block; width: auto; max-width: 94vw; height: auto; max-height: 90vh; margin: 0 auto; object-fit: contain; cursor: grab; user-select: none; touch-action: none; transform-origin: center center; will-change: transform; }
.customer-image-dialog img:active { cursor: grabbing; }
.customer-image-dialog video { display: block; width: min(94vw, 1280px); max-height: 90vh; margin: 0 auto; background: #000; }
.customer-image-dialog-close { position: absolute; top: 8px; right: 8px; color: #fff; border-color: #60737e; background: #1f3039; }
.customer-media-zoom-toolbar { position: absolute; z-index: 1; top: 8px; left: 50%; display: flex; align-items: center; gap: 4px; transform: translateX(-50%); }
.customer-media-zoom-toolbar[hidden] { display: none; }
.customer-media-zoom-toolbar .icon-button { width: 32px; height: 32px; padding: 0; color: #fff; border-color: #60737e; background: #1f3039; }
.customer-media-zoom-toolbar .icon-button:hover, .customer-media-zoom-toolbar .icon-button:focus-visible { border-color: #9ac5d2; background: #2b414d; }
.customer-media-zoom-level { min-width: 50px; color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }
.attachment-state { padding: 3px 7px; border: 1px solid #d4dce0; border-radius: 4px; color: #66727e; background: #f7f9fa; font-size: 11px; font-style: normal; white-space: nowrap; }
.attachment-state.state-clean { color: #237451; border-color: #b8d9c7; background: #f0f8f3; }
.attachment-state.state-infected, .attachment-state.state-error { color: #a54139; border-color: #e6bbb6; background: #fff2f0; }
.customer-note-list > article { padding: 15px 18px; border-bottom: 1px solid #e5eaed; }
.customer-note-list > article:last-child { border-bottom: 0; }
.customer-note-list time { margin-left: 8px; color: #66727e; font-size: 12px; }
.customer-note-list p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-message-list > article { padding: 15px 18px; border-bottom: 1px solid #e5eaed; }
.customer-message-list > article:last-child { border-bottom: 0; }
.customer-message-list header { display: flex; align-items: center; gap: 8px; }
.customer-message-actions { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
.customer-message-actions form { margin: 0; }
.customer-message-editor { position: relative; }
.customer-message-editor > summary { list-style: none; }
.customer-message-editor > summary::-webkit-details-marker { display: none; }
.customer-message-editor[open] > summary { color: #176b74; border-color: #88bac0; background: #e7f3f4; }
.customer-message-editor > form { position: absolute; z-index: 2; top: calc(100% + 6px); right: 0; display: grid; gap: 10px; width: min(430px, calc(100vw - 40px)); padding: 14px; border: 1px solid #c9d8dc; background: #fff; box-shadow: 0 12px 28px rgba(28, 55, 66, .18); }
.customer-message-editor > form > label { display: grid; gap: 6px; color: #41515a; font-size: 12px; font-weight: 650; }
.customer-message-editor > form .button { justify-self: end; }
.customer-message-visibility { display: grid; gap: 6px; margin: 0; padding: 9px; border: 1px solid #d8e1e4; }
.customer-message-visibility legend { padding: 0 4px; color: #66727e; font-size: 11px; }
.customer-message-visibility label { display: flex; align-items: center; gap: 7px; color: #41515a; font-size: 12px; }
.customer-message-attachment-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.customer-message-attachment-actions form { display: flex; margin: 0; }
.customer-message-list time { color: #66727e; font-size: 12px; }
.customer-message-list p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-share-state { padding: 2px 6px; border: 1px solid #d4dce0; border-radius: 3px; color: #66727e; background: #f7f9fa; font-size: 11px; }
.customer-share-state.is-public { color: #237451; border-color: #b8d9c7; background: #f0f8f3; }
.customer-message-attachments { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.customer-message-attachments li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid #d8e1e4; background: #f8fafb; }
.customer-message-attachments span { display: grid; min-width: 0; gap: 2px; }
.customer-message-attachments strong, .customer-message-attachments small { overflow-wrap: anywhere; }
.customer-message-attachments small { color: #66727e; }
.customer-note-form { display: grid; gap: 10px; padding: 16px; border-top: 1px solid #e5eaed; }
.customer-note-form .button { justify-self: end; }
.customer-composer-attachment { display: grid; grid-template-columns: 18px auto minmax(0, 1fr); align-items: center; gap: 7px; width: fit-content; color: #2f6f78; cursor: pointer; font-size: 13px; font-weight: 650; }
.customer-composer-attachment input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.customer-composer-attachment small { grid-column: 1 / -1; color: #66727e; font-weight: 400; line-height: 1.4; }
.customer-share-toggle { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: start; color: #2e4650; font-weight: 650; }
.customer-share-toggle input { margin-top: 3px; }
.customer-share-toggle small { grid-column: 2; color: #66727e; font-weight: 400; }
.customer-tracking-replies { display: grid; gap: 12px; }
.customer-tracking-replies article { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid #e5eaed; }
.customer-tracking-replies article:first-of-type { padding-top: 0; border-top: 0; }
.customer-tracking-replies article > div { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; color: #2e4650; line-height: 1.55; }
.customer-tracking-replies ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.customer-tracking-replies li { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px; border: 1px solid #d8e1e4; background: #f8fafb; }
.customer-tracking-media-thumb { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid #afd1d6; border-radius: 4px; color: #176b74; background: #e7f3f4; cursor: pointer; }
.customer-tracking-media-thumb:hover { border-color: #167b83; background: #d7ecee; }
.customer-tracking-media-thumb svg { width: 20px; height: 20px; }
.customer-tracking-attachment-download { justify-self: end; }
.customer-issue-properties { display: grid; gap: 14px; padding: 16px; }
.customer-issue-properties dl { display: grid; gap: 0; margin: 0; }
.customer-issue-properties dl div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-bottom: 1px solid #e5eaed; }
.customer-issue-properties dt { color: #66727e; font-size: 12px; }
.customer-issue-properties dd { margin: 0; overflow-wrap: anywhere; }
.customer-analysis-form { display: grid; gap: 12px; padding: 16px; }
.customer-analysis-form > label { display: grid; gap: 7px; color: #41515a; font-size: 13px; font-weight: 650; }
.customer-analysis-projects { display: grid; gap: 8px; }
.customer-analysis-project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .8fr); gap: 10px; align-items: center; padding: 10px; border: 1px solid #d8e1e4; background: #f8fafb; }
.customer-analysis-project .toggle { min-width: 0; }
.customer-analysis-unavailable { padding: 16px; color: #66727e; }
.customer-analysis-thread-list { display: grid; gap: 8px; padding: 0 16px 16px; }
.customer-analysis-thread-list article { display: grid; gap: 5px; padding: 12px; border: 1px solid #d8e1e4; background: #f8fafb; }
.customer-analysis-thread-list small { color: #66727e; overflow-wrap: anywhere; }
.customer-analysis-thread-list p { margin: 0; color: #a54139; overflow-wrap: anywhere; }
.customer-analysis-thread-list article > div { display: flex; align-items: center; gap: 6px; }
.customer-analysis-thread-list form { margin: 0; }

@media (max-width: 700px) {
  .customer-report-body { padding: 16px 10px; }
  .customer-report-header { padding: 17px; }
  .customer-report-header h1 { font-size: 21px; }
  .customer-report-form { grid-template-columns: 1fr; padding: 17px; }
  .customer-report-form label.wide { grid-column: auto; }
  .customer-report-actions .button { width: 100%; }
  .customer-upload-more-form .button { width: 100%; }
  .customer-upload-file { grid-template-columns: 38px minmax(0, 1fr) 28px; }
  .customer-upload-file-preview { width: 38px; height: 38px; }
  .customer-upload-file-status { grid-column: 2; }
  .customer-upload-file-remove { grid-column: 3; grid-row: 1 / span 2; }
  .customer-issue-filter-bar { grid-template-columns: 1fr 1fr; }
  .customer-issue-search { grid-column: 1 / -1; }
  .customer-issue-table th:nth-child(2), .customer-issue-table td:nth-child(2), .customer-issue-table th:nth-child(5), .customer-issue-table td:nth-child(5), .customer-issue-table th:nth-child(6), .customer-issue-table td:nth-child(6), .customer-issue-table th:nth-child(7), .customer-issue-table td:nth-child(7) { display: none; }
  .customer-link-table th:nth-child(3), .customer-link-table td:nth-child(3), .customer-link-table th:nth-child(5), .customer-link-table td:nth-child(5) { display: none; }
  .customer-link-copy { max-width: 180px; }
  .customer-attachment-list > div { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .customer-attachment-list .attachment-state { grid-column: 2; justify-self: start; }
  .customer-attachment-actions { grid-column: 3; grid-row: 1 / span 2; }
  .customer-message-attachments li { grid-template-columns: 18px minmax(0, 1fr) auto; }
  .customer-message-actions { gap: 3px; }
  .customer-image-dialog { width: 100vw; max-height: 100vh; padding: 44px 6px 6px; }
  .customer-image-dialog img { max-width: 98vw; max-height: 92vh; }
  .customer-media-zoom-toolbar { top: 8px; left: 8px; transform: none; }
  .customer-analysis-project { grid-template-columns: 1fr; }
}

/* Issue Radar visual system. Keep the existing feature styles above intact and
   give the intake workspace a single, calmer surface hierarchy. */
:root {
  --ink: #0f172a;
  --subtle-ink: #475569;
  --surface: #ffffff;
  --canvas: #f4f7f8;
  --line: #e2e8f0;
  --teal: #0f766e;
  --teal-dark: #115e59;
}

html { background: var(--canvas); }
body { color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }

.topbar {
  height: 56px;
  padding: 0 max(24px, calc((100vw - 1440px) / 2 + 24px));
  gap: 32px;
  border-bottom-color: rgba(255,255,255,.08);
  background: #12141f;
  box-shadow: 0 1px 0 rgba(0,0,0,.22);
}
.brand { gap: 10px; color: #fff; }
.topbar .brand-mark {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(45,212,191,.3);
  border-radius: 8px;
  background: rgba(45,212,191,.15) !important;
  color: #99f6e4 !important;
}
.topbar .brand-mark svg { width: 18px; height: 18px; }
.brand-copy { line-height: 1.1; }
.brand-copy strong { display: block; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.brand-copy small { display: block; margin-top: 3px; color: #94a3b8; font-size: 9px; font-weight: 500; letter-spacing: .24em; }
.topbar nav { gap: 28px; }
.topbar .nav-link {
  position: relative;
  gap: 0;
  padding: 1px 0 0;
  border-bottom: 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}
.topbar .nav-link svg { display: none; }
.topbar .nav-link:hover { color: #e2e8f0; border-bottom-color: transparent; }
.topbar .nav-link.active { color: #fff; border-bottom-color: transparent; font-weight: 500; }
.topbar .nav-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -19px;
  width: auto;
  height: 2px;
  background: transparent;
}
.topbar .nav-link:hover::after, .topbar .nav-link.active::after { width: auto; }
.topbar .nav-link.active::after { background: #2dd4bf; }
.user-menu { gap: 10px; }
.user-avatar {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(45,212,191,.3);
  border-radius: 50%;
  color: #99f6e4;
  background: rgba(45,212,191,.2);
  font-size: 11px;
  font-weight: 700;
}
.topbar .username { color: #cbd5e1; font-size: 13px; font-weight: 400; }
.topbar .icon-button { color: #64748b; background: transparent; }
.topbar .icon-button:hover { color: #cbd5e1; background: transparent; }

.page-shell { width: min(1200px, 100%); padding: 32px 24px 64px; }
.page-heading { align-items: flex-end; margin-bottom: 24px; gap: 16px; }
.page-heading h1 { margin-bottom: 6px; color: var(--ink); font-size: 26px; font-weight: 600; letter-spacing: 0; }
.page-heading p { color: #64748b; font-size: 13px; }
.eyebrow { margin-bottom: 7px; color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: .18em; }
.heading-actions { gap: 10px; }
.button, .icon-button {
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.button { padding: 8px 14px; }
.button:hover, .icon-button:hover { border-color: #94a3b8; background: #f8fafc; }
.button.primary, .icon-button.primary { border-color: var(--teal); color: #fff; background: var(--teal); }
.button.primary:hover, .icon-button.primary:hover { border-color: var(--teal-dark); background: var(--teal-dark); }
.button svg, .icon-button svg { width: 16px; height: 16px; }

.issue-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.issue-stat {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.issue-stat:hover { border-color: #99f6e4; box-shadow: 0 4px 12px rgba(15,118,110,.08); }
.issue-stat.is-active { border-color: rgba(15,118,110,.6); box-shadow: 0 0 0 1px rgba(15,118,110,.18), 0 4px 12px rgba(15,118,110,.08); }
.issue-stat span { color: #64748b; font-size: 12px; }
.issue-stat strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 26px; line-height: 1; font-weight: 600; }
.issue-stat-new strong { color: #d97706; }
.issue-stat-processing strong { color: var(--teal); }
.issue-stat-resolved strong { color: #059669; }

.filter-bar {
  grid-template-columns: 150px 180px minmax(220px, 1fr) auto;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
label > span { color: #64748b; font-size: 12px; font-weight: 500; }
input, select, textarea { min-height: 38px; border-color: #cbd5e1; border-radius: 7px; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(45,212,191,.18); border-color: var(--teal); }
.filter-actions { display: flex; align-items: center; gap: 8px; }
.filter-actions .icon-button { width: 38px; height: 38px; }

.table-section, .timeline-section, .discussion-section, .form-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.form-section { padding: 0; margin-bottom: 20px; }
.panel-heading { min-height: 52px; height: auto; padding: 14px 20px; border-bottom-color: #f1f5f9; }
.panel-heading h2, .section-heading h2 { color: var(--ink); font-size: 15px; font-weight: 600; }
.panel-heading > span { color: #94a3b8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
th { padding: 12px 16px; color: #94a3b8; background: #fafbfc; font-size: 12px; font-weight: 500; text-transform: none; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
th, td { border-bottom-color: #f1f5f9; }
td { padding: 16px; color: #64748b; font-size: 13px; }
tbody tr:hover { background: rgba(20,184,166,.05); }
.customer-issue-title { gap: 5px; }
.customer-issue-title strong { color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 500; }
.customer-issue-title span { color: #1e293b; font-weight: 500; }
.customer-issue-table td > strong, .customer-link-table td > strong { color: #1e293b; font-weight: 500; }
.customer-issue-table .muted, .customer-link-table .muted { color: #94a3b8; }
.status-pill { min-height: 24px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.status-pill::before { width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; content: ""; }
.status-pill.status-new { color: #b45309; border-color: #fde68a; background: #fffbeb; }
.status-pill.status-processing { color: var(--teal); border-color: #99f6e4; background: #f0fdfa; }
.status-pill.status-resolved { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.row-actions { gap: 4px; }
.icon-button.table-action { width: 32px; height: 32px; min-height: 32px; border: 0; border-radius: 6px; color: #cbd5e1; }
.icon-button.table-action:hover { border-color: transparent; color: var(--teal); background: #fff; }
.empty-state { padding: 64px 35px !important; color: #94a3b8; }

.section-heading { margin: 0; padding: 20px 20px 0; }
.form-section .section-heading { margin-bottom: 18px; }
.form-grid { padding: 0 20px 20px; }
.form-grid.compact { grid-template-columns: 1fr 1fr auto; gap: 16px; }
.form-actions { display: flex; align-items: end; }
.customer-link-copy { max-width: 460px; }
.customer-link-url { color: var(--teal); }
.customer-link-url svg { color: #94a3b8; }
.customer-link-send-hint { color: #94a3b8; }
.customer-link-issue-count { color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.customer-link-actions .icon-button { color: #94a3b8; }
.customer-link-actions .icon-button:hover { color: var(--teal); }

.detail-heading h1 { color: var(--ink); font-size: 24px; font-weight: 600; letter-spacing: 0; }
.customer-issue-detail-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
.customer-issue-main, .customer-issue-side { gap: 20px; }
.customer-issue-side { position: sticky; top: 72px; }
.customer-issue-copy { padding: 20px; color: #475569; font-size: 13.5px; line-height: 1.75; }
.customer-issue-description .panel-heading > span { max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-issue-description .panel-heading-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.customer-issue-description .panel-heading-actions > span { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-attachment-list > div { padding: 14px 20px; border-bottom-color: #f1f5f9; }
.customer-attachment-list > div:hover, .customer-message-list > article:hover { background: rgba(20,184,166,.04); }
.customer-attachment-list > div > svg { color: #64748b; }
.customer-attachment-list strong, .customer-message-list strong { color: #334155; font-weight: 500; }
.customer-attachment-list small, .customer-message-list time { color: #94a3b8; }
.customer-attachment-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.customer-attachment-actions form { display: flex; margin: 0; }
.copy-all-download-links { min-height: 32px; margin-left: auto; padding: 0 10px; font-size: 12px; }
.copy-complete-issue { min-height: 38px; }
.customer-link-actions .customer-link-toggle-action.is-disable { color: #b45309; border-color: #fcd34d; background: #fffbeb; }
.customer-link-actions .customer-link-toggle-action.is-enable { color: #047857; border-color: #86efac; background: #f0fdf4; }
.customer-link-actions .customer-link-regenerate-action { color: #0369a1; border-color: #93c5fd; background: #eff6ff; }
.customer-link-actions .customer-link-toggle-action:hover { color: #92400e; border-color: #f59e0b; background: #fef3c7; }
.customer-link-actions .customer-link-toggle-action.is-enable:hover { color: #065f46; border-color: #34d399; background: #ecfdf5; }
.customer-link-actions .customer-link-regenerate-action:hover { color: #075985; border-color: #60a5fa; background: #dbeafe; }
.attachment-state { min-height: 23px; padding: 3px 9px; border-radius: 999px; }
.customer-issue-side > .table-section .panel-heading { padding-left: 20px; }
.customer-issue-side > .table-section > dl { padding: 12px 20px; margin: 0; }
.customer-issue-side > .table-section > dl > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #f1f5f9; }
.customer-issue-side > .table-section > dl > div:last-child { border-bottom: 0; }
.customer-issue-side > .table-section dt { color: #94a3b8; font-size: 12px; }
.customer-issue-side > .table-section dd { max-width: 65%; margin: 0; color: #475569; font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.customer-issue-properties { gap: 14px; padding: 16px 20px 20px; border-top: 1px solid #f1f5f9; }
.customer-issue-properties label > span { font-size: 12px; }
.customer-note-form { gap: 12px; padding: 18px 20px 20px; }
.customer-message-list > article { padding: 16px 20px; }
.customer-message-list p { color: #475569; line-height: 1.65; }
.customer-share-state { border-radius: 999px; }
.customer-composer-attachment { color: var(--teal); }

.settings-page-shell { width: min(760px, 100%); }
.system-settings-section { margin: 0; }
.system-settings-form { display: grid; gap: 0; }
.system-setting-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 17px 20px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.system-setting-row > span { display: grid; gap: 4px; }
.system-setting-row strong { color: #334155; font-size: 14px; font-weight: 600; }
.system-setting-row small { color: #64748b; font-size: 12px; font-weight: 400; }
.system-setting-row input { width: 42px; min-height: 22px; accent-color: var(--teal); }
.system-settings-password { display: grid; gap: 7px; padding: 17px 20px 0; }
.system-settings-password input { width: min(360px, 100%); }
.system-settings-form .form-actions { justify-content: flex-end; padding: 16px 20px 20px; }
.system-settings-form button:disabled, .system-settings-form input:disabled { cursor: not-allowed; opacity: .55; }
.user-management-shell { width: min(980px, 100%); }
.user-create-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px auto; align-items: end; }
.user-management-table td { vertical-align: middle; }
.user-role { display: inline-flex; min-width: 48px; justify-content: center; border: 1px solid #bae6fd; border-radius: 999px; background: #f0f9ff; color: #0369a1; font-size: 12px; line-height: 24px; }
.user-role.administrator { border-color: #99f6e4; background: #f0fdfa; color: #0f766e; }
.user-role-form { display: flex; align-items: center; gap: 8px; min-width: 152px; }
.user-role-form select { min-width: 0; height: 36px; }
.user-role-form .icon-button { flex: 0 0 36px; width: 36px; height: 36px; }
.user-role-self-hint { display: block; margin-top: 4px; color: #94a3b8; font-size: 11px; }
.user-password-form { display: flex; align-items: center; gap: 8px; min-width: 240px; }
.user-password-form input { min-width: 0; height: 36px; }
.user-password-form .icon-button { flex: 0 0 36px; width: 36px; height: 36px; }

.customer-report-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 48px 16px;
  background-color: #f4f7f8;
  background-image: linear-gradient(to right, rgba(15,118,110,.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(15,118,110,.04) 1px, transparent 1px);
  background-size: 36px 36px;
}
.customer-report-shell { width: min(760px, 100%); flex: 0 0 auto; }
.customer-report-header {
  padding: 24px 28px;
  border: 1px solid #1e293b;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: #12141f;
  box-shadow: 0 12px 32px rgba(15,23,42,.08);
}
.customer-report-header .brand-mark { width: 42px; height: 42px; border-radius: 11px; }
.customer-report-header p { color: #94a3b8; font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.customer-report-header h1 { font-size: 24px; font-weight: 600; letter-spacing: 0; }
.customer-report-header dl { margin-top: 16px; }
.customer-report-header dt { color: #94a3b8; }
.customer-report-form {
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15,23,42,.08);
}
.customer-report-form label, .customer-issue-properties label, .customer-note-form label { color: #475569; font-weight: 600; }
.customer-report-form label > span { color: #475569; }
.customer-report-form input, .customer-report-form textarea { background: #fff; }
.customer-voice-recorder { display: grid; gap: 9px; margin-top: 3px; padding: 12px; border: 1px solid #dbe5e8; border-radius: 8px; background: #f8fbfb; }
.customer-voice-recorder-heading { display: grid; gap: 3px; }
.customer-voice-recorder-heading strong { color: #334155; font-size: 12px; }
.customer-voice-recorder-heading small, .customer-voice-recorder-status { color: #64748b; font-size: 11px; font-weight: 400; line-height: 1.45; }
.customer-voice-recorder-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.customer-voice-recorder-controls audio { width: min(100%, 360px); height: 36px; }
.customer-voice-recorder-controls .icon-button { width: 34px; height: 34px; min-height: 34px; }
.customer-report-actions { padding-top: 6px; }
.customer-report-actions .button { min-width: 132px; }
.customer-reusable-assets { grid-column: 1 / -1; display: grid; gap: 10px; padding: 15px 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.customer-reusable-assets header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.customer-reusable-assets h2 { margin: 0; color: #334155; font-size: 14px; }
.customer-reusable-assets header p { margin: 0; color: #94a3b8; font-size: 12px; }
.customer-reusable-assets ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.customer-reusable-assets li { display: grid; grid-template-columns: minmax(0, 1fr) 36px; min-width: 0; border: 1px solid #e2e8f0; background: #f8fafc; }
.customer-reusable-assets label { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 9px; padding: 9px 10px; cursor: pointer; }
.customer-reusable-assets input { width: 16px; min-height: 16px; margin: 0; accent-color: #0f766e; }
.customer-reusable-asset-file { display: grid; min-width: 0; gap: 2px; }
.customer-reusable-asset-file strong, .customer-reusable-asset-file small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-reusable-asset-file small { color: #64748b; font-size: 12px; font-weight: 400; }
.customer-reusable-media-preview { align-self: center; width: 32px; height: 32px; min-height: 32px; margin-right: 8px; color: #176b74; }
.customer-submitted-shell { align-items: center; }
.customer-submitted-card {
  width: min(580px, 100%);
  gap: 12px;
  padding: 42px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15,118,110,.12);
}
.customer-submitted-card > svg { width: 44px; height: 44px; color: #0f766e; }
.customer-submitted-card h1 { color: var(--ink); font-size: 22px; font-weight: 600; }
.customer-submitted-card > span { color: #94a3b8; }
.customer-upload-more-form { border: 1px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; }
.customer-uploaded-files li { border-color: #e2e8f0; border-radius: 8px; background: #f8fafc; }
.customer-tracking-card { width: min(580px, 100%); }
.customer-tracking-link-action, .customer-tracking-status, .customer-tracking-description, .customer-tracking-result, .customer-tracking-upload-form, .customer-tracking-attachments, .customer-upload-notice { width: min(100%, 500px); }
.customer-tracking-status { padding: 16px; border-radius: 12px; }
.customer-tracking-status strong { color: #0f766e; }
.customer-tracking-status.state-new { border-color: #fde68a; background: #fffbeb; }
.customer-tracking-status.state-new strong { color: #b45309; }
.customer-tracking-status.state-processing { border-color: #99f6e4; background: #f0fdfa; }
.customer-tracking-status.state-resolved { border-color: #a7f3d0; background: #ecfdf5; }
.customer-tracking-status.state-resolved strong { color: #047857; }
.customer-tracking-progress { width: min(100%, 500px); display: flex; align-items: flex-start; padding: 5px 2px 2px; }
.tracking-step { min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 7px; color: #94a3b8; font-size: 12px; }
.tracking-step span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #e2e8f0; border-radius: 50%; color: #cbd5e1; background: #fff; font-size: 12px; font-weight: 600; }
.tracking-step strong { font-weight: 500; white-space: nowrap; }
.tracking-step.is-complete, .tracking-step.is-current { color: var(--teal); }
.tracking-step.is-complete span { border-color: var(--teal); color: #fff; background: var(--teal); }
.tracking-step.is-current span { border-color: var(--teal); color: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.12); }
.customer-tracking-progress > i { height: 1px; flex: 1; margin: 14px 8px 0; background: #e2e8f0; }
.customer-tracking-progress > i.is-complete { background: var(--teal); }
.customer-tracking-replies article { border-top-color: #e2e8f0; }
.customer-tracking-replies article header { display: flex; align-items: center; gap: 10px; }
.customer-tracking-replies article header strong { color: #334155; font-size: 13px; font-weight: 600; }
.customer-tracking-replies article header time { margin-left: auto; color: #94a3b8; font-size: 12px; white-space: nowrap; }
.customer-public-footer { margin: 20px 0 0; color: #94a3b8; font-size: 12px; text-align: center; }
.customer-report-body > .customer-public-footer { width: min(760px, 100%); }

@media (max-width: 700px) {
  .topbar { height: auto; min-height: 56px; flex-wrap: wrap; gap: 0 18px; padding: 10px 16px 0; }
  .topbar nav { order: 3; width: 100%; height: 40px; gap: 22px; }
  .topbar .nav-link::after { bottom: -1px; }
  .user-menu { margin-left: auto; }
  .topbar .username { display: none; }
  .page-shell { padding: 24px 14px 48px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .heading-actions, .heading-actions .button { width: 100%; }
  .heading-actions .button { justify-content: center; }
  .issue-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .filter-bar { gap: 10px; padding: 12px; }
  .customer-issue-filter-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .customer-issue-search { grid-column: 1 / -1; }
  .customer-issue-filter-bar .filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .filter-actions .button.primary { width: 38px; padding: 0; }
  .filter-actions .button.primary span { display: none; }
  .panel-heading { padding: 13px 14px; }
  th:first-child, td:first-child { padding-left: 14px; }
  th:last-child, td:last-child { padding-right: 14px; }
  td { padding: 14px; }
  .customer-issue-table { table-layout: fixed; width: 100%; }
  .customer-issue-table th:nth-child(3), .customer-issue-table td:nth-child(3) { display: none; }
  .customer-issue-table th:first-child, .customer-issue-table td:first-child { width: auto; min-width: 0; }
  .customer-issue-table th:nth-child(4), .customer-issue-table td:nth-child(4) { width: 106px; }
  .customer-issue-table th:last-child, .customer-issue-table td:last-child { width: 50px; padding-right: 8px; padding-left: 8px; }
  .customer-issue-table .customer-issue-title { min-width: 0; }
  .customer-issue-table .copy-trigger { display: none; }
  .customer-issue-table .row-actions { justify-content: center; }
  .customer-issue-table .row-actions > a { display: none; }
  .form-grid.compact { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .form-actions .button { width: 100%; }
  .section-heading { padding: 16px 16px 0; }
  .customer-issue-detail-layout { display: flex; flex-direction: column; align-items: stretch; }
  .customer-issue-main, .customer-issue-side { width: 100%; min-width: 0; }
  .customer-issue-side { position: static; order: -1; }
  .customer-issue-side > .table-section { display: flex; flex-direction: column; }
  .customer-issue-properties { order: 1; }
  .customer-issue-side > .table-section > dl { order: 2; border-top: 1px solid #f1f5f9; }
  .system-setting-row { padding-inline: 14px; }
  .system-settings-password { padding-inline: 14px; }
  .system-settings-form .form-actions { padding-inline: 14px; }
  .customer-report-body { padding: 20px 10px; }
  .customer-report-header { padding: 20px; }
  .customer-report-form { padding: 20px; }
  .customer-submitted-card { padding: 34px 18px; }
  .customer-tracking-progress { padding-inline: 0; }
  .tracking-step { min-width: 58px; }
  .customer-tracking-card { width: 100%; }
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 48px 16px;
  background-color: #f4f7f8;
  background-image: linear-gradient(to right, rgba(15,118,110,.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(15,118,110,.04) 1px, transparent 1px);
  background-size: 36px 36px;
}
.login-shell { width: min(420px, 100%); }
.login-brand { display: grid; justify-items: center; margin-bottom: 32px; text-align: center; }
.login-brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  color: #99f6e4;
  background: #12141f;
  box-shadow: 0 10px 24px rgba(15,23,42,.14);
}
.login-brand-mark svg { width: 23px; height: 23px; }
.login-brand h1 { margin: 0; color: #0f172a; font-size: 22px; font-weight: 600; letter-spacing: 0; }
.login-brand p { margin: 6px 0 0; color: #94a3b8; font-size: 10px; font-weight: 600; letter-spacing: .24em; }
.login-card { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: 0 12px 40px rgba(15,118,110,.12); }
.login-card-heading { padding: 28px 32px 20px; border-bottom: 1px solid #f1f5f9; }
.login-card-heading h2 { margin: 0; color: #0f172a; font-size: 18px; font-weight: 600; }
.login-card-heading p { margin: 6px 0 0; color: #64748b; font-size: 13px; line-height: 1.5; }
.login-card-body { padding: 24px 32px 28px; }
.login-card .login-form { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.login-notice { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid; border-radius: 8px; font-size: 13px; font-weight: 500; }
.login-notice svg { width: 16px; height: 16px; flex: 0 0 auto; }
.login-error { color: #b42318; border-color: #fecaca; background: #fef2f2; }
.login-success { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.login-form { display: grid; gap: 16px; }
.login-form > label { gap: 7px; }
.login-form > label > span:first-child { color: #64748b; font-size: 12px; font-weight: 500; }
.login-input { position: relative; display: block; }
.login-input input { min-height: 40px; padding: 9px 40px 9px 38px; border-color: #cbd5e1; border-radius: 8px; font-size: 14px; }
.login-input input::placeholder { color: #94a3b8; }
.login-input input:focus { outline: 3px solid rgba(20,184,166,.14); border-color: #0f766e; }
.login-input-icon { position: absolute; z-index: 1; top: 50%; left: 12px; width: 16px; height: 16px; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.login-password-toggle { position: absolute; top: 50%; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; transform: translateY(-50%); border: 0; border-radius: 5px; color: #94a3b8; background: transparent; cursor: pointer; }
.login-password-toggle:hover { color: #475569; background: #f8fafc; }
.login-password-toggle svg { width: 16px; height: 16px; }
.login-submit { width: 100%; min-height: 40px; margin-top: 4px; justify-content: center; font-size: 14px; }
.feishu-login { margin-top: 12px; }
.feishu-login-unavailable { margin-top: 12px; }
.feishu-login-unavailable p { margin: 8px 0 0; color: #64748b; font-size: 12px; line-height: 1.5; text-align: center; }
.login-footer { margin: 24px 0 0; color: #94a3b8; font-size: 12px; line-height: 1.7; text-align: center; }

.copy-feedback {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 22px;
  width: max-content;
  max-width: calc(100% - 32px);
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid #9acbb2;
  border-radius: 6px;
  color: #1d6848;
  background: #effaf5;
  box-shadow: 0 10px 24px rgba(24, 34, 48, .16);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .18s ease, transform .18s ease;
}
.copy-feedback.is-visible { opacity: 1; transform: translate(-50%, 0); }
.copy-feedback.is-failed { border-color: #e5b9b5; color: var(--red); background: #fff5f4; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.customer-site-list-dialog { width: min(460px, calc(100vw - 32px)); padding: 28px; border: 1px solid #cbd5e1; border-radius: 10px; color: #334155; background: #fff; box-shadow: 0 24px 60px rgba(15,23,42,.25); text-align: center; }
.customer-site-list-dialog::backdrop { background: rgba(15,23,42,.5); }
.customer-site-list-dialog > svg { width: 36px; height: 36px; color: #0f766e; }
.customer-site-list-dialog > p { margin: 10px 0 0; color: #64748b; font-size: 13px; line-height: 1.55; }
.customer-site-list-dialog h2 { margin: 10px 0 0; color: #0f172a; font-size: 19px; line-height: 1.4; }
.customer-site-list-dialog > .button { width: 100%; margin-top: 12px; justify-content: center; }
.customer-site-list-dialog-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; padding: 0; }
.customer-site-list-action { gap: 8px; }
.customer-site-list-action .button { flex: 1; justify-content: center; }
.customer-site-list-action .icon-button { width: 42px; flex: 0 0 42px; padding: 0; }
.customer-site-issues-shell { padding-bottom: 8px; }
.customer-site-issues-card { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 0 0 10px 10px; background: #fff; box-shadow: 0 12px 40px rgba(15,118,110,.12); }
.customer-site-issues-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #eef2f5; }
.customer-site-issues-toolbar > div { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.customer-site-issues-toolbar h2 { margin: 0; color: #0f172a; font-size: 16px; }
.customer-site-issues-toolbar span { color: #64748b; font-size: 12px; }
.customer-site-issues-view-toggle { width: 36px; height: 36px; flex: 0 0 36px; padding: 0; }
.customer-site-issues-view-toggle svg { width: 18px; height: 18px; }
.customer-site-issues-card article { display: grid; gap: 8px; padding: 18px 22px; border-bottom: 1px solid #eef2f5; }
.customer-site-issues-card article:last-of-type { border-bottom: 0; }
.customer-site-issues-card article > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.customer-site-issue-status { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; border: 1px solid #99f6e4; border-radius: 999px; color: #0f766e; background: #f0fdfa; font-size: 12px; font-weight: 600; white-space: nowrap; }
.customer-site-issue-status.is-new { border-color: #fde68a; color: #b45309; background: #fffbeb; }
.customer-site-issue-status.is-processing { border-color: #bae6fd; color: #0369a1; background: #f0f9ff; }
.customer-site-issue-status.is-resolved { border-color: #a7f3d0; color: #047857; background: #ecfdf5; }
.customer-site-issue-status.is-archived { border-color: #cbd5e1; color: #64748b; background: #f8fafc; }
.customer-site-issues-card article time { color: #94a3b8; font-size: 12px; white-space: nowrap; }
.customer-site-issues-card article > strong { color: #1e293b; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.customer-site-issues-card article > small { color: #64748b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.customer-site-tracking-link { display: flex; align-items: flex-start; gap: 8px; min-width: 0; margin-top: 3px; }
.customer-site-tracking-link a { display: flex; flex: 1; align-items: flex-start; gap: 6px; min-width: 0; color: #0f766e; }
.customer-site-tracking-link code { overflow-wrap: anywhere; word-break: break-word; font-size: 12px; line-height: 1.55; }
.customer-site-tracking-link a svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; }
.customer-site-tracking-link .icon-button { width: 36px; height: 36px; flex: 0 0 36px; padding: 0; }
.customer-site-issues-table-wrap { overflow-x: auto; overscroll-behavior-inline: contain; }
.customer-site-issues-table { width: 100%; min-width: 980px; border-collapse: collapse; color: #334155; font-size: 13px; text-align: left; }
.customer-site-issues-table th { padding: 12px 16px; border-bottom: 1px solid #dbe5e9; color: #64748b; background: #f8fafc; font-size: 12px; font-weight: 600; white-space: nowrap; }
.customer-site-issues-table td { min-width: 0; padding: 15px 16px; border-bottom: 1px solid #eef2f5; vertical-align: top; }
.customer-site-issues-table tbody tr:last-child td { border-bottom: 0; }
.customer-site-issue-title { min-width: 170px; }
.customer-site-issue-title-link { display: block; color: inherit; text-decoration: none; }
.customer-site-issue-title-link:hover strong, .customer-site-issue-title-link:focus-visible strong { color: #0f766e; text-decoration: underline; }
.customer-site-issue-title strong, .customer-site-issue-title small { display: block; overflow-wrap: anywhere; }
.customer-site-issue-title strong { color: #1e293b; font-size: 14px; line-height: 1.5; }
.customer-site-issue-title small { margin-top: 5px; color: #64748b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.customer-site-issue-link-actions { width: 54px; min-width: 54px; }
.customer-site-issues-table th:nth-child(3), .customer-site-issues-table td:nth-child(3) { width: 84px; min-width: 84px; }
.customer-site-solution { width: 142px; min-width: 142px; }
.customer-site-solution .button { min-height: 34px; padding: 5px 9px; font-size: 12px; line-height: 1.35; text-align: left; white-space: normal; }
.customer-site-solution-waiting, .customer-site-solution-disabled { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.customer-site-solution-waiting { color: #92400e; background: #fffbeb; }
.customer-site-solution-disabled { color: #64748b; background: #f1f5f9; }
.customer-site-solution-card { margin-top: 3px; }
.customer-site-solution-card > span { color: #92400e; font-size: 12px; font-weight: 600; }
.customer-site-solution-card .button { min-height: 34px; padding: 5px 9px; font-size: 12px; }
.customer-site-solution-dialog { width: min(720px, calc(100vw - 32px)); max-height: min(820px, calc(100vh - 32px)); overflow: auto; padding: 26px; border: 1px solid #cbd5e1; border-radius: 8px; color: #334155; background: #fff; box-shadow: 0 24px 60px rgba(15,23,42,.25); }
.customer-site-solution-dialog::backdrop { background: rgba(15,23,42,.55); }
.customer-site-solution-dialog > header { padding-right: 36px; }
.customer-site-solution-dialog > header p { margin: 0; color: #64748b; font-size: 13px; overflow-wrap: anywhere; }
.customer-site-solution-dialog > header h2 { margin: 5px 0 0; color: #0f172a; font-size: 19px; }
.customer-site-solution-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; padding: 0; }
.customer-site-solution-content { margin-top: 18px; color: #334155; line-height: 1.65; overflow-wrap: anywhere; }
.customer-site-solution-content > :first-child { margin-top: 0; }
.customer-site-solution-content > :last-child { margin-bottom: 0; }
.customer-site-solution-content p { margin: 0 0 12px; }
.customer-site-solution-content h2 { margin: 18px 0 8px; color: #0f172a; font-size: 17px; }
.customer-site-solution-content h3 { margin: 15px 0 7px; color: #334155; font-size: 15px; }
.customer-site-solution-content ul, .customer-site-solution-content ol { margin: 0 0 12px; padding-left: 22px; }
.customer-site-solution-content blockquote { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid #5aa5a0; color: #475569; background: #f0fdfa; }
.customer-site-solution-content pre { overflow: auto; margin: 0 0 12px; padding: 10px; border: 1px solid #dbe5e9; border-radius: 5px; background: #f8fafc; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.customer-site-solution-content img { display: block; max-width: 100%; max-height: 440px; margin: 12px 0; border: 1px solid #dbe5e9; cursor: zoom-in; object-fit: contain; }
.customer-site-solution-attachments { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.customer-site-solution-attachments li { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px; border: 1px solid #dbe5e9; border-radius: 6px; background: #f8fafc; }
.customer-site-solution-attachments li > span { min-width: 0; display: grid; gap: 2px; }
.customer-site-solution-attachments strong, .customer-site-solution-attachments small { overflow-wrap: anywhere; }
.customer-site-solution-attachments small { color: #64748b; }
.customer-site-solution-empty { margin: 18px 0 0; color: #64748b; }
.customer-site-tracking-link-table { min-width: 0; justify-content: flex-start; margin: 0; }
.customer-site-issue-result { width: 32%; min-width: 240px; }
.customer-site-issue-result p { display: -webkit-box; margin: 0; overflow: hidden; color: #334155; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.customer-site-issues-table time { color: #64748b; font-size: 12px; white-space: nowrap; }
.customer-site-issues-empty { margin: 0; padding: 42px 22px; color: #94a3b8; text-align: center; }

@media (max-width: 520px) {
  .login-page { padding: 28px 14px; }
  .login-brand { margin-bottom: 24px; }
  .login-card-heading, .login-card-body { padding-right: 22px; padding-left: 22px; }
}

@media (max-width: 700px) {
  .customer-site-list-dialog { width: min(100vw - 24px, 460px); padding: 26px 20px 20px; }
  .customer-site-issues-toolbar, .customer-site-issues-card article { padding-right: 16px; padding-left: 16px; }
  .customer-site-issues-card article time { font-size: 11px; }
}

@media (max-width: 700px) {
  .customer-link-table-wrap { overflow: visible; }
  .customer-link-table, .customer-link-table tbody { display: block; width: 100%; min-width: 0; }
  .customer-link-table thead { display: none; }
  .customer-link-table tbody { display: grid; gap: 10px; padding: 10px; }
  .customer-link-table tbody tr { display: block; overflow: hidden; border: 1px solid #dbe5e9; border-radius: 8px; background: #fff; }
  .customer-link-table tbody tr:hover { background: #fff; }
  .customer-link-table tbody td { display: block !important; min-width: 0; padding: 12px 14px; border-bottom: 1px solid #edf2f4; }
  .customer-link-table tbody td:first-child { background: #f8fbfc; }
  .customer-link-table tbody td:first-child strong { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
  .customer-link-table tbody td:first-child .muted { margin-top: 4px; overflow-wrap: anywhere; }
  .customer-link-table tbody td:nth-child(2) { padding-top: 14px; }
  .customer-link-table .customer-link-copy { max-width: none; align-items: flex-start; }
  .customer-link-table .customer-link-url { align-items: flex-start; }
  .customer-link-table .customer-link-copy code { overflow: visible; white-space: normal; overflow-wrap: anywhere; word-break: break-word; line-height: 1.55; }
  .customer-link-table .customer-link-send-hint { max-width: none; margin-top: 8px; line-height: 1.55; }
  .customer-link-table tbody td:nth-child(3), .customer-link-table tbody td:nth-child(4), .customer-link-table tbody td:nth-child(5) { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; color: #64748b; font-size: 13px; }
  .customer-link-table tbody td:nth-child(3)::before { content: "问题记录"; }
  .customer-link-table tbody td:nth-child(4)::before { content: "状态"; }
  .customer-link-table tbody td:nth-child(5)::before { content: "更新时间"; }
  .customer-link-table tbody td:nth-child(3) > *, .customer-link-table tbody td:nth-child(4) > *, .customer-link-table tbody td:nth-child(5) > * { color: #334155; }
  .customer-link-table tbody td:nth-child(6) { padding: 10px 14px; border-bottom: 0; }
  .customer-link-table .customer-link-actions { justify-content: flex-start; gap: 8px; }
  .customer-link-table .customer-link-actions .icon-button { width: 38px; height: 38px; }
  .customer-link-table tbody tr:has(.empty-state) { border: 0; background: transparent; }
  .customer-link-table tbody tr:has(.empty-state) td { padding: 40px 16px; }
}
