﻿:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --accent: #1bbf9a;
  --accent-soft: #e3f5f0;
  --text: #1a2533;
  --muted: #6b7a90;
  --border: #e5edf2;
  --shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html:has(body.has-shell),
body.has-shell {
  height: 100%;
  overflow: hidden;
}

body.has-shell {
  padding: 14px;
  background:
    radial-gradient(circle at 12% 8%, rgba(27, 191, 154, 0.14), transparent 24%),
    radial-gradient(circle at 88% 92%, rgba(79, 156, 255, 0.12), transparent 26%),
    #e8edf2;
}

:focus-visible {
  outline: 3px solid rgba(27, 191, 154, 0.5);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 999;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.auth-shell {
  display: grid;
  place-items: center;
  padding: 32px 16px;
  min-height: 100vh;
}

.auth-card {
  max-width: 520px;
  width: 100%;
  padding: 32px;
  background: var(--panel);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-brand img {
  display: block;
  width: min(240px, 78%);
  height: auto;
}

.hero h1 {
  margin-top: 0;
  font-size: 30px;
  text-align: center;
}

.auth-card.hero > p {
  text-align: center;
}

.hero p {
  color: var(--muted);
  line-height: 1.6;
}

.auth-feature-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.auth-feature-list li {
  position: relative;
  padding: 11px 12px 11px 34px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fbfd;
  color: #334155;
  line-height: 1.45;
}

.auth-feature-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(27, 191, 154, 0.12);
}

.auth-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.auth-provider-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  justify-items: center;
  padding: 14px;
  border: 3px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #03c75a 0%, #1bbf9a 46%, #fee500 100%) border-box;
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.12);
}

.auth-provider-list.compact {
  margin-top: 6px;
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
}

.auth-provider-list .btn {
  margin-top: 0;
  text-align: center;
}

.auth-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 320px);
  height: 48px;
  min-height: 48px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  color: inherit;
}

.auth-provider-image {
  display: block;
  width: 100%;
  max-width: 400px;
  height: 48px;
  object-fit: contain;
}

.auth-provider.google {
  margin-top: 0;
}

.auth-provider.disabled {
  background: #eef2f6;
  color: var(--muted);
  padding: 12px 22px;
  box-shadow: none;
}

.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: #ffffff;
  background-image: none;
  border: 1px solid #747775;
  border-radius: 8px;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: "Roboto", arial, sans-serif;
  font-size: 14px;
  height: 48px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  transition: background-color 0.218s, border-color 0.218s, box-shadow 0.218s;
  vertical-align: middle;
  white-space: nowrap;
  width: min(100%, 320px);
  max-width: 320px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-left: 18px;
  margin-right: 10px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button svg {
  display: block;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  flex-grow: 1;
  font-family: "Roboto", arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  transition: opacity 0.218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:active .gsi-material-button-state,
.gsi-material-button:focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:hover {
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  transform: none;
}

.gsi-material-button:hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}

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

.btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 22px;
  background: var(--accent);
  color: #0c3d33;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover:not(:disabled):not(.disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(27, 191, 154, 0.2);
}

.btn.secondary {
  background: #eefbf7;
  color: #0f766e;
  border: 1px solid rgba(27, 191, 154, 0.24);
}

.btn.secondary:hover:not(:disabled) {
  background: #dff7ef;
}

.btn:disabled,
.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.1);
  pointer-events: none;
}

.auth-provider-list .btn.auth-provider {
  display: flex;
  width: min(100%, 320px);
  height: 48px;
  margin-top: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  color: inherit;
  transform: none;
}

.auth-provider-list .btn.auth-provider:hover {
  transform: none;
  box-shadow: none;
}

.auth-provider-list .btn.auth-provider.google {
  background: #ffffff;
  border: 1px solid #747775;
  box-shadow: none;
}

.auth-provider-list .auth-provider-image {
  width: 100%;
  height: 48px;
  object-fit: contain;
}

.auth-provider-list .auth-provider.naver .auth-provider-image {
  object-fit: contain;
}

.auth-provider-list .btn.auth-provider.naver {
  width: min(100%, 368px);
}

.construction-page {
  position: relative;
  min-height: 520px;
}

.construction-blur {
  filter: blur(7px);
  opacity: 0.46;
  pointer-events: none;
  user-select: none;
}

