@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css");

:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --text: #17191c;
  --muted: #667085;
  --line: #d9dee7;
  --line-soft: #e7ebf2;
  --panel: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --accent-ink: #1d4ed8;
  --ink: #111827;
  --danger: #b42318;
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 20px;
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-page {
  background: #f6f8fb;
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  min-height: 72px;
  padding: 0 36px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(12px);
}

.portal-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 780;
}

.portal-brand span {
  color: var(--accent);
}

.portal-brand strong {
  color: var(--ink);
}

.portal-nav {
  justify-content: center;
  gap: 24px;
  color: #394150;
  font-size: 14px;
  font-weight: 560;
}

.portal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.portal-user {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: right;
}

.portal-user strong {
  max-width: 140px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 640;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-user span {
  max-width: 140px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 28px;
}

.portal-hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  padding: 58px 54px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 70px rgba(30, 64, 175, 0.1);
}

.portal-hero-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 34%, rgba(255, 255, 255, 0.26) 62%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.portal-hero-bg {
  position: absolute;
  inset: -1px;
  z-index: 0;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  object-position: center right;
  pointer-events: none;
}

.portal-hero-copy > :not(.portal-hero-bg) {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.portal-hero-copy .eyebrow {
  color: var(--accent);
}

.portal-hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(38px, 4.1vw, 50px);
  font-weight: 720;
  line-height: 1.13;
  word-break: keep-all;
}

.portal-hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 20px 0 0;
  color: #48505e;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
  width: min(560px, 100%);
  margin-top: 28px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 36px rgba(30, 64, 175, 0.1);
}

.search-box input {
  border: 0;
  padding: 0 14px;
}

.search-box button {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 650;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button.ghost {
  border-color: rgba(17, 24, 39, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 620;
}

.hero-rank,
.side-panel,
.join-panel {
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 8px;
  background: #fff;
}

.hero-rank {
  padding: 22px;
}

.rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #cbd5e1;
}

.rank-head span {
  font-size: 18px;
  font-weight: 720;
}

.rank-head strong {
  color: var(--accent);
}

.hero-rank ol {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.hero-rank li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.hero-rank li:last-child {
  border-bottom: 0;
}

.hero-rank li span {
  color: var(--accent);
  font-size: 17px;
  font-weight: 760;
}

.hero-rank li a {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
}

.section-head.wide {
  align-items: flex-end;
  margin-bottom: 16px;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 14px;
}

.section-head.wide h2,
.section-head.compact h2 {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  font-weight: 680;
}

.section-head.wide > a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 640;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.feature-card {
  display: grid;
  grid-template-rows: 196px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.thumb,
.feed-thumb {
  display: block;
  overflow: hidden;
  background: #e5e7eb;
}

.thumb {
  width: 100%;
  height: 100%;
}

.thumb img,
.feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.feature-card:hover img,
.feed-item:hover img {
  transform: scale(1.035);
}

.feature-card > div {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 16px;
}

.feature-card h3,
.feed-item h3 {
  margin: 9px 0 7px;
  color: var(--ink);
  line-height: 1.38;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 660;
  min-height: 48px;
}

.feature-card h3 a,
.feed-item h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feature-card p,
.feed-item p,
.join-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.feature-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.chip.light {
  background: #eff6ff;
  color: var(--accent-ink);
}

.byline {
  display: inline-block;
  overflow: hidden;
  margin-top: 14px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-card .byline {
  margin-top: auto;
  padding-top: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.topic-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 560;
}

.feed-list {
  display: grid;
  gap: 12px;
}

.feed-item {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.feed-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.side-panel {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.blog-mini-list {
  display: grid;
  gap: 8px;
}

.blog-mini-list a {
  display: grid;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.blog-mini-list span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.blog-mini-list strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 580;
}

.join-panel {
  margin-top: 20px;
  padding: 18px;
  background: #111827;
  color: #fff;
}

.join-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 680;
}

.join-panel p {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.portal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 0;
  padding: 26px 0 40px;
  border-top: 1px solid rgba(17, 24, 39, 0.12);
  color: var(--muted);
  font-size: 14px;
}

.portal-footer span {
  margin-right: auto;
  color: var(--ink);
  font-weight: 680;
}

.admin-page {
  min-height: 100vh;
  background: #eef3f8;
  padding-top: 42px;
  padding-left: 0;
}

.admin-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 14px;
  background: #0879cc;
  color: #fff;
  border-bottom: 1px solid #006fbd;
}

.admin-brand,
.admin-account {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-brand {
  font-size: 15px;
  font-weight: 700;
}

.admin-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1;
}

.admin-account {
  font-size: 12px;
}

.admin-account span {
  opacity: 0.84;
}

.admin-account form {
  margin: 0;
}

.admin-account button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.admin-console {
  display: grid;
  grid-template-columns: 176px 252px minmax(0, 1fr);
  min-height: calc(100vh - 42px);
}

.admin-sidebar {
  position: sticky;
  top: 42px;
  z-index: 20;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: calc(100vh - 42px);
  padding: 0;
  background: #fff;
  border-right: 1px solid #cfd9e6;
}

.admin-sidebar-title {
  height: 38px;
  padding: 11px 10px 0;
  border-bottom: 1px solid #d5deea;
  color: #334155;
  font-size: 11px;
  text-transform: uppercase;
}

.admin-menu {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-menu a {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 2px;
  padding: 10px 10px;
  border-radius: 0;
  color: #24415f;
}

.admin-menu a.active {
  background: #e8f3ff;
  color: #0b74c9;
}

.admin-menu a.active::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #0b7ed8;
}

.admin-menu-icon {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b7ed8;
  font-size: 16px;
}

.admin-menu span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-menu small {
  grid-column: 2;
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #d5deea;
}

.admin-sidebar-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  border-right: 1px solid #d5deea;
  background: #0879cc;
  color: #fff;
  font-size: 12px;
}

.admin-sidebar-footer a:last-child {
  border-right: 0;
}

.admin-list-panel {
  min-height: calc(100vh - 42px);
  background: #f8fafc;
  border-right: 1px solid #cfd9e6;
}

.admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 10px;
  border-bottom: 1px solid #d5deea;
  background: #fff;
}

.admin-list-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.admin-list-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #0879cc;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.admin-thread-list {
  display: grid;
}

.admin-thread-item {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border-bottom: 1px solid #e3e9f1;
  color: #334155;
}

.admin-thread-item:hover,
.admin-thread-item:first-child {
  background: #e8f3ff;
}

.admin-thread-item strong,
.admin-thread-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-thread-item strong {
  font-size: 13px;
  font-weight: 600;
}

.admin-thread-item span,
.admin-thread-item time {
  color: #64748b;
  font-size: 11px;
}

.admin-thread-empty {
  padding: 18px 10px;
  color: #64748b;
  font-size: 13px;
}

.admin-workspace {
  min-width: 0;
  background: #eef3f8;
}

.admin-workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid #d5deea;
  background: #fff;
}

