:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #203632;
  background: #f6f7f3;
  font-size: 16px;
  line-height: 1.55;
  --ink: #203632;
  --green: #205b4e;
  --line: #d7dfd8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid #b6c8c0;
  border-radius: 9px;
  color: var(--green);
  background: white;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}
button:hover,
.button:hover {
  background: #eef5ef;
}
button.primary,
.button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #bc650b;
  outline-offset: 4px;
}
input,
select {
  border: 1px solid #95aaa0;
  border-radius: 7px;
  padding: 11px;
  min-height: 46px;
  background: white;
  color: inherit;
  max-width: 100%;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2.55rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.05rem;
}

[hidden] {
  display: none !important;
}
body {
  overflow-wrap: anywhere;
}
header,
nav,
main,
footer {
  max-width: 1160px;
  margin: auto;
  padding: 20px 28px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 3px solid var(--brand-primary, #205b4e);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand img {
  max-width: 64px;
  max-height: 54px;
}
nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
nav a {
  padding: 10px 16px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 600;
  min-height: 46px;
}
nav a[aria-current="page"] {
  background: #205b4e;
  color: white;
}
main {
  min-height: 65vh;
}
/* Route headings receive focus for screen readers, without a visual control ring. */
main:focus,
main h1[tabindex="-1"]:focus {
  outline: none;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 20px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.shortcut {
  text-decoration: none;
  color: inherit;
}
.shortcut:hover {
  border-color: #205b4e;
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: #48645c;
}
.muted,
footer {
  color: #52655f;
}
dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
}
dd {
  margin: 0;
  font-weight: 600;
}
dt {
  color: #52655f;
}
.filters {
  display: flex;
  gap: 16px;
  margin: 20px 0;
}
.filters label:first-child {
  flex: 1;
}
.filters label {
  min-width: 0;
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.item-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
}
.item-card button {
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 0;
  border-radius: 0;
  text-align: left;
  color: var(--ink);
}
.item-card img,
.placeholder {
  width: 100%;
  height: 170px;
  object-fit: contain;
  background: #eaf0ea;
}
.placeholder {
  display: grid;
  place-items: center;
  padding: 16px;
  font-weight: 400;
}
.card-copy {
  padding: 16px;
}
.card-copy h2 {
  font-size: 1.1rem;
}
.item-meta {
  font-weight: 400;
  font-size: 0.9rem;
}
.document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
}
.document-row h2 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.login-main {
  max-width: 540px;
}
.login-main input {
  width: 100%;
  margin: 5px 0 18px;
}
.login-main h1 {
  font-size: 2rem;
}
.login-main button.primary {
  width: 100%;
  margin-bottom: 20px;
}
.pm-password-field {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.pm-password-field input {
  min-width: 0;
  flex: 1;
}
.pm-password-toggle {
  align-self: flex-start;
  margin-top: 5px;
  min-width: 46px;
  min-height: 46px;
  padding: 11px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
}
.skip:focus {
  top: 10px;
  background: white;
  padding: 12px;
  z-index: 20;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  width: min(760px, calc(100% - 24px));
  max-height: 90dvh;
  color: var(--ink);
  overflow: auto;
}
dialog::backdrop {
  background: #142b27bb;
}
dialog h2 {
  margin-top: 24px;
}
.photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.photos button {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px;
}
.photos img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}
#viewerImg {
  display: block;
  max-width: 100%;
  max-height: 62dvh;
  margin: 16px auto;
  object-fit: contain;
}
#errorMsg {
  color: #983b25;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
@media (max-width: 650px) {
  header,
  nav,
  main,
  footer {
    padding: 16px;
  }
  h1 {
    font-size: 2rem;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .item-card img,
  .placeholder {
    height: 140px;
  }
  .filters {
    flex-direction: column;
  }
  .panel {
    padding: 20px;
  }
  .document-row {
    align-items: flex-start;
    flex-direction: column;
  }
  nav {
    gap: 2px;
  }
  nav a {
    padding: 10px;
  }
  .card-copy {
    padding: 12px;
  }
  .photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

button,
.button {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}
.overview-grid > * {
  min-width: 0;
}
header > button {
  flex-shrink: 0;
}
nav a {
  max-width: 100%;
}
.actions > * {
  min-width: 0;
}
dt,
dd {
  min-width: 0;
}

input,
select {
  min-width: 0;
  width: 100%;
}
.filters label {
  grid-template-columns: minmax(0, 1fr);
}

footer { border-top: 2px solid var(--brand-accent, var(--line)); }

/* OPS14C customer storage and report surfaces */
.storage-label{display:block;color:#075f68;font-size:.95rem;margin-top:.6rem}#portalTotals{background:#e6f4f5;border-left:4px solid #007f88;margin-bottom:1rem}#storageSummary{margin-bottom:1rem}#reportProgress a{display:inline-block}#detailMore{margin-top:1rem}#generatedReports{margin-bottom:1.5rem}nav{flex-wrap:wrap}#detailMeta{white-space:pre-line;overflow-wrap:anywhere}

.card-copy .item-meta{display:block;margin-top:.25rem;overflow-wrap:anywhere}

/* DOC19-UX: item photography and readable, explicitly published facts. */
.item-card {border-color:#d4e1e7;box-shadow:0 4px 18px #17334b08;}
.item-card img {height:220px;object-fit:contain;background:#f0f5f7;}
.card-copy {gap:8px;padding:20px;}
.card-copy h2 {font-size:1.2rem;line-height:1.3;}
.condition-label {font-size:.875rem;color:#315766;}
.storage-label {color:#005d65;background:#e5f4f3;padding:8px 10px;border-radius:7px;}
#itemDetail {width:min(960px,calc(100% - 24px));padding:24px;}
#itemDetail[open] {display:flex;flex-direction:column;gap:14px;}
#detailClose {align-self:flex-start;order:0;}
#detailTitle {font-size:1.6rem;order:1;margin:0;}
#detailPhotos {order:2;}
#detailMore {order:3;}
#detailStatus {order:4;margin:0;}
#detailMeta {order:5;}
#detailPhotos img {width:100%;height:280px;object-fit:contain;background:#f0f5f7;}
.detail-reference {font-size:.9rem;color:#4b6274;}
.detail-facts {display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;margin:0;}
.detail-facts dt {font-size:.8rem;font-weight:700;color:#4b6274;margin-bottom:5px;}
.detail-facts dd {margin:0;white-space:pre-wrap;font-size:1rem;line-height:1.5;}
.detail-location {color:#00636c;}
.detail-group {grid-column:1/-1;border-top:1px solid #d5e2e7;padding-top:16px;}
@media(max-width:480px){#itemDetail{padding:18px}.detail-facts{grid-template-columns:1fr;gap:16px}#detailPhotos{grid-template-columns:1fr}#detailPhotos img{height:240px}.item-card img{height:200px}}

/* Customer report choices: purpose first, with readable export options. */
.report-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0;}
.report-option{padding:20px;border:1px solid #b7cbd2;border-radius:12px;background:#f4f9fa;display:flex;flex-direction:column;gap:12px;}
.report-option h3,.report-option p{margin:0;}
.report-option button{margin-top:auto;min-height:48px;}
.report-option select{min-height:44px;width:100%;font:inherit;}
.report-guidance{padding:12px 16px;border-left:3px solid #007d85;color:#334d60;}
@media(max-width:640px){.report-options{grid-template-columns:1fr;}}
