:root {
  --ink: #182039;
  --muted: #7a839a;
  --line: #e8eaf1;
  --surface: #ffffff;
  --canvas: #f6f7fb;
  --primary: #6846e8;
  --primary-dark: #5232cc;
  --navy: #171b36;
  --shadow: 0 18px 50px rgba(28, 31, 59, 0.08);
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.brand__logo {
  border-radius: 50%;
}
.brand__mark {
  display: inline-grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #7d5cf0, #5836d7);
  box-shadow: 0 8px 20px rgba(104, 70, 232, 0.3);
  font-size: 22px;
}
.brand--light {
  color: #fff;
  position: relative;
  z-index: 2;
}
.brand--light .brand__mark {
  color: #6d4ae3;
  background: #fff;
  box-shadow: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
.eyebrow > span {
  width: 18px;
  height: 2px;
  background: currentColor;
}
.eyebrow--light {
  color: #cbbfff;
}

/* Login */
.login-page {
  min-height: 100vh;
  background: #fff;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 47%) 1fr;
}
.login-visual {
  position: relative;
  min-height: 100vh;
  padding: 52px clamp(42px, 5vw, 82px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: linear-gradient(145deg, #171937 0%, #24205a 53%, #4d34b2 100%);
}
.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, transparent);
}
.login-visual::after {
  content: "";
  position: absolute;
  right: -170px;
  bottom: -210px;
  width: 570px;
  height: 570px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.025),
    0 0 0 140px rgba(255, 255, 255, 0.018);
}
.login-visual__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}
.login-visual__glow--one {
  width: 390px;
  height: 390px;
  top: -180px;
  right: -120px;
  background: rgba(131, 93, 255, 0.28);
}
.login-visual__glow--two {
  width: 260px;
  height: 260px;
  bottom: 12%;
  left: -140px;
  background: rgba(64, 185, 255, 0.11);
}
.login-visual__content {
  position: relative;
  z-index: 1;
  margin: auto 0;
  max-width: 610px;
}
.login-visual__content h1 {
  margin: 22px 0 20px;
  font-size: clamp(43px, 4vw, 65px);
  line-height: 1.22;
  letter-spacing: -2.8px;
}
.login-visual__content > p {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 19px;
  line-height: 1.8;
}
.visual-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 52px;
}
.visual-metric {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}
.visual-metric__icon {
  display: grid;
  flex: 0 0 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: #d8d0ff;
  background: rgba(255, 255, 255, 0.1);
}
.visual-metric strong,
.visual-metric small {
  display: block;
}
.visual-metric strong {
  margin-bottom: 4px;
  font-size: 16px;
}
.visual-metric small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}
.login-visual__footer {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 48px clamp(30px, 7vw, 120px);
  background: linear-gradient(145deg, #fff 55%, #fbfaff);
}
.login-card {
  width: 100%;
  max-width: 440px;
}
.mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
  font-size: 26px;
  font-weight: 800;
}
.login-card__heading h2 {
  margin: 13px 0 9px;
  font-size: 38px;
  letter-spacing: -1.4px;
}
.login-card__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0 -6px;
  padding: 13px 15px;
  border-radius: 11px;
  font-size: 16px;
  line-height: 1.5;
}
.alert svg {
  flex: 0 0 18px;
  margin-top: 1px;
}
.alert--error {
  color: #b63847;
  background: #fff0f2;
  border: 1px solid #ffd9df;
}
.alert--success {
  color: #28795a;
  background: #ebfaf3;
  border: 1px solid #ccefe0;
}
.login-form {
  display: grid;
  gap: 21px;
  margin-top: 35px;
}
.field {
  display: grid;
  gap: 9px;
}
.field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.field__label {
  color: #414960;
  font-size: 16px;
  font-weight: 700;
}
.field__hint {
  color: #a1a7b5;
  font-size: 14px;
}
.field__control {
  position: relative;
  display: flex;
  align-items: center;
}
.field__control > svg {
  position: absolute;
  left: 16px;
  z-index: 1;
  width: 18px;
  color: #9ba2b5;
}
.field__control input {
  width: 100%;
  height: 54px;
  padding: 0 48px;
  color: var(--ink);
  border: 1px solid #dfe2ea;
  border-radius: 12px;
  outline: 0;
  background: #fff;
  font-size: 17px;
  transition: 0.2s;
}
.field__control input::placeholder {
  color: #b1b6c2;
}
.field__control input:focus {
  border-color: #8368eb;
  box-shadow: 0 0 0 4px rgba(104, 70, 232, 0.09);
}
.password-toggle {
  position: absolute;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  color: #959cad;
  border: 0;
  background: transparent;
}
.password-toggle svg {
  width: 18px;
}
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 750;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-1px);
}
.button svg {
  width: 17px;
}
.button--wide {
  width: 100%;
  height: 55px;
  margin-top: 5px;
}
.button--primary {
  color: #fff;
  background: linear-gradient(135deg, #7452e8, #5935d6);
  box-shadow: 0 12px 26px rgba(94, 57, 214, 0.24);
}
.button--primary:hover {
  box-shadow: 0 15px 30px rgba(94, 57, 214, 0.32);
}
.button--secondary {
  min-height: 43px;
  color: #5e45c3;
  background: #f0ecff;
}
.login-help {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 36px;
  padding-top: 25px;
  color: #9299a9;
  border-top: 1px solid #eceef3;
}
.login-help svg {
  flex: 0 0 19px;
}
.login-help p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.login-help strong {
  color: #6d7486;
  font-weight: 650;
}

/* Dashboard */
.admin-page {
  min-height: 100vh;
  background: var(--canvas);
}
.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: 245px;
  display: flex;
  flex-direction: column;
  padding: 30px 18px 22px;
  color: #c8cada;
  background: #191c35;
}
.sidebar > .brand {
  margin: 0 11px 41px;
  color: #fff;
}
.sidebar__nav {
  flex: 1;
}
.nav-label {
  margin: 24px 13px 10px;
  color: #656b86;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.nav-item {
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 4px 0;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 620;
  transition: 0.2s;
}
.nav-item svg {
  width: 19px;
  color: #858aa3;
}
.nav-item small {
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 5px;
  color: #777c95;
  background: #242842;
  font-size: 14px;
}
.nav-item--active {
  color: #fff;
  background: linear-gradient(
    100deg,
    rgba(110, 76, 230, 0.95),
    rgba(87, 56, 202, 0.87)
  );
  box-shadow: 0 9px 24px rgba(80, 48, 188, 0.3);
}
.nav-item--active svg {
  color: #fff;
}
.nav-item--disabled {
  opacity: 0.66;
  cursor: default;
}
.sidebar__account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.avatar {
  display: grid;
  flex: 0 0 37px;
  height: 37px;
  place-items: center;
  border-radius: 11px;
  color: #e3ddff;
  background: #343353;
  font-size: 16px;
  font-weight: 800;
}
.sidebar__account > div {
  min-width: 0;
  flex: 1;
}
.sidebar__account strong,
.sidebar__account small {
  display: block;
}
.sidebar__account strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar__account small {
  margin-top: 3px;
  color: #777c94;
  font-size: 14px;
}
.sidebar__account form {
  margin: 0;
}
.sidebar__account button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  padding: 0;
  color: #767c96;
  border: 0;
  background: transparent;
}
.sidebar__account button:hover {
  color: #fff;
}
.sidebar__account svg {
  width: 17px;
}
.admin-main {
  min-height: 100vh;
  margin-left: 245px;
}
.topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid #e9eaf0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}
.topbar__breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.topbar__breadcrumb span {
  color: #9a9faf;
}
.topbar__breadcrumb b {
  color: #d3d5dd;
}
.topbar__breadcrumb strong {
  color: #4d5469;
}
.topbar__right {
  display: flex;
  align-items: center;
  gap: 21px;
}
.system-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #798095;
  font-size: 14px;
}
.system-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35c68a;
  box-shadow: 0 0 0 4px #e6f8f1;
}
.topbar__date {
  padding-left: 20px;
  color: #8a90a2;
  border-left: 1px solid #eceef2;
  font-size: 14px;
}
.mobile-menu {
  display: none;
  padding: 0;
  color: #51586d;
  border: 0;
  background: transparent;
}
.dashboard {
  max-width: 1540px;
  margin: 0 auto;
  padding: 37px 20px 55px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 12px 15px;
  color: #247656;
  border: 1px solid #ceebdf;
  border-radius: 10px;
  background: #effaf5;
  font-size: 14px;
}
.toast svg {
  width: 17px;
}
.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 31px;
}
.dashboard-heading h1 {
  margin: 9px 0 7px;
  font-size: 31px;
  letter-spacing: -1.2px;
}
.dashboard-heading p {
  margin: 0;
  color: #8990a2;
  font-size: 14px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 20px;
}
.stat-card {
  min-width: 0;
  padding: 20px 21px 18px;
  border: 1px solid #eaebf0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(38, 41, 68, 0.035);
}
.stat-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}
.stat-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
}
.stat-icon svg {
  width: 19px;
}
.stat-chip {
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 750;
}
.stat-card > p {
  margin: 0 0 6px;
  color: #777f92;
  font-size: 13px;
}
.stat-card > strong {
  display: block;
  margin-bottom: 13px;
  color: #252c43;
  font-size: 29px;
  letter-spacing: -0.8px;
}
.stat-card > strong small {
  margin-left: 3px;
  color: #7c8496;
  font-size: 13px;
  font-weight: 600;
}
.stat-foot {
  display: block;
  padding-top: 12px;
  color: #a0a5b3;
  border-top: 1px solid #f0f1f4;
  font-size: 14px;
}
.stat-card--violet .stat-icon,
.stat-card--violet .stat-chip {
  color: #6849d4;
  background: #f0ecff;
}
.stat-card--blue .stat-icon,
.stat-card--blue .stat-chip {
  color: #377cca;
  background: #eaf4ff;
}
.stat-card--green .stat-icon,
.stat-card--green .stat-chip {
  color: #22966a;
  background: #e6f8f0;
}
.stat-card--orange .stat-icon,
.stat-card--orange .stat-chip {
  color: #d98228;
  background: #fff2e4;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.85fr);
  gap: 20px;
}
.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eaebf0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(38, 41, 68, 0.035);
}
.panel__header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 21px;
  border-bottom: 1px solid #eff0f4;
}
.panel__header h2 {
  margin: 0 0 5px;
  color: #30364c;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.panel__header p {
  margin: 0;
  color: #9ba1af;
  font-size: 14px;
}
.panel__count {
  color: #7860d3;
  font-size: 14px;
  font-weight: 700;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  padding: 11px 16px;
  color: #9aa0b0;
  background: #fafafd;
  font-size: 14px;
  text-align: left;
  font-weight: 650;
}
td {
  padding: 14px 16px;
  border-top: 1px solid #f0f1f4;
  color: #5f667a;
  font-size: 14px;
  vertical-align: middle;
}
tbody tr:first-child td {
  border-top: 0;
}
tbody tr:hover td {
  background: #fcfcff;
}
.post-code {
  display: block;
  margin-bottom: 4px;
  color: #3d445a;
  font-size: 13px;
}
.post-title-link {
  text-decoration: none;
}
.post-title-link:hover .post-code {
  color: #5b6cff;
}
.post-summary {
  display: block;
  max-width: 290px;
  overflow: hidden;
  color: #a0a5b3;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.office-name {
  font-weight: 650;
  color: #666d80;
  white-space: nowrap;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
}
.status-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.status-badge--published {
  color: #25845f;
  background: #eaf8f2;
}
.status-badge--published i {
  background: #37be89;
}
.status-badge--draft {
  color: #b27834;
  background: #fff5e8;
}
.status-badge--draft i {
  background: #e9a44c;
}
time {
  color: #737a8c;
  white-space: nowrap;
}
time small {
  display: block;
  margin-top: 3px;
  color: #a9aeba;
}
.empty-state {
  padding: 35px !important;
  color: #a0a6b4;
  text-align: center;
}
.office-list {
  padding: 8px 20px;
}
.office-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f1f4;
}
.office-avatar {
  display: grid;
  flex: 0 0 35px;
  height: 35px;
  place-items: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}