.admin-workspace-bar h1 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.admin-workspace-bar span {
  color: #64748b;
  font-size: 12px;
}

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

.admin-workspace-actions a {
  color: #475569;
  font-size: 12px;
}

.admin-workspace-body {
  padding: 12px;
}

.admin-content {
  padding: 0;
  min-height: auto;
}

.admin-content-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-content-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 680;
}

.admin-content-head p:not(.admin-eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-summary-grid article {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.admin-summary-grid span {
  color: var(--muted);
  font-size: 12px;
}

.admin-summary-grid strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-card {
  overflow: hidden;
}

.admin-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-table-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 660;
}

.admin-table-head span {
  color: var(--muted);
  font-size: 12px;
}

.admin-post-list {
  display: grid;
}

.admin-post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-post-row:last-child {
  border-bottom: 0;
}

.admin-post-row strong,
.admin-post-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-post-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 620;
}

.admin-post-row span,
.admin-post-row time {
  color: var(--muted);
  font-size: 12px;
}

.admin-empty {
  padding: 38px 18px;
  text-align: center;
}

.admin-empty strong {
  color: var(--ink);
}

.admin-empty p {
  color: var(--muted);
}

.admin-page {
  min-height: 100vh;
  padding-top: 42px;
  background: #eef3f8;
}

.admin-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 14px;
  background: #0879cc;
  color: #fff;
  border-bottom: 1px solid #006fbd;
}

.admin-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 15px;
}

.admin-title strong,
.admin-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-title strong {
  font-weight: 700;
}

.admin-title span {
  opacity: 0.9;
}

.admin-account {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.admin-account > span {
  color: #fff;
  opacity: 0.92;
}

.admin-account a,
.admin-account button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.admin-account a::before,
.admin-account form::before {
  content: "|";
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.45);
}

.admin-account form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.admin-account button {
  cursor: pointer;
}

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

.admin-layout .admin-sidebar {
  position: sticky;
  top: 42px;
  display: block;
  width: auto;
  height: calc(100vh - 42px);
  padding: 0;
  background: #fff;
  border-right: 1px solid #cfd9e6;
}