.construction-overlay {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid rgba(27, 191, 154, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  text-align: center;
  z-index: 2;
}

.construction-image {
  display: block;
  width: min(340px, 100%);
  height: auto;
  margin: -6px auto 8px;
}

.construction-overlay h3 {
  margin: 14px 0 10px;
  font-size: 26px;
}

.construction-overlay p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.construction-actions {
  margin-top: 18px;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.placeholder-card,
.placeholder-lines span {
  display: block;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef7f5, #f8fafc);
  border: 1px solid var(--border);
}

.placeholder-card {
  min-height: 120px;
}

.placeholder-card.wide {
  grid-column: 1 / -1;
  min-height: 180px;
}

.placeholder-lines {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.placeholder-lines span {
  height: 18px;
}

.placeholder-lines span:nth-child(2) {
  width: 86%;
}

.placeholder-lines span:nth-child(3) {
  width: 72%;
}

.placeholder-lines span:nth-child(4) {
  width: 58%;
}

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

.keyword-mix-group textarea,
.keyword-mix-output {
  min-height: 160px;
}

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

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 860px) {
  .keyword-mix-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .blog-draft-form label,
  .blog-draft-form .action-row {
    padding: 14px;
  }

  .blog-draft-form .action-row .btn {
    width: 100%;
    min-width: 0;
  }
}

.has-shell .btn {
  margin-top: 0;
}

.shell {
  width: 100%;
  max-width: 1760px;
  height: calc(100vh - 28px);
  height: calc(100dvh - 28px);
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 28px;
  background: #f4f7f9;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.14),
    0 2px 8px rgba(15, 23, 42, 0.05);
}

.sidebar {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 26px;
  box-shadow: 24px 0 60px rgba(15, 23, 42, 0.16);
  padding: 18px 16px 24px;
  position: fixed;
  inset:
    14px
    auto
    14px
    max(14px, calc((100vw - 1760px) / 2 + 14px));
  z-index: 70;
  width: min(350px, calc(100vw - 28px));
  height: auto;
  overflow-y: auto;
  transform: translateX(calc(-100% - 30px));
  visibility: hidden;
  transition: transform 0.24s ease, visibility 0.24s;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.nav-open .sidebar {
  transform: translateX(0);
  visibility: visible;
}

.sidebar-drawer-head {
  min-height: 48px;
  margin-bottom: 10px;
  padding: 0 4px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.sidebar-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
  position: relative;
  cursor: pointer;
}

.sidebar-close span::before,
.sidebar-close span::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 10px;
  width: 19px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
}

.sidebar-close span::before {
  transform: rotate(45deg);
}

.sidebar-close span::after {
  transform: rotate(-45deg);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  border: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
  cursor: default;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(27, 191, 154, 1), rgba(79, 156, 255, 1));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: block;
}

.brand-text {
  font-size: 18px;
  letter-spacing: -0.2px;
}

.logo-image {
  display: block;
  width: min(100%, 214px);
  height: auto;
  object-fit: contain;
}

.nav {
  display: grid;
  gap: 5px;
}

.nav-section {
  display: grid;
  gap: 6px;
}

.nav-section + .nav-section {
  margin-top: 12px;
}

.nav-section-toggle {
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  justify-content: space-between;
  background: transparent;
}

.nav-section > .nav-section-toggle {
  color: #64748b;
  font-weight: 700;
}

.nav-section > .nav-section-toggle[aria-expanded="true"] {
  color: #0f766e;
  background: #eefbf7;
}

.nav-section-panel {
  padding-left: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.25;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.nav-item span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item.active,
.nav-item:hover {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}

.nav-item:hover {
  transform: translateX(2px);
}

.nav-item.active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-footer {
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f2fbf8, #f5f8fb);
  border: 1px solid #e5edf2;
  font-size: 12px;
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 6px;
}

.workspace {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: inherit;
}

.appbar {
  position: relative;
  flex: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.appbar-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.appbar-left {
  min-width: 0;
}

.menu-trigger {
  min-width: 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #dce6ec;
  border-radius: 15px;
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.menu-trigger:hover {
  border-color: rgba(27, 191, 154, 0.55);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.menu-trigger-icon {
  width: 21px;
  display: grid;
  gap: 4px;
}

.menu-trigger-icon i {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.appbar-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.appbar-sub {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}

.menu-trigger-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.appbar-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.appbar-right > .tag {
  margin-bottom: 0;
}

.ghost {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.welcome {
  font-weight: 600;
}

.account-switcher {
  position: relative;
}

.account-switcher summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
  background: #fff;
}

.account-switcher summary::-webkit-details-marker {
  display: none;
}

.account-switch-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: min(320px, calc(100vw - 32px));
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.account-switch-row {
  margin: 0 0 6px;
}

.account-switch-row button {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  text-align: left;
  background: #f7fafc;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  overflow: hidden;
}

.account-switch-row.active button {
  background: var(--accent-soft);
  border-color: rgba(27, 191, 154, 0.35);
  cursor: default;
}

.account-switch-row small {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-add-title {
  margin: 10px 2px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.account-action {
  width: 100%;
  margin-top: 6px;
  text-align: center;
}

.account-action.ghost {
  background: #fff;
  color: var(--muted);
}

.account-switch-menu form .account-action {
  display: block;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(8px);
}

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

.modal-card {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

.modal-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.modal-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.onboarding-card {
  width: min(680px, 100%);
}

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

.onboarding-steps article {
  padding: 14px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.86), rgba(255, 255, 255, 0.9));
}

.onboarding-steps strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.onboarding-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.content {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 28px 40px;
  display: grid;
  align-content: start;
  gap: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background:
    linear-gradient(180deg, rgba(238, 245, 247, 0.88), rgba(244, 247, 249, 0.98) 180px);
}

.content > * {
  min-width: 0;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.kpi-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--panel);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.kpi-label {
  font-size: 12px;
  color: var(--muted);
}

.kpi-value {
  font-size: 16px;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eef3f6;
  color: var(--muted);
  width: fit-content;
}

.badge.good {
  background: #dff5ef;
  color: #0f7a5a;
}

.badge.ok {
  background: #eef5ff;
  color: #2b5ea8;
}

.badge.warn {
  background: #fff3d9;
  color: #a66a12;
}

.badge.bad {
  background: #ffe4e4;
  color: #b04545;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.panel {
  background: var(--panel);
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(219, 229, 235, 0.95);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
  min-width: 0;
}

.panel:hover {
  border-color: #d6e5ee;
}

.guide-panel {
  background: linear-gradient(140deg, rgba(27, 191, 154, 0.06), rgba(96, 141, 255, 0.05));
}

.guide-intro {
  margin-top: 4px;
  margin-bottom: 16px;
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.guide-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.guide-card h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
}

.guide-card ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.guide-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f5f7fa;
  padding: 2px 6px;
  border-radius: 6px;
  color: #233047;
}

.guide-block {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.guide-block h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
}

.guide-block ol {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.guide-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  color: #3b4b66;
}

.keyword-panel {
  background: linear-gradient(140deg, rgba(27, 191, 154, 0.08), rgba(96, 141, 255, 0.06));
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.panel-head h3 {
  margin: 0;
  font-size: 16px;
}

.panel-meta {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.form.compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.form input,
.form select,
.form textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f7f9fb;
  color: var(--text);
  font: inherit;
  resize: vertical;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus,
.dashboard-blog-register input:focus {
  outline: none;
  border-color: rgba(27, 191, 154, 0.7);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(27, 191, 154, 0.12);
}

.rank-monitor-form .rank-keyword-field {
  grid-column: 1 / -1;
}

.rank-checkbox {
  flex-direction: row !important;
  align-items: center;
  align-self: center;
}

.rank-checkbox input {
  width: 18px;
  height: 18px;
}

.rank-monitor-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 8px 0 14px;
  flex-wrap: wrap;
}

.keyword-history-controls {
  margin-top: 14px;
}

.keyword-history-wrap {
  margin: 16px 0;
}

.keyword-history-empty td {
  text-align: center;
  color: var(--muted);
  padding: 24px 12px;
}

.rank-monitor-tabs,
.rank-monitor-controls .action-row {
  display: flex;
  gap: 8px;
}

.rank-tab-button.active {
  background: var(--accent);
  color: #fff;
}

.place-rank-form {
  grid-template-columns: minmax(180px, 0.8fr) minmax(280px, 1.4fr) auto;
  align-items: end;
}

.place-rank-note,
.place-history-head {
  margin-top: 14px;
}

.place-live-controls {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.place-live-controls label {
  min-width: 120px;
}

.place-live-controls select {
  margin-top: 5px;
}

.place-summary-grid {
  margin-top: 16px;
}

.place-candidate-list {
  margin: 0;
  padding-left: 24px;
  max-height: 420px;
  overflow-y: auto;
  line-height: 1.9;
  color: var(--muted);
}

.place-candidate-list .is-target {
  color: var(--accent);
  font-weight: 700;
}

.place-candidate-list .place-rank-gap {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.16em;
  list-style: none;
  margin-left: -18px;
}

.place-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.place-history-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 39, 64, 0.06);
}

.place-history-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  color: var(--muted);
}

.place-history-card b {
  color: var(--text);
}

.place-history-rank {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
  color: #2563eb;
}

.place-history-rank.is-out {
  color: #64748b;
  font-size: 20px;
}

.place-history-card time {
  display: block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--text);
}

.place-history-empty {
  color: var(--muted);
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: 14px;
}

.place-search-history-panel {
  margin-top: 18px;
}

.place-search-history {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.place-search-history-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.place-search-history-item:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.place-search-history-item span,
.place-search-history-item small {
  display: block;
}

.place-search-history-item span:last-child {
  text-align: right;
}

.place-search-history-item small {
  margin-top: 4px;
  color: var(--muted);
}

.place-change {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f6;
  font-size: 12px;
  font-weight: 700;
}

.place-change.change-up,
.place-change.change-entered {
  background: #dff8f1;
  color: #087d67;
}

.place-change.change-down,
.place-change.change-dropped_out {
  background: #ffe8e8;
  color: #bd3030;
}

@media (max-width: 800px) {
  .place-rank-form {
    grid-template-columns: 1fr;
  }

  .place-live-controls {
    align-items: stretch;
    flex-direction: column;
  }
}

.form button.btn {
  border: none;
  cursor: pointer;
}

.output {
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  color: #53657d;
  min-height: 120px;
  overflow-x: auto;
  line-height: 1.65;
  white-space: pre-wrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.chart-wrap {
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  border-radius: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.list-card {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f6f8fa;
}

.list-title {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.top-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.top-list li {
  margin-bottom: 8px;
}

.top-list a {
  color: var(--text);
  text-decoration: none;
}

.top-list a:hover {
  color: var(--accent);
}

.metric-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}

.glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.glass-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.glass-card.wide {
  grid-column: span 2;
}

.glass-label {
  font-size: 12px;
  color: var(--muted);
}

.glass-value {
  font-size: 20px;
  font-weight: 700;
  margin-top: 6px;
  color: #2b3a55;
}

.glass-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 12px;
  color: #2b3a55;
}

.diagnosis-panel {
  position: relative;
  overflow: hidden;
}

.scan-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.scan-overlay.active {
  opacity: 1;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 0;
  background: linear-gradient(90deg, transparent, #60e6ff, transparent);
  animation: scan 1.2s linear infinite;
  box-shadow: 0 0 12px rgba(96, 230, 255, 0.6);
}

@keyframes scan {
  from { top: 0; }
  to { top: 100%; }
}

.sphere {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 12px 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(27,191,154,0.35) 45%, rgba(76, 82, 255, 0.25) 70%);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px rgba(27, 191, 154, 0.2);
}

.sphere-core {
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.draft-panel textarea {
  min-height: 120px;
}

.blog-draft-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.blog-draft-form label {
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
  color: #334155;
  font-weight: 800;
}

.blog-draft-form input,
.blog-draft-form textarea {
  width: 100%;
  margin-top: 2px;
  padding: 15px 16px;
  border-radius: 14px;
  background: #ffffff;
  font-weight: 500;
}

.blog-draft-form textarea {
  min-height: 150px;
  line-height: 1.65;
}

.blog-draft-form input[type="file"] {
  padding: 14px;
  border-style: dashed;
  background: #f8fafc;
}

.photo-upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(20, 184, 166, 0.34);
  border-radius: 18px;
  background: rgba(240, 253, 250, 0.72);
  color: var(--muted);
  font-size: 13px;
}

.photo-upload-preview figure {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.photo-upload-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
}

.photo-upload-preview figcaption {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.photo-upload-preview b,
.photo-upload-preview span,
.photo-upload-preview small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-upload-preview b {
  color: var(--text);
}

.blog-draft-form .action-row {
  margin-top: 2px;
  padding: 16px 18px;
  border: 1px solid rgba(27, 191, 154, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(227, 245, 240, 0.84), rgba(255, 255, 255, 0.82));
}

.blog-draft-form .action-row .btn {
  min-width: 220px;
}

.publish-scope-note {
  display: grid;
  gap: 4px;
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.publish-scope-note strong {
  color: var(--text);
}

.draft-output {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.65;
  max-height: 560px;
  overflow: auto;
}

.draft-preview h4 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--text);
}

.draft-body {
  padding: 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.draft-body-with-photos {
  display: grid;
  gap: 14px;
}

.draft-body-with-photos p,
.draft-body-with-photos h5 {
  margin: 0;
}

.draft-body-with-photos h5 {
  font-size: 15px;
  color: var(--text);
}

.draft-photo-slot {
  display: grid;
  grid-template-columns: minmax(110px, 180px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(251, 146, 60, 0.36);
  border-radius: 16px;
  background: rgba(255, 247, 237, 0.9);
}

.draft-photo-slot img,
.photo-slot-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 13px;
  background: #fed7aa;
}

.photo-slot-placeholder {
  display: grid;
  place-items: center;
  color: #9a3412;
  font-weight: 800;
}

.draft-photo-slot figcaption {
  display: grid;
  gap: 5px;
}

.draft-photo-slot b {
  color: #9a3412;
}

.draft-photo-slot span {
  color: var(--text);
}

.draft-photo-slot small {
  color: var(--muted);
}

@media (max-width: 700px) {
  .draft-photo-slot {
    grid-template-columns: 1fr;
  }
}

.draft-note {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.72);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.draft-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.draft-note ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.draft-note ol {
  margin: 6px 0 0;
  padding-left: 20px;
}

.publish-package {
  background: rgba(240, 253, 244, 0.76);
  border-color: rgba(34, 197, 94, 0.25);
}

.photo-placement {
  background: rgba(255, 247, 237, 0.78);
  border-color: rgba(251, 146, 60, 0.28);
}

.human-tone-guide {
  background: rgba(250, 245, 255, 0.78);
  border-color: rgba(168, 85, 247, 0.24);
}

.publish-package p {
  margin: 8px 0 2px;
  color: var(--text);
  font-weight: 700;
}

.publish-package small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.tag-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.tag-chip-row span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.publish-gate-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--text);
}

.publish-gate-score b {
  color: #0f766e;
}

.draft-footnote {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.publish-assist {
  margin-top: 12px;
}

.publish-assist .action-row {
  flex-wrap: wrap;
}

.publish-readiness {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 13px;
}

.publish-launch {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 14px;
  background: rgba(240, 253, 250, 0.7);
  color: var(--text);
  font-size: 13px;
}

.publish-launch strong {
  display: block;
  margin-bottom: 6px;
}

.publish-launch ol {
  margin: 6px 0;
  padding-left: 20px;
}

.publish-progress {
  position: relative;
  height: 22px;
  margin: 8px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
}

.publish-progress b {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.7), rgba(37, 99, 235, 0.45));
}

.publish-progress span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 12px;
  font-weight: 800;
  color: #0f766e;
}

.publish-workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
  margin: 8px 0 10px;
  padding: 0;
  list-style: none;
}

.publish-workflow li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
}

.publish-workflow li span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.publish-workflow li.done {
  color: #0f766e;
  font-weight: 700;
  background: rgba(220, 252, 231, 0.72);
}

.publish-workflow li.done span {
  background: #14b8a6;
}

.publish-tags {
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #0f766e;
  font-weight: 700;
  word-break: keep-all;
}

.publish-url-field {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.publish-url-field input {
  margin-top: 6px;
  width: 100%;
}

.draft-history,
.published-history {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.draft-history {
  background: rgba(239, 246, 255, 0.62);
}

.draft-history-head,
.published-history-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.draft-history ul,
.published-history ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.draft-history li,
.published-history li {
  margin: 5px 0;
}

.draft-history-load {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.draft-history-load:hover {
  color: var(--accent);
  text-decoration: underline;
}

.published-history li a {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent);
  font-weight: 700;
}

.btn.mini {
  padding: 5px 8px;
  font-size: 12px;
}

.exposure-panel {
  background: linear-gradient(140deg, rgba(255, 106, 136, 0.08), rgba(111, 140, 255, 0.08));
  backdrop-filter: blur(10px);
}

.bulk-panel {
  background: linear-gradient(135deg, rgba(88, 160, 255, 0.15), rgba(168, 85, 247, 0.12));
  backdrop-filter: blur(14px);
}

.bulk-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.bulk-input textarea {
  width: 100%;
  min-height: 220px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  color: var(--text);
}

.bulk-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.bulk-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.scan-progress {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
  overflow: hidden;
}

.scan-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4f9cff, #a855f7);
  transition: width 0.2s ease;
}

.scan-progress span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.bulk-filters .glass-card {
  margin-bottom: 12px;
}

.bulk-filters input[type="number"] {
  width: 60px;
  margin-left: 6px;
}

.bulk-table-wrap {
  overflow-x: auto;
}

.bulk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bulk-table th,
.bulk-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.bulk-table thead {
  background: rgba(255, 255, 255, 0.7);
}

.bulk-table tbody tr:hover {
  background: rgba(79, 156, 255, 0.06);
}

.admin-user-summary {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
}

.admin-user-alert {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(79, 156, 255, 0.12));
  color: #0f766e;
  font-weight: 800;
}

.admin-user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-users-table td:first-child strong,
.admin-users-table td:first-child small {
  display: block;
}

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

.admin-plan-select,
.admin-status-select {
  width: auto;
  min-width: 112px;
  margin-right: 6px;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.admin-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.account-status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f6;
  font-size: 12px;
  font-weight: 700;
}

.account-status.status-beta,
.account-status.status-active {
  background: #dff8f1;
  color: #087d67;
}

.account-status.status-suspended {
  background: #ffe8e8;
  color: #bd3030;
}

#admin-users-status[data-tone="good"] {
  color: #087d67;
}

