:root {
  --blue: #436fe0;
  --blue-dark: #3159c5;
  --blue-soft: #eef3ff;
  --navy: #101b35;
  --ink: #26324a;
  --muted: #68758d;
  --line: #e5e9f2;
  --surface: #f6f8fc;
  --success: #14804a;
  --shadow: 0 18px 50px rgba(25, 42, 78, .11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: white;
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
.button {
  cursor: pointer;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.article-shell {
  width: min(820px, calc(100% - 40px));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(67, 111, 224, .42);
  outline-offset: 3px;
}

.announcement {
  color: #dce5ff;
  background: #142343;
  font-size: 12px;
}

.announcement__inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
}

.announcement b {
  margin-right: 8px;
  color: #90abff;
  letter-spacing: .12em;
}

.announcement a {
  color: white;
  font-weight: 700;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(229, 233, 242, .9);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 46px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
}

.brand img {
  display: block;
  width: 112px;
  height: 40px;
  object-fit: contain;
}

.brand span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.main-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: #4f5d75;
  font-size: 14px;
  font-weight: 650;
}

.main-nav a:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.menu-button {
  display: none;
  min-height: 40px;
  padding: 0 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
}

.button--primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(67, 111, 224, .2);
}

.button--primary:hover {
  background: var(--blue-dark);
}

.button--light {
  color: #34415b;
  background: #f6f8fc;
  border-color: var(--line);
}

.button--outline {
  color: #34415b;
  background: white;
  border-color: #d6dce8;
}

.button--block {
  width: 100%;
  margin-top: 12px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .15em;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 30%, rgba(117, 90, 224, .13), transparent 26%),
    radial-gradient(circle at 14% 82%, rgba(67, 111, 224, .11), transparent 32%),
    linear-gradient(180deg, #fbfcff, #f3f6ff);
}

.hero__inner {
  display: grid;
  min-height: 535px;
  align-items: center;
  grid-template-columns: 1.08fr .92fr;
  gap: 70px;
}

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.16;
  letter-spacing: -.055em;
}

.hero h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero__copy > p:not(.eyebrow) {
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 17px;
}

.search-box {
  display: flex;
  max-width: 620px;
  min-height: 60px;
  padding: 7px 7px 7px 19px;
  align-items: center;
  background: white;
  border: 1px solid #dce3f1;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.search-box > span {
  margin-right: 10px;
  color: var(--blue);
  font-size: 25px;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 15px;
}

.search-box button {
  min-width: 84px;
  align-self: stretch;
  color: white;
  background: var(--blue);
  border: 0;
  border-radius: 10px;
  font-weight: 800;
}

.search-suggestions {
  display: flex;
  margin-top: 14px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #7a869b;
  font-size: 12px;
}

.search-suggestions a {
  padding: 4px 9px;
  color: #506080;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero__visual {
  position: relative;
  min-height: 370px;
}

.visual-card {
  position: absolute;
  display: flex;
  width: 285px;
  height: 330px;
  padding: 34px;
  flex-direction: column;
  border-radius: 28px;
  box-shadow: 0 30px 65px rgba(29, 44, 88, .2);
}

