@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
  --admin-coral: #eb593e;
  --admin-coral-soft: #fce8e3;
  --admin-mint: #7ac6ba;
  --admin-mint-soft: #e5f5f1;
  --admin-green: #004e4a;
  --admin-blue: #215fc4;
  --admin-blue-soft: #e8f0ff;
  --admin-sky: #64a0ee;
  --admin-navy: #01273e;
  --admin-yellow: #ffdd00;
  --admin-yellow-soft: #fff8c7;
  --admin-ink: #0b2337;
  --admin-muted: #667788;
  --admin-border: #e5ebf1;
  --admin-canvas: #f4f7fb;
  --admin-white: #fff;
  --admin-shadow: 0 18px 50px rgba(1, 39, 62, .09);
  --admin-shadow-lg: 0 30px 80px rgba(1, 39, 62, .18);
  --admin-radius-lg: 28px;
  --admin-radius-md: 20px;
  --admin-radius-sm: 13px;
  --sidebar-width: 286px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--admin-ink);
  font-family: "Poppins", Verdana, system-ui, sans-serif;
  background: var(--admin-canvas);
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  color: white;
  background: var(--admin-navy);
  transform: translateY(-150%);
}
.admin-skip-link:focus { transform: translateY(0); }

/* Login */
.login-page {
  min-height: 100vh;
  background: #fff;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px, 1.06fr) minmax(460px, .94fr);
}
.login-showcase {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(34px, 5vw, 72px);
  color: white;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 221, 0, .95) 0 5%, transparent 5.3%),
    radial-gradient(circle at 13% 82%, rgba(235, 89, 62, .85) 0 8%, transparent 8.3%),
    linear-gradient(145deg, #003c50 0%, var(--admin-navy) 56%, #083b68 100%);
}
.login-showcase::before,
.login-showcase::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
}
.login-showcase::before { width: 560px; height: 560px; right: -250px; top: -250px; }
.login-showcase::after { width: 380px; height: 380px; left: -210px; bottom: -180px; }
.login-brand {
  width: 185px;
  padding: 13px 17px;
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 16px 40px rgba(0,0,0,.15);
}
.login-showcase-copy { max-width: 610px; margin: auto 0; padding: 60px 0; }
.login-kicker {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  background: rgba(255,255,255,.1);
}
.login-showcase h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font: 800 clamp(2.5rem, 4.8vw, 5rem)/1.04 "Sora", sans-serif;
  letter-spacing: -.045em;
}
.login-showcase-copy p { max-width: 560px; margin: 0; color: rgba(255,255,255,.78); font-size: 1.05rem; line-height: 1.8; }
.login-orbit { position: absolute; right: 8%; bottom: 8%; width: 190px; height: 190px; border: 1px dashed rgba(255,255,255,.25); border-radius: 50%; }
.login-orbit-center { position: absolute; inset: 50% auto auto 50%; width: 84px; height: 84px; padding: 15px; border-radius: 34% 66% 55% 45%; background: white; transform: translate(-50%, -50%) rotate(-6deg); }
.login-orbit-dot { position: absolute; width: 18px; height: 18px; border: 5px solid var(--admin-navy); border-radius: 50%; }
.login-orbit-dot-one { top: -9px; left: 50%; background: var(--admin-yellow); }
.login-orbit-dot-two { right: 3px; bottom: 25px; background: var(--admin-coral); }
.login-orbit-dot-three { left: -7px; bottom: 42px; background: var(--admin-mint); }
.login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 44px clamp(30px, 7vw, 100px) 24px; background: radial-gradient(circle at 100% 0, #f0f7ff, transparent 35%), white; }
.login-card { width: min(100%, 460px); }
.login-card-heading { margin-bottom: 32px; }
.login-card-heading h2 { margin: 8px 0 10px; font: 800 clamp(2rem, 4vw, 2.8rem)/1.14 "Sora", sans-serif; letter-spacing: -.035em; }
.login-card-heading p { color: var(--admin-muted); line-height: 1.65; }
.login-form { display: grid; gap: 22px; }
.login-footer { margin: auto 0 0; padding-top: 42px; color: #8a98a5; font-size: .78rem; font-weight: 600; }
.back-to-site { display: inline-flex; align-items: center; gap: 9px; margin-top: 28px; color: var(--admin-muted); font-size: .86rem; font-weight: 700; transition: color .2s ease, gap .2s ease; }
.back-to-site:hover { color: var(--admin-blue); gap: 12px; }

/* Layout */
.admin-shell { min-height: 100vh; }
.admin-sidebar {
  position: fixed;
  z-index: 500;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 26px 20px 20px;
  color: white;
  background:
    radial-gradient(circle at 15% 90%, rgba(100,160,238,.18), transparent 28%),
    linear-gradient(180deg, #01273e, #001f32);
  overflow-y: auto;
}
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 8px; }
.sidebar-brand { display: block; width: 170px; padding: 10px 13px; border-radius: 16px; background: white; }
.sidebar-label { margin: 34px 13px 12px; color: rgba(255,255,255,.44); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 8px; }
.sidebar-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 54px;
  padding: 8px 12px;
  border-radius: 16px;
  color: rgba(255,255,255,.68);
  font-size: .9rem;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.sidebar-nav a:hover { color: white; background: rgba(255,255,255,.07); transform: translateX(2px); }
.sidebar-nav a.is-active { color: white; background: rgba(255,255,255,.11); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.sidebar-nav a.is-active::after { content: ""; position: absolute; right: 0; width: 4px; height: 26px; border-radius: 4px 0 0 4px; background: var(--admin-yellow); }
.nav-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: white; }
.nav-icon-blue { background: rgba(100,160,238,.24); }
.nav-icon-coral { background: rgba(235,89,62,.25); }
.nav-icon-yellow { color: var(--admin-yellow); background: rgba(255,221,0,.14); }
.nav-icon-mint { background: rgba(122,198,186,.22); }
.sidebar-spacer { flex: 1; min-height: 36px; }
.sidebar-site-link { display: flex; align-items: center; gap: 12px; margin: 0 5px 18px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; color: rgba(255,255,255,.7); font-size: .8rem; font-weight: 700; }
.sidebar-site-link:hover { color: white; border-color: rgba(255,255,255,.28); }
.sidebar-developer-credit { margin: 0 8px 15px; color: rgba(255,255,255,.45); font-size: .61rem; line-height: 1.5; text-align: center; transition: color .2s ease; }
.sidebar-developer-credit strong { color: rgba(255,255,255,.72); }
.sidebar-developer-credit:hover, .sidebar-developer-credit:hover strong { color: var(--admin-yellow); }
.sidebar-profile { display: flex; align-items: center; gap: 11px; padding: 16px 8px 2px; border-top: 1px solid rgba(255,255,255,.1); }
.profile-avatar, .topbar-avatar span { display: grid; place-items: center; border-radius: 14px; font: 800 .95rem "Sora", sans-serif; color: var(--admin-navy); background: var(--admin-yellow); }
.profile-avatar { width: 40px; height: 40px; }
.profile-copy { min-width: 0; display: grid; flex: 1; }
.profile-copy strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; }
.profile-copy span { color: rgba(255,255,255,.48); font-size: .66rem; }
.sidebar-profile form, .sidebar-profile button { display: flex; }
.sidebar-profile button { padding: 9px; border: 0; color: rgba(255,255,255,.48); background: none; cursor: pointer; }
.sidebar-profile button:hover { color: var(--admin-coral); }
.sidebar-close { display: none; }
.sidebar-backdrop { display: none; }
.admin-workspace { min-height: 100vh; margin-left: var(--sidebar-width); }
.admin-topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(24px, 4vw, 58px);
  border-bottom: 1px solid rgba(1,39,62,.07);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
}
.topbar-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: .78rem; }
.topbar-breadcrumb span { color: var(--admin-muted); }
.topbar-breadcrumb i { color: #a9b5bf; font-size: .58rem; }
.topbar-breadcrumb strong { font-weight: 800; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.topbar-avatar span { width: 38px; height: 38px; }
.mobile-menu-button { display: none; }
.admin-content,
.admin-workspace > .admin-page-content { width: min(100%, 1560px); margin: 0 auto; padding: clamp(30px, 4vw, 54px); }
.admin-page-content { display: grid; gap: 28px; }

/* Common */
.eyebrow { display: block; color: var(--admin-blue); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-coral { color: var(--admin-coral); }
.eyebrow-mint { color: var(--admin-green); }
.eyebrow-light { color: var(--admin-yellow); }
.page-intro h1 { margin: 7px 0 8px; font: 800 clamp(2rem, 3vw, 3.1rem)/1.1 "Sora", sans-serif; letter-spacing: -.045em; }
.page-intro p { max-width: 720px; margin-bottom: 0; color: var(--admin-muted); line-height: 1.65; }
.page-intro-with-action { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.page-intro-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.intro-date { display: flex; align-items: center; gap: 13px; min-width: 230px; padding: 14px 17px; border: 1px solid var(--admin-border); border-radius: 17px; background: white; box-shadow: 0 12px 34px rgba(1,39,62,.05); }
.intro-date-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--admin-blue); background: var(--admin-blue-soft); }
.intro-date div { display: grid; }
.intro-date small { color: var(--admin-muted); font-size: .66rem; }
.intro-date strong { font-size: .8rem; }
.admin-card { padding: 28px; border: 1px solid var(--admin-border); border-radius: var(--admin-radius-lg); background: white; box-shadow: var(--admin-shadow); }
.card-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.card-heading-row h2 { margin: 5px 0 0; font: 800 1.3rem/1.3 "Sora", sans-serif; letter-spacing: -.025em; }
.card-heading-decoration { width: 68px; height: 12px; margin-top: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--admin-coral) 0 33%, var(--admin-yellow) 33% 66%, var(--admin-mint) 66%); }
.admin-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 18px; border: 0; border-radius: 13px; font-size: .82rem; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.admin-button:hover { transform: translateY(-1px); }
.admin-button-primary { color: white; background: var(--admin-blue); box-shadow: 0 13px 28px rgba(33,95,196,.21); }
.admin-button-primary:hover { background: #174ea9; box-shadow: 0 16px 32px rgba(33,95,196,.28); }
.admin-button-muted { color: var(--admin-muted); background: #eef2f6; }
.admin-button-muted:hover { color: var(--admin-ink); background: #e4eaf0; }
.admin-button-danger { color: white; background: var(--admin-coral); box-shadow: 0 12px 25px rgba(235,89,62,.2); }
.admin-button-outline { color: var(--admin-blue); border: 1px solid #cddcf4; background: white; }
.admin-button-small { min-height: 39px; padding: 8px 13px; font-size: .74rem; }
.admin-button-full { width: 100%; min-height: 54px; }
.icon-button { width: 39px; height: 39px; display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--admin-border); border-radius: 12px; color: var(--admin-muted); background: white; cursor: pointer; transition: .2s ease; }
.icon-button:hover { color: var(--admin-blue); border-color: #bfcfec; background: var(--admin-blue-soft); }
.icon-button-danger:hover { color: var(--admin-coral); border-color: #f0c7bf; background: var(--admin-coral-soft); }

/* Overview */
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.metric-card { position: relative; isolation: isolate; min-height: 230px; padding: 24px; overflow: hidden; border: 1px solid rgba(1,39,62,.06); border-radius: 25px; background: white; box-shadow: var(--admin-shadow); }
.metric-card::after { content: ""; position: absolute; z-index: -1; width: 130px; height: 130px; right: -62px; bottom: -62px; border-radius: 50%; opacity: .16; background: var(--metric-color); }
.metric-card-coral { --metric-color: var(--admin-coral); }
.metric-card-blue { --metric-color: var(--admin-blue); }
.metric-card-mint { --metric-color: var(--admin-mint); }
.metric-card-yellow { --metric-color: #c59f00; }
.metric-card-navy { --metric-color: var(--admin-navy); }
.metric-card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.metric-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--metric-color); font-size: 1.2rem; background: color-mix(in srgb, var(--metric-color) 14%, white); }
.metric-trend { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; color: var(--admin-muted); font-size: .64rem; font-weight: 700; background: #f2f5f8; }
.metric-value { display: block; font: 800 2.6rem/1 "Sora", sans-serif; letter-spacing: -.06em; }
.metric-label { display: block; margin-top: 6px; color: var(--admin-muted); font-size: .78rem; }
.metric-footer { display: flex; align-items: center; gap: 7px; margin-top: 19px; padding-top: 15px; border-top: 1px solid #edf1f4; font-size: .68rem; }
.metric-footer strong { color: var(--metric-color); }
.metric-footer span { color: var(--admin-muted); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: 22px; }
.quick-actions { display: grid; gap: 12px; }
.quick-action { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; padding: 15px; border: 1px solid var(--admin-border); border-radius: 17px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.quick-action:hover { transform: translateX(3px); border-color: color-mix(in srgb, var(--action-color) 38%, white); box-shadow: 0 11px 25px rgba(1,39,62,.06); }
.quick-action > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--action-color); background: color-mix(in srgb, var(--action-color) 13%, white); }
.quick-action > div { display: grid; gap: 2px; }
.quick-action strong { font-size: .82rem; }
.quick-action small { color: var(--admin-muted); font-size: .68rem; }
.quick-action > i { color: #a9b4bd; font-size: .76rem; }
.quick-action-coral { --action-color: var(--admin-coral); }
.quick-action-blue { --action-color: var(--admin-blue); }
.quick-action-mint { --action-color: var(--admin-green); }
.activity-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.activity-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf1f4; }
.activity-list li:last-child { border-bottom: 0; }
.activity-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; }
.activity-icon-coral { color: var(--admin-coral); background: var(--admin-coral-soft); }
.activity-icon-blue { color: var(--admin-blue); background: var(--admin-blue-soft); }
.activity-icon-mint { color: var(--admin-green); background: var(--admin-mint-soft); }
.activity-list li > div { min-width: 0; display: grid; gap: 3px; }
.activity-list strong { overflow: hidden; font-size: .75rem; white-space: nowrap; text-overflow: ellipsis; }
.activity-list span { color: var(--admin-muted); font-size: .65rem; }
.activity-list time { color: #94a1ad; font-size: .62rem; }
.integration-banner { position: relative; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 28px 30px; overflow: hidden; border-radius: var(--admin-radius-lg); color: white; background: linear-gradient(120deg, var(--admin-navy), #084d6d); box-shadow: 0 22px 50px rgba(1,39,62,.18); }
.integration-banner::after { content: ""; position: absolute; z-index: -1; right: 10%; width: 180px; height: 180px; border: 36px solid rgba(255,255,255,.04); border-radius: 50%; }
.integration-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: var(--admin-navy); font-size: 1.35rem; background: var(--admin-yellow); transform: rotate(-4deg); }
.integration-banner h2 { margin: 5px 0 6px; font: 800 1.2rem "Sora", sans-serif; }
.integration-banner p { max-width: 760px; margin: 0; color: rgba(255,255,255,.7); font-size: .75rem; line-height: 1.6; }
.integration-badge { padding: 9px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: rgba(255,255,255,.72); font-size: .66rem; font-weight: 700; background: rgba(255,255,255,.06); }

/* Content lists */
.content-toolbar { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--admin-border); border-radius: 18px; background: white; box-shadow: 0 12px 35px rgba(1,39,62,.045); }
.admin-search { min-width: 260px; max-width: 520px; display: flex; align-items: center; flex: 1; gap: 11px; padding: 0 14px; border: 1px solid #dde5ec; border-radius: 13px; color: #96a4b0; background: #f8fafc; }
.admin-search:focus-within { color: var(--admin-blue); border-color: #91b2e7; background: white; box-shadow: 0 0 0 4px rgba(33,95,196,.08); }
.admin-search input { width: 100%; min-height: 44px; border: 0; outline: 0; color: var(--admin-ink); background: transparent; font-size: .76rem; }
.admin-select-shell { display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #dde5ec; border-radius: 13px; color: var(--admin-blue); background: #f8fafc; }
.admin-select-shell select { min-height: 44px; border: 0; outline: 0; color: var(--admin-ink); background: transparent; font-size: .74rem; font-weight: 600; }
.toolbar-summary { display: flex; align-items: center; gap: 13px; padding: 0 8px; color: var(--admin-muted); font-size: .7rem; white-space: nowrap; }
.toolbar-summary strong { color: var(--admin-ink); }
.toolbar-summary-end { margin-left: auto; }
.toolbar-divider { width: 1px; height: 22px; background: var(--admin-border); }
.slide-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.slide-admin-card { overflow: hidden; border: 1px solid var(--admin-border); border-radius: 24px; background: white; box-shadow: var(--admin-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.slide-admin-card:hover { transform: translateY(-3px); box-shadow: 0 23px 55px rgba(1,39,62,.13); }
.slide-collage { position: relative; height: 205px; display: grid; grid-template-columns: 1.4fr .8fr; grid-template-rows: 1fr 1fr; gap: 3px; overflow: hidden; background: #e7edf2; }
.slide-collage img { width: 100%; height: 100%; object-fit: cover; }
.slide-collage img:first-child { grid-row: 1 / 3; }
.slide-collage-single { display: block; }
.slide-collage-single img { width: 100%; height: 100%; }
.slide-collage-two { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr; }
.slide-collage-two img:first-child { grid-row: auto; }
.photo-count { position: absolute; right: 13px; bottom: 13px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; color: white; font-size: .68rem; font-weight: 700; background: rgba(1,39,62,.78); backdrop-filter: blur(8px); }
.slide-admin-content { padding: 20px; }
.slide-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.slide-card-title h2 { margin: 6px 0 0; font: 800 1.25rem "Sora", sans-serif; }
.row-actions { display: flex; gap: 7px; }
.slide-admin-content > p { margin: 11px 0 16px; color: var(--admin-muted); font-size: .73rem; line-height: 1.6; }
.content-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; font-size: .59rem; font-weight: 800; text-transform: uppercase; }
.content-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.content-status-active, .content-status-published { color: var(--admin-green); background: var(--admin-mint-soft); }
.content-status-draft { color: #8c7210; background: var(--admin-yellow-soft); }
.content-meta { display: flex; flex-wrap: wrap; gap: 16px; color: #82919e; font-size: .64rem; }
.content-meta span { display: inline-flex; align-items: center; gap: 6px; }
.posts-admin-list { display: grid; gap: 14px; }
.post-admin-card { display: grid; grid-template-columns: 175px minmax(0, 1fr) auto; align-items: stretch; min-height: 160px; overflow: hidden; border: 1px solid var(--admin-border); border-radius: 21px; background: white; box-shadow: 0 14px 36px rgba(1,39,62,.065); transition: transform .2s ease, box-shadow .2s ease; }
.post-admin-card:hover { transform: translateY(-2px); box-shadow: 0 19px 42px rgba(1,39,62,.1); }
.post-admin-image { position: relative; min-height: 160px; }
.post-admin-image img { width: 100%; height: 100%; object-fit: cover; }
.post-admin-image .content-status { position: absolute; top: 12px; left: 12px; }
.post-admin-copy { align-self: center; min-width: 0; padding: 20px 24px; }
.post-category { display: inline-flex; margin-bottom: 8px; padding: 4px 8px; border-radius: 7px; font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.post-category-coral { color: var(--admin-coral); background: var(--admin-coral-soft); }
.post-category-mint { color: var(--admin-green); background: var(--admin-mint-soft); }
.post-category-yellow { color: #785f00; background: var(--admin-yellow-soft); }
.post-category-blue { color: var(--admin-blue); background: var(--admin-blue-soft); }
.post-admin-copy h2 { margin: 0 0 7px; font: 800 1.03rem/1.35 "Sora", sans-serif; letter-spacing: -.02em; }
.post-admin-copy > p { max-width: 800px; margin-bottom: 13px; color: var(--admin-muted); font-size: .7rem; line-height: 1.55; }
.post-admin-actions { align-self: center; display: flex; align-items: center; gap: 8px; padding: 20px 22px 20px 0; }
.testimonials-admin-list { display: grid; gap: 14px; }
.testimonial-admin-card { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: stretch; min-height: 170px; overflow: hidden; border: 1px solid var(--admin-border); border-radius: 21px; background: white; box-shadow: 0 14px 36px rgba(1,39,62,.065); transition: transform .2s ease, box-shadow .2s ease; }
.testimonial-admin-card:hover { transform: translateY(-2px); box-shadow: 0 19px 42px rgba(1,39,62,.1); }
.testimonial-admin-avatar { width: 100%; height: 100%; min-height: 170px; object-fit: cover; }
.testimonial-admin-copy { position: relative; align-self: center; min-width: 0; padding: 22px 26px; }
.testimonial-quote-icon { position: absolute; top: 18px; right: 22px; color: var(--admin-mint); font-size: 1.25rem; opacity: .7; }
.testimonial-admin-copy blockquote { max-width: 850px; margin: 0 38px 12px 0; color: var(--admin-muted); font-size: .74rem; line-height: 1.7; white-space: pre-line; }
.testimonial-admin-copy > strong { display: block; margin-bottom: 14px; font: 800 .9rem "Sora", sans-serif; }
.testimonial-admin-actions { align-self: center; display: flex; align-items: center; gap: 8px; padding: 20px 22px 20px 0; }
.testimonial-current-image { width: 100%; display: flex; align-items: center; gap: 13px; padding: 10px; border: 1px solid var(--admin-border); border-radius: 14px; background: #f8fafc; }
.testimonial-current-image img { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 12px; object-fit: cover; }
.testimonial-current-image span { color: var(--admin-muted); font-size: .67rem; font-weight: 700; }
.empty-filter-state { padding: 70px 25px; text-align: center; border: 1px dashed #cfd9e2; border-radius: 24px; background: rgba(255,255,255,.6); }
.empty-filter-state > span { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 20px; color: var(--admin-blue); font-size: 1.5rem; background: var(--admin-blue-soft); }
.empty-filter-state h2 { margin-bottom: 7px; font: 800 1.1rem "Sora", sans-serif; }
.empty-filter-state p { margin: 0; color: var(--admin-muted); font-size: .76rem; }

/* Forms */
.admin-form { display: grid; gap: 22px; }
.form-field { display: grid; gap: 8px; }
.form-field label, .form-label { color: var(--admin-ink); font-size: .75rem; font-weight: 800; }
.form-field label > span, .form-label > span { color: var(--admin-coral); }
.form-field > input, .form-field > select, .form-field > textarea,
.form-grid .form-field > input, .form-grid .form-field > select, .form-grid .form-field > textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d9e2e9;
  border-radius: 12px;
  outline: 0;
  color: var(--admin-ink);
  background: white;
  font-size: .76rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field > textarea, .form-grid .form-field > textarea { resize: vertical; line-height: 1.65; }
.form-field > input:focus, .form-field > select:focus, .form-field > textarea:focus { border-color: #91b2e7; box-shadow: 0 0 0 4px rgba(33,95,196,.08); }
.form-field > small { color: var(--admin-muted); font-size: .64rem; }
.form-grid { display: grid; gap: 18px; }
.form-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-field-span-two { grid-column: span 2; }
.input-shell { min-height: 51px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid #d9e2e9; border-radius: 13px; color: #8e9ba7; background: white; transition: border-color .2s ease, box-shadow .2s ease; }
.input-shell:focus-within { color: var(--admin-blue); border-color: #91b2e7; box-shadow: 0 0 0 4px rgba(33,95,196,.08); }
.input-shell input { min-width: 0; min-height: 49px; border: 0; outline: 0; color: var(--admin-ink); background: transparent; font-size: .78rem; }
.password-toggle { width: 34px; height: 34px; border: 0; border-radius: 9px; color: #8998a4; background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--admin-blue); background: var(--admin-blue-soft); }
.form-message { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; padding: 13px 14px; border-radius: 12px; font-size: .7rem; line-height: 1.5; }
.form-message-error { color: #a53425; background: var(--admin-coral-soft); }
.form-message-success { color: var(--admin-green); background: var(--admin-mint-soft); }
.upload-zone { min-height: 180px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; border: 1.5px dashed #b9c7d2; border-radius: 17px; color: var(--admin-muted) !important; text-align: center; background: #f8fafc; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.upload-zone:hover, .upload-zone.is-dragging { border-color: var(--admin-blue); background: var(--admin-blue-soft); }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-zone strong { color: var(--admin-ink); font-size: .78rem; }
.upload-zone > span:last-of-type { font-size: .65rem; font-weight: 500; }
.upload-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 3px; border-radius: 16px; color: var(--admin-blue); font-size: 1.15rem; background: var(--admin-blue-soft); }
.upload-zone-compact { min-height: 98px; flex-direction: row; text-align: left; }
.upload-zone-compact > span { display: grid; gap: 4px; }
.upload-zone-compact small { color: var(--admin-muted); font-size: .62rem; font-weight: 500; }
.image-preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.image-preview-item { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--admin-border); border-radius: 13px; background: #eef2f5; }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-item button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 8px; color: white; background: rgba(1,39,62,.8); cursor: pointer; }
.existing-image-preview { transition: opacity .2s ease, filter .2s ease; }
.existing-image-remove { position: absolute; top: 6px; right: 6px; cursor: pointer; }
.existing-image-remove input { position: absolute; opacity: 0; pointer-events: none; }
.existing-image-remove span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: white; background: rgba(1,39,62,.8); transition: background .2s ease, transform .2s ease; }
.existing-image-remove:hover span { background: var(--admin-coral); transform: scale(1.05); }
.existing-image-preview:has(.existing-image-remove input:checked) { opacity: .38; filter: grayscale(1); }
.existing-image-preview:has(.existing-image-remove input:checked) .existing-image-remove span { background: var(--admin-coral); }
.image-preview-single { grid-template-columns: 150px; }
.image-preview-single .image-preview-item { aspect-ratio: 16 / 9; }
.form-note { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border-radius: 13px; color: #6b5a13; background: var(--admin-yellow-soft); }
.form-note i { margin-top: 2px; }
.form-note p { margin: 0; font-size: .67rem; line-height: 1.55; }
.editor-toolbar { min-height: 42px; display: flex; align-items: center; gap: 4px; padding: 5px 8px; border: 1px solid #d9e2e9; border-bottom: 0; border-radius: 12px 12px 0 0; background: #f5f7f9; }
.editor-toolbar button { width: 31px; height: 31px; border: 0; border-radius: 7px; color: var(--admin-muted); background: transparent; }
.editor-textarea { border-radius: 0 0 12px 12px !important; }
.quill-form-field .ql-toolbar.ql-snow { border-color: #d9e2e9; border-radius: 12px 12px 0 0; background: #f5f7f9; font-family: inherit; }
.quill-form-field .ql-container.ql-snow { min-height: 260px; border-color: #d9e2e9; border-radius: 0 0 12px 12px; background: white; font-family: inherit; font-size: .8rem; }
.quill-form-field .ql-editor { min-height: 260px; line-height: 1.7; }
.quill-form-field .ql-editor.ql-blank::before { color: #96a4b0; font-style: normal; }
.quill-form-field:focus-within .ql-toolbar.ql-snow,
.quill-form-field:focus-within .ql-container.ql-snow { border-color: #91b2e7; }
.quill-form-field.is-invalid .ql-toolbar.ql-snow,
.quill-form-field.is-invalid .ql-container.ql-snow { border-color: var(--admin-coral); }
.blog-current-cover { width: min(100%, 230px); aspect-ratio: 16 / 9; margin-bottom: 4px; overflow: hidden; border: 1px solid var(--admin-border); border-radius: 13px; background: #eef2f5; }
.blog-current-cover img { width: 100%; height: 100%; object-fit: cover; }
.category-management { display: grid; gap: 12px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--admin-border); }
.category-management-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.category-management-heading strong { min-width: 30px; padding: 5px 9px; border-radius: 999px; color: var(--admin-blue); font-size: .68rem; text-align: center; background: var(--admin-blue-soft); }
.category-management-list { display: grid; gap: 9px; max-height: 290px; overflow-y: auto; }
.category-management-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--admin-border); border-radius: 14px; background: #f8fafc; }
.category-edit-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.category-edit-form input { width: 100%; min-width: 0; min-height: 39px; padding: 8px 11px; border: 1px solid #d9e2e9; border-radius: 10px; outline: 0; color: var(--admin-ink); background: white; font-size: .74rem; }
.category-edit-form input:focus { border-color: #91b2e7; box-shadow: 0 0 0 3px rgba(33,95,196,.08); }
.category-management-empty { padding: 20px; border: 1px dashed #cfd9e2; border-radius: 14px; color: var(--admin-muted); font-size: .72rem; text-align: center; }

/* Security */
.security-page-content { max-width: 1260px; }
.security-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 22px; align-items: start; }
.password-card { padding: clamp(24px, 4vw, 40px); }
.security-card-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--admin-border); }
.security-heading-icon { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 16px; color: var(--admin-blue); background: var(--admin-blue-soft); }
.security-card-heading h2 { margin: 0 0 5px; font: 800 1.2rem "Sora", sans-serif; }
.security-card-heading p { margin: 0; color: var(--admin-muted); font-size: .7rem; }
.password-form { max-width: 620px; }
.form-separator { display: flex; align-items: center; gap: 12px; color: var(--admin-muted); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.form-separator::before, .form-separator::after { content: ""; height: 1px; flex: 1; background: var(--admin-border); }
.password-strength { height: 6px; overflow: hidden; border-radius: 999px; background: #e8edf1; }
.password-strength span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--admin-coral); transition: width .25s ease, background .25s ease; }
.field-error { color: var(--admin-coral) !important; font-weight: 700; }
.security-aside { display: grid; gap: 18px; }
.security-tip-card { position: relative; isolation: isolate; padding: 30px; overflow: hidden; border-radius: var(--admin-radius-lg); color: white; background: linear-gradient(145deg, var(--admin-green), #006e68); box-shadow: 0 23px 50px rgba(0,78,74,.19); }
.security-tip-card::after { content: ""; position: absolute; z-index: -1; width: 200px; height: 200px; right: -95px; top: -95px; border: 30px solid rgba(255,255,255,.06); border-radius: 50%; }
.security-tip-illustration { width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 20px; color: var(--admin-green); font-size: 1.45rem; background: var(--admin-yellow); transform: rotate(-4deg); }
.security-tip-card h2 { margin: 7px 0 11px; font: 800 1.35rem/1.3 "Sora", sans-serif; }
.security-tip-card > p { color: rgba(255,255,255,.72); font-size: .7rem; line-height: 1.7; }
.password-requirements { display: grid; gap: 9px; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.15); list-style: none; }
.password-requirements li { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.62); font-size: .66rem; }
.password-requirements i { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; font-size: .55rem; }
.password-requirements li.is-valid { color: white; }
.password-requirements li.is-valid i { color: var(--admin-green); border-color: var(--admin-yellow); background: var(--admin-yellow); }
.session-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--admin-border); border-radius: 20px; background: white; box-shadow: var(--admin-shadow); }
.session-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--admin-blue); background: var(--admin-blue-soft); }
.session-card h3 { margin: 3px 0; font: 800 .83rem "Sora", sans-serif; }
.session-card p { margin: 0; color: var(--admin-muted); font-size: .63rem; }
.session-status { padding: 5px 8px; border-radius: 999px; color: var(--admin-green); font-size: .58rem; font-weight: 800; background: var(--admin-mint-soft); }

/* Modals and toast */
.admin-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(1,26,42,.68); backdrop-filter: blur(6px); animation: fade-in .18s ease; }
.modal-dialog { position: relative; width: min(100%, 660px); max-height: calc(100vh - 48px); padding: 30px; overflow-y: auto; border-radius: 25px; background: white; box-shadow: var(--admin-shadow-lg); animation: modal-in .22s ease; }
.modal-dialog-small { width: min(100%, 470px); padding: 36px; }
.modal-dialog-wide { width: min(100%, 830px); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--admin-border); }
.modal-heading h2, .modal-centered-copy h2 { margin: 5px 0 0; font: 800 1.5rem/1.25 "Sora", sans-serif; letter-spacing: -.03em; }
.modal-close { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 12px; color: var(--admin-muted); background: #eef2f5; cursor: pointer; }
.modal-close:hover { color: var(--admin-coral); background: var(--admin-coral-soft); }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 5px; }
.modal-actions-centered { justify-content: center; margin-top: 25px; }
.modal-alert-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 22px; color: var(--admin-coral); font-size: 1.5rem; background: var(--admin-coral-soft); }
.modal-centered-copy { text-align: center; }
.modal-centered-copy p { margin: 13px 0 0; color: var(--admin-muted); font-size: .72rem; line-height: 1.7; }
.admin-toast { position: fixed; z-index: 1500; right: 26px; bottom: 26px; width: min(calc(100% - 32px), 390px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid #cce6df; border-radius: 16px; background: white; box-shadow: 0 22px 55px rgba(1,39,62,.2); opacity: 0; pointer-events: none; transform: translateY(20px); transition: opacity .22s ease, transform .22s ease; }
.admin-toast.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.toast-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--admin-green); background: var(--admin-mint-soft); }
.admin-toast > div { display: grid; gap: 2px; }
.admin-toast strong { font-size: .72rem; }
.admin-toast p { margin: 0; color: var(--admin-muted); font-size: .63rem; }
.admin-toast button { border: 0; color: #8c9aa6; background: none; cursor: pointer; }

.applications-total { min-width: 145px; padding: 15px 20px; border: 1px solid var(--admin-border); border-radius: 17px; text-align: center; background: white; box-shadow: var(--admin-shadow); }
.applications-total strong { display: block; color: var(--admin-green); font: 800 1.7rem/1 "Sora", sans-serif; }
.applications-total span { color: var(--admin-muted); font-size: .67rem; font-weight: 700; }
.applications-admin-list { display: grid; gap: 18px; }
.application-admin-card { padding: 25px; border: 1px solid var(--admin-border); border-radius: 23px; background: white; box-shadow: var(--admin-shadow); }
.application-card-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid var(--admin-border); }
.application-avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; color: var(--admin-green); background: var(--admin-mint-soft); }
.application-card-heading h2 { margin: 5px 0 3px; font: 800 1.05rem/1.3 "Sora", sans-serif; }
.application-card-heading p { margin: 0; color: var(--admin-muted); font-size: .65rem; }
.application-actions { display: flex; align-items: center; gap: 9px; }
.application-data-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 22px 0; }
.application-data-grid > div { min-width: 0; }
.application-data-grid span, .application-resume > div > span { display: block; margin-bottom: 5px; color: var(--admin-muted); font-size: .61rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.application-data-grid strong, .application-data-grid a { display: block; overflow-wrap: anywhere; color: var(--admin-ink); font-size: .74rem; line-height: 1.5; }
.application-data-grid a:hover { color: var(--admin-blue); }
.application-resume { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 18px; border-radius: 16px; background: #f8fafc; }
.application-resume p { margin: 0; color: var(--admin-ink); font-size: .72rem; line-height: 1.65; white-space: pre-line; }
.application-file-meta { min-width: 210px; display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--admin-border); border-radius: 13px; background: white; }
.application-file-meta > i { color: var(--admin-blue); font-size: 1.3rem; }
.application-file-meta div { min-width: 0; }
.application-file-meta strong, .application-file-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.application-file-meta strong { max-width: 190px; font-size: .68rem; }
.application-file-meta span { margin-top: 3px; color: var(--admin-muted); font-size: .58rem; }

@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1180px) {
  :root { --sidebar-width: 250px; }
  .admin-sidebar { padding-inline: 15px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 215px; }
  .post-admin-card { grid-template-columns: 150px minmax(0, 1fr); }
  .post-admin-actions { grid-column: 2; padding: 0 22px 18px; justify-content: flex-end; }
  .testimonial-admin-card { grid-template-columns: 140px minmax(0, 1fr); }
  .testimonial-admin-actions { grid-column: 2; padding: 0 22px 18px; justify-content: flex-end; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-showcase { min-height: 390px; padding: 32px; }
  .login-showcase-copy { padding: 55px 0 10px; }
  .login-showcase h1 { max-width: 680px; font-size: clamp(2.2rem, 7vw, 3.5rem); }
  .login-orbit { width: 145px; height: 145px; opacity: .6; }
  .login-panel { min-height: auto; padding: 60px 28px 25px; }
  .admin-sidebar { transform: translateX(-105%); transition: transform .25s ease; box-shadow: 24px 0 60px rgba(0,0,0,.25); }
  .admin-page.sidebar-open .admin-sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; z-index: 450; inset: 0; display: block; background: rgba(1,26,42,.5); opacity: 0; visibility: hidden; transition: .25s ease; }
  .admin-page.sidebar-open .sidebar-backdrop { opacity: 1; visibility: visible; }
  .sidebar-close { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 11px; color: white; background: rgba(255,255,255,.09); }
  .admin-workspace { margin-left: 0; }
  .mobile-menu-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--admin-border); border-radius: 12px; color: var(--admin-navy); background: white; }
  .admin-topbar { justify-content: flex-start; }
  .topbar-actions { margin-left: auto; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card:last-child { grid-column: span 2; }
  .slide-admin-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .security-aside { grid-template-columns: 1.2fr .8fr; }
  .application-data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .login-showcase { min-height: 360px; }
  .login-orbit { display: none; }
  .login-panel { padding: 48px 22px 22px; }
  .admin-topbar { height: 70px; padding: 0 17px; }
  .topbar-breadcrumb { display: none; }
  .admin-content,
  .admin-workspace > .admin-page-content { padding: 25px 17px 38px; }
  .admin-page-content { gap: 20px; }
  .page-intro-with-action { align-items: flex-start; flex-direction: column; }
  .intro-date { display: none; }
  .page-intro-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .page-intro-with-action .admin-button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr; gap: 14px; }
  .metric-card, .metric-card:last-child { grid-column: auto; min-height: 205px; }
  .admin-card { padding: 22px; border-radius: 22px; }
  .integration-banner { grid-template-columns: auto 1fr; padding: 23px; }
  .integration-badge { grid-column: 2; justify-self: start; }
  .content-toolbar { align-items: stretch; flex-direction: column; }
  .admin-search { min-width: 0; max-width: none; }
  .admin-select-shell select { width: 100%; }
  .toolbar-summary, .toolbar-summary-end { margin-left: 0; padding: 3px 5px; }
  .slide-collage { height: 180px; }
  .slide-card-title { align-items: center; }
  .post-admin-card { grid-template-columns: 1fr; }
  .post-admin-image { min-height: 190px; }
  .post-admin-copy { padding: 19px; }
  .post-admin-actions { grid-column: auto; padding: 0 19px 19px; justify-content: flex-start; }
  .post-admin-actions .admin-button { flex: 1; }
  .testimonial-admin-card { grid-template-columns: 1fr; }
  .testimonial-admin-avatar { height: 210px; min-height: 0; }
  .testimonial-admin-copy { padding: 19px; }
  .testimonial-admin-actions { grid-column: auto; padding: 0 19px 19px; justify-content: flex-start; }
  .testimonial-admin-actions .admin-button { flex: 1; }
  .security-aside { grid-template-columns: 1fr; }
  .form-grid-two { grid-template-columns: 1fr; }
  .form-field-span-two { grid-column: auto; }
  .image-preview-grid { grid-template-columns: repeat(3, 1fr); }
  .modal-dialog { max-height: calc(100vh - 24px); padding: 22px; border-radius: 21px; }
  .admin-modal { padding: 12px; }
  .modal-actions { align-items: stretch; flex-direction: column-reverse; }
  .modal-actions .admin-button { width: 100%; }
  .modal-actions-centered { flex-direction: row; }
  .modal-actions-centered .admin-button { width: auto; flex: 1; }
  .admin-toast { right: 16px; bottom: 16px; }
  .applications-total { width: 100%; }
  .application-admin-card { padding: 19px; }
  .application-card-heading { grid-template-columns: auto 1fr; }
  .application-actions { grid-column: 1 / -1; width: 100%; }
  .application-download { flex: 1; }
  .application-data-grid { grid-template-columns: 1fr; }
  .application-resume { grid-template-columns: 1fr; }
  .application-file-meta { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