#admin-users-status[data-tone="bad"] {
  color: #bd3030;
}

.monitor-panel {
  background: radial-gradient(circle at top, rgba(79, 156, 255, 0.2), rgba(75, 0, 130, 0.25));
  color: #f9fbff;
}

.monitor-panel .glass-card {
  background: rgba(15, 21, 40, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.monitor-panel .glass-label,
.monitor-panel .glass-sub {
  color: rgba(249, 251, 255, 0.7);
}

.monitor-panel .glass-value {
  color: #e0f2ff;
}

.alert-card {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(15, 21, 40, 0.8);
  margin-bottom: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(79, 156, 255, 0.3);
}

.alert-card.alert-need {
  border-color: #ff4d4d;
  box-shadow: 0 10px 25px rgba(255, 77, 77, 0.35);
}

.monitor-panel canvas {
  filter: drop-shadow(0 0 12px rgba(96, 191, 255, 0.6));
}

.hero-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(27, 191, 154, 0.2), rgba(138, 91, 255, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 24px;
  box-shadow: 0 25px 45px rgba(10, 14, 29, 0.45);
}

.hero-callout h1 {
  margin: 4px 0 8px;
  font-size: 28px;
  color: #f5fbff;
}

.hero-callout p {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.hero-callout .eyebrow {
  letter-spacing: 2px;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.post-check-panel {
  background: radial-gradient(circle at top, rgba(79, 156, 255, 0.15), rgba(55, 0, 122, 0.35));
  color: #f9fbff;
}

.post-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-bottom: 18px;
}

.post-input .form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-input textarea {
  width: 100%;
  min-height: 220px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 12px;
  font-size: 14px;
}

.inline-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.inline-fields label input {
  width: 100%;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-indicator {
  font-size: 12px;
  color: #85d3ff;
  font-weight: 600;
}

.progress-track {
  margin-top: 10px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4f9cff, #b855ff);
  transition: width 0.3s ease;
}

.post-metrics {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(15, 21, 40, 0.6);
}

.score-display {
  font-size: 48px;
  text-align: center;
  font-weight: 800;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #4f9cff, #b855ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.diagnostic-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diagnostic-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--accent);
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  color: #eef4ff;
}

.diagnostic-item.pass {
  border-left-color: #4f9cff;
  box-shadow: inset 10px 0 15px -10px rgba(79, 156, 255, 0.45);
}

.diagnostic-item span {
  font-weight: 700;
}

.flag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flag-list li {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 77, 77, 0.1);
  color: #ffb3b3;
}

.radar-chart {
  filter: drop-shadow(0 0 15px rgba(96, 191, 255, 0.6));
}

.guide {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-check-panel .output {
  background: rgba(5, 12, 25, 0.5);
}

.traffic-panel {
  background: radial-gradient(circle at top, rgba(79, 156, 255, 0.12), rgba(184, 85, 255, 0.12));
  backdrop-filter: blur(14px);
}

.retention-time {
  font-size: 22px;
  font-weight: 800;
  color: #4f9cff;
  text-shadow: 0 0 18px rgba(79, 156, 255, 0.45);
}

.live-stream {
  position: relative;
  height: 220px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 21, 40, 0.25);
  overflow: hidden;
}

.particle {
  position: absolute;
  top: 110%;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(79,156,255,0.7));
  box-shadow: 0 0 18px rgba(184, 85, 255, 0.35);
  animation: floatUp 2.6s linear infinite;
}

@keyframes floatUp {
  from { transform: translateY(0); }
  to { transform: translateY(-260px); }
}

@media (max-width: 960px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .bulk-grid {
    grid-template-columns: 1fr;
  }
}

.risk-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.risk-list li {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 13px;
  color: var(--muted);
}

.risk-list li.warn {
  border-color: #ffe0b5;
  background: #fff7ea;
  color: #a66a12;
}

.risk-list li.risk {
  border-color: #ffc9c9;
  background: #fff1f1;
  color: #b04545;
}

.guide {
  font-size: 14px;
  color: #2b3a55;
  line-height: 1.6;
}

.fab-group {
  position: sticky;
  bottom: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.fab {
  padding: 10px 16px;
  border-radius: 999px;
  background: #1bbf9a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(27, 191, 154, 0.3);
}

.fab.secondary {
  background: #ffffff;
  color: #1bbf9a;
  border: 1px solid #dff5ef;
}

@media (max-width: 900px) {
  .glass-card.wide {
    grid-column: span 1;
  }
}

.rank-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  display: grid;
  gap: 8px;
}

.rank-list li {
  list-style: none;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
}

.rank-list li.top {
  color: #0f7a5a;
  border-color: #dff5ef;
  background: #f2fbf7;
  font-weight: 600;
}

.list {
  margin: 12px 0 0;
  padding-left: 18px;
}

code {
  color: #c48c1b;
}

@media (max-width: 1024px) {
  .appbar {
    padding-inline: 24px;
  }

  .content {
    padding-inline: 24px;
  }
}

@media (max-width: 720px) {
  body.has-shell {
    padding: 0;
  }

  .shell {
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .sidebar {
    inset: 8px auto 8px 8px;
    width: min(344px, calc(100vw - 16px));
    border-radius: 22px;
  }

  .content {
    padding: 18px 16px 32px;
  }

  .appbar {
    min-height: 68px;
    padding: 11px 16px;
    gap: 12px;
  }

  .appbar-right {
    flex: 0 0 auto;
    gap: 8px;
  }

  .appbar-right > .tag {
    display: none;
  }

  .appbar-sub {
    display: none;
  }

  .appbar-title {
    max-width: 38vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .onboarding-steps {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding: 20px;
  }
}

@media (max-width: 460px) {
  .appbar {
    padding-inline: 12px;
  }

  .appbar-heading {
    gap: 10px;
  }

  .menu-trigger {
    min-width: 44px;
    width: 44px;
    height: 44px;
  }

  .appbar-title {
    max-width: 30vw;
    font-size: 17px;
  }

  .account-switcher summary {
    padding-inline: 8px;
  }

  .account-switcher .welcome {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .menu-trigger {
    transition: none;
  }
}



.dashboard-mobile-shell {
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-toolbar-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-toolbar-btn {
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 20px;
  background: #e8f7f4;
  color: #0b9d87;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.dashboard-alert-btn {
  position: relative;
}

.dashboard-alert-btn::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0b9d87;
  box-shadow: 0 0 0 4px rgba(11, 157, 135, 0.12);
}

.dashboard-profile-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #eef2f6;
}

.dashboard-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1bbf9a, #4f9cff);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}

.dashboard-profile-gear {
  font-size: 34px;
  color: #7c8aa0;
  line-height: 1;
}

.dashboard-summary-board {
  padding: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, #edf5f7 0%, #f4f7fb 100%);
  border: 1px solid rgba(211, 224, 232, 0.96);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.065);
}

.dashboard-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  background: #ffffff;
  border-bottom: 1px solid #e5edf2;
}

.dashboard-blog-switch {
  flex: 1;
}

.dashboard-blog-switch select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  color: #1a2533;
  outline: none;
  letter-spacing: -0.04em;
}

.dashboard-summary-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-blog-register {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 420px) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  background: #f8fbfd;
  border-bottom: 1px solid #e5edf2;
}

