@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Manrope:wght@400;500;600;700&family=Newsreader:ital,wght@0,400;0,500;1,400&display=swap");

:root {
  --paper: #f9f8f6;
  --paper-alt: #f2f0ed;
  --surface: #ffffff;
  --line: #e5e2de;
  --text: #333333;
  --muted: #625d58;
  --accent: #8c7b70;
  --accent-dark: #75655c;
  --chip-bg: #f3eeea;
  --chip-line: #d7ccc4;
  --admin-bg: #f5f5f4;
  --admin-surface: #ffffff;
  --admin-line: #e7e5e4;
  --admin-text: #292524;
  --admin-muted: #78716c;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

button,
input,
textarea,
a {
  font: inherit;
}

/* Portfolio */
body.portfolio-page {
  background: var(--paper);
  color: var(--text);
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(249, 248, 246, 0.92);
  backdrop-filter: blur(7px);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: #2f2b27;
  font-family: "Lora", serif;
  font-size: 1.06rem;
  font-weight: 600;
  justify-self: start;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.05rem;
  justify-self: stretch;
  width: 100%;
}

.site-nav a {
  text-decoration: none;
  color: #605a55;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #2f2b27;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  padding: 0;
  justify-self: end;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #605a55;
}

.lane {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.6rem;
}

.lane-label {
  padding-top: 0.2rem;
}

.lane-label h2,
.hero-copy h1,
.news-body h3,
.research-head h3,
.honor-title,
.edu-degree {
  margin: 0;
  font-family: "Lora", serif;
  font-weight: 500;
}

.lane-label h2 {
  font-size: 1.34rem;
  color: #2f2a27;
}

.lane-kicker {
  margin: 0.35rem 0 0;
  color: #8d7f76;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.hero-section {
  padding: 2.5rem 0 2.8rem;
}

.hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2.2rem;
  align-items: start;
}

.hero-wrap-single {
  width: 100%;
}

.hero-kicker {
  margin: 0;
  color: #8f7f75;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-weight: 700;
}

.hero-copy h1 {
  margin-top: 0.36rem;
  font-size: clamp(2.2rem, 6vw, 3.85rem);
  line-height: 1.03;
  letter-spacing: -0.01em;
}

.hero-affiliation {
  margin: 0.72rem 0 0;
  color: #57524e;
  font-size: 1.02rem;
}

.hero-intro {
  margin: 0.86rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.74;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
  margin: 0 0 1rem;
}

.area-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--chip-line);
  background: var(--chip-bg);
  color: #5f564f;
  padding: 0 0.7rem;
  font-size: 0.72rem;
}

.hero-contact {
  margin: 0 0 1rem;
  display: flex;
  gap: 0.56rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-contact span {
  color: #8f8178;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.hero-contact a {
  color: #39332f;
  text-underline-offset: 0.2em;
}

.hero-links-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.56rem;
}

.ext-link {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid #cbbbae;
  background: #f7f2ed;
  color: #6d5747;
  text-decoration: none;
  padding: 0;
  white-space: nowrap;
}

.ext-link:hover,
.ext-link:focus-visible {
  border-color: #b89f8c;
  background: #efe4db;
  color: #59412f;
}

.ext-link.is-disabled {
  pointer-events: none;
  opacity: 0.42;
  border-style: dashed;
}

.ext-icon {
  width: 18px;
  height: 18px;
  display: block;
}

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

.portrait-frame {
  background: #f6f2ef;
  border: 1px solid #d8cdc4;
  padding: 0.58rem;
}

.portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.content-section {
  padding: 2.85rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.section-alt {
  background: var(--paper-alt);
}

.news-list,
.research-list,
.edu-list,
.honor-list {
  display: grid;
  gap: 0.82rem;
}

.news-scroll {
  max-height: 22.25rem;
  overflow-y: auto;
  padding-right: 0.55rem;
  scrollbar-width: thin;
  scrollbar-color: #c6b9af transparent;
}

.news-scroll::-webkit-scrollbar {
  width: 8px;
}

.news-scroll::-webkit-scrollbar-thumb {
  background: #c6b9af;
  border-radius: 999px;
}

.news-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.news-entry,
.research-card,
.edu-card,
.honor-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.news-entry {
  padding: 1rem;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
}

.news-entry {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.85rem 0;
}

.news-date {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8e7d71;
  border-top: 1px solid #d9cec5;
  padding-top: 0.24rem;
}

.news-body h3 {
  font-size: 1.08rem;
  color: #2f2a26;
}

.news-body p {
  margin: 0.38rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.68;
}

.edu-list,
.honor-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.edu-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.edu-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  border-left: 5px solid #b49a8a;
  padding: 0.35rem 0 0.35rem 1.05rem;
  min-height: 168px;
}

.edu-degree {
  font-size: 1.05rem;
  color: #2f2a26;
}

