:root { font: 15px system-ui, sans-serif; color: #173349; background: #f1f5f7; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
header { background: #112d41; color: white; padding: 19px max(16px, calc((100vw - 1200px) / 2)); }
header a { color: #c4d4dd; font-weight: 700; }
h1 { font-size: 24px; margin: 5px 0 0; }
h2 { font-size: 19px; margin: 0 0 12px; }
a { color: #126b91; }
.shell { max-width: 1200px; margin: auto; padding: 18px 14px 76px; }
.card { background: white; border: 1px solid #dce6ec; border-radius: 14px; padding: 19px; margin-bottom: 16px; box-shadow: 0 2px 9px #102c3a0a; }
.notice { background: #fff6e4; border-left: 4px solid #c88823; border-radius: 8px; padding: 12px; }
.emergency { border-top: 4px solid #a83737; scroll-margin-top: 52px; }
#property-search { margin-bottom: 10px; }
button { font: inherit; font-weight: 700; background: #156d92; color: white; border: 0; border-radius: 8px; padding: 11px 15px; min-height: 44px; cursor: pointer; }
button.secondary { background: #e6eef3; color: #1b4559; }
button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid #d09a20; outline-offset: 3px; }
input, select { display: block; width: 100%; border: 1px solid #b9cad5; border-radius: 8px; padding: 10px; font: inherit; background: white; }
label { display: block; font-weight: 650; font-size: 13px; margin-bottom: 8px; }
label > input, label > select { margin-top: 4px; }
.category-filter { margin-top: 10px; max-width: 360px; }
.check-label input { display: inline; width: auto; margin: 0 5px 0 0; }
#csv-file { max-width: 380px; }
#csv-preview { overflow-wrap: anywhere; }
#import-section, #submission-section { scroll-margin-top: 50px; }
.workspace-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; font-weight: 700; }
.workspace-links a { display: inline-flex; align-items: center; min-height: 44px; }
#binder-setup { scroll-margin-top: 52px; }
#setup-property { max-width: 420px; }
.selection-actions { margin: 10px 0; }
.selection-actions > span { min-width: 120px; }
.product-choice { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.product-choice input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }
.product-choice span { overflow-wrap: anywhere; }
#inventory-panel { border-top: 1px solid #dce6ec; margin-top: 16px; padding-top: 14px; }
#inventory-panel summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.inventory-controls { min-width: min(100%, 300px); }
.toolbar, .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar > label { flex: 1; margin: 0; min-width: min(200px, 100%); }
.toolbar > h2 { flex: 1; margin: 0; }
.toolbar + label { margin-top: 12px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 8px 12px; margin-bottom: 12px; }
.row { border-top: 1px solid #e1e8ed; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; overflow-wrap: anywhere; }
.row:first-child { margin-top: 12px; }
.row p { margin: 5px 0; color: #506c7c; }
.pill { display: inline-block; margin: 0 5px 4px 0; font-size: 12px; border-radius: 30px; padding: 4px 9px; background: #e9f0f4; }
.verified { background: #e1f5e8; color: #146a3c; }
.pending { background: #fff4d8; color: #805400; }
#status { position: sticky; top: 0; z-index: 1; background: #f1f5f7; font-weight: 650; padding: 8px 0; margin: 0; }
dialog { width: min(900px, 96vw); max-width: 100%; border: 1px solid #b9cad5; border-radius: 14px; }
dialog::backdrop { background: #112d4180; }
iframe { width: 100%; height: 70vh; border: 1px solid #dce6ec; margin-top: 10px; }
#print-binder { display: none; }
@media (max-width: 700px) { .row { flex-direction: column; align-items: flex-start; } }
@media print {
  body > :not(main), main > :not(#print-binder) { display: none !important; }
  :root { background: white; color: black; }
  .shell { padding: 0; }
  #print-binder { display: block; }
  #print-binder li { margin-bottom: 8px; break-inside: avoid; }
}