.dashboard-blog-register strong {
  display: block;
  color: #152235;
  font-size: 15px;
  margin-bottom: 4px;
}

.dashboard-blog-register span {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-blog-register input {
  width: 100%;
  border: 1px solid #dbe6ee;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  background: #ffffff;
}

#dashboard-blog-register-status {
  padding: 8px 28px 16px;
  background: #f8fbfd;
  border-bottom: 1px solid #e5edf2;
}

#dashboard-blog-register-status[data-tone="good"] {
  color: #05876e;
}

#dashboard-blog-register-status[data-tone="warn"] {
  color: #9a6a00;
}

#dashboard-blog-register-status[data-tone="bad"] {
  color: #b3261e;
}

.dashboard-app-launcher {
  padding: 24px 28px 28px;
  background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
  border-bottom: 1px solid #e5edf2;
}

.dashboard-app-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid rgba(27, 191, 154, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 20%, rgba(27, 191, 154, 0.14), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #edf9f6 100%);
}

.dashboard-app-hero .eyebrow {
  margin: 0 0 8px;
  color: #0b9d87;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-app-hero h2 {
  margin: 0;
  color: #152235;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.dashboard-app-hero p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dashboard-app-section + .dashboard-app-section {
  margin-top: 22px;
}

.dashboard-app-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.dashboard-app-section-head h3 {
  margin: 0;
  color: #152235;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.dashboard-app-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-app-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  min-height: 128px;
  padding: 18px;
  border: 1px solid #e4edf3;
  border-radius: 22px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.055);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(27, 191, 154, 0.5);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.095);
}

