.ov-demo-page { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); }
.ov-demo-page #demo-root { min-height: 100vh; }
.ov-app, .ov-app * { box-sizing: border-box; }
.ov-app { height: 100%; overflow: auto; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--sans); }
.ov-banner { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 11px 24px; background: var(--blue-wash); color: var(--blue-deep); font-weight: 650; border-bottom: 1px solid var(--border); }
.ov-demo-mark { padding-right: 16px; border-right: 1px solid var(--border-2); }
.ov-layout { display: grid; grid-template-columns: 258px minmax(0,1fr); min-height: calc(100vh - 45px); }
.ov-side { padding: 28px 20px; background: var(--ink); color: var(--surface); min-width: 0; }
.ov-brand { font-size: 10px; letter-spacing: .12em; color: var(--border-2); }
.ov-side h1 { font-size: 25px; line-height: 1.25; margin: 20px 0 8px; font-weight: 650; }
.ov-side-caption { color: var(--border-2); font-size: 12px; margin: 8px 0 24px; }
.ov-side .ov-field { margin: 24px 0; }
.ov-side .ov-field > span { color: var(--border-2); }
.ov-nav { display: grid; gap: 6px; margin: 20px 0 28px; }
.ov-nav button { text-align: left; border: 1px solid var(--ink-2); padding: 11px 12px; color: var(--surface); background: var(--ink); border-radius: 8px; cursor: pointer; font: inherit; overflow-wrap: anywhere; }
.ov-nav button:hover, .ov-nav button[aria-current] { background: var(--blue); border-color: var(--blue); }
.ov-workspace { min-width: 0; padding: 24px 32px 48px; }
.ov-storage { margin: 0 0 22px; color: var(--ink-2); max-width: 1000px; font-size: 12px; }
.ov-content { min-width: 0; }
.ov-record-fact { overflow-wrap: anywhere; }
.ov-content h2 { font-size: 26px; line-height: 1.3; margin: 0 0 24px; letter-spacing: -.025em; }
.ov-content h3 { font-size: 17px; margin: 28px 0 12px; }
.ov-field[hidden] { display: none; }
.ov-field { display: grid; gap: 7px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.ov-field > span { overflow-wrap: anywhere; }
.ov-app input, .ov-app select, .ov-app textarea { width: 100%; max-width: 100%; min-width: 0; border: 1px solid var(--border-2); background: var(--surface); color: var(--ink); border-radius: 7px; padding: 10px; font: inherit; min-height: 42px; }
.ov-app textarea { resize: vertical; min-height: 90px; }
.ov-app input[type=checkbox] { width: 20px; height: 20px; min-height: 20px; justify-self: start; accent-color: var(--blue); }
.ov-app input[type=file] { font-size: 12px; }
.ov-app button:focus-visible, .ov-app input:focus-visible, .ov-app select:focus-visible, .ov-app textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.ov-button { display: inline-block; max-width: 100%; padding: 10px 15px; margin: 4px 8px 4px 0; min-height: 42px; border: 1px solid var(--border-2); border-radius: 7px; background: var(--surface); color: var(--blue-deep); font: inherit; font-weight: 550; cursor: pointer; overflow-wrap: anywhere; white-space: normal; }
.ov-button:hover { border-color: var(--blue); background: var(--blue-wash); }
.ov-form > .ov-button.ov-link, .ov-button.ov-link { padding: 4px 0; min-height: 32px; border: 0; background: none; color: var(--blue-deep); font-weight: 450; font-size: 13px; text-decoration: underline; justify-self: start; }
.ov-button:disabled { opacity: .6; cursor: wait; }
.ov-form > .ov-button { background: var(--blue); border-color: var(--blue); color: var(--surface); justify-self: start; margin: 0; }
.ov-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin: 20px 0; box-shadow: var(--shadow); }
.ov-form > .ov-error, .ov-form > .ov-button { grid-column: 1 / -1; }
.ov-form > .ov-field:has(textarea), .ov-form > .ov-field:has(input[type=file]) { grid-column: 1 / -1; }
.ov-error { color: var(--err); margin: 0; }
.ov-error:empty { display: none; }
.ov-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin: 20px 0; align-items: end; }
.ov-filters > button { margin: 0; }
.ov-notice { padding: 14px 18px; background: var(--blue-wash); color: var(--blue-deep); border-radius: 8px; }
.ov-muted { color: var(--ink-2); }
.ov-table-wrap { max-width: 100%; min-width: 0; margin: 20px 0; }
.ov-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--surface); font-size: 13px; }
.ov-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .035em; background: var(--surface-2); color: var(--ink-2); }
.ov-table td, .ov-table th { padding: 15px 12px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.ov-table td .ov-button { font-size: 12px; margin: 2px 0; width: 100%; padding: 8px 5px; }
.ov-table td .ov-form { display: block; padding: 0; border: 0; box-shadow: none; margin: 4px 0; }
.ov-status { font-weight: 600; color: var(--blue-deep); }
.ov-message, .ov-history { padding: 18px; margin: 12px 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow-wrap: anywhere; }
.ov-history { font-size: 12px; color: var(--ink-2); background: var(--surface-3); }
.ov-message p, .ov-history p { margin: 5px 0; }
.ov-attachments { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.ov-attachments img { max-width: 100%; width: 280px; height: 160px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.ov-attachments > div { max-width: 100%; }
.ov-image-viewer { width: 100%; min-width: 0; }
.ov-image-viewer[hidden] { display: none; }
.ov-image-viewport { overflow: auto; max-width: 100%; max-height: 75vh; border: 1px solid var(--border); }
.ov-image-viewport img { display: block; width: auto; height: auto; max-width: none; border: 0; border-radius: 0; }
.ov-back { margin-bottom: 20px; }
@media (max-width: 1050px) {
  .ov-layout { grid-template-columns: 220px minmax(0,1fr); }
  .ov-workspace { padding: 22px 18px; }
  .ov-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .ov-banner { font-size: 11px; padding: 10px 16px; }
  .ov-layout { grid-template-columns: minmax(0,1fr); }
  .ov-side { padding: 20px 16px; }
  .ov-side h1 { margin: 12px 0; font-size: 24px; }
  .ov-side .ov-field { margin: 16px 0; }
  .ov-side-caption { margin-bottom: 8px; }
  .ov-nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 16px 0; }
  .ov-nav button { padding: 10px; font-size: 12px; }
  .ov-workspace { padding: 20px 12px 40px; }
  .ov-content h2 { font-size: 23px; }
  .ov-filters, .ov-form { grid-template-columns: minmax(0,1fr); padding: 16px; }
  .ov-table thead { display: none; }
  .ov-table, .ov-table tbody, .ov-table tr, .ov-table td { display: block; width: 100%; }
  .ov-table tr { padding: 12px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 10px; }
  .ov-table td { padding: 6px; border: 0; }
  .ov-table td:first-child { font-weight: 650; }
  .ov-table td .ov-button { width: auto; padding: 10px 14px; }
}
