@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap");

:root { color-scheme: dark; font-family: "DM Sans", Arial, sans-serif; background: #06172a; color: #eff6ff; font-synthesis: none; text-rendering: optimizeLegibility; --muted: #91a6bd; --line: rgb(157 187 218 / 14%); --panel: #0b2038; --accent: #29d6c7; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(ellipse at 50% -20%, #15456c 0, #081d34 46%, #06172a 80%); font-size: 14px; }
button, input, select { font: inherit; }
.admin-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 34px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.back-link { color: #bdd2e8; text-decoration: none; font-weight: 600; }
.back-link:hover { color: #fff; }
.status { display: inline-flex; align-items: center; gap: 8px; color: #adbed0; font-size: 12px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #e5b75a; box-shadow: 0 0 12px rgb(229 183 90 / 65%); }
.intro { padding: 43px 0 23px; }
.eyebrow { margin: 0 0 7px; color: #64d8d0; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(29px, 4vw, 40px); letter-spacing: -.04em; line-height: 1.15; }
.intro-copy { margin: 11px 0 0; color: #9db0c5; font-size: 14px; }
.privacy-note { display: flex; align-items: flex-start; gap: 12px; border: 1px solid rgb(95 200 205 / 18%); border-radius: 12px; padding: 13px 16px; background: rgb(21 79 91 / 23%); color: #c0d8df; }
.privacy-note p { margin: 0; font-size: 12px; line-height: 1.6; }
.note-icon { display: grid; flex: 0 0 19px; width: 19px; height: 19px; place-items: center; border: 1px solid rgb(100 216 208 / 55%); border-radius: 50%; color: #75e5dc; font-size: 12px; font-weight: 700; }
.toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 25px 0 15px; }
.date-filters, .toolbar-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; }
label { display: grid; gap: 6px; color: #9eb2c8; font-size: 11px; font-weight: 600; }
input, select { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; color: #eef6ff; background: #0a1c31; outline: none; }
input:focus, select:focus { border-color: #49cfc8; box-shadow: 0 0 0 3px rgb(73 207 200 / 13%); }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; padding: 0 13px; color: #eaf4ff; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: filter .16s ease, border-color .16s ease; }
.button:hover { filter: brightness(1.12); }
.button-muted { border-color: var(--line); background: #122941; }
.button-outline { border-color: var(--line); background: #0a1c31; }
.button-primary { color: #032728; background: linear-gradient(110deg, #64e0cd, #45c6d3); }
.import-button { position: relative; overflow: hidden; }
.import-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.metric-card { min-height: 133px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border: 1px solid var(--line); border-radius: 13px; padding: 18px 21px; background: linear-gradient(145deg, #0e2741, #0b2038); }
.metric-card span { color: #a8bad0; font-size: 12px; font-weight: 600; }
.metric-card strong { margin-top: 7px; color: #f4f8fe; font-size: clamp(25px, 4vw, 34px); letter-spacing: -.04em; line-height: 1.15; }
.metric-card small { margin-top: 6px; color: #7188a1; font-size: 10px; }
.metric-highlight { border-color: rgb(41 214 199 / 27%); background: linear-gradient(145deg, rgb(21 73 79 / 79%), #0b2038 85%); }
.metric-highlight strong { color: #5fe0d2; }
.panel { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #0a1d33; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 21px 14px; }
.panel-heading .eyebrow { margin-bottom: 3px; }
h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.updated { color: #8095ac; font-size: 10px; text-align: right; }
.table-wrap { position: relative; min-height: 210px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: rgb(255 255 255 / 2%); }
th, td { padding: 12px 21px; border-top: 1px solid var(--line); white-space: nowrap; }
th { color: #8399b1; font-size: 10px; font-weight: 600; }
td { color: #dbe8f5; font-size: 12px; }
td:not(:first-child) { font-variant-numeric: tabular-nums; }
tbody tr:hover { background: rgb(255 255 255 / 2%); }
td:first-child { font-weight: 700; }
.partner-tag { display: inline-flex; min-width: 54px; align-items: center; justify-content: center; border: 1px solid rgb(100 216 208 / 18%); border-radius: 6px; padding: 4px 7px; color: #76ded4; background: rgb(62 154 154 / 8%); font-size: 10px; }
.empty-state { display: none; min-height: 172px; flex-direction: column; align-items: center; justify-content: center; padding: 26px 18px; color: #dce8f5; text-align: center; }
.empty-state.visible { display: flex; }
.empty-mark { display: grid; width: 35px; height: 35px; margin-bottom: 11px; place-items: center; border: 1px dashed #56718c; border-radius: 10px; color: #7eddd5; font-size: 19px; }
.empty-state strong { font-size: 12px; }
.empty-state p { max-width: 360px; margin: 6px 0 0; color: #8196ad; font-size: 11px; }
.entry-panel { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; background: #0a1d33; }
.entry-panel summary { padding: 15px 0; color: #dce8f5; font-size: 12px; font-weight: 700; cursor: pointer; }
.entry-form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 10px; padding: 4px 0 13px; }
.entry-form input, .entry-form select { width: 100%; }
.entry-form .button { width: 100%; }
.form-hint { margin: 0 0 15px; color: #778ba1; font-size: 10px; }
.admin-footer { display: flex; justify-content: space-between; gap: 15px; padding: 14px 2px 0; color: #71859a; font-size: 10px; }
.toast { position: fixed; right: 20px; bottom: 20px; max-width: min(400px, calc(100vw - 40px)); border: 1px solid rgb(100 216 208 / 24%); border-radius: 10px; padding: 12px 15px; color: #e8f6f6; background: #102d3d; box-shadow: 0 9px 30px rgb(0 0 0 / 25%); font-size: 12px; }
.toast.error { border-color: rgb(255 111 111 / 30%); background: #3b2028; }
.admin-link { color: #93a9c0; font-size: 11px; text-decoration: none; }
.admin-link:hover { color: #64d8d0; }
@media (max-width: 800px) { .toolbar { align-items: stretch; flex-direction: column; } .toolbar-actions { justify-content: flex-start; } .entry-form { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .admin-shell { width: min(100% - 28px, 1120px); padding-top: 15px; } .intro { padding-top: 35px; } .status { font-size: 10px; } .date-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .date-filters .button { grid-column: 1 / -1; } .date-filters label, .date-filters input { width: 100%; } .toolbar-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .toolbar-actions .button { width: 100%; padding-inline: 7px; white-space: normal; text-align: center; } .import-button { grid-column: 1 / -1; } .metrics { grid-template-columns: 1fr; gap: 9px; } .metric-card { min-height: 105px; } .metric-card strong { font-size: 28px; } .panel-heading { align-items: flex-start; flex-direction: column; } .updated { text-align: left; } th, td { padding: 11px 13px; } .entry-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-footer { flex-direction: column; gap: 5px; } }