.dashboard-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #12caa2, #43a3ff);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.dashboard-app-body {
  min-width: 0;
}

.dashboard-app-title,
.dashboard-app-summary {
  display: block;
}

.dashboard-app-title {
  color: #162235;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.dashboard-app-summary {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  word-break: keep-all;
}

.dashboard-app-status {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f7f4;
  color: #07957f;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-summary-date {
  font-size: 16px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.dashboard-refresh-chip {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: none;
  background: #e8f7f4;
  color: #0b9d87;
  font-size: 28px;
  cursor: pointer;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #ffffff;
}

.dashboard-stat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 18px 20px;
  border-right: 1px solid #e7edf3;
  border-bottom: 1px solid #e7edf3;
  background: rgba(255, 255, 255, 0.82);
}

.dashboard-stat-card:nth-child(3n) {
  border-right: none;
}

.dashboard-stat-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: #edf2f6;
  color: #0b9d87;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  flex: 0 0 auto;
}

.dashboard-stat-body {
  min-width: 0;
}

.dashboard-stat-body.right {
  margin-left: auto;
  text-align: right;
}

.dashboard-stat-value {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  color: #1d2736;
  line-height: 1.2;
  word-break: keep-all;
  letter-spacing: -0.03em;
}

.dashboard-stat-label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

