:root { --a-navy: #0b3a5e; --a-teal: #009ca5; }
body.adm { background: #f2f6f8; color: #1d2b36; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.adm .btn-primary { --bs-btn-bg: var(--a-navy); --bs-btn-border-color: var(--a-navy); --bs-btn-hover-bg: #082c49; --bs-btn-hover-border-color: #082c49; --bs-btn-active-bg: #082c49; }
.adm .btn-outline-primary { --bs-btn-color: var(--a-navy); --bs-btn-border-color: var(--a-navy); --bs-btn-hover-bg: var(--a-navy); --bs-btn-hover-border-color: var(--a-navy); --bs-btn-active-bg: var(--a-navy); }
.adm-wrap { display: flex; min-height: 100vh; }
.adm-side { width: 250px; flex: 0 0 250px; background: var(--a-navy); color: #fff; display: flex; flex-direction: column; padding: 1rem; position: sticky; top: 0; height: 100vh; }
.adm-brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; margin-bottom: 1.2rem; }
.adm-brand small { display: block; font-weight: 400; font-size: .75rem; opacity: .75; }
.adm-nav { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.adm-nav a { color: #d6e6f1; text-decoration: none; padding: .55rem .75rem; border-radius: .45rem; }
.adm-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.adm-nav a.on { background: var(--a-teal); color: #fff; font-weight: 600; }
.adm-user { font-size: .85rem; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: .8rem; display: grid; gap: .5rem; }
.adm-main { flex: 1; padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 3rem; min-width: 0; }
.adm-narrow { max-width: 640px; }
.adm-card { max-width: 420px; margin: 8vh auto; background: #fff; padding: 2rem; border-radius: .9rem; box-shadow: 0 10px 40px rgba(11, 58, 94, .15); }
.adm-stat { display: block; background: #fff; border-radius: .7rem; padding: 1rem 1.1rem; text-decoration: none; color: inherit; border: 1px solid #dfe8ee; }
.adm-stat:hover { border-color: var(--a-teal); }
.adm-stat b { display: block; font-size: 1.9rem; color: var(--a-navy); line-height: 1.1; }
.adm-stat span { font-size: .85rem; color: #5b6f7e; }
.adm-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #dcecf3; color: var(--a-navy); font-weight: 700; }
.adm-thumb-lg { width: 96px; height: 96px; }
.ed { border: 1px solid #ced9e0; border-radius: .5rem; background: #fff; }
.ed-bar { display: flex; flex-wrap: wrap; gap: .3rem; padding: .5rem; border-bottom: 1px solid #e3eaef; background: #f7fafb; position: sticky; top: 0; z-index: 2; border-radius: .5rem .5rem 0 0; }
.ed-area { min-height: 360px; padding: 1rem 1.1rem; outline: none; line-height: 1.7; }
.ed-area:focus { box-shadow: inset 0 0 0 2px rgba(0, 156, 165, .35); }
.ed-area img, .post-body img { max-width: 100%; height: auto; border-radius: .4rem; }
.ed-src { border: 0; border-radius: 0 0 .5rem .5rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
@media (max-width: 900px) {
  .adm-wrap { display: block; }
  .adm-side { position: static; width: auto; height: auto; flex-direction: column; }
  .adm-nav { flex-direction: row; flex-wrap: wrap; }
}