.office-avatar--1 {
  color: #6748cf;
  background: #efeaff;
}
.office-avatar--2 {
  color: #327fb2;
  background: #e8f5fc;
}
.office-avatar--3 {
  color: #b86c39;
  background: #fff0e6;
}
.office-avatar--4 {
  color: #2b906a;
  background: #e7f7f0;
}
.office-logo {
  display: block;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 10px;
  background: #f4f3fa;
}
.office-logo--lg {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}
.office-row__body {
  min-width: 0;
  flex: 1;
}
.office-row__body > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.office-row__body strong {
  overflow: hidden;
  color: #4b5266;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.office-row__body span {
  color: #a5aab6;
  font-size: 14px;
}
.progress {
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: #eef0f4;
}
.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8268e7, #6245d0);
}
.office-row__count {
  min-width: 42px;
  text-align: right;
}
.office-row__count strong,
.office-row__count span {
  display: block;
}
.office-row__count strong {
  color: #4b5266;
  font-size: 14px;
}
.office-row__count span {
  margin-top: 3px;
  color: #a3a8b5;
  font-size: 14px;
}
.publish-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 12px 20px 20px;
  padding: 16px;
  border-radius: 12px;
  background: #f8f7fd;
}
.donut {
  --rate: 0;
  position: relative;
  display: grid;
  flex: 0 0 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#6d4bda calc(var(--rate) * 1%), #e6e2f3 0);
}
.donut::before {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f8f7fd;
}
.donut span {
  position: relative;
  z-index: 1;
  color: #4e3c9a;
  font-size: 16px;
  font-weight: 800;
}
.donut small {
  font-size: 14px;
}
.publish-summary > div:last-child strong {
  color: #4a5064;
  font-size: 14px;
}
.publish-summary > div:last-child p {
  margin: 5px 0 0;
  color: #999fad;
  font-size: 14px;
}