.edu-period {
  margin: 0.24rem 0 0;
  color: #7c6f65;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.edu-inst,
.edu-note {
  margin: 0.36rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.edu-major {
  margin: 0.32rem 0 0;
  color: #6f6056;
  font-size: 0.86rem;
  font-weight: 600;
}

.research-card {
  padding: 1rem;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1rem;
}

.research-card.no-thumb {
  grid-template-columns: 1fr;
}

.publication-card,
.conference-card {
  grid-template-columns: 176px minmax(0, 1fr);
  align-items: start;
}

.publication-card .research-thumb,
.conference-card .research-thumb {
  width: 176px;
  height: 124px;
  margin: 0;
}

.publication-card .research-thumb img,
.conference-card .research-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f4f1ee;
}

.publication-card.no-thumb,
.conference-card.no-thumb {
  grid-template-columns: 1fr;
}

.research-thumb {
  border: 1px solid #ded7d1;
  border-radius: 8px;
  overflow: hidden;
  background: #f6f3f0;
}

.research-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.research-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 0.78rem;
}

.meta-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-self: end;
}

.research-head h3 {
  font-size: 1.1rem;
  line-height: 1.43;
  color: #2d2824;
  min-width: 0;
  width: 100%;
  padding-right: 0.2rem;
  overflow-wrap: anywhere;
}

.date-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d5cbc2;
  background: #f4efea;
  color: #735f50;
  padding: 0 0.64rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  flex-shrink: 0;
}

.award-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #e0c27a;
  background: #fff6dc;
  color: #7b5d1d;
  padding: 0 0.64rem;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  font-weight: 700;
  white-space: nowrap;
}

.award-under-title {
  margin-top: 0.45rem;
  max-width: min(100%, 340px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.research-footer {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  min-width: 0;
}

.award-chip-footer {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}

.research-citation {
  margin: 0.55rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  white-space: pre-line;
  word-break: break-word;
}

.research-link {
  text-decoration: none;
  color: #5f4d40;
  font-size: 0.79rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  min-width: 50px;
  flex: 0 0 auto;
}

.name-highlight {
  font-weight: 700;
}

.honor-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.honor-card {
  padding: 1rem;
  min-height: 120px;
}

.honor-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 0.6rem;
}

.honor-year {
  position: static;
  flex-shrink: 0;
}

.honor-title {
  font-size: 1rem;
  color: #2f2a26;
  min-width: 0;
  width: 100%;
  padding-right: 0.2rem;
  overflow-wrap: anywhere;
}

.honor-org,
.honor-note {
  margin: 0.34rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #776f68;
  font-size: 0.84rem;
}

.footer-inner a {
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.7rem;
}

.fallback {
  margin: 0;
  color: #7a716a;
  font-size: 0.92rem;
}

/* Admin */
body.admin-page {
  background: var(--admin-bg);
  color: var(--admin-text);
  font-family: "Inter", "Noto Sans KR", sans-serif;
  height: 100vh;
  overflow: hidden;
}

.admin-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  overflow: hidden;
}