.admin-layout .admin-menu {
  display: grid;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-layout .admin-menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 0 15px;
  border-radius: 0;
  color: #24415f;
  font-size: 15px;
  font-weight: 600;
}

.admin-layout .admin-menu a.active {
  background: #e8f3ff;
  color: #0b74c9;
  box-shadow: inset 3px 0 0 #0b7ed8;
}

.admin-layout .admin-menu a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: #0b7ed8;
  font-size: 20px;
}

.admin-layout .admin-content {
  min-width: 0;
  min-height: calc(100vh - 42px);
  padding: 20px;
  background: #f3f7fb;
  box-shadow: none;
}

.admin-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 13px 15px;
  border: 1px solid #d9e5f0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fafdff 100%);
  box-shadow: 0 10px 26px rgba(24, 58, 91, 0.06);
}

.admin-board-title {
  display: flex;
  align-items: center;
  min-width: 0;
}

.admin-board-title > div {
  min-width: 0;
}

.admin-board-head h2 {
  max-width: min(720px, 62vw);
  margin: 0;
  overflow: hidden;
  color: #172b41;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-board-meta {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #7f90a3;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-board-head .button {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 13px;
}

.admin-table-card {
  overflow: hidden;
  border: 1px solid #d9e5f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 58, 91, 0.06);
}

.admin-table-head {
  min-height: 50px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5edf5;
  background: #fbfdff;
}

.admin-table-head h3 {
  color: #22384f;
  font-size: 15px;
  font-weight: 700;
}

.admin-table-head span {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border: 1px solid #dce8f3;
  border-radius: 999px;
  background: #f4f9fe;
  color: #637a92;
  font-size: 11px;
  font-weight: 700;
}

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

.admin-post-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-post-table th,
.admin-post-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #e6edf5;
  text-align: left;
  vertical-align: middle;
}

.admin-post-table th {
  height: 36px;
  background: #f7fafd;
  color: #6a7f95;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.admin-post-table th:nth-child(1),
.admin-post-table td:nth-child(1) {
  width: 72px;
  text-align: center;
}

.admin-post-table th:nth-child(2),
.admin-post-table td:nth-child(2) {
  width: 150px;
}

.admin-post-table th:nth-child(4),
.admin-post-table td:nth-child(4) {
  width: 170px;
}

.admin-post-table th:nth-child(5),
.admin-post-table td:nth-child(5) {
  width: 90px;
  text-align: right;
}

.admin-post-table th:nth-child(6),
.admin-post-table td:nth-child(6) {
  width: 118px;
  text-align: right;
}

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

.admin-post-no,
.admin-post-views,
.admin-post-table time {
  color: #66798d;
  font-size: 13px;
  white-space: nowrap;
}

.admin-post-thumb {
  display: block;
  width: 82px;
  height: 50px;
  border: 1px solid #d9e5f0;
  border-radius: 8px;
  background: #edf4fb;
  object-fit: cover;
}

.admin-post-thumb.empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a9aab;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-post-title {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #172b41;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-post-title:hover {
  color: #0879cc;
}

.admin-post-slug {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: #8a9aab;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-post-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

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

.admin-post-actions a,
.admin-post-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #d8e2ed;
  border-radius: 7px;
  background: #fff;
  color: #445b73;
  font-size: 12px;
  font-weight: 700;
}

.admin-post-actions a:hover {
  border-color: #0879cc;
  color: #0879cc;
}

.admin-post-actions button {
  border-color: #f1c6c0;
  color: #c43c2f;
}

.admin-post-actions button:hover {
  background: #fff4f2;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  background: #fbfdff;
}

.admin-pagination a,
.admin-pagination span,
.admin-pagination strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #d8e2ed;
  border-radius: 8px;
  background: #fff;
  color: #445b73;
  font-size: 11px;
  font-weight: 700;
}

.admin-pagination a:hover {
  border-color: #0879cc;
  color: #0879cc;
}

.admin-pagination span {
  color: #a0adbb;
  background: #f5f8fb;
}

.admin-pagination strong {
  min-width: 70px;
  background: #0879cc;
  border-color: #0879cc;
  color: #fff;
}

.stats-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #d9e5f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 58, 91, 0.06);
}

.stats-filter a,
.stats-filter input {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #d8e2ed;
  border-radius: 8px;
  background: #fff;
  color: #445b73;
  font-size: 12px;
  font-weight: 760;
}

.stats-filter a.active {
  border-color: #0879cc;
  background: #0879cc;
  color: #fff;
}

