:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #172034; background: #f5f7fb; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
.shell { min-height: 100vh; }
.header { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; color: white; background: #111a2e; }
.brand { font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.brand span { color: #8ce3ce; font-weight: 500; }
.identity { display: flex; align-items: center; gap: 20px; text-align: right; }
.identity small { display: block; color: #b9c4da; }
.link-button { border: 1px solid #65718b; border-radius: 8px; padding: 8px 12px; color: white; background: transparent; cursor: pointer; }
.body { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 72px); }
.sidebar { padding: 28px 18px; background: white; border-right: 1px solid #e3e7ef; }
.sidebar a { display: block; padding: 11px 14px; border-radius: 8px; text-decoration: none; }
.sidebar .active { color: #075d4c; background: #e4f8f2; font-weight: 700; }
.content { width: min(1040px, 100%); padding: 48px; }
.eyebrow { margin: 0 0 8px; color: #08725d; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; }
.lede { color: #63708a; font-size: 1.1rem; }
.placeholder, .auth-card { margin-top: 38px; padding: 32px; border: 1px solid #e0e5ed; border-radius: 16px; background: white; box-shadow: 0 12px 36px rgb(31 47 79 / 7%); }
.auth-card { width: min(480px, calc(100% - 32px)); margin: 12vh auto; }
.primary-button { display: inline-block; margin-top: 18px; padding: 12px 18px; border: 0; border-radius: 9px; color: white; background: #08725d; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary-button:disabled { opacity: .6; cursor: not-allowed; }
.toolbar .primary-button, .toolbar .link-button { margin-top: 0; }
.link-button.inverse { color: #172034; border-color: #cbd3df; background: white; }
.success-box { padding: 18px; border: 1px solid #9ed9c7; border-radius: 10px; color: #075d4c; background: #eaf8f3; }
.badge-ready { color: #075d4c; background: #d9f4eb; }
.badge-created { color: #075d4c; background: #d9f4eb; }
.badge-draft { color: #344057; background: #e8ecf2; }
.toolbar { display: flex; gap: 12px; margin: 24px 0; }
.search { width: min(440px, 100%); padding: 10px 12px; border: 1px solid #cbd3df; border-radius: 8px; background: white; font: inherit; }
.table-wrap { overflow-x: auto; border: 1px solid #e0e5ed; border-radius: 12px; background: white; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid #e8ebf0; text-align: left; vertical-align: top; }
th { color: #56627a; background: #f8f9fb; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.muted { color: #6a758a; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; color: #344057; background: #e8ecf2; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-approved { color: #075d4c; background: #d9f4eb; }
.badge-rejected, .badge-conflict { color: #8a2632; background: #fde2e5; }
.badge-submitted { color: #71510b; background: #fff0c7; }
.detail-header { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.back-link { display: inline-block; margin-bottom: 18px; color: #08725d; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.detail-card { padding: 22px; border: 1px solid #e0e5ed; border-radius: 12px; background: white; }
.detail-card.wide { grid-column: 1 / -1; }
.detail-card h2 { margin: 0 0 18px; font-size: 1.15rem; }
.fields { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(0, 1.3fr); margin: 0; }
.fields dt, .fields dd { margin: 0; padding: 7px 0; border-bottom: 1px solid #edf0f4; overflow-wrap: anywhere; }
.fields dt { color: #667187; }
.fields dd { font-weight: 550; }
.subrecord { margin-top: 18px; padding-top: 18px; border-top: 2px solid #e8ebf0; }
.subrecord:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.subrecord-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.subrecord-header h3 { margin: 0; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgb(17 26 46 / 58%); }
.modal-panel { width: min(920px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; border: 1px solid #e0e5ed; border-radius: 16px; background: white; box-shadow: 0 24px 64px rgb(17 26 46 / 18%); }
.modal-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid #e8ebf0; }
.modal-header h3 { margin: 4px 0 0; font-size: 1.2rem; }
.modal-body { padding: 24px; overflow: auto; }
.document-preview-image { display: block; max-width: 100%; max-height: calc(100vh - 220px); margin: 0 auto; border-radius: 8px; }
.document-preview-frame { width: 100%; min-height: 70vh; border: 0; border-radius: 8px; background: #f8f9fb; }
.error-box { padding: 18px; border: 1px solid #f2b9bf; border-radius: 10px; color: #7f202b; background: #fff2f3; }
.edit-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field span { color: #667187; font-size: .82rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 10px 12px; border: 1px solid #cbd3df; border-radius: 8px; background: white; font: inherit; }
.form-field textarea { min-height: 84px; resize: vertical; }
.form-field.wide { grid-column: 1 / -1; }
.form-checks { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.form-checks label { display: flex; align-items: center; gap: 8px; font-weight: 550; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.subnav { display: flex; gap: 10px; margin: 0 0 24px; padding-bottom: 14px; border-bottom: 1px solid #e0e5ed; }
.subnav a { padding: 8px 14px; border-radius: 999px; color: #56627a; background: #eef1f6; text-decoration: none; font-weight: 650; }
.subnav a.active { color: #075d4c; background: #d9f4eb; }
.code-list { margin: 0; padding-left: 20px; }
.terminal-input { margin-top: 16px; }
@media (max-width: 820px) { .form-grid { grid-template-columns: 1fr; } .form-field.wide { grid-column: auto; } }
@media (max-width: 720px) { .header { height: auto; min-height: 72px; padding: 14px 18px; } .identity { gap: 10px; } .identity small { display: none; } .body { grid-template-columns: 1fr; } .sidebar { padding: 10px 18px; border-right: 0; border-bottom: 1px solid #e3e7ef; } .content { padding: 30px 20px; } }
@media (max-width: 820px) { .detail-grid { grid-template-columns: 1fr; } .detail-card.wide { grid-column: auto; } .detail-header { display: block; } }
