:root {
  color-scheme: light;
  --paper: #f6f4ed;
  --paper-deep: #eeece2;
  --white: #fffefa;
  --ink: #253a34;
  --ink-soft: #53645c;
  --muted: #7c867d;
  --line: #dedfd5;
  --sage: #899a86;
  --sage-pale: #e7ece3;
  --evergreen: #355b4b;
  --evergreen-dark: #28483b;
  --terracotta: #bd8061;
  --error: #a74638;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, system-ui, sans-serif;
  --shadow: 0 18px 50px rgba(42, 53, 45, .08);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 15px/1.58 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(189, 128, 97, .6); outline-offset: 3px; }

.staff-header { width: min(1180px, calc(100% - 48px)); min-height: 78px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(83, 100, 92, .15); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 38px; height: 33px; display: inline-flex; color: var(--evergreen); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font: 600 18px/1.1 var(--serif); letter-spacing: -.03em; }
.privacy-label { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 12px; }
.privacy-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(137, 154, 134, .12); }

.staff-main { width: min(1000px, calc(100% - 48px)); flex: 1; margin: 0 auto; padding: 54px 0 65px; }
.staff-intro { max-width: 680px; margin: 0 0 25px; }
.eyebrow { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; color: var(--evergreen); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.eyebrow-line { width: 23px; height: 1px; background: var(--terracotta); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 12px; font: 500 clamp(36px, 5vw, 54px)/1.12 var(--serif); letter-spacing: -.05em; }
h1 em { color: var(--terracotta); font-weight: 500; }
.staff-intro > p:last-child { max-width: 630px; margin-bottom: 0; color: var(--ink-soft); line-height: 1.75; }
.workspace-card { padding: clamp(22px, 4vw, 38px); background: var(--white); border: 1px solid rgba(71, 82, 68, .12); box-shadow: var(--shadow); }
.step-kicker { margin: 0 0 7px; color: var(--terracotta); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.workspace-card h2, .photo-dialog h2 { margin: 0; font: 500 clamp(25px, 3vw, 32px)/1.2 var(--serif); letter-spacing: -.035em; }
.auth-panel { max-width: 600px; margin: 0 auto; padding: 15px 0; text-align: center; }
.auth-copy { margin-bottom: 24px; }
.auth-copy p:last-child { margin: 11px auto 0; color: var(--ink-soft); }
.auth-copy strong { color: var(--evergreen); }
.fineprint { margin: 13px 0 0; color: var(--muted); font-size: 11px; }
.state-panel { padding: 22px 0; display: flex; align-items: flex-start; gap: 15px; }
.state-mark { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-pale); color: var(--evergreen); font: 600 17px var(--serif); }
.state-panel h2 { margin: 0 0 8px; font-size: 25px; }
.state-panel p { max-width: 620px; margin: 0; color: var(--ink-soft); }
.page-message { margin: 0; color: var(--error); font-size: 13px; }
.page-message:empty { display: none; }

.button { min-height: 46px; border: 0; border-radius: 3px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; text-decoration: none; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--evergreen); color: #fff; box-shadow: 0 5px 15px rgba(53, 91, 75, .13); }
.button-primary:hover { background: var(--evergreen-dark); }
.button:disabled { opacity: .65; cursor: wait; transform: none; }
.button-outline { border: 1px solid #c9d1c5; background: transparent; color: var(--evergreen); }
.button-outline:hover { background: #f0f3eb; }
.text-button { padding: 4px 2px; border: 0; background: transparent; color: var(--evergreen); text-decoration: underline; text-decoration-color: #b2c1ae; text-underline-offset: 3px; font-size: 12px; font-weight: 600; cursor: pointer; }
.text-button:hover { color: var(--evergreen-dark); }

.workspace-topline { margin-bottom: 23px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.account-actions { display: flex; align-items: center; gap: 16px; }
.staff-email { max-width: 260px; overflow: hidden; color: var(--ink-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.search-form { padding: 18px; display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(135px, 1fr)) auto; align-items: end; gap: 12px; background: #f8f7f1; border: 1px solid var(--line); }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 5px; color: var(--ink); font-size: 11px; font-weight: 700; }
.field input, .field select { width: 100%; height: 42px; border: 1px solid #d8dbd1; border-radius: 2px; padding: 0 10px; color: var(--ink); background: var(--white); font-size: 12px; }
.field input::placeholder { color: #a0a59c; }
.field input:focus, .field select:focus { border-color: var(--sage); outline: 0; box-shadow: 0 0 0 3px rgba(137, 154, 134, .15); }
.search-button { min-height: 42px; padding: 0 14px; white-space: nowrap; }
.results-heading { margin: 19px 0 12px; display: flex; justify-content: space-between; gap: 12px; }
.results-summary, .timezone-note { margin: 0; color: var(--ink-soft); font-size: 12px; }
.timezone-note { color: var(--muted); }
.results-list { display: grid; gap: 11px; }
.record-card { padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; border: 1px solid var(--line); background: #fffefa; }
.record-main { min-width: 0; }
.record-name { margin: 0 0 4px; font: 500 21px/1.25 var(--serif); letter-spacing: -.02em; }
.record-address { margin: 0 0 12px; color: var(--ink-soft); font-size: 12px; }
.record-details { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 20px; }
.record-details div { min-width: 0; }
.record-details dt { color: var(--muted); font-size: 10px; font-weight: 600; }
.record-details dd { margin: 1px 0 0; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; }
.record-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 14px; }
.record-date { color: var(--muted); font-size: 11px; text-align: right; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; border-radius: 2px; background: var(--sage-pale); color: var(--evergreen); font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-chip::before { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); content: ""; }
.status-chip.is-pending { background: #f6eee6; color: #8b543b; }
.status-chip.is-pending::before { background: var(--terracotta); }
.photo-button { min-width: 132px; }
.photo-button[disabled] { border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.empty-state { padding: 34px 12px; color: var(--ink-soft); text-align: center; }
.empty-state > span:first-child { display: block; color: var(--sage); font: 40px/1 var(--serif); }
.empty-state p { margin: 10px 0 4px; font: 500 20px var(--serif); color: var(--ink); }
.empty-state span:last-child { font-size: 12px; color: var(--muted); }
.pagination { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pagination span { color: var(--ink-soft); font-size: 12px; }
.privacy-note { max-width: 700px; margin: 17px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.privacy-note span { margin-right: 5px; color: var(--terracotta); }

.photo-dialog { width: min(900px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 23px; border: 1px solid var(--line); background: var(--white); color: var(--ink); box-shadow: 0 25px 80px rgba(29, 42, 34, .28); }
.photo-dialog::backdrop { background: rgba(27, 40, 33, .66); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-subtitle { margin: 7px 0 0; color: var(--ink-soft); font-size: 12px; }
.dialog-close { flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink-soft); font-size: 24px; line-height: 1; cursor: pointer; }
.photo-status { padding: 25px 0; color: var(--ink-soft); font-size: 13px; }
.photo-image { display: block; max-width: 100%; max-height: min(65vh, 680px); margin: 15px auto 0; object-fit: contain; background: var(--paper-deep); }
.original-link { display: inline-block; margin-top: 12px; }
.staff-footer { min-height: 62px; padding: 17px max(24px, calc((100% - 1180px) / 2)); display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid rgba(83, 100, 92, .15); color: var(--muted); font-size: 11px; }
.staff-footer span:first-child { color: var(--ink-soft); font-family: var(--serif); font-size: 13px; }

@media (max-width: 900px) {
  .search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-term { grid-column: 1 / -1; }
  .search-button { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .staff-header { width: calc(100% - 32px); min-height: 69px; }
  .brand-mark { width: 32px; height: 28px; }
  .brand-name { max-width: 165px; font-size: 15px; }
  .privacy-label { gap: 7px; font-size: 10px; }
  .staff-main { width: calc(100% - 28px); padding: 37px 0 45px; }
  .staff-intro { margin-bottom: 19px; }
  .staff-intro > p:last-child { font-size: 13px; }
  .workspace-card { padding: 18px 14px; }
  .workspace-topline { align-items: flex-start; flex-direction: column; gap: 10px; }
  .account-actions { width: 100%; justify-content: space-between; }
  .staff-email { max-width: 70%; }
  .search-form { padding: 13px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .search-term, .search-button { grid-column: 1 / -1; }
  .results-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .record-card { grid-template-columns: 1fr; gap: 13px; padding: 15px; }
  .record-details { grid-template-columns: 1fr; gap: 6px; }
  .record-side { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .record-date { text-align: left; }
  .photo-button { min-width: 120px; }
  .pagination .button { min-height: 42px; padding: 0 10px; font-size: 11px; }
  .staff-footer { padding: 15px 16px; font-size: 10px; }
  .photo-dialog { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