.stats-date-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stats-filter input[type="date"] {
  width: 138px;
  flex: 0 0 auto;
}

.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.stats-summary article,
.stats-card {
  border: 1px solid #d9e5f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 58, 91, 0.06);
}

.stats-summary article {
  padding: 16px;
}

.stats-summary span {
  display: block;
  color: #718398;
  font-size: 12px;
  font-weight: 760;
}

.stats-summary strong {
  display: block;
  margin-top: 5px;
  color: #172b41;
  font-size: 30px;
  font-weight: 820;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stats-card {
  overflow: hidden;
}

.stats-card h3 {
  margin: 0;
  padding: 13px 15px;
  border-bottom: 1px solid #e5edf5;
  background: #fbfdff;
  color: #172b41;
  font-size: 15px;
  font-weight: 780;
}

.stats-list {
  display: grid;
}

.stats-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  border-bottom: 1px solid #edf3f8;
}

.stats-row:last-child {
  border-bottom: 0;
}

.stats-row strong,
.stats-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-row strong {
  color: #24384f;
  font-size: 13px;
  font-weight: 760;
}

.stats-row span {
  margin-top: 3px;
  color: #8a9aab;
  font-size: 11px;
}

.stats-row em {
  color: #0879cc;
  font-size: 13px;
  font-style: normal;
  font-weight: 820;
}

.stats-empty {
  margin: 0;
  padding: 18px 15px;
  color: #718398;
  font-size: 13px;
}

.admin-editor-card {
  padding: 18px;
  border: 1px solid #d8e2ed;
  background: #fff;
}

.admin-settings-card {
  width: min(980px, 100%);
  padding: 20px;
  border: 1px solid #d9e5f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 58, 91, 0.06);
}

.admin-settings-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e6edf5;
}

.admin-settings-head h3 {
  margin: 0 0 6px;
  color: #172b41;
  font-size: 17px;
  font-weight: 720;
}

.admin-settings-head p {
  margin: 0;
  color: #718398;
  font-size: 13px;
}

.admin-settings-form {
  display: grid;
  gap: 14px;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-settings-grid .wide {
  grid-column: 1 / -1;
}

.admin-write-form {
  display: grid;
  gap: 15px;
}

.admin-write-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
}

.admin-write-form label,
.admin-settings-form label,
.admin-image-field {
  display: grid;
  gap: 7px;
  color: #34495f;
  font-size: 13px;
  font-weight: 700;
}

.admin-write-form input,
.admin-write-form textarea,
.admin-settings-form input,
.admin-settings-form select,
.admin-settings-form textarea {
  width: 100%;
  border: 1px solid #cfd9e6;
  background: #fff;
  color: #172b41;
  font: inherit;
}

.admin-write-form input,
.admin-settings-form input,
.admin-settings-form select {
  height: 42px;
  padding: 0 12px;
}

.admin-settings-form textarea {
  min-height: 104px;
  padding: 12px;
  resize: vertical;
}

.admin-image-picker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 112px;
  overflow: auto;
  border: 1px dashed #b8cbe0;
  border-radius: 12px;
  background: #f7fbff;
  color: #55708c;
  cursor: pointer;
}

.admin-image-picker:hover {
  border-color: #0879cc;
  background: #eef8ff;
}

.admin-image-picker:disabled {
  cursor: progress;
  opacity: 0.72;
}

.admin-image-picker img {
  width: auto;
  max-width: 100%;
  height: 100px;
  object-fit: contain;
}

.admin-image-picker.profile {
  width: 160px;
  min-height: 112px;
}

.admin-image-picker.hero {
  min-height: 112px;
}

.admin-image-picker.pattern {
  min-height: 112px;
}

.admin-image-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #58728d;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.upload-status {
  color: #718398;
  font-size: 12px;
  font-weight: 600;
}

.upload-status.ok {
  color: #047857;
}

.upload-status.bad {
  color: var(--danger);
}