.visual-card--back {
  top: 18px;
  right: 0;
  justify-content: flex-end;
  color: rgba(255, 255, 255, .7);
  background: linear-gradient(145deg, #806ce4, #4b65c7);
  font-size: 11px;
  letter-spacing: .16em;
  transform: rotate(8deg);
}

.visual-card--front {
  z-index: 2;
  top: 0;
  right: 105px;
  color: white;
  background: linear-gradient(160deg, #172849, #315ec9);
  transform: rotate(-4deg);
}

.visual-card--front small {
  color: #aebff2;
  letter-spacing: .11em;
}

.visual-card--front strong {
  margin-top: 42px;
  font-size: 27px;
  line-height: 1.4;
}

.visual-card--front i {
  width: 56px;
  height: 5px;
  margin-top: auto;
  background: #88a5ff;
  border-radius: 10px;
}

.visual-orbit {
  position: absolute;
  z-index: 3;
  right: 50px;
  bottom: 8px;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  color: white;
  background: var(--blue);
  border: 10px solid #e4eaff;
  border-radius: 50%;
  font-size: 31px;
  font-weight: 900;
  box-shadow: 0 15px 35px rgba(67, 111, 224, .3);
}

.category-section,
.post-section {
  padding: 90px 0;
}

.section-heading {
  display: flex;
  margin-bottom: 34px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 31px;
  letter-spacing: -.035em;
}

.section-heading > p {
  color: var(--muted);
  font-size: 13px;
}

.section-heading--posts > a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.category-card {
  position: relative;
  display: flex;
  min-height: 174px;
  padding: 22px;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.category-card:hover,
.category-card.is-active {
  border-color: #b7c7ef;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.category-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 12px;
  font-weight: 900;
}

.category-card strong {
  color: var(--navy);
  font-size: 16px;
}

.category-card small {
  color: var(--muted);
}

.category-card > i {
  position: absolute;
  right: 20px;
  bottom: 19px;
  color: var(--blue);
  font-style: normal;
}

.post-section {
  background: var(--surface);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(28, 43, 78, .06);
}

.post-card__visual {
  position: relative;
  display: flex;
  min-height: 210px;
  padding: 24px;
  align-items: flex-start;
  overflow: hidden;
  color: white;
  background: linear-gradient(140deg, #355ac0, #718ee2);
}

.post-card__visual.visual-violet {
  background: linear-gradient(140deg, #7255bc, #a288e2);
}

.post-card__visual.visual-mint {
  background: linear-gradient(140deg, #187886, #4fb6b0);
}

.post-card__visual span {
  z-index: 3;
  display: inline-flex;
  min-height: 28px;
  padding: 6px 9px;
  align-items: center;
  background: rgba(17, 30, 58, .64);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .08em;
}

.post-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.post-card__visual:hover .post-card__cover {
  transform: scale(1.025);
}

.post-card__visual b {
  position: absolute;
  right: 34px;
  bottom: -28px;
  color: rgba(255, 255, 255, .18);
  font-size: 160px;
  line-height: 1;
}

.post-card__visual i {
  position: absolute;
  right: -40px;
  top: -55px;
  width: 170px;
  height: 170px;
  border: 26px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
}

.post-card__body {
  padding: 24px;
}

.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.post-card__meta a {
  color: var(--blue);
  font-weight: 800;
}

.post-card h3 {
  margin: 12px 0 9px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.42;
  letter-spacing: -.025em;
}

.post-card__body > p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-card__footer {
  display: flex;
  margin-top: 24px;
  padding-top: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.post-card__footer > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.post-card__footer b {
  color: #3c4962;
  font-size: 11px;
}

.post-card__footer small {
  color: #8994a8;
  font-size: 9px;
}

.post-card__footer > a {
  color: var(--blue);
  font-size: 19px;
}

.listing-pagination {
  display: grid;
  max-width: 560px;
  margin: 36px auto 0;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.listing-pagination a {
  display: inline-flex;
  min-height: 44px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(26, 48, 88, 0.06);
}

.listing-pagination a:last-child {
  grid-column: 3;
}

.listing-pagination > span {
  grid-column: 2;
  grid-row: 1;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.listing-pagination > span b {
  color: var(--blue);
  font-size: 14px;
}

.empty-state {
  padding: 80px 30px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.empty-state > span {
  color: var(--blue);
  font-size: 45px;
}

.empty-state h3 {
  margin: 10px 0 4px;
  color: var(--navy);
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
}

.site-footer {
  color: #9ca7bc;
  background: #0e172d;
}

.footer__inner {
  display: flex;
  padding-top: 55px;
  padding-bottom: 42px;
  align-items: flex-start;
  justify-content: space-between;
}

.brand--footer {
  padding: 4px 9px 4px 7px;
  background: white;
  border-radius: 9px;
}

.footer__inner p {
  margin: 17px 0 0;
  font-size: 13px;
}

.footer__inner nav {
  display: flex;
  gap: 24px;
  color: #d9dfeb;
  font-size: 12px;
}

.footer__legal {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #202b43;
  font-size: 10px;
}

.reading-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}

.article-hero {
  padding: 75px 0 68px;
  background: linear-gradient(180deg, #f8faff, #fff);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  margin-bottom: 34px;
  gap: 9px;
  color: #7d899d;
  font-size: 12px;
}

.article-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.22;
  letter-spacing: -.05em;
}

.article-lead {
  max-width: 700px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 17px;
}

.article-byline {
  display: flex;
  align-items: center;
}

.article-byline p {
  margin: 0;
  font-size: 12px;
}

.article-byline small {
  color: var(--muted);
  font-size: 10px;
}

.article-cover {
  width: min(1120px, calc(100% - 40px));
  margin: 48px auto 0;
  overflow: hidden;
  background: #eef3ff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(28, 43, 78, .09);
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 630px;
  object-fit: cover;
}

.article-layout {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 90px;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 80px;
}

.article-content {
  color: #354158;
  font-size: 17px;
  line-height: 1.95;
}

.article-content h2 {
  margin: 52px 0 15px;
  color: var(--navy);
  font-size: 28px;
  letter-spacing: -.035em;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content aside {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
}

.article-content aside p {
  margin-bottom: 0;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
}

.article-content blockquote > :first-child {
  margin-top: 0;
}

.article-content blockquote > :last-child {
  margin-bottom: 0;
}

.article-content .table-scroll {
  max-width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.article-content table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-content th {
  color: var(--navy);
  background: #f5f7fb;
  font-weight: 800;
}

.article-content tr:last-child > * {
  border-bottom: 0;
}

.article-content tr > :last-child {
  border-right: 0;
}

.article-content img,
.editor-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border-radius: 12px;
}

.text-left {
  text-align: left;
}

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

.text-right {
  text-align: right;
}

.text-justify {
  text-align: justify;
}

.cello-line-height--tight {
  line-height: 1.35;
}

.cello-line-height--normal {
  line-height: 1.65;
}

.cello-line-height--relaxed {
  line-height: 1.85;
}

.cello-line-height--loose {
  line-height: 2;
}

.cello-paragraph-spacing--none {
  margin-bottom: 0;
}

.cello-paragraph-spacing--small {
  margin-bottom: .5rem;
}

.cello-paragraph-spacing--medium {
  margin-bottom: 1rem;
}

.cello-paragraph-spacing--large {
  margin-bottom: 1.5rem;
}

.cello-text-color--default {
  color: #26324a;
}

.cello-text-color--muted {
  color: #68758d;
}

.cello-text-color--brand {
  color: #3159c5;
}

.cello-text-color--danger {
  color: #b42318;
}

.cello-text-color--warning {
  color: #b54708;
}

.cello-text-color--success {
  color: #14804a;
}

.cello-background-color--subtle {
  background-color: #f6f8fc;
}

.cello-background-color--brand {
  background-color: #eef3ff;
}

.cello-background-color--danger {
  background-color: #fff1f2;
}

.cello-background-color--warning {
  background-color: #fff7ed;
}

.cello-background-color--success {
  background-color: #ecfdf3;
}

.cello-font-family--sans {
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cello-font-family--serif {
  font-family: "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;
}

.cello-font-family--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.cello-font-size--small {
  font-size: .875rem;
}

.cello-font-size--normal {
  font-size: 1rem;
}

.cello-font-size--large {
  font-size: 1.125rem;
}

.cello-font-size--xlarge {
  font-size: 1.375rem;
}

.article-aside {
  position: relative;
}

.service-card {
  position: sticky;
  top: 100px;
  padding: 28px;
  color: white;
  background: linear-gradient(155deg, #142343, #315ac6);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.service-card .eyebrow {
  color: #a9bfff;
}

.service-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.45;
}

.service-card p {
  color: #c9d4ed;
  font-size: 12px;
}

.service-card .button {
  width: 100%;
  margin-top: 10px;
  color: var(--navy);
  background: white;
}

/* Admin editor */
.admin-body {
  overflow: hidden;
  background: #f3f5f9;
}

.editor-app {
  display: grid;
  height: 100vh;
  grid-template-columns: 220px minmax(0, 1fr) 310px;
  grid-template-rows: 64px minmax(0, 1fr);
}

.editor-topbar {
  z-index: 20;
  display: flex;
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-bottom: 1px solid var(--line);
  grid-column: 1 / -1;
}

.editor-topbar__brand,
.editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-menu-button,
.admin-sidebar__close,
.admin-drawer-scrim {
  display: none;
}

.brand--editor img {
  width: 92px;
  height: auto;
}

.editor-topbar__brand > i {
  width: 1px;
  height: 28px;
  margin: 0 8px;
  background: var(--line);
}

.editor-topbar__brand > span {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.editor-topbar__brand b {
  font-size: 12px;
}

.editor-topbar__brand small {
  color: #8a95a8;
  font-size: 9px;
}

.editor-actions form {
  display: inline-flex;
  margin: 0;
}

.editor-actions .button {
  min-height: 38px;
}

.profile-button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: white;
  background: var(--navy);
  border: 0;
  border-radius: 50%;
  font-weight: 800;
}

.admin-sidebar {
  padding: 20px 14px;
  overflow-y: auto;
  background: #101a30;
}

.admin-sidebar > a {
  display: block;
  margin-bottom: 24px;
  padding: 7px 9px;
  color: #cad4e8;
  font-size: 10px;
}

.admin-sidebar > p {
  margin: 22px 10px 7px;
  color: #66738c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
}

.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar nav a {
  display: flex;
  min-height: 38px;
  padding: 0 11px;
  align-items: center;
  justify-content: space-between;
  color: #9eacc5;
  border-radius: 8px;
  font-size: 11px;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.is-active {
  color: white;
  background: #1d2c4c;
}

.admin-sidebar__logout {
  display: block;
  margin: 24px 9px 0;
}

.admin-sidebar__logout button {
  width: 100%;
  min-height: 40px;
  color: #e4e9f4;
  background: #1c2b49;
  border: 1px solid #334463;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.editor-main {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
}

.editor-flash {
  position: absolute;
  z-index: 30;
  top: 64px;
  left: 50%;
  padding: 10px 16px;
  color: #12663d;
  background: #eaf8f0;
  border: 1px solid #bde3cd;
  border-radius: 9px;
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 750;
  transform: translateX(-50%);
}

.editor-flash--error {
  color: #9f1f24;
  background: #fff1f1;
  border-color: #f0b9bc;
}

.editor-toolbar {
  display: flex;
  min-height: 52px;
  padding: 8px 13px;
  align-items: center;
  gap: 8px;
  background: white;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.editor-toolbar__group {
  display: inline-flex;
  padding-right: 8px;
  align-items: center;
  gap: 5px;
  border-right: 1px solid var(--line);
}

.editor-toolbar__group:last-child {
  padding-right: 0;
  border-right: 0;
}

.editor-toolbar select,
.editor-toolbar button {
  flex: none;
  min-height: 38px;
  padding: 0 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10px;
}

.editor-toolbar button:hover,
.editor-toolbar button:focus-visible,
.editor-toolbar button[aria-pressed="true"] {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #b9c8ef;
}

.editor-toolbar button:disabled,
.editor-toolbar select:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.editor-scroll {
  padding: 20px 28px 60px;
  overflow-y: auto;
}

.editor-breadcrumb,
.editor-status {
  width: min(760px, 100%);
  margin: 0 auto 12px;
  color: #8a95a7;
  font-size: 9px;
}

.editor-breadcrumb span {
  margin: 0 5px;
}

.editor-paper {
  width: min(760px, 100%);
  min-height: 930px;
  margin: 0 auto;
  padding: 62px 72px 90px;
  background: white;
  box-shadow: 0 8px 35px rgba(24, 39, 70, .08);
}

.editor-paper__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editor-paper__meta span {
  padding: 4px 8px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.editor-paper__meta small {
  color: #8793a6;
  font-size: 9px;
}

.editor-paper h1 {
  margin: 22px 0 12px;
  color: var(--navy);
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: -.045em;
}

.editor-deck {
  margin: 0 0 30px;
  color: #748096;
  font-size: 16px;
}

.editor-cover {
  display: flex;
  min-height: 200px;
  margin-bottom: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background:
    radial-gradient(circle at 70% 30%, rgba(67, 111, 224, .18), transparent 35%),
    #f4f7ff;
  border: 1px dashed #cbd5eb;
  border-radius: 14px;
}

.editor-cover img {
  object-fit: contain;
  opacity: .86;
}

.editor-cover button {
  margin-top: 5px;
  color: var(--blue);
  background: none;
  border: 0;
  font-size: 10px;
  font-weight: 750;
}

.editor-cover {
  display: grid;
  padding: 18px;
  align-items: stretch;
  justify-content: stretch;
  gap: 12px;
}

.editor-cover__preview {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  background: #eef3ff;
  border-radius: 10px;
}

.editor-cover__preview > img[data-cover-preview] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.editor-cover__placeholder {
  display: grid;
  padding: 24px;
  place-items: center;
  gap: 5px;
  color: #5d6b84;
  text-align: center;
}

.editor-cover__placeholder[hidden] {
  display: none;
}

.editor-cover__placeholder strong {
  color: var(--navy);
  font-size: 13px;
}

.editor-cover__placeholder span,
.editor-cover__status {
  color: #748096;
  font-size: 10px;
}

.editor-cover__actions {
  display: flex;
  gap: 8px;
}

.editor-cover .editor-cover__actions button {
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  background: white;
  border: 1px solid var(--line);
  font-size: 11px;
}

.editor-cover label {
  color: #4d5b73;
  font-size: 10px;
  font-weight: 750;
}

.editor-cover input[type="text"],
.editor-cover input:not([type]) {
  min-height: 42px;
  padding: 0 12px;
  background: white;
  border: 1px solid #cbd5e6;
  border-radius: 8px;
}

.editor-cover__status {
  min-height: 16px;
  margin: 0;
}

.editor-cover__status[data-status="success"] {
  color: var(--success);
}

.editor-cover__status[data-status="error"] {
  color: #b42318;
}

.editor-content {
  min-height: 360px;
  color: #3c485d;
  font-size: 15px;
  line-height: 1.9;
}

.editor-paper [contenteditable="true"]:focus-visible,
.editor-content:focus-within {
  outline: 3px solid rgba(67, 111, 224, .42);
  outline-offset: 6px;
  border-radius: 4px;
}

.editor-content .tiptap,
.editor-content .tiptap-editor__content {
  min-height: 360px;
  outline: 0;
  caret-color: var(--blue);
}

.editor-content .tiptap > :first-child,
.editor-content .tiptap-editor__content > :first-child {
  margin-top: 0;
}

.editor-content h2 {
  margin: 38px 0 12px;
  color: var(--navy);
  font-size: 24px;
}

.editor-content h3 {
  margin: 30px 0 10px;
  color: var(--navy);
  font-size: 20px;
}

.editor-content h4 {
  margin: 24px 0 8px;
  color: var(--navy);
  font-size: 17px;
}

.editor-content aside,
.editor-content blockquote {
  margin: 24px 0;
  padding: 17px 19px;
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  border-radius: 0 9px 9px 0;
}

.editor-content blockquote p {
  margin: 0;
}

.editor-content .ProseMirror-selectednode {
  outline: 3px solid rgba(67, 111, 224, .45);
  outline-offset: 3px;
}

.editor-content .tableWrapper {
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
}

.editor-content table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  table-layout: fixed;
}

.editor-content th,
.editor-content td {
  position: relative;
  min-width: 90px;
  padding: 10px 12px;
  vertical-align: top;
  border: 1px solid #d8deea;
}

.editor-content th {
  color: var(--navy);
  background: #f5f7fb;
  font-weight: 800;
}

.editor-content .selectedCell::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: rgba(67, 111, 224, .12);
}

.editor-no-script {
  padding: 14px;
  color: #9f1f24;
  background: #fff1f1;
  border: 1px solid #f0b9bc;
  border-radius: 8px;
}

.editor-status {
  display: flex;
  margin-top: 10px;
  justify-content: flex-end;
  gap: 15px;
}

.editor-live-status {
  color: var(--blue);
  font-weight: 750;
}

.editor-settings {
  overflow-y: auto;
  background: white;
  border-left: 1px solid var(--line);
}

.settings-tabs {
  display: flex;
  min-height: 52px;
  padding: 0 20px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.settings-tabs b {
  display: flex;
  height: 52px;
  align-items: center;
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}

.settings-tabs span {
  color: #8792a5;
}

.editor-settings section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.editor-settings h2 {
  margin: 0 0 12px;
  color: #3d4960;
  font-size: 11px;
}

.editor-settings label {
  display: block;
  margin: 11px 0 5px;
  color: #778297;
  font-size: 9px;
  font-weight: 650;
}

.editor-settings input,
.editor-settings select,
.editor-settings textarea {
  width: 100%;
  padding: 8px 9px;
  background: white;
  border: 1px solid #d8deea;
  border-radius: 7px;
  font-size: 10px;
}

.status-card {
  display: flex;
  padding: 12px;
  align-items: flex-start;
  gap: 9px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status-card > i {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  background: var(--blue);
  border-radius: 50%;
}

.status-card b {
  font-size: 10px;
}

.status-card p {
  margin: 2px 0 0;
  color: #8490a4;
  font-size: 8px;
  line-height: 1.5;
}

.permission-note {
  margin: 9px 0 0;
  color: var(--success);
  font-size: 9px;
  font-weight: 750;
}

.publishing-panel {
  display: grid;
  gap: 12px;
}

.publishing-panel > h2 {
  margin-bottom: 0;
}

.publish-method {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.publish-method--schedule {
  background: #f5f7ff;
  border-color: #d9e1f8;
}

.publish-method__heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.publish-method__heading b {
  color: var(--navy);
  font-size: 11px;
}

.publish-method__badge {
  padding: 4px 7px;
  color: #486078;
  background: #e7edf4;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .04em;
}

.publish-method__badge--schedule {
  color: #3159c5;
  background: #e5ebff;
}

.publish-method > p,
.schedule-fields > p {
  margin: 8px 0 0;
  color: #68758d;
  font-size: 9px;
  line-height: 1.6;
}

.publish-method .button,
.schedule-fields input[type="datetime-local"] {
  min-height: 44px;
}

.button--schedule {
  color: white;
  background: #3159c5;
  box-shadow: 0 8px 20px rgba(49, 89, 197, .16);
}

.button--schedule:hover {
  background: #274aa7;
}

.schedule-status {
  display: grid;
  margin-top: 12px;
  padding: 12px;
  gap: 3px;
  background: white;
  border: 1px solid #bdcbee;
  border-radius: 8px;
}

.schedule-status > span {
  color: var(--success);
  font-size: 8px;
  font-weight: 850;
}

.schedule-status strong {
  color: var(--navy);
  font-size: 11px;
}

.schedule-status small {
  color: #68758d;
  font-size: 9px;
}

.schedule-status small b {
  color: #3159c5;
}

.schedule-cancel-form {
  margin: 0;
}

.schedule-fields {
  margin-top: 12px;
  padding-top: 1px;
  border-top: 1px solid #d9e1f8;
}

.schedule-fields > small {
  display: block;
  margin-top: 6px;
  color: #68758d;
  font-size: 9px;
}

.schedule-fields > small b {
  color: #41516c;
}

.publish-method__permission {
  color: #8c5d22 !important;
  font-weight: 750;
}

.seo-score {
  display: flex;
  padding: 10px;
  align-items: center;
  gap: 10px;
  background: #edf8f2;
  border-radius: 8px;
}

.seo-score b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--success);
  background: white;
  border-radius: 50%;
}

.seo-score span {
  color: #52705f;
  font-size: 9px;
}

.seo-checklist {
  display: grid;
  margin: 12px 0 18px;
  padding: 0;
  gap: 7px;
  list-style: none;
}

.seo-checklist__item {
  display: grid;
  padding: 8px 9px;
  grid-template-columns: 20px 1fr;
  gap: 7px;
  color: #6e541e;
  background: #fff8e6;
  border-radius: 8px;
}

.seo-checklist__item > span:first-child {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  background: rgba(255, 255, 255, .8);
  border-radius: 50%;
}

.seo-checklist__item > span:last-child {
  display: grid;
  gap: 2px;
}

.seo-checklist__item strong {
  font-size: 10px;
}

.seo-checklist__item small {
  color: inherit;
  font-size: 9px;
  line-height: 1.45;
}

.seo-checklist__item.is-passed {
  color: #316147;
  background: #edf8f2;
}

.seo-checklist__item.is-blocker {
  color: #9a3412;
  background: #fff1ed;
}

@media (max-width: 1040px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 40px;
  }

  .editor-app {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .admin-menu-button {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    flex: none;
    place-items: center;
    color: var(--navy);
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 18px;
  }

  .admin-sidebar {
    position: fixed;
    z-index: 70;
    top: 64px;
    bottom: 0;
    left: 0;
    display: block;
    width: min(250px, 86vw);
    box-shadow: 18px 0 40px rgba(9, 18, 38, .2);
    transform: translateX(-105%);
    transition: transform .2s ease;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-sidebar__close {
    position: absolute;
    top: 11px;
    right: 11px;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    color: #d7dfed;
    background: #1c2b49;
    border: 0;
    border-radius: 7px;
    font-size: 20px;
  }

  .admin-drawer-scrim {
    position: fixed;
    z-index: 60;
    inset: 64px 0 0;
    width: 100%;
    padding: 0;
    background: rgba(10, 18, 34, .46);
    border: 0;
  }

  .admin-drawer-scrim.is-open {
    display: block;
  }
}

@media (max-width: 760px) {
  .shell,
  .article-shell,
  .article-layout {
    width: min(100% - 30px, 100%);
  }

  .announcement a {
    display: none;
  }

  .site-header__inner {
    min-height: 62px;
    gap: 10px;
  }

  .main-nav {
    position: absolute;
    top: 62px;
    right: 0;
    left: 0;
    display: none;
    padding: 10px 15px 18px;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

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

  .header-actions .button {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero__inner {
    min-height: auto;
    padding: 65px 0;
    grid-template-columns: 1fr;
  }

  .hero__visual {
    display: none;
  }

  .hero h1 {
    font-size: 43px;
  }

  .search-box {
    min-height: 56px;
  }

  .category-section,
  .post-section {
    padding: 65px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .section-heading > p {
    margin: 0;
  }

  .category-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 130px;
  }

  .footer__inner,
  .footer__legal {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__inner nav {
    flex-direction: column;
    gap: 9px;
  }

  .footer__legal {
    padding: 20px 0;
    justify-content: center;
  }

  .article-hero {
    padding: 50px 0;
  }

  .article-layout {
    display: block;
    padding: 50px 0 70px;
  }

  .article-aside {
    margin-top: 45px;
  }

  .service-card {
    position: static;
  }

  .editor-app {
    display: block;
    height: auto;
    min-height: 100vh;
  }

  .admin-body {
    overflow: auto;
  }

  .admin-body.admin-drawer-open {
    overflow: hidden;
  }

  .editor-topbar {
    position: sticky;
    top: 0;
    min-height: 62px;
  }

  .brand--editor span,
  .editor-topbar__brand > i,
  .editor-topbar__brand > span {
    display: none;
  }

  .brand--editor img {
    width: 78px;
  }

  .editor-actions {
    position: fixed;
    z-index: 80;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 62px;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    justify-content: flex-start;
    overflow-x: auto;
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px rgba(15, 29, 55, .12);
  }

  .editor-actions .button,
  .editor-actions .profile-button {
    min-height: 44px;
    flex: none;
  }

  .admin-sidebar {
    top: 62px;
  }

  .admin-drawer-scrim {
    inset: 62px 0 0;
  }

  .editor-actions .button--primary {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 11px;
  }

  .profile-button {
    width: 34px;
    height: 34px;
  }

  .editor-main {
    overflow: visible;
  }

  .editor-toolbar {
    position: sticky;
    z-index: 15;
    top: 62px;
    min-height: 58px;
    padding: 7px 10px;
  }

  .editor-toolbar select,
  .editor-toolbar button {
    min-height: 44px;
    padding-inline: 12px;
  }

  .editor-scroll {
    padding: 15px 10px 90px;
    overflow: visible;
  }

  .editor-paper {
    min-height: 780px;
    padding: 38px 25px 60px;
  }

  .editor-paper h1 {
    font-size: 30px;
  }

  .editor-settings {
    padding-bottom: 76px;
    overflow: visible;
    border-top: 1px solid var(--line);
  }
}

/* Admin content management */
.admin-management-body {
  min-width: 320px;
  overflow: auto;
  background: #f4f6fa;
}

.admin-app {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-rows: 64px minmax(0, 1fr);
}

.admin-topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  min-width: 0;
  padding: 0 20px 0 14px;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  grid-column: 1 / -1;
}

.admin-topbar .editor-topbar__brand > span {
  min-width: 0;
}

.admin-topbar__actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-topbar__actions .profile-button {
  width: 44px;
  height: 44px;
}

.admin-management-body .admin-sidebar nav a {
  min-height: 44px;
}

.admin-topbar__actions form,
.admin-page__heading form,
.admin-row-actions form,
.category-admin-row__actions form {
  display: inline-flex;
  margin: 0;
}

.admin-page {
  min-width: 0;
  overflow: auto;
}

.admin-page__inner {
  width: min(1420px, calc(100% - 56px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.admin-page__heading {
  display: flex;
  margin-bottom: 30px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.admin-page__heading .eyebrow {
  margin-bottom: 6px;
}

.admin-page__heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: -.045em;
}

.admin-page__heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-page__heading .button {
  min-height: 44px;
  white-space: nowrap;
}

.admin-flash {
  display: flex;
  min-height: 48px;
  margin: -10px 0 22px;
  padding: 11px 15px;
  align-items: center;
  gap: 10px;
  color: #12663d;
  background: #ecf9f1;
  border: 1px solid #bde3cd;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.admin-flash > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: none;
  place-items: center;
  color: white;
  background: var(--success);
  border-radius: 50%;
  font-size: 12px;
}

.admin-flash p {
  margin: 0;
}

.admin-flash--error {
  color: #942329;
  background: #fff2f2;
  border-color: #f0bdc0;
}

.admin-flash--error > span {
  background: #c93c44;
}

.admin-filter-panel {
  display: grid;
  margin-bottom: 24px;
  padding: 18px;
  align-items: end;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(25, 42, 78, .045);
  grid-template-columns: minmax(230px, 1.8fr) repeat(5, minmax(112px, .72fr)) auto auto;
}

.admin-search-field label,
.admin-filter-field label,
.category-create-card label:not(.admin-switch),
.category-inline-form__field label {
  display: block;
  margin: 0 0 6px;
  color: #5d6a81;
  font-size: 11px;
  font-weight: 750;
}

.admin-search-field > div {
  position: relative;
}

.admin-search-field > div > span {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #7d899e;
  font-size: 18px;
  transform: translateY(-52%);
}

.admin-search-field input,
.admin-filter-field select {
  width: 100%;
  min-height: 44px;
  background: white;
  border: 1px solid #d8deea;
  border-radius: 9px;
  font-size: 13px;
}

.admin-search-field input {
  padding: 0 14px 0 42px;
}

.admin-filter-field select {
  padding: 0 34px 0 12px;
}

.admin-filter-help {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.admin-filter-panel .button {
  min-height: 44px;
}

.admin-filter-reset {
  padding-inline: 13px;
}

.admin-list-section,
.category-list-section,
.category-create-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(25, 42, 78, .055);
}

.admin-list-section {
  overflow: hidden;
}

.admin-list-section__heading {
  display: flex;
  min-height: 76px;
  padding: 18px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.admin-list-section__heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
}

.admin-list-section__heading p {
  margin: 3px 0 0;
  color: #758198;
  font-size: 12px;
}

.admin-list-section__heading p b {
  color: var(--blue);
}

.admin-list-section__page {
  color: #8390a5;
  font-size: 12px;
}

.admin-list-section__page b {
  color: var(--navy);
}

.admin-empty-state {
  display: flex;
  min-height: 330px;
  padding: 50px 20px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.admin-empty-state > span {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 16px;
  font-size: 28px;
}

.admin-empty-state h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
}

.admin-empty-state p {
  margin: 6px 0 18px;
  color: #7c889d;
  font-size: 13px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-post-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}

.admin-post-table th {
  padding: 11px 14px;
  color: #79859a;
  background: #fafbfe;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  text-align: left;
  text-transform: uppercase;
}

.admin-post-table th:first-child,
.admin-post-table td:first-child {
  padding-left: 22px;
}

.admin-post-table th:last-child,
.admin-post-table td:last-child {
  padding-right: 22px;
}

.admin-post-table td {
  padding: 15px 14px;
  vertical-align: middle;
  border-bottom: 1px solid #edf0f5;
  font-size: 12px;
}

.admin-post-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-post-table tbody tr {
  transition: background .15s ease;
}

.admin-post-table tbody tr:hover {
  background: #fbfcff;
}

.admin-post-table tbody tr.is-archived {
  background: #f8f9fb;
}

.admin-post-table tbody tr.is-archived .admin-post-cell__copy {
  opacity: .72;
}

.admin-access-create {
  display: grid;
  margin-bottom: 22px;
  padding: 24px;
  grid-template-columns: minmax(220px, .8fr) minmax(300px, 1.2fr);
  gap: 30px;
}

.admin-access-create h2 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
}

.admin-access-create p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-access-create form {
  display: grid;
  gap: 9px;
}

.admin-access-create label {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.admin-access-create input {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.admin-access-create .button {
  justify-self: start;
  margin-top: 5px;
}

.admin-access-create form small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.admin-access-actions {
  display: grid;
  min-width: 280px;
  gap: 8px;
}

.admin-access-name-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-access-name-form input {
  min-width: 150px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-access-name-form .button {
  flex: 0 0 auto;
}

.admin-access-table td:first-child {
  min-width: 230px;
}

.admin-access-table td:first-child b,
.admin-access-table td:first-child small {
  display: block;
}

.admin-access-table td:first-child small {
  margin-top: 3px;
  color: var(--muted);
}

.admin-post-cell {
  min-width: 380px;
}

.admin-post-cell__layout {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-post-cell__cover {
  display: grid;
  width: 92px;
  height: 64px;
  flex: none;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 75% 25%, rgba(67, 111, 224, .2), transparent 42%),
    #f0f4ff;
  border: 1px solid #e0e6f4;
  border-radius: 9px;
}

.admin-post-cell__cover img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.admin-post-cell__cover img[src$="cello-icon.png"] {
  object-fit: contain;
  opacity: .76;
}

.admin-post-cell__copy {
  min-width: 0;
}

.admin-post-cell__copy a {
  display: block;
  max-width: 460px;
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-post-cell__copy a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-post-cell__copy p {
  max-width: 460px;
  margin: 4px 0 0;
  overflow: hidden;
  color: #8490a4;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-category-chip {
  display: inline-flex;
  padding: 5px 8px;
  color: #42516b;
  background: #f3f5f9;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.admin-author i {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: white;
  background: #72829e;
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.admin-status-stack {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.admin-status-stack small {
  color: #8793a6;
  font-size: 9px;
}

.admin-status-badge {
  display: inline-flex;
  min-height: 24px;
  padding: 3px 8px;
  align-items: center;
  color: #5f6b80;
  background: #eef1f5;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.admin-status-badge--published {
  color: #12663d;
  background: #e8f7ef;
}

.admin-status-badge--draft {
  color: #4d5d76;
  background: #edf0f5;
}

.admin-status-badge--scheduled {
  color: #765815;
  background: #fff5d9;
}

.admin-status-badge--hidden {
  color: #6f5b80;
  background: #f2edf7;
}

.admin-post-table time {
  color: #66738a;
  font-size: 10px;
  white-space: nowrap;
}

.admin-row-actions {
  min-width: 184px;
  text-align: right;
  white-space: nowrap;
}

.admin-row-actions form {
  margin-left: 8px;
}

.admin-text-action {
  min-height: 44px;
  padding: 0 2px;
  color: #52627b;
  background: none;
  border: 0;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

a.admin-text-action {
  display: inline-flex;
  align-items: center;
}

.admin-text-action:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-text-action--danger {
  color: #b3343b;
}

.admin-text-action--danger:hover {
  color: #951f25;
}

.admin-pagination {
  display: flex;
  min-height: 72px;
  padding: 14px 22px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.admin-pagination__controls {
  display: flex;
  gap: 8px;
}

.admin-pagination__pages {
  display: flex;
  margin: 0 4px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.admin-pagination__pages li {
  display: flex;
}

.admin-pagination__button {
  display: inline-flex;
  min-width: 70px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  color: #506078;
  background: white;
  border: 1px solid #dce1ea;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 750;
}

.admin-pagination__button:hover,
.admin-pagination__page:hover {
  color: var(--blue);
  border-color: #b9c8ef;
}

.admin-pagination__button.is-disabled {
  cursor: default;
  pointer-events: none;
  opacity: .42;
}

.admin-pagination__page,
.admin-pagination__ellipsis {
  display: inline-flex;
  width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #506078;
  font-size: 12px;
  font-weight: 750;
}

.admin-pagination__page {
  background: white;
  border: 1px solid #dce1ea;
}

.admin-pagination__page.is-current {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.admin-pagination__ellipsis {
  color: #9ba5b4;
}

.category-admin-layout {
  display: grid;
  align-items: start;
  gap: 22px;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
}

.category-create-card {
  position: sticky;
  top: 88px;
  padding: 22px;
}

.category-create-card__heading {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
  gap: 11px;
}

.category-create-card__heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 9px;
  font-size: 20px;
}

.category-create-card h2 {
  margin: 1px 0 0;
  color: var(--navy);
  font-size: 16px;
}

.category-create-card__heading p {
  margin: 3px 0 0;
  color: #7d899d;
  font-size: 11px;
}

.category-create-card fieldset,
.category-inline-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.category-create-card fieldset[disabled],
.category-inline-form fieldset[disabled] {
  opacity: .65;
}

.category-create-card input:not([type="checkbox"]),
.category-create-card textarea,
.category-inline-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  background: white;
  border: 1px solid #d8deea;
  border-radius: 8px;
  font-size: 12px;
}

.category-create-card textarea {
  min-height: 90px;
  resize: vertical;
}

.category-create-card label:not(:first-of-type):not(.admin-switch) {
  margin-top: 15px;
}

.category-create-card label b {
  color: #c23a42;
}

.category-create-card > form small,
.category-slug-field + small {
  display: block;
  margin-top: 5px;
  color: #8490a4;
  font-size: 9px;
}

.category-slug-field {
  display: flex;
  min-height: 44px;
  align-items: stretch;
  overflow: hidden;
  background: #f6f8fb;
  border: 1px solid #d8deea;
  border-radius: 8px;
}

.category-slug-field > span {
  display: inline-flex;
  padding: 0 8px;
  align-items: center;
  color: #8a95a7;
  border-right: 1px solid #e1e5ed;
  font-size: 9px;
  white-space: nowrap;
}

.category-slug-field input {
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
}

.admin-switch {
  display: flex;
  min-height: 52px;
  margin-top: 16px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.admin-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.admin-switch > span:first-of-type {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
  background: #c6ccd7;
  border-radius: 999px;
  transition: background .15s ease;
}

.admin-switch > span:first-of-type::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  content: "";
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(17, 28, 52, .2);
  transition: transform .15s ease;
}

.admin-switch input:checked + span {
  background: var(--blue);
}

.admin-switch input:checked + span::after {
  transform: translateX(16px);
}

.admin-switch input:focus-visible + span {
  outline: 3px solid rgba(67, 111, 224, .42);
  outline-offset: 3px;
}

.admin-switch > span:last-child {
  display: flex;
  flex-direction: column;
}

.admin-switch b {
  color: #3f4d64;
  font-size: 11px;
}

.admin-switch small {
  color: #8792a5;
  font-size: 9px;
}

.admin-permission-note {
  margin: 14px 0 0;
  padding: 10px;
  color: #725719;
  background: #fff7df;
  border-radius: 8px;
  font-size: 10px;
}

.category-list-section {
  min-width: 0;
  overflow: hidden;
}

.category-admin-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-admin-list > li {
  display: grid;
  padding: 18px 20px;
  align-items: end;
  gap: 10px 14px;
  border-bottom: 1px solid #edf0f5;
  grid-template-columns: 62px minmax(0, 1fr) auto;
}

.category-admin-list > li:last-child {
  border-bottom: 0;
}

.category-admin-list > li.is-inactive {
  background: #fafbfc;
}

.category-admin-row__status {
  display: flex;
  align-items: center;
  align-self: start;
  flex-direction: column;
  gap: 7px;
}

.category-order {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #6d7990;
  background: #f1f4f8;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 850;
}

.category-inline-form {
  min-width: 0;
}

.category-inline-form fieldset {
  display: grid;
  align-items: end;
  gap: 10px;
  grid-template-columns: minmax(120px, .7fr) minmax(180px, 1fr) minmax(170px, 1.2fr) 70px auto auto;
}

.category-inline-form__field {
  min-width: 0;
}

.category-inline-form__field input {
  min-width: 0;
}

.category-inline-form__field--order input {
  text-align: center;
}

.admin-switch--compact {
  min-width: 58px;
  min-height: 44px;
  margin: 0;
}

.admin-switch--compact > span:last-child {
  display: none;
}

.category-save-button {
  min-height: 44px;
  padding-inline: 12px;
  white-space: nowrap;
}

.category-admin-row__meta {
  display: flex;
  min-width: 0;
  padding-left: 72px;
  align-items: center;
  gap: 12px;
  color: #8893a6;
  font-size: 9px;
  grid-column: 1 / 3;
}

.category-admin-row__meta span:not(:last-child)::after {
  margin-left: 12px;
  color: #d4d9e1;
  content: "·";
}

.category-admin-row__meta b {
  color: #5b6880;
}

.category-admin-row__actions {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  grid-column: 3;
  grid-row: 1;
}

.category-delete-note {
  margin: 0;
  padding: 8px 10px;
  color: #79601f;
  background: #fff8e6;
  border-radius: 7px;
  font-size: 9px;
  grid-column: 2 / 4;
}

.category-delete-note span {
  margin-right: 4px;
}

@media (max-width: 1280px) {
  .admin-filter-panel {
    grid-template-columns: minmax(230px, 1.5fr) repeat(3, minmax(120px, 1fr));
  }

  .admin-filter-reset {
    grid-column: auto;
  }

  .category-admin-layout {
    grid-template-columns: 290px minmax(0, 1fr);
  }

  .category-inline-form fieldset {
    grid-template-columns: repeat(2, minmax(150px, 1fr)) 70px auto auto;
  }

  .category-inline-form__field--description {
    grid-column: 1 / 3;
    grid-row: 2;
  }
}

@media (max-width: 1040px) {
  .admin-app {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page__inner {
    width: min(100% - 40px, 100%);
  }

  .admin-management-body .admin-menu-button,
  .admin-management-body .admin-sidebar__close {
    width: 44px;
    height: 44px;
  }

  .admin-filter-panel {
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(120px, 1fr));
  }

  .admin-filter-panel .button {
    grid-column: auto;
  }

  .admin-filter-reset {
    grid-column: auto;
  }

  .category-admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-create-card {
    position: static;
  }

  .category-create-card form fieldset {
    display: grid;
    align-items: end;
    gap: 0 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-create-card .category-create-card__heading,
  .category-create-card .admin-switch,
  .category-create-card .button,
  .category-create-card form fieldset > small {
    grid-column: 1 / -1;
  }

  .category-create-card textarea {
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  .admin-app {
    display: block;
  }

  .admin-topbar {
    min-height: 62px;
    padding: 0 12px;
  }

  .admin-topbar .brand--editor span,
  .admin-topbar .editor-topbar__brand > i,
  .admin-topbar .editor-topbar__brand > span {
    display: none;
  }

  .admin-topbar__actions .button {
    display: none;
  }

  .admin-page__inner {
    width: min(100% - 24px, 100%);
    padding: 30px 0 56px;
  }

  .admin-page__heading {
    margin-bottom: 22px;
    align-items: stretch;
    flex-direction: column;
    gap: 17px;
  }

  .admin-page__heading h1 {
    font-size: 32px;
  }

  .admin-page__heading form,
  .admin-page__heading .button {
    width: 100%;
  }

  .admin-filter-panel {
    padding: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-search-field {
    grid-column: 1 / -1;
  }

  .admin-filter-field:first-of-type {
    grid-column: 1 / -1;
  }

  .admin-filter-field--taxonomy {
    grid-column: 1 / -1;
  }

  .admin-filter-panel .button {
    min-height: 44px;
  }

  .admin-list-section__heading {
    min-height: 72px;
    padding: 16px;
  }

  .admin-list-section__page {
    display: none;
  }

  .admin-table-wrap {
    padding: 12px;
    overflow: visible;
    background: #f4f6fa;
  }

  .admin-post-table,
  .admin-post-table tbody {
    display: block;
  }

  .admin-post-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .admin-post-table tbody tr {
    display: grid;
    margin-bottom: 12px;
    padding: 15px;
    gap: 11px 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 7px 20px rgba(25, 42, 78, .045);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-post-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .admin-post-table td,
  .admin-post-table th:first-child,
  .admin-post-table td:first-child,
  .admin-post-table th:last-child,
  .admin-post-table td:last-child {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .admin-post-table td:not(.admin-post-cell):not(.admin-row-actions)::before {
    display: block;
    margin-bottom: 4px;
    color: #8a95a8;
    content: attr(data-label);
    font-size: 9px;
    font-weight: 800;
  }

  .admin-post-cell {
    grid-column: 1 / -1;
  }

  .admin-post-cell__cover {
    width: 82px;
    height: 60px;
  }

  .admin-post-cell__copy a,
  .admin-post-cell__copy p {
    max-width: 100%;
  }

  .admin-post-table td[data-label="작성자"] {
    display: none !important;
  }

  .admin-row-actions {
    display: flex !important;
    min-height: 44px;
    padding-top: 10px !important;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--line) !important;
    grid-column: 1 / -1;
  }

  .admin-row-actions form {
    margin: 0;
  }

  .admin-text-action {
    min-height: 44px;
    font-size: 11px;
  }

  .admin-pagination {
    min-height: 68px;
    padding-inline: 14px;
    gap: 10px;
  }

  .admin-pagination__pages {
    width: 100%;
    margin: 0;
    order: -1;
  }

  .admin-pagination__controls {
    flex: 1;
  }

  .admin-pagination__button {
    min-height: 44px;
    flex: 1;
  }

  .category-admin-layout {
    gap: 16px;
  }

  .category-create-card {
    padding: 18px;
  }

  .admin-access-create {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .admin-access-create .button {
    width: 100%;
  }

  .admin-access-actions,
  .admin-access-name-form {
    min-width: 0;
  }

  .admin-access-name-form {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-access-name-form input,
  .admin-access-name-form .button {
    width: 100%;
  }

  .category-create-card form fieldset {
    display: block;
  }

  .category-create-card textarea {
    min-height: 90px;
  }

  .category-admin-list {
    padding: 12px;
    background: #f4f6fa;
  }

  .category-admin-list > li {
    display: block;
    margin-bottom: 12px;
    padding: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .category-admin-list > li:last-child {
    margin-bottom: 0;
  }

  .category-admin-row__status {
    margin-bottom: 13px;
    align-items: center;
    flex-direction: row;
  }

  .category-inline-form fieldset {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 74px;
  }

  .category-inline-form__field--name,
  .category-inline-form__field--slug,
  .category-inline-form__field--description {
    grid-column: 1 / -1;
  }

  .category-inline-form__field--description {
    grid-row: auto;
  }

  .category-inline-form__field--order {
    grid-column: 1;
  }

  .admin-switch--compact {
    grid-column: 2;
  }

  .category-save-button {
    width: 100%;
    grid-column: 1 / -1;
  }

  .category-admin-row__meta {
    margin-top: 13px;
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--line);
  }

  .category-admin-row__meta span:not(:last-child)::after {
    display: none;
  }

  .category-admin-row__actions {
    min-height: 44px;
    margin-top: 2px;
    justify-content: flex-start;
    gap: 16px;
  }

  .category-delete-note {
    margin-top: 4px;
    line-height: 1.55;
  }
}

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

.taxonomy-explorer {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(25, 42, 78, .06);
}

.collection-tabs {
  display: grid;
  padding: 12px;
  gap: 8px;
  background: #f6f8fc;
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.collection-tab {
  display: grid;
  min-width: 0;
  min-height: 72px;
  padding: 12px;
  align-items: center;
  color: #5f6c82;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 13px;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  transition: color .18s ease, background .18s ease, border-color .18s ease,
    box-shadow .18s ease;
}

.collection-tab > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--blue);
  background: #e8eeff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  grid-row: 1 / 3;
}

.collection-tab b {
  overflow: hidden;
  align-self: end;
  color: inherit;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-tab small {
  align-self: start;
  color: #8a95a8;
  font-size: 12px;
}

.collection-tab:hover,
.collection-tab.is-active,
.collection-tab[aria-selected="true"] {
  color: var(--navy);
  background: #fff;
  border-color: #d8e0f2;
  box-shadow: 0 8px 20px rgba(32, 57, 113, .08);
}

.collection-tab:focus-visible {
  outline: 3px solid rgba(67, 111, 224, .36);
  outline-offset: 2px;
}

.collection-panel {
  padding: 28px;
  scroll-margin-top: 92px;
}

.taxonomy-explorer:not(.is-enhanced) .collection-panel + .collection-panel {
  border-top: 1px solid var(--line);
}

.collection-panel:focus-visible {
  outline: 3px solid rgba(67, 111, 224, .24);
  outline-offset: -3px;
}

.collection-panel__heading {
  display: flex;
  min-height: 74px;
  margin-bottom: 22px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.collection-panel__heading h3 {
  margin: 2px 0 3px;
  color: var(--navy);
  font-size: 23px;
  letter-spacing: -.03em;
}

.collection-panel__heading p:last-child {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.collection-all-link {
  display: inline-flex;
  min-height: 42px;
  padding: 0 14px;
  flex: none;
  align-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 850;
  gap: 8px;
}

.collection-all-link:hover {
  background: #e2eaff;
}

.collection-panel .category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.collection-panel .category-card {
  min-height: 154px;
}

.taxonomy-empty {
  padding: 30px;
  color: var(--muted);
  background: #f8f9fc;
  border: 1px dashed #d8deea;
  border-radius: 14px;
  text-align: center;
}

.taxonomy-empty p {
  margin: 0;
  font-size: 12px;
}

.taxonomy-empty a {
  display: inline-block;
  margin-top: 9px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.taxonomy-empty--standalone {
  background: #fff;
}

@media (max-width: 1040px) {
  .collection-panel .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .taxonomy-explorer {
    overflow: visible;
    border-radius: 16px;
  }

  .collection-tabs {
    display: flex;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x proximity;
  }

  .collection-tab {
    min-width: 172px;
    scroll-snap-align: start;
  }

  .collection-panel {
    padding: 20px 14px 16px;
  }

  .collection-panel__heading {
    min-height: 0;
    margin-bottom: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .collection-panel__heading h3 {
    font-size: 21px;
  }

  .collection-all-link {
    width: 100%;
    justify-content: center;
  }

  .collection-panel .category-grid {
    grid-template-columns: 1fr;
  }

  .collection-panel .category-card {
    min-height: 126px;
  }
}

.taxonomy-admin-layout {
  display: grid;
  align-items: start;
  gap: 22px;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
}

.taxonomy-create-stack {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
}

.taxonomy-create-stack .category-create-card {
  position: static;
}

.taxonomy-level-label {
  margin: 0 0 2px !important;
  color: var(--blue) !important;
  font-size: 9px !important;
  font-weight: 900;
  letter-spacing: .08em;
}

.category-create-card select,
.category-inline-form select,
.taxonomy-collection-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  color: #344158;
  background: #fff;
  border: 1px solid #d8deea;
  border-radius: 8px;
  font-size: 12px;
}

.category-create-card select {
  margin-bottom: 0;
}

.taxonomy-list-section {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(25, 42, 78, .055);
}

.taxonomy-admin-groups {
  margin: 0;
  padding: 0;
  list-style: none;
}

.taxonomy-admin-groups > li {
  border-bottom: 1px solid #e6eaf1;
}

.taxonomy-admin-groups > li:last-child {
  border-bottom: 0;
}

.taxonomy-admin-groups > li.is-inactive {
  background: #fbfcfe;
}

.taxonomy-collection-row {
  display: grid;
  padding: 20px 22px;
  align-items: end;
  gap: 10px 14px;
  grid-template-columns: 76px minmax(0, 1fr) auto;
}

.taxonomy-collection-row__status {
  display: flex;
  align-self: start;
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
}

.taxonomy-kind-badge {
  display: inline-flex;
  min-height: 25px;
  padding: 0 8px;
  align-items: center;
  color: #344f93;
  background: #e8eeff;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 900;
}

.taxonomy-collection-form {
  min-width: 0;
}

.taxonomy-collection-form fieldset {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 0;
  align-items: end;
  gap: 10px;
  border: 0;
  grid-template-columns:
    minmax(120px, .8fr)
    minmax(160px, 1fr)
    minmax(150px, 1.1fr)
    70px
    auto
    auto;
}

.taxonomy-collection-form fieldset > div {
  min-width: 0;
}

.taxonomy-collection-form label:not(.admin-switch) {
  display: block;
  margin: 0 0 6px;
  color: #5d6a81;
  font-size: 11px;
  font-weight: 750;
}

.taxonomy-order-field input {
  text-align: center;
}

.taxonomy-save-button {
  min-height: 44px;
  padding-inline: 12px;
  white-space: nowrap;
}

.taxonomy-collection-row__meta {
  display: flex;
  min-width: 0;
  padding-left: 90px;
  align-items: center;
  gap: 12px;
  color: #8893a6;
  font-size: 9px;
  grid-column: 1 / 3;
}

.taxonomy-collection-row__meta span:not(:last-child)::after {
  margin-left: 12px;
  color: #d4d9e1;
  content: "·";
}

.taxonomy-collection-row__meta b {
  color: #5b6880;
}

.taxonomy-collection-row > .category-delete-note {
  grid-column: 2 / 4;
}

.taxonomy-children {
  padding: 18px 22px 22px;
  background: #f5f7fb;
  border-top: 1px solid #e7ebf2;
}

.taxonomy-children > header,
.taxonomy-unassigned > header {
  display: flex;
  min-height: 48px;
  margin-bottom: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.taxonomy-children > header h3,
.taxonomy-unassigned > header h2 {
  margin: 1px 0 0;
  color: var(--navy);
  font-size: 14px;
}

.taxonomy-children > header > span,
.taxonomy-unassigned > header > span {
  display: inline-flex;
  min-height: 31px;
  padding: 0 10px;
  align-items: center;
  color: #6d7990;
  background: #fff;
  border: 1px solid #dfe4ed;
  border-radius: 8px;
  font-size: 10px;
}

.taxonomy-child-empty {
  padding: 18px;
  color: #7a879b;
  background: #fff;
  border: 1px dashed #d5dce8;
  border-radius: 10px;
  font-size: 11px;
  text-align: center;
}

.taxonomy-child-list {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e5ed;
  border-radius: 11px;
}

.taxonomy-child-list .category-inline-form fieldset {
  grid-template-columns:
    minmax(135px, .8fr)
    minmax(130px, .8fr)
    minmax(160px, 1fr)
    70px
    auto
    auto;
}

.taxonomy-child-list .category-inline-form__field--description {
  grid-column: 1 / 4;
  grid-row: 2;
}

.taxonomy-child-list .category-inline-form__field--order {
  grid-column: 4;
  grid-row: 1;
}

.taxonomy-unassigned {
  padding: 20px 22px 22px;
  background: #fffaf0;
  border-top: 1px solid #efe2bd;
}

.taxonomy-unassigned > header p:last-child {
  margin: 3px 0 0;
  color: #86724a;
  font-size: 10px;
}

@media (max-width: 1280px) {
  .taxonomy-admin-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .taxonomy-collection-form fieldset,
  .taxonomy-child-list .category-inline-form fieldset {
    grid-template-columns: repeat(2, minmax(150px, 1fr)) 70px auto auto;
  }

  .taxonomy-collection-form__description,
  .taxonomy-child-list .category-inline-form__field--description {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .taxonomy-child-list .category-inline-form__field--slug {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .taxonomy-child-list .category-inline-form__field--description {
    grid-column: 1 / 3;
    grid-row: 3;
  }

  .taxonomy-child-list .category-inline-form__field--order {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 1040px) {
  .taxonomy-admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .taxonomy-create-stack {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .taxonomy-create-stack {
    grid-template-columns: 1fr;
  }

  .taxonomy-collection-row {
    display: block;
    padding: 16px;
  }

  .taxonomy-collection-row__status {
    margin-bottom: 13px;
    align-items: center;
    flex-direction: row;
  }

  .taxonomy-collection-form fieldset,
  .taxonomy-child-list .category-inline-form fieldset {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 74px;
  }

  .taxonomy-collection-form fieldset > div,
  .taxonomy-collection-form__description,
  .taxonomy-child-list .category-inline-form__field--parent,
  .taxonomy-child-list .category-inline-form__field--name,
  .taxonomy-child-list .category-inline-form__field--slug,
  .taxonomy-child-list .category-inline-form__field--description {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .taxonomy-order-field,
  .taxonomy-child-list .category-inline-form__field--order {
    grid-column: 1;
    grid-row: auto;
  }

  .taxonomy-collection-form .admin-switch--compact,
  .taxonomy-child-list .admin-switch--compact {
    grid-column: 2;
  }

  .taxonomy-save-button,
  .taxonomy-child-list .category-save-button {
    width: 100%;
    grid-column: 1 / -1;
  }

  .taxonomy-collection-row__meta {
    margin-top: 13px;
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--line);
  }

  .taxonomy-collection-row__meta span:not(:last-child)::after {
    display: none;
  }

  .taxonomy-collection-row > .category-admin-row__actions {
    margin-top: 4px;
    justify-content: flex-start;
  }

  .taxonomy-children,
  .taxonomy-unassigned {
    padding: 14px;
  }

  .taxonomy-child-list {
    border: 0;
    border-radius: 0;
  }
}
