* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --ink: #171411;
  --ink-soft: #27211c;
  --cream: #f2ede4;
  --paper: #fbf8f1;
  --brass: #c79753;
  --brass-light: #dfbb7b;
  --line: #ded5c7;
  --muted: #766b5e;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
body { min-width: 320px; min-height: 100vh; margin: 0; display: flex; flex-direction: column; background: var(--cream); }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
:focus-visible { outline: 3px solid #9c6d37; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 12px 16px; transform: translateY(-160%); background: var(--paper); color: var(--ink); }
.skip-link:focus { transform: translateY(0); }
.topbar { height: 82px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(22px, 5vw, 78px); background: var(--ink); color: #fffaf0; border-bottom: 1px solid rgba(223,187,123,.2); }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { position: relative; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(223,187,123,.65); border-radius: 50%; color: var(--brass-light); font: 26px/1 var(--serif); }
.brand-mark i { position: absolute; right: 5px; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font: 600 19px/1 var(--serif); letter-spacing: .14em; }
.brand-copy small { color: rgba(255,250,240,.54); font-size: 7px; letter-spacing: .13em; }
.topbar-label, .eyebrow, .site-footer { font-size: 9px; letter-spacing: .16em; }
.topbar-label { color: var(--brass-light); }
.page-shell { flex: 1 0 auto; width: min(1440px, 100%); margin: 0 auto; padding: 58px clamp(22px, 5vw, 78px) 74px; }
.eyebrow { margin: 0 0 13px; color: #987044; font-weight: 600; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 34px; }
.page-heading h1, .auth-card h1 { margin: 0; font: 500 clamp(42px, 6vw, 69px)/1.02 var(--serif); letter-spacing: -.04em; }
h1 em, .auth-card h1 em { color: #9d7142; font-weight: 500; }
.page-intro { max-width: 610px; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.account-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 15px; }
.account-name { max-width: 210px; color: #756a5d; font-size: 12px; overflow-wrap: anywhere; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; padding: 0 17px; text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .07em; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.button-gold { background: var(--brass-light); color: var(--ink); }
.button-gold:hover { background: #e8ca92; }
.button-dark { background: var(--ink); color: #fffaf0; }
.button-dark:hover { background: #3b3025; }
.button-outline { border-color: #b8aa97; background: transparent; color: #564a3c; }
.button-outline:hover:not(:disabled) { background: #e9e1d5; }
.button-danger { border-color: #a45c4e; background: transparent; color: #843d32; }
.button-danger:hover { background: #f5e6e1; }
.summary-section { margin-bottom: 25px; }
.summary-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.summary-card { display: flex; min-height: 91px; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; border: 1px solid #d9cfbf; border-top: 2px solid transparent; padding: 13px 15px; background: #faf7f0; color: var(--ink); text-align: left; transition: border-color .16s ease, background .16s ease; }
.summary-card:hover, .summary-card.is-active { border-top-color: var(--brass); background: #fffdf8; }
.summary-card.is-active { border-color: #c8a875; }
.summary-label { color: #756a5d; font-size: 11px; }
.summary-number { font: 500 27px/1 var(--serif); }
.inbox-panel { border: 1px solid #ddd4c6; background: var(--paper); box-shadow: 0 9px 34px rgba(48,35,20,.045); }
.inbox-toolbar { display: flex; min-height: 94px; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.filters { display: flex; align-items: flex-end; gap: 12px; }
.search-field { width: min(32vw, 310px); }
.status-field { width: 170px; }
.filters label, .detail-status-control label { display: block; margin: 0 0 6px; color: #675b4c; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.filters input, .filters select, .detail-status-control select { display: block; width: 100%; height: 43px; border: 1px solid #d5cbbc; border-radius: 0; padding: 0 11px; background: #fffdf8; color: var(--ink); font-size: 13px; }
.filters input::placeholder { color: #978b7b; }
.filters .button { min-height: 43px; }
.result-count { min-width: 100px; margin: 0 0 12px; color: #7e7366; font-size: 11px; text-align: right; }
.notice { margin: 16px 20px; border-left: 3px solid var(--brass); padding: 12px 14px; background: #f1e8d9; color: #594832; font-size: 13px; line-height: 1.55; }
.notice-error, .detail-error { border-color: #a4493d; background: #f5e7e2; color: #71362d; }
.workspace { display: grid; min-height: 540px; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.42fr); }
.list-pane { display: flex; min-height: 540px; flex-direction: column; border-right: 1px solid var(--line); }
.pane-status { margin: auto; max-width: 330px; padding: 32px 22px; color: #756b60; font-size: 13px; line-height: 1.65; text-align: center; }
.request-list { flex: 1 1 auto; margin: 0; padding: 0; list-style: none; }
.request-list-item { border-bottom: 1px solid #e8e1d6; }
.request-card { display: block; width: 100%; min-height: 112px; border: 0; border-left: 3px solid transparent; padding: 15px 17px; background: transparent; color: var(--ink); text-align: left; }
.request-card:hover { background: #f3eee5; }
.request-card.is-selected { border-left-color: var(--brass); background: #f1eadf; }
.request-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.request-name { font: 500 18px/1.25 var(--serif); }
.request-email { display: block; margin-top: 5px; color: #716659; font-size: 11px; overflow-wrap: anywhere; }
.request-card-meta { display: flex; justify-content: space-between; gap: 9px; margin-top: 12px; color: #938778; font-size: 10px; }
.request-card-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-badge { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 23px; border: 1px solid #d8c9b4; padding: 3px 8px; background: #f3eadb; color: #74552f; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.status-reviewing { border-color: #b5bea9; background: #e9ede5; color: #53654c; }
.status-contacted { border-color: #b7c6cf; background: #e8eff2; color: #47606a; }
.status-closed { border-color: #d4d0c8; background: #eeece7; color: #625f58; }
.status-spam { border-color: #d9b5ac; background: #f4e7e3; color: #863f34; }
.status-unknown { border-color: #d4cabb; background: #f2eee6; color: #6a6256; }
.pagination { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 12px 14px; }
.pagination .button { min-height: 40px; padding: 0 12px; font-size: 10px; }
.pagination span { color: #766b5e; font-size: 10px; }
.detail-pane { min-width: 0; padding: clamp(23px, 3.2vw, 45px); }
.detail-placeholder { max-width: 430px; margin: 64px auto; color: #766b5e; }
.detail-rule { display: block; width: 54px; height: 2px; margin-bottom: 34px; background: var(--brass); }
.detail-placeholder h2 { margin: 0 0 12px; color: var(--ink); font: 500 29px/1.2 var(--serif); }
.detail-placeholder > p:last-child { font-size: 13px; line-height: 1.7; }
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); padding-bottom: 19px; }
.detail-header .eyebrow { margin-bottom: 7px; font-size: 8px; }
.detail-header h2 { margin: 0; font: 500 clamp(25px, 3vw, 36px)/1.17 var(--serif); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 24px; margin: 22px 0 0; }
.detail-field { min-width: 0; }
.detail-field dt { margin: 0 0 5px; color: #8c7d6c; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.detail-field dd { margin: 0; color: #302a23; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.message-section { margin-top: 27px; border-top: 1px solid var(--line); padding-top: 20px; }
.message-section h3 { margin: 0 0 10px; font: 500 20px/1.2 var(--serif); }
.message-body { min-height: 54px; margin: 0; color: #51483d; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 27px; border-top: 1px solid var(--line); padding-top: 20px; }
.detail-status-control { flex: 1 1 185px; }
.detail-actions .button { min-height: 43px; }
.detail-error { margin: 40px auto; max-width: 430px; border-left: 3px solid #a4493d; padding: 18px; }
.detail-error h2 { margin: 0 0 8px; font: 500 22px var(--serif); }
.detail-error p { margin: 0; font-size: 13px; line-height: 1.6; }
.auth-card { max-width: 610px; margin: 6vh auto; border: 1px solid #ddd3c3; padding: clamp(28px, 6vw, 60px); background: var(--paper); box-shadow: 0 10px 40px rgba(48,35,20,.06); }
.auth-card h1 { font-size: clamp(46px, 7vw, 70px); }
.auth-copy { max-width: 440px; margin: 19px 0 25px; color: #706658; font-size: 14px; line-height: 1.75; }
.auth-note { margin: 22px 0 0; color: #898072; font-size: 11px; line-height: 1.65; }
.auth-card .notice { margin: 20px 0 0; }
.site-footer { display: flex; flex: 0 0 auto; justify-content: space-between; gap: 15px; border-top: 1px solid rgba(223,187,123,.18); padding: 22px clamp(22px, 5vw, 78px); background: #13110f; color: rgba(255,250,240,.49); font-size: 8px; }
.site-footer b { padding: 0 4px; color: var(--brass); font-weight: 400; }
.site-footer a { color: var(--brass-light); text-decoration: none; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 1000px) {
  .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workspace { grid-template-columns: minmax(250px, .85fr) minmax(0, 1.2fr); }
  .inbox-toolbar { align-items: flex-end; }
  .search-field { width: min(29vw, 260px); }
  .status-field { width: 145px; }
}
@media (max-width: 720px) {
  .topbar { height: 70px; padding: 0 20px; }
  .brand-mark { width: 36px; height: 36px; font-size: 23px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 6px; }
  .topbar-label { font-size: 8px; text-align: right; }
  .page-shell { padding: 37px 17px 48px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 19px; margin-bottom: 25px; }
  .page-heading h1 { font-size: clamp(42px, 11vw, 58px); }
  .page-intro { margin-top: 12px; font-size: 13px; }
  .account-tools { width: 100%; justify-content: space-between; }
  .account-name { max-width: 65%; overflow-wrap: anywhere; }
  .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .summary-card { min-height: 78px; padding: 10px; }
  .summary-label { font-size: 10px; }
  .summary-number { font-size: 24px; }
  .inbox-toolbar { align-items: stretch; flex-direction: column; gap: 10px; padding: 15px; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
  .search-field { width: auto; grid-column: 1 / -1; }
  .status-field { width: auto; }
  .filters .button { min-height: 46px; align-self: end; }
  .result-count { margin: 0; text-align: left; }
  .workspace { display: flex; flex-direction: column; }
  .list-pane { min-height: auto; border-right: 0; }
  .request-card { min-height: 100px; padding: 14px; }
  .pagination { min-height: 65px; }
  .detail-pane { border-top: 1px solid var(--line); padding: 24px 17px; }
  .detail-placeholder { margin: 18px auto 23px; }
  .detail-rule { margin-bottom: 24px; }
  .detail-grid { gap: 16px 14px; }
  .detail-actions { gap: 10px; }
  .detail-actions .button { min-height: 46px; }
  .detail-status-control { flex-basis: 100%; }
  .detail-status-control select { height: 47px; }
  .site-footer { flex-wrap: wrap; padding: 19px 20px; line-height: 1.6; }
  .site-footer span:nth-child(2) { order: 3; flex-basis: 100%; }
}
@media (max-width: 390px) {
  .topbar-label { max-width: 95px; line-height: 1.5; }
  .brand-copy small { max-width: 170px; line-height: 1.4; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .detail-grid { grid-template-columns: 1fr; gap: 14px; }
  .detail-header { flex-direction: column; }
  .pagination .button { padding: 0 9px; font-size: 9px; }
  .pagination span { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