.admin-color-field {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.admin-color-field input[type="color"] {
  width: 52px;
  height: 42px;
  padding: 3px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.mos-page {
  overflow-x: hidden;
}

.mos-layout {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.mos-layout .admin-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow-x: hidden;
}

.mos-sidebar {
  overflow-x: hidden;
}

.mos-settings-card {
  width: min(760px, 100%);
  max-width: 760px;
}

.mos-ajax-form {
  display: grid;
  gap: 16px;
}

.mos-switch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e3ebf3;
  border-radius: 12px;
  background: #fbfdff;
}

.mos-switch-row > span {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.mos-switch-row strong {
  color: #172b41;
  font-size: 14px;
}

.mos-switch-row small {
  color: #718398;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
}

.mos-switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mos-switch-row i {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #cbd7e4;
  box-shadow: inset 0 0 0 1px rgba(23, 43, 65, 0.08);
  transition: background 0.16s ease;
}

.mos-switch-row i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(23, 43, 65, 0.24);
  transition: transform 0.16s ease;
}

.mos-switch-row input:checked + i {
  background: #0879cc;
}

.mos-switch-row input:checked + i::after {
  transform: translateX(20px);
}

.mos-save-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-right: auto;
  color: #718398;
  font-size: 12px;
  font-weight: 700;
}

.mos-save-status.ok {
  color: #047857;
}

.mos-save-status.bad {
  color: var(--danger);
}

.mos-db-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid #d9e5f0;
  border-radius: 10px;
  background: #fff;
}

.mos-db-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  color: #52677e;
  font-size: 13px;
  font-weight: 760;
}

.mos-db-tabs a.active {
  background: #0879cc;
  color: #fff;
}

.mos-db-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.mos-db-side,
.mos-db-result {
  min-width: 0;
  border: 1px solid #d9e5f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 58, 91, 0.06);
}

.mos-db-side {
  padding: 14px;
}

.mos-db-filter {
  display: grid;
  gap: 11px;
  margin-bottom: 14px;
}

.mos-db-filter label {
  display: grid;
  gap: 6px;
  color: #34495f;
  font-size: 12px;
  font-weight: 760;
}

.mos-db-filter select {
  width: 100%;
  height: 38px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #fff;
  color: #172b41;
  font: inherit;
}

.mos-db-table-list {
  display: grid;
  gap: 4px;
  max-height: calc(100vh - 250px);
  overflow: auto;
}

.mos-db-table-list strong {
  margin: 0 0 5px;
  color: #172b41;
  font-size: 13px;
}

.mos-db-table-list a,
.mos-db-table-list span {
  display: block;
  overflow: hidden;
  padding: 8px 9px;
  border-radius: 7px;
  color: #40566d;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mos-db-table-list a:hover,
.mos-db-table-list a.active {
  background: #e8f3ff;
  color: #0879cc;
}

.mos-db-result {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: hidden;
  padding-bottom: 12px;
}

.mos-db-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 12px 15px;
  border-bottom: 1px solid #e5edf5;
  background: #fbfdff;
}

.mos-db-result-head h3 {
  margin: 0;
  overflow: hidden;
  color: #172b41;
  font-size: 15px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mos-db-result-head span {
  color: #718398;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.mos-db-table-wrap {
  max-width: 100%;
  overflow: auto;
}

.mos-index-panel {
  background: #fff;
}

.mos-result-block {
  margin: 0 12px;
  overflow: hidden;
  border: 1px solid #e5edf5;
  border-radius: 10px;
  background: #fff;
}

.mos-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px 8px;
}

.mos-index-head strong {
  color: #172b41;
  font-size: 13px;
}

.mos-index-head span {
  color: #718398;
  font-size: 12px;
  font-weight: 700;
}

.mos-data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: auto;
}

.mos-index-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  table-layout: fixed;
}

.mos-data-table th,
.mos-data-table td,
.mos-index-table th,
.mos-index-table td {
  max-width: 280px;
  padding: 9px 11px;
  border-bottom: 1px solid #e6edf5;
  color: #33485f;
  font-size: 12px;
  text-align: left;
  vertical-align: top;
}

.mos-data-table th,
.mos-index-table th {
  background: #f7fafd;
  color: #64778c;
  font-weight: 760;
  white-space: nowrap;
}

.mos-data-table td,
.mos-index-table td {
  overflow-wrap: anywhere;
}

.mos-index-table th:nth-child(1),
.mos-index-table td:nth-child(1) {
  width: 190px;
}

.mos-index-table th:nth-child(2),
.mos-index-table td:nth-child(2) {
  width: 220px;
}

.mos-index-table th:nth-child(3),
.mos-index-table td:nth-child(3) {
  width: 80px;
}

.admin-preview-shell {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 34px 42px 46px;
  border: 1px solid #d9e5f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(24, 58, 91, 0.07);
}

.admin-preview-head {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e6edf5;
}

.admin-preview-head span {
  display: block;
  margin-bottom: 8px;
  color: #0879cc;
  font-size: 13px;
  font-weight: 700;
}

.admin-preview-head h1 {
  margin: 0 0 10px;
  color: #172b41;
  font-size: 34px;
  font-weight: 740;
  line-height: 1.25;
}

