:root {
  --ink: #162c3d;
  --cyan: #00afe4;
  --paper: #f2f6f8;
  --line: #dbe5e9;
  --muted: #657985;
  --red: #b63838;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: linear-gradient(135deg, #071b29, #16384d); }
.login-card { width: min(500px, 100%); padding: 42px; border-radius: 8px; background: white; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.admin-brand { display: block; width: 210px; height: 94px; overflow: hidden; }
.admin-brand img { width: 210px; height: 140px; object-fit: contain; transform: translateY(-23px); }
.eyebrow-admin { margin: 22px 0 10px; color: #068eb8; font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.02; letter-spacing: -.04em; }
.muted { margin: 18px 0 28px; color: var(--muted); line-height: 1.65; font-size: 14px; }
form { margin: 0; }
label { display: grid; gap: 8px; color: #3d5664; font-size: 12px; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #cbd9de; border-radius: 5px; padding: 13px 14px; outline: none; background: white; color: var(--ink); }
input:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,175,228,.12); }
.login-card form { display: grid; gap: 18px; }
.primary-admin { border: 0; border-radius: 5px; padding: 13px 18px; background: var(--ink); color: white; cursor: pointer; font-weight: 750; }
.primary-admin:hover { background: #24495f; }
.back-link { display: inline-block; margin-top: 24px; color: #66808e; font-size: 12px; }
.alert { margin: 18px 0; padding: 13px 15px; border-radius: 5px; font-size: 13px; }
.alert.error { background: #fff0f0; color: #8b2f2f; border: 1px solid #f1cccc; }
.alert.success { background: #e9f8f3; color: #236b55; border: 1px solid #bde7d9; }
.admin-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 6vw; background: #071b29; color: white; }
.admin-brand.compact { width: 170px; height: 76px; filter: brightness(0) invert(1); }
.admin-brand.compact img { width: 170px; height: 115px; transform: translateY(-19px); }
.admin-header-actions { display: flex; align-items: center; gap: 22px; font-size: 12px; }
.admin-header-actions a:hover { color: var(--cyan); }
.text-button { padding: 0; border: 0; background: none; color: #a9bbc4; cursor: pointer; }
.text-button:hover { color: white; }
.panel-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 90px; }
.panel-heading { display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: end; margin-bottom: 36px; }
.panel-heading .eyebrow-admin { margin-top: 0; }
.panel-heading > p { margin: 0 0 4px; color: var(--muted); line-height: 1.6; font-size: 14px; }
.editor-card { position: relative; margin-bottom: 18px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.new-card { border-top: 4px solid var(--cyan); }
.card-heading, .published-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 22px; }
.card-heading span, .published-heading h2 { margin: 0; font-size: 19px; font-weight: 750; }
.card-heading small, .published-heading span { color: #7b8e98; font-size: 11px; }
.news-form { display: grid; grid-template-columns: 240px 1fr; gap: 18px; }
.news-form .wide, .form-actions { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; }
.published { margin-top: 48px; }
.published-heading { margin-bottom: 18px; }
.delete-form { position: absolute; left: 28px; bottom: 28px; }
.danger-button { border: 0; padding: 9px 0; background: none; color: var(--red); cursor: pointer; font-size: 12px; font-weight: 700; }
.empty-admin { padding: 32px; background: white; border: 1px dashed #c8d6db; color: var(--muted); text-align: center; font-size: 13px; }
@media (max-width: 760px) {
  .login-card { padding: 30px 24px; }
  .panel-shell { width: min(100% - 32px, 1120px); padding-top: 42px; }
  .panel-heading { grid-template-columns: 1fr; gap: 16px; }
  .news-form { grid-template-columns: 1fr; }
  .news-form .wide, .form-actions { grid-column: 1; }
  .form-actions { justify-content: stretch; }
  .form-actions .primary-admin { width: 100%; }
  .editor-card { padding: 22px; padding-bottom: 74px; }
  .new-card { padding-bottom: 22px; }
  .delete-form { left: 22px; bottom: 24px; }
  .card-heading { align-items: flex-start; flex-direction: column; }
  .admin-header { padding: 0 18px; }
}

