.admin-body { min-height: 100vh; overflow: auto; background: #f5f6fa; }
[hidden] { display: none !important; }
.access-help { display: block; margin-top: 20px !important; color: var(--muted); font-size: 12px; line-height: 1.6; }
.demo-notice { padding: 16px; margin-top: 20px; border: 1px solid #deddf7; border-radius: 12px; background: #efeffc; color: #49457e; font-size: 13px; line-height: 1.6; }
.demo-notice button { margin-top: 12px; }
.contacts-heading { margin-top: 64px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.contact-row p { margin: 6px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.contact-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#contactDialog input:not([type=checkbox]) { width: 100%; padding: 12px; border: 1px solid var(--line-dark); border-radius: 8px; }
.project-checks { display: grid; gap: 12px; max-height: 200px; overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.project-checks label, .active-check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.active-check { margin-top: 20px; }
.credential-code { display: block; padding: 16px; background: #efeffc; color: #343052; border-radius: 12px; font-size: 22px; letter-spacing: .04em; user-select: all; }
@media (max-width: 570px) { .contact-row { align-items: flex-start; flex-direction: column; } }
.admin-topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 72px; padding-right: 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.admin-topbar .brand { border: 0; }
.admin-main { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 56px 0 90px; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.admin-heading h1 { margin: 8px 0 6px; font-family: Georgia, serif; font-size: clamp(2.1rem, 4vw, 3.5rem); font-weight: 400; letter-spacing: -.05em; }
.admin-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 36px; }
.project-card { min-height: 215px; display: flex; flex-direction: column; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: #fff; transition: transform .18s, box-shadow .18s; }
.project-card:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(20,20,16,.08); }
.project-card-top { display: flex; align-items: center; justify-content: space-between; }
.project-initials { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #dfdbff; color: #443399; font-size: .72rem; font-weight: 850; }
.open-pill { padding: 5px 8px; border-radius: 999px; background: var(--coral-soft); color: #b93c2b; font-size: .66rem; font-weight: 760; }
.project-card h2 { margin: 20px 0 4px; font-size: 1.04rem; letter-spacing: -.025em; }
.project-card p { margin: 0; color: var(--muted); font-size: .76rem; }
.project-card-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; }
.project-card-actions a, .project-card-actions button { flex: 1; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line-dark); border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; font-size: .72rem; font-weight: 740; }
.project-card-actions a { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-empty { margin-top: 36px; padding: 80px 24px; border: 1px dashed var(--line-dark); border-radius: 16px; text-align: center; }
.admin-empty > span { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto; border-radius: 12px; background: var(--ink); color: var(--acid); font-weight: 850; }
.admin-empty h2 { margin: 15px 0 6px; }
.admin-empty p { margin: 0; color: var(--muted); font-size: .84rem; }
.login-screen { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 24px; }
.login-card { width: min(410px,100%); padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.login-card .eyebrow { margin-top: 18px; }
.login-card h1 { margin: 8px 0 6px; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; letter-spacing: -.04em; }
.login-card p { margin: 0 0 22px; color: var(--muted); font-size: .82rem; }
.login-card input, #projectDialog input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-dark); border-radius: 9px; }
.login-card .primary-button { width: 100%; margin-top: 14px; }
.form-error { display: block; min-height: 18px; margin-top: 10px; color: #bd3422; font-size: .72rem; }
@media (max-width: 860px) { .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 570px) { .admin-heading { align-items: flex-start; flex-direction: column; } .project-grid { grid-template-columns: 1fr; } .admin-main { padding-top: 34px; } }