.admin-preview-head time {
  color: #7d8da0;
  font-size: 13px;
}

.admin-preview-content {
  margin-top: 0;
  color: #25384c;
  font-size: 17px;
  line-height: 1.82;
}

.admin-preview-content img {
  max-width: 100%;
  height: auto;
}

.wrap,
.blog-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
}

.hero {
  padding: 48px 0 44px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 42px;
  font-weight: 680;
  line-height: 1.1;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 560;
  cursor: pointer;
}

.button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

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

.inline {
  display: inline;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.card h3,
.panel h1 {
  margin-top: 0;
}

.card span,
.muted,
.empty,
time {
  color: var(--muted);
}

.auth,
.editor {
  width: min(640px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.upload-panel {
  display: grid;
  gap: 14px;
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.upload-panel h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 660;
}

.upload-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
}

.upload-result {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
}

.upload-result code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-result .ok {
  color: #047857;
}

.upload-result .bad {
  color: var(--danger);
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 14%, rgba(37, 99, 235, 0.16), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.14), transparent 30%),
    linear-gradient(135deg, #eef5ff 0%, #f8fbff 46%, #eef7ff 100%);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 500px);
  gap: 0;
  width: min(1180px, 100%);
  min-height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 30px 100px rgba(30, 64, 175, 0.17);
}

.auth-shell.login-shell {
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 460px);
  min-height: min(560px, calc(100vh - 48px));
  max-width: 1060px;
}

.auth-shell.signup-shell {
  min-height: min(850px, calc(100vh - 48px));
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 42px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.72) 32%, rgba(255, 255, 255, 0.12) 100%),
    url("/static/img/blogwave-hero-story.png") center bottom/cover;
  box-shadow: none;
}

.login-shell .auth-visual {
  justify-content: center;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.76) 36%, rgba(255, 255, 255, 0.16) 100%),
    url("/static/img/blogwave-hero-story.png") center 62%/cover;
}

.login-shell .auth-visual .portal-brand {
  position: absolute;
  top: 34px;
  left: 34px;
}

.login-shell .auth-visual > div {
  margin: 0;
  padding-top: 12px;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent 44%),
    linear-gradient(0deg, rgba(37, 99, 235, 0.08), transparent 38%);
}

.auth-visual > * {
  position: relative;
  z-index: 1;
}

.auth-visual h1 {
  max-width: 560px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.1;
  word-break: keep-all;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.login-shell .auth-visual h1 {
  max-width: 460px;
  font-size: clamp(32px, 3vw, 44px);
}

.login-shell .auth-visual p:not(.eyebrow) {
  max-width: 430px;
  font-size: 16px;
}

.auth-visual p:not(.eyebrow) {
  max-width: 500px;
  margin: 18px 0 0;
  color: #334155;
  font-size: 17px;
  word-break: keep-all;
}

.auth-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-stats span {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 640;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 44px 38px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.login-shell .auth-card {
  padding: 34px;
}

.auth-card-head {
  margin-bottom: 22px;
}

.login-shell .auth-card-head {
  margin-bottom: 18px;
}

.auth-card-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 680;
  line-height: 1.16;
}

.login-shell .auth-card-head h2 {
  font-size: 30px;
}

.auth-card-head p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.auth-form {
  gap: 13px;
}

.auth-form label {
  color: #283142;
}

.auth-form input {
  min-height: 46px;
  border-color: #cfd8e6;
  background: #fbfdff;
}

.auth-form input:focus {
  outline: 3px solid rgba(37, 99, 235, 0.14);
  border-color: var(--accent);
}

.check-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 98px;
  gap: 8px;
}

.check-field button {
  min-height: 46px;
  border-color: rgba(37, 99, 235, 0.22);
  background: #eff6ff;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 640;
}

.auth-form small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
}

.auth-form small.ok {
  color: #047857;
}

.auth-form small.bad {
  color: var(--danger);
}

.auth-submit {
  min-height: 50px;
  margin-top: 4px;
  font-weight: 680;
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 640;
}

.signup-closed {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #cfe0f2;
  border-radius: 12px;
  background: #f5faff;
}

.signup-closed strong {
  color: #172b41;
  font-size: 16px;
  line-height: 1.45;
}

.signup-closed p {
  margin: 0;
  color: #64778c;
  font-size: 14px;
  line-height: 1.65;
}

.signup-closed .button {
  width: fit-content;
}

.form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 560;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.auth-form input {
  min-height: 46px;
  border-color: #cfd8e6;
  background: #fbfdff;
}

