:root {
  --ink: #172a24;
  --muted: #68766f;
  --cream: #f6f3eb;
  --paper: #fffdf9;
  --green: #1d5a45;
  --green-2: #2e735b;
  --lime: #d9efaa;
  --line: #dcded5;
  --orange: #e9804f;
  --shadow: 0 24px 70px rgba(35, 57, 48, .12);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", sans-serif; min-height: 100vh; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .32; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.page-shell { width: min(1180px, calc(100% - 44px)); margin: auto; min-height: 100vh; display: flex; flex-direction: column; }
.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 800 20px Manrope, sans-serif; letter-spacing: -.7px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--green); transform: rotate(-3deg); }
.brand-mark svg { width: 22px; transform: rotate(3deg); }
.admin-link { display: flex; align-items: center; gap: 7px; padding: 10px 13px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.admin-link:hover { color: var(--green); }
.admin-link svg { width: 17px; }
main { flex: 1; }
.upload-view { display: grid; grid-template-columns: .94fr 1.06fr; gap: clamp(50px, 8vw, 110px); align-items: center; padding: 34px 40px 64px; }
.hero-copy { max-width: 495px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.6px; color: var(--green-2); }
.status-dot { display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: #7eb35f; box-shadow: 0 0 0 4px rgba(126, 179, 95, .15); }
h1 { margin: 25px 0 22px; font: 800 clamp(46px, 5.6vw, 78px)/.98 Manrope, sans-serif; letter-spacing: -4px; }
h1 em { color: var(--green-2); font-style: normal; }
.hero-copy > p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 460px; }
.trust-row { display: flex; gap: 25px; margin-top: 32px; color: #5d6964; font-size: 12px; font-weight: 700; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row svg { width: 17px; color: var(--green-2); }
.upload-card { position: relative; padding: 34px; border: 1px solid rgba(45, 75, 62, .11); background: rgba(255, 253, 249, .9); border-radius: 22px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.step-label { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; color: #3c5148; font-size: 10px; font-weight: 800; letter-spacing: 1.3px; }
.step-label:not(:first-child) { margin-top: 24px; }
.step-label span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e7eee7; color: var(--green); font-size: 10px; letter-spacing: 0; }
.step-label b { margin-left: auto; color: #a6aca8; font-size: 9px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { color: #506159; font-size: 11px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: white; border-radius: 9px; outline: none; transition: .2s; color: var(--ink); }
label input { display: block; margin-top: 7px; padding: 12px 13px; font-size: 13px; }
input:focus, textarea:focus, select:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(46, 115, 91, .1); }
::placeholder { color: #a8aea9; }
.drop-zone { min-height: 145px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1.5px dashed #b8c8be; border-radius: 12px; background: #f9fbf7; text-align: center; transition: .2s; }
.drop-zone:hover, .drop-zone.dragging, .drop-zone:focus { border-color: var(--green-2); background: #f3f8f1; outline: none; transform: translateY(-1px); }
.drop-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 12px; color: var(--green-2); background: #e8f1e7; }
.drop-icon svg { width: 24px; }
.drop-zone strong { font-size: 12px; }
.drop-zone strong u { color: var(--green-2); text-underline-offset: 2px; }
.drop-zone > span { margin-top: 5px; color: #8b948f; font-size: 10px; }
.drop-zone small { margin-top: 2px; color: #adb2ae; font-size: 9px; }
.file-list { display: grid; gap: 7px; margin-top: 10px; }
.file-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; padding: 8px 10px; background: #f2f6f1; border-radius: 8px; }
.file-type { display: grid; place-items: center; height: 28px; background: var(--lime); border-radius: 7px; font-size: 8px; font-weight: 800; }
.file-meta { min-width: 0; }
.file-meta strong, .file-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta strong { font-size: 11px; }.file-meta small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.remove-file { border: 0; background: transparent; color: #8a948f; font-size: 17px; }
textarea { min-height: 70px; padding: 12px 14px; resize: vertical; font-size: 12px; line-height: 1.5; }
.char-count { margin-top: -21px; padding-right: 10px; position: relative; text-align: right; color: #a1a8a3; font-size: 9px; pointer-events: none; }
.submit-button { width: 100%; display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 25px; padding: 14px 20px; border: 0; border-radius: 9px; color: white; background: var(--green); font-weight: 800; font-size: 13px; box-shadow: 0 9px 25px rgba(29,90,69,.2); transition: .2s; }
.submit-button:hover { background: #134936; transform: translateY(-1px); }.submit-button:disabled { opacity: .65; cursor: wait; }
.submit-button svg { width: 17px; }.terms { margin: 9px 0 0; text-align: center; color: #9da39f; font-size: 8.5px; }
footer { min-height: 65px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(33,64,51,.1); color: #8b948f; font-size: 10px; }
.success-view { padding: 60px 0 90px; }.success-card { max-width: 630px; margin: auto; padding: 55px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.success-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 25px; border-radius: 50%; background: var(--lime); color: var(--green); }.success-icon svg { width: 42px; }
.success-card h2, .admin-heading h2 { margin: 13px 0; font: 800 38px Manrope; letter-spacing: -1.7px; }.success-card > p { color: var(--muted); line-height: 1.65; }
.receipt { margin: 30px 0; border-top: 1px solid var(--line); text-align: left; }.receipt-row { display: flex; align-items: center; gap: 12px; padding: 13px 5px; border-bottom: 1px solid var(--line); }.receipt-row svg { width: 18px; color: var(--green); }.receipt-row span { flex: 1; font-size: 12px; }.receipt-row small { color: var(--muted); }
.secondary-button { padding: 11px 17px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-weight: 700; font-size: 12px; }
.admin-view { padding: 35px 15px 70px; }.admin-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 30px; }.admin-heading h2 { font-size: 42px; margin-bottom: 5px; }.admin-heading p { margin: 0; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; }.stat-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }.stat-grid span,.stat-grid small { display: block; color: var(--muted); font-size: 11px; }.stat-grid strong { display: block; margin: 9px 0 3px; font: 800 28px Manrope; }
.submission-panel { border: 1px solid var(--line); border-radius: 15px; background: var(--paper); overflow: hidden; }.toolbar { display: flex; justify-content: space-between; gap: 15px; padding: 17px; border-bottom: 1px solid var(--line); }.search-box { flex: 1; max-width: 480px; position: relative; }.search-box svg { position: absolute; left: 12px; top: 11px; width: 18px; color: var(--muted); }.search-box input { height: 40px; padding: 0 12px 0 38px; }.toolbar select { width: 170px; padding: 0 12px; }
.submission-row { display: grid; grid-template-columns: 45px 1.2fr 1.4fr .7fr auto; gap: 14px; align-items: center; padding: 17px; border-bottom: 1px solid #eceee8; }.submission-row:last-child { border: 0; }.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #e2ecdd; color: var(--green); font-weight: 800; }.person strong,.submission-files strong { display: block; font-size: 12px; }.person small,.submission-files small,.date-cell { color: var(--muted); font-size: 10px; }.submission-files strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.status-btn { padding: 7px 10px; border: 0; border-radius: 20px; background: #edf4ea; color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }.status-btn.reviewed { background: #f0f0ed; color: #78817d; }.empty-state { padding: 65px 25px; text-align: center; color: var(--muted); }.empty-state strong { display: block; margin-bottom: 6px; color: var(--ink); }.download-btn { padding: 8px; border: 0; background: transparent; color: var(--green); }.download-btn svg { width: 19px; }
.toast { position: fixed; right: 24px; bottom: 24px; padding: 12px 17px; border-radius: 10px; background: var(--ink); color: white; font-size: 12px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s; }.toast.show { opacity: 1; transform: none; }
.form-notice { margin: 12px 0; padding: 11px 13px; border-radius: 9px; color: var(--green); background: #e7f2e8; font-size: 11px; line-height: 1.45; }
.form-notice.error { color: #8a302a; background: #fae7e4; }
.login-card { max-width: 470px; text-align: left; }
.login-card h2, .login-card > p { text-align: center; }
.login-card label { display: block; margin: 15px 0; }
.login-card label input { margin-top: 7px; }
.login-card .secondary-button { width: 100%; margin-top: 10px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.submission-row { grid-template-columns: 45px 1.05fr 1.6fr .7fr auto; }
.submission-files button { margin-top: 6px; }
.submission-note { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.download-file, .preview-file { padding: 6px 8px; border: 1px solid #cedbd3; border-radius: 7px; color: var(--green); background: #f4f9f4; font-size: 9px; font-weight: 800; }
.preview-file { color: white; border-color: var(--green); background: var(--green); }
.archive-file { padding: 6px 9px; border: 1px solid #1970a3; border-radius: 7px; color: white; background: #1683c6; font-size: 9px; font-weight: 800; }
.archive-file:disabled { color: #718078; border-color: #d7ddd8; background: #eef1ee; }
.status-btn.archived { color: #176590; background: #e0f2fc; }
.preview-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(12, 31, 24, .76); backdrop-filter: blur(7px); }
.preview-dialog { width: min(980px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.preview-header, .preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.preview-header h3 { max-width: 760px; margin: 4px 0 0; overflow: hidden; font: 800 20px Manrope, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.preview-close { width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--ink); background: #edf0eb; font-size: 25px; line-height: 1; }
.preview-body { min-height: 300px; flex: 1; display: grid; place-items: center; overflow: auto; padding: 18px; background: #e9ece8; }
.preview-body img { max-width: 100%; max-height: 70vh; border-radius: 8px; box-shadow: 0 10px 35px rgba(0,0,0,.14); }
.preview-body iframe { width: 100%; height: 68vh; border: 0; border-radius: 8px; background: white; }
.preview-body video { max-width: 100%; max-height: 68vh; }
.preview-body audio { width: min(560px, 100%); }
.preview-body pre { width: 100%; min-height: 300px; margin: 0; padding: 20px; overflow: auto; border-radius: 8px; color: #293a33; background: white; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.preview-loading { color: var(--muted); font-size: 12px; }
.preview-footer { border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); font-size: 10px; }
.preview-footer .secondary-button { color: var(--ink); text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 850px) { .upload-view { grid-template-columns: 1fr; padding: 40px 10px 60px; gap: 45px; }.hero-copy { text-align: center; margin: auto; }.hero-copy > p { margin: auto; }.trust-row { justify-content: center; } h1 { letter-spacing: -2.5px; }.submission-row { grid-template-columns: 40px 1fr auto; }.submission-files { grid-column: 2 / 4; }.date-cell { display: none; } }
@media (max-width: 560px) { .page-shell { width: min(100% - 26px, 1180px); }.site-header { height: 72px; }.upload-view { padding-top: 25px; }.field-grid { grid-template-columns: 1fr; }.upload-card { padding: 24px 18px; }.trust-row { flex-direction: column; align-items: center; gap: 10px; }.success-card { padding: 38px 20px; }.admin-heading { align-items: start; gap: 20px; flex-direction: column; }.stat-grid { grid-template-columns: 1fr; }.toolbar { flex-direction: column; }.search-box,.toolbar select { width: 100%; max-width: none; } footer { padding: 20px 0; gap: 8px; flex-direction: column; } }