/* Office management */
.management-page {
  max-width: 1440px;
}
.office-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 20px;
}
.office-stats article {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 94px;
  padding: 18px 21px;
  border: 1px solid #eaebf0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(38, 41, 68, 0.035);
}
.office-stat-icon {
  display: grid;
  flex: 0 0 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
}
.office-stat-icon svg {
  width: 21px;
}
.office-stat-icon--all {
  color: #6748cf;
  background: #efeaff;
}
.office-stat-icon--active {
  color: #22966a;
  background: #e6f8f0;
}
.office-stat-icon--inactive {
  color: #8b91a1;
  background: #f0f1f4;
}
.office-stats p {
  margin: 0 0 6px;
  color: #8a91a3;
  font-size: 14px;
}
.office-stats strong {
  color: #30364a;
  font-size: 25px;
}
.office-stats strong small {
  margin-left: 3px;
  color: #9298a7;
  font-size: 14px;
}
.management-panel {
  overflow: visible;
}
.management-toolbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 21px;
  border-bottom: 1px solid #eff0f4;
}
.management-toolbar h2 {
  margin: 0 0 5px;
  color: #30364c;
  font-size: 18px;
}
.management-toolbar p {
  margin: 0;
  color: #9ba1af;
  font-size: 14px;
}
.management-toolbar--stacked {
  border-bottom: 0;
}
.office-tabs {
  display: flex;
  gap: 8px;
  padding: 0 21px 18px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.office-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  height: 38px;
  padding: 0 14px;
  color: #6b7285;
  border: 1px solid #e4e7ef;
  border-radius: 999px;
  background: #fafafd;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}
.office-tab:hover {
  color: #4f566c;
  border-color: #d7dced;
  background: #f3f0ff;
}
.office-tab.is-active {
  color: #fff;
  border-color: #6846e8;
  background: #6846e8;
  box-shadow: 0 8px 18px rgba(104, 70, 232, 0.18);
}
.office-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
}
.office-tab:not(.is-active) .office-tab__count {
  color: #7b8194;
  background: #eef0f5;
}
.posts-empty-state,
.posts-loading {
  padding: 28px 21px 32px;
}
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-form > svg {
  position: absolute;
  left: 13px;
  width: 16px;
  color: #9ba1af;
}
.search-form input {
  width: min(310px, 34vw);
  height: 40px;
  padding: 0 36px 0 39px;
  border: 1px solid #e0e3eb;
  border-radius: 10px;
  outline: none;
  color: #42495e;
  font-size: 13px;
  background: #fafafd;
  transition: 0.2s;
}
.search-form input:focus {
  border-color: #8267e8;
  box-shadow: 0 0 0 3px rgba(104, 70, 232, 0.08);
  background: #fff;
}
.search-form input::placeholder {
  color: #adb2bf;
}
.search-form > a {
  position: absolute;
  right: 61px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #9da3b1;
  font-size: 19px;
}
.search-form button {
  height: 40px;
  padding: 0 14px;
  color: #fff;
  border: 0;
  border-radius: 9px;
  background: #6846e8;
  font-size: 14px;
  font-weight: 700;
}
.management-table th,
.management-table td {
  padding: 14px 18px;
}
.management-table th {
  white-space: nowrap;
}
.management-table tbody tr {
  transition: background 0.15s;
}
.management-table .clickable-row {
  cursor: pointer;
  outline: none;
}
.management-table .clickable-row:hover td,
.management-table .clickable-row:focus td {
  background: #faf9ff;
}
.sortable-col {
  width: 44px;
}
.sortable-handle-cell {
  width: 44px;
  padding-right: 0 !important;
}
.sortable-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #a0a6b4;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: grab;
  touch-action: none;
}
.sortable-handle:hover {
  color: #6846e8;
  background: #f3f0ff;
}
.sortable-handle:active {
  cursor: grabbing;
}
.sortable-handle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.sortable-ghost td {
  background: #f8f6ff !important;
}
.sortable-chosen td {
  background: #faf9ff;
}
.sortable-drag td {
  background: #fff;
  box-shadow: 0 8px 24px rgba(62, 69, 90, 0.12);
}
.company-cell {
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.company-cell strong,
.company-cell small {
  display: block;
}
.company-cell strong {
  margin-bottom: 4px;
  color: #3e455a;
  font-size: 13px;
}
.company-cell small {
  color: #a0a6b4;
  font-size: 14px;
}
.status-badge--inactive {
  color: #787f90;
  background: #f0f1f4;
}
.status-badge--inactive i {
  background: #9ba1af;
}
.number-cell {
  color: #4a5165;
  font-size: 14px;
}
.cell-unit {
  margin-left: 2px;
  color: #a2a7b4;
  font-size: 14px;
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.row-arrow,
.row-external {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #8e95a7;
  background: #f4f3fa;
}
.row-arrow:hover,
.row-external:hover {
  color: #6244d2;
  background: #ece8fb;
}
.row-arrow svg,
.row-external svg {
  width: 14px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 20px;
  border-top: 1px solid #f0f1f4;
}
.pagination a {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #e5e7ed;
  border-radius: 8px;
  color: #7b8294;
  background: #fff;
  font-size: 14px;
}
.pagination a:hover,
.pagination a.is-active {
  color: #fff;
  border-color: #6846e8;
  background: #6846e8;
}
.pagination a.is-disabled {
  pointer-events: none;
  opacity: 0.4;
}
.badog-swal {
  border-radius: 18px !important;
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif !important;
}
.swal2-title {
  color: #293047 !important;
  font-size: 23px;
}
.swal2-html-container {
  color: #737b8f !important;
  font-size: 16px;
}

/* Office detail */
.detail-heading {
  margin-bottom: 23px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 19px;
  color: #858c9e;
  font-size: 14px;
  font-weight: 650;
}
.back-link:hover {
  color: #6846e8;
}
.back-link svg {
  width: 15px;
}
.detail-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.detail-title > .office-avatar {
  flex-basis: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 18px;
}
.detail-title > div > div {
  display: flex;
  align-items: center;
  gap: 11px;
}
.detail-title h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -1px;
}
.detail-title p {
  margin: 7px 0 0;
  color: #979dac;
  font-size: 14px;
}
.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}
.detail-stats article {
  padding: 17px 20px;
  border: 1px solid #eaebf0;
  border-radius: 13px;
  background: #fff;
}
.detail-stats p {
  margin: 0 0 7px;
  color: #8e95a5;
  font-size: 14px;
}
.detail-stats strong {
  color: #343a4f;
  font-size: 23px;
}
.detail-stats small {
  margin-left: 3px;
  color: #9298a7;
  font-size: 14px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
  align-items: start;
  gap: 20px;
}
.detail-column {
  display: grid;
  gap: 20px;
}
.detail-panel {
  overflow: hidden;
}
.info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 8px 21px 20px;
}
.info-list > div {
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid #f0f1f4;
}
.info-list > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.info-list dt {
  margin-bottom: 7px;
  color: #9aa0af;
  font-size: 14px;
}
.info-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #4c5367;
  font-size: 13px;
  line-height: 1.6;
}
.info-list dd a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6447d2;
}
.info-list dd svg {
  width: 13px;
}
.info-list__wide {
  grid-column: 1 / -1;
}
.info-list__wide--long dd{
  height:200px;
  overflow-y: auto;
}
.recent-post-list {
  padding: 4px 20px 14px;
}
.recent-post-list > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f1f4;
}
.recent-post-list > div:last-child {
  border-bottom: 0;
}
.post-list-icon {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: #7256db;
  background: #f0edfb;
}
.post-list-icon svg {
  width: 16px;
}
.recent-post-list > div > div {
  min-width: 0;
  flex: 1;
}
.recent-post-list strong {
  color: #4a5165;
  font-size: 14px;
}
.recent-post-list p {
  overflow: hidden;
  margin: 4px 0 0;
  color: #a0a5b2;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-post-list time {
  margin-left: 4px;
  font-size: 14px;
}
.account-list {
  padding: 7px 18px 18px;
}
.account-card {
  padding: 14px 0;
  border-bottom: 1px solid #eeeff3;
}
.account-card:last-child {
  border-bottom: 0;
}
.account-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-card__head > div {
  min-width: 0;
  flex: 1;
}
.account-card__head strong {
  color: #474e62;
  font-size: 16px;
}
.account-card__head p {
  overflow: hidden;
  margin: 4px 0 0;
  color: #9ba1af;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-level {
  padding: 4px 7px;
  border-radius: 6px;
  color: #6748cf;
  background: #f0ecff;
  font-size: 14px;
  font-weight: 700;
}
.account-card details {
  margin-top: 11px;
}
.account-card summary {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: #7d8496;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  list-style: none;
}
.account-card summary::-webkit-details-marker {
  display: none;
}
.account-card summary svg {
  width: 14px;
}
.account-card details[open] summary {
  color: #6846e8;
}
.password-change-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 13px;
  border-radius: 10px;
  background: #f8f8fb;
}
.password-change-form label {
  display: grid;
  gap: 5px;
}
.password-change-form label span {
  color: #777e90;
  font-size: 14px;
  font-weight: 650;
}
.password-change-form input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #e0e2e9;
  border-radius: 8px;
  outline: 0;
  color: #454c60;
  background: #fff;
  font-size: 14px;
}
.password-change-form input:focus {
  border-color: #7c61e2;
  box-shadow: 0 0 0 3px rgba(104, 70, 232, 0.07);
}
.password-change-form .button {
  min-height: 38px;
  margin-top: 2px;
  font-size: 14px;
}
.account-create-form {
  display: grid;
  gap: 10px;
  padding: 4px 0 2px;
}
.account-create-form label {
  display: grid;
  gap: 5px;
}
.account-create-form label span {
  color: #777e90;
  font-size: 14px;
  font-weight: 650;
}
.account-create-form label .required {
  color: #d94c63;
  font-style: normal;
}
.account-create-form input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #e0e2e9;
  border-radius: 8px;
  outline: 0;
  color: #454c60;
  background: #fff;
  font-size: 14px;
}
.account-create-form input:focus {
  border-color: #7c61e2;
  box-shadow: 0 0 0 3px rgba(104, 70, 232, 0.07);
}
.account-create-form .button {
  min-height: 38px;
  margin-top: 4px;
  font-size: 14px;
}
.default-prompt-form {
  display: grid;
  gap: 10px;
}
.default-prompt-form__label {
  color: #777e90;
  font-size: 14px;
  font-weight: 650;
}
.default-prompt-form__textarea {
  width: 100%;
  min-height: 220px;
  padding: 12px 13px;
  border: 1px solid #e0e2e9;
  border-radius: 10px;
  outline: 0;
  color: #454c60;
  background: #fff;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
}
.default-prompt-form__textarea:focus {
  border-color: #7c61e2;
  box-shadow: 0 0 0 3px rgba(104, 70, 232, 0.07);
}
.default-prompt-form__actions {
  display: flex;
  justify-content: flex-end;
}

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

