:root { color-scheme: dark; --red: #e4232c; --bg: #080808; --panel: #131315; --line: rgba(255,255,255,.13); --muted: #aaa7a4; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: #f5f3f0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
.admin-header { display: flex; min-height: 96px; align-items: center; justify-content: space-between; padding: 10px max(24px, calc((100vw - 1180px)/2)); border-bottom: 1px solid var(--line); background: #0c0c0d; }
.admin-header a { display: flex; width: min(240px, 48vw); aspect-ratio: 820 / 267; align-items: center; justify-content: center; padding: 4px 7px; border-radius: 2px; background: #fff; }
.admin-header img { display: block; width: 100%; height: 100%; object-fit: contain; }
.link-button { border: 0; color: #ccc; background: transparent; cursor: pointer; }
.admin-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 70px 0; }
.auth-card { width: min(500px, 100%); margin: 4vh auto; padding: clamp(28px, 5vw, 50px); border: 1px solid var(--line); background: var(--panel); }
.kicker { margin: 0 0 12px; color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: Impact, "Arial Narrow", sans-serif; font-weight: 500; line-height: 1; text-transform: uppercase; }
h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
h2 { margin-bottom: 28px; font-size: 2rem; }
.auth-card > p:not(.kicker), .empty-admin { color: var(--muted); }
.admin-form { display: grid; gap: 20px; margin-top: 32px; }
.admin-form label { display: grid; gap: 7px; color: #ddd; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; outline: none; color: #fff; background: #09090a; font-size: .95rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.admin-form textarea { min-height: 100px; resize: vertical; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--red); }
.admin-form small { color: #777; font-size: .68rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.admin-form .rights-check span, .admin-form .visibility-check span { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .73rem; font-weight: 500; letter-spacing: 0; line-height: 1.5; text-transform: none; }
.admin-form .rights-check input, .admin-form .visibility-check input { width: 18px; min-height: 18px; margin-top: 2px; accent-color: var(--red); }
.admin-button { min-height: 50px; padding: 0 22px; border: 0; border-radius: 2px; color: #fff; background: var(--red); font-size: .78rem; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.flash { margin-bottom: 26px; padding: 14px 18px; border: 1px solid; }
.flash-success { border-color: #267c4b; background: #10291b; }
.flash-error { border-color: #9f2630; background: #321014; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 55px; }
.view-site { padding-bottom: 5px; border-bottom: 1px solid var(--red); color: #fff; font-size: .75rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.dashboard-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; align-items: start; }
.admin-card { padding: clamp(25px, 4vw, 42px); border: 1px solid var(--line); background: var(--panel); }
.projects-panel h2 { display: flex; justify-content: space-between; }
.projects-panel h2 span { color: var(--red); }
.projects-count { margin: -18px 0 24px; color: #777; font-size: .7rem; text-align: right; text-transform: uppercase; }
.admin-projects { display: grid; gap: 10px; }
.admin-projects article { padding: 10px; border: 1px solid var(--line); background: #0b0b0c; }
.admin-projects article.project-hidden { border-color: rgba(255,255,255,.07); background: #0a0a0a; }
.project-overview { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; }
.project-overview img { width: 90px; height: 70px; object-fit: cover; }
.project-hidden .project-overview img { opacity: .45; filter: grayscale(1); }
.project-copy { display: grid; gap: 4px; min-width: 0; }
.project-copy > small { color: var(--red); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.project-copy > strong { overflow-wrap: anywhere; }
.visibility-badge { width: max-content; padding: 2px 7px; border: 1px solid; border-radius: 999px; font-size: .55rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.visibility-badge.is-visible { border-color: #267c4b; color: #7edca3; background: #10291b; }
.visibility-badge.is-hidden { border-color: #555; color: #aaa; background: #202020; }
.delete-button { padding: 8px; border: 0; color: #e9a8ad; background: transparent; font-size: .7rem; cursor: pointer; }
.project-editor { margin-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.project-editor summary { width: max-content; padding: 9px 0 0; color: #ddd; font-size: .66rem; font-weight: 800; cursor: pointer; text-transform: uppercase; }
.project-editor[open] summary { color: var(--red); }
.project-edit-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; padding: 18px; background: #111113; }
.project-edit-form .edit-wide { grid-column: 1 / -1; }
.project-edit-form .visibility-check { align-self: center; }
.project-edit-form .admin-button { align-self: end; }
.password-panel { margin-top: 18px; padding: 24px; border: 1px solid var(--line); background: #0d0d0e; }
.password-panel summary { font-weight: 700; cursor: pointer; }
.password-form { grid-template-columns: repeat(3, 1fr); }
.password-form .admin-button { align-self: end; }
@media (max-width: 820px) { .dashboard-grid { grid-template-columns: 1fr; } .password-form { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .admin-shell { padding: 45px 0; } .dashboard-heading { display: grid; } .project-overview { grid-template-columns: 70px 1fr; } .project-overview img { width: 70px; height: 60px; } .delete-form { grid-column: 2; justify-self: start; } .project-edit-form { grid-template-columns: 1fr; padding: 14px; } .project-edit-form .edit-wide { grid-column: auto; } }