#index-grade.master,
#index-grade.good,
#index-grade.ok,
#index-grade.warn,
#index-grade.bad,
#index-grade.neutral {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 24px;
  display: block;
}

#index-grade.master,
#index-grade.good {
  color: #ff5c76;
}

#index-grade.ok,
#index-grade.warn {
  color: #2f6fd6;
}

#index-grade.bad {
  color: #b04545;
}

#index-grade.neutral {
  color: #6b7a90;
}

.dashboard-distribution-panel,
.dashboard-trend-panel {
  border-radius: 24px;
}

.diagnosis-distribution-panel {
  margin-top: 20px;
}

.dashboard-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  gap: 16px;
}

.dashboard-distribution-chart {
  display: grid;
  gap: 3px;
  padding: 10px 84px 8px;
}

.dashboard-distribution-row {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.dashboard-distribution-segment {
  width: var(--pyramid-width);
  position: relative;
  transition: width 0.2s ease, filter 0.2s ease;
}

.dashboard-distribution-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
}

.dashboard-distribution-bar small {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.82;
}

.dashboard-distribution-bar.top {
  background: #f93b54;
}

.dashboard-distribution-bar.high {
  background: #ef8892;
}

.dashboard-distribution-bar.mid {
  background: #5aa5eb;
}

.dashboard-distribution-bar.base {
  background: #3a3a3a;
}