.admin-sidebar {
  background: #fbfbfb;
  border-right: 1px solid var(--admin-line);
  padding: 1.3rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.admin-brand-title {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: 1.5rem;
  font-style: italic;
  color: #1f1b17;
}

.admin-brand-sub {
  margin: 0.3rem 0 0;
  color: #8a847f;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.admin-nav {
  display: grid;
  gap: 0.3rem;
  margin-top: 1.2rem;
}

.admin-nav-item {
  min-height: 44px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  text-align: left;
  padding: 0 0.7rem;
  color: #5b544f;
  font-size: 0.9rem;
  font-weight: 500;
}

.admin-nav-item:hover,
.admin-nav-item:focus-visible {
  background: #f2f1f0;
  color: #2c2723;
}

.admin-nav-item.is-active {
  background: #e8e6e4;
  color: #201b18;
  font-weight: 700;
}

.admin-sidebar-foot {
  padding-top: 1rem;
  border-top: 1px solid var(--admin-line);
}

.admin-main {
  overflow: auto;
  padding: 1.5rem;
  min-width: 0;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-topbar h1 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-style: italic;
  font-weight: 500;
  color: #1f1b17;
}

.admin-topbar p {
  margin: 0.34rem 0 0;
  color: var(--admin-muted);
  font-size: 0.88rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.btn {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid #d8d4d1;
  background: #fff;
  color: #3f3833;
  padding: 0 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-dark {
  border-color: #1f1b18;
  background: #1f1b18;
  color: #faf9f8;
}

.status-line {
  margin: 0 0 0.95rem;
  min-height: 1.2rem;
  color: var(--admin-muted);
  font-size: 0.86rem;
}

.admin-panel {
  display: none;
  border: 1px solid var(--admin-line);
  border-radius: var(--radius);
  background: var(--admin-surface);
  padding: 1rem;
  min-width: 0;
}

.admin-panel.is-active {
  display: block;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.kpi-card {
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #fbfbfa;
  padding: 0.95rem;
}

.kpi-card p {
  margin: 0;
  color: #88827d;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.64rem;
  font-weight: 700;
}

.kpi-card strong {
  display: block;
  margin-top: 0.4rem;
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 500;
  color: #1f1b17;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.panel-head h2 {
  margin: 0;
  color: #1f1b17;
  font-size: 1.08rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #706963;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fff;
  color: #2c2724;
  padding: 0.62rem 0.66rem;
  min-width: 0;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.dynamic-editor {
  display: grid;
  gap: 0.72rem;
}

.admin-entry {
  border: 1px dashed #cec8c3;
  border-radius: 10px;
  background: #fcfbfa;
  padding: 0.75rem;
  position: relative;
  min-width: 0;
}

.move-buttons {
  position: absolute;
  top: 0.58rem;
  right: 0.58rem;
  display: flex;
  gap: 0.32rem;
}

.move-buttons button {
  min-height: 34px;
  min-width: 34px;
  border-radius: 8px;
  border: 1px solid #d5d0cb;
  background: #fff;
  color: #4e4640;
}

.delete-btn {
  margin-top: 0.5rem;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid #e4c3c3;
  background: #fff1f1;
  color: #8e3434;
  padding: 0 0.8rem;
  font-weight: 600;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 11, 9, 0.3);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(420px, calc(100% - 1rem));
  border: 1px solid #ddd7d2;
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
}

.auth-card h2 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 500;
  color: #1f1b17;
}

.auth-card p {
  margin: 0.42rem 0 0.7rem;
  color: #7d7670;
  font-size: 0.86rem;
}

.auth-form {
  display: grid;
  gap: 0.6rem;
}

.auth-help {
  margin: 0;
}

.text-warning {
  min-height: 1.1rem;
  margin: 0;
  color: #a53434;
  font-size: 0.84rem;
}

.admin-hidden {
  display: none;
}

button,
input,
textarea,
a {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(140, 123, 112, 0.45);
  outline-offset: 1px;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    width: min(1120px, calc(100% - 1.7rem));
  }

  .lane {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1.5rem;
  }

  .hero-wrap {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 1.3rem;
  }

  .header-inner {
    grid-template-columns: 185px 1fr auto;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(1120px, calc(100% - 1.1rem));
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    top: calc(100% + 0.35rem);
    background: rgba(250, 249, 247, 0.98);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.4rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.22rem;
    z-index: 80;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
    border-radius: 8px;
    padding: 0 0.58rem;
  }

  .site-nav a::after {
    display: none;
  }

  .lane,
  .hero-wrap,
  .research-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .publication-card,
  .conference-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .publication-card .research-thumb,
  .conference-card .research-thumb {
    width: 100%;
    height: 180px;
  }

  .publication-card.no-thumb,
  .conference-card.no-thumb {
    grid-template-columns: 1fr;
  }

  .research-footer {
    flex-wrap: nowrap;
  }

  .award-under-title {
    max-width: min(72vw, 240px);
  }

  .award-chip-footer {
    max-width: min(62vw, 220px);
  }

  .date-chip {
    min-height: 24px;
    padding: 0 0.5rem;
    font-size: 0.66rem;
    white-space: nowrap;
  }

  .hero-photo {
    order: -1;
    max-width: 310px;
    justify-self: center;
    margin-inline: auto;
  }

  .hero-copy {
    text-align: center;
  }

  .area-list {
    justify-content: center;
  }

  .hero-contact {
    justify-content: center;
  }

  .hero-links-scroll {
    display: flex;
    justify-content: center;
  }

  .hero-links {
    margin-inline: auto;
  }

  .hero-links {
    flex-wrap: nowrap;
    width: max-content;
  }

  .content-section {
    padding: 2.2rem 0;
  }

  .news-entry {
    grid-template-columns: 1fr;
    gap: 0.42rem;
    padding: 0.72rem 0;
  }

  .news-scroll {
    max-height: 24rem;
    padding-right: 0.2rem;
    mask-image: none;
  }

  .news-date {
    width: fit-content;
  }

  .edu-list,
  .honor-list,
  .kpi-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .edu-card {
    border-left-width: 4px;
    padding-left: 0.8rem;
    min-height: 0;
  }

  .honor-card {
    padding: 1rem;
  }

  .honor-year {
    position: static;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  body.admin-page {
    height: auto;
    overflow: auto;
  }

  .admin-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
    padding: 0.8rem 0.7rem;
    gap: 0.7rem;
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .admin-nav {
    display: flex;
    overflow-x: auto;
    gap: 0.35rem;
    margin-top: 0;
  }

  .admin-nav-item {
    width: auto;
    white-space: nowrap;
    padding: 0 0.72rem;
  }

  .admin-sidebar-foot {
    display: none;
  }

  .admin-main {
    padding: 0.86rem;
  }

  .admin-topbar {
    flex-direction: column;
  }

  .admin-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
