:root { font-family: Inter, system-ui, sans-serif; color: #18344d; background: #f6f9fc; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #0769c9; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.topbar { background: white; border-bottom: 1px solid #dce6ef; padding: 20px 5%; display: flex;
  justify-content: space-between; align-items: center; gap: 20px; }
.brand { font-size: 23px; font-weight: 800; text-decoration: none; }
.brand span { font-size: 12px; letter-spacing: .12em; color: #5c7389; margin-left: 8px; }
nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
main { max-width: 1120px; margin: 44px auto; padding: 0 24px 60px; }
h1 { font-size: clamp(27px, 4vw, 38px); margin: 8px 0 12px; letter-spacing: -.035em; }
h2 { font-size: 21px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 0 0 8px; }
p { line-height: 1.6; }
.eyebrow { font-size: 11px; letter-spacing: .13em; font-weight: 700; color: #526e85; }
#intro, .muted { color: #526e85; }
.panel, .client-card { background: white; border: 1px solid #dce6ef; border-radius: 14px; padding: 24px;
  margin: 18px 0; box-shadow: 0 3px 14px #163b5b05; }
.client-card > header { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.chip { padding: 5px 10px; border-radius: 20px; background: #edf5ff; color: #07599f; font-size: 12px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 20px 0; }
.stats p { margin: 0; }
.stats b { display: block; font-size: 21px; }
button, .button { font: inherit; font-size: 14px; padding: 11px 15px; border-radius: 8px; cursor: pointer;
  border: 1px solid #b9d1e7; background: #fff; color: #07599f; text-decoration: none; }
button.primary { color: white; background: #0876db; border-color: #0876db; }
button:disabled { opacity: .5; cursor: wait; }
button:hover:not(:disabled), .button:hover { filter: brightness(.96); }
:focus-visible { outline: 3px solid #49a3f2; outline-offset: 3px; }
label { display: block; font-size: 14px; font-weight: 600; }
input, textarea, select { display: block; width: 100%; padding: 12px; font: inherit; color: #18344d;
  background: #fff; border: 1px solid #b9cddd; border-radius: 8px; margin: 8px 0 18px; }
textarea { min-height: 95px; resize: vertical; }
#notice:not(:empty) { background: #eaf5ff; border-left: 4px solid #0876db; padding: 14px 18px; margin: 20px 0; }
#notice.error { background: #fff0ee; border-color: #c44b3a; color: #9d3023; }
.diff { padding: 14px 0; border-bottom: 1px solid #e6edf3; }
.diff p, .value { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
.diff .before { color: #64788b; }
.preview-note { background: #fff7df; padding: 16px; border-radius: 10px; }
details { margin-top: 16px; }
summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.empty { padding: 35px 0; color: #526e85; }
@media (max-width: 640px) {
  main { margin-top: 28px; padding: 0 16px 40px; }
  .topbar { padding: 16px; align-items: start; }
  nav { gap: 8px; font-size: 12px; flex-direction: column; align-items: end; }
  .grid { grid-template-columns: 1fr; gap: 0; }
  .panel, .client-card { padding: 18px; }
  .client-card > header { display: block; }
  .chip { display: inline-block; margin-top: 4px; }
  .actions > button, .actions > a { min-height: 42px; }
}