.intro-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 19px 21px;
}

.intro-form__grid label {
  display: grid;
  gap: 6px;
}

.intro-form__grid label span {
  color: #777e90;
  font-size: 14px;
  font-weight: 650;
}

.intro-form__wide {
  grid-column: 1 / -1;
}

.intro-form__grid input,
.intro-form__grid textarea,
.intro-form__grid select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e2e9;
  border-radius: 10px;
  outline: 0;
  color: #454c60;
  background: #fff;
  font-size: 14px;
}

.intro-form__grid textarea {
  resize: vertical;
  line-height: 1.55;
}

.intro-form__hint {
  color: #8a90a0;
  font-size: 12px;
  margin: 0 0 8px;
}

.intro-form__textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #e0e2e9;
  border-radius: 10px;
  outline: 0;
  color: #454c60;
  background: #fff;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.intro-form__textarea:focus {
  border-color: #7c61e2;
  box-shadow: 0 0 0 3px rgba(104, 70, 232, 0.07);
}

.intro-form__editor-label {
  display: block;
  margin-bottom: 6px;
  color: #777e90;
  font-size: 14px;
  font-weight: 650;
}

.intro-form .note-editor.note-frame {
  border: 1px solid #e0e2e9;
  border-radius: 10px;
  overflow: hidden;
}

