:root {
  --ink: #11100f;
  --bronze: #b99172;
  --warm: #f7f3ee;
  --line: #e7ded4;
  --muted: #716a64;
  --white: #fff;
  --green: #22734a;
  --red: #b44235;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--warm);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
.topbar {
  height: 84px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
}
.identity {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}
.identity img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.identity span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.identity b {
  font: 800 20px Manrope;
}
.identity small {
  letter-spacing: 0.2em;
  font-size: 9px;
  margin-top: 6px;
}
.back,
.back-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 72px;
}
.intro {
  position: sticky;
  top: 120px;
  align-self: start;
}
.eyebrow {
  font: 700 12px Manrope;
  letter-spacing: 0.13em;
  color: #876348;
}
.intro h1,
.success-card h1,
.login-card h1,
.admin-heading h1,
.detail-title h1 {
  font: 800 clamp(34px, 4vw, 58px) / 1.06 Manrope;
  margin: 16px 0;
}
.intro p,
.success-card > p,
.login-card > p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}
.help {
  margin-top: 32px;
  border-left: 3px solid var(--bronze);
  padding: 5px 0 5px 16px;
  display: flex;
  flex-direction: column;
}
.help small {
  color: var(--muted);
}
.help a {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.form-card,
.login-card,
.success-card,
.panel,
.table-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 55px rgba(30, 20, 12, 0.06);
  border-radius: 22px;
}
.form-card {
  padding: 38px;
}
.section-head {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 25px;
}
.section-head.docs {
  margin-top: 42px;
}
.section-head > b {
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.section-head h2,
.panel h2 {
  font: 800 22px Manrope;
  margin: 2px 0 5px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}
label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
}
em {
  color: #a34a35;
  font-style: normal;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9cfc5;
  background: #fff;
  border-radius: 10px;
  padding: 14px 15px;
  font: 500 15px "DM Sans";
  color: var(--ink);
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(185, 145, 114, 0.15);
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.uploads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.uploads label {
  border: 1px dashed #cdbdaf;
  background: #fbf9f6;
  padding: 16px;
  border-radius: 12px;
}
.uploads label span {
  font-weight: 500;
  color: var(--muted);
}
input[type="file"] {
  padding: 10px;
  background: #fff;
  font-size: 12px;
}
.uploads label.required {
  border-color: #a34a35;
}
.consent {
  flex-direction: row;
  align-items: flex-start;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 10px;
}
.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0;
}
.submit,
.filters button {
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 11px;
  padding: 16px 20px;
  font: 800 15px Manrope;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.submit:hover {
  background: #332b25;
}
.privacy {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 14px 0 0;
}
.flash-wrap {
  max-width: 900px;
  margin: 18px auto -20px;
  padding: 0 24px;
}
.flash {
  padding: 13px 16px;
  border-radius: 9px;
  margin: 8px 0;
  background: #fff;
  border: 1px solid var(--line);
}
.flash.error {
  border-color: #e0aaa3;
  color: #8d3028;
}
.flash.success {
  border-color: #9fd0b6;
  color: #17613d;
}
footer {
  text-align: center;
  padding: 28px;
  color: var(--muted);
  font-size: 13px;
}
.center-page {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  padding: 50px 20px;
}
.success-card,
.login-card {
  width: min(570px, 100%);
  padding: 48px;
  text-align: center;
}
.check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e6f4ec;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  margin: 0 auto 22px;
}
.reg-number {
  background: var(--ink);
  color: #fff;
  padding: 18px;
  border-radius: 12px;
  margin: 25px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.reg-number strong {
  font: 800 24px Manrope;
  letter-spacing: 0.05em;
}
.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}
.actions a {
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.actions .primary {
  background: var(--ink);
  color: #fff;
}
.login-card {
  text-align: left;
}
.login-card h1 {
  font-size: 40px;
}
.admin-page {
  max-width: 1240px;
  margin: auto;
  padding: 48px 24px 80px;
}
.admin-heading,
.detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-heading h1,
.detail-title h1 {
  font-size: 42px;
  margin: 8px 0;
}
.ghost {
  padding: 10px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 30px 0;
}
.stats article {
  background: #fff;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.stats small {
  display: block;
  color: var(--muted);
}
.stats strong {
  display: block;
  font: 800 30px Manrope;
  margin-top: 6px;
}
.date-filter-card { margin:0 0 18px; padding:22px; border:1px solid #e2d7cb; border-radius:20px; background:linear-gradient(145deg,#fff 0%,#fcf8f3 100%); box-shadow:0 12px 32px rgba(29,22,16,.07); }
.date-filter-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:15px; }
.date-filter-head h2 { margin:0; font:800 20px Manrope; }
.date-filter-head strong { padding:8px 12px; border-radius:99px; background:#f3ece4; color:#785538; font:800 12px Manrope; }
.date-presets { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:9px; }
.date-chip { min-height:46px; display:flex; align-items:center; justify-content:center; gap:7px; border:1px solid #ddd1c4; border-radius:13px; padding:10px 12px; background:#fff; color:#554b42; font:750 12px Manrope; cursor:pointer; appearance:none; -webkit-appearance:none; box-shadow:0 2px 7px rgba(35,25,16,.035); transition:transform .18s,border-color .18s,background .18s,box-shadow .18s; }
.date-chip:hover { transform:translateY(-1px); border-color:#a67b58; background:#faf4ed; }
.date-chip.active { border-color:#11100f; background:#11100f; color:#fff; box-shadow:0 7px 16px rgba(25,18,13,.18); }
.date-chip > i:not(.calendar-mark) { display:grid; place-items:center; width:17px; height:17px; border-radius:50%; background:#a77747; color:#fff; font:800 10px Manrope; }
.calendar-mark { width:16px; height:16px; border:1.7px solid currentColor; border-radius:4px; position:relative; }
.calendar-mark::before { content:""; position:absolute; left:2px; right:2px; top:4px; border-top:1.5px solid currentColor; }
.custom-range { display:none; align-items:end; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto; gap:12px; margin-top:16px; padding:17px; border:1px solid #e6d9cc; border-radius:16px; background:#fff; box-shadow:inset 0 1px 0 rgba(255,255,255,.7); }
.custom-range.show { display:flex; }
.custom-range.show { display:grid; }
.custom-range label { margin:0; color:#655b52; font:700 11px Manrope; }
.date-input-shell { height:52px; display:flex; align-items:center; gap:10px; margin-top:7px; padding:0 13px; border:1px solid #ddd2c7; border-radius:13px; background:#fbfaf8; transition:border-color .18s,box-shadow .18s; }
.date-input-shell:focus-within { border-color:#a67b58; box-shadow:0 0 0 3px rgba(166,123,88,.12); }
.date-input-shell > i { flex:none; width:16px; height:16px; border:1.7px solid #9a6b35; border-radius:4px; position:relative; }
.date-input-shell > i::after { content:""; position:absolute; left:2px; right:2px; top:4px; border-top:1.5px solid #9a6b35; }
.custom-range input { width:100%; min-width:0; height:auto; margin:0; padding:0; border:0; border-radius:0; background:transparent; color:#241e19; font:700 13px Manrope; box-shadow:none; }
.custom-range input:focus { outline:0; box-shadow:none; }
.range-arrow { align-self:center; color:#a67b58; font-size:20px; padding-top:20px; }
.apply-date { min-height:52px; display:flex; align-items:center; justify-content:center; gap:10px; padding:0 18px; border:0; border-radius:13px; background:#11100f; color:#fff; font:800 12px Manrope; cursor:pointer; box-shadow:0 7px 15px rgba(17,16,15,.16); transition:transform .18s,background .18s; }
.apply-date:hover { transform:translateY(-1px); background:#2a231e; }
.apply-date i { color:#d6a873; font-style:normal; font-size:17px; }
.filters {
  display: grid;
  grid-template-columns: 1fr 210px 100px;
  gap: 10px;
  margin-bottom: 16px;
}
.filters button {
  justify-content: center;
  padding: 12px;
}
.export-panel { margin:0 0 18px; padding:22px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(145deg,#fff 0%,#fbf8f3 100%); box-shadow:0 12px 32px rgba(29,22,16,.06); }
.export-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:18px; }
.export-kicker { display:block; margin-bottom:5px; color:#9a6b35; font:800 10px Manrope; letter-spacing:.13em; }
.export-head h2 { margin:0; font:800 20px Manrope; }
.export-head p { max-width:620px; margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.55; }
.export-secure { flex:none; padding:7px 10px; border:1px solid #dfd0bc; border-radius:99px; background:#f8efe4; color:#805a31; font:700 10px Manrope; }
.export-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.export-btn { width:100%; min-height:70px; display:grid; grid-template-columns:42px 1fr 24px; align-items:center; gap:12px; padding:12px 14px; border:1px solid transparent; border-radius:14px; color:#fff; text-align:left; cursor:pointer; transition:transform .2s,box-shadow .2s,opacity .2s; }
.export-btn:hover { transform:translateY(-2px); box-shadow:0 10px 22px rgba(25,17,11,.16); }
.export-btn:focus-visible { outline:3px solid rgba(157,112,61,.28); outline-offset:3px; }
.export-btn:disabled { cursor:wait; opacity:.76; transform:none; }
.export-btn.excel { background:linear-gradient(135deg,#17653d,#238653); }
.export-btn.pdf { background:linear-gradient(135deg,#8e302d,#bd4a43); }
.export-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:11px; background:rgba(255,255,255,.16); font:800 10px Manrope; letter-spacing:.04em; }
.export-copy b,.export-copy small { display:block; }
.export-copy b { font:800 14px Manrope; }
.export-copy small { margin-top:3px; color:rgba(255,255,255,.78); font:500 11px DM Sans; }
.export-arrow { font-size:22px; text-align:center; }
.export-btn.is-loading .export-arrow { width:18px; height:18px; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; font-size:0; animation:export-spin .75s linear infinite; }
.export-btn.is-done .export-arrow { font-size:0; }
.export-btn.is-done .export-arrow::after { content:"✓"; font-size:18px; }
.export-feedback { display:none; margin-top:12px; padding:10px 12px; border-radius:10px; font-size:12px; font-weight:600; }
.export-feedback.show { display:block; }
.export-feedback.success { background:#e8f5ed; color:#17653d; }
.export-feedback.error { background:#fbeceb; color:#982f2c; }
@keyframes export-spin { to { transform:rotate(360deg); } }
.table-card {
  overflow: auto;
}
.table-card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
th,
td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fbf9f6;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.status {
  display: inline-block;
  border-radius: 99px;
  padding: 7px 10px;
  background: #eee;
  font-weight: 700;
  font-size: 12px;
}
.s-baru {
  background: #f5eadd;
  color: #7d5635;
}
.s-diverifikasi {
  background: #e4eff9;
  color: #285d89;
}
.s-perlu-perbaikan {
  background: #fff1cf;
  color: #805c08;
}
.s-diterima {
  background: #def2e7;
  color: #17613d;
}
.s-ditolak {
  background: #f7dfdc;
  color: #8d3028;
}
.view,
td a {
  color: #684c37;
  font-weight: 700;
  text-decoration: none;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 50px;
}
.back-link {
  display: inline-block;
  margin-bottom: 25px;
}
.detail-title {
  margin-bottom: 25px;
}
.detail-title p {
  color: var(--muted);
}
.detail-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 18px;
}
.panel {
  padding: 28px;
}
.panel dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 15px;
  margin: 20px 0 0;
}
.panel dt {
  color: var(--muted);
}
.panel dd {
  margin: 0;
  font-weight: 700;
}
.panel a {
  color: #684c37;
}
.doc-list {
  display: grid;
  gap: 9px;
}
.doc-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px;
  background: #fbf9f6;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-decoration: none;
}
.doc-list span {
  display: flex;
  flex-direction: column;
}
.doc-list small {
  color: var(--muted);
  margin-top: 4px;
}
.doc-list i {
  font-style: normal;
  font-weight: 700;
}
.document-panel { min-width:0; }
.document-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:17px; }
.document-heading h2 { margin:0; }
.document-heading > small { color:var(--muted); font-size:11px; }
.doc-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.doc-card { min-width:0; overflow:hidden; border:1px solid #e1d6cb; border-radius:16px; background:#fff; box-shadow:0 6px 18px rgba(32,22,14,.055); transition:transform .2s,box-shadow .2s,border-color .2s; }
.doc-card:hover { transform:translateY(-2px); border-color:#c5a98d; box-shadow:0 12px 26px rgba(32,22,14,.1); }
.doc-preview { position:relative; width:100%; height:164px; display:block; overflow:hidden; padding:0; border:0; border-bottom:1px solid #e8ded4; background:#eee8e0; cursor:zoom-in; appearance:none; -webkit-appearance:none; }
.doc-preview img { width:100%; height:100%; display:block; object-fit:cover; transition:transform .35s; }
.doc-card:hover .doc-preview img { transform:scale(1.035); }
.preview-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:8px; background:linear-gradient(180deg,transparent 42%,rgba(12,10,8,.7)); color:#fff; opacity:0; transition:opacity .2s; padding-top:85px; }
.doc-preview:hover .preview-overlay,.doc-preview:focus-visible .preview-overlay { opacity:1; }
.preview-overlay i { width:18px; height:18px; position:relative; border:2px solid currentColor; border-radius:50%; }
.preview-overlay i::after { content:""; position:absolute; width:7px; border-top:2px solid currentColor; right:-5px; bottom:-3px; transform:rotate(45deg); }
.preview-overlay b { font:800 11px Manrope; }
.doc-meta { min-height:68px; display:flex; align-items:center; justify-content:space-between; gap:9px; padding:11px 12px; }
.doc-meta > div { min-width:0; }
.doc-meta b,.doc-meta small { display:block; }
.doc-meta b { color:#4e3727; font:800 12px Manrope; }
.doc-meta small { max-width:190px; margin-top:3px; overflow:hidden; color:var(--muted); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.doc-download { flex:none; display:flex; align-items:center; gap:5px; padding:8px 10px; border-radius:10px; background:#f5ede4; color:#684c37!important; font:800 10px Manrope; text-decoration:none; transition:background .18s,transform .18s; }
.doc-download:hover { background:#eadac9; transform:translateY(-1px); }
.doc-download i { font-style:normal; font-size:14px; }
.pdf-preview { cursor:pointer; background:linear-gradient(145deg,#f4ebe5,#e8d7ce); }
.pdf-art { height:100%; display:grid; place-items:center; align-content:center; gap:8px; color:#963b35; }
.pdf-art b { padding:9px 11px; border-radius:9px; background:#963b35; color:#fff; font:800 13px Manrope; letter-spacing:.06em; }
.pdf-art i { width:54px; border-top:4px solid rgba(150,59,53,.25); box-shadow:0 9px 0 rgba(150,59,53,.18),0 18px 0 rgba(150,59,53,.12); }
.doc-lightbox { position:fixed; inset:0; z-index:1000; display:flex; flex-direction:column; visibility:hidden; opacity:0; background:rgba(8,7,6,.94); backdrop-filter:blur(10px); transition:opacity .2s,visibility .2s; }
.doc-lightbox.open { visibility:visible; opacity:1; }
body.lightbox-open { overflow:hidden; }
.lightbox-bar { min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 22px; border-bottom:1px solid rgba(255,255,255,.12); color:#fff; }
.lightbox-bar span { display:block; color:#c99b6d; font:800 9px Manrope; letter-spacing:.14em; }
.lightbox-bar strong { display:block; margin-top:3px; font:800 15px Manrope; }
.lightbox-actions { display:flex; align-items:center; gap:9px; }
.lightbox-actions a,.lightbox-actions button { height:42px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.19); border-radius:11px; background:rgba(255,255,255,.08); color:#fff!important; font:700 11px Manrope; text-decoration:none; cursor:pointer; }
.lightbox-actions a { gap:7px; padding:0 14px; }
.lightbox-actions a i { font-style:normal; font-size:16px; }
.lightbox-actions button { width:42px; padding:0; font:300 29px DM Sans; }
.lightbox-stage { flex:1; min-height:0; display:grid; place-items:center; padding:22px; overflow:auto; }
.lightbox-stage img { max-width:100%; max-height:calc(100vh - 118px); object-fit:contain; border-radius:6px; box-shadow:0 16px 60px rgba(0,0,0,.42); }
.lightbox-stage iframe { width:min(1080px,100%); height:100%; min-height:70vh; border:0; border-radius:8px; background:#fff; }
.review {
  margin-top: 18px;
}
.review .submit {
  width: auto;
  min-width: 190px;
}
textarea {
  resize: vertical;
}

/* Modern registration choices and file upload cards */
.field-label { font-weight: 700; font-size: 14px; margin: 2px 0 10px; }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.choice-cards label { position: relative; display: grid; grid-template-columns: 42px 1fr 24px; align-items: center; gap: 12px; margin: 0; padding: 15px; border: 1px solid #d9cfc5; border-radius: 14px; background: #fff; cursor: pointer; transition: .2s; }
.choice-cards label:hover { border-color: var(--bronze); background: #fdfbf8; }
.choice-cards input { position: absolute; opacity: 0; pointer-events: none; }
.choice-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: #f2ebe4; color: #805d43; font-size: 21px; }
.choice-cards b { display: block; font: 700 14px Manrope; }
.choice-cards small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; margin-top: 3px; }
.choice-cards i { width: 22px; height: 22px; display: grid; place-items: center; border: 1.5px solid #cfc4b9; border-radius: 50%; color: transparent; font-style: normal; font-size: 12px; }
.choice-cards label:has(input:checked) { border-color: #9e7658; background: #fbf7f2; box-shadow: 0 0 0 3px rgba(185,145,114,.13); }
.choice-cards label:has(input:checked) i { background: var(--ink); border-color: var(--ink); color: #fff; }
.modern-select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.select-shell { position: relative; display: block; }
.select-trigger { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid #d9cfc5; border-radius: 11px; background: #fff; color: var(--ink); font: 600 15px 'DM Sans'; text-align: left; cursor: pointer; }
.select-trigger i { width: 20px; height: 20px; flex: 0 0 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236f6862' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") center/20px 20px no-repeat; transition: transform .2s ease; }
.select-shell.open .select-trigger { border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(185,145,114,.15); }
.select-shell.open .select-trigger i { transform: rotate(180deg); }
.select-menu { display: none; position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 7px); max-height: 310px; overflow: auto; padding: 7px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 18px 50px rgba(25,17,11,.16); }
.select-shell.open .select-menu { display: block; }
.select-menu > b { display: block; padding: 10px 11px 5px; color: #8a6b53; font: 800 10px Manrope; letter-spacing: .1em; text-transform: uppercase; }
.select-menu button { width: 100%; border: 0; border-radius: 9px; padding: 11px; background: transparent; color: var(--ink); font: 600 13px 'DM Sans'; text-align: left; cursor: pointer; }
.select-menu button:hover, .select-menu button.selected { background: #f5eee7; color: #6f4f37; }
.auto-select { width: 100%; min-width: 0; }
.auto-select .select-trigger { height: 50px; border-radius: 12px; font-weight: 500; }
.auto-select .select-menu { min-width: 100%; max-height: 280px; }
.auto-select .select-menu button { font-size: 14px; font-weight: 500; padding: 12px; }
.auto-select .select-menu button.selected { position: relative; padding-right: 38px; }
.auto-select .select-menu button.selected::after { content: ""; position: absolute; right: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%236f4f37' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center/contain no-repeat; }
.filters .auto-select { align-self: stretch; }
.filters .auto-select .select-trigger { height: 100%; min-height: 50px; }
.review label .auto-select { margin-top: 0; }
.uploads { gap: 14px; }
.uploads .upload-card { position: relative; border: 1px solid #ded3c8; background: #fff; padding: 15px; border-radius: 15px; overflow: hidden; cursor: pointer; transition: .2s; }
.uploads .upload-card:hover { border-color: var(--bronze); box-shadow: 0 8px 24px rgba(38,25,14,.06); }
.upload-title { display: block !important; color: var(--ink) !important; font: 700 14px Manrope; margin-bottom: 11px; }
.upload-title small { font: 500 11px 'DM Sans'; color: var(--muted); }
.upload-card input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-ui { display: grid !important; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; border: 1px dashed #cbbbae; background: #fbf8f4; padding: 12px; border-radius: 11px; }
.upload-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #eee3d9; color: #79583f !important; font-size: 21px !important; }
.upload-copy b { display: block; color: var(--ink); font-size: 12px; }
.upload-copy small { display: block; font-size: 10px; margin-top: 3px; }
.upload-action { color: #fff !important; background: var(--ink); border-radius: 8px; padding: 9px 11px; font-size: 11px !important; font-weight: 700 !important; white-space: nowrap; }
.file-selected { display: none !important; margin-top: 9px; color: var(--green) !important; font-size: 11px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-card.has-file { border-color: #8eb9a0; background: #fbfffc; }
.upload-card.has-file .upload-ui { border-color: #9cc5ad; background: #f3faf6; }
.upload-card.has-file .file-selected { display: block !important; }
.uploads .upload-card.required { border-color: #c97d72; background: #fffaf9; }
@media (max-width: 800px) {
  .choice-cards { grid-template-columns: 1fr; }
  .choice-cards label { padding: 13px; }
  .upload-ui { grid-template-columns: 36px 1fr; }
  .upload-action { grid-column: 1/-1; text-align: center; padding: 10px; }
  .section-head.docs { margin-top: 34px; }
  .uploads .upload-card { padding: 14px; }
  .topbar {
    height: 70px;
  }
  .identity img {
    width: 42px;
    height: 42px;
  }
  .back {
    font-size: 12px;
  }
  .page {
    grid-template-columns: 1fr;
    padding-top: 38px;
    gap: 30px;
  }
  .intro {
    position: static;
  }
  .form-card {
    padding: 24px;
  }
  .grid,
  .uploads,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .filters {
    grid-template-columns: 1fr;
  }
  .date-filter-head { align-items:flex-start; }
  .date-filter-card { padding:17px; border-radius:17px; }
  .date-filter-head { margin-bottom:13px; }
  .date-filter-head h2 { font-size:18px; }
  .date-filter-head strong { padding:7px 9px; }
  .date-presets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .date-chip { min-height:44px; padding:10px 8px; }
  .date-chip:last-child { grid-column:1 / -1; }
  .custom-range { display:none; grid-template-columns:1fr; align-items:stretch; padding:13px; gap:10px; }
  .custom-range.show { display:grid; }
  .custom-range input { width:100%; min-width:0; }
  .range-arrow { display:none; }
  .apply-date { width:100%; }
  .export-panel { padding:17px; border-radius:16px; }
  .export-head { display:block; }
  .export-secure { display:inline-block; margin-top:12px; }
  .export-actions { grid-template-columns:1fr; }
  .admin-heading,
  .detail-title {
    align-items: flex-start;
    gap: 15px;
  }
  .admin-heading h1,
  .detail-title h1 {
    font-size: 31px;
  }
  .success-card,
  .login-card {
    padding: 30px 22px;
  }
  .actions {
    flex-direction: column;
  }
  .panel dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .document-heading { align-items:flex-start; }
  .document-heading > small { max-width:120px; text-align:right; }
  .doc-gallery { grid-template-columns:1fr; }
  .doc-preview { height:210px; }
  .preview-overlay { opacity:1; background:linear-gradient(180deg,transparent 58%,rgba(12,10,8,.66)); padding-top:120px; }
  .lightbox-bar { min-height:64px; padding:10px 13px; }
  .lightbox-actions a span { display:none; }
  .lightbox-stage { padding:10px; }
  .panel dd {
    margin-bottom: 12px;
  }
}