.auth-form input:focus {
  outline: 3px solid rgba(37, 99, 235, 0.14);
  border-color: var(--accent);
}

.check-field button {
  min-height: 46px;
  border-color: rgba(37, 99, 235, 0.22);
  background: #eff6ff;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 640;
}

.alert {
  border: 1px solid #f4b7ae;
  background: #fff2f0;
  color: var(--danger);
  border-radius: 6px;
  padding: 12px;
}

.alert.success {
  border-color: #b7dfca;
  background: #f0fbf5;
  color: #047857;
}

.list {
  display: grid;
  gap: 10px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.blog-page {
  background: #fff;
}

.blog-head {
  padding: 52px 0 32px;
  border-bottom: 1px solid var(--line);
}

.blog-head.small {
  padding: 24px 0;
}

.blog-head h1 {
  margin: 0 0 10px;
  font-size: 36px;
  font-weight: 680;
}

.post-list article {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.post-list h2 {
  margin: 0 0 8px;
}

.post {
  padding: 34px 0;
}

.post h1 {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 680;
}

.content {
  margin-top: 28px;
  font-size: 18px;
}

.post-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px 0;
  border-radius: 8px;
}

.public-blog-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 0;
}

.public-blog-hero {
  min-height: 260px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b7ed8 0%, #79c4ff 100%);
  background-position: center;
  background-size: cover;
  box-shadow: 0 20px 48px rgba(22, 54, 88, 0.18);
}

.public-blog-hero-overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 28px 34px;
  background: linear-gradient(180deg, rgba(5, 19, 35, 0.08) 0%, rgba(5, 19, 35, 0.62) 100%);
  color: #fff;
}

.public-blog-wave {
  width: fit-content;
  margin-bottom: auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.public-blog-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: 42px;
  font-weight: 780;
  line-height: 1.12;
}

.public-blog-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.65;
}

.public-blog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px 0 34px;
}

.public-blog-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 18px;
}

.public-profile,
.public-category {
  border: 1px solid #dfe8f1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(24, 58, 91, 0.07);
}

.public-profile {
  padding: 14px;
  text-align: center;
}

.public-profile-photo,
.public-profile-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto 10px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #e8f4ff;
  color: #0b74c9;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.public-profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  object-fit: cover;
}

.public-profile strong {
  display: block;
  color: #172b41;
  font-size: 17px;
  font-weight: 760;
}

.public-profile p {
  margin: 10px 0 0;
  color: #64778c;
  font-size: 13px;
  line-height: 1.65;
}

.public-category {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 16px;
}

.public-category h2 {
  margin: 0 0 10px;
  color: #172b41;
  font-size: 15px;
  font-weight: 760;
}

.public-category a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  border-bottom: 1px solid #eef3f7;
  color: #40566d;
  font-size: 13px;
  font-weight: 650;
}

.public-category a:last-child {
  border-bottom: 0;
}

.public-category a:hover {
  color: #0879cc;
}

.public-posts {
  min-width: 0;
}

.public-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
}

.public-section-head h2 {
  margin: 0;
  color: #172b41;
  font-size: 20px;
  font-weight: 780;
}

.public-section-head span {
  color: #7b8da0;
  font-size: 12px;
  font-weight: 700;
}

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

.public-post-card {
  overflow: hidden;
  border: 1px solid #dfe8f1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(24, 58, 91, 0.07);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.public-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(24, 58, 91, 0.11);
}

.public-post-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9f4ff;
  color: #0b74c9;
}

.public-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-post-thumb span {
  padding: 18px;
  font-size: 14px;
  font-weight: 780;
  text-align: center;
}

.public-post-body {
  padding: 14px 15px 15px;
}

.public-post-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.35;
}

.public-post-body h3 a {
  display: -webkit-box;
  overflow: hidden;
  color: #172b41;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.public-post-body h3 a:hover {
  color: #0879cc;
}

.public-post-body p {
  display: -webkit-box;
  min-height: 40px;
  margin: 8px 0 10px;
  overflow: hidden;
  color: #66798d;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.public-post-body time {
  color: #8a9aab;
  font-size: 12px;
  font-weight: 650;
}

.public-post-detail {
  min-width: 0;
}

.public-post-article {
  overflow: hidden;
  border: 1px solid #dfe8f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 36px rgba(24, 58, 91, 0.08);
}

.public-post-article-head {
  padding: 26px 32px 20px;
  border-bottom: 1px solid #e6edf5;
}