.dashboard-distribution-pointer {
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translate(100%, -50%);
  z-index: 3;
  pointer-events: none;
}

.dashboard-distribution-pointer span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.18);
  white-space: nowrap;
}

.dashboard-distribution-pointer::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #0f766e;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 2px;
}

.dashboard-distribution-row.active .dashboard-distribution-segment {
  filter: saturate(1.08) brightness(1.02);
}

.dashboard-distribution-row.active .dashboard-distribution-bar {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  outline: 3px solid rgba(15, 118, 110, 0.2);
  outline-offset: 2px;
}

.dashboard-trend-wrap {
  margin-bottom: 0;
}

.dashboard-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-detail-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
}

.dashboard-detail-label {
  font-size: 13px;
  color: var(--muted);
}

.dashboard-detail-value {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
  color: #233047;
}

.dashboard-detail-sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.dashboard-hidden-meta {
  display: none;
}

@media (max-width: 1200px) {
  .dashboard-insight-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-stat-card:nth-child(3n) {
    border-right: 1px solid #e7edf3;
  }

  .dashboard-stat-card:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 720px) {
  .dashboard-mobile-shell {
    padding: 0;
    border-radius: 0;
  }

  .dashboard-toolbar-btn {
    width: 52px;
    height: 52px;
    font-size: 22px;
    border-radius: 16px;
  }

  .dashboard-profile-pill {
    gap: 10px;
    padding: 8px 12px;
  }

  .dashboard-profile-avatar {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }

  .dashboard-profile-gear {
    font-size: 26px;
  }

  .dashboard-summary-head {
    padding: 18px 18px 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-summary-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .dashboard-blog-register {
    grid-template-columns: 1fr;
    padding: 16px 18px;
  }

  .dashboard-app-launcher {
    padding: 18px;
  }

  .dashboard-app-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
    border-radius: 20px;
  }

  .dashboard-app-hero .btn {
    width: 100%;
    justify-content: center;
  }

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

  .dashboard-app-card {
    min-height: 118px;
    padding: 16px;
    border-radius: 18px;
  }

  .dashboard-app-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 16px;
  }

  #dashboard-blog-register-status {
    padding: 8px 18px 14px;
  }

  .dashboard-blog-switch select {
    font-size: 18px;
  }

  .dashboard-summary-date {
    font-size: 14px;
  }

  .dashboard-refresh-chip {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .dashboard-stat-card {
    min-height: 110px;
    padding: 16px;
    gap: 12px;
  }

  .dashboard-stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 24px;
  }

  .dashboard-stat-value,
  #index-grade.master,
  #index-grade.good,
  #index-grade.ok,
  #index-grade.warn,
  #index-grade.bad,
  #index-grade.neutral {
    font-size: 16px;
  }

  .dashboard-stat-label {
    font-size: 12px;
  }

  .dashboard-distribution-bar {
    min-height: 36px;
    font-size: 13px;
  }

  .dashboard-distribution-chart {
    padding-right: 50px;
    padding-left: 10px;
  }

  .dashboard-distribution-pointer {
    right: -8px;
  }

  .dashboard-distribution-pointer span {
    min-height: 26px;
    padding: 0 10px;
    font-size: 11px;
  }

  .dashboard-distribution-pointer span {
    width: 28px;
    padding: 5px;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
  }

  .dashboard-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .dashboard-app-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-app-card {
    min-height: 104px;
  }

  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-card,
  .dashboard-stat-card:nth-child(2n),
  .dashboard-stat-card:nth-child(3n) {
    border-right: none;
  }
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  html:has(body.has-shell),
  body.has-shell {
    height: 100%;
  }

  .auth-shell {
    align-items: start;
    padding: 18px 12px;
  }

  .auth-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .auth-brand {
    margin-bottom: 18px;
  }

  .auth-brand img {
    width: min(210px, 82%);
  }

  .hero h1 {
    font-size: clamp(24px, 8vw, 30px);
    line-height: 1.18;
  }

  .auth-feature-list li {
    padding: 10px 11px 10px 32px;
    font-size: 14px;
  }

  .auth-provider-list {
    padding: 12px;
    border-radius: 20px;
  }

  .auth-provider {
    width: 100%;
    max-width: 320px;
  }

  .shell {
    min-width: 0;
  }

  .sidebar {
    max-width: calc(100vw - 16px);
    padding: 16px 14px 20px;
  }

  .sidebar-brand img {
    max-width: 210px;
  }

  .sidebar-backdrop {
    backdrop-filter: blur(8px);
  }

  .workspace,
  .content,
  .panel,
  .glass-panel,
  .dashboard-summary-board,
  .dashboard-stat-card,
  .dashboard-detail-card {
    min-width: 0;
  }

  .content {
    gap: 14px;
    padding: 14px 12px 28px;
    scrollbar-gutter: auto;
  }

  .appbar {
    min-height: 62px;
    padding: 9px 12px;
    gap: 10px;
  }

  .appbar-heading {
    flex: 1 1 auto;
    min-width: 0;
  }

  .menu-trigger {
    min-width: 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .appbar-title {
    max-width: 46vw;
    font-size: 18px;
  }

  .appbar-right {
    min-width: 0;
  }

  .account-switcher summary {
    min-height: 42px;
    padding: 7px 9px;
    gap: 6px;
  }

  .account-switcher .welcome {
    max-width: 78px;
  }

  .account-switch-menu {
    position: fixed;
    top: 64px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }

  .panel,
  .glass-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

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

  .panel-grid,
  .guide-grid,
  .glass-grid,
  .kpi-row,
  .keyword-mix-grid,
  .checkbox-grid,
  .dashboard-insight-grid,
  .dashboard-detail-grid {
    grid-template-columns: 1fr;
  }

  .glass-card.wide {
    grid-column: auto;
  }

  .form,
  .form.compact,
  .place-rank-form,
  .rank-monitor-form,
  .blog-draft-form,
  .keyword-mix-form,
  .dashboard-blog-register {
    grid-template-columns: 1fr;
  }

  .form input,
  .form select,
  .form textarea,
  .blog-draft-form input,
  .blog-draft-form textarea,
  .dashboard-blog-register input {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .form button.btn,
  .form .btn,
  .action-row .btn,
  .blog-draft-form .action-row .btn,
  .dashboard-blog-register .btn,
  .place-live-controls .btn {
    width: 100%;
    justify-content: center;
  }

  .blog-draft-form label,
  .blog-draft-form .action-row {
    padding: 14px;
  }

  .blog-draft-form textarea,
  .draft-panel textarea,
  .keyword-mix-group textarea,
  .keyword-mix-output {
    min-height: 150px;
  }

  .bulk-table-wrap,
  .table-wrap,
  .keyword-history-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .bulk-table,
  .table-wrap table {
    min-width: 640px;
  }

  .bulk-table th,
  .bulk-table td,
  .table-wrap th,
  .table-wrap td {
    padding: 9px 10px;
    white-space: nowrap;
  }

  .output,
  pre,
  code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .chart-wrap,
  .dashboard-trend-wrap {
    min-width: 0;
    overflow-x: auto;
  }

  canvas {
    max-width: 100%;
  }

  .fab-group {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .fab {
    text-align: center;
  }

  .modal-backdrop {
    padding: 14px;
  }

  .modal-card {
    width: min(100%, 520px);
    max-height: calc(100dvh - 28px);
    overflow: auto;
    border-radius: 22px;
  }
}

@media (max-width: 380px) {
  .content {
    padding-inline: 10px;
  }

  .appbar-title {
    max-width: 38vw;
    font-size: 16px;
  }

  .account-switcher .welcome {
    max-width: 64px;
  }

  .panel,
  .glass-panel,
  .dashboard-detail-card {
    padding: 14px;
  }

  .dashboard-stat-card {
    padding: 14px;
  }

  .dashboard-stat-icon {
    width: 52px;
    height: 52px;
  }
}
