* { box-sizing: border-box; }
:root { font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; color: #1e293b; }
body { margin: 0; background: #fffdfb; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.shell { --accent: #b83d34; --canvas: #fffdfb; --rail: #f3efe9; --line: #e4ded7; display: grid; grid-template-columns: 264px minmax(0,1fr); min-height: 100vh; background: var(--canvas); }
.rail { position: relative; display: flex; flex-direction: column; min-height: 100vh; padding: 0 16px 18px; background: var(--rail); border-right: 1px solid var(--line); }
.brand { height: 72px; display: flex; align-items: center; gap: 12px; }
.brand > b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #202124; color: white; font-size: 11px; letter-spacing: .05em; }
.brand > span { font-size: 14px; font-weight: 700; }
.brand small { display: block; margin-top: 2px; color: #64748b; font-size: 11px; font-weight: 500; }
.add, .header-add { min-height: 42px; border-radius: 9px; background: var(--accent); color: white; font-size: 13px; font-weight: 700; }
.rail nav { display: grid; gap: 3px; margin-top: 17px; }
.rail nav button { display: flex; justify-content: space-between; align-items: center; min-height: 42px; padding: 0 11px; border-radius: 8px; background: transparent; color: #475569; text-align: left; }
.rail nav button.active { background: #fffdfb; color: #0f172a; box-shadow: 0 1px 2px rgb(15 23 42 / 6%); }
.rail nav b { color: #64748b; font-size: 12px; font-variant-numeric: tabular-nums; }
.rail-label { margin: 25px 10px 0; color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rail nav.clients { margin-top: 7px; }
.risk { margin-top: auto; padding: 12px; border-radius: 9px; background: rgb(255 255 255 / 65%); color: #b83d34; font-size: 12px; font-weight: 700; }
main { min-width: 0; background: var(--canvas); }
header { position: sticky; top: 0; z-index: 2; padding: 20px 36px 15px; background: rgb(255 253 251 / 94%); border-bottom: 1px solid #eee9e4; }
.topbar { display: flex; align-items: center; gap: 12px; max-width: 1080px; margin: auto; }
.title { min-width: 0; flex: 1; }
h1 { margin: 0; color: #0f172a; font-family: "Outfit", "Plus Jakarta Sans", sans-serif; font-size: 24px; letter-spacing: -.025em; }
.title p { margin: 3px 0 0; color: #64748b; font-size: 12px; }
.direction { display: flex; align-items: center; gap: 3px; min-height: 52px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--rail); }
.direction > span { padding: 0 6px; color: #64748b; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.direction a { min-height: 44px; padding: 15px 9px; border-radius: 8px; color: #475569; font-size: 11px; font-weight: 700; text-decoration: none; }
.direction a[aria-current='true'] { background: #fffdfb; color: var(--accent); box-shadow: 0 1px 2px rgb(15 23 42 / 8%); }
.header-add { padding: 0 15px; }
.menu { display: none; width: 44px; height: 44px; background: transparent; font-size: 20px; }
.menu span { display: block; width: 18px; height: 1.5px; margin: auto; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.toolbar { display: flex; gap: 6px; max-width: 1080px; margin: 13px auto 0; }
.toolbar label { flex: 1; }
.toolbar input, .toolbar button { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #475569; font-size: 12px; }
.toolbar input { padding: 0 13px; font-size: 13px; }
.toolbar button { width: auto; padding: 0 13px; }
.content { width: 100%; max-width: 980px; margin: auto; padding: 24px 36px 56px; }
.notice { width: fit-content; margin: 0 0 22px; padding: 6px 9px; border-radius: 6px; background: #f3efe9; color: #64748b; font-size: 10px; font-weight: 700; }
section + section { margin-top: 29px; }
.section-title { display: flex; align-items: center; min-height: 40px; gap: 8px; padding: 0 4px; }
.section-title b { color: #0f172a; font-size: 14px; }
.section-title span { color: #64748b; font-size: 12px; }
.section-title strong { margin-left: auto; color: #64748b; font-size: 12px; }
.records { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fffdfb; }
article { display: flex; align-items: flex-start; gap: 11px; min-height: 70px; padding: 12px 13px; border-bottom: 1px solid #f0ece7; }
article:last-child { border: 0; }
article > i { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid #cfc9c3; border-radius: 50%; }
article > div { min-width: 0; flex: 1; }
article h2 { margin: 0; color: #1e293b; font-size: 13px; font-weight: 650; line-height: 1.4; }
article p { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 11px; margin: 6px 0 0; color: #64748b; font-size: 10px; }
article p em { color: #b83d34; font-style: normal; font-weight: 700; }
article p small { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #ebe7e1; font-size: 8px; font-weight: 800; }
article > b { padding: 3px 6px; border-radius: 5px; color: #64748b; font-size: 9px; }
article[data-priority='high'] > b { background: #fff0ed; color: #b83d34; }
.mobile-add { display: none; }
.command-summary, .flow-navigation { display: none; }
