:root { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #253c35; background: #f6f8f6; font-synthesis: none; --green: #185943; --muted: #77847e; --line: #e6ebe7; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #85b9a4; outline-offset: 3px; }
button:disabled { opacity: .45; cursor: not-allowed; }
svg { width: 19px; height: 19px; flex-shrink: 0; }
a { color: inherit; }
.sidebar { width: 246px; position: fixed; inset: 0 auto 0 0; background: #fff; border-right: 1px solid var(--line); padding: 29px 18px 18px; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 17px; font-weight: 650; letter-spacing: -.4px; padding: 0 8px 31px; }
.brand small { display: block; font-size: 9px; letter-spacing: 2px; color: var(--muted); margin-top: 2px; font-weight: 500; }
.brand-mark { width: 37px; height: 40px; border-radius: 11px; color: #d0f0cf; background: #174c3c; font-size: 39px; line-height: 30px; font-weight: 600; padding-left: 9px; position: relative; }
.brand-mark span { position: absolute; font-size: 27px; color: #98cda5; top: 4px; right: 4px; }
.workspace-label { display: flex; align-items: center; justify-content: space-between; color: #88938c; font-size: 9px; letter-spacing: 1.1px; margin: 0 7px 14px; font-weight: 650; }
.tenant-label { font-size: 10px; color: #6d7d73; margin: 0 7px 6px; }
select, input, textarea { border: 1px solid #dce4de; background: white; border-radius: 6px; padding: 10px 11px; color: #30483c; min-width: 0; }
#tenant { width: 100%; font-size: 11px; padding: 10px 5px; background: #f8faf8; }
.tenant-add { display: flex; align-items: center; gap: 5px; border: 0; background: none; padding: 9px 7px 15px; color: #68796f; font-size: 11px; }
.tenant-add svg { width: 13px; }
.nav-heading { color: #8b9690; font-size: 9px; letter-spacing: 1.3px; font-weight: 650; padding: 18px 12px 10px; }
.integration-heading { margin-top: 6px; border-top: 1px solid var(--line); }
.nav-item { width: 100%; display: flex; gap: 11px; align-items: center; background: none; border: 0; border-radius: 6px; padding: 9px 11px; margin-bottom: 3px; text-align: left; font-size: 12px; color: #63746a; }
.nav-item svg { width: 17px; height: 17px; }
.nav-item small { margin-left: auto; font-size: 10px; color: #8d9991; }
.nav-item:hover { background: #f4f7f4; }
.nav-item.active { background: #eaf2ec; color: #215c40; font-weight: 650; }
.nav-item.active small { color: #215c40; background: #dceadd; padding: 0 5px; border-radius: 4px; }
.sidebar-bottom { display: flex; gap: 9px; align-items: center; border-top: 1px solid var(--line); padding: 18px 6px 0; margin-top: auto; font-size: 10px; }
.sidebar-bottom small { display: block; color: #94a096; font-size: 9px; margin-top: 3px; }
.local-dot { width: 6px; height: 6px; background: #75a783; border-radius: 50%; }
.workspace { margin-left: 246px; }
.topbar { height: 74px; background: #fff; border-bottom: 1px solid var(--line); padding: 0 35px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #6f7d73; }
.topbar span:not(.badge, .avatar) { padding: 0 14px; color: #bbc4bd; }
.topbar-right { display: flex; gap: 20px; align-items: center; }
.avatar { display: grid; place-items: center; border: 1px solid #d6e5d8; background: #f1f5ee; color: #557344; width: 30px; height: 30px; border-radius: 50%; font-size: 10px; }
main { max-width: 1700px; padding: 26px 35px 0; margin: auto; }
.mode-note { display: flex; align-items: center; gap: 8px; color: #7b897d; font-size: 10px; margin-bottom: 29px; }
.mode-note svg { width: 14px; height: 14px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.eyebrow { font-size: 9px; color: #7c8d80; font-weight: 650; letter-spacing: 1.7px; margin-bottom: 5px; }
h1 { font-weight: 600; font-size: 30px; letter-spacing: -.9px; margin: 0; line-height: 1.3; }
.page-heading p { color: #7a887e; font-size: 12px; margin: 7px 0 0; }
.heading-actions { display: flex; gap: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #fff; border: 1px solid #dce4de; border-radius: 6px; padding: 10px 14px; font-size: 11px; font-weight: 550; white-space: nowrap; }
.button svg { width: 15px; height: 15px; }
.button:hover { background: #f2f6f2; }
.button.primary { background: #1b5742; border-color: #1b5742; color: white; }
.button.primary:hover { background: #134332; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 25px; }
.summary-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 19px 20px 16px; background: #fff; }
.summary-card div { min-width: 0; }
.summary-card div > span { font-size: 11px; color: #79867c; }
.summary-card strong { display: block; font-size: 25px; line-height: 1.4; font-weight: 550; letter-spacing: -.5px; overflow-wrap: anywhere; margin: 5px 0 4px; }
.summary-card small { color: #96a095; font-size: 9px; }
.summary-icon { color: #6d8c73; background: #f1f6ef; padding: 9px; display: flex; border-radius: 8px; }
.summary-icon svg { width: 17px; height: 17px; }
.records-section, .outbox-list, .event-detail { border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
h2 { font-size: 14px; font-weight: 600; margin: 0; letter-spacing: -.2px; }
.count { font-size: 10px; font-weight: 500; padding: 1px 6px; background: #f2f5f1; color: #899688; border: 1px solid #e8ede6; border-radius: 4px; margin-left: 8px; }
.search { display: flex; align-items: center; border: 1px solid #e1e7e1; border-radius: 6px; padding-left: 10px; color: #9ba59a; width: 275px; }
.search svg { width: 15px; height: 15px; }
.search input { width: 100%; border: 0; padding: 8px 9px; font-size: 10px; background: transparent; }
.record-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; }
th { color: #93a090; font-size: 9px; letter-spacing: .7px; font-weight: 500; background: #fbfcfa; padding: 13px 15px; border-bottom: 1px solid var(--line); }
th:first-child { padding-left: 20px; }
td { padding: 15px; border-bottom: 1px solid #edf0eb; font-size: 10px; color: #7a877b; }
td:first-child { padding: 0 0 0 20px; }
tr.selected { background: #f0f6ee; }
tr.selected td:first-child { box-shadow: inset 3px 0 #5e8c57; }
tr:hover { background: #f7f9f5; }
.record-select { display: flex; width: 100%; align-items: center; gap: 11px; text-align: left; padding: 15px 8px 15px 0; border: 0; background: transparent; }
.record-select strong { display: block; color: #354b39; font-size: 11px; font-weight: 550; }
.record-select small { display: block; color: #95a08f; font-size: 9px; margin-top: 3px; }
.record-avatar { width: 31px; height: 31px; border-radius: 50%; background: #eef1e8; color: #7b8e67; display: grid; place-items: center; font-size: 10px; font-weight: 500; flex-shrink: 0; }
.selected .record-avatar { background: #e0ecd9; color: #587449; }
.row-arrow { color: #9caa96; font-size: 19px; padding: 0 14px 0 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; overflow-wrap: anywhere; }
.table-footer { padding: 16px 20px; font-size: 9px; color: #a0a99b; }
.detail-panel { border-left: 1px solid var(--line); padding: 20px; min-width: 0; }
.detail-kicker { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 8px; letter-spacing: .9px; color: #8b9989; font-weight: 550; }
.badge { display: inline-flex; align-items: center; font-size: 8px; letter-spacing: .4px; border-radius: 4px; line-height: 1.5; padding: 3px 6px; font-weight: 550; white-space: nowrap; }
.badge.subtle { background: #f0f3ee; color: #879281; border: 1px solid #e7ece3; }
.badge.green { background: #edf5e9; color: #648d4e; border: 1px solid #dfebd7; }
.badge.amber { background: #fff2d9; color: #9b651e; border: 1px solid #f0dfb8; }
.detail-identity { text-align: center; padding: 25px 0 18px; }
.detail-avatar { margin: 0 auto 12px; background: #edf3e8; color: #799a65; width: 55px; height: 55px; border-radius: 50%; display: grid; place-items: center; }
.detail-avatar svg { width: 25px; height: 25px; }
.detail-identity h2 { font-size: 16px; overflow-wrap: anywhere; }
.detail-identity p { font-size: 9px; color: #9aa591; margin: 5px 0 0; }
.full-width { width: 100%; justify-content: space-between; }
.detail-block { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 17px; }
h3 { font-size: 11px; font-weight: 600; margin: 0 0 13px; }
dl { margin: 0; }
dt { color: #9ba693; font-size: 9px; margin-top: 13px; }
dd { margin: 4px 0 0; font-size: 10px; color: #53674e; overflow-wrap: anywhere; }
.relation { display: flex; align-items: center; justify-content: space-between; background: none; border: 0; border-bottom: 1px solid #eff2ec; width: 100%; padding: 11px 0; color: #788e6d; font-size: 10px; }
.relation span { display: flex; align-items: center; gap: 8px; }
.relation svg { width: 15px; height: 15px; }
.relation b { font-weight: 400; font-size: 17px; margin-left: 5px; }
.payload-details { font-size: 10px; margin-top: 20px; }
summary { cursor: pointer; color: #708967; }
pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; line-height: 1.7; background: #f6f8f4; border: 1px solid #e7ede2; border-radius: 6px; padding: 14px; overflow: auto; max-height: 420px; white-space: pre-wrap; overflow-wrap: anywhere; color: #4f6845; }
.text-button { border: 0; background: transparent; padding: 0; font-size: 10px; margin-top: 22px; }
.danger { color: #ab6661; }
.danger-solid { background: #a64438; color: #fff; border-color: #a64438; }
.danger-solid:hover { background: #8b372d; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; padding: 22px 0; color: #99a491; font-size: 9px; }
.page-footer strong { color: #75896b; font-weight: 500; }
.page-footer > span > span { padding: 0 6px; }
.simulation { display: flex; align-items: center; gap: 25px; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.simulation h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.simulation p { font-size: 11px; color: #839078; margin-bottom: 0; max-width: 620px; }
.simulation-controls { flex-shrink: 0; }
.simulation-controls label { font-size: 9px; color: #839078; display: block; margin-bottom: 6px; }
.simulation-controls > div { display: flex; gap: 8px; }
.simulation-controls select { font-size: 10px; max-width: 220px; }
.warning { background: #fff8e8; border: 1px solid #ebdfbd; border-radius: 6px; padding: 14px 16px; font-size: 11px; color: #8a6f33; margin-bottom: 20px; line-height: 1.7; }
.outbox-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.event-row { display: flex; align-items: center; width: 100%; gap: 13px; text-align: left; border: 0; border-bottom: 1px solid var(--line); padding: 19px 16px; background: white; }
.event-row:hover { background: #f6f9f3; }
.event-row.selected { background: #eff5eb; box-shadow: inset 3px 0 #6d965d; }
.event-sequence { font-size: 10px; color: #849a79; font-family: monospace; }
.event-description { flex: 1; min-width: 0; }
.event-description strong { display: block; font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }
.event-description small { font-size: 9px; color: #99a58f; display: block; margin-top: 5px; }
.event-detail { padding: 22px; }
.event-detail h2 { margin: 12px 0 20px; overflow-wrap: anywhere; }
.event-detail h3 { margin-top: 24px; }
.attempts { list-style: none; padding: 0; margin: 0; }
.attempts li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: #8c9a80; font-size: 10px; }
.muted { color: #97a18f; font-size: 10px; }
.empty { padding: 50px 24px; color: #93a087; text-align: center; }
.empty svg { width: 25px; height: 25px; margin-bottom: 12px; }
.empty h3 { font-size: 14px; color: #728965; margin: 4px 0 7px; }
.empty p { font-size: 11px; margin: 0; }
dialog { border: 1px solid #e2e8dd; border-radius: 12px; padding: 27px; width: 580px; max-width: calc(100vw - 28px); max-height: calc(100dvh - 40px); color: #30482e; box-shadow: 0 22px 100px #13331625; }
dialog::backdrop { background: #182e2480; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.dialog-heading h2 { font-size: 20px; }
.close-button { border: 0; background: none; color: #95a28b; font-size: 25px; line-height: 1; padding: 4px 8px; }
.dialog-intro, dialog p { color: #849576; font-size: 12px; line-height: 1.8; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 11px; margin-top: 12px; }
.form-grid .field { margin-top: 0; }
.field input, .field select { width: 100%; font-size: 12px; }
.field textarea { font-family: monospace; font-size: 11px; resize: vertical; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.form-error { color: #ad4636; font-size: 12px; }
.login-page { max-width: 480px; margin: 10vh auto; padding: 30px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.login-page > p { color: var(--muted); font-size: 12px; }
.heading-actions { flex-wrap: wrap; }
#notice { position: fixed; bottom: 25px; left: calc(50% + 123px); transform: translate(-50%, 20px); background: #234b35; color: white; padding: 13px 20px; border-radius: 7px; font-size: 12px; box-shadow: 0 8px 30px #132e2630; opacity: 0; pointer-events: none; max-width: calc(100vw - 40px); transition: opacity .2s, transform .2s; z-index: 10; }
#notice.visible { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; top: -100px; left: 20px; background: white; padding: 12px; z-index: 100; }
.skip-link:focus { top: 10px; }
@media (min-width: 1550px) { .record-layout { grid-template-columns: minmax(0, 1fr) 330px; } td, .record-select { padding-top: 18px; padding-bottom: 18px; } }
@media (max-width: 1200px) { .sidebar { width: 216px; padding-left: 13px; padding-right: 13px; } .brand { font-size: 15px; } .workspace { margin-left: 216px; } main { padding: 24px 24px 0; } .topbar { padding: 0 24px; } .record-layout { grid-template-columns: minmax(0, 1fr) 255px; } .detail-panel { padding: 16px; } .heading-actions .button { padding: 9px 10px; } .simulation { flex-wrap: wrap; } #notice { left: calc(50% + 108px); } }
@media (max-width: 1000px) { .page-heading { align-items: flex-start; flex-wrap: wrap; } .record-layout { grid-template-columns: minmax(0, 1fr); } .detail-panel { border-left: 0; border-top: 1px solid var(--line); } .detail-identity { padding-top: 18px; } .detail-block dl { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; align-items: baseline; } .detail-block dt, .detail-block dd { margin: 0; } .summary-card { padding: 15px; } .summary-icon { display: none; } .outbox-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .sidebar { position: static; width: auto; padding: 17px 18px 0; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; } .brand { padding: 0 0 16px; } .brand small { font-size: 8px; } .workspace-label, .sidebar-bottom, .nav-heading { display: none; } .tenant-label { margin-left: 0; } #tenant { font-size: 12px; } .tenant-add { padding-bottom: 8px; } nav { display: flex; overflow: auto; padding: 6px 0; } .nav-item { width: auto; white-space: nowrap; padding: 8px 10px; font-size: 11px; margin-right: 4px; } .nav-item svg { display: none; } .nav-item small { margin-left: 0; } .workspace { margin-left: 0; } .topbar { height: 50px; padding: 0 18px; } main { padding: 19px 16px 0; } .mode-note { margin-bottom: 22px; font-size: 9px; } h1 { font-size: 26px; } .page-heading { gap: 18px; } .heading-actions { width: 100%; } .heading-actions .button { flex: 1; } .summary-grid { gap: 8px; margin-bottom: 18px; } .summary-card { padding: 12px 10px; } .summary-card div > span { font-size: 9px; } .summary-card strong { font-size: 21px; } .summary-card small { font-size: 8px; } .section-toolbar { flex-wrap: wrap; padding: 15px; } .search { width: 100%; } .search input { font-size: 12px; } td:first-child, th:first-child { padding-left: 15px; } td { padding-left: 10px; padding-right: 10px; } .record-select { gap: 8px; } .record-select strong { font-size: 10px; } .record-select small { font-size: 8px; } .record-avatar { width: 25px; height: 25px; font-size: 8px; } .page-footer { flex-wrap: wrap; } .simulation { padding: 16px; } .simulation-controls { width: 100%; } .simulation-controls > div { flex-wrap: wrap; } .simulation-controls select, .simulation-controls button { flex: 1; } .simulation-controls select { max-width: 100%; } .event-row { padding: 17px 12px; gap: 8px; } .event-description strong { font-size: 10px; } .event-detail { padding: 17px; } .form-grid { grid-template-columns: 1fr; gap: 10px; } .dialog-actions { flex-wrap: wrap; } #notice { left: 50%; width: max-content; } }