.intro-form .note-editor.note-frame .note-statusbar {
  background: #fafafc;
}

@media (max-width: 720px) {
  .intro-form__grid {
    grid-template-columns: 1fr;
  }
}

/* Office form */
.office-form-panel {
  max-width: 900px;
}
.office-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  padding: 22px 21px 24px;
}
.office-form__group {
  display: grid;
  gap: 8px;
}
.office-form__group--wide {
  grid-column: 1 / -1;
}
.office-form__label {
  color: #4a5165;
  font-size: 13px;
  font-weight: 700;
}
.office-form__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.office-form__convert-btn {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
}
.office-form__label .required {
  color: #d45b6d;
}
.office-form__hint {
  margin: 0;
  color: #9aa0af;
  font-size: 14px;
  line-height: 1.6;
}
.office-form__code-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.office-form__code-status.is-ok {
  color: #2f9d6a;
}
.office-form__code-status.is-error {
  color: #d45b6d;
}
.office-form__code-status.is-pending {
  color: #8a91a3;
}
.office-form__input.is-valid {
  border-color: #6fc49a;
}
.office-form__input.is-invalid {
  border-color: #e08a98;
}
.office-form__input,
.office-form__textarea {
  width: 100%;
  padding: 0 13px;
  border: 1px solid #e0e3eb;
  border-radius: 10px;
  outline: 0;
  color: #42495e;
  background: #fff;
  font-size: 13px;
  transition: 0.2s;
}
.office-form__input {
  height: 42px;
}
.office-form__textarea {
  padding: 12px 13px;
  line-height: 1.6;
  resize: vertical;
}
.office-form__input:focus,
.office-form__textarea:focus {
  border-color: #8267e8;
  box-shadow: 0 0 0 3px rgba(104, 70, 232, 0.08);
}
.office-form__input--readonly {
  color: #8a91a3;
  background: #f7f8fb;
}
.office-form__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid #f0f1f4;
}
.logo-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px dashed #d8dcea;
  border-radius: 12px;
  background: #fafafd;
}
.logo-upload__preview {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #eceef3;
}
.logo-upload__preview img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: cover;
}
.logo-upload__placeholder {
  display: grid;
  place-items: center;
  gap: 2px;
  color: #a4a9b7;
  font-size: 14px;
  font-weight: 700;
}
.logo-upload__placeholder svg {
  width: 14px;
  color: #b4b9c6;
}
.logo-upload__field {
  min-width: 0;
  flex: 1;
}
.logo-upload__field input[type="file"] {
  width: 100%;
  font-size: 14px;
}
.logo-upload__meta {
  margin: 7px 0 0;
  color: #9aa0af;
  font-size: 14px;
  line-height: 1.5;
}
.detail-title > div > div {
  flex-wrap: wrap;
}
.detail-edit-button {
  min-height: 34px;
  margin-left: 4px;
  padding-inline: 14px;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 850px) {
  .login-shell {
    display: block;
  }
  .login-visual {
    display: none;
  }
  .login-panel {
    min-height: 100vh;
    padding: 40px 24px;
  }
  .mobile-brand {
    display: flex;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s;
  }
  .sidebar-open .sidebar {
    transform: translateX(0);
    box-shadow: 15px 0 45px rgba(18, 20, 38, 0.2);
  }
  .admin-main {
    margin-left: 0;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    padding: 0 20px;
  }
  .topbar__breadcrumb {
    margin-right: auto;
    margin-left: 15px;
  }
  .dashboard {
    padding: 30px 20px 45px;
  }
}
@media (max-width: 590px) {
  .login-card__heading h2 {
    font-size: 32px;
  }
  .dashboard-heading {
    align-items: flex-start;
  }
  .dashboard-heading .button {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .topbar__date,
  .system-status {
    display: none;
  }
  .dashboard {
    padding-inline: 14px;
  }
  .dashboard-grid th:nth-child(2),
  .dashboard-grid td:nth-child(2) {
    display: none;
  }
  .post-summary {
    max-width: 170px;
  }
  .office-stats,
  .detail-stats {
    grid-template-columns: 1fr;
  }
  .management-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .search-form input {
    width: 100%;
  }
  .search-form {
    width: 100%;
  }
  .search-form input {
    flex: 1;
  }
  .management-table th:nth-child(3),
  .management-table td:nth-child(3),
  .management-table th:nth-child(5),
  .management-table td:nth-child(5),
  .management-table th:nth-child(6),
  .management-table td:nth-child(6) {
    display: none;
  }
  .info-list {
    grid-template-columns: 1fr;
  }
  .info-list > div {
    grid-column: 1;
  }
  .recent-post-list time {
    display: none;
  }
  .office-form {
    grid-template-columns: 1fr;
  }
}

/* Post management */
.search-form--wide {
  flex-wrap: wrap;
}
.search-form__select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}
.detail-grid--single {
  grid-template-columns: 1fr;
}
.post-form-panel {
  padding: 0;
}
.post-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  padding: 24px;
}
.post-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-form__group--wide {
  grid-column: 1 / -1;
}
.post-form__label {
  font-size: 14px;
  font-weight: 700;
  color: #3d445a;
}
.post-form__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.post-form__label-row .detail-edit-button {
  margin-left: 0;
  flex-shrink: 0;
}
.post-form__hint {
  margin: 0;
  color: #9aa0b0;
  font-size: 13px;
}
.post-form__input,
.post-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.post-form__input--readonly {
  background: #f8f9fc;
  color: #7a839a;
}
.post-form__textarea {
  min-height: 90px;
  resize: vertical;
}
.post-form__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}
.post-content-view {
  padding: 20px 24px 28px;
  color: #3d445a;
  font-size: 15px;
  line-height: 1.7;
  word-break: break-word;
}
.post-content-view img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.post-content-view p {
  margin: 0 0 1em;
}
.post-json-ld {
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f6f7fb;
  color: #3d4454;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  height: 200px;
  overflow-y: auto;
}
.ai-content-tabs {
  padding: 8px 24px 24px;
}
.ai-content-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.ai-content-block summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
  color: #3d445a;
  background: #fafafd;
}
.ai-content-block .post-content-view {
  border-top: 1px solid var(--line);
}
.image-recommendation-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(26, 28, 48, 0.24);
}
.image-recommendation-dialog::backdrop {
  background: rgba(24, 27, 45, 0.55);
  backdrop-filter: blur(3px);
}
.image-recommendation-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.image-recommendation-dialog__header h2 {
  margin: 0 0 5px;
  font-size: 20px;
}
.image-recommendation-dialog__header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.image-recommendation-dialog__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #f2f3f7;
  color: #687086;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.image-recommendation-dialog__body {
  max-height: calc(100vh - 150px);
  padding: 18px 24px 24px;
  overflow-y: auto;
}
.image-recommendation-status {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5f2ff;
  color: #6653ad;
  font-size: 13px;
}
.image-recommendation-status--error {
  background: #fff0f0;
  color: #b64646;
}
.image-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.image-recommendation-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.image-recommendation-card__preview {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f4f7;
}
.image-recommendation-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-recommendation-card__score {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(61, 42, 130, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.image-recommendation-card__body {
  display: grid;
  gap: 5px;
  padding: 12px;
}
.image-recommendation-card__body strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-recommendation-card__body small {
  color: var(--muted);
  font-size: 11px;
}
.image-recommendation-card__body p {
  min-height: 34px;
  margin: 2px 0 0;
  color: #575f73;
  font-size: 12px;
  line-height: 1.45;
}
.image-recommendation-card__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 24px;
}
.image-recommendation-card__keywords span {
  padding: 3px 6px;
  border-radius: 6px;
  background: #f2f3f7;
  color: #687086;
  font-size: 10px;
}
.image-recommendation-card__actions {
  display: flex;
  gap: 7px;
  margin-top: auto;
  padding: 0 12px 12px;
}
.image-recommendation-card__actions .button {
  flex: 1;
  min-height: 34px;
  padding: 7px 9px;
  font-size: 12px;
}
.recent-post-list__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f1f4;
  color: inherit;
}
.recent-post-list__link:last-child {
  border-bottom: 0;
}
.recent-post-list__link:hover strong {
  color: var(--primary);
}
.note-editor.note-frame {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.note-editor.note-frame .note-toolbar {
  background: #fafafd;
  border-bottom: 1px solid var(--line);
}
.note-editor.note-frame .note-editing-area .note-editable {
  min-height: 380px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .post-form {
    grid-template-columns: 1fr;
  }
  .image-recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .image-recommendation-grid {
    grid-template-columns: 1fr;
  }
  .image-recommendation-dialog__header,
  .image-recommendation-dialog__body {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Image management */
.image-dropzone-panel {
  margin-bottom: 18px;
  padding: 16px;
}
.image-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 28px 20px;
  border: 1.5px dashed #c9cede;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #fbfbfe 0%, #f4f5fa 100%);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
  outline: none;
}
.image-dropzone:hover,
.image-dropzone:focus-visible {
  border-color: #9b87e8;
  background: #f8f6ff;
  box-shadow: 0 10px 28px rgba(104, 70, 232, 0.08);
}
.image-dropzone.is-dragover {
  border-color: var(--primary);
  background: #f3efff;
  box-shadow: inset 0 0 0 1px rgba(104, 70, 232, 0.18);
}
.image-dropzone.is-uploading {
  pointer-events: none;
  opacity: 0.85;
}
.image-dropzone__content {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  max-width: 420px;
}
.image-dropzone__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(28, 31, 59, 0.06);
}
.image-dropzone__icon svg {
  width: 22px;
  height: 22px;
}
.image-dropzone__content strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.image-dropzone__content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.image-dropzone__button {
  margin-top: 8px;
  pointer-events: none;
}
.image-dropzone__progress {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}
.image-dropzone__progress-bar {
  width: min(280px, 70%);
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #8d72f0);
  transition: width 0.2s ease;
}
.image-dropzone__progress p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  padding: 4px 2px 8px;
}
.image-gallery__empty {
  grid-column: 1 / -1;
  margin: 24px 0;
}
.image-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.image-card:hover {
  border-color: #d5d9e6;
  box-shadow: 0 12px 28px rgba(28, 31, 59, 0.06);
}
.image-card__preview {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(45deg, #f0f1f5 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(-45deg, #f0f1f5 25%, transparent 25%) 0 8px / 16px 16px,
    linear-gradient(45deg, transparent 75%, #f0f1f5 75%) 8px -8px / 16px 16px,
    linear-gradient(-45deg, transparent 75%, #f0f1f5 75%) -8px 0 / 16px 16px,
    #fafafd;
}
.image-card__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-card__body {
  display: grid;
  gap: 4px;
  padding: 12px 12px 8px;
}
.image-card__body strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-card__body p,
.image-card__body time {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.image-card__keywords {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}
.image-card__keywords span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.image-card__keywords-input {
  width: 100%;
  min-height: 64px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafd;
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}
.image-card__keywords-input:focus {
  outline: none;
  border-color: #b7a8f0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(104, 70, 232, 0.12);
}
.image-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 12px;
}
.image-card__actions .button {
  flex: 1 1 calc(50% - 3px);
  min-height: 32px;
  padding-inline: 8px;
  font-size: 13px;
}
.image-card__vector--empty {
  border: 1px solid #d0d4de;
  background: #e8eaef;
  color: #8b93a7;
}
.image-card__vector--empty:hover {
  border-color: #c5cad6;
  background: #dde0e8;
  color: #6f7789;
}
.image-card__delete {
  color: #c04747;
}
@media (max-width: 640px) {
  .image-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .image-card__actions {
    flex-direction: column;
  }
  .image-card__actions .button {
    flex: 1 1 auto;
  }
}

/* Site analysis */
.analysis-heading {
  margin-bottom: 18px;
}
.analysis-search-panel {
  padding: 22px;
  margin-bottom: 20px;
}
.analysis-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.analysis-form__field {
  display: grid;
  flex: 1;
  gap: 8px;
}
.analysis-form__field > label {
  color: #4a5165;
  font-size: 13px;
  font-weight: 750;
}
.analysis-form__control {
  position: relative;
}
.analysis-form__control svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 19px;
  color: #8b92a5;
  transform: translateY(-50%);
}
.analysis-form__control input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 46px;
  border: 1px solid #dde0e9;
  border-radius: 11px;
  outline: 0;
  color: #30364c;
  background: #fafafd;
  font-size: 15px;
  transition: .2s;
}
.analysis-form__control input:focus {
  border-color: #8267e8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(104, 70, 232, .08);
}
.analysis-submit {
  min-width: 145px;
  height: 50px;
}
.analysis-submit:disabled {
  cursor: wait;
  opacity: .72;
}
.analysis-submit.is-loading svg {
  animation: analysis-spin 1s linear infinite;
}
@keyframes analysis-spin { to { transform: rotate(360deg); } }
.analysis-form__hint {
  margin: 12px 0 0;
  color: #969cad;
  font-size: 13px;
  line-height: 1.55;
}
.analysis-error {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 16px 18px;
  color: #a94755;
  border: 1px solid #f0cfd5;
  border-radius: 12px;
  background: #fff6f7;
}
.analysis-error svg { flex: 0 0 20px; }
.analysis-error strong { font-size: 14px; }
.analysis-error p { margin: 4px 0 0; font-size: 13px; }
.analysis-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.analysis-score-card {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  padding: 25px;
  border: 1px solid #e7e8ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(38, 41, 68, .035);
}
.analysis-score-ring {
  position: relative;
  display: grid;
  flex: 0 0 106px;
  width: 106px;
  height: 106px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--score-color) calc(var(--score) * 1%), #eff0f4 0);
}
.analysis-score-ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  background: #fff;
}
.analysis-score-ring > span {
  position: relative;
  z-index: 1;
  text-align: center;
}
.analysis-score-ring strong { display: block; font-size: 29px; line-height: 1; }
.analysis-score-ring small { color: #9aa0af; font-size: 11px; }
.good { --score-color: #2caf78; color: #24885f; }
.fair { --score-color: #e0a13c; color: #b7781d; }
.poor { --score-color: #dc6675; color: #b94b5a; }
.analysis-score-card__tag {
  color: #7257da;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 1px;
}
.analysis-score-card h2 { margin: 4px 0 7px; color: #30364c; font-size: 20px; }
.analysis-score-card p { margin: 0; color: #8e95a6; font-size: 13px; line-height: 1.55; }
.analysis-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 15px 19px;
}
.analysis-target div { min-width: 0; }
.analysis-target span { margin-right: 12px; color: #969cad; font-size: 12px; font-weight: 700; }
.analysis-target a { color: #5740bd; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.analysis-target time { flex: 0 0 auto; color: #a0a5b2; font-size: 12px; }
.analysis-spa-warning {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
  padding: 17px 19px;
  color: #9a5d14;
  border: 1px solid #f0d6a7;
  border-radius: 13px;
  background: #fff9ed;
}
.analysis-spa-warning__icon {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #ffedc9;
}
.analysis-spa-warning__icon svg { width: 18px; }
.analysis-spa-warning strong { color: #75440b; font-size: 14px; }
.analysis-spa-warning strong b {
  display: inline-block;
  margin-left: 7px;
  padding: 3px 7px;
  border-radius: 6px;
  color: #ad4f30;
  background: #ffe5dc;
  font-size: 11px;
}
.analysis-spa-warning p { margin: 5px 0 0; font-size: 13px; line-height: 1.55; }
.analysis-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
.analysis-panel-score { font-size: 17px; }
.analysis-check-list { padding: 0 20px; }
.analysis-check {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f0f1f4;
}
.analysis-check:last-child { border-bottom: 0; }
.analysis-check__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
}
.analysis-check__icon svg { width: 16px; }
.analysis-check--pass .analysis-check__icon { color: #25845f; background: #eaf8f2; }
.analysis-check--fail .analysis-check__icon { color: #b95461; background: #fff0f2; }
.analysis-check--na .analysis-check__icon { color: #7f8799; background: #f0f1f4; }
.analysis-check strong { color: #444b60; font-size: 13px; }
.analysis-check p { margin: 4px 0 0; color: #9299a9; font-size: 12px; line-height: 1.45; }
.analysis-check__points { color: #a2a7b4; font-size: 11px; font-weight: 750; }
.technical-panel { margin-bottom: 10px; }
.technical-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 20px;
  gap: 10px;
}
.technical-grid > div {
  padding: 13px;
  border-radius: 10px;
  background: #f8f8fb;
}
.technical-grid dt { color: #999faf; font-size: 11px; }
.technical-grid dd { margin: 5px 0 0; color: #42495e; font-size: 15px; font-weight: 750; }
.technical-grid .technical-rendering--warning { color: #b66b17; }
.technical-document-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: #6045c9;
  border: 0;
  background: transparent;
  font-weight: 750;
}
.technical-document-button:hover { color: #4328ad; text-decoration: underline; }
.technical-document-button.is-valid { color: #25845f; }
.technical-document-button.is-invalid { color: #b95461; }
.technical-document-button svg { width: 13px; height: 13px; }
.technical-meta { display: grid; gap: 12px; padding: 0 20px 20px; }
.technical-meta > div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; }
.technical-meta span { color: #999faf; font-size: 12px; }
.technical-meta p { margin: 0; color: #626a7e; font-size: 13px; line-height: 1.5; }
.analysis-document-popup { min-width: 0; text-align: left; }
.analysis-document-popup > a {
  display: block;
  margin: -3px 0 12px;
  overflow: hidden;
  color: #6846e8;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analysis-document-popup > a:hover { text-decoration: underline; }
.analysis-document-popup pre {
  max-height: min(58vh, 560px);
  margin: 0;
  padding: 16px;
  overflow: auto;
  color: #444b60;
  border: 1px solid #e5e7ee;
  border-radius: 10px;
  background: #f7f8fb;
  font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .analysis-results { grid-template-columns: 1fr; }
  .technical-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .analysis-form { align-items: stretch; flex-direction: column; }
  .analysis-submit { width: 100%; }
  .analysis-overview { grid-template-columns: 1fr; }
  .analysis-score-card { padding: 19px; }
  .analysis-score-ring { flex-basis: 88px; width: 88px; height: 88px; }
  .analysis-target { align-items: flex-start; flex-direction: column; }
  .technical-grid { grid-template-columns: repeat(2, 1fr); }
  .technical-meta > div { grid-template-columns: 1fr; }
}

.analytics-period-filter {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid #e5e7ee;
  border-radius: 999px;
  background: #fff;
}
.analytics-period-filter__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #5d6477;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.analytics-period-filter__item.is-active,
.analytics-period-filter__item:hover {
  color: #fff;
  background: linear-gradient(135deg, #6846e8, #4f7cff);
}
.analytics-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 220px;
  padding: 8px 4px 0;
}
.analytics-chart__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 180px;
}
.analytics-chart__fill {
  width: 100%;
  max-width: 42px;
  margin-top: auto;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #8d74ff, #4f7cff);
}
.analytics-chart__bar strong {
  color: #2f3445;
  font-size: 12px;
}
.analytics-chart__bar span {
  color: #7a8194;
  font-size: 11px;
}
.analytics-log-table__ua {
  max-width: 320px;
  color: #5d6477;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5e7ee;
  border-radius: 10px;
  color: #5d6477;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.pagination__item.is-active,
.pagination__item:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #6846e8, #4f7cff);
}
@media (max-width: 900px) {
  .analytics-chart {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .analytics-log-table__ua {
    max-width: 180px;
  }
}