.public-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 14px;
  padding: 0 10px;
  border: 1px solid #d8e5f1;
  border-radius: 999px;
  background: #f5faff;
  color: #0879cc;
  font-size: 12px;
  font-weight: 760;
}

.public-post-article-head h2 {
  margin: 0 0 10px;
  color: #172b41;
  font-size: 34px;
  font-weight: 780;
  line-height: 1.28;
}

.public-post-article-head time {
  color: #7f90a3;
  font-size: 13px;
  font-weight: 650;
}

.public-post-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 34px 46px;
  color: #25384c;
  font-size: 17px;
  line-height: 1.86;
}

.public-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.public-empty {
  padding: 42px 0;
  text-align: center;
}

.public-blog-footer {
  padding: 22px 0 32px;
  border-top: 1px solid rgba(100, 119, 140, 0.18);
  color: #718398;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.image-modal-open {
  overflow: hidden;
}

.image-modal[hidden] {
  display: none;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 18, 32, 0.72);
  cursor: zoom-out;
}

.image-modal-panel {
  position: relative;
  z-index: 1;
  max-width: min(980px, 96vw);
  max-height: 92vh;
}

.image-modal-panel img {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.image-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #172b41;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

@media (max-width: 720px) {
  .public-blog-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .public-blog-hero,
  .public-blog-hero-overlay {
    min-height: 220px;
  }

  .public-blog-hero-overlay {
    padding: 22px;
  }

  .public-blog-hero h1 {
    font-size: 31px;
  }

  .public-blog-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 16px;
  }

  .public-blog-sidebar {
    position: static;
  }

  .public-profile {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    text-align: left;
  }

  .public-profile-photo,
  .public-profile-empty {
    grid-row: 1 / span 2;
    width: 82px;
    margin: 0;
    border-radius: 10px;
  }

  .public-profile strong {
    align-self: end;
    min-width: 0;
    margin-top: 2px;
    font-size: 16px;
    font-weight: 820;
  }

  .public-profile p {
    display: -webkit-box;
    min-width: 0;
    margin-top: 5px;
    overflow: hidden;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .public-profile p br {
    display: none;
  }

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

  .public-post-article-head {
    padding: 22px 18px 18px;
  }

  .public-post-article-head h2 {
    font-size: 26px;
  }

  .public-post-content {
    padding: 24px 18px 34px;
    font-size: 16px;
  }

  .portal-topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 16px;
  }

  .portal-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
  }

  .portal-actions {
    gap: 8px;
  }

  .portal-user {
    display: none;
  }

  .portal-hero,
  .split-section,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-template-rows: 190px minmax(0, 1fr);
  }

  .portal-hero,
  .portal-section {
    width: min(100% - 24px, 1180px);
  }

  .portal-hero-copy {
    min-height: auto;
    padding: 34px 24px 260px;
  }

  .portal-hero-copy::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 48%, rgba(255, 255, 255, 0.12) 100%);
  }

  .portal-hero-bg {
    object-position: center bottom;
  }

  .portal-hero h1 {
    font-size: 36px;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .feed-item {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }

  .feed-item p {
    display: none;
  }

  .side-panel {
    position: static;
  }

  .auth-page {
    display: block;
    padding: 12px;
  }

  .admin-topbar,
  .admin-content-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-page {
    padding-top: 0;
    padding-left: 0;
  }

  .admin-topbar {
    position: static;
    padding: 16px;
  }

  .admin-console {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-list-panel {
    min-height: auto;
  }

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

  .admin-layout .admin-sidebar {
    position: static;
    height: auto;
    margin: 0;
    background: #fff;
    border-radius: 0;
  }

  .admin-layout .admin-content {
    min-height: auto;
    padding: 12px;
  }

  .mos-layout .admin-content {
    overflow-x: hidden;
  }

  .mos-switch-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
  }

  .mos-db-layout {
    grid-template-columns: 1fr;
  }

  .mos-db-table-list {
    max-height: 220px;
  }

  .admin-account {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .admin-board-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-preview-shell {
    padding: 24px 18px 32px;
  }

  .admin-preview-head h1 {
    font-size: 26px;
  }

  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-post-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .admin-write-grid {
    grid-template-columns: 1fr;
  }

  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .auth-shell,
  .auth-shell.login-shell,
  .auth-shell.signup-shell {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: auto;
  }

  .auth-visual {
    min-height: 360px;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
  }

  .auth-visual h1 {
    font-size: 34px;
  }

  .auth-card {
    padding: 22px;
  }

  .check-field {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 0 16px;
  }

  .hero h1,
  .blog-head h1,
  .post h1 {
    font-size: 34px;
  }

  .row,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
