﻿@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap");
:root {
  --bg: #f6f7f4;
  --panel: #ffffff;
  --ink: #171a16;
  --muted: #6c7269;
  --line: #dfe4da;
  --line-strong: #cbd3c3;
  --accent: #2f6f4e;
  --accent-soft: #e2efe6;
  --warn: #a66c1a;
  --error: #a13d3d;
  --success: #2f6f4e;
  --shadow: 0 24px 60px -35px rgba(28, 42, 31, 0.34);
  color-scheme: light;
  font-family: "Noto Sans KR", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(246, 247, 244, 0.94)),
    radial-gradient(circle at 18% 12%, rgba(47, 111, 78, 0.10), transparent 28rem),
    var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.auth-body {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  padding: 32px;
  background:
    linear-gradient(135deg, #f8faf7 0%, #eef2ef 48%, #fbfaf6 100%),
    repeating-linear-gradient(90deg, rgba(23, 26, 22, 0.035) 0 1px, transparent 1px 74px);
}

.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.78), rgba(255,255,255,0.12) 42%, rgba(23,26,22,0.06)),
    repeating-linear-gradient(0deg, rgba(23, 26, 22, 0.035) 0 1px, transparent 1px 56px);
  opacity: 0.72;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  min-height: calc(100dvh - 64px);
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(320px, 0.86fr) minmax(360px, 1.14fr);
  gap: 28px;
}

.auth-shell::after {
  content: none;
}

.auth-panel {
  min-height: 620px;
  padding: 40px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow:
    0 36px 90px -54px rgba(23, 26, 22, 0.68),
    inset 0 1px 0 rgba(255,255,255,0.76);
  backdrop-filter: blur(22px);
}

.auth-panel-top,
.auth-brand,
.auth-status,
.field-label-row,
.auth-submit {
  display: flex;
  align-items: center;
}

.auth-panel-top {
  justify-content: space-between;
  gap: 18px;
}

.auth-brand {
  gap: 13px;
  min-width: 0;
}

.auth-brand-mark {
  width: 46px;
  height: 46px;
  border-color: rgba(23, 26, 22, 0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}

.auth-domain {
  margin: -4px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-status {
  min-height: 34px;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(203, 211, 195, 0.8);
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  color: var(--muted);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.auth-status span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: status-pulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.auth-title-block {
  align-self: center;
  padding: 58px 0 48px;
}

.auth-kicker {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.auth-title-block p:last-child {
  max-width: 31ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.auth-panel h1,
.rail-head h1,
.workspace-header h2 {
  margin: 0;
  letter-spacing: 0;
}

.auth-panel h1 {
  max-width: 10.6ch;
  font-size: 56px;
  line-height: 0.98;
  font-weight: 900;
  word-break: keep-all;
}

.auth-form {
  margin-top: 0;
  display: grid;
  gap: 16px;
}

.field-label-row {
  justify-content: space-between;
  gap: 12px;
}

.field-label-row span {
  color: var(--muted);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-field input[type="password"] {
  height: 54px;
  border-radius: 8px;
  border-color: rgba(203, 211, 195, 0.92);
  background: rgba(255,255,255,0.82);
  padding: 0 16px;
}

.auth-field input[type="password"]::placeholder {
  color: rgba(108, 114, 105, 0.7);
}

.auth-field input[type="password"]:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px rgba(47, 111, 78, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.86);
}

.auth-submit {
  min-height: 54px;
  justify-content: space-between;
  gap: 16px;
  border-radius: 8px;
  padding: 0 13px 0 19px;
  box-shadow: 0 18px 35px -26px rgba(23, 26, 22, 0.76);
}

.auth-submit i {
  position: relative;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease;
}

.auth-submit i::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(-1px) rotate(45deg);
}

.auth-submit:hover i {
  border-color: rgba(255,255,255,0.48);
  transform: translateX(2px);
}

.auth-visual {
  min-height: 620px;
  display: grid;
  align-items: center;
}

.visual-frame {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  padding: 28px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, #252a25 0%, #12150f 58%, #27382d 100%);
  box-shadow:
    0 40px 95px -55px rgba(23, 26, 22, 0.86),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.visual-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 34%, rgba(255,255,255,0.04)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 52px);
  opacity: 0.68;
}

.visual-topbar,
.visual-metrics,
.signal-board,
.visual-footer {
  position: relative;
}

.visual-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.visual-topbar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}

.visual-topbar b {
  margin-left: auto;
  color: rgba(255,255,255,0.68);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.visual-metrics {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 10px;
}

.visual-stat {
  min-height: 118px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.065);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.visual-stat span,
.signal-row span,
.visual-footer span {
  color: rgba(255,255,255,0.58);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.visual-stat strong {
  color: #fff;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 36px;
  line-height: 0.9;
}

.visual-stat:not(.visual-stat-wide) strong {
  font-size: 24px;
}

.signal-board {
  align-self: center;
  display: grid;
  gap: 13px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}

.signal-row {
  display: grid;
  grid-template-columns: 54px 1fr 28px;
  gap: 13px;
  align-items: center;
}

.signal-row i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.signal-row i::before {
  content: "";
  width: var(--w);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(168, 208, 181, 0.88), rgba(255,255,255,0.8));
  transform-origin: left;
  animation: signal-fill 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--d);
}

.signal-row b {
  color: rgba(255,255,255,0.82);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  text-align: right;
}

.visual-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.visual-footer i {
  width: 48px;
  height: 2px;
  background: rgba(168, 208, 181, 0.8);
}

.field-block {
  display: grid;
  gap: 9px;
}

label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

input[type="password"],
input[type="number"],
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

input[type="password"],
input[type="number"] {
  height: 46px;
  padding: 0 14px;
}

textarea {
  min-height: 190px;
  resize: vertical;
  padding: 14px;
  line-height: 1.6;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 111, 78, 0.12);
}

.field-error {
  margin: 0;
  color: var(--error);
  font-size: 13px;
}

.primary-button,
.ghost-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-button {
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.primary-button:hover {
  background: #263024;
}

.primary-button:active,
.ghost-button:active,
.tab-button:active {
  transform: translateY(1px) scale(0.99);
}

.dashboard-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
}

.control-rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 30px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  background: rgba(255,255,255,0.74);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.rail-head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.rail-head h1 {
  font-size: 22px;
  line-height: 1.05;
}

.collect-form {
  display: grid;
  align-content: start;
  gap: 22px;
}

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

.toggle-pill {
  cursor: pointer;
}

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

.toggle-pill span {
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  transition: all 160ms ease;
}

.toggle-pill input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.split-fields {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 12px;
  align-items: end;
}

.switch-row {
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
}

.switch-row input:checked + span {
  color: var(--accent);
}

.full-button {
  width: 100%;
}

.rail-foot {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.rail-foot a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.workspace {
  min-width: 0;
  padding: 34px clamp(22px, 4vw, 58px) 56px;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.workspace-header h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1;
}

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

.ghost-button {
  padding: 0 16px;
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  font-weight: 800;
}

.ghost-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid;
  background: #fff;
  font-size: 14px;
}

.error-alert {
  border-color: rgba(161, 61, 61, 0.28);
  color: var(--error);
}

.warning-alert {
  background: #fff7e8;
  border: 1px solid #fcd9a5;
  color: #92400e;
}

.success-alert {
  border-color: rgba(47, 111, 78, 0.28);
  color: var(--success);
}

.warn-alert {
  display: grid;
  gap: 6px;
  border-color: rgba(166, 108, 26, 0.28);
  color: var(--warn);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.metric-block {
  min-height: 118px;
  padding: 20px 22px;
  display: grid;
  align-content: space-between;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,0.58);
}

.metric-block:last-child {
  border-right: 0;
}

.metric-block span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-block strong {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.9;
  letter-spacing: 0;
}

.metric-block em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.service-panel,
.results-panel,
.empty-state {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-panel {
  padding: 22px;
  margin-bottom: 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 18px;
}

.section-heading h3 {
  margin: 0;
  font-size: 18px;
}

.section-heading span {
  color: var(--muted);
  font-size: 12px;
}

.service-bars {
  display: grid;
  gap: 12px;
}

.service-row {
  display: grid;
  grid-template-columns: 72px 1fr 48px;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}

.service-row b {
  text-align: right;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.bar-track {
  height: 8px;
  background: #e8ece3;
  overflow: hidden;
}

.bar-track i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: grow-bar 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.empty-state {
  min-height: 310px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 42px;
}

.empty-state h3 {
  margin: 18px 0 8px;
  font-size: 24px;
}

.empty-state p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.empty-line {
  width: 74px;
  height: 2px;
  background: var(--accent);
}

.results-panel {
  overflow: hidden;
}

.tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
}

.tab-button {
  min-width: 116px;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.tab-button span {
  margin-left: 8px;
  color: var(--accent);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

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

.tab-button.active span {
  color: #b7d7c4;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  background: #fbfcf9;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

td {
  background: rgba(255,255,255,0.58);
}

tbody tr:hover td {
  background: #f3f7ef;
}

tbody tr.is-remembered td {
  background: #edf6ef;
}

.memory-col,
.memory-cell {
  width: 64px;
  text-align: center;
}

.memory-check {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.memory-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.memory-check span {
  width: 22px;
  height: 22px;
  display: block;
  border: 1px solid var(--line-strong);
  background: #fff;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.memory-check span::after {
  content: "";
  width: 9px;
  height: 5px;
  display: block;
  margin: 6px auto 0;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(-45deg);
}

.memory-check input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
}

.memory-check input:checked + span::after {
  opacity: 1;
}

.memory-check:active span {
  transform: scale(0.92);
}

.url-cell a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.empty-cell {
  height: 130px;
  text-align: center;
  color: var(--muted);
}

.loading-mask {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(246, 247, 244, 0.82);
  backdrop-filter: blur(16px);
}

.loading-mask.visible {
  display: grid;
}

.loading-panel {
  width: min(640px, calc(100vw - 36px));
  padding: 30px;
  display: grid;
  gap: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.94), rgba(248,250,247,0.9));
  border: 1px solid rgba(255,255,255,0.86);
  border-radius: 8px;
  box-shadow:
    0 34px 80px -48px rgba(23, 26, 22, 0.72),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.loading-orbit {
  width: 54px;
  height: 54px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.loading-orbit::before {
  content: "";
  width: 34px;
  height: 34px;
  border: 1px solid rgba(47, 111, 78, 0.24);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: loading-spin 920ms linear infinite;
}

.loading-orbit span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.loading-orbit span:nth-child(1) { transform: translate(0, -25px); opacity: 0.95; }
.loading-orbit span:nth-child(2) { transform: translate(22px, 12px); opacity: 0.55; }
.loading-orbit span:nth-child(3) { transform: translate(-22px, 12px); opacity: 0.35; }

.loading-copy h3 {
  margin: -4px 0 8px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.08;
  word-break: keep-all;
}

.loading-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  word-break: keep-all;
}

.loading-warning {
  padding: 14px 16px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(166, 108, 26, 0.24);
  border-radius: 8px;
  background: #fff7e8;
  color: #7a4b10;
}

.loading-warning strong {
  font-size: 14px;
}

.loading-warning span {
  color: #8d6630;
  font-size: 13px;
  line-height: 1.55;
  word-break: keep-all;
}

.loading-warning.is-error {
  border-color: rgba(161, 61, 61, 0.3);
  background: #fff1ef;
  color: var(--error);
}

.loading-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.loading-meta div {
  min-height: 78px;
  padding: 14px;
  display: grid;
  align-content: space-between;
  border-right: 1px solid var(--line);
}

.loading-meta div:last-child {
  border-right: 0;
}

.loading-meta span,
.loading-steps span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.loading-meta strong {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 24px;
}

.loading-keywords {
  min-height: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.loading-keywords span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.loading-steps {
  display: grid;
  gap: 10px;
}

.loading-steps div {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 34px;
}

.loading-steps i {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  transition: background 240ms ease, border-color 240ms ease;
}

.loading-steps div.active i {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 5px #dfeee3;
}

.loading-steps div.active span {
  color: var(--ink);
}

.loading-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.loading-progress-row strong {
  color: var(--accent);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
}

.loading-progress {
  height: 10px;
  overflow: hidden;
  background: #e7ece5;
  border-radius: 999px;
}

.loading-progress i {
  width: 0%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--accent), #b7d7c4);
  border-radius: inherit;
  transition: width 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.skeleton-line,
.skeleton-table i {
  display: block;
  background: linear-gradient(90deg, #eef1ea 0%, #f9faf6 45%, #eef1ea 90%);
  background-size: 220% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.skeleton-line {
  width: 62%;
  height: 16px;
  margin-bottom: 14px;
}

.skeleton-line.wide {
  width: 88%;
}

.skeleton-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.skeleton-table i {
  height: 36px;
}

@keyframes shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@keyframes grow-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes loading-spin {
  to { transform: rotate(360deg); }
}

@keyframes loading-progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(280%); }
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.48; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes signal-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 980px) {
  .auth-shell,
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .auth-body {
    align-items: start;
  }

  .auth-shell {
    width: min(100%, 720px);
    min-height: auto;
    gap: 18px;
  }

  .auth-shell::after {
    display: none;
  }

  .auth-panel {
    min-height: auto;
  }

  .auth-title-block {
    padding: 54px 0 40px;
  }

  .auth-panel h1 {
    max-width: 10ch;
    font-size: 48px;
  }

  .auth-visual,
  .visual-frame {
    min-height: 340px;
  }

  .visual-frame {
    padding: 22px;
  }

  .control-rail {
    position: static;
    height: auto;
  }

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

@media (max-width: 640px) {
  .auth-body,
  .workspace,
  .control-rail {
    padding: 18px;
  }

  .auth-panel {
    padding: 28px;
  }

  .loading-panel {
    padding: 22px;
  }

  .loading-meta {
    grid-template-columns: 1fr;
    border-top-color: var(--line);
  }

  .loading-meta div {
    min-height: 64px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .loading-meta div:last-child {
    border-bottom: 0;
  }

  .auth-panel-top {
    align-items: flex-start;
  }

  .auth-brand-mark {
    width: 42px;
    height: 42px;
  }

  .auth-status {
    display: none;
  }

  .auth-title-block {
    padding: 46px 0 34px;
  }

  .auth-panel h1 {
    max-width: 9ch;
    font-size: 38px;
  }

  .auth-title-block p:last-child {
    font-size: 15px;
  }

  .auth-submit {
    min-height: 52px;
  }

  .auth-visual {
    display: none;
  }

  .workspace-header,
  .section-heading {
    display: grid;
  }

  .metric-grid,
  .split-fields,
  .service-row {
    grid-template-columns: 1fr;
  }

  .metric-block {
    min-height: 104px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 420px) {
  .auth-body {
    padding: 14px;
  }

  .auth-panel {
    padding: 22px;
  }

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

  .field-label-row span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-status span,
  .signal-row i::before,
  .loading-orbit::before,
  .loading-progress i {
    animation: none;
  }

  .auth-submit i {
    transition: none;
  }
}

/* Dashboard redesign */
.dashboard-body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 76% 14%, rgba(39, 174, 96, 0.08), transparent 28rem),
    linear-gradient(135deg, #f8fafb 0%, #f4f7f5 52%, #fbfcfd 100%);
  color: #171b22;
}

.dashboard-body .dashboard-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.dashboard-body .control-rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 24px 22px;
  display: grid;
  grid-template-rows: 1fr;
  gap: 0;
  background: rgba(255,255,255,0.86);
  border-right: 1px solid #e8edf0;
  box-shadow: 20px 0 55px -46px rgba(31, 41, 55, 0.52);
  backdrop-filter: blur(18px);
  overflow-y: auto;
}

.dashboard-body .rail-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-body .brand-mark {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(145deg, #086c3b, #0f8a50);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 14px 26px -20px rgba(10, 122, 70, 0.75);
}

.dashboard-body .eyebrow {
  margin: 0 0 4px;
  color: #0b7d48;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.dashboard-body .rail-head h1 {
  font-size: 20px;
  line-height: 1.15;
}

.dashboard-body .collect-form {
  align-content: start;
  gap: 24px;
}

.dashboard-body label {
  color: #212934;
  font-size: 13px;
  font-weight: 850;
}

.keyword-field {
  gap: 11px;
}

.keyword-editor {
  overflow: hidden;
  border: 1px solid #e3e9ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px -30px rgba(31, 41, 55, 0.35);
}

.dashboard-body #keywords {
  min-height: 152px;
  resize: vertical;
  border: 0;
  border-radius: 0;
  padding: 0;
  background:
    linear-gradient(#edf7f1, #edf7f1) 0 0 / 100% 40px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 39px, #edf1f3 39px 40px);
  color: #26313d;
  font-weight: 750;
  line-height: 40px;
  padding-left: 16px;
  padding-right: 34px;
}

.dashboard-body #keywords:focus {
  box-shadow: inset 0 0 0 2px rgba(21, 142, 82, 0.18);
}

.add-keyword-button {
  height: 42px;
  border: 1px solid #e3e9ed;
  border-radius: 8px;
  background: #fff;
  color: #2b3440;
  cursor: pointer;
  font-weight: 850;
  box-shadow: 0 12px 26px -24px rgba(31, 41, 55, 0.5);
}

.add-keyword-button::before {
  content: "+";
  margin-right: 10px;
  font-size: 20px;
  font-weight: 500;
}

.dashboard-body .toggle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-body .toggle-pill span {
  height: 72px;
  display: grid;
  gap: 7px;
  place-items: center;
  border: 1px solid #e3e9ed;
  border-radius: 8px;
  background: #fff;
  color: #0d7a47;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 14px 28px -28px rgba(31, 41, 55, 0.45);
}

.dashboard-body .toggle-pill span i {
  width: 23px;
  height: 23px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.dashboard-body .service-toggle-cafe span i {
  border-radius: 999px 999px 8px 8px;
}

.dashboard-body .service-toggle-kin span i {
  border-radius: 999px;
}

.dashboard-body .toggle-pill input:checked + span {
  border-color: rgba(18, 142, 82, 0.22);
  background: #edf8f2;
  color: #0b7d48;
}

.dashboard-body .split-fields {
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 12px;
}

.dashboard-body input[type="number"] {
  height: 48px;
  border-radius: 8px;
  border-color: #dfe7eb;
  background: #fff;
}

.dashboard-body .switch-row {
  height: 48px;
  border-radius: 8px;
  border-color: #cce6d8;
  background: #edf8f2;
  color: #0b7d48;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-body .primary-button {
  min-height: 48px;
  border-radius: 8px;
  background: linear-gradient(145deg, #0b7d48, #128e52);
  box-shadow: 0 18px 34px -24px rgba(10, 122, 70, 0.76);
}

.dashboard-body .primary-button::before {
  content: "";
  width: 0;
  height: 0;
  margin-right: 10px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
}

.dashboard-body .rail-foot {
  padding-top: 20px;
  border-top: 0;
}

.dashboard-body .rail-foot a {
  color: #667381;
  font-size: 13px;
}

.dashboard-body .workspace {
  min-width: 0;
  padding: 34px clamp(24px, 4vw, 52px) 42px;
}

.dashboard-body .workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 26px;
}

.result-status {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #27313d;
  font-size: 14px;
  font-weight: 760;
}

.result-status span {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #45b982;
}

.result-status span::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.result-status.pending span {
  background: #cfd8de;
}

.dashboard-body .workspace-header h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
  word-break: keep-all;
}

.dashboard-body .workspace-header h2 i {
  width: 28px;
  height: 28px;
  display: inline-block;
  background:
    radial-gradient(circle at 50% 8%, #45b982 0 4px, transparent 5px),
    radial-gradient(circle at 86% 44%, #45b982 0 3px, transparent 4px),
    radial-gradient(circle at 32% 66%, #45b982 0 5px, transparent 6px);
}

.dashboard-body .export-actions {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-body .ghost-button {
  min-height: 42px;
  border-radius: 8px;
  border-color: #e0e8ed;
  background: rgba(255,255,255,0.88);
  color: #25303b;
  box-shadow: 0 12px 26px -24px rgba(31, 41, 55, 0.55);
}

.download-button::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-right: 9px;
  display: inline-block;
  border-bottom: 2px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) 6px 0 / 2px 10px no-repeat,
    linear-gradient(135deg, transparent 45%, currentColor 46% 54%, transparent 55%) 3px 6px / 9px 9px no-repeat;
}

.dashboard-body .alert {
  border-radius: 8px;
}

.dashboard-body .metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  border: 0;
  margin-bottom: 20px;
}

.dashboard-body .metric-block {
  min-height: 156px;
  padding: 24px;
  display: grid;
  align-content: space-between;
  border: 1px solid #e5ebef;
  border-radius: 16px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 22px 50px -42px rgba(31, 41, 55, 0.62);
}

.metric-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.metric-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  color: var(--metric);
  border: 2px solid currentColor;
}

.icon-search {
  border-radius: 999px;
  position: relative;
}

.icon-search::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  right: -6px;
  bottom: 1px;
  background: currentColor;
  transform: rotate(45deg);
}

.icon-bars {
  border: 0;
  background:
    linear-gradient(currentColor, currentColor) 2px 13px / 4px 9px no-repeat,
    linear-gradient(currentColor, currentColor) 9px 7px / 4px 15px no-repeat,
    linear-gradient(currentColor, currentColor) 16px 2px / 4px 20px no-repeat;
  border-bottom: 2px solid currentColor;
}

.icon-pie {
  border-radius: 999px;
  background: conic-gradient(currentColor 0 90deg, transparent 90deg);
}

.icon-trend {
  border: 0;
  background:
    linear-gradient(135deg, transparent 43%, currentColor 44% 56%, transparent 57%) 0 9px / 24px 10px no-repeat,
    radial-gradient(circle, currentColor 0 3px, transparent 4px) 0 14px / 8px 8px no-repeat,
    radial-gradient(circle, currentColor 0 3px, transparent 4px) 16px 0 / 8px 8px no-repeat;
}

.tone-green { --metric: #31ad6d; }
.tone-blue { --metric: #347fff; }
.tone-violet { --metric: #9747ff; }
.tone-orange { --metric: #ff8617; }

.dashboard-body .metric-block span {
  color: #293342;
  font-size: 13px;
  font-weight: 850;
}

.metric-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.dashboard-body .metric-block strong {
  font-size: 34px;
  line-height: 1;
}

.dashboard-body .metric-block em {
  color: #334155;
  font-size: 14px;
}

.metric-spark {
  height: 32px;
  display: flex;
  align-items: end;
  gap: 0;
}

.metric-spark i {
  height: 2px;
  flex: 1;
  background: var(--metric);
  opacity: 0.9;
}

.metric-spark i:nth-child(1) { height: 7px; opacity: 0.45; }
.metric-spark i:nth-child(2) { height: 12px; opacity: 0.65; }
.metric-spark i:nth-child(3) { height: 9px; opacity: 0.55; }
.metric-spark i:nth-child(4) { height: 14px; opacity: 0.75; }
.metric-spark i:nth-child(5) { height: 26px; }

.dashboard-body .service-panel,
.dashboard-body .results-panel,
.dashboard-body .empty-state {
  border: 1px solid #e5ebef;
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 24px 58px -48px rgba(31, 41, 55, 0.62);
}

.dashboard-body .service-panel {
  padding: 24px;
  margin-bottom: 22px;
}

.dashboard-body .section-heading {
  margin-bottom: 18px;
}

.dashboard-body .section-heading h3 {
  font-size: 20px;
}

.service-distribution {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.service-donut {
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle, #fff 0 41%, transparent 42%),
    conic-gradient(#31ad6d 0 var(--blog), #78c995 var(--blog) var(--cafe), #b6e2c6 var(--cafe) 360deg);
  box-shadow: inset 0 0 0 1px rgba(10, 122, 70, 0.08);
}

.service-donut span,
.service-donut em {
  color: #657281;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.service-donut strong {
  margin-top: -7px;
  font-size: 26px;
}

.dashboard-body .service-bars {
  gap: 18px;
}

.dashboard-body .service-row {
  grid-template-columns: 66px minmax(0, 1fr) 116px;
  gap: 18px;
}

.dashboard-body .bar-track {
  height: 8px;
  border-radius: 999px;
  background: #edf1f4;
}

.dashboard-body .bar-track i {
  border-radius: inherit;
  background: #31ad6d;
}

.dashboard-body .service-row b {
  color: #334155;
  font-size: 13px;
}

.dashboard-body .service-row b em {
  color: #7a8794;
  font-style: normal;
  font-weight: 650;
}

.dashboard-body .results-panel {
  padding: 22px;
  overflow: hidden;
}

.result-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 0 0 16px;
  background: transparent;
}

.dashboard-body .tabs {
  gap: 10px;
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

.dashboard-body .tab-button {
  min-width: 92px;
  height: 42px;
  border: 1px solid #e5ebef;
  border-radius: 8px;
  background: #fff;
  color: #26313d;
}

.dashboard-body .tab-button.active {
  border-color: #0b7d48;
  background: linear-gradient(145deg, #0b7d48, #15945a);
  color: #fff;
  box-shadow: 0 16px 30px -24px rgba(10, 122, 70, 0.78);
}

.dashboard-body .tab-button span {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(49, 173, 109, 0.1);
  color: #0b7d48;
}

.dashboard-body .tab-button.active span {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.result-tools {
  display: flex;
  gap: 10px;
}

.result-search {
  position: relative;
  width: min(260px, 28vw);
}

.result-search span {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid #9aa7b3;
  border-radius: 999px;
  transform: translateY(-50%);
}

.result-search span::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  background: #9aa7b3;
  transform: rotate(45deg);
}

.result-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 39px;
  border: 1px solid #e0e8ed;
  border-radius: 8px;
  background: #fff;
  color: #26313d;
  outline: 0;
}

.filter-button {
  height: 42px;
  min-width: 84px;
  border: 1px solid #e0e8ed;
  border-radius: 8px;
  background: #fff;
  color: #26313d;
  cursor: pointer;
  font-weight: 850;
}

.dashboard-body .table-wrap {
  border-top: 1px solid #e8edf0;
}

.dashboard-body table {
  min-width: 1080px;
}

.dashboard-body th,
.dashboard-body td {
  padding: 13px 16px;
  border-bottom: 1px solid #edf1f4;
  font-size: 13px;
}

.dashboard-body th {
  background: rgba(249, 251, 252, 0.92);
  color: #617080;
  font-size: 12px;
}

.dashboard-body td {
  background: #fff;
  color: #334155;
}

.dashboard-body tbody tr:hover td {
  background: #f8fcfa;
}

.dashboard-body tbody tr.is-remembered td {
  background: #f1fbf5;
}

.dashboard-body .field-service-type {
  color: #0b7d48;
  font-weight: 900;
}

.dashboard-body .field-service-type::before {
  content: "";
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 3px;
  background: #d9f2e3;
}

.dashboard-body .url-cell a {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  color: transparent;
  border-radius: 999px;
  text-decoration: none;
}

.dashboard-body .url-cell a::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid #2e85ff;
  border-radius: 999px;
  transform: rotate(-35deg);
}

.dashboard-body .memory-col,
.dashboard-body .memory-cell {
  width: 48px;
}

.dashboard-body .memory-check span {
  border-radius: 6px;
}

.dashboard-body .empty-state {
  min-height: 360px;
}

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

  .result-controls {
    grid-template-columns: 1fr;
  }

  .result-tools {
    justify-content: flex-start;
  }

  .result-search {
    width: min(100%, 360px);
  }
}

@media (max-width: 860px) {
  .dashboard-body .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-body .control-rail {
    position: static;
    height: auto;
  }

  .dashboard-body .workspace {
    padding: 24px 18px 36px;
  }

  .dashboard-body .workspace-header {
    display: grid;
  }

  .service-distribution {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-body .metric-grid,
  .dashboard-body .split-fields,
  .dashboard-body .service-row {
    grid-template-columns: 1fr;
  }

  .dashboard-body .toggle-grid {
    grid-template-columns: repeat(3, minmax(76px, 1fr));
  }

  .dashboard-body .export-actions,
  .result-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .result-search {
    width: 100%;
  }
}

/* Premium dashboard polish */
.dashboard-body {
  --dash-ink: #171b22;
  --dash-muted: #64707d;
  --dash-line: #e4e9ed;
  --dash-line-strong: #cad4dc;
  --dash-accent: #0b7a49;
  --dash-accent-2: #2faf73;
  --dash-surface: rgba(255, 255, 255, 0.94);
  --dash-shadow: 0 28px 70px -54px rgba(20, 32, 42, 0.72);
  background:
    linear-gradient(rgba(17, 24, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 32, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcfd 0%, #f5f8f7 48%, #f8fafb 100%);
  background-size: 48px 48px, 48px 48px, auto;
  overflow-x: hidden;
}

.dashboard-body.is-collecting {
  overflow: hidden;
}

.dashboard-body .dashboard-shell,
.dashboard-body .control-rail,
.dashboard-body .workspace,
.dashboard-body .collect-form,
.dashboard-body .field-block {
  min-width: 0;
}

.dashboard-body .control-rail {
  border-right: 1px solid rgba(202, 212, 220, 0.64);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(249,251,250,0.92)),
    linear-gradient(90deg, rgba(11,122,73,0.045), transparent 44%);
  box-shadow: 18px 0 45px -45px rgba(20, 32, 42, 0.55);
}

.dashboard-body .brand-mark,
.dashboard-body .primary-button,
.dashboard-body .tab-button.active {
  background: linear-gradient(145deg, #075f3a, #0b7a49 52%, #158a58);
}

.dashboard-body .keyword-card,
.dashboard-body .toggle-pill span,
.dashboard-body .service-panel,
.dashboard-body .results-panel,
.dashboard-body .empty-state,
.dashboard-body .metric-block {
  border-color: rgba(202, 212, 220, 0.76);
  border-radius: 8px;
  background: var(--dash-surface);
  box-shadow:
    var(--dash-shadow),
    inset 0 1px 0 rgba(255,255,255,0.86);
}

.dashboard-body .metric-grid {
  gap: 14px;
}

.dashboard-body .metric-block {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-body .metric-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--metric, var(--dash-accent)), rgba(255,255,255,0));
}

.dashboard-body .metric-block:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 122, 73, 0.28);
  box-shadow:
    0 34px 76px -54px rgba(11, 122, 73, 0.56),
    inset 0 1px 0 rgba(255,255,255,0.92);
}

.dashboard-body .metric-head {
  align-items: center;
}

.dashboard-body .metric-value strong,
.dashboard-body .loading-meta strong,
.dashboard-body .loading-progress-row strong {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0;
}

.tone-blue,
.tone-violet {
  --metric: #27756a;
}

.tone-orange {
  --metric: #b97925;
}

.dashboard-body .metric-spark {
  height: 34px;
  align-items: end;
  padding-top: 8px;
  border-top: 1px solid rgba(228, 233, 237, 0.9);
}

.dashboard-body .metric-spark i {
  background: linear-gradient(180deg, var(--metric, var(--dash-accent)), rgba(11,122,73,0.18));
  opacity: 0.88;
}

.dashboard-body .service-panel {
  padding: 26px;
}

.dashboard-body .section-heading h3 {
  color: var(--dash-ink);
  letter-spacing: 0;
}

.service-distribution {
  gap: clamp(18px, 3vw, 34px);
}

.dashboard-body .donut {
  box-shadow:
    inset 0 0 0 1px rgba(11, 122, 73, 0.08),
    0 22px 44px -34px rgba(11, 122, 73, 0.48);
}

.dashboard-body .service-row {
  min-height: 38px;
}

.dashboard-body .bar-track {
  background: #edf2f1;
  box-shadow: inset 0 1px 2px rgba(20, 32, 42, 0.04);
}

.dashboard-body .bar-track i {
  background: linear-gradient(90deg, #0b7a49, #43b57c);
}

.dashboard-body .results-panel {
  padding: 0;
}

.dashboard-body .result-controls {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(228, 233, 237, 0.92);
}

.dashboard-body .tabs {
  overflow-x: auto;
  scrollbar-width: thin;
}

.dashboard-body .tab-button {
  flex: 0 0 auto;
  border-color: rgba(202, 212, 220, 0.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.76);
  transition:
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 200ms cubic-bezier(0.16, 1, 0.3, 1),
    background 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-body .tab-button:active,
.dashboard-body .ghost-button:active,
.dashboard-body .filter-button:active,
.dashboard-body .primary-button:active {
  transform: translateY(1px) scale(0.99);
}

.dashboard-body .table-wrap {
  max-width: 100%;
  border-top: 0;
  overflow: auto;
}

.dashboard-body table {
  border-collapse: separate;
  border-spacing: 0;
}

.dashboard-body th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(248, 250, 251, 0.96);
  color: #5c6876;
  backdrop-filter: blur(14px);
}

.dashboard-body td {
  transition: background 180ms ease, box-shadow 180ms ease;
}

.dashboard-body tbody tr:hover td {
  background: #f6fbf8;
}

.dashboard-body tbody tr.is-remembered td {
  background: #eef9f2;
  box-shadow: inset 0 1px 0 rgba(11,122,73,0.08), inset 0 -1px 0 rgba(11,122,73,0.08);
}

.dashboard-body tbody tr.is-remembered td:first-child {
  box-shadow:
    inset 3px 0 0 var(--dash-accent),
    inset 0 1px 0 rgba(11,122,73,0.08),
    inset 0 -1px 0 rgba(11,122,73,0.08);
}

.dashboard-body .memory-check span {
  border-color: rgba(100, 112, 125, 0.36);
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms ease,
    background 180ms ease;
}

.dashboard-body .memory-check input:checked + span {
  border-color: var(--dash-accent);
  background: var(--dash-accent);
}

.dashboard-body .url-cell a {
  background: #f2f7ff;
  box-shadow: inset 0 0 0 1px rgba(46, 133, 255, 0.12);
}

.dashboard-body .field-title {
  color: #1f2933;
  font-weight: 740;
}

.loading-mask {
  background:
    linear-gradient(135deg, rgba(10, 18, 24, 0.44), rgba(12, 28, 21, 0.58));
  backdrop-filter: blur(16px);
}

.loading-panel {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,249,0.95));
  box-shadow:
    0 46px 120px -70px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255,255,255,0.98);
}

.loading-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #075f3a, #2faf73, #d7eadf);
}

.loading-orbit {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(11, 122, 73, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #10241b, #0b1a14);
  box-shadow:
    0 18px 34px -28px rgba(11, 122, 73, 0.9),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.loading-orbit::before {
  width: 30px;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0), #62d69a, rgba(255,255,255,0));
  animation: loading-scan 1.25s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.loading-orbit span {
  display: none;
}

.loading-copy h3 {
  max-width: 14ch;
  color: var(--dash-ink);
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 0;
}

.loading-copy p:last-child {
  color: var(--dash-muted);
}

.loading-warning {
  border-color: rgba(183, 121, 37, 0.28);
  border-left: 4px solid #b97925;
  background: #fff8ed;
}

.loading-warning strong {
  color: #6e4618;
}

.loading-warning span {
  color: #835d27;
}

.loading-warning.is-error {
  border-left-color: var(--error);
}

.loading-progress-row {
  padding-top: 2px;
  font-weight: 850;
}

.loading-progress {
  height: 12px;
  background: #e9efec;
  box-shadow: inset 0 1px 2px rgba(20, 32, 42, 0.08);
}

.loading-progress i {
  position: relative;
  min-width: 10px;
  overflow: hidden;
  background: linear-gradient(90deg, #075f3a, #2faf73);
  transition: width 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.loading-progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.42), transparent);
  transform: translateX(-100%);
  animation: loading-progress 1.25s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.loading-meta {
  overflow: hidden;
  border: 1px solid rgba(228, 233, 237, 0.95);
  border-radius: 8px;
  background: #fbfcfd;
}

.loading-meta div {
  border-color: rgba(228, 233, 237, 0.95);
}

.loading-keywords span {
  border-color: rgba(11, 122, 73, 0.18);
  background: #eef8f3;
  color: #0b6f43;
  font-weight: 850;
}

.loading-keywords:empty {
  display: none;
}

.loading-steps {
  padding-top: 2px;
}

.loading-steps div {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.loading-steps div.active {
  border-color: rgba(11, 122, 73, 0.14);
  background: #f2faf5;
}

.loading-steps div.active i {
  box-shadow: inset 0 0 0 5px #dbf0e4;
}

@keyframes loading-scan {
  0% { transform: translateY(-15px); opacity: 0.18; }
  45% { opacity: 1; }
  100% { transform: translateY(15px); opacity: 0.18; }
}

@media (max-width: 980px) {
  .dashboard-body .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-body .control-rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(202, 212, 220, 0.74);
  }

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

@media (max-width: 680px) {
  .dashboard-body {
    background-size: 36px 36px, 36px 36px, auto;
  }

  .dashboard-body .workspace {
    padding: 20px 14px 30px;
  }

  .dashboard-body .dashboard-shell {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .dashboard-body .control-rail,
  .dashboard-body .workspace {
    width: 100%;
    max-width: 100vw;
  }

  .dashboard-body .collect-form {
    width: calc(100vw - 44px);
    max-width: calc(100vw - 44px);
  }

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

  .dashboard-body .toggle-pill span {
    min-width: 0;
    height: 54px;
    grid-template-columns: auto auto;
    justify-content: center;
    font-size: 12px;
  }

  .dashboard-body .workspace-header h2 {
    min-width: 0;
    flex-wrap: wrap;
  }

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

  .dashboard-body .metric-block {
    min-height: 128px;
    padding: 20px;
  }

  .dashboard-body .service-panel {
    padding: 18px;
  }

  .dashboard-body .result-controls {
    padding: 16px;
  }

  .loading-panel {
    padding: 22px;
  }

  .loading-copy h3 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-body .metric-block,
  .dashboard-body .tab-button,
  .dashboard-body .ghost-button,
  .dashboard-body .filter-button,
  .dashboard-body .primary-button,
  .loading-progress i {
    transition: none;
  }

  .loading-orbit::before,
  .loading-progress i::after {
    animation: none;
  }
}

/* Compact result taxonomy */
.dashboard-body .tab-button {
  min-width: auto;
  height: 34px;
  padding: 0 11px;
  gap: 7px;
  font-size: 12px;
  font-weight: 850;
}

.dashboard-body .tab-button span {
  margin-left: 0;
  padding: 2px 6px;
  font-size: 11px;
}

.dashboard-body th,
.dashboard-body td {
  padding: 10px 12px;
  vertical-align: middle;
}

.dashboard-body .field-keyword {
  width: 132px;
}

.keyword-token {
  max-width: 112px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid rgba(100, 112, 125, 0.16);
  border-radius: 999px;
  background: #f6f8f9;
  color: #394554;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-body .field-service-type {
  width: 92px;
}

.dashboard-body .field-service-type::before {
  content: none;
}

.service-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.service-badge.service-blog {
  border-color: rgba(11, 122, 73, 0.18);
  background: #eaf7f0;
  color: #0b6f43;
}

.service-badge.service-cafe {
  border-color: rgba(176, 105, 22, 0.18);
  background: #fff4df;
  color: #9a5a12;
}

.service-badge.service-kin {
  border-color: rgba(33, 102, 153, 0.18);
  background: #eaf4fb;
  color: #1f6695;
}

.service-badge.service-etc {
  border-color: rgba(100, 112, 125, 0.18);
  background: #f3f5f6;
  color: #55616e;
}

.dashboard-body .field-section-title {
  min-width: 220px;
}

.field-section-title {
  white-space: normal;
}

.section-token,
.cafe-token {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  margin: 2px 5px 2px 0;
  padding: 0 9px;
  overflow: hidden;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.section-token {
  border: 1px solid hsl(var(--section-hue, 152) 36% 72%);
  background: hsl(var(--section-hue, 152) 42% 95%);
  color: hsl(var(--section-hue, 152) 42% 31%);
}

.cafe-token {
  border: 1px solid rgba(163, 77, 50, 0.2);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0)),
    #fff0eb;
  color: #9a432c;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.dashboard-body .field-title {
  min-width: 280px;
  font-size: 13px;
  line-height: 1.45;
}

/* Keyword pastel table theming */
.dashboard-body .tab-button {
  --keyword-hue: 152;
  border-color: hsl(var(--keyword-hue) 34% 78%);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0)),
    hsl(var(--keyword-hue) 52% 97%);
  color: hsl(var(--keyword-hue) 38% 30%);
}

.dashboard-body .tab-button span {
  background: hsl(var(--keyword-hue) 48% 91%);
  color: hsl(var(--keyword-hue) 44% 32%);
}

.dashboard-body .tab-button.active {
  border-color: hsl(var(--keyword-hue) 46% 66%);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.44), rgba(255,255,255,0)),
    hsl(var(--keyword-hue) 56% 88%);
  color: hsl(var(--keyword-hue) 46% 22%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    0 12px 24px -22px hsl(var(--keyword-hue) 38% 40% / 0.54);
}

.dashboard-body .tab-button.active span {
  background: rgba(255,255,255,0.72);
  color: hsl(var(--keyword-hue) 48% 26%);
}

.dashboard-body .tab-panel {
  --keyword-hue: 152;
  padding: 12px 14px 14px;
  background:
    linear-gradient(180deg, hsl(var(--keyword-hue) 62% 97% / 0.86), hsl(var(--keyword-hue) 50% 95% / 0.72));
}

.dashboard-body .tab-panel .table-wrap {
  overflow: auto;
  border: 1px solid hsl(var(--keyword-hue) 40% 82%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.16)),
    hsl(var(--keyword-hue) 58% 96%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.82),
    0 16px 34px -32px hsl(var(--keyword-hue) 36% 36% / 0.45);
}

.dashboard-body .tab-panel th {
  background:
    linear-gradient(180deg, hsl(var(--keyword-hue) 58% 97% / 0.98), hsl(var(--keyword-hue) 48% 94% / 0.96));
  color: hsl(var(--keyword-hue) 30% 34%);
}

.dashboard-body .tab-panel td {
  background: hsl(var(--row-keyword-hue, var(--keyword-hue)) 54% 97% / 0.62);
}

.dashboard-body .tab-panel tbody tr:nth-child(even) td {
  background: hsl(var(--row-keyword-hue, var(--keyword-hue)) 50% 95% / 0.74);
}

.dashboard-body .tab-panel tbody tr:hover td {
  background: hsl(var(--row-keyword-hue, var(--keyword-hue)) 62% 92% / 0.88);
}

.dashboard-body .tab-panel tbody tr.is-remembered td {
  background:
    linear-gradient(90deg, rgba(11,122,73,0.08), rgba(255,255,255,0)),
    hsl(var(--row-keyword-hue, var(--keyword-hue)) 58% 92% / 0.88);
}

.dashboard-body .tab-panel tbody tr.is-remembered td:first-child {
  box-shadow:
    inset 3px 0 0 hsl(var(--row-keyword-hue, var(--keyword-hue)) 46% 42%),
    inset 0 1px 0 hsl(var(--row-keyword-hue, var(--keyword-hue)) 42% 82% / 0.46),
    inset 0 -1px 0 hsl(var(--row-keyword-hue, var(--keyword-hue)) 42% 82% / 0.46);
}

@media (max-width: 680px) {
  .dashboard-body .tab-button {
    height: 32px;
    padding: 0 10px;
  }

  .keyword-token,
  .section-token,
  .cafe-token {
    max-width: 170px;
  }
}

/* Compact action polish */
.dashboard-body .export-actions {
  gap: 9px;
}

.dashboard-body .download-button {
  min-height: 38px;
  padding: 0 14px 0 12px;
  gap: 8px;
  border-color: rgba(198, 207, 216, 0.86);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,249,250,0.92));
  color: #24313d;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.dashboard-body .download-button::before {
  content: none;
}

.dashboard-body .download-button i {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 6px;
  background: rgba(11, 122, 73, 0.09);
}

.dashboard-body .download-csv i {
  background: rgba(40, 104, 171, 0.1);
}

.dashboard-body .download-button i::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 2px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.dashboard-body .download-button i::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 8px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.dashboard-body .download-xlsx {
  color: #0a7545;
}

.dashboard-body .download-csv {
  color: #236aa8;
}

.dashboard-body .download-button:hover {
  border-color: rgba(11, 122, 73, 0.2);
  background: #fff;
  box-shadow:
    0 16px 28px -24px rgba(20, 32, 42, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.dashboard-body .url-cell {
  text-align: center;
}

.dashboard-body .url-cell .link-icon-button {
  position: relative;
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(42, 111, 191, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(241,246,252,0.96));
  color: #236aa8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86);
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms ease,
    background 180ms ease;
}

.dashboard-body .url-cell .link-icon-button:hover {
  border-color: rgba(42, 111, 191, 0.32);
  background: #ffffff;
}

.dashboard-body .url-cell .link-icon-button:active {
  transform: translateY(1px) scale(0.96);
}

.dashboard-body .url-cell .link-icon-button::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 999px;
  transform: translate(-1px, -1px);
}

.dashboard-body .url-cell .link-icon-button::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(6px, 6px) rotate(45deg);
  transform-origin: center;
}

.link-icon-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* Site header */
.has-site-header {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(202, 212, 220, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  min-height: 64px;
  padding: 0 clamp(18px, 3vw, 40px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.site-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.site-brand-copy {
  display: grid;
  gap: 2px;
}

.site-brand-copy em {
  font-style: normal;
  color: #0b7d48;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-brand-copy strong {
  font-size: 15px;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav-link {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #4d5b68;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav-link:hover,
.site-nav-link.is-active {
  background: #edf8f2;
  color: #0b7d48;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.header-logout-form {
  display: inline-flex;
  margin: 0;
}

.header-logout-form .header-btn {
  font-family: inherit;
  appearance: none;
}

.header-btn {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe7eb;
  border-radius: 8px;
  background: #fff;
  color: #25303b;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 26px -24px rgba(31, 41, 55, 0.45);
}

.header-btn-primary {
  border-color: transparent;
  background: linear-gradient(145deg, #0b7d48, #128e52);
  color: #fff;
}

.header-btn-ghost:hover,
.header-btn-primary:hover {
  filter: brightness(1.03);
}

.site-user-chip {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #4d5b68;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-body.has-site-header .dashboard-shell {
  flex: 1;
  min-height: 0;
}

.dashboard-body.has-site-header .control-rail {
  top: 64px;
  height: calc(100dvh - 64px);
}

.auth-body.has-site-header {
  display: flex;
  flex-direction: column;
}

.auth-screen {
  --auth-ink: #171c18;
  --auth-muted: #657066;
  --auth-line: #dfe6dd;
  --auth-line-strong: #c7d1c8;
  --auth-accent: #0b7a49;
  --auth-accent-2: #2c9a68;
  --auth-panel: rgba(255, 255, 255, 0.9);
  place-items: initial;
  padding: 0;
  background:
    linear-gradient(rgba(23, 28, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 28, 24, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 14% 20%, rgba(11, 122, 73, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(44, 154, 104, 0.1), transparent 30rem),
    linear-gradient(140deg, #fbfcfa 0%, #f3f7f3 52%, #f8faf7 100%);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}

.auth-screen::before {
  opacity: 0.36;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.82), transparent 46%, rgba(11,122,73,0.045)),
    radial-gradient(circle at 50% 0, rgba(255,255,255,0.74), transparent 30rem);
}

.auth-screen .site-header {
  border-bottom-color: rgba(199, 209, 200, 0.72);
  background: rgba(251, 252, 250, 0.82);
}

.auth-page-shell {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  padding: clamp(22px, 4vw, 48px);
}

.auth-stage {
  width: min(100%, 480px);
  min-height: calc(100dvh - 64px - clamp(44px, 8vw, 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  justify-items: stretch;
}

.auth-form-panel {
  border: 1px solid rgba(199, 209, 200, 0.72);
  border-radius: 8px;
  box-shadow:
    0 34px 82px -58px rgba(23, 28, 24, 0.62),
    inset 0 1px 0 rgba(255,255,255,0.78);
}

.auth-hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: clamp(26px, 4vw, 46px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #f7fbf6;
  background:
    linear-gradient(140deg, rgba(8, 52, 34, 0.96), rgba(18, 28, 22, 0.98) 56%, rgba(37, 67, 48, 0.95)),
    linear-gradient(90deg, rgba(255,255,255,0.09), transparent);
}

.auth-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    radial-gradient(circle at 72% 22%, rgba(137, 199, 158, 0.2), transparent 18rem);
  background-size: 54px 54px, 54px 54px, auto;
  opacity: 0.7;
}

.auth-hero-top,
.auth-hero-copy,
.auth-proof-grid {
  position: relative;
}

.auth-hero-top,
.auth-hero-brand,
.auth-live-pill,
.auth-social-button,
.auth-submit {
  display: flex;
  align-items: center;
}

.auth-hero-top {
  justify-content: space-between;
  gap: 18px;
}

.auth-hero-brand {
  gap: 13px;
  min-width: 0;
}

.auth-hero-mark {
  width: 46px;
  height: 46px;
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

.auth-hero-brand strong,
.auth-hero-brand em {
  display: block;
}

.auth-hero-brand strong {
  font-size: 14px;
  font-weight: 900;
}

.auth-hero-brand em {
  margin-top: 3px;
  color: rgba(247, 251, 246, 0.58);
  font-style: normal;
  font-size: 12px;
}

.auth-live-pill {
  min-height: 34px;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(247, 251, 246, 0.76);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
}

.auth-live-pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8bd0a5;
  animation: status-pulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.auth-hero-copy {
  align-self: center;
  max-width: 560px;
  padding: clamp(52px, 8vw, 96px) 0;
}

.auth-kicker-line {
  margin: 0;
  color: var(--auth-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-hero-copy .auth-kicker-line {
  color: #a8d8ba;
}

.auth-hero-copy h1 {
  max-width: 9.5ch;
  margin: 14px 0 18px;
  color: #fff;
  font-size: clamp(42px, 5.4vw, 70px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0;
  word-break: keep-all;
}

.auth-hero-copy p:last-child {
  max-width: 36ch;
  margin: 0;
  color: rgba(247, 251, 246, 0.72);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
}

.auth-proof-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}

.auth-proof-card,
.auth-signal-card {
  min-height: 126px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.auth-proof-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.auth-proof-card span,
.auth-signal-card span {
  color: rgba(247, 251, 246, 0.56);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
}

.auth-proof-card strong {
  color: #fff;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 42px;
  line-height: 0.9;
}

.auth-chart-line {
  height: 28px;
  border-radius: 999px 999px 0 0;
  background:
    linear-gradient(100deg, transparent 0 12%, rgba(139, 208, 165, 0.85) 12% 16%, transparent 16% 30%, rgba(139, 208, 165, 0.62) 30% 36%, transparent 36% 54%, rgba(139, 208, 165, 0.9) 54% 60%, transparent 60% 100%),
    linear-gradient(180deg, rgba(139, 208, 165, 0.32), transparent);
}

.auth-signal-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-content: center;
  align-items: center;
  gap: 11px 14px;
}

.auth-signal-card i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
}

.auth-signal-card i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8bd0a5, rgba(255,255,255,0.82));
  animation: signal-fill 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-form-panel {
  align-self: center;
  padding: clamp(24px, 3vw, 36px);
  background: var(--auth-panel);
  backdrop-filter: blur(22px);
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(199, 209, 200, 0.72);
  border-radius: 8px;
  background: rgba(238, 243, 238, 0.72);
}

.auth-mode-tabs a {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.auth-mode-tabs a:hover {
  color: var(--auth-ink);
}

.auth-mode-tabs a:active,
.auth-social-button:active,
.auth-submit:active {
  transform: translateY(1px) scale(0.99);
}

.auth-mode-tabs a.is-active {
  background: #fff;
  color: var(--auth-ink);
  box-shadow: 0 14px 28px -24px rgba(23, 28, 24, 0.48);
}

.auth-card-head {
  margin: 28px 0 20px;
}

.auth-card-head h2 {
  margin: 8px 0 10px;
  color: var(--auth-ink);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
  word-break: keep-all;
}

.auth-card-head p:last-child {
  margin: 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}

.auth-form-panel .alert {
  margin: 0 0 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.82);
}

.auth-social-grid {
  display: grid;
  gap: 10px;
}

.auth-social-button {
  min-height: 50px;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: rgba(255,255,255,0.82);
  color: var(--auth-ink);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 38px -34px rgba(23, 28, 24, 0.44);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.auth-social-button:hover {
  border-color: rgba(11, 122, 73, 0.32);
  background: #fff;
  box-shadow: 0 22px 44px -36px rgba(11, 122, 73, 0.46);
}

.auth-social-kakao {
  background: #fee500;
  border-color: #efd500;
}

.auth-social-kakao:hover {
  background: #ffeb25;
}

.auth-social-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #1f2a22;
  font-size: 13px;
  font-weight: 900;
}

.auth-social-google .auth-social-icon {
  border: 1px solid #e1e6e1;
  color: #276ef1;
}

.auth-social-kakao .auth-social-icon {
  background: rgba(25, 25, 25, 0.9);
  color: #fee500;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--auth-line);
}

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

.auth-field {
  gap: 8px;
}

.auth-field label {
  color: var(--auth-ink);
  font-size: 13px;
  font-weight: 850;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--auth-line-strong);
  border-radius: 8px;
  background: rgba(255,255,255,0.88);
  color: var(--auth-ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.auth-field input::placeholder {
  color: rgba(101, 112, 102, 0.68);
}

.auth-field input:focus {
  border-color: var(--auth-accent);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(11, 122, 73, 0.11),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.auth-helper-text {
  margin: -1px 0 0;
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.45;
}

.auth-submit {
  min-height: 54px;
  justify-content: space-between;
  gap: 14px;
  margin-top: 2px;
  padding: 0 14px 0 18px;
  border-radius: 8px;
  background: linear-gradient(145deg, #075f3a, #0b7a49 56%, #198a59);
  color: #fff;
  box-shadow: 0 22px 44px -32px rgba(11, 122, 73, 0.64);
}

.auth-submit:hover {
  background: linear-gradient(145deg, #064f31, #0b7044 56%, #147d50);
}

.auth-submit svg {
  width: 24px;
  height: 24px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease, border-color 180ms ease;
}

.auth-submit:hover svg {
  border-color: rgba(255,255,255,0.48);
  transform: translateX(2px);
}

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

.auth-switch a {
  color: var(--auth-accent);
  font-weight: 900;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-team-access {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--auth-line);
}

.auth-team-access summary {
  cursor: pointer;
  color: var(--auth-muted);
  font-size: 13px;
  font-weight: 850;
}

.auth-team-access summary:hover {
  color: var(--auth-ink);
}

.auth-form-compact {
  margin-top: 14px;
}

@media (max-width: 1040px) {
  .auth-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    width: min(100%, 760px);
  }

  .auth-hero-panel {
    min-height: auto;
  }

  .auth-hero-copy {
    padding: 56px 0 42px;
  }

  .auth-hero-copy h1 {
    max-width: 12ch;
  }

  .auth-form-panel {
    align-self: stretch;
  }
}

@media (max-width: 860px) {
  .dashboard-body.has-site-header .control-rail {
    top: 0;
    height: auto;
  }
}

@media (max-width: 640px) {
  .auth-page-shell {
    padding: 18px;
  }

  .auth-stage {
    gap: 14px;
  }

  .auth-hero-panel,
  .auth-form-panel {
    padding: 22px;
  }

  .auth-form-panel {
    order: 1;
  }

  .auth-hero-panel {
    order: 2;
  }

  .auth-hero-top {
    align-items: flex-start;
  }

  .auth-live-pill {
    display: none;
  }

  .auth-hero-copy {
    padding: 42px 0 30px;
  }

  .auth-hero-copy h1 {
    font-size: 38px;
  }

  .auth-proof-grid {
    grid-template-columns: 1fr;
  }

  .auth-proof-card,
  .auth-signal-card {
    min-height: 104px;
  }

  .auth-card-head {
    margin-top: 24px;
  }

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

  .auth-social-button,
  .auth-field input[type="text"],
  .auth-field input[type="email"],
  .auth-field input[type="password"],
  .auth-submit {
    min-height: 50px;
  }
}

@media (max-width: 420px) {
  .auth-page-shell {
    padding: 14px;
  }

  .auth-hero-panel,
  .auth-form-panel {
    padding: 18px;
  }

  .auth-hero-brand em {
    display: none;
  }

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

  .auth-mode-tabs a,
  .auth-social-button,
  .auth-switch {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-live-pill i,
  .auth-signal-card i::before,
  .auth-submit svg {
    animation: none;
    transition: none;
  }
}

/* Keyword trend header */
.dashboard-body .workspace-header-trend {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.workspace-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.trend-header-card {
  min-height: 238px;
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(360px, 1.62fr) minmax(150px, 0.58fr);
  gap: 20px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid rgba(202, 212, 220, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.96), rgba(248,251,249,0.92)),
    linear-gradient(90deg, rgba(11,122,73,0.055), transparent 48%);
  box-shadow:
    0 28px 70px -54px rgba(20, 32, 42, 0.72),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.trend-header-copy {
  display: grid;
  align-content: space-between;
  gap: 12px;
  min-width: 0;
}

.trend-kicker {
  margin: 0;
  color: #0b7a49;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.trend-header-copy h3 {
  margin: 0;
  color: #171b22;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
  word-break: keep-all;
}

.trend-header-copy span {
  color: #64707d;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.trend-chart-shell {
  position: relative;
  min-width: 0;
  min-height: 194px;
  border: 1px solid rgba(228, 233, 237, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(rgba(17, 24, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 32, 0.03) 1px, transparent 1px),
    rgba(255,255,255,0.72);
  background-size: 38px 38px, 38px 38px, auto;
  overflow: hidden;
}

.trend-empty {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: grid;
  place-content: center;
  gap: 9px;
  text-align: center;
}

.trend-empty strong {
  color: #27313d;
  font-size: 14px;
  font-weight: 900;
}

.trend-empty span {
  max-width: 42ch;
  color: #64707d;
  font-size: 13px;
  line-height: 1.55;
  word-break: keep-all;
}

.trend-header-card[data-trend-state="loading"] .trend-empty::before {
  content: "";
  width: min(260px, 58vw);
  height: 9px;
  margin: 0 auto 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8efeb;
}

.trend-header-card[data-trend-state="loading"] .trend-empty::after {
  content: "";
  position: absolute;
  left: 22%;
  top: calc(50% - 44px);
  width: 90px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(11,122,73,0.42), transparent);
  animation: trend-loading 1.25s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.trend-chart {
  width: 100%;
  height: 100%;
  min-height: 194px;
  display: block;
}

.trend-grid-line {
  stroke: rgba(100, 112, 125, 0.18);
  stroke-width: 1;
}

.trend-axis-label {
  fill: #64707d;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
}

.trend-series-line {
  fill: none;
  stroke: var(--trend-color);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: trend-draw 840ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.trend-series-dot {
  fill: #fff;
  stroke: var(--trend-color);
  stroke-width: 3;
}

.trend-side {
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.trend-legend {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.trend-legend span {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 9px;
  border: 1px solid #e4e9ed;
  border-radius: 8px;
  background: rgba(255,255,255,0.76);
}

.trend-legend i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.trend-legend b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #27313d;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
}

.trend-refresh-button {
  min-height: 38px;
  border: 1px solid #dce6e0;
  border-radius: 8px;
  background: #fff;
  color: #0b7a49;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.trend-refresh-button:hover {
  border-color: rgba(11, 122, 73, 0.32);
  background: #f5fbf7;
}

.trend-refresh-button:active {
  transform: translateY(1px) scale(0.99);
}

@keyframes trend-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes trend-loading {
  0% { transform: translateX(-120%); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateX(230%); opacity: 0; }
}

@media (max-width: 1180px) {
  .trend-header-card {
    grid-template-columns: 1fr;
  }

  .trend-side {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .trend-legend {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  }
}

@media (max-width: 860px) {
  .workspace-titlebar {
    display: grid;
  }
}

@media (max-width: 640px) {
  .trend-header-card {
    padding: 16px;
  }

  .trend-chart-shell,
  .trend-chart {
    min-height: 180px;
  }

  .trend-side {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trend-series-line,
  .trend-header-card[data-trend-state="loading"] .trend-empty::after {
    animation: none;
    stroke-dashoffset: 0;
  }
}

.keyword-intel-source-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(118px, 1fr));
  gap: 9px;
}

.keyword-intel-page .keyword-intel-tool {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(247,252,250,0.94)),
    radial-gradient(circle at 92% 14%, rgba(11,122,73,0.09), transparent 28%);
}

.keyword-intel-page .keyword-intel-panel {
  margin-top: 0;
}

.keyword-intel-source-grid label {
  min-width: 0;
  cursor: pointer;
}

.keyword-intel-source-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.keyword-intel-source-grid span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #e0e8e2;
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
  color: #536170;
  font-size: 12px;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.keyword-intel-source-grid .image-line-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.25;
}

.keyword-intel-source-grid input:checked + span {
  border-color: rgba(11, 122, 73, 0.28);
  background: linear-gradient(135deg, rgba(232, 248, 239, 0.98), rgba(255,255,255,0.9));
  color: #0b7a49;
  box-shadow: 0 12px 28px -24px rgba(11, 122, 73, 0.72);
}

.keyword-intel-source-grid span:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 122, 73, 0.24);
}

.keyword-intel-run-button,
.keyword-intel-export-button,
.shopping-refresh-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid rgba(11, 122, 73, 0.24);
  border-radius: 8px;
  color: #0b7a49;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.keyword-intel-run-button {
  color: #fff;
  border-color: rgba(11, 122, 73, 0.76);
  background: linear-gradient(135deg, #0b7a49, #129365);
  box-shadow: 0 20px 34px -26px rgba(11, 122, 73, 0.85);
}

.shopping-refresh-button {
  color: #fff;
  border-color: rgba(33, 102, 153, 0.72);
  background: linear-gradient(135deg, #216699, #2e85a8);
  box-shadow: 0 20px 34px -26px rgba(33, 102, 153, 0.78);
}

.keyword-intel-export-button.is-csv {
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.28);
}

.keyword-intel-export-button .image-line-icon {
  width: 16px;
  height: 16px;
}

.keyword-intel-run-button:hover,
.keyword-intel-export-button:hover,
.shopping-refresh-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -28px rgba(20, 32, 42, 0.7);
}

.shopping-filter-grid {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) repeat(4, minmax(118px, 0.8fr));
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #e5ece7;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(247,251,249,0.96), rgba(255,255,255,0.82));
}

.shopping-filter-grid label,
.shopping-filter-grid fieldset {
  min-width: 0;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.shopping-filter-grid label > span,
.shopping-filter-grid legend {
  color: #65717d;
  font-size: 11px;
  font-weight: 900;
}

.shopping-filter-grid select {
  width: 100%;
  height: 38px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid #dce6e0;
  border-radius: 8px;
  background: #fff;
  color: #1f2933;
  font-size: 12px;
  font-weight: 850;
}

.shopping-filter-grid fieldset {
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.shopping-filter-grid legend {
  grid-column: 1 / -1;
}

.shopping-filter-grid fieldset input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shopping-filter-grid fieldset span {
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #e0e8e2;
  border-radius: 8px;
  background: rgba(255,255,255,0.82);
  color: #536170;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.shopping-filter-grid fieldset input:checked + span {
  border-color: rgba(33, 102, 153, 0.28);
  background: #edf6fb;
  color: #216699;
}

.shopping-insight-panel {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid rgba(202, 212, 220, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.97), rgba(247,251,249,0.94)),
    radial-gradient(circle at 82% 12%, rgba(33,102,153,0.09), transparent 34%),
    radial-gradient(circle at 10% 100%, rgba(11,122,73,0.075), transparent 32%);
  box-shadow:
    0 28px 70px -52px rgba(20, 32, 42, 0.72),
    inset 0 1px 0 rgba(255,255,255,0.86);
}

.shopping-insight-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.25fr);
  gap: 18px;
  align-items: stretch;
}

.shopping-insight-head h3 {
  margin: 4px 0 8px;
  color: #171b22;
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.shopping-insight-head span {
  display: block;
  color: #64707d;
  font-size: 13px;
  line-height: 1.55;
}

.shopping-insight-focus {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 15px;
  border: 1px solid #e5ece7;
  border-radius: 8px;
  background: rgba(255,255,255,0.74);
}

.shopping-insight-focus span {
  color: #64707d;
  font-size: 11px;
  font-weight: 900;
}

.shopping-insight-focus strong {
  overflow: hidden;
  color: #216699;
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopping-summary-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.95fr;
  gap: 12px;
}

.shopping-summary-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e7edf0;
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
}

.shopping-summary-grid span,
.shopping-summary-grid em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopping-summary-grid span {
  color: #64707d;
  font-size: 12px;
  font-weight: 900;
}

.shopping-summary-grid strong {
  display: block;
  margin: 8px 0 5px;
  color: #171b22;
  font-size: 24px;
  font-weight: 900;
}

.shopping-summary-grid em {
  color: #7a8794;
  font-style: normal;
  font-size: 12px;
  font-weight: 760;
}

.shopping-chart-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(170px, 0.25fr);
  gap: 16px;
  align-items: stretch;
}

.shopping-chart-shell {
  position: relative;
  min-width: 0;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(228, 233, 237, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(rgba(17, 24, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 32, 0.03) 1px, transparent 1px),
    rgba(255,255,255,0.72);
  background-size: 38px 38px, 38px 38px, auto;
}

.shopping-chart {
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: block;
}

.shopping-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 9px;
  padding: 22px;
  text-align: center;
}

.shopping-empty strong {
  color: #27313d;
  font-size: 14px;
  font-weight: 900;
}

.shopping-empty span {
  max-width: 44ch;
  color: #64707d;
  font-size: 13px;
  line-height: 1.55;
}

.shopping-insight-panel[data-shopping-state="loading"] .shopping-empty::before {
  content: "";
  width: min(240px, 58vw);
  height: 9px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #e8eef2;
}

.shopping-insight-panel[data-shopping-state="loading"] .shopping-empty::after {
  content: "";
  position: absolute;
  left: 23%;
  top: calc(50% - 44px);
  width: 88px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(33,102,153,0.42), transparent);
  animation: trend-loading 1.25s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.shopping-series-line {
  stroke-width: 3;
}

.shopping-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.shopping-legend {
  display: grid;
  gap: 8px;
}

.shopping-legend span {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 9px;
  border: 1px solid #e4e9ed;
  border-radius: 8px;
  background: rgba(255,255,255,0.76);
}

.shopping-legend i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.shopping-legend b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #27313d;
  font-size: 12px;
  font-weight: 900;
}

.shopping-note {
  padding: 14px;
  border: 1px solid #e4e9ed;
  border-radius: 8px;
  background: rgba(255,255,255,0.74);
}

.shopping-note strong {
  display: block;
  margin-bottom: 6px;
  color: #27313d;
  font-size: 13px;
  font-weight: 900;
}

.shopping-note span {
  display: block;
  color: #64707d;
  font-size: 12px;
  line-height: 1.5;
}

.keyword-intel-panel {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid rgba(202, 212, 220, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.97), rgba(247,251,249,0.93)),
    radial-gradient(circle at 88% 0%, rgba(46,133,255,0.08), transparent 32%),
    radial-gradient(circle at 12% 100%, rgba(11,122,73,0.08), transparent 30%);
  box-shadow:
    0 28px 70px -52px rgba(20, 32, 42, 0.72),
    inset 0 1px 0 rgba(255,255,255,0.86);
}

.keyword-intel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
  gap: 18px;
  align-items: stretch;
}

.keyword-intel-hero h3 {
  margin: 4px 0 8px;
  color: #171b22;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
  word-break: keep-all;
}

.keyword-intel-hero span {
  display: block;
  color: #64707d;
  font-size: 13px;
  line-height: 1.55;
  word-break: keep-all;
}

.keyword-intel-state {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid #e5ece7;
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
}

.keyword-intel-state strong {
  color: #0b7a49;
  font-size: 17px;
  font-weight: 900;
}

.keyword-intel-state span {
  color: #64707d;
  font-size: 12px;
  line-height: 1.45;
}

.keyword-intel-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.keyword-intel-insights article {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e7edf0;
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
}

.keyword-intel-insights span,
.keyword-intel-insights em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.keyword-intel-insights span {
  color: #64707d;
  font-size: 12px;
  font-weight: 900;
}

.keyword-intel-insights strong {
  display: block;
  margin: 8px 0 5px;
  color: #171b22;
  font-size: 24px;
  font-weight: 900;
}

.keyword-intel-insights em {
  color: #7a8794;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.keyword-intel-loading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(46, 133, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(239,246,255,0.96), rgba(255,255,255,0.88));
}

.keyword-intel-loading div {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf3ff;
}

.keyword-intel-loading i {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(46, 133, 255, 0.22);
  border-top-color: #2e85ff;
  border-radius: 999px;
  animation: intel-spin 820ms linear infinite;
}

.keyword-intel-loading strong {
  color: #1d2937;
  font-size: 13px;
  font-weight: 900;
}

.keyword-intel-loading span {
  color: #64707d;
  font-size: 12px;
}

.keyword-intel-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  transition: opacity 180ms ease;
}

.keyword-intel-panel[data-intel-state="loading"] .keyword-intel-results {
  opacity: 0.52;
}

.keyword-intel-empty {
  grid-column: 1 / -1;
  min-height: 150px;
  display: grid;
  place-content: center;
  gap: 7px;
  text-align: center;
  border: 1px dashed #dce6e0;
  border-radius: 8px;
  background: rgba(255,255,255,0.66);
}

.keyword-intel-empty strong {
  color: #27313d;
  font-size: 15px;
  font-weight: 900;
}

.keyword-intel-empty span {
  color: #64707d;
  font-size: 13px;
}

.keyword-intel-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e5ebef;
  border-left: 4px solid var(--intel-color, #0b7a49);
  border-radius: 8px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 20px 46px -44px rgba(20, 32, 42, 0.74);
}

.keyword-intel-row.is-searchad { --intel-color: #0891b2; }
.keyword-intel-row.is-naver { --intel-color: #0b7a49; }
.keyword-intel-row.is-google { --intel-color: #2e85ff; }
.keyword-intel-row.is-youtube { --intel-color: #dc2626; }
.keyword-intel-row.is-golden { --intel-color: #b45309; }
.keyword-intel-row.is-datalab { --intel-color: #7c3aed; }

.keyword-intel-row-main {
  min-width: 0;
}

.keyword-intel-row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-bottom: 6px;
}

.keyword-intel-row-meta span,
.keyword-intel-row-meta b,
.keyword-intel-row-meta em {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
  white-space: nowrap;
}

.keyword-intel-row-meta span {
  color: var(--intel-color);
  background: color-mix(in srgb, var(--intel-color) 11%, #fff);
}

.keyword-intel-row-meta b {
  color: #596674;
  background: #f3f6f7;
}

.keyword-intel-row-meta em {
  overflow: hidden;
  max-width: 108px;
  text-overflow: ellipsis;
  color: #667484;
  background: #f7f8fa;
}

.keyword-intel-row-main > strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1d2733;
  font-size: 15px;
  font-weight: 900;
}

.keyword-intel-row-main p {
  margin: 6px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #64707d;
  font-size: 12px;
  line-height: 1.4;
}

.keyword-intel-score {
  width: 76px;
  display: grid;
  justify-items: end;
  gap: 2px;
}

.keyword-intel-score strong {
  color: #171b22;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.keyword-intel-score span,
.keyword-intel-score em {
  overflow: hidden;
  max-width: 76px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #64707d;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.keyword-intel-link {
  width: 42px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #e0e7ec;
  border-radius: 8px;
  background: #fff;
  color: #0b7a49;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

@keyframes intel-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
  .keyword-intel-source-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shopping-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .keyword-intel-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .keyword-intel-source-grid,
  .keyword-intel-hero,
  .keyword-intel-insights,
  .shopping-filter-grid,
  .shopping-filter-grid fieldset,
  .shopping-insight-head,
  .shopping-summary-grid {
    grid-template-columns: 1fr;
  }

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

  .shopping-chart-shell,
  .shopping-chart {
    min-height: 220px;
  }

  .keyword-intel-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .keyword-intel-score {
    width: 100%;
    grid-template-columns: auto 1fr auto;
    justify-items: start;
    align-items: end;
  }

  .keyword-intel-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .keyword-intel-loading i {
    animation: none;
  }
}

/* Member memory and rank monitoring */
.standalone-workspace {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 34px clamp(18px, 4vw, 52px) 52px;
}

.member-page-header {
  margin-bottom: 22px;
}

.member-page-grid {
  display: grid;
  gap: 18px;
}

.member-page-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.member-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(420px, 1.25fr);
  gap: 16px;
  margin-bottom: 20px;
}

.member-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(202, 212, 220, 0.76);
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  box-shadow:
    0 24px 60px -48px rgba(20, 32, 42, 0.66),
    inset 0 1px 0 rgba(255,255,255,0.86);
}

.member-panel-large {
  padding: clamp(20px, 3vw, 28px);
}

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

.member-panel-large .watcher-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.member-panel-large .member-empty {
  grid-column: 1 / -1;
}

.member-panel-large .rank-check-form {
  padding: 16px;
  border: 1px solid #e8edf0;
  border-radius: 8px;
  background: #fbfdfc;
}

.member-panel-head,
.memory-health-row,
.memory-item,
.watcher-item,
.rank-service-row {
  display: flex;
  align-items: center;
}

.member-panel-head {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.panel-kicker {
  margin: 0 0 5px;
  color: #0b7a49;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.member-panel h3 {
  margin: 0;
  color: #171b22;
  font-size: 20px;
  line-height: 1.15;
}

.member-panel-head > strong {
  color: #171b22;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 28px;
  line-height: 1;
}

.member-panel-head > strong span {
  margin-left: 3px;
  color: #64707d;
  font-size: 12px;
}

.memory-health-row {
  justify-content: space-between;
  min-height: 46px;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1px solid #e4e9ed;
  border-radius: 8px;
  background: #f8fcfa;
}

.memory-health-row span,
.memory-health-row em {
  color: #64707d;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.memory-health-row b {
  color: #0b7a49;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 22px;
}

.member-list,
.watcher-list {
  display: grid;
  gap: 10px;
}

.member-empty {
  min-height: 90px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px dashed #d8e2dc;
  border-radius: 8px;
  background: #fbfdfc;
  text-align: center;
}

.member-empty strong {
  color: #27313d;
  font-size: 14px;
}

.member-empty span {
  color: #64707d;
  font-size: 13px;
}

.memory-item,
.watcher-item {
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e8edf0;
  border-radius: 8px;
  background: #fff;
}

.memory-item-copy {
  min-width: 0;
}

.memory-item h4 {
  max-width: 34ch;
  margin: 8px 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #24313d;
  font-size: 14px;
}

.memory-item p,
.watcher-item em {
  display: block;
  margin: 0;
  color: #64707d;
  font-size: 12px;
  line-height: 1.45;
}

.memory-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.memory-meta-line span,
.memory-meta-line a {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #e3ebe8;
  border-radius: 999px;
  background: #fbfdfc;
  color: #64707d;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.memory-meta-line a {
  border-color: rgba(35, 106, 168, 0.16);
  color: #236aa8;
}

.memory-control-stack {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.memory-rank {
  min-width: 74px;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  background: #f2f5f7;
  color: #64707d;
}

.memory-rank strong {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 17px;
}

.memory-rank span {
  font-size: 11px;
  font-weight: 800;
}

.memory-rank.is-visible,
.watcher-item b.is-visible {
  background: #e8f7ee;
  color: #0b7a49;
}

.memory-rank.is-missing,

.watcher-item b.is-warning {
  background: #fff7e8;
  color: #b45309;
  border: 1px solid #fcd9a5;
}

.watcher-item .watcher-match-title,
.watcher-item .watcher-match-author,
.watcher-item .watcher-match-section {
  display: block;
  margin-top: 4px;
  color: #64707d;
  font-size: 12px;
  line-height: 1.45;
}

.watcher-item .watcher-match-section {
  color: #0b7a49;
  font-weight: 700;
}

body.theme-dark .watcher-item b.is-warning {
  background: rgba(180, 83, 9, 0.18);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}


/* Rank position premium strip (section + exposure on one row) */
.rank-position-strip {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 48%, rgba(241, 245, 249, 0.94) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 32px rgba(15, 23, 42, 0.07);
}

.rank-position-strip.is-top3 {
  border-color: rgba(16, 185, 129, 0.24);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.92) 0%, rgba(255, 255, 255, 0.98) 55%, rgba(240, 253, 244, 0.94) 100%);
}

.rank-position-strip.is-beyond {
  border-color: rgba(245, 158, 11, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.94) 0%, rgba(255, 255, 255, 0.98) 55%, rgba(254, 243, 199, 0.9) 100%);
}

.rank-position-strip.is-missing {
  border-color: rgba(248, 113, 113, 0.28);
  background:
    linear-gradient(135deg, rgba(254, 242, 242, 0.94) 0%, rgba(255, 255, 255, 0.98) 55%, rgba(254, 226, 226, 0.9) 100%);
}

.rank-position-strip__row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.rank-position-strip__section,
.rank-position-strip__exposure {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

.rank-position-strip__section {
  flex: 1 1 42%;
  padding-right: 12px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.rank-position-strip__exposure {
  flex: 1 1 48%;
}

.rank-position-ranks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-position-hero__scope {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rank-position-hero--overall {
  border-color: rgba(59, 130, 246, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.88));
}

.rank-position-strip.is-ranked {
  border-color: rgba(100, 116, 139, 0.2);
}

.rank-position-strip__eyebrow {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rank-position-strip__section-name {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  word-break: keep-all;
}

.rank-position-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 20px rgba(15, 23, 42, 0.06);
}

.rank-position-hero.is-top3 {
  border-color: rgba(16, 185, 129, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(209, 250, 229, 0.55));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 24px rgba(5, 150, 105, 0.14);
}

.rank-position-hero.is-beyond {
  border-color: rgba(245, 158, 11, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(254, 243, 199, 0.55));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 24px rgba(180, 83, 9, 0.12);
}

.rank-position-hero.is-missing {
  border-color: rgba(248, 113, 113, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(254, 226, 226, 0.55));
}

.rank-position-hero__service {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.rank-position-hero--blog .rank-position-hero__service {
  border-color: rgba(11, 122, 73, 0.22);
  background: rgba(236, 253, 245, 0.95);
  color: #047857;
}

.rank-position-hero--cafe .rank-position-hero__service {
  border-color: rgba(180, 83, 9, 0.22);
  background: rgba(255, 251, 235, 0.95);
  color: #b45309;
}

.rank-position-hero--kin .rank-position-hero__service {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(239, 246, 255, 0.95);
  color: #1d4ed8;
}

.rank-position-hero__rank {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 2px 4px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
}

.rank-position-hero__num {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(165deg, #0f766e 0%, #047857 42%, #065f46 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 24px rgba(5, 150, 105, 0.18);
}

.rank-position-hero.is-beyond .rank-position-hero__num {
  background: linear-gradient(165deg, #d97706 0%, #b45309 48%, #92400e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 10px 24px rgba(180, 83, 9, 0.16);
}

.rank-position-hero.is-missing .rank-position-hero__num {
  background: linear-gradient(165deg, #ef4444 0%, #b91c1c 48%, #991b1b 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.rank-position-hero__unit {
  font-size: 14px;
  font-weight: 900;
  font-style: normal;
  color: #334155;
  letter-spacing: -0.02em;
}

.rank-position-strip--compact .rank-position-hero:not(.rank-position-hero--overall) {
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border-width: 2px;
  border-color: rgba(11, 122, 73, 0.3);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.98) 52%, rgba(220, 252, 231, 0.82));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96) inset,
    0 16px 34px rgba(5, 150, 105, 0.16);
}

.rank-position-strip--compact .rank-position-hero:not(.rank-position-hero--overall) .rank-position-hero__service {
  min-height: 30px;
  padding: 0 12px;
  border-color: rgba(11, 122, 73, 0.32);
  background: #0b7a49;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 22px rgba(11, 122, 73, 0.18);
}

.rank-position-strip--compact .rank-position-hero:not(.rank-position-hero--overall) .rank-position-hero__rank {
  margin-left: auto;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(11, 122, 73, 0.1);
}

.rank-position-strip--compact .rank-position-hero:not(.rank-position-hero--overall) .rank-position-hero__num {
  font-size: 32px;
  text-shadow: 0 14px 28px rgba(5, 150, 105, 0.24);
}

.rank-position-strip--compact .rank-position-hero:not(.rank-position-hero--overall) .rank-position-hero__unit {
  color: #0f5132;
  font-size: 14px;
}

.rank-position-hero__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.rank-position-hero.is-top3 .rank-position-hero__badge {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.rank-position-hero.is-beyond .rank-position-hero__badge {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.rank-position-hero.is-missing .rank-position-hero__badge {
  background: rgba(248, 113, 113, 0.14);
  color: #b91c1c;
}

.rank-result-banner {
  margin-bottom: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.92));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.rank-result-banner--top3 {
  border-color: rgba(16, 185, 129, 0.22);
  background:
    linear-gradient(145deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.98));
}

.rank-result-banner--beyond {
  border-color: rgba(245, 158, 11, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.98));
}

.rank-result-banner__lead {
  margin: 0 0 8px;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rank-result-banner--beyond .rank-result-banner__lead {
  color: #b45309;
}

.rank-result-banner__title {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.rank-result-banner__note,
.watcher-footnote {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.watcher-item {
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.watcher-item-body {
  min-width: 0;
  flex: 1;
}

.watcher-item-head {
  display: grid;
  gap: 6px;
}

.watcher-keyword {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(11, 122, 73, 0.1);
  color: #0b7a49;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.watcher-title {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
}

.watcher-target-chip {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watcher-target {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.watcher-author {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 12px;
}

.watcher-fallback-note {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.watcher-actions {
  flex: 0 0 auto;
  width: 100%;
  margin-top: 4px;
}

.watcher-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
}

.watcher-actions-row__buttons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.watcher-actions-row__buttons form {
  margin: 0;
}
/* Rank watcher compact grid */
.rank-watcher-health-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #e8edf0;
  border-radius: 8px;
  background: #fbfdfc;
}

.rank-watcher-health-row span {
  color: #64707d;
  font-size: 12px;
  font-weight: 800;
}

.rank-watcher-health-row b {
  color: #0b7a49;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 20px;
}

.rank-watcher-health-row em {
  color: #64707d;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.watcher-item--compact {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
}

.watcher-item--compact .watcher-item-head {
  gap: 4px;
}

.watcher-item--compact .watcher-title {
  font-size: 13px;
}

.watcher-item--compact .watcher-author,
.watcher-item--compact .watcher-footnote,
.watcher-item--compact .watcher-fallback-note,
.watcher-item--compact .watcher-checked-at {
  margin-top: 4px;
  font-size: 11px;
}

.watcher-item--compact .rank-position-strip--compact {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
}

.watcher-item--compact .rank-position-strip__row {
  gap: 8px;
}

.watcher-item--compact .rank-position-strip__section {
  padding-right: 8px;
}

.watcher-item--compact .rank-position-strip__section-name {
  font-size: 12px;
}

.watcher-item--compact .rank-position-ranks {
  gap: 6px;
}

.watcher-item--compact .rank-position-hero {
  padding: 7px 9px;
  gap: 6px 8px;
}

.watcher-item--compact .rank-position-hero__num {
  font-size: 24px;
}

.watcher-item--compact .rank-position-hero__unit {
  font-size: 12px;
}

.watcher-item--compact .rank-position-hero:not(.rank-position-hero--overall) {
  padding: 10px 12px;
}

.watcher-item--compact .rank-position-hero:not(.rank-position-hero--overall) .rank-position-hero__num {
  font-size: 32px;
}

.watcher-item--compact .rank-position-hero:not(.rank-position-hero--overall) .rank-position-hero__unit {
  font-size: 14px;
}

.watcher-item--compact .watcher-actions {
  margin-top: 8px;
}

.watcher-item--compact .watcher-actions-row {
  gap: 8px;
}

.watcher-action-button,
.watcher-delete-button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  white-space: nowrap;
  justify-content: center;
}

.watcher-action-button {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(11, 122, 73, 0.22);
  border-radius: 8px;
  background: #ecfdf3;
  color: #0b7a49;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease;
}

.watcher-action-button:hover {
  background: #d1fae5;
}

.watcher-schedule-note {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  color: #64707d;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  text-align: right;
}

.watcher-schedule-note__label {
  flex-shrink: 0;
  color: #64707d;
  font-weight: 800;
}

.watcher-schedule-note__time {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.watcher-checked-at {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 6px 0 0;
  color: #64707d;
  font-size: 11px;
  font-weight: 750;
}

.watcher-checked-at__label {
  color: #64707d;
  font-weight: 800;
}

.watcher-checked-at time {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  color: #334155;
  font-weight: 800;
}



@media (max-width: 560px) {
  .watcher-actions-row {
    flex-wrap: wrap;
  }

  .watcher-actions-row__buttons {
    width: 100%;
  }

  .watcher-schedule-note {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .rank-position-strip__row {
    flex-direction: column;
    gap: 10px;
  }

  .rank-position-strip__section {
    padding-right: 0;
    padding-bottom: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
}

body.theme-dark .rank-position-strip,
body.theme-dark .rank-position-hero,
body.theme-dark .rank-result-banner {
  border-color: rgba(148, 163, 184, 0.18);
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

body.theme-dark .rank-position-strip__section-name,
body.theme-dark .rank-position-hero__unit,
body.theme-dark .rank-result-banner__title,
body.theme-dark .watcher-title,
body.theme-dark .watcher-target {
  color: #e2e8f0;
}

body.theme-dark .rank-position-strip__eyebrow,
body.theme-dark .rank-position-hero__badge,
body.theme-dark .rank-position-hero__service,
body.theme-dark .watcher-author,
body.theme-dark .watcher-footnote,
body.theme-dark .rank-result-banner__note {
  color: #94a3b8;
}

body.theme-dark .watcher-item {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.16);
}


body.theme-dark .rank-position-hero__num {
  background: linear-gradient(165deg, #6ee7b7 0%, #34d399 45%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

body.theme-dark .rank-position-hero.is-beyond .rank-position-hero__num {
  background: linear-gradient(165deg, #fcd34d 0%, #f59e0b 48%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

body.theme-dark .rank-position-hero.is-missing .rank-position-hero__num {
  background: linear-gradient(165deg, #fca5a5 0%, #f87171 48%, #ef4444 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

body.theme-dark .rank-result-banner--top3 {
  border-color: rgba(52, 211, 153, 0.28);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.35), rgba(15, 23, 42, 0.92));
}


/* Rank check waiting modal */
.rank-check-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}

.rank-check-modal.is-visible {
  pointer-events: auto;
}

.rank-check-modal[hidden] {
  display: none !important;
}

.rank-check-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.rank-check-modal.is-visible .rank-check-modal__backdrop {
  opacity: 1;
}

.rank-check-modal__panel {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 40px));
  padding: 28px 26px 24px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.94));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 28px 60px rgba(15, 23, 42, 0.18);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
}

.rank-check-modal.is-visible .rank-check-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.rank-check-modal__glow {
  position: absolute;
  inset: -40% auto auto 50%;
  width: 220px;
  height: 220px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22), transparent 68%);
  pointer-events: none;
}

.rank-check-modal__loader {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 2px;
}

.rank-check-modal__ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(16, 185, 129, 0.16);
  border-top-color: #059669;
  border-radius: 999px;
  animation: rank-check-spin 900ms linear infinite;
}

.rank-check-modal__core {
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.rank-check-modal__eyebrow {
  margin: 0;
  color: #059669;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.rank-check-modal__title {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  word-break: keep-all;
}

.rank-check-modal__summary {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.rank-check-modal__keyword {
  margin: 0;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(11, 122, 73, 0.1);
  color: #0b7a49;
  font-size: 12px;
  font-weight: 800;
}

.rank-check-modal__keyword[hidden] {
  display: none !important;
}

.rank-check-modal__steps {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.rank-check-modal__steps li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.rank-check-modal__steps li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
  transform: translateY(-50%);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.rank-check-modal__steps li.is-active {
  border-color: rgba(16, 185, 129, 0.22);
  background: rgba(236, 253, 245, 0.92);
  color: #047857;
}

.rank-check-modal__steps li.is-active::before {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.rank-check-modal__steps li.is-done {
  color: #64748b;
}

.rank-check-modal__steps li.is-done::before {
  background: #34d399;
}

.rank-check-modal__progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.rank-check-modal__progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 420ms ease;
}

.rank-check-modal__hint {
  margin: 2px 0 0;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.rank-check-modal__hint strong {
  color: #0f172a;
  font-size: 13px;
}

.rank-check-modal__hint span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

body.is-rank-check-modal-open {
  overflow: hidden;
}

@keyframes rank-check-spin {
  to {
    transform: rotate(360deg);
  }
}

body.theme-dark .rank-check-modal__panel {
  border-color: rgba(148, 163, 184, 0.2);
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.96));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

body.theme-dark .rank-check-modal__title {
  color: #e2e8f0;
}

body.theme-dark .rank-check-modal__summary,
body.theme-dark .rank-check-modal__hint span {
  color: #94a3b8;
}

body.theme-dark .rank-check-modal__hint {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.14);
}

body.theme-dark .rank-check-modal__hint strong {
  color: #e2e8f0;
}

body.theme-dark .rank-check-modal__steps li {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.12);
  color: #64748b;
}

body.theme-dark .rank-check-modal__steps li.is-active {
  background: rgba(6, 78, 59, 0.35);
  border-color: rgba(52, 211, 153, 0.24);
  color: #6ee7b7;
}

body.theme-dark .rank-result-banner--beyond {
  border-color: rgba(251, 191, 36, 0.28);
  background: linear-gradient(145deg, rgba(120, 53, 15, 0.28), rgba(15, 23, 42, 0.92));
}


.watcher-item b.is-missing {
  background: #fff3ef;
  color: #b3532d;
}

.memory-status-button {
  min-width: 96px;
  min-height: 66px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid #dfe7eb;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,248,250,0.9));
  color: #64707d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86);
}

.memory-status-button strong {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 18px;
  line-height: 1;
}

.memory-status-button span {
  font-size: 11px;
  font-weight: 950;
}

.memory-status-button em {
  color: currentColor;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  opacity: 0.72;
}

.memory-status-button.is-visible {
  border-color: rgba(11, 122, 73, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0)),
    #e6f7ee;
  color: #0b7a49;
}

.memory-status-button.is-missing {
  border-color: rgba(179, 83, 45, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0)),
    #fff0ea;
  color: #b3532d;
}

.memory-status-button.is-pending {
  border-color: rgba(35, 106, 168, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0)),
    #edf5ff;
  color: #236aa8;
}

.memory-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.memory-actions form {
  margin: 0;
}

.memory-action-button {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms ease,
    background 180ms ease;
}

.memory-action-button:active {
  transform: translateY(1px) scale(0.98);
}

.memory-action-button i {
  position: relative;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.memory-check-now {
  border: 1px solid rgba(11, 122, 73, 0.18);
  background: #f2fbf6;
  color: #0b7a49;
}

.memory-check-now:hover {
  border-color: rgba(11, 122, 73, 0.32);
  background: #e8f7ee;
}

.memory-check-now i {
  border: 2px solid currentColor;
  border-radius: 999px;
}

.memory-check-now i::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.memory-forget {
  border: 1px solid rgba(179, 83, 45, 0.16);
  background: #fff7f4;
  color: #a4492b;
}

.memory-forget:hover {
  border-color: rgba(179, 83, 45, 0.32);
  background: #fff0ea;
}

.memory-forget i::before,
.memory-forget i::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.memory-forget i::before {
  transform: rotate(45deg);
}

.memory-forget i::after {
  transform: rotate(-45deg);
}

.rank-check-form {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

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

.rank-field-grid label,
.rank-type-toggle {
  display: grid;
  gap: 7px;
}

.rank-field-grid label span {
  color: #27313d;
  font-size: 12px;
  font-weight: 850;
}

.rank-field-grid input {
  width: 100%;
  height: 42px;
  border: 1px solid #dfe7eb;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #26313d;
  outline: 0;
}

.rank-field-grid input:focus {
  border-color: #0b7a49;
  box-shadow: 0 0 0 4px rgba(11, 122, 73, 0.1);
}

.rank-form-hint {
  margin: -2px 0 0;
  color: #64707d;
  font-size: 12px;
  line-height: 1.5;
}

.rank-service-row {
  gap: 8px;
  flex-wrap: wrap;
}

.rank-type-toggle {
  cursor: pointer;
}

.rank-type-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rank-type-toggle span {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid #dce6e0;
  border-radius: 8px;
  background: #fff;
  color: #64707d;
  font-size: 12px;
  font-weight: 900;
}

.rank-type-toggle input:checked + span {
  border-color: rgba(11, 122, 73, 0.26);
  background: #edf8f2;
  color: #0b7a49;
}

.rank-service-row .primary-button {
  margin-left: auto;
  min-height: 38px;
}

.watcher-item > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.watcher-item span {
  color: #0b7a49;
  font-size: 12px;
  font-weight: 900;
}

.watcher-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #26313d;
  font-size: 14px;
}

.watcher-item b {
  min-width: 70px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

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

@media (max-width: 760px) {
  .standalone-workspace {
    padding: 24px 16px 38px;
  }

  .member-panel-large .member-list {
    grid-template-columns: 1fr;
  }

  .member-panel-large .watcher-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memory-item {
    align-items: stretch;
    flex-direction: column;
  }

  .memory-control-stack {
    justify-items: stretch;
  }

  .memory-actions {
    justify-content: stretch;
  }

  .memory-actions form,
  .memory-action-button {
    width: 100%;
  }

  .memory-action-button {
    justify-content: center;
  }

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

  .rank-service-row .primary-button {
    width: 100%;
    margin-left: 0;
  }
}

/* Results history page */
.results-history-workspace {
  width: min(100%, 1240px);
}

.results-page-header {
  align-items: flex-end;
  gap: 18px;
}

.result-history-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(74px, 1fr));
  gap: 8px;
  min-width: min(100%, 420px);
}

.result-history-summary span {
  min-height: 56px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(205, 214, 220, 0.84);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,250,249,0.84));
  color: #64707d;
  font-size: 11px;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88);
}

.result-history-summary b {
  color: #171b22;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 21px;
  line-height: 1;
}

.results-list-panel {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(202, 212, 220, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(250,252,251,0.9));
  box-shadow:
    0 24px 60px -48px rgba(20, 32, 42, 0.66),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.results-list-head,
.result-job-card,
.result-job-title-row,
.result-job-meta,
.result-job-actions {
  display: flex;
  align-items: center;
}

.results-list-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.results-list-head h3 {
  margin: 0;
  color: #171b22;
  font-size: 21px;
  letter-spacing: 0;
}

.result-new-button {
  min-height: 38px;
  padding: 0 16px;
  text-decoration: none;
}

.result-history-empty {
  min-height: 180px;
}

.result-job-list {
  display: grid;
  gap: 10px;
}

.result-job-card {
  position: relative;
  isolation: isolate;
  justify-content: space-between;
  gap: 18px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid #e2e9e7;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,251,250,0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.result-job-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #9aa7b2;
  z-index: -1;
}

.result-job-card.is-completed::before {
  background: #0b7a49;
}

.result-job-card.is-running::before {
  background: #236aa8;
}

.result-job-card.is-failed::before {
  background: #b3532d;
}

.result-job-card:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 122, 73, 0.22);
  box-shadow:
    0 18px 42px -36px rgba(20, 32, 42, 0.7),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.result-job-main {
  min-width: 0;
  flex: 1 1 auto;
}

.result-job-title-row {
  gap: 10px;
  min-width: 0;
}

.result-job-title-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #171b22;
  font-size: 16px;
}

.job-status {
  flex: 0 0 auto;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.job-status.is-completed {
  background: #e7f6ee;
  color: #0b7a49;
}

.job-status.is-running {
  background: #edf5ff;
  color: #236aa8;
}

.job-status.is-failed {
  background: #fff1eb;
  color: #b3532d;
}

.result-job-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.result-job-keywords span {
  --keyword-hue: 152;
  max-width: 180px;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid hsl(var(--keyword-hue) 38% 78%);
  border-radius: 999px;
  background: hsl(var(--keyword-hue) 54% 95%);
  color: hsl(var(--keyword-hue) 42% 28%);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-job-meta {
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  color: #71808c;
  font-size: 12px;
  font-weight: 800;
}

.result-job-meta b {
  margin-left: 4px;
  color: #2b3642;
  font-weight: 850;
}

.result-job-error {
  margin: 10px 0 0;
  color: #9f4324;
  font-size: 12px;
  line-height: 1.45;
}

.result-job-count {
  min-width: 76px;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #e5ecea;
  border-radius: 8px;
  background: #fbfdfc;
}

.result-job-count strong {
  color: #171b22;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 22px;
  line-height: 1;
}

.result-job-count span {
  color: #64707d;
  font-size: 11px;
  font-weight: 850;
}

.result-job-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 7px;
}

.result-delete-form {
  margin: 0;
}

.result-job-actions .download-button {
  min-height: 32px;
  padding: 0 10px;
}

.result-open-button,
.result-delete-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.result-open-button {
  border: 1px solid rgba(11, 122, 73, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0)),
    #0b7a49;
  color: #fff;
  box-shadow:
    0 14px 24px -22px rgba(11, 122, 73, 0.72),
    inset 0 1px 0 rgba(255,255,255,0.24);
}

.result-open-button:hover {
  background: #08683f;
}

.result-open-button:active,
.result-delete-button:active {
  transform: translateY(1px) scale(0.98);
}

.result-open-button i {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.result-open-button i::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 2px;
  right: -5px;
  bottom: -2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.result-delete-button {
  appearance: none;
  border: 1px solid rgba(179, 83, 45, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,247,244,0.92));
  color: #a4492b;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86);
}

.result-delete-button:hover {
  border-color: rgba(179, 83, 45, 0.34);
  background: #fff7f4;
  color: #8d3b22;
}

.result-delete-button i {
  position: relative;
  width: 14px;
  height: 15px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px 2px 4px 4px;
}

.result-delete-button i::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -5px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.result-delete-button i::after {
  content: "";
  position: absolute;
  left: 4px;
  top: -8px;
  width: 6px;
  height: 3px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

@media (max-width: 980px) {
  .results-page-header {
    align-items: stretch;
  }

  .result-history-summary {
    width: 100%;
  }

  .result-job-card {
    align-items: stretch;
    flex-direction: column;
  }

  .result-job-count {
    min-width: 0;
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .result-job-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .result-history-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .result-new-button {
    width: 100%;
    justify-content: center;
  }

  .result-job-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-job-title-row strong {
    white-space: normal;
  }
}


/* Trends page */
.dashboard-body.trends-page .trends-workspace {
  min-width: 0;
}

.dashboard-body.trends-page .trends-panel-wrap {
  display: grid;
  gap: 18px;
}

.dashboard-body.trends-page .trend-header-card {
  min-height: 320px;
  grid-template-columns: minmax(200px, 0.7fr) minmax(420px, 1.8fr) minmax(160px, 0.62fr);
}

.trends-keyword-form {
  align-content: start;
  gap: 18px;
}

.trends-form-hint {
  margin: 0;
  color: #64707d;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .dashboard-body.trends-page .trend-header-card {
    grid-template-columns: 1fr;
  }
}
/* Image reference dashboard redesign */
.image-dashboard-body{--image-bg:#f7faf8;--image-surface:#fff;--image-muted:#7a857f;--image-ink:#18221d;--image-line:#e7eee9;--image-accent:#0b7a49;--image-soft:#e9f7ef;--image-shadow:0 18px 45px -34px rgba(24,34,29,.48);min-height:100dvh;background:var(--image-bg);color:var(--image-ink);overflow-x:hidden}.image-dashboard-shell{min-height:100dvh;display:grid;grid-template-columns:280px minmax(0,1fr)}.image-sidebar{position:sticky;top:0;height:100dvh;padding:26px 18px 18px;display:grid;grid-template-rows:auto auto 1fr auto;gap:24px;border-right:1px solid var(--image-line);background:rgba(255,255,255,.88);backdrop-filter:blur(18px)}.image-sidebar-brand,.image-sidebar-nav a,.image-sidebar-user,.image-topbar,.image-topbar-actions,.image-kpi-head,.image-card-head,.image-recent-row,.image-schedule-task,.image-summary-list div{display:flex;align-items:center}.image-sidebar-brand{gap:10px;color:inherit;text-decoration:none}.image-sidebar-brand span{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:linear-gradient(145deg,#11a76b,#0b7a49);color:#fff;font-weight:950}.image-sidebar-brand strong{font-size:15px;letter-spacing:-.02em}.image-sidebar-brand em{padding:4px 7px;border-radius:999px;background:var(--image-soft);color:var(--image-accent);font-size:10px;font-style:normal;font-weight:900}.image-sidebar-nav{display:grid;gap:8px}.image-sidebar-nav a{min-height:48px;gap:12px;padding:0 14px;border-radius:10px;color:#56635c;font-size:14px;font-weight:820;text-decoration:none;transition:transform .18s cubic-bezier(.16,1,.3,1),background .18s ease,color .18s ease}.image-sidebar-nav a:hover,.image-sidebar-nav a.is-active{background:var(--image-accent);color:#fff;transform:translateX(2px)}.image-sidebar-nav i{width:18px;height:18px;border:1.8px solid currentColor;border-radius:6px;opacity:.84}.image-collect-panel{align-self:end;display:grid;gap:12px;padding:16px;border:1px solid rgba(11,122,73,.14);border-radius:12px;background:linear-gradient(180deg,#ecfbf3,#f8fffb);box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}.image-collect-head strong,.image-card-head h3{display:block;margin:0;font-size:15px;font-weight:900;letter-spacing:-.02em}.image-collect-head span{display:block;margin-top:4px;color:var(--image-muted);font-size:12px;line-height:1.45}.image-collect-field{display:grid;gap:8px;color:#233128;font-size:12px;font-weight:850}.image-collect-field textarea{min-height:96px;resize:vertical;padding:12px;border:1px solid #dce8df;border-radius:10px;background:rgba(255,255,255,.88);color:#223027;line-height:1.5}.image-inline-button,.image-start-button,.image-new-button{min-height:40px;border:0;border-radius:9px;font-weight:900;cursor:pointer;text-decoration:none}.image-inline-button{background:rgba(255,255,255,.72);color:var(--image-accent)}.image-start-button,.image-new-button{display:inline-flex;align-items:center;justify-content:center;background:var(--image-accent);color:#fff}.image-service-toggles{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.image-service-toggles .toggle-pill span{height:38px;border-radius:9px;font-size:11px;box-shadow:none}.image-service-toggles .toggle-pill span i{display:none}.image-sidebar-user{gap:11px;padding-top:18px;border-top:1px solid var(--image-line)}.image-sidebar-user>span{width:38px;height:38px;display:grid;place-items:center;border-radius:999px;background:#e7f3ec;color:var(--image-accent);font-weight:950}.image-sidebar-user-meta{min-width:0;flex:1;display:grid;gap:2px}.image-sidebar-user strong,.image-sidebar-user em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-sidebar-user strong{font-size:13px}.image-sidebar-user em{color:var(--image-muted);font-size:11px;font-style:normal}.image-sidebar-user a:not(.image-sidebar-user-avatar):not(.image-sidebar-plan-card):not(.image-user-action){width:18px;height:18px}.image-dashboard-main{min-width:0;padding:22px clamp(18px,3vw,42px) 40px}.image-topbar{min-height:46px;justify-content:space-between;gap:18px;margin-bottom:24px}.image-searchbox{width:min(520px,100%);min-height:44px;display:flex;align-items:center;gap:12px;padding:0 16px;border:1px solid var(--image-line);border-radius:999px;background:rgba(255,255,255,.84)}.image-searchbox span{width:15px;height:15px;border:2px solid #9aa69f;border-radius:999px;position:relative}.image-searchbox span:after{content:"";position:absolute;width:6px;height:2px;right:-5px;bottom:-3px;background:#9aa69f;transform:rotate(45deg)}.image-searchbox input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--image-ink)}.image-topbar-actions{gap:12px}.image-icon-button{position:relative;width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--image-line);border-radius:999px;background:rgba(255,255,255,.84);color:var(--image-ink)}.image-icon-button span{width:15px;height:15px;border:2px solid currentColor;border-radius:999px}.image-icon-button b{position:absolute;top:-4px;right:-3px;min-width:16px;height:16px;display:grid;place-items:center;border-radius:999px;background:#e54b4b;color:#fff;font-size:9px}.image-new-button{min-height:38px;padding:0 16px;gap:8px;border-radius:8px;font-size:13px}.image-new-button:before{content:"+";font-size:17px}.image-hero-card{min-height:134px;margin-bottom:22px;padding:28px 32px;display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:center;gap:24px;border:1px solid rgba(231,238,233,.9);border-radius:18px;overflow:hidden;background:radial-gradient(circle at 84% 30%,rgba(12,167,104,.2),transparent 12rem),linear-gradient(100deg,#fff 0%,#f3fbf7 58%,#e8f8ef 100%);box-shadow:var(--image-shadow)}.image-hero-kicker,.image-section-heading p{margin:0 0 8px;color:var(--image-muted);font-size:12px;font-weight:850}.image-hero-card h1{margin:0 0 8px;font-size:clamp(24px,3vw,34px);letter-spacing:-.04em}.image-hero-card span{color:#5c6962;font-size:14px}.image-hero-art{position:relative;height:96px}.image-hero-art i{position:absolute;border-radius:999px;background:linear-gradient(90deg,rgba(11,122,73,.06),rgba(35,195,132,.36));transform:rotate(-15deg)}.image-hero-art i:nth-child(1){inset:10px 20px auto 0;height:34px}.image-hero-art i:nth-child(2){inset:38px 0 auto 52px;height:28px}.image-hero-art i:nth-child(3){width:34px;height:34px;right:56px;top:34px;background:linear-gradient(145deg,#15a66b,#7de3ad);box-shadow:0 20px 42px -22px rgba(11,122,73,.9)}.image-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:22px}.image-kpi-card,.image-summary-card,.image-recent-card,.image-schedule-card,.image-report-section{border:1px solid var(--image-line);border-radius:18px;background:var(--image-surface);box-shadow:var(--image-shadow)}.image-kpi-card{position:relative;min-height:146px;padding:22px;overflow:hidden}.image-kpi-head{justify-content:space-between;gap:12px;margin-bottom:12px}.image-kpi-head span{color:#59645e;font-size:13px;font-weight:850}.image-kpi-head i{width:36px;height:36px;border-radius:10px;background:var(--image-soft)}.image-kpi-card strong{display:block;font-family:"JetBrains Mono","SFMono-Regular",Consolas,monospace;font-size:31px;line-height:1;letter-spacing:-.05em}.image-kpi-card small{margin-left:3px;font-size:13px;color:var(--image-muted)}.image-kpi-card p{margin:11px 0 0;color:var(--image-muted);font-size:12px}.image-kpi-card p b{color:var(--image-accent)}.image-sparkline{position:absolute;right:16px;bottom:14px;width:62%;height:42px;overflow:visible}.image-sparkline polyline{fill:none;stroke:var(--image-accent);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.image-dashboard-grid{display:grid;grid-template-columns:minmax(300px,1.06fr) minmax(320px,1.08fr) minmax(250px,.76fr);gap:18px;margin-bottom:22px}.image-summary-card,.image-recent-card,.image-schedule-card{padding:22px}.image-card-head{justify-content:space-between;gap:16px;margin-bottom:20px}.image-card-head span,.image-card-head a{color:var(--image-muted);font-size:12px;font-weight:820;text-decoration:none}.image-summary-body{display:grid;grid-template-columns:190px 1fr;align-items:center;gap:20px}.image-donut{width:178px;height:178px}.image-summary-list{display:grid;gap:14px}.image-summary-list div{gap:10px;color:#56625b;font-size:13px}.image-summary-list i{width:9px;height:9px;border-radius:999px}.image-summary-list i.ok{background:#30b678}.image-summary-list i.run{background:#7667e8}.image-summary-list i.fail{background:#f06d4f}.image-summary-list span{flex:1}.image-summary-list b{color:#263129;font-weight:850}.image-summary-list em{color:var(--image-muted);font-style:normal;font-weight:700}.image-recent-list{display:grid;gap:12px}.image-recent-row{min-height:62px;gap:12px;padding:10px;border-radius:13px;color:inherit;text-decoration:none;transition:background .18s ease,transform .18s cubic-bezier(.16,1,.3,1)}.image-recent-row:hover{background:#f7fbf8;transform:translateX(2px)}.image-recent-icon{width:38px;height:38px;flex:0 0 auto;border-radius:11px;background:#e8f8ef}.image-recent-icon.tone-2{background:#f0edff}.image-recent-icon.tone-3{background:#eef3ff}.image-recent-icon.tone-4{background:#fff0ee}.image-recent-row div{min-width:0;flex:1;display:grid;gap:3px}.image-recent-row strong,.image-recent-row em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-recent-row strong{font-size:13px}.image-recent-row em{color:var(--image-muted);font-size:11px;font-style:normal}.image-recent-row>b{font-size:12px;font-family:"JetBrains Mono",Consolas,monospace}.image-recent-row>i{padding:5px 8px;border-radius:999px;background:#eaf8ef;color:var(--image-accent);font-size:11px;font-style:normal;font-weight:900}.image-recent-row>i.is-running{background:#eef3ff;color:#4164c8}.image-recent-row>i.is-failed{background:#fff0ee;color:#c44c36}.image-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;text-align:center}.image-calendar b,.image-calendar span{min-height:25px;display:grid;place-items:center;border-radius:999px;color:#69746e;font-size:11px}.image-calendar b{color:#9aa49f;font-weight:800}.image-calendar span.is-today{background:var(--image-accent);color:#fff;font-weight:900}.image-schedule-note{margin:18px 0 12px;padding:12px;display:flex;justify-content:space-between;border-radius:12px;background:#f7fbf8;color:var(--image-muted);font-size:12px}.image-schedule-note strong{color:var(--image-accent)}.image-schedule-task{gap:10px}.image-schedule-task i{width:26px;height:26px;border-radius:8px;background:#e8f8ef}.image-schedule-task div{display:grid;gap:2px}.image-schedule-task strong{font-size:12px}.image-schedule-task span{color:var(--image-muted);font-size:11px}.image-report-section{padding:22px}.image-section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}.image-section-heading h2{margin:0;font-size:22px;letter-spacing:-.03em}.image-empty-report,.image-empty-mini{display:grid;gap:8px;place-items:center;min-height:160px;border:1px dashed #cfdcd4;border-radius:14px;color:var(--image-muted);text-align:center}.image-empty-report strong,.image-empty-mini{color:#324138;font-weight:900}@media (max-width:1180px){.image-kpi-grid,.image-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.image-schedule-card{grid-column:1/-1}}@media (max-width:860px){.image-dashboard-shell{grid-template-columns:1fr}.image-sidebar{position:static;height:auto;grid-template-rows:auto}.image-sidebar-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.image-topbar,.image-section-heading{align-items:stretch;flex-direction:column}.image-hero-card,.image-kpi-grid,.image-dashboard-grid,.image-summary-body{grid-template-columns:1fr}.image-hero-art{display:none}}

/* Unified image dashboard subpages */
.image-subpage-body .image-dashboard-main{padding-top:22px}.image-subpage-body .image-page-hero{min-height:122px}.image-sub-kpi{margin-bottom:22px}.image-sub-panel{margin-top:0}.image-member-panel{display:block}.image-member-panel>.member-panel-large,.image-member-panel .member-panel-large{border:1px solid var(--image-line);border-radius:18px;background:#fff;box-shadow:var(--image-shadow)}.image-keyword-tool{margin-bottom:18px}.image-trend-form{display:grid;gap:12px}.image-form-actions{display:flex;gap:10px;flex-wrap:wrap}.image-form-actions .image-inline-button,.image-form-actions .image-start-button{padding:0 16px}.image-trend-chart-wrap .trend-header-card{border-radius:18px;box-shadow:var(--image-shadow)}.image-subpage-body .result-job-card{border-color:var(--image-line);border-radius:14px;background:#fff}.image-subpage-body .member-empty{border-radius:14px;background:#fff}@media (max-width:860px){.image-form-actions{display:grid}.image-form-actions .image-inline-button,.image-form-actions .image-start-button{width:100%}}

.watcher-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.watcher-actions form{margin:0}.watcher-delete-button{min-height:30px;padding:0 10px;border:1px solid rgba(179,83,45,.2);border-radius:8px;background:#fff7f4;color:#a4492b;font-size:12px;font-weight:900;cursor:pointer;transition:transform .18s cubic-bezier(.16,1,.3,1),background .18s ease}.watcher-delete-button:hover{background:#ffede7}.watcher-delete-button:active{transform:translateY(1px) scale(.98)}
/* Fix image dashboard conflicts with legacy dashboard-body styles */
.image-dashboard-body.dashboard-body {
  background:
    radial-gradient(circle at 84% 8%, rgba(11, 122, 73, 0.05), transparent 24rem),
    linear-gradient(180deg, #fbfcfc 0%, #f7faf9 100%);
  color: var(--image-ink, #18221d);
}

.image-dashboard-body .collect-form {
  align-content: stretch;
  gap: 12px;
}

.image-dashboard-body #keywords {
  min-height: 88px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid #dce8df;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #223027;
  font-weight: 600;
  line-height: 1.5;
  padding: 10px 12px;
  box-shadow: none;
}

.image-dashboard-body #keywords:focus {
  border-color: var(--image-accent, #0b7a49);
  box-shadow: 0 0 0 3px rgba(11, 122, 73, 0.12);
}

.image-dashboard-body .toggle-grid,
.image-dashboard-body .image-service-toggles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.image-dashboard-body .toggle-pill span {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid #dce8df;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #0b7a49;
  font-size: 11px;
  font-weight: 800;
  box-shadow: none;
}

.image-dashboard-body .toggle-pill span i {
  display: none;
}

.image-dashboard-body .toggle-pill input:checked + span {
  border-color: rgba(11, 122, 73, 0.28);
  background: #e9f7ef;
  color: #0b7a49;
}

.image-dashboard-body .add-keyword-button,
.image-dashboard-body .image-inline-button {
  min-height: 34px;
  border: 1px solid #dce8df;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #0b7a49;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

.image-dashboard-body .add-keyword-button::before {
  margin-right: 6px;
  font-size: 16px;
}

.image-dashboard-shell {
  grid-template-columns: 248px minmax(0, 1fr);
}

.image-sidebar {
  padding: 22px 16px 16px;
  gap: 20px;
  background: #ffffff;
  border-right: 1px solid #edf2ef;
  box-shadow: none;
}

.image-sidebar-nav a {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
}

.image-collect-panel {
  margin-top: auto;
  padding: 14px;
  border-radius: 10px;
}

.image-collect-head strong {
  font-size: 13px;
}

.image-collect-head span {
  font-size: 11px;
}

.image-start-button {
  width: 100%;
  min-height: 38px;
  border-radius: 8px;
  font-size: 13px;
}

.image-dashboard-main {
  padding: 20px clamp(20px, 3vw, 36px) 36px;
}

.image-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.image-searchbox {
  width: min(460px, 100%);
  min-height: 40px;
  border-radius: 10px;
}

.image-new-button {
  white-space: nowrap;
}

.image-hero-card {
  border-radius: 16px;
}

.image-kpi-card,
.image-summary-card,
.image-recent-card,
.image-schedule-card,
.image-report-section {
  border-radius: 16px;
}

.image-kpi-card strong {
  font-size: clamp(24px, 2.4vw, 30px);
}

.image-dashboard-grid {
  grid-template-columns: minmax(280px, 1.1fr) minmax(300px, 1.05fr) minmax(240px, 0.85fr);
}

.image-summary-body {
  grid-template-columns: minmax(140px, 170px) 1fr;
}

.image-donut {
  width: 160px;
  height: 160px;
}

@media (max-width: 1180px) {
  .image-dashboard-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

/* Reference dashboard fidelity pass */
.image-dashboard-body {
  --image-bg: #f8fbfa;
  --image-surface: #ffffff;
  --image-muted: #7b8790;
  --image-ink: #202631;
  --image-line: #e8eef0;
  --image-accent: #0b7a49;
  --image-accent-2: #12a66a;
  --image-soft: #ebf8f2;
  --image-card-shadow: 0 22px 55px -42px rgba(38, 49, 61, 0.58), inset 0 1px 0 rgba(255,255,255,0.9);
  background:
    radial-gradient(circle at 82% 8%, rgba(11,122,73,0.06), transparent 25rem),
    linear-gradient(180deg, #fcfdfd 0%, #f7faf9 100%);
}

.image-line-icon {
  width: 1em;
  height: 1em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.image-dashboard-shell {
  grid-template-columns: 292px minmax(0, 1fr);
}

.image-sidebar {
  padding: 24px 18px 18px;
  gap: 22px;
  border-right: 1px solid #edf1f0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,253,252,0.94));
  box-shadow: 18px 0 50px -46px rgba(39, 49, 61, 0.45);
}

.image-sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.image-sidebar-brand {
  min-width: 0;
  flex: 1;
  gap: 12px;
}

.image-sidebar-brand span {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0)),
    linear-gradient(145deg, #16b978, #087245);
  box-shadow:
    0 15px 28px -20px rgba(11,122,73,0.8),
    inset 0 1px 0 rgba(255,255,255,0.28);
  font-size: 21px;
}

.image-sidebar-brand strong {
  overflow: hidden;
  color: #202631;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-sidebar-brand em {
  padding: 5px 8px;
  background: #dff2e9;
  color: #137a4d;
  font-size: 11px;
}

.image-sidebar-collapse {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid #e5ecef;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #4f5b66;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease;
}

.image-sidebar-collapse:hover {
  border-color: rgba(11,122,73,0.24);
  transform: translateX(-1px);
}

.image-sidebar-collapse .image-line-icon {
  width: 18px;
  height: 18px;
}

.image-sidebar-nav {
  gap: 10px;
}

.image-sidebar-nav a {
  position: relative;
  min-height: 50px;
  gap: 13px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #596572;
  font-size: 14px;
  font-weight: 850;
  overflow: hidden;
}

.image-sidebar-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: transparent;
}

.image-sidebar-nav a:hover {
  background: #f7fbf9;
  color: #1f3b2d;
  transform: translateX(1px);
}

.image-sidebar-nav a.is-active {
  border-color: rgba(11,122,73,0.16);
  background:
    linear-gradient(90deg, rgba(11,122,73,0.1), rgba(255,255,255,0)),
    linear-gradient(180deg, #0f8c55, #087244);
  color: #ffffff;
  box-shadow:
    0 18px 34px -25px rgba(11,122,73,0.72),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.image-sidebar-nav a.is-active::before {
  background: #e9fff4;
}

.image-nav-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: currentColor;
}

.image-nav-icon .image-line-icon {
  width: 21px;
  height: 21px;
}

.image-sidebar-nav a.is-active .image-nav-icon {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
}

.image-sidebar-divider {
  height: 1px;
  margin: 12px 8px 10px;
  background: #edf1f0;
}

.image-nav-settings {
  min-height: 58px !important;
  border-color: #e7edef !important;
  background: rgba(255,255,255,0.88);
}

.image-nav-settings b {
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.72;
  transform: rotate(45deg);
}

.image-collect-panel {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfece6;
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    0 24px 46px -38px rgba(11,122,73,0.42),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.image-collect-promo {
  position: relative;
  min-height: 132px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 80%, rgba(17,185,120,0.24), transparent 5rem),
    linear-gradient(135deg, #f0fbf5 0%, #ffffff 64%);
}

.image-collect-promo > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #16b978, #6dd79f);
  color: #ffffff;
  box-shadow: 0 18px 36px -25px rgba(11,122,73,0.82);
}

.image-collect-promo > span .image-line-icon {
  width: 26px;
  height: 26px;
}

.image-collect-promo i {
  position: absolute;
  right: 18px;
  bottom: 15px;
  width: 74px;
  height: 58px;
  opacity: 0.62;
  background:
    linear-gradient(#7ed7aa, #7ed7aa) 8px 34px / 9px 20px no-repeat,
    linear-gradient(#42b979, #42b979) 28px 20px / 9px 34px no-repeat,
    linear-gradient(#1b9e61, #1b9e61) 50px 6px / 9px 48px no-repeat,
    radial-gradient(circle at 56px 6px, #9fe4bf 0 4px, transparent 5px);
}

.image-collect-promo i::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 10px;
  top: 14px;
  height: 32px;
  border-top: 4px solid rgba(66,185,121,0.28);
  border-radius: 999px;
  transform: rotate(-22deg);
}

.image-collect-head strong {
  color: #171f28;
  font-size: 15px;
  line-height: 1.25;
}

.image-collect-head em {
  display: block;
  margin-top: 6px;
  color: #6f7b84;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.image-collect-field {
  padding: 16px 16px 0;
  color: #27313d;
  font-size: 13px;
}

.image-keyword-editor {
  position: relative;
  overflow: hidden;
  border: 1px solid #e1e9ec;
  border-radius: 12px;
  background:
    linear-gradient(#edf8f2, #edf8f2) 0 0 / 100% 42px no-repeat,
    repeating-linear-gradient(to bottom, #ffffff 0 41px, #edf1f3 41px 42px);
}

.image-keyword-editor::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 16px;
  width: 4px;
  height: 72px;
  background:
    radial-gradient(circle, #6e7983 0 2px, transparent 2.4px) 0 0 / 4px 24px repeat-y;
  opacity: 0.82;
  pointer-events: none;
}

.image-dashboard-body #keywords {
  min-height: 126px;
  max-height: 170px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 38px 0 16px;
  color: #27313d;
  font-size: 14px;
  font-weight: 760;
  line-height: 42px;
}

.image-dashboard-body #keywords:focus {
  box-shadow: inset 0 0 0 2px rgba(11,122,73,0.16);
}

.image-dashboard-body .image-collect-panel .image-inline-button {
  width: calc(100% - 32px);
  min-height: 45px;
  margin: 14px 16px 0;
  border-color: #e1e9ec;
  border-radius: 12px;
  background: #ffffff;
  color: #0b7a49;
  font-size: 15px;
}

.image-service-toggles {
  padding: 16px;
  gap: 10px;
}

.image-dashboard-body .image-service-toggles .toggle-pill span {
  height: 70px;
  display: grid;
  place-items: center;
  gap: 7px;
  border-color: #e0e9ec;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
  color: #0b7a49;
  font-size: 13px;
  box-shadow: 0 16px 30px -28px rgba(39,49,61,0.48);
}

.image-dashboard-body .image-service-toggles .toggle-pill span i {
  position: relative;
  width: 24px;
  height: 24px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.image-dashboard-body .image-service-toggles .service-toggle-blog span i::before,
.image-dashboard-body .image-service-toggles .service-toggle-blog span i::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.image-dashboard-body .image-service-toggles .service-toggle-blog span i::before { top: 7px; }
.image-dashboard-body .image-service-toggles .service-toggle-blog span i::after { top: 13px; }

.image-dashboard-body .image-service-toggles .service-toggle-cafe span i {
  border-radius: 4px 4px 12px 12px;
}

.image-dashboard-body .image-service-toggles .service-toggle-cafe span i::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 6px;
  width: 8px;
  height: 9px;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.image-dashboard-body .image-service-toggles .service-toggle-kin span i {
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 30%, currentColor 0 4px, transparent 4.5px),
    linear-gradient(currentColor, currentColor) 4px 17px / 16px 2px no-repeat;
}

.image-collect-panel .image-start-button {
  width: calc(100% - 32px);
  min-height: 56px;
  margin: 0 16px 18px;
  gap: 13px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 90% 130%, rgba(255,255,255,0.2), transparent 5rem),
    linear-gradient(145deg, #126c43, #0b7a49);
  font-size: 18px;
  box-shadow:
    0 22px 38px -28px rgba(11,122,73,0.88),
    inset 0 1px 0 rgba(255,255,255,0.24);
}

.image-collect-panel .image-start-button span {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
}

.image-sidebar-user {
  min-height: 66px;
  padding: 15px 8px 0;
}

.image-sidebar-user > span {
  width: 42px;
  height: 42px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0)),
    #e6f4ed;
  color: #0b7a49;
}

.image-sidebar-user a {
  position: relative;
  width: 24px;
  height: 24px;
  border: 0;
  transform: none;
}

.image-sidebar-user a::before {
  content: none;
  display: none;
}

.image-topbar {
  min-height: 48px;
  margin-bottom: 24px;
}

.image-searchbox {
  width: min(520px, 100%);
  min-height: 48px;
  padding: 0 12px 0 18px;
  border-color: #e6ecef;
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 14px 32px -28px rgba(39,49,61,0.45);
}

.image-searchbox kbd {
  min-width: 40px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #e6ecef;
  border-radius: 8px;
  background: #f6f8f9;
  color: #7b8790;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.image-icon-button {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  border-color: #e6ecef;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 30px -28px rgba(39,49,61,0.42);
}

.image-icon-button .image-line-icon {
  width: 20px;
  height: 20px;
}

.image-icon-button > span {
  display: none;
}

.image-icon-button b {
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  background: #ee4f4f;
  font-size: 10px;
}

.image-new-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: linear-gradient(145deg, #0c8b53, #087244);
  font-size: 14px;
  box-shadow: 0 18px 32px -25px rgba(11,122,73,0.72);
}

.image-hero-card {
  min-height: 136px;
  padding: 30px 34px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 80% 45%, rgba(31,192,129,0.18), transparent 12rem),
    radial-gradient(circle at 92% -20%, rgba(11,122,73,0.17), transparent 12rem),
    linear-gradient(100deg, #ffffff 0%, #f4fbf8 56%, #e8f7f0 100%);
  box-shadow: var(--image-card-shadow);
}

.image-hero-card h1 {
  color: #202631;
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 950;
}

.image-hero-art i:nth-child(1),
.image-hero-art i:nth-child(2) {
  height: 31px;
  filter: drop-shadow(0 16px 22px rgba(11,122,73,0.12));
}

.image-kpi-grid {
  gap: 18px;
}

.image-kpi-card,
.image-summary-card,
.image-recent-card,
.image-schedule-card,
.image-report-section {
  border-color: #e5ecef;
  border-radius: 18px;
  box-shadow: var(--image-card-shadow);
}

.image-kpi-card {
  min-height: 164px;
  padding: 24px;
}

.image-kpi-head i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0b7a49;
  background: #dcf6ea;
}

.image-kpi-stack .image-kpi-head i { color: #665cf1; background: #efedff; }
.image-kpi-shield .image-kpi-head i { color: #139b86; background: #e0f6f1; }
.image-kpi-folder .image-kpi-head i { color: #f07b25; background: #fff0df; }

.image-kpi-head i .image-line-icon {
  width: 22px;
  height: 22px;
}

.image-sparkline {
  opacity: 0.88;
}

.image-dashboard-grid {
  grid-template-columns: minmax(330px, 1.08fr) minmax(360px, 1.08fr) minmax(280px, 0.86fr);
}

.image-recent-icon,
.image-schedule-task i {
  display: grid;
  place-items: center;
  color: #0b7a49;
}

.image-recent-icon .image-line-icon,
.image-schedule-task i .image-line-icon {
  width: 19px;
  height: 19px;
}

.image-schedule-card {
  min-width: 0;
}

@media (max-width: 1280px) {
  .image-dashboard-shell {
    grid-template-columns: 270px minmax(0, 1fr);
  }

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

@media (max-width: 960px) {
  .image-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .image-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #edf1f0;
  }

  .image-sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-sidebar-divider {
    grid-column: 1 / -1;
  }

  .image-collect-panel {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .image-dashboard-main {
    padding: 16px;
  }

  .image-sidebar {
    padding: 18px 14px;
  }

  .image-sidebar-nav {
    grid-template-columns: 1fr;
  }

  .image-service-toggles {
    grid-template-columns: 1fr;
  }

  .image-topbar-actions {
    flex-wrap: wrap;
  }
}

.image-summary-list i.blog {
  background: #30b678;
}

.image-summary-list i.cafe {
  background: #6f74f4;
}

.image-summary-list i.kin {
  background: #f08128;
}

.image-summary-list div {
  min-height: 30px;
}
/* Compact sidebar - fit viewport without scroll */
.image-dashboard-shell {
  grid-template-columns: 228px minmax(0, 1fr);
}

.image-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  padding: 12px 10px 10px;
  gap: 8px;
  overflow: hidden;
}

.image-sidebar-brand-row {
  flex: 0 0 auto;
  gap: 6px;
}

.image-sidebar-brand {
  gap: 8px;
}

.image-sidebar-brand span {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 7px;
  font-size: 14px;
}

.image-sidebar-brand strong {
  font-size: 11px;
}

.image-sidebar-brand em {
  padding: 2px 5px;
  font-size: 8px;
}

.image-sidebar-collapse {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

.image-sidebar-collapse .image-line-icon {
  width: 14px;
  height: 14px;
}

.image-sidebar-nav {
  flex: 0 0 auto;
  gap: 3px;
}

.image-sidebar-nav a {
  min-height: 32px;
  gap: 8px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 11px;
}

.image-sidebar-nav a::before {
  top: 8px;
  height: 14px;
}

.image-nav-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.image-nav-icon .image-line-icon {
  width: 15px;
  height: 15px;
}

.image-sidebar-divider {
  margin: 4px 4px 2px;
}

.image-nav-settings {
  min-height: 32px !important;
}

.image-nav-settings b {
  width: 7px;
  height: 7px;
}

.image-collect-panel {
  flex: 0 0 auto;
  margin-top: 2px;
  overflow: hidden;
  border-radius: 10px;
}

.image-collect-promo {
  min-height: 0;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 10px;
}

.image-collect-promo > span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.image-collect-promo > span .image-line-icon {
  width: 14px;
  height: 14px;
}

.image-collect-promo i {
  display: none;
}

.image-collect-head strong {
  font-size: 11px;
  line-height: 1.3;
}

.image-collect-head em {
  display: none;
}

.image-collect-field {
  padding: 6px 10px 0;
  font-size: 11px;
}

.image-keyword-editor {
  border-radius: 8px;
  background: #f8fbf9;
}

.image-keyword-editor::after {
  display: none;
}

.image-dashboard-body #keywords {
  min-height: 52px;
  max-height: 52px;
  padding: 6px 8px;
  line-height: 1.45;
  font-size: 11px;
  font-weight: 600;
}

.image-dashboard-body .image-collect-panel .image-inline-button {
  width: calc(100% - 20px);
  min-height: 26px;
  margin: 6px 10px 0;
  border-radius: 7px;
  font-size: 10px;
}

.image-service-toggles {
  padding: 6px 10px;
  gap: 4px;
}

.image-dashboard-body .image-service-toggles .toggle-pill span {
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 7px;
  font-size: 10px;
  box-shadow: none;
}

.image-dashboard-body .image-service-toggles .toggle-pill span i {
  display: none;
}

.image-collect-panel .image-start-button {
  width: calc(100% - 20px);
  min-height: 30px;
  margin: 6px 10px 8px;
  gap: 0;
  border-radius: 8px;
  font-size: 11px;
}

.image-collect-panel .image-start-button span {
  display: none;
}

.image-sidebar-user {
  flex: 0 0 auto;
  margin-top: auto;
  min-height: 0;
  gap: 8px;
  padding: 8px 2px 0;
}

.image-sidebar-user > span {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.image-sidebar-user strong {
  font-size: 11px;
}

.image-sidebar-user em {
  font-size: 9px;
}

.image-sidebar-user a {
  width: 18px;
  height: 18px;
}

.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;
}

@media (max-width: 1280px) {
  .image-dashboard-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .image-sidebar {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .image-collect-panel {
    overflow: visible;
  }
}
/* Sidebar full-height fill */
.image-dashboard-shell {
  grid-template-columns: 252px minmax(0, 1fr);
}

.image-sidebar {
  padding: 10px;
  gap: 6px;
}

.image-sidebar-nav {
  flex: 0 0 auto;
}

.image-collect-panel {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.image-collect-promo {
  flex: 0 0 auto;
  padding: 8px;
}

.image-collect-field {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 6px 8px 0;
}

.image-keyword-editor {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.image-dashboard-body #keywords {
  flex: 1 1 auto;
  min-height: 72px;
  max-height: none;
  height: 100%;
  width: 100%;
  resize: none;
  box-sizing: border-box;
}

.image-dashboard-body .image-collect-panel .image-inline-button {
  flex: 0 0 auto;
  width: auto;
  align-self: stretch;
  margin: 6px 8px 0;
}

.image-service-toggles {
  flex: 0 0 auto;
  padding: 6px 8px;
}

.image-collect-panel .image-start-button {
  flex: 0 0 auto;
  width: auto;
  align-self: stretch;
  margin: 6px 8px 8px;
  min-height: 34px;
}

.image-sidebar-user {
  flex: 0 0 auto;
  margin-top: 0;
  width: 100%;
  padding: 8px 2px 0;
  border-top: 1px solid #edf2ef;
}

@media (max-width: 1280px) {
  .image-dashboard-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}
/* Larger menu and compact keyword field */
.image-sidebar {
  gap: 8px;
}

.image-sidebar-nav {
  gap: 6px;
}

.image-sidebar-nav a {
  min-height: 42px;
  gap: 11px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
}

.image-sidebar-nav a::before {
  top: 10px;
  height: 20px;
}

.image-nav-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

.image-nav-icon .image-line-icon {
  width: 19px;
  height: 19px;
}

.image-nav-settings {
  min-height: 42px !important;
}

.image-sidebar-divider {
  margin: 5px 6px 3px;
}

.image-collect-panel {
  flex: 0 0 auto;
  min-height: 0;
}

.image-collect-field {
  flex: 0 0 auto;
  min-height: 0;
  padding: 5px 8px 0;
}

.image-keyword-editor {
  flex: 0 0 auto;
  min-height: 0;
}

.image-dashboard-body #keywords {
  flex: 0 0 auto;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 6px 8px;
  line-height: 1.35;
  resize: none;
  overflow-y: auto;
}

.image-dashboard-body .image-collect-panel .image-inline-button {
  min-height: 28px;
  margin-top: 5px;
}

.image-collect-panel .image-start-button {
  min-height: 32px;
  margin-top: 4px;
}
/* Sidebar missing menu and keyword resize */
.image-sidebar-nav a {
  min-height: 40px;
}

.image-nav-settings {
  min-height: 40px !important;
}

.image-dashboard-body #keywords {
  height: 82px;
  min-height: 82px;
  max-height: 82px;
  padding: 9px 10px;
  line-height: 1.45;
}

.image-collect-panel {
  flex: 0 0 auto;
}

.image-collect-field,
.image-keyword-editor {
  flex: 0 0 auto;
}

.image-service-toggles {
  padding-top: 8px;
}
/* Korean web font normalization */
html,
body,
button,
input,
textarea,
select {
  font-family: "Noto Sans KR", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Segoe UI", system-ui, sans-serif;
  word-break: keep-all;
}
/* Premium tri-color service buttons in single row */
.image-dashboard-body .image-service-toggles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 8px 8px;
}

.image-dashboard-body .image-service-toggles .toggle-pill {
  --pill-accent: #0b7a49;
  --pill-accent-soft: rgba(11, 122, 73, 0.10);
  --pill-accent-strong: rgba(11, 122, 73, 0.42);
  --pill-grad: linear-gradient(155deg, #0f8c55, #087244);
  position: relative;
  margin: 0;
}

.image-dashboard-body .image-service-toggles .service-toggle-blog {
  --pill-accent: #0b7a49;
  --pill-accent-soft: rgba(11, 122, 73, 0.12);
  --pill-accent-strong: rgba(11, 122, 73, 0.45);
  --pill-grad: linear-gradient(155deg, #0f8c55 0%, #087244 100%);
}

.image-dashboard-body .image-service-toggles .service-toggle-cafe {
  --pill-accent: #b25a1b;
  --pill-accent-soft: rgba(178, 90, 27, 0.12);
  --pill-accent-strong: rgba(178, 90, 27, 0.45);
  --pill-grad: linear-gradient(155deg, #c47a3a 0%, #8f4715 100%);
}

.image-dashboard-body .image-service-toggles .service-toggle-kin {
  --pill-accent: #2f4ea8;
  --pill-accent-soft: rgba(47, 78, 168, 0.12);
  --pill-accent-strong: rgba(47, 78, 168, 0.45);
  --pill-grad: linear-gradient(155deg, #4566c4 0%, #243d8e 100%);
}

.image-dashboard-body .image-service-toggles .toggle-pill span {
  position: relative;
  min-height: 78px;
  padding: 11px 8px 9px;
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(17, 34, 27, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,249,0.94));
  color: #20302a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow:
    0 18px 32px -28px rgba(18, 34, 27, 0.42),
    inset 0 1px 0 rgba(255,255,255,0.96);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.image-dashboard-body .image-service-toggles .toggle-pill span::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 0%, var(--pill-accent-soft), transparent 60%);
  pointer-events: none;
}

.image-dashboard-body .image-service-toggles .toggle-pill span i {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--pill-accent-soft);
  color: var(--pill-accent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85);
}

.image-dashboard-body .image-service-toggles .service-toggle-blog span i::before {
  content: '';
  width: 13px;
  height: 9px;
  border: 1.6px solid currentColor;
  border-radius: 2px;
  background:
    linear-gradient(currentColor, currentColor) center / 7px 1.4px no-repeat;
}

.image-dashboard-body .image-service-toggles .service-toggle-cafe span i::before {
  content: '';
  width: 12px;
  height: 13px;
  border: 1.6px solid currentColor;
  border-radius: 3px 3px 8px 8px;
  border-right: 0;
}

.image-dashboard-body .image-service-toggles .service-toggle-cafe span i::after {
  content: '';
  position: absolute;
  right: 7px;
  top: 9px;
  width: 5px;
  height: 7px;
  border: 1.6px solid currentColor;
  border-left: 0;
  border-radius: 0 6px 6px 0;
}

.image-dashboard-body .image-service-toggles .service-toggle-kin span i::before {
  content: 'Q';
  font-family: 'Noto Sans KR', 'Pretendard', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  color: currentColor;
}

.image-dashboard-body .image-service-toggles .toggle-pill:hover span {
  transform: translateY(-1px);
  border-color: var(--pill-accent-strong);
  box-shadow:
    0 22px 38px -28px rgba(18, 34, 27, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.98);
}

.image-dashboard-body .image-service-toggles .toggle-pill input:checked + span {
  border-color: transparent;
  background: var(--pill-grad);
  color: #ffffff;
  box-shadow:
    0 22px 38px -24px var(--pill-accent-strong),
    inset 0 1px 0 rgba(255,255,255,0.24);
}

.image-dashboard-body .image-service-toggles .toggle-pill input:checked + span i {
  background: rgba(255,255,255,0.22);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}

.image-dashboard-body .image-service-toggles .toggle-pill input:focus-visible + span {
  outline: 2px solid var(--pill-accent-strong);
  outline-offset: 3px;
}

.image-dashboard-body .image-service-toggles .toggle-pill:active span {
  transform: scale(0.985);
}
/* Refined premium sidebar */
.image-dashboard-body {
  --sb-bg: #ffffff;
  --sb-bg-soft: #f7faf8;
  --sb-line: #ecf1ee;
  --sb-line-strong: #dfe7e2;
  --sb-ink: #18221d;
  --sb-muted: #6c7872;
  --sb-accent: #0b7a49;
}

.image-dashboard-shell {
  grid-template-columns: 256px minmax(0, 1fr);
}

.image-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  padding: 16px 14px 14px;
  gap: 12px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border-right: 1px solid var(--sb-line);
  box-shadow: 18px 0 60px -50px rgba(18, 34, 27, 0.5);
  overflow: hidden;
}

.image-sidebar-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 0;
}

.image-sidebar-brand {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sb-ink);
  text-decoration: none;
}

.image-sidebar-brand span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #12a06a 0%, #087244 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow:
    0 14px 28px -18px rgba(11,122,73,0.7),
    inset 0 1px 0 rgba(255,255,255,0.32);
}

.image-sidebar-brand strong {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--sb-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-sidebar-brand em {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(11,122,73,0.10);
  color: var(--sb-accent);
  font-size: 9px;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.05em;
}

.image-sidebar-collapse {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sb-line-strong);
  border-radius: 9px;
  background: #ffffff;
  color: #6c7872;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.image-sidebar-collapse:hover {
  border-color: rgba(11,122,73,0.32);
  color: var(--sb-accent);
  transform: translateX(-1px);
}

.image-sidebar-collapse .image-line-icon {
  width: 14px;
  height: 14px;
}

.image-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px 2px 0;
}

.image-sidebar-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #4d5853;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.image-sidebar-nav a::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 3px;
  height: 16px;
  border-radius: 999px;
  background: transparent;
  transform: translateY(-50%);
  transition: background 160ms ease;
}

.image-sidebar-nav a:hover {
  background: rgba(11,122,73,0.06);
  color: var(--sb-ink);
}

.image-sidebar-nav a.is-active {
  background: linear-gradient(180deg, rgba(11,122,73,0.10), rgba(11,122,73,0.05));
  border-color: rgba(11,122,73,0.16);
  color: var(--sb-accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  transform: none;
}

.image-sidebar-nav a.is-active::before {
  background: var(--sb-accent);
}

.image-nav-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(11,122,73,0.08);
  color: var(--sb-accent);
  transition: background 160ms ease, color 160ms ease;
}

.image-nav-icon .image-line-icon {
  width: 15px;
  height: 15px;
}

.image-sidebar-nav a:hover .image-nav-icon {
  background: rgba(11,122,73,0.12);
}

.image-sidebar-nav a.is-active .image-nav-icon {
  background: var(--sb-accent);
  color: #ffffff;
  box-shadow: 0 8px 18px -10px rgba(11,122,73,0.55);
}

.image-sidebar-divider {
  display: block;
  height: 1px;
  margin: 6px 6px 4px;
  background: var(--sb-line);
}

.image-nav-settings {
  min-height: 40px !important;
}

.image-nav-settings b {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 999px;
  background: #ef5d4a;
  box-shadow: 0 0 0 3px rgba(239, 93, 74, 0.16);
}

.image-collect-panel {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  margin-top: 2px;
  padding: 0;
  border: 1px solid var(--sb-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow:
    0 20px 38px -32px rgba(18, 34, 27, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.9);
  overflow: hidden;
}

.image-collect-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 12px 14px 8px;
  background:
    linear-gradient(180deg, rgba(11,122,73,0.06), transparent 90%);
  border-bottom: 1px solid var(--sb-line);
}

.image-collect-promo > span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, #12a06a 0%, #087244 100%);
  color: #ffffff;
  box-shadow:
    0 10px 20px -12px rgba(11,122,73,0.7),
    inset 0 1px 0 rgba(255,255,255,0.32);
}

.image-collect-promo > span .image-line-icon {
  width: 14px;
  height: 14px;
}

.image-collect-head strong {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--sb-ink);
}

.image-collect-field {
  display: flex;
  flex-direction: column;
  padding: 10px 12px 0;
}

.image-keyword-editor {
  border: 1px solid var(--sb-line-strong);
  border-radius: 10px;
  background: var(--sb-bg-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.image-keyword-editor:focus-within {
  border-color: rgba(11,122,73,0.42);
  box-shadow: 0 0 0 3px rgba(11,122,73,0.12);
}

.image-dashboard-body #keywords {
  width: 100%;
  height: 78px;
  min-height: 78px;
  max-height: 78px;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sb-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  resize: none;
  outline: none;
  box-shadow: none;
}

.image-dashboard-body .image-collect-panel .image-inline-button {
  align-self: stretch;
  min-height: 30px;
  margin: 8px 12px 0;
  padding: 0 10px;
  border: 1px solid var(--sb-line-strong);
  border-radius: 9px;
  background: #ffffff;
  color: var(--sb-accent);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.image-dashboard-body .image-collect-panel .image-inline-button:hover {
  border-color: rgba(11,122,73,0.32);
  background: rgba(11,122,73,0.05);
}

.image-collect-panel .image-start-button {
  align-self: stretch;
  min-height: 38px;
  margin: 10px 12px 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, #0f8c55 0%, #087244 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow:
    0 16px 28px -18px rgba(11,122,73,0.7),
    inset 0 1px 0 rgba(255,255,255,0.22);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms ease;
}

.image-collect-panel .image-start-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 32px -18px rgba(11,122,73,0.78),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.image-collect-panel .image-start-button:active {
  transform: scale(0.985);
}

.image-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 4px 2px;
  border-top: 1px solid var(--sb-line);
}

.image-sidebar-user-meta {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1px;
}

.image-sidebar-user strong,
.image-sidebar-user em {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: normal;
}

.image-sidebar-user strong {
  font-size: 12px;
  font-weight: 900;
  color: var(--sb-ink);
}

.image-sidebar-user em {
  font-size: 10px;
  color: var(--sb-muted);
}

.image-sidebar-user-actions .image-user-action {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sb-line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: #6c7872;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.image-user-action-form {
  display: contents;
}

button.image-user-action {
  font: inherit;
  appearance: none;
  cursor: pointer;
}

.image-sidebar-user-actions .image-user-action:hover {
  border-color: rgba(239, 93, 74, 0.42);
  color: #d9422f;
}

.image-sidebar-user-actions .image-user-action::before {
  content: none;
  display: none;
}

@media (max-width: 1180px) {
  .image-dashboard-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .image-sidebar {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
  }
}


/* Dashboard 2-column grid (after summary card moved to report page) */
.image-dashboard-grid.image-dashboard-grid-2 {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}
@media (max-width: 1180px) {
  .image-dashboard-grid.image-dashboard-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Report hero: compact collection summary */
.image-subpage-body .image-page-hero--report {
  min-height: auto;
}

.image-page-hero--report {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: stretch;
  gap: clamp(16px, 2.5vw, 28px);
}

.image-page-hero--report .image-page-hero-copy {
  min-width: 0;
}

.image-hero-summary-compact {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  align-self: center;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.image-page-hero--report .image-hero-donut {
  width: 88px;
  height: 88px;
}

.image-page-hero--report .image-hero-donut span,
.image-page-hero--report .image-hero-donut em {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}

.image-page-hero--report .image-hero-donut strong {
  margin-top: -4px;
  font-size: 20px;
  color: #ffffff;
}

.image-hero-summary-stats {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.image-hero-summary-stats li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  line-height: 1.35;
}

.image-hero-summary-stats i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.image-hero-summary-stats i.blog { background: #34d399; }
.image-hero-summary-stats i.cafe { background: #fbbf24; }
.image-hero-summary-stats i.kin { background: #a78bfa; }

.image-hero-summary-stats span {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.image-hero-summary-stats b {
  color: #ffffff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.image-hero-summary-stats b em {
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 900px) {
  .image-page-hero--report {
    grid-template-columns: 1fr;
  }

  .image-hero-summary-compact {
    grid-template-columns: 80px minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .image-hero-summary-compact {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .image-hero-summary-stats {
    width: 100%;
  }
}

/* Report page condensed summary card */
.image-report-summary {
  display: none;
  margin: 18px 0 22px;
  padding: 22px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faf7 100%);
  border: 1px solid var(--image-line, #e7eee9);
  border-radius: 18px;
  box-shadow: 0 18px 45px -34px rgba(24, 34, 29, 0.42);
}
.image-report-summary .image-card-head {
  justify-content: space-between;
  margin-bottom: 16px;
}
.image-report-summary .image-card-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--image-ink, #18221d);
}
.image-report-summary .image-card-head span {
  font-size: 12px;
  color: var(--image-muted, #7a857f);
  font-weight: 500;
}
.image-report-summary .image-summary-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}
.image-report-summary .service-donut {
  width: 140px;
  height: 140px;
}
.image-report-summary .image-summary-list {
  display: grid;
  gap: 10px;
}
.image-report-summary .image-summary-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #eef2ef;
  border-radius: 12px;
  font-size: 13px;
}
.image-report-summary .image-summary-list i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0b7a49;
  display: inline-block;
  flex: 0 0 auto;
}
.image-report-summary .image-summary-list i.run { background: #f59e0b; }
.image-report-summary .image-summary-list i.fail { background: #6366f1; }
.image-report-summary .image-summary-list span {
  flex: 1 1 auto;
  color: var(--image-ink, #18221d);
  font-weight: 600;
}
.image-report-summary .image-summary-list b {
  font-weight: 700;
  color: var(--image-ink, #18221d);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .image-report-summary .image-summary-body {
    grid-template-columns: 1fr;
  }
  .image-report-summary .service-donut {
    margin: 0 auto;
  }
}


/* Report result list visibility on subpages */
.image-subpage-body #reports .results-panel {
  margin-top: 0;
  padding: 0;
  background: #fff;
  border-radius: 14px;
  overflow: visible;
}

.image-subpage-body #reports .tab-panel.active {
  display: block;
}

.image-subpage-body #reports .table-wrap {
  overflow: auto;
  max-width: 100%;
}

/* Responsive collapsible sidebar */
.image-mobile-menu-button,
.image-sidebar-backdrop {
  display: none;
}

@media (min-width: 961px) {
  .image-dashboard-shell {
    transition: grid-template-columns 220ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .is-sidebar-collapsed .image-dashboard-shell {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .is-sidebar-collapsed .image-sidebar {
    align-items: center;
    padding: 14px 10px;
  }

  .is-sidebar-collapsed .image-sidebar-brand-row {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 0;
  }

  .is-sidebar-collapsed .image-sidebar-brand {
    flex: 0 0 auto;
    justify-content: center;
  }

  .is-sidebar-collapsed .image-sidebar-brand strong,
  .is-sidebar-collapsed .image-sidebar-brand em,
  .is-sidebar-collapsed .image-sidebar-nav a > span:last-child,
  .is-sidebar-collapsed .image-sidebar-user-meta,
  .is-sidebar-collapsed .image-sidebar-user-name-row,
  .is-sidebar-collapsed .image-sidebar-plan-summary,
  .is-sidebar-collapsed .image-user-pricing-btn,
  .is-sidebar-collapsed .image-sidebar-user-avatar > span,
  .is-sidebar-collapsed .image-sidebar-user a,
  .is-sidebar-collapsed .image-collect-panel {
    display: none;
  }

  .is-sidebar-collapsed .image-sidebar-collapse {
    transform: rotate(180deg);
  }

  .is-sidebar-collapsed .image-sidebar-collapse:hover {
    transform: rotate(180deg) translateX(-1px);
  }

  .is-sidebar-collapsed .image-sidebar-nav {
    width: 100%;
    align-items: center;
    gap: 7px;
  }

  .is-sidebar-collapsed .image-sidebar-nav a {
    width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
  }

  .is-sidebar-collapsed .image-sidebar-nav a::before,
  .is-sidebar-collapsed .image-nav-settings b {
    display: none;
  }

  .is-sidebar-collapsed .image-nav-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .is-sidebar-collapsed .image-sidebar-divider {
    width: 34px;
    margin: 4px auto;
  }

  .is-sidebar-collapsed .image-sidebar-user {
    width: 100%;
    justify-content: center;
    padding: 10px 0 2px;
  }
}

@media (max-width: 960px) {
  .image-dashboard-body {
    overflow-x: hidden;
  }

  .image-dashboard-shell {
    display: block;
    grid-template-columns: 1fr !important;
    min-height: 100dvh;
  }

  .image-dashboard-main {
    width: 100%;
    max-width: 100%;
    padding: 72px clamp(14px, 4vw, 22px) 28px;
    overflow: hidden;
  }

  .image-mobile-menu-button {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1300;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid rgba(11, 122, 73, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--sb-accent, #0b7a49);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.02em;
    box-shadow: 0 18px 34px -24px rgba(18, 34, 27, 0.55);
    backdrop-filter: blur(14px);
    cursor: pointer;
  }

  .image-mobile-menu-button .image-line-icon {
    width: 15px;
    height: 15px;
    transform: rotate(180deg);
  }

  .image-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0;
    z-index: 1200;
    width: min(86vw, 326px);
    height: 100dvh !important;
    max-height: 100dvh !important;
    transform: translateX(-104%);
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 32px 0 70px -42px rgba(18, 34, 27, 0.64);
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

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

  .image-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1150;
    display: block;
    border: 0;
    background: rgba(13, 24, 19, 0.38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: opacity 200ms ease, visibility 200ms ease;
  }

  .is-sidebar-open .image-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.image-dashboard-body:not(.is-sidebar-open) .image-sidebar {
    pointer-events: none;
  }

  body.image-dashboard-body.is-sidebar-open .image-sidebar {
    pointer-events: auto;
  }

  .is-sidebar-open {
    overflow: hidden;
  }

  .image-sidebar-collapse .image-line-icon {
    transform: none;
  }

  .image-topbar {
    min-height: auto;
    align-items: stretch;
    gap: 10px;
    flex-direction: column;
  }

  .image-searchbox {
    width: 100%;
    min-width: 0;
  }

  .image-topbar-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .image-topbar-actions .image-new-button {
    white-space: nowrap;
  }

  .image-hero-card,
  .image-page-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 22px;
  }

  .image-kpi-grid,
  .image-dashboard-grid,
  .image-dashboard-grid.image-dashboard-grid-2,
  .image-sub-kpi {
    grid-template-columns: 1fr !important;
  }

  .image-report-summary .image-summary-body,
  .image-summary-body {
    grid-template-columns: 1fr;
  }

  .image-report-section,
  .image-sub-panel,
  .result-job-card,
  .member-panel-large {
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .image-dashboard-main {
    padding: 68px 12px 24px;
  }

  .image-mobile-menu-button {
    top: 12px;
    left: 12px;
    min-height: 38px;
    padding: 0 12px;
  }

  .image-sidebar {
    width: min(90vw, 304px);
    padding: 14px 12px 12px;
  }

  .image-service-toggles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .image-dashboard-body .image-service-toggles .toggle-pill span {
    min-height: 68px;
    padding: 9px 6px 8px;
    font-size: 11px;
  }

  .image-dashboard-body .image-service-toggles .toggle-pill span i {
    width: 26px;
    height: 26px;
  }

  .image-hero-card h1,
  .image-page-hero h1 {
    font-size: clamp(24px, 8vw, 34px);
  }

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

  .export-actions {
    width: 100%;
  }

  .export-actions a {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* UI UX Pro Max premium dashboard layer */
.image-dashboard-body {
  --image-bg: #f8fafc;
  --image-surface: rgba(255, 255, 255, 0.86);
  --image-surface-solid: #ffffff;
  --image-ink: #0f172a;
  --image-muted: #64748b;
  --image-line: rgba(148, 163, 184, 0.22);
  --image-line-strong: rgba(30, 64, 175, 0.18);
  --image-accent: #1e40af;
  --image-accent-2: #3b82f6;
  --image-cta: #f59e0b;
  --image-soft: #eff6ff;
  --image-shadow: 0 24px 70px -46px rgba(15, 23, 42, 0.42);
  --image-shadow-strong: 0 28px 80px -48px rgba(30, 64, 175, 0.46);
  --sb-bg: rgba(255, 255, 255, 0.84);
  --sb-bg-soft: #f8fafc;
  --sb-line: rgba(148, 163, 184, 0.22);
  --sb-line-strong: rgba(30, 64, 175, 0.18);
  --sb-ink: #0f172a;
  --sb-muted: #64748b;
  --sb-accent: #1e40af;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 15% 12%, rgba(59, 130, 246, 0.12), transparent 30vw),
    radial-gradient(circle at 88% 4%, rgba(245, 158, 11, 0.10), transparent 28vw),
    linear-gradient(135deg, #f8fafc 0%, #eef4ff 45%, #f9fafb 100%);
  color: var(--image-ink);
  font-family: 'Noto Sans KR', 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

.image-dashboard-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 74%);
}

.image-dashboard-shell {
  position: relative;
  z-index: 1;
  grid-template-columns: 274px minmax(0, 1fr);
}

.image-dashboard-main {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 26px clamp(20px, 3vw, 42px) 46px;
}

.image-topbar {
  position: sticky;
  top: 16px;
  z-index: 30;
  min-height: 62px;
  margin-bottom: 22px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px -52px rgba(15, 23, 42, 0.52), inset 0 1px 0 rgba(255,255,255,0.95);
  backdrop-filter: blur(18px) saturate(140%);
}

.image-searchbox {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.image-searchbox:focus-within {
  border-color: rgba(30, 64, 175, 0.34);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), inset 0 1px 0 rgba(255,255,255,0.95);
}

.image-searchbox input {
  color: #0f172a;
  font-weight: 650;
}

.image-searchbox input::placeholder {
  color: #94a3b8;
}

.image-searchbox kbd {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  background: #ffffff;
  color: #64748b;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.image-icon-button,
.image-new-button,
.image-inline-button,
.image-start-button,
.download-button,
.result-delete-button,
.watcher-delete-button,
.image-sidebar-collapse,
.image-mobile-menu-button,
.image-sidebar-backdrop {
  cursor: pointer;
}

.image-icon-button {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.84);
  color: #1e40af;
  box-shadow: 0 14px 34px -28px rgba(15, 23, 42, 0.45);
}

.image-icon-button:hover {
  border-color: rgba(30, 64, 175, 0.28);
  background: #ffffff;
  transform: translateY(-1px);
}

.image-new-button,
.image-start-button,
.image-collect-panel .image-start-button {
  border: 0;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 20px 44px -26px rgba(245, 158, 11, 0.72), inset 0 1px 0 rgba(255,255,255,0.26);
}

.image-new-button:hover,
.image-start-button:hover,
.image-collect-panel .image-start-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 54px -28px rgba(217, 119, 6, 0.78), inset 0 1px 0 rgba(255,255,255,0.28);
}

.image-sidebar {
  padding: 18px 14px 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.86)),
    radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.12), transparent 42%);
  border-right: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 24px 0 70px -58px rgba(15, 23, 42, 0.62), inset -1px 0 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(22px) saturate(145%);
}

.image-sidebar-brand span {
  background: linear-gradient(145deg, #1e40af 0%, #2563eb 55%, #0f172a 100%);
  box-shadow: 0 16px 30px -20px rgba(30, 64, 175, 0.76), inset 0 1px 0 rgba(255,255,255,0.28);
}

.image-sidebar-brand strong {
  color: #0f172a;
  letter-spacing: -0.045em;
}

.image-sidebar-brand em {
  background: rgba(245, 158, 11, 0.13);
  color: #b45309;
}

.image-sidebar-collapse {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255,255,255,0.82);
  color: #1e40af;
}

.image-sidebar-nav a {
  min-height: 42px;
  border-radius: 13px;
  color: #475569;
  font-weight: 850;
}

.image-sidebar-nav a:hover {
  background: rgba(30, 64, 175, 0.07);
  color: #0f172a;
  transform: translateX(2px);
}

.image-sidebar-nav a.is-active {
  border-color: rgba(30, 64, 175, 0.18);
  background:
    linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(59, 130, 246, 0.06)),
    #ffffff;
  color: #1e40af;
  box-shadow: 0 14px 34px -30px rgba(30, 64, 175, 0.55), inset 0 1px 0 rgba(255,255,255,0.95);
}

.image-sidebar-nav a.is-active::before {
  background: #f59e0b;
}

.image-nav-icon {
  background: rgba(30, 64, 175, 0.08);
  color: #1e40af;
}

.image-sidebar-nav a.is-active .image-nav-icon {
  background: #1e40af;
  color: #ffffff;
  box-shadow: 0 10px 22px -14px rgba(30, 64, 175, 0.7);
}

.image-collect-panel,
.image-sidebar-user {
  border-color: rgba(148, 163, 184, 0.24);
}

.image-collect-panel {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 54px -42px rgba(15, 23, 42, 0.44), inset 0 1px 0 rgba(255,255,255,0.96);
}

.image-collect-promo {
  background:
    radial-gradient(circle at 16% 0%, rgba(245, 158, 11, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(30, 64, 175, 0.07), transparent 92%);
}

.image-collect-promo > span {
  background: linear-gradient(145deg, #1e40af 0%, #2563eb 100%);
}

.image-keyword-editor {
  border-color: rgba(148, 163, 184, 0.26);
  background: #f8fafc;
}

.image-keyword-editor:focus-within {
  border-color: rgba(30, 64, 175, 0.42);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.image-dashboard-body .image-collect-panel .image-inline-button {
  border-color: rgba(30, 64, 175, 0.22);
  background: rgba(239, 246, 255, 0.72);
  color: #1e40af;
}

.image-dashboard-body .image-service-toggles .service-toggle-blog {
  --pill-accent: #1e40af;
  --pill-accent-soft: rgba(30, 64, 175, 0.11);
  --pill-accent-strong: rgba(30, 64, 175, 0.42);
  --pill-grad: linear-gradient(155deg, #2563eb 0%, #1e40af 100%);
}

.image-dashboard-body .image-service-toggles .service-toggle-cafe {
  --pill-accent: #b45309;
  --pill-accent-soft: rgba(245, 158, 11, 0.14);
  --pill-accent-strong: rgba(245, 158, 11, 0.48);
  --pill-grad: linear-gradient(155deg, #f59e0b 0%, #b45309 100%);
}

.image-dashboard-body .image-service-toggles .service-toggle-kin {
  --pill-accent: #0f766e;
  --pill-accent-soft: rgba(15, 118, 110, 0.12);
  --pill-accent-strong: rgba(15, 118, 110, 0.42);
  --pill-grad: linear-gradient(155deg, #14b8a6 0%, #0f766e 100%);
}

.image-hero-card,
.image-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 190px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 16%, rgba(245, 158, 11, 0.26), transparent 26%),
    radial-gradient(circle at 48% 120%, rgba(59, 130, 246, 0.32), transparent 34%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 58%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 34px 92px -54px rgba(15, 23, 42, 0.78), inset 0 1px 0 rgba(255,255,255,0.18);
}

.image-hero-card::before,
.image-page-hero::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 33px;
  border: 1px solid rgba(255,255,255,0.10);
  pointer-events: none;
}

.image-hero-kicker,
.image-page-hero p {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.82);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.image-hero-card h1,
.image-page-hero h1 {
  max-width: 680px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.image-hero-card span,
.image-page-hero span {
  display: block;
  max-width: 560px;
  margin-top: 14px;
  color: rgba(255,255,255,0.74);
  font-size: clamp(14px, 1.45vw, 17px);
  line-height: 1.7;
}

.image-hero-art {
  min-height: 122px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 22px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 22px 54px -34px rgba(15,23,42,0.6);
}

.image-hero-art i {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.95), rgba(59, 130, 246, 0.88));
  box-shadow: 0 18px 42px -22px rgba(245, 158, 11, 0.7);
}

.image-insight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 20px;
}

.image-insight-strip a {
  position: relative;
  min-width: 0;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 20px 58px -44px rgba(15, 23, 42, 0.42), inset 0 1px 0 rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease, box-shadow 200ms ease;
}

.image-insight-strip a::after {
  content: '';
  position: absolute;
  right: -28px;
  top: -38px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.11);
}

.image-insight-strip a:nth-child(2)::after { background: rgba(245, 158, 11, 0.13); }
.image-insight-strip a:nth-child(3)::after { background: rgba(20, 184, 166, 0.12); }

.image-insight-strip a:hover {
  border-color: rgba(30, 64, 175, 0.24);
  box-shadow: 0 26px 70px -48px rgba(30, 64, 175, 0.46), inset 0 1px 0 rgba(255,255,255,0.98);
  transform: translateY(-2px);
}

.image-insight-strip span {
  display: block;
  margin-bottom: 9px;
  color: #1e40af;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.image-insight-strip strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.image-insight-strip em {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

.image-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.image-kpi-card,
.image-recent-card,
.image-schedule-card,
.image-summary-card,
.image-report-summary,
.image-report-section,
.image-sub-panel,
.image-member-panel > .member-panel-large,
.image-member-panel .member-panel-large,
.result-job-card,
.trend-header-card,
.member-empty {
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 26px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: var(--image-shadow), inset 0 1px 0 rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(14px) saturate(130%);
}

.image-kpi-card {
  position: relative;
  min-height: 172px;
  padding: 24px;
  overflow: hidden;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms ease, border-color 200ms ease;
}

.image-kpi-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #1e40af, #3b82f6, #f59e0b);
}

.image-kpi-card::after {
  content: '';
  position: absolute;
  right: -36px;
  bottom: -48px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.07);
  pointer-events: none;
}

.image-kpi-card:hover,
.result-job-card:hover,
.image-recent-row:hover,
.image-schedule-task:hover {
  border-color: rgba(30, 64, 175, 0.26) !important;
  transform: translateY(-2px);
  box-shadow: var(--image-shadow-strong), inset 0 1px 0 rgba(255,255,255,0.96) !important;
}

.image-kpi-head span,
.image-card-head h3,
.image-section-heading h2,
.result-job-title-row strong,
.image-recent-row strong,
.image-schedule-task strong {
  color: #0f172a;
  letter-spacing: -0.035em;
}

.image-kpi-head i {
  border-radius: 14px;
  background: #eff6ff;
  color: #1e40af;
}

.image-kpi-card strong {
  color: #0f172a;
  font-family: 'Fira Code', 'SFMono-Regular', Consolas, monospace;
  font-size: clamp(28px, 2.6vw, 38px);
  letter-spacing: -0.06em;
}

.image-kpi-card small {
  color: #64748b;
  font-family: 'Noto Sans KR', 'Pretendard', system-ui, sans-serif;
}

.image-kpi-card p,
.image-recent-row em,
.image-card-head span,
.result-job-meta,
.member-empty,
.image-schedule-note span {
  color: #64748b;
}

.image-kpi-card p b {
  color: #1e40af;
}

.image-sparkline polyline {
  stroke: #3b82f6;
  stroke-width: 3;
}

.image-dashboard-grid,
.image-dashboard-grid.image-dashboard-grid-2 {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.92fr);
  gap: 18px;
  margin-top: 18px;
}

.image-recent-card,
.image-schedule-card {
  padding: 22px;
}

.image-card-head {
  margin-bottom: 16px;
}

.image-card-head a {
  border-radius: 999px;
  color: #1e40af;
  font-weight: 850;
}

.image-recent-list {
  gap: 10px;
}

.image-recent-row,
.image-schedule-task,
.image-summary-list > div,
.image-report-summary .image-summary-list > div {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease, background 200ms ease;
}

.image-recent-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding: 14px;
}

.image-recent-icon {
  background: #eff6ff;
  color: #1e40af;
}

.image-recent-row b,
.image-schedule-note strong,
.image-report-summary .image-summary-list b {
  color: #0f172a;
  font-family: 'Fira Code', 'SFMono-Regular', Consolas, monospace;
  letter-spacing: -0.045em;
}

.image-calendar {
  gap: 7px;
}

.image-calendar span,
.image-calendar b {
  border-radius: 12px;
}

.image-calendar span.is-today {
  background: #1e40af;
  color: #ffffff;
  box-shadow: 0 14px 30px -18px rgba(30, 64, 175, 0.76);
}

.image-schedule-note {
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.image-page-hero {
  margin-bottom: 22px;
}

.image-subpage-body .image-dashboard-main {
  padding-top: 26px;
}

.image-section-heading {
  align-items: center;
  gap: 16px;
}

.image-section-heading p {
  color: #1e40af;
  letter-spacing: 0.12em;
  font-weight: 950;
}

.result-job-card {
  padding: 18px;
}

.result-job-card::before {
  width: 4px;
  border-radius: 999px;
}

.result-job-card.is-completed::before { background: #1e40af; }
.result-job-card.is-running::before { background: #f59e0b; }
.result-job-card.is-failed::before { background: #dc2626; }

.image-report-summary {
  padding: 24px;
}

.image-report-summary .service-donut,
.service-donut {
  box-shadow: inset 0 0 0 14px rgba(255,255,255,0.74), 0 20px 48px -34px rgba(30, 64, 175, 0.46);
}

.loading-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 34px 90px -54px rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(20px) saturate(140%);
}

.loading-orbit span {
  background: #1e40af;
}

.loading-progress i {
  background: linear-gradient(90deg, #1e40af, #3b82f6, #f59e0b);
}

.image-mobile-menu-button {
  border-color: rgba(30, 64, 175, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: #1e40af;
  box-shadow: 0 18px 42px -30px rgba(15, 23, 42, 0.58), inset 0 1px 0 rgba(255,255,255,0.92);
}

.image-sidebar-backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.image-dashboard-body a:focus-visible,
.image-dashboard-body button:focus-visible,
.image-dashboard-body input:focus-visible,
.image-dashboard-body textarea:focus-visible,
.image-dashboard-body select:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.36);
  outline-offset: 3px;
}

@media (min-width: 961px) {
  .is-sidebar-collapsed .image-dashboard-shell {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .is-sidebar-collapsed .image-sidebar {
    background: rgba(255, 255, 255, 0.88);
  }
}

@media (max-width: 1320px) {
  .image-dashboard-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

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

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

@media (max-width: 960px) {
  .image-dashboard-main {
    width: 100%;
    padding: 76px clamp(14px, 4vw, 24px) 30px;
  }

  .image-topbar {
    position: relative;
    top: auto;
    border-radius: 22px;
  }

  .image-hero-card,
  .image-page-hero {
    min-height: auto;
    border-radius: 28px;
  }

  .image-hero-card::before,
  .image-page-hero::before {
    border-radius: 27px;
  }

  .image-insight-strip {
    grid-template-columns: 1fr;
  }

  .image-kpi-grid,
  .image-dashboard-grid,
  .image-dashboard-grid.image-dashboard-grid-2,
  .image-sub-kpi {
    grid-template-columns: 1fr !important;
  }

  .image-sidebar {
    background: rgba(255,255,255,0.94);
  }

  .image-recent-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .image-recent-row > b,
  .image-recent-row > i {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .image-dashboard-main {
    padding: 70px 12px 24px;
  }

  .image-topbar {
    padding: 10px;
  }

  .image-topbar-actions {
    display: grid;
    grid-template-columns: repeat(3, 42px) minmax(132px, 1fr);
    overflow: visible;
  }

  .image-icon-button {
    width: 42px;
    height: 42px;
  }

  .image-new-button {
    min-height: 42px;
    justify-content: center;
    padding: 0 12px;
    white-space: nowrap;
  }

  .image-hero-card,
  .image-page-hero,
  .image-kpi-card,
  .image-recent-card,
  .image-schedule-card,
  .image-report-summary,
  .image-report-section,
  .image-sub-panel,
  .result-job-card,
  .member-panel-large {
    border-radius: 22px !important;
  }

  .image-hero-card,
  .image-page-hero {
    padding: 24px 20px;
  }

  .image-hero-card h1,
  .image-page-hero h1 {
    font-size: clamp(26px, 9vw, 36px);
  }

  .image-hero-art {
    display: none;
  }

  .image-kpi-card,
  .image-recent-card,
  .image-schedule-card {
    padding: 18px;
  }

  .image-report-summary .service-donut,
  .service-donut {
    width: 128px;
    height: 128px;
  }

  .image-dashboard-body #keywords {
    height: 96px;
    min-height: 96px;
    max-height: 132px;
  }
}

@media screen and (prefers-reduced-motion: reduce), (update: slow) {
  .image-dashboard-body *,
  .image-dashboard-body *::before,
  .image-dashboard-body *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* UI UX Pro Max auth + sidebar refinement */
.auth-screen {
  --auth-ink: #0f172a;
  --auth-muted: #64748b;
  --auth-line: rgba(148, 163, 184, 0.22);
  --auth-line-strong: rgba(30, 64, 175, 0.2);
  --auth-accent: #1e40af;
  --auth-accent-2: #3b82f6;
  --auth-cta: #f59e0b;
  --auth-panel: rgba(255, 255, 255, 0.84);
  min-height: 100dvh;
  background:
    radial-gradient(circle at 14% 12%, rgba(59, 130, 246, 0.14), transparent 30vw),
    radial-gradient(circle at 88% 8%, rgba(245, 158, 11, 0.11), transparent 28vw),
    linear-gradient(135deg, #f8fafc 0%, #eef4ff 46%, #f9fafb 100%);
  background-size: auto;
  color: var(--auth-ink);
  font-family: 'Noto Sans KR', 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', system-ui, sans-serif;
}

.auth-screen::before {
  opacity: 1;
  background:
    linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.7), transparent 32rem);
  background-size: 42px 42px, 42px 42px, auto;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.78), transparent 76%);
}

.auth-screen .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 18px 48px -42px rgba(15, 23, 42, 0.45);
}

.auth-screen .site-header-inner {
  width: min(100%, 1480px);
}

.auth-screen .site-brand-mark,
.auth-screen .brand-mark {
  background: linear-gradient(145deg, #1e40af 0%, #2563eb 56%, #0f172a 100%);
  color: #ffffff;
  box-shadow: 0 16px 32px -22px rgba(30, 64, 175, 0.76), inset 0 1px 0 rgba(255,255,255,0.28);
}

.auth-screen .site-brand-copy em,
.auth-screen .site-nav-link.is-active,
.auth-screen .site-nav-link:hover,
.auth-screen .header-btn-ghost,
.auth-screen .auth-switch a {
  color: var(--auth-accent);
}

.auth-screen .site-nav {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.72);
  padding: 4px;
}

.auth-screen .site-nav-link {
  border-radius: 999px;
  color: #64748b;
}

.auth-screen .site-nav-link.is-active {
  background: #ffffff;
  box-shadow: 0 12px 26px -22px rgba(15, 23, 42, 0.38);
}

.auth-screen .header-btn-primary,
.auth-screen .auth-submit {
  border: 0;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 22px 50px -30px rgba(245, 158, 11, 0.76), inset 0 1px 0 rgba(255,255,255,0.25);
}

.auth-screen .header-btn-primary:hover,
.auth-screen .auth-submit:hover {
  background: linear-gradient(135deg, #f6a51d 0%, #c96f05 100%);
  transform: translateY(-1px);
}

.auth-page-shell {
  padding: clamp(22px, 4vw, 58px);
}

.auth-stage {
  width: min(100%, 1160px);
  min-height: calc(100dvh - 74px - clamp(44px, 8vw, 116px));
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.82fr);
  gap: clamp(18px, 2.6vw, 34px);
  align-items: stretch;
}

.auth-brand-panel,
.auth-form-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  box-shadow: 0 34px 92px -58px rgba(15, 23, 42, 0.62), inset 0 1px 0 rgba(255,255,255,0.88);
  backdrop-filter: blur(18px) saturate(140%);
}

.auth-brand-panel {
  min-height: 640px;
  padding: clamp(26px, 4vw, 46px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.26), transparent 23rem),
    radial-gradient(circle at 24% 112%, rgba(59, 130, 246, 0.35), transparent 28rem),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 58%, #1d4ed8 100%);
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 33px;
  pointer-events: none;
}

.auth-brand-panel::after {
  content: '';
  position: absolute;
  right: -18%;
  bottom: -20%;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.13), transparent 64%);
  pointer-events: none;
}

.auth-brand-panel-top,
.auth-brand-copy,
.auth-metric-grid {
  position: relative;
  z-index: 1;
}

.auth-brand-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-brand-badge,
.auth-brand-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.78);
  font-family: 'Fira Code', 'SFMono-Regular', Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.auth-brand-status i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.16);
  animation: status-pulse 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.auth-brand-copy {
  align-self: center;
  max-width: 620px;
  padding: clamp(46px, 7vw, 88px) 0;
}

.auth-brand-copy p,
.auth-kicker-line {
  width: fit-content;
  margin: 0 0 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.82);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.auth-form-panel .auth-kicker-line {
  background: #eff6ff;
  color: #1e40af;
}

.auth-brand-copy h1 {
  max-width: 10ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.065em;
  word-break: keep-all;
}

.auth-brand-copy span {
  display: block;
  max-width: 42ch;
  margin-top: 20px;
  color: rgba(255,255,255,0.74);
  font-size: 16px;
  line-height: 1.78;
  word-break: keep-all;
}

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

.auth-metric-grid div {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  background: rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.auth-metric-grid span {
  display: block;
  color: rgba(255,255,255,0.55);
  font-family: 'Fira Code', 'SFMono-Regular', Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.auth-metric-grid strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-family: 'Fira Code', 'SFMono-Regular', Consolas, monospace;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.06em;
}

.auth-metric-grid em {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.auth-form-panel {
  align-self: center;
  padding: clamp(24px, 3.2vw, 42px);
  background: rgba(255, 255, 255, 0.86);
}

.auth-mode-tabs {
  padding: 5px;
  border-color: rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.78);
}

.auth-mode-tabs a {
  min-height: 46px;
  border-radius: 14px;
  color: #64748b;
  letter-spacing: -0.02em;
}

.auth-mode-tabs a.is-active {
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 14px 32px -26px rgba(15, 23, 42, 0.48), inset 0 1px 0 rgba(255,255,255,0.95);
}

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

.auth-card-head h2 {
  color: #0f172a;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.auth-card-head p:last-child,
.auth-helper-text,
.auth-switch,
.auth-team-access summary {
  color: #64748b;
}

.auth-social-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.auth-social-button {
  min-height: 54px;
  border-color: rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px -34px rgba(15, 23, 42, 0.4), inset 0 1px 0 rgba(255,255,255,0.9);
}

.auth-social-button:hover {
  border-color: rgba(30, 64, 175, 0.24);
  box-shadow: 0 22px 48px -36px rgba(30, 64, 175, 0.42), inset 0 1px 0 rgba(255,255,255,0.96);
  transform: translateY(-1px);
}

.auth-social-kakao {
  background: linear-gradient(135deg, #fee500, #facc15);
  border-color: rgba(180, 83, 9, 0.14);
}

.auth-social-icon {
  width: 28px;
  height: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
}

.auth-divider {
  color: #64748b;
}

.auth-divider::before,
.auth-divider::after,
.auth-team-access {
  border-color: rgba(148, 163, 184, 0.2);
}

.auth-field label {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.auth-field input[type='text'],
.auth-field input[type='email'],
.auth-field input[type='password'] {
  height: 54px;
  border-color: rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.78);
  color: #0f172a;
  font-size: 15px;
  font-weight: 650;
}

.auth-field input::placeholder {
  color: #94a3b8;
}

.auth-field input:focus {
  border-color: rgba(30, 64, 175, 0.42);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), inset 0 1px 0 rgba(255,255,255,0.95);
}

.auth-submit {
  min-height: 56px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 950;
}

.auth-submit svg {
  border-color: rgba(255,255,255,0.26);
}

.auth-screen a:focus-visible,
.auth-screen button:focus-visible,
.auth-screen input:focus-visible,
.auth-screen summary:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.36);
  outline-offset: 3px;
}

.image-dashboard-body .image-sidebar {
  --sidebar-glow: rgba(30, 64, 175, 0.12);
  width: auto;
  background:
    radial-gradient(circle at 18% 0%, var(--sidebar-glow), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.88));
}

.image-dashboard-body .image-sidebar-brand-row {
  padding: 4px 4px 2px;
}

.image-dashboard-body .image-sidebar-brand span {
  border-radius: 14px;
}

.image-dashboard-body .image-sidebar-brand strong {
  font-size: 14px;
}

.image-dashboard-body .image-sidebar-nav {
  gap: 5px;
  padding-top: 4px;
}

.image-dashboard-body .image-sidebar-nav a {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 15px;
}

.image-dashboard-body .image-sidebar-nav a:hover {
  transform: translateX(3px);
}

.image-dashboard-body .image-nav-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 11px;
}

.image-dashboard-body .image-collect-panel {
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.86));
}

.image-dashboard-body .image-collect-promo {
  padding: 14px;
}

.image-dashboard-body .image-collect-head strong {
  font-size: 13px;
}

.image-dashboard-body .image-service-toggles {
  padding: 0 12px;
}

.image-dashboard-body .image-service-toggles .toggle-pill span {
  border-radius: 16px;
}

.image-dashboard-body .image-start-button,
.image-dashboard-body .image-inline-button {
  border-radius: 14px !important;
}

.image-dashboard-body .image-sidebar-user {
  margin-top: auto;
  padding: 12px 6px 4px;
}

.image-dashboard-body .image-sidebar-user > span {
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
  color: #1e40af;
}

@media (max-width: 1180px) {
  .auth-stage {
    grid-template-columns: minmax(0, 0.96fr) minmax(390px, 0.88fr);
  }
}

@media (max-width: 980px) {
  .auth-page-shell {
    padding: 22px;
  }

  .auth-stage {
    width: min(100%, 760px);
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    min-height: auto;
    order: 2;
  }

  .auth-form-panel {
    order: 1;
  }

  .auth-brand-copy {
    padding: 42px 0 34px;
  }

  .auth-brand-copy h1 {
    max-width: 12ch;
    font-size: clamp(34px, 8vw, 54px);
  }
}

@media (max-width: 680px) {
  .auth-screen .site-header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      'brand'
      'actions'
      'nav';
    gap: 10px;
  }

  .auth-screen .site-header-actions,
  .auth-screen .site-nav {
    width: 100%;
  }

  .auth-screen .site-header-actions {
    justify-content: stretch;
  }

  .auth-screen .site-header-actions a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .auth-screen .site-nav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .auth-page-shell {
    padding: 14px;
  }

  .auth-brand-panel,
  .auth-form-panel {
    border-radius: 24px;
  }

  .auth-brand-panel::before {
    border-radius: 23px;
  }

  .auth-brand-panel,
  .auth-form-panel {
    padding: 20px;
  }

  .auth-brand-panel-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-metric-grid {
    grid-template-columns: 1fr;
  }

  .auth-social-grid {
    grid-template-columns: 1fr;
  }

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

  .auth-field input[type='text'],
  .auth-field input[type='email'],
  .auth-field input[type='password'],
  .auth-submit,
  .auth-social-button {
    min-height: 50px;
  }
}

@media (max-width: 420px) {
  .auth-brand-panel,
  .auth-form-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .auth-brand-copy h1 {
    font-size: 32px;
  }

  .auth-brand-copy span,
  .auth-card-head p:last-child {
    font-size: 14px;
  }
}

@media screen and (prefers-reduced-motion: reduce), (update: slow) {
  .auth-screen *,
  .auth-screen *::before,
  .auth-screen *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Premium OAuth providers */
.auth-screen .auth-social-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.auth-screen .auth-social-button {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  justify-content: flex-start;
  gap: 11px;
  padding: 10px 12px;
  overflow: hidden;
  border-radius: 18px;
  border-color: rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.84));
  box-shadow:
    0 22px 52px -42px rgba(15, 23, 42, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.96);
}

.auth-screen .auth-social-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--social-accent, #1e40af) 13%, transparent), transparent 48%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.auth-screen .auth-social-button:hover::before {
  opacity: 1;
}

.auth-screen .auth-social-button:hover {
  border-color: color-mix(in srgb, var(--social-accent, #1e40af) 32%, rgba(148, 163, 184, 0.2));
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.9));
  box-shadow:
    0 24px 54px -42px color-mix(in srgb, var(--social-accent, #1e40af) 36%, rgba(15, 23, 42, 0.4)),
    inset 0 1px 0 rgba(255,255,255,0.98);
}

.auth-screen .auth-social-google {
  --social-accent: #4285f4;
}

.auth-screen .auth-social-kakao {
  --social-accent: #f2c600;
  background: linear-gradient(180deg, rgba(255,239,82,0.96), rgba(250,204,21,0.9));
  border-color: rgba(180, 83, 9, 0.16);
  color: #191919;
}

.auth-screen .auth-social-kakao:hover {
  background: linear-gradient(180deg, rgba(255,244,112,0.98), rgba(255,226,44,0.92));
}

.auth-screen .auth-social-naver {
  --social-accent: #03a94d;
  background: linear-gradient(180deg, rgba(3,169,77,0.96), rgba(2,143,65,0.94));
  border-color: rgba(3, 169, 77, 0.3);
  color: #ffffff;
}

.auth-screen .auth-social-naver:hover {
  background: linear-gradient(180deg, rgba(9,184,89,0.98), rgba(3,161,74,0.96));
}

.auth-screen .auth-social-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow:
    0 14px 28px -22px rgba(15, 23, 42, 0.52),
    inset 0 1px 0 rgba(255,255,255,0.92);
}

.auth-screen .auth-social-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.auth-screen .auth-social-google .auth-social-icon {
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.auth-screen .auth-social-kakao .auth-social-icon {
  background: rgba(255,255,255,0.76);
}

.auth-screen .auth-social-naver .auth-social-icon {
  background: rgba(255,255,255,0.98);
}

.auth-social-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}

.auth-social-copy strong,
.auth-social-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-social-copy strong {
  color: currentColor;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
}

.auth-social-copy em {
  color: rgba(71, 85, 105, 0.74);
  font-style: normal;
  font-size: 11px;
  font-weight: 850;
}

.auth-social-kakao .auth-social-copy em {
  color: rgba(25, 25, 25, 0.62);
}

.auth-social-naver .auth-social-copy em {
  color: rgba(255,255,255,0.78);
}

@media (max-width: 680px) {
  .auth-screen .auth-social-grid {
    grid-template-columns: 1fr;
  }

  .auth-screen .auth-social-button {
    min-height: 58px;
  }
}



/* Admin settings and configurable branding */
.brand-mark img,
.site-brand-mark img,
.image-sidebar-brand span img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: inherit;
}

.image-sidebar-brand span:has(img),
.site-brand-mark:has(img) {
  background: rgba(255, 255, 255, 0.92) !important;
  padding: 4px;
}

.admin-dashboard-anchor {
  scroll-margin-top: 104px;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.admin-settings-card {
  margin: 0;
  padding: 24px;
}

.admin-brand-settings {
  position: sticky;
  top: 108px;
}

.admin-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 20px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(239, 246, 255, 0.82));
}

.admin-logo-preview {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 25%, #60a5fa, #1e40af 68%);
  box-shadow: 0 18px 38px -26px rgba(30, 64, 175, 0.75);
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.admin-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  background: #fff;
}

.admin-logo-row strong,
.admin-logo-row span {
  display: block;
}

.admin-logo-row strong {
  color: var(--image-ink, #0f172a);
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}

.admin-logo-row span {
  margin-top: 4px;
  color: var(--image-muted, #64748b);
  font-size: 0.86rem;
}

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

.admin-field-grid label,
.admin-check-row {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.admin-field-grid label > span,
.admin-check-row span {
  color: var(--image-muted, #64748b);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-field-grid input[type='text'],
.admin-field-grid input[type='email'],
.admin-field-grid input[type='url'],
.admin-field-grid input[type='password'],
.admin-field-grid input[type='number'],
.admin-field-grid input[type='file'],
.admin-field-grid select,
.admin-field-grid textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--image-ink, #0f172a);
  font: inherit;
  outline: none;
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-field-grid input[type='file'] {
  padding: 12px 14px;
}

.admin-field-grid textarea {
  min-height: 132px;
  padding: 14px;
  line-height: 1.55;
  resize: vertical;
}

.admin-field-grid input:focus-visible,
.admin-field-grid select:focus-visible,
.admin-field-grid textarea:focus-visible {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
  background: #fff;
}

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

.admin-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
}

.admin-check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--image-accent, #1e40af);
}

.admin-field-inline {
  align-self: end;
  min-height: 48px;
  margin: 0;
}

.admin-settings-hint {
  margin: 14px 0 0;
  color: var(--image-muted, #64748b);
  font-size: 0.86rem;
}

.admin-template-var-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.74);
}

.admin-template-var-list div {
  display: grid;
  grid-template-columns: minmax(128px, 0.52fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.admin-template-var-list dt,
.admin-template-var-list dd {
  margin: 0;
  min-width: 0;
}

.admin-template-var-list code {
  white-space: nowrap;
  color: #075985;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-template-var-list dd {
  color: var(--image-muted, #64748b);
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-settings-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 6px 0 18px;
}

.admin-settings-actions .image-start-button {
  min-width: 160px;
  border: 0;
}

.admin-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  margin-top: 18px;
}

.admin-control-card {
  margin: 0;
  padding: 24px;
}

.admin-payment-status {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(236, 253, 245, 0.72));
}

.admin-payment-status > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #0b7a49;
  background: rgba(16, 185, 129, 0.12);
}

.admin-payment-status strong,
.admin-payment-status em,
.admin-payment-status b {
  display: block;
}

.admin-payment-status strong {
  color: var(--image-ink, #0f172a);
  font-size: 1.05rem;
  font-weight: 950;
}

.admin-payment-status em {
  margin-top: 3px;
  color: var(--image-muted, #64748b);
  font-style: normal;
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-payment-status b {
  padding: 8px 10px;
  border-radius: 999px;
  color: #0b7a49;
  background: rgba(16, 185, 129, 0.14);
  font-size: 0.75rem;
  font-weight: 950;
}

.admin-payment-status.is-waiting b {
  color: #b45309;
  background: rgba(245, 158, 11, 0.16);
}

.admin-payment-detail {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.admin-payment-detail div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-payment-detail dt,
.admin-payment-detail dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.admin-payment-detail dt {
  color: var(--image-muted, #64748b);
  font-weight: 850;
}

.admin-payment-detail dd {
  color: var(--image-ink, #0f172a);
  font-weight: 900;
}

.admin-readiness-list,
.admin-compact-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.admin-readiness-list div,
.admin-compact-list a,
.admin-compact-list > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
  color: inherit;
  text-decoration: none;
}

.admin-readiness-list div {
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
}

.admin-readiness-list span {
  width: 36px;
  height: 36px;
  grid-row: span 2;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #0b7a49;
  background: rgba(16, 185, 129, 0.12);
}

.admin-readiness-list .is-waiting span {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
}

.admin-readiness-list strong,
.admin-compact-list strong {
  min-width: 0;
  color: var(--image-ink, #0f172a);
  font-size: 0.92rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-readiness-list em,
.admin-compact-list span {
  min-width: 0;
  color: var(--image-muted, #64748b);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.admin-payment-gateway-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 4px;
}

.admin-payment-gateway-strip label {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.72);
  cursor: pointer;
}

.admin-payment-gateway-strip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-payment-gateway-strip label.is-active,
.admin-payment-gateway-strip label:has(input:checked) {
  border-color: rgba(11, 122, 73, 0.32);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.88));
  box-shadow: 0 18px 40px -32px rgba(11, 122, 73, 0.7);
}

.admin-payment-gateway-strip span {
  color: var(--image-ink, #0f172a);
  font-size: 0.95rem;
  font-weight: 950;
}

.admin-payment-gateway-strip em {
  color: var(--image-muted, #64748b);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.admin-payment-provider-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
}

.admin-payment-provider-card > strong {
  color: var(--image-ink, #0f172a);
  font-size: 1rem;
  font-weight: 950;
}

.payment-collect-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(236, 253, 245, 0.86);
  color: #0b7a49;
}

.payment-collect-note > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
}

.payment-collect-note strong,
.payment-collect-note em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-collect-note strong {
  font-size: 0.78rem;
  font-weight: 950;
}

.payment-collect-note em {
  color: rgba(15, 23, 42, 0.62);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
}

.payment-collect-note.is-required {
  background: rgba(255, 247, 237, 0.92);
  color: #b45309;
}

.payment-gateway-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 16px 0 0;
  padding: 18px;
  border: 1px solid rgba(11, 122, 73, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.86));
}

.payment-gateway-banner p,
.payment-gateway-banner h2,
.payment-gateway-banner span {
  margin: 0;
}

.payment-gateway-banner p {
  color: #0b7a49;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.payment-gateway-banner h2 {
  margin-top: 4px;
  color: var(--image-ink, #0f172a);
  font-size: 1.02rem;
  font-weight: 950;
}

.payment-gateway-banner span {
  display: block;
  margin-top: 4px;
  color: var(--image-muted, #64748b);
  font-size: 0.86rem;
}

.payment-gateway-banner > strong {
  padding: 10px 14px;
  border-radius: 999px;
  color: #0b7a49;
  background: rgba(16, 185, 129, 0.12);
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-brand-settings {
    position: static;
  }
}

@media (max-width: 680px) {
  .admin-control-grid,
  .admin-payment-provider-grid,
  .admin-payment-gateway-strip,
  .payment-gateway-banner {
    grid-template-columns: 1fr;
  }

  .admin-settings-card {
    padding: 18px;
  }

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

  .admin-logo-row {
    align-items: flex-start;
  }

  .admin-settings-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .admin-settings-actions .ghost-button,
  .admin-settings-actions .image-start-button {
    width: 100%;
    justify-content: center;
  }
}


/* Notification modal and compact topbar */
.image-topbar-compact {
  gap: 16px;
}

.image-topbar-title {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.image-topbar-title span {
  color: var(--image-muted, #64748b);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.image-topbar-title strong {
  color: var(--image-ink, #0f172a);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 950;
  letter-spacing: -0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(8px);
}

.notification-modal {
  position: fixed;
  top: clamp(82px, 10vh, 118px);
  right: clamp(16px, 4vw, 42px);
  z-index: 190;
  width: min(420px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 120px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 0%, rgba(59, 130, 246, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 90px -44px rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(22px) saturate(150%);
}

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

.notification-modal-head,
.notification-modal-actions,
.notification-modal-list a {
  display: flex;
  align-items: center;
}

.notification-modal-head {
  justify-content: space-between;
  gap: 14px;
}

.notification-modal-head p {
  margin: 0 0 4px;
  color: var(--image-accent, #1e40af);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.notification-modal-head h2 {
  margin: 0;
  color: var(--image-ink, #0f172a);
  font-size: 1.28rem;
  letter-spacing: -0.06em;
}

.notification-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: #fff;
  color: #64748b;
  font-weight: 900;
  cursor: pointer;
}

.notification-modal-desc {
  margin: 10px 0 18px;
  color: var(--image-muted, #64748b);
  font-size: 0.92rem;
  line-height: 1.65;
}

.notification-modal-list {
  display: grid;
  gap: 10px;
}

.notification-modal-list a {
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.78);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.notification-modal-list a:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.34);
  background: #fff;
}

.notification-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 5px currentColor;
  opacity: 0.82;
}

.notification-dot.is-blue { color: rgba(59, 130, 246, 0.16); background: #2563eb; }
.notification-dot.is-amber { color: rgba(245, 158, 11, 0.16); background: #f59e0b; }
.notification-dot.is-green { color: rgba(16, 185, 129, 0.16); background: #10b981; }
.notification-dot.is-red { color: rgba(239, 68, 68, 0.16); background: #ef4444; }

.notification-modal-list time {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.notification-modal-empty {
  padding: 22px 18px;
  border: 1px dashed rgba(148, 163, 184, 0.34);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.72);
  text-align: center;
}

.notification-modal-empty strong,
.notification-modal-empty span {
  display: block;
}

.notification-modal-empty strong {
  color: var(--image-ink, #0f172a);
  font-size: 0.96rem;
  font-weight: 900;
}

.notification-modal-empty span {
  margin-top: 6px;
  color: var(--image-muted, #64748b);
  font-size: 0.82rem;
  line-height: 1.6;
}

.notification-modal-actions {
  flex-wrap: wrap;
}


.notification-modal-list strong,
.notification-modal-list em {
  display: block;
}

.notification-modal-list strong {
  color: var(--image-ink, #0f172a);
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.notification-modal-list em {
  margin-top: 3px;
  color: var(--image-muted, #64748b);
  font-size: 0.8rem;
  font-style: normal;
}

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

.notification-modal-actions .image-start-button {
  border: 0;
  min-width: 96px;
}

.image-sidebar-user {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.image-sidebar-user-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.image-sidebar-user-avatar > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #ecf6f1, #d8ecdf);
  color: var(--sb-accent, #0b7a49);
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.image-sidebar-user-avatar:hover {
  transform: translateY(-1px);
}

.image-sidebar-user-avatar.is-active > span {
  box-shadow: 0 0 0 2px rgba(11, 122, 73, 0.28);
}

.image-sidebar-user-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 1px;
}

.image-user-pricing-btn {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(145deg, #12a066 0%, #0b7a49 55%, #086341 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 8px 18px -10px rgba(11, 122, 73, 0.72);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.image-user-pricing-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 10px 22px -8px rgba(11, 122, 73, 0.78);
}

.image-user-pricing-btn.is-active {
  background: linear-gradient(145deg, #0b7a49 0%, #065a36 100%);
  box-shadow:
    0 0 0 2px rgba(11, 122, 73, 0.22),
    0 8px 18px -10px rgba(11, 122, 73, 0.65);
}

@media (min-width: 961px) {
  .is-sidebar-collapsed .image-sidebar-user-avatar {
    display: grid;
  }
}

@media (max-width: 960px) {
  .image-topbar-title strong {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .notification-modal {
    top: 74px;
    right: 12px;
    left: 12px;
    width: auto;
    padding: 18px;
    border-radius: 22px;
  }

  .notification-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .notification-modal-actions .ghost-button,
  .notification-modal-actions .image-start-button {
    width: 100%;
    justify-content: center;
  }
}


/* User profile page */
.user-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

.user-profile-card {
  margin: 0;
  padding: 24px;
}

.user-profile-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 18%, rgba(59, 130, 246, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.94), rgba(239, 246, 255, 0.82));
}

.user-profile-identity > span {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(145deg, #1e40af, #3b82f6);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 950;
  box-shadow: 0 24px 54px -36px rgba(30, 64, 175, 0.78);
}

.user-profile-identity p,
.user-profile-identity h2,
.user-profile-identity em {
  margin: 0;
  display: block;
}

.user-profile-identity p {
  color: var(--image-accent, #1e40af);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.user-profile-identity h2 {
  margin-top: 4px;
  color: var(--image-ink, #0f172a);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 950;
  letter-spacing: -0.07em;
}

.user-profile-identity em {
  margin-top: 4px;
  color: var(--image-muted, #64748b);
  font-size: 0.92rem;
  font-style: normal;
}

.user-profile-details {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.user-profile-details div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.user-profile-details dt,
.user-profile-details dd {
  margin: 0;
}

.user-profile-details dt {
  color: var(--image-muted, #64748b);
  font-size: 0.8rem;
  font-weight: 800;
}

.user-profile-details dd {
  color: var(--image-ink, #0f172a);
  font-size: 0.9rem;
  font-weight: 900;
  text-align: right;
}

.user-profile-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.user-profile-actions a {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.82);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.user-profile-actions a:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.34);
  background: #fff;
}

.user-profile-actions strong {
  color: var(--image-ink, #0f172a);
  font-size: 0.98rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.user-profile-actions span {
  color: var(--image-muted, #64748b);
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .user-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .user-profile-card {
    padding: 18px;
  }

  .user-profile-identity {
    align-items: flex-start;
  }

  .user-profile-identity > span {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 20px;
    font-size: 1.35rem;
  }

  .user-profile-details div {
    display: grid;
    justify-content: stretch;
  }

  .user-profile-details dd {
    text-align: left;
  }
}


/* Ensure collection progress modal is always visible */
.loading-mask {
  z-index: 2400;
}

.loading-mask.visible {
  display: grid !important;
}

.loading-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.loading-actions .ghost-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
}

.collect-background-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 2100;
  width: min(560px, calc(100vw - 24px));
  transform: translateX(-50%);
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px -30px rgba(15, 23, 42, 0.45);
}

.collect-background-banner[hidden] {
  display: none;
}

.collect-background-banner strong {
  color: #0f172a;
  font-size: 0.92rem;
}

.collect-background-banner span {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.5;
}

.collect-background-banner a {
  justify-self: start;
  margin-top: 4px;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}


.image-icon-button.image-action-bell,
.image-icon-button:has([data-notification-badge]) {
  position: relative;
  overflow: visible;
}

.image-icon-button [data-notification-badge] {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.image-icon-button [data-notification-badge][hidden] {
  display: none !important;
}

.notification-modal-list a.is-read {
  opacity: 0.62;
}

.image-action-moon.is-active,
.theme-dark .image-action-moon {
  background: rgba(30, 41, 59, 0.92);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.34);
}

body.theme-dark.image-dashboard-body,
body.theme-dark.auth-page-body {
  --image-bg: #0b1220;
  --image-surface: #111827;
  --image-muted: #94a3b8;
  --image-ink: #e2e8f0;
  --image-line: rgba(148, 163, 184, 0.22);
  --image-accent: #38bdf8;
  --image-soft: rgba(56, 189, 248, 0.12);
  --image-shadow: 0 18px 45px -34px rgba(0, 0, 0, 0.65);
  --sb-ink: #e2e8f0;
  color-scheme: dark;
}

body.theme-dark .image-sidebar,
body.theme-dark .image-topbar,
body.theme-dark .image-kpi-card,
body.theme-dark .image-report-section,
body.theme-dark .notification-modal,
body.theme-dark .loading-panel,
body.theme-dark .collect-background-banner {
  background: rgba(17, 24, 39, 0.94);
  color: var(--image-ink);
}

body.theme-dark .image-sidebar-nav a,
body.theme-dark .image-topbar-title strong,
body.theme-dark .notification-modal-list strong {
  color: var(--image-ink);
}

body.theme-dark .image-collect-panel,
body.theme-dark .notification-modal-list a,
body.theme-dark .image-user-pricing-btn {
  background: linear-gradient(145deg, #16b371 0%, #0d8f57 55%, #0a7347 100%);
}

body.theme-dark .image-user-action,
body.theme-dark .ghost-button {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.24);
  color: var(--image-ink);
}

body.theme-dark .memory-check span {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.34);
}


.notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.78);
}

.notification-item-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
}

.notification-item-link:hover {
  color: inherit;
}


.notification-item.is-dismissed,
.notification-item[hidden] {
  display: none !important;
}

.notification-item-delete {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  pointer-events: auto;
  width: 32px;
  height: 32px;
  margin: 8px 8px 0 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.notification-item-delete:hover {
  border-color: rgba(239, 68, 68, 0.34);
  background: #fef2f2;
  color: #dc2626;
}

.notification-item.is-read,
.notification-item-link.is-read {
  opacity: 0.62;
}

.notification-delete-all {
  color: #dc2626;
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(254, 242, 242, 0.92);
}

.notification-delete-all:hover {
  border-color: rgba(239, 68, 68, 0.42);
  background: #fee2e2;
}

body.theme-dark .notification-item {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.24);
}

body.theme-dark .notification-item-delete,
body.theme-dark .notification-delete-all {
  background: rgba(15, 23, 42, 0.92);
  color: #cbd5e1;
}

/* Dark mode – main content */
body.theme-dark.image-dashboard-body {
  background:
    radial-gradient(circle at 82% 8%, rgba(56, 189, 248, 0.1), transparent 25rem),
    linear-gradient(180deg, #0b1220 0%, #0f172a 100%) !important;
  color: var(--image-ink);
}

body.theme-dark .image-dashboard-main,
body.theme-dark .image-dashboard-shell {
  color: var(--image-ink);
}

body.theme-dark .image-kpi-card,
body.theme-dark .image-recent-card,
body.theme-dark .image-schedule-card,
body.theme-dark .image-summary-card,
body.theme-dark .image-report-summary,
body.theme-dark .image-report-section,
body.theme-dark .image-sub-panel,
body.theme-dark .image-member-panel > .member-panel-large,
body.theme-dark .image-member-panel .member-panel-large,
body.theme-dark .result-job-card,
body.theme-dark .trend-header-card,
body.theme-dark .member-empty,
body.theme-dark .member-panel,
body.theme-dark .image-insight-strip a,
body.theme-dark .admin-settings-card,
body.theme-dark .user-profile-card,
body.theme-dark .admin-logo-row {
  background: rgba(17, 24, 39, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 18px 45px -34px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  color: var(--image-ink);
}

body.theme-dark .image-recent-row,
body.theme-dark .image-schedule-task,
body.theme-dark .image-summary-list > div,
body.theme-dark .image-report-summary .image-summary-list > div,
body.theme-dark .watcher-item,
body.theme-dark .memory-item,
body.theme-dark .member-panel-large .rank-check-form,
body.theme-dark .rank-check-form,
body.theme-dark .rank-report-panel-compact,
body.theme-dark .image-keyword-tool,
body.theme-dark .image-calendar span,
body.theme-dark .image-calendar b {
  background: rgba(15, 23, 42, 0.82) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: var(--image-ink);
}

body.theme-dark .image-kpi-head span,
body.theme-dark .image-card-head h3,
body.theme-dark .image-section-heading h2,
body.theme-dark .result-job-title-row strong,
body.theme-dark .image-recent-row strong,
body.theme-dark .image-schedule-task strong,
body.theme-dark .image-kpi-card strong,
body.theme-dark .image-recent-row b,
body.theme-dark .image-schedule-note strong,
body.theme-dark .image-report-summary .image-summary-list b,
body.theme-dark .image-insight-strip strong,
body.theme-dark .member-panel h3,
body.theme-dark .member-panel-head > strong,
body.theme-dark .watcher-item strong,
body.theme-dark .memory-item h4,
body.theme-dark .result-job-count strong,
body.theme-dark .user-profile-identity h2,
body.theme-dark .admin-logo-row strong,
body.theme-dark .trend-header-copy h3 {
  color: var(--image-ink) !important;
}

body.theme-dark .image-kpi-card p,
body.theme-dark .image-kpi-card small,
body.theme-dark .image-recent-row em,
body.theme-dark .image-card-head span,
body.theme-dark .result-job-meta,
body.theme-dark .member-empty,
body.theme-dark .image-schedule-note span,
body.theme-dark .image-insight-strip em,
body.theme-dark .member-panel-head > strong span,
body.theme-dark .watcher-item em,
body.theme-dark .memory-item p,
body.theme-dark .result-job-count span,
body.theme-dark .user-profile-identity em,
body.theme-dark .trend-header-copy span,
body.theme-dark .image-topbar-title span {
  color: var(--image-muted) !important;
}

body.theme-dark .image-section-heading p,
body.theme-dark .panel-kicker,
body.theme-dark .image-insight-strip span,
body.theme-dark .image-card-head a,
body.theme-dark .image-kpi-card p b {
  color: var(--image-accent) !important;
}

body.theme-dark .rank-check-compact-badge,
body.theme-dark .rank-report-summary-pill {
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: rgba(56, 189, 248, 0.22) !important;
  color: var(--image-accent) !important;
}

body.theme-dark .image-kpi-head i,
body.theme-dark .image-recent-icon {
  background: rgba(56, 189, 248, 0.14) !important;
  color: var(--image-accent) !important;
}

body.theme-dark .image-icon-button,
body.theme-dark .image-sidebar-collapse,
body.theme-dark .image-mobile-menu-button {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: var(--image-accent) !important;
  box-shadow: 0 14px 34px -28px rgba(0, 0, 0, 0.55) !important;
}

body.theme-dark .image-icon-button:hover {
  background: rgba(30, 41, 59, 0.96) !important;
}

body.theme-dark .image-topbar-title strong,
body.theme-dark .image-sidebar-brand strong {
  color: var(--image-ink) !important;
}

body.theme-dark .image-searchbox,
body.theme-dark .image-keyword-editor,
body.theme-dark #keywords,
body.theme-dark .image-dashboard-body #keywords,
body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select,
body.theme-dark .admin-field-grid input[type='text'],
body.theme-dark .admin-field-grid input[type='email'],
body.theme-dark .admin-field-grid input[type='url'],
body.theme-dark .admin-field-grid input[type='password'],
body.theme-dark .admin-field-grid input[type='number'],
body.theme-dark .admin-field-grid input[type='file'],
body.theme-dark .admin-field-grid textarea,
body.theme-dark .rank-check-form input,
body.theme-dark .rank-check-form textarea,
body.theme-dark .image-trend-form input,
body.theme-dark .image-trend-form textarea {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: var(--image-ink) !important;
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
  color: #64748b;
}

body.theme-dark .image-searchbox input,
body.theme-dark .image-searchbox kbd {
  color: var(--image-ink);
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.24);
}

body.theme-dark .alert,
body.theme-dark .loading-panel {
  background: rgba(17, 24, 39, 0.94) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: var(--image-ink);
}

body.theme-dark .dashboard-body .tab-panel {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(17, 24, 39, 0.82)) !important;
}

body.theme-dark .dashboard-body .tab-panel .table-wrap {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 34px -32px rgba(0, 0, 0, 0.55) !important;
}

body.theme-dark .dashboard-body .tab-panel th {
  background: rgba(30, 41, 59, 0.96) !important;
  color: var(--image-muted) !important;
}

body.theme-dark .dashboard-body .tab-panel td,
body.theme-dark th,
body.theme-dark td {
  background: rgba(15, 23, 42, 0.72) !important;
  color: var(--image-ink) !important;
  border-bottom-color: rgba(148, 163, 184, 0.16) !important;
}

body.theme-dark .dashboard-body .tab-panel tbody tr:nth-child(even) td {
  background: rgba(17, 24, 39, 0.82) !important;
}

body.theme-dark .dashboard-body .tab-panel tbody tr:hover td,
body.theme-dark tbody tr:hover td {
  background: rgba(30, 41, 59, 0.92) !important;
}

body.theme-dark .dashboard-body .tab-panel tbody tr.is-remembered td,
body.theme-dark tbody tr.is-remembered td {
  background: rgba(16, 185, 129, 0.12) !important;
}

body.theme-dark .download-button,
body.theme-dark .result-delete-button,
body.theme-dark .watcher-delete-button,
body.theme-dark .trend-refresh-button,
body.theme-dark .user-profile-actions a {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: var(--image-ink) !important;
}

body.theme-dark .user-profile-details div {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .notification-modal-backdrop {
  background: rgba(2, 6, 23, 0.72);
}

body.theme-dark .image-sidebar-nav a:hover {
  background: rgba(56, 189, 248, 0.1);
  color: var(--image-ink);
}

body.theme-dark .image-sidebar-nav a.is-active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(30, 41, 59, 0.92)) !important;
  color: var(--image-accent) !important;
  box-shadow: 0 14px 34px -30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.theme-dark .image-nav-icon {
  background: rgba(56, 189, 248, 0.12);
  color: var(--image-accent);
}

body.theme-dark .image-sidebar-nav a.is-active .image-nav-icon {
  background: var(--image-accent);
  color: #0b1220;
}

body.theme-dark .result-job-keywords span {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--image-ink);
}

body.theme-dark .trend-empty,
body.theme-dark .trend-legend span {
  color: var(--image-muted);
}

body.theme-dark .trend-grid-line {
  stroke: rgba(148, 163, 184, 0.22);
}

body.theme-dark .trend-axis-label {
  fill: var(--image-muted);
}

body.theme-dark .image-report-summary .service-donut,
body.theme-dark .service-donut {
  box-shadow: inset 0 0 0 14px rgba(15, 23, 42, 0.72), 0 20px 48px -34px rgba(0, 0, 0, 0.55) !important;
}
body.theme-dark .user-profile-identity {
  background:
    radial-gradient(circle at 16% 18%, rgba(56, 189, 248, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.88)) !important;
  border-color: rgba(148, 163, 184, 0.22);
}

body.theme-dark .user-profile-identity p {
  color: var(--image-accent) !important;
}

body.theme-dark .image-insight-strip a:hover {
  border-color: rgba(56, 189, 248, 0.28) !important;
  box-shadow: 0 26px 70px -48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.theme-dark .result-job-card:hover,
body.theme-dark .image-kpi-card:hover,
body.theme-dark .image-recent-row:hover,
body.theme-dark .image-schedule-task:hover {
  border-color: rgba(56, 189, 248, 0.28) !important;
  box-shadow: 0 22px 55px -40px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Compact live collection modal */
.loading-mask {
  padding: clamp(12px, 3vw, 22px);
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(14px) saturate(120%);
}

.loading-panel {
  position: relative;
  width: min(540px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 13px 14px;
  padding: 20px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 86px -58px rgba(15, 23, 42, 0.76), inset 0 1px 0 rgba(255,255,255,0.92);
}

.loading-panel::before {
  height: 3px;
  background: linear-gradient(90deg, #0b7a49, #31b779, #f59e0b);
}

.loading-orbit {
  width: 42px;
  height: 42px;
  border-radius: 15px;
}

.loading-orbit::before {
  width: 24px;
}

.loading-copy {
  min-width: 0;
  padding-right: 112px;
}

.loading-copy .eyebrow {
  margin: 0 0 5px;
  color: #0b7a49;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.loading-copy h3 {
  max-width: none;
  margin: 0;
  color: #0f172a;
  font-size: clamp(18px, 3.8vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.loading-copy p:last-child {
  margin-top: 6px;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.5;
}

.loading-warning,
.loading-actions,
.loading-progress-row,
.loading-progress,
.loading-meta,
.loading-keywords,
.loading-steps {
  grid-column: 1 / -1;
}

.loading-warning {
  padding: 11px 12px;
  gap: 4px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-left: 0;
  border-radius: 15px;
  background: #fff7ed;
}

.loading-warning strong {
  color: #7c3f0a;
  font-size: 13px;
}

.loading-warning span {
  color: #8a5a1f;
  font-size: 12px;
  line-height: 1.48;
}

.loading-actions {
  position: absolute;
  top: 17px;
  right: 18px;
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.loading-actions .ghost-button {
  min-height: 31px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.loading-progress-row {
  padding-top: 0;
  font-size: 11px;
}

.loading-progress-row strong {
  color: #0b7a49;
  font-size: 13px;
}

.loading-progress {
  height: 8px;
  background: #e8eee9;
}

.loading-progress i {
  min-width: 8px;
  background: linear-gradient(90deg, #0b7a49, #31b779, #f59e0b);
}

.loading-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 15px;
}

.loading-meta div {
  min-height: 54px;
  padding: 10px;
}

.loading-meta span,
.loading-steps span {
  font-size: 11px;
}

.loading-meta strong {
  font-size: 18px;
}

.loading-keywords {
  min-height: 0;
  max-height: 58px;
  gap: 6px;
  overflow: auto;
}

.loading-keywords span {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
}

.loading-steps {
  gap: 6px;
}

.loading-steps div {
  min-height: 29px;
  padding: 6px 8px;
  border-radius: 12px;
}

.loading-steps i {
  width: 14px;
  height: 14px;
}

@media (max-width: 560px) {
  .loading-panel {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 16px;
    border-radius: 20px;
  }

  .loading-copy {
    padding-right: 0;
  }

  .loading-actions {
    position: static;
  }
}

/* Notification settings modal */
.notification-settings-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.notification-settings-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1201;
  width: min(520px, calc(100vw - 32px));
  max-height: min(90vh, 720px);
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.notification-settings-modal[hidden],
.notification-settings-backdrop[hidden] {
  display: none !important;
}

body.is-notification-settings-open {
  overflow: hidden;
}

.notification-settings-head,
.notification-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notification-settings-head p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.notification-settings-head h2 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
}

.notification-settings-close {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
}

.notification-settings-desc {
  margin: 12px 0 16px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.notification-settings-desc strong {
  color: #0b7a49;
}

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

.notification-settings-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

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

.notification-settings-grid label {
  display: grid;
  gap: 6px;
}

.notification-settings-grid span {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.notification-settings-grid input,
.notification-settings-grid select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
}

.notification-settings-channels {
  margin: 0;
  padding: 12px;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
}

.notification-settings-channels legend {
  padding: 0 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.notification-settings-channels label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.notification-settings-panel {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #e8edf0;
  border-radius: 12px;
  background: #fbfdfc;
}

.notification-settings-inline-summary {
  margin: 0 0 8px;
  color: #0b7a49;
  font-size: 14px;
  font-weight: 800;
}

.notification-settings-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notification-settings-inline-list li {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

@media (max-width: 560px) {
  .notification-settings-grid {
    grid-template-columns: 1fr;
  }
}

.rank-report-panel {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #e8edf0;
  border-radius: 12px;
  background: #fbfdfc;
}

.rank-report-panel-compact {
  margin: 12px 0 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(226, 232, 240, 0.95);
  background: rgba(248, 252, 250, 0.72);
}

.rank-report-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rank-report-panel-compact .rank-report-panel__head {
  min-height: 48px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.rank-report-panel-compact .rank-report-panel__head::-webkit-details-marker {
  display: none;
}

.rank-report-panel-compact .rank-report-panel__head::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.rank-report-panel-compact[open] .rank-report-panel__head::after {
  transform: rotate(225deg) translateY(-2px);
}

.rank-report-panel__head h4 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.rank-report-panel-compact .rank-report-panel__head h4 {
  margin-top: 2px;
  font-size: 13px;
}

.rank-report-summary-pill {
  margin-left: auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf8f2;
  color: #0b7a49;
  font-size: 11px;
  font-weight: 900;
}

.rank-report-panel__body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.rank-report-panel__quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.rank-report-panel__summary {
  margin: 10px 0 12px;
  color: #0b7a49;
  font-size: 13px;
  font-weight: 750;
}

.rank-report-panel__quick .rank-report-panel__summary {
  margin: 0;
  font-size: 12px;
}

.rank-report-instant-form,
.rank-report-schedule-form {
  display: grid;
  gap: 10px;
}

.rank-report-instant-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
}

.rank-report-panel-compact .rank-report-instant-form {
  margin-bottom: 4px;
  padding-bottom: 10px;
}

.rank-report-instant-form label,
.rank-report-schedule-grid label {
  display: grid;
  gap: 6px;
}

.rank-report-instant-form span,
.rank-report-schedule-grid span {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.rank-report-instant-form input,
.rank-report-schedule-grid input,
.rank-report-schedule-grid select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

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

.rank-report-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.rank-report-send-now {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .rank-report-instant-form {
    grid-template-columns: 1fr;
  }
  .rank-report-schedule-grid {
    grid-template-columns: 1fr;
  }
}


.admin-smtp-test-row{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin-top:12px}
.admin-smtp-test-row label{flex:1;min-width:220px}

/* Rank check: setup vs list sections */
.rank-check-page-stack {
  display: grid;
  gap: 14px;
}

.rank-check-setup-panel {
  padding: 14px;
  border-radius: 12px;
}

.rank-check-setup-panel .rank-report-panel {
  margin-bottom: 0;
}

.rank-check-setup-panel .member-panel-head {
  margin-bottom: 10px;
}

.rank-check-setup-panel .panel-kicker {
  margin-bottom: 3px;
  font-size: 10px;
}

.rank-check-setup-panel h3 {
  font-size: 18px;
}

.rank-check-compact-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(11, 122, 73, 0.18);
  border-radius: 999px;
  background: #edf8f2;
  color: #0b7a49 !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.rank-check-setup-panel .rank-check-form {
  gap: 9px;
  margin-bottom: 0;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 250, 0.82));
}

.rank-check-setup-panel .rank-field-grid {
  grid-template-columns: minmax(150px, 0.9fr) minmax(150px, 0.9fr) minmax(190px, 1.15fr);
  gap: 8px;
}

.rank-check-setup-panel .rank-field-grid label {
  gap: 5px;
}

.rank-check-setup-panel .rank-field-grid label span {
  color: #516071;
  font-size: 11px;
}

.rank-check-setup-panel .rank-field-grid input {
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 13px;
}

.rank-check-setup-panel .rank-service-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.rank-service-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rank-check-setup-panel .rank-type-toggle span {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 11px;
}

.rank-check-setup-panel .rank-form-hint {
  margin: 0;
  color: #6b7682;
  font-size: 11px;
  line-height: 1.35;
}

.rank-check-setup-panel .rank-service-row .primary-button {
  min-height: 34px;
  min-width: 104px;
  margin-left: 0;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
}

.rank-check-list-panel {
  padding: clamp(20px, 3vw, 28px);
}

.rank-check-list-panel .rank-watcher-health-row {
  margin-bottom: 14px;
}

.rank-check-list-panel .watcher-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.rank-check-list-panel .member-empty {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .rank-check-list-panel .watcher-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-check-setup-panel .rank-field-grid,
  .rank-check-setup-panel .rank-service-row,
  .rank-report-panel__quick {
    grid-template-columns: 1fr;
  }

  .rank-check-setup-panel .rank-service-row {
    align-items: stretch;
  }

  .rank-service-toggle-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rank-check-setup-panel .rank-service-row .primary-button,
  .rank-report-panel__quick .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .rank-report-panel__quick {
    display: grid;
  }
}

/* Full-width main (sidebar unchanged) */
.image-dashboard-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 22px clamp(12px, 1.4vw, 18px) 40px !important;
}

.image-subpage-body .image-dashboard-main {
  padding-top: 22px !important;
}

.member-page-grid,
.rank-check-page-stack,
.image-member-panel {
  width: 100%;
  max-width: none;
}

/* Rank watcher filters + item layout */
.rank-watcher-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.rank-watcher-filter {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe3ea;
  border-radius: 999px;
  background: #fff;
  color: #4b5966;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.rank-watcher-filter.is-active {
  border-color: #0b7a49;
  background: #e9f7ef;
  color: #0b7a49;
}

.watcher-service-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.watcher-service-badge--blog { background: #e8f2ff; color: #1d4ed8; }
.watcher-service-badge--cafe { background: #fff4e5; color: #b45309; }
.watcher-service-badge--kin { background: #edf7ed; color: #166534; }

.watcher-title a {
  color: inherit;
  text-decoration: none;
}

.watcher-title a:hover {
  color: #0b7a49;
  text-decoration: underline;
}

.watcher-position-line {
  margin: 4px 0 0;
  color: #0b7a49;
  font-size: 12px;
  font-weight: 900;
}

.watcher-section-line {
  margin: 2px 0 0;
  color: #64707d;
  font-size: 11px;
  font-weight: 700;
}

.watcher-item-head {
  display: grid;
  gap: 4px;
  align-content: start;
}

.rank-check-list-panel .watcher-list {
  align-items: stretch;
}

/* Collection results: title link + section rank */
.dashboard-body .result-title-link,
.image-dashboard-body .result-title-link {
  color: #1e40af;
  font-weight: 740;
  text-decoration: none;
}

.dashboard-body .result-title-link:hover,
.image-dashboard-body .result-title-link:hover {
  text-decoration: underline;
}

.dashboard-body .field-section-rank,
.image-dashboard-body .field-section-rank {
  text-align: center;
  white-space: nowrap;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.rank-badge--1 {
  color: #92400e;
  background: #fef3c7;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35);
}

.rank-badge--2 {
  color: #1e3a8a;
  background: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.28);
}

.rank-badge--3 {
  color: #065f46;
  background: #d1fae5;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.28);
}

.rank-badge--4 {
  color: #5b21b6;
  background: #ede9fe;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.28);
}

.rank-badge--5 {
  color: #9d174d;
  background: #fce7f3;
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.24);
}

.rank-badge--6 {
  color: #9a3412;
  background: #ffedd5;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.28);
}

.rank-badge--7 {
  color: #334155;
  background: #f1f5f9;
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.28);
}

.rank-badge--8 {
  color: #3f3f46;
  background: #f4f4f5;
  box-shadow: inset 0 0 0 1px rgba(113, 113, 122, 0.28);
}

/* Collection report: section name card only (per-section color) */
.results-panel .section-badge-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: 100%;
}

.results-panel .field-section-title .section-token--rect {
  margin: 0;
  border-radius: 6px;
}

body.theme-dark .results-panel .field-section-title .section-token--rect {
  border-color: hsl(var(--section-hue, 152) 36% 42%);
  background: hsl(var(--section-hue, 152) 28% 22%);
  color: hsl(var(--section-hue, 152) 52% 88%);
}

/* Integrated admin console */
.admin-page .image-dashboard-main {
  max-width: 1500px;
  margin: 0 auto;
}

.image-sidebar-nav-label {
  display: block;
  margin: 6px 10px 2px;
  color: rgba(100, 116, 139, 0.86);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-sidebar-nav.is-admin-nav {
  gap: 6px;
}

.image-sidebar-nav.is-admin-nav a {
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.62);
}

.image-sidebar-nav.is-admin-nav a:hover,
.image-sidebar-nav.is-admin-nav a.is-active {
  border-color: rgba(11, 122, 73, 0.22);
  background: #0b7a49;
  color: #fff;
}

.image-admin-sidebar-panel {
  align-self: end;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(11, 122, 73, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 253, 245, 0.82)),
    #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.image-admin-sidebar-panel > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #0b7a49;
  background: rgba(16, 185, 129, 0.12);
}

.image-admin-sidebar-panel strong,
.image-admin-sidebar-panel em {
  display: block;
}

.image-admin-sidebar-panel strong {
  color: #14221a;
  font-size: 15px;
  font-weight: 950;
}

.image-admin-sidebar-panel em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.image-admin-sidebar-panel a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  border-radius: 11px;
  background: #0b7a49;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.admin-page-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 20px;
}

.admin-page-tabs a {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, background 0.22s ease;
}

.admin-page-tabs a:active {
  transform: translateY(1px) scale(0.99);
}

.admin-page-tabs a:hover,
.admin-page-tabs a.is-active {
  border-color: rgba(11, 122, 73, 0.24);
  background: #fff;
}

.admin-page-tabs span {
  width: 38px;
  height: 38px;
  grid-row: span 2;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #0b7a49;
  background: rgba(16, 185, 129, 0.12);
}

.admin-page-tabs strong,
.admin-page-tabs em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-page-tabs strong {
  color: #14221a;
  font-size: 13px;
  font-weight: 950;
}

.admin-page-tabs em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.admin-page .admin-control-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.admin-page .admin-payment-overview {
  grid-column: span 5;
}

.admin-page #admin-system {
  grid-column: span 7;
}

.admin-page #admin-activity,
.admin-page .admin-control-grid > .admin-control-card:nth-child(4) {
  grid-column: span 6;
}

.admin-page .admin-control-card,
.admin-page .admin-settings-card {
  min-width: 0;
  border-radius: 18px;
  box-shadow: 0 18px 42px -34px rgba(15, 23, 42, 0.32);
}

.admin-page .admin-settings-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.admin-page .admin-brand-settings {
  position: static;
  top: auto;
  grid-column: span 4;
}

.admin-page .admin-footer-settings {
  grid-column: span 8;
}

.admin-page .admin-kakao-template-settings {
  grid-column: 1 / -1;
}

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

.admin-page .admin-api-settings {
  grid-column: span 8;
}

.admin-page .admin-ops-settings {
  grid-column: span 4;
}

.admin-page .admin-api-settings .admin-field-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}

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

.admin-page .admin-ops-settings .admin-check-row {
  min-height: 48px;
  align-items: center;
}

.admin-page .admin-settings-actions {
  position: sticky;
  bottom: 18px;
  z-index: 2;
  margin-top: 2px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
}

.admin-page .admin-settings-actions .ghost-button {
  min-width: 108px;
}

@media (max-width: 1180px) {
  .admin-page-tabs,
  .admin-page .image-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page .admin-payment-overview,
  .admin-page #admin-system,
  .admin-page #admin-activity,
  .admin-page .admin-control-grid > .admin-control-card:nth-child(4),
  .admin-page .admin-brand-settings,
  .admin-page .admin-footer-settings,
  .admin-page .admin-kakao-template-settings,
  .admin-page .admin-api-settings,
  .admin-page .admin-ops-settings {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .admin-page-tabs {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-settings-actions {
    position: static;
    display: grid;
  }
}



/* Admin users management */
/* Admin member management tabs */
.admin-member-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.admin-member-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.admin-member-tabs a.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-member-tabs a:hover:not(.is-active) {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.admin-users-page .admin-users-panel {
  margin-top: 0;
}

.admin-users-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-users-search input[type="search"] {
  min-width: min(280px, 100%);
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
}

.admin-users-table-wrap {
  margin-top: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  overflow: auto;
  background: #fff;
}

.admin-users-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.admin-users-table th,
.admin-users-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  text-align: left;
  vertical-align: middle;
}

.admin-users-table th {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(248, 250, 252, 0.95);
}

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

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-user-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.18), rgba(14, 165, 233, 0.12));
  color: #047857;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}

.admin-user-cell strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.admin-user-cell em {
  display: block;
  color: #475569;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

.admin-user-cell span {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 750;
}

.admin-user-role {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.admin-user-role.is-admin {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.admin-user-role.is-member {
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.admin-user-role-form {
  margin: 0;
}

.admin-user-role-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
  white-space: nowrap;
}

.admin-user-self-note {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.admin-users-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.admin-users-pagination a {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.admin-users-pagination a.is-active {
  color: #fff;
  border-color: #0b7a49;
  background: #0b7a49;
}

.admin-users-empty {
  margin-top: 14px;
}

body.theme-dark .admin-users-table-wrap,
body.theme-dark .admin-users-search input[type="search"],
body.theme-dark .admin-users-pagination a {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.2);
}

body.theme-dark .admin-users-table th {
  background: rgba(30, 41, 59, 0.72);
  color: #94a3b8;
}

body.theme-dark .admin-user-cell strong,
body.theme-dark .admin-users-table td {
  color: #e2e8f0;
}

@media (max-width: 900px) {
  .admin-users-search {
    width: 100%;
  }

  .admin-users-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
  }
}



/* Sidebar custom scrollbar */
.image-sidebar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.image-sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  margin-right: -2px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 122, 73, 0.42) transparent;
}

.image-sidebar-scroll::-webkit-scrollbar {
  width: 7px;
}

.image-sidebar-scroll::-webkit-scrollbar-track {
  margin: 6px 0;
  background: transparent;
  border-radius: 999px;
}

.image-sidebar-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(11, 122, 73, 0.55), rgba(11, 122, 73, 0.28));
  background-clip: padding-box;
}

.image-sidebar-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(11, 122, 73, 0.72), rgba(11, 122, 73, 0.42));
  background-clip: padding-box;
}

.image-sidebar-user {
  flex-shrink: 0;
}

.image-sidebar .image-sidebar-user {
  display: grid;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 4px 2px;
  border-top: 1px solid var(--sb-line, var(--image-line, #e7eee9));
}

.image-sidebar .image-sidebar-user-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.image-sidebar .image-sidebar-user .image-sidebar-user-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  transform: none;
}

.image-sidebar .image-sidebar-user .image-sidebar-user-avatar > span {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.image-sidebar .image-sidebar-user-meta {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
  align-content: center;
}

.image-sidebar .image-sidebar-user-name-row {
  display: flex !important;
  flex: 0 1 auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.image-sidebar .image-sidebar-user-name-row strong {
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-sidebar .image-sidebar-user-meta em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-sidebar .image-sidebar-plan-summary {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  max-width: none;
  padding: 3px 8px;
  line-height: 1.25;
  border-radius: 5px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.95);
  color: inherit;
  text-decoration: none;
  text-align: left;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease;
}

.image-sidebar-plan-summary:hover {
  border-color: rgba(11, 122, 73, 0.3);
  background: #fff;
}

.image-sidebar-plan-summary-tier {
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
  white-space: nowrap;
}

.image-sidebar-plan-summary-expires {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-sidebar-plan-summary--free .image-sidebar-plan-summary-tier {
  color: #475569;
}

.image-sidebar-plan-summary--starter .image-sidebar-plan-summary-tier {
  color: #1d4ed8;
}

.image-sidebar-plan-summary--pro .image-sidebar-plan-summary-tier {
  color: #047857;
}

.image-sidebar-plan-summary--enterprise .image-sidebar-plan-summary-tier {
  color: #b45309;
}

body.theme-dark .image-sidebar-plan-summary {
  background: rgba(22, 28, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .image-sidebar-plan-summary-tier {
  color: #eef3f0;
}

body.theme-dark .image-sidebar-plan-summary-expires {
  color: #9aa8a0;
}

.image-sidebar .image-sidebar-user-actions {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.image-sidebar .image-sidebar-user-actions .image-user-action {
  width: 100%;
  min-width: 0;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  color: #475569;
  box-shadow: 0 8px 18px -16px rgba(15, 23, 42, 0.45);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transform: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.image-sidebar .image-sidebar-user-actions .image-user-action::before,
.image-sidebar .image-sidebar-user-avatar::before,
.image-sidebar .image-sidebar-plan-summary::before,
.image-sidebar .image-sidebar-user-main a::before {
  content: none;
  display: none;
}

.image-sidebar-user a::before,
.image-sidebar-user-actions .image-user-action::before {
  content: none;
  display: none;
}

.image-sidebar .image-sidebar-user-main a.image-sidebar-user-avatar {
  border: 0;
  border-right: 0;
  border-bottom: 0;
  transform: none;
}

.image-sidebar .image-sidebar-user-avatar:hover {
  transform: translateY(-1px);
}

.image-sidebar .image-sidebar-user-actions .image-user-action .image-line-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  stroke-width: 2.4;
}

.image-sidebar .image-sidebar-user-actions .image-user-action:hover,
.image-sidebar .image-sidebar-user-actions .image-user-action.is-active {
  border-color: rgba(11, 122, 73, 0.24);
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.94));
  color: #047857;
  box-shadow: 0 12px 24px -18px rgba(11, 122, 73, 0.55);
  transform: translateY(-1px);
}

.image-sidebar .image-sidebar-user-actions .image-user-action-pricing {
  border-color: rgba(11, 122, 73, 0.28);
  color: #0b7a49;
  background:
    linear-gradient(145deg, rgba(236, 253, 245, 0.98), rgba(255, 255, 255, 0.94));
}

.image-sidebar .image-sidebar-user-actions .image-user-action-schedule {
  border-color: rgba(14, 116, 144, 0.22);
  color: #0e7490;
  background:
    linear-gradient(145deg, rgba(236, 254, 255, 0.98), rgba(255, 255, 255, 0.94));
}

.image-sidebar .image-sidebar-user-actions .image-user-action-logout {
  border-color: rgba(248, 113, 113, 0.18);
  color: #b91c1c;
  background:
    linear-gradient(145deg, rgba(254, 242, 242, 0.95), rgba(255, 255, 255, 0.94));
}

.image-sidebar .image-sidebar-user-actions .image-user-action-logout .image-line-icon {
  transform: rotate(180deg);
}

@media (min-width: 961px) {
  .is-sidebar-collapsed .image-sidebar .image-sidebar-user {
    display: flex;
    justify-content: center;
    padding: 10px 0 2px;
  }

  .is-sidebar-collapsed .image-sidebar .image-sidebar-user-main {
    justify-content: center;
  }

  .is-sidebar-collapsed .image-sidebar .image-sidebar-user .image-sidebar-user-avatar {
    display: grid;
  }

  .is-sidebar-collapsed .image-sidebar .image-sidebar-user .image-sidebar-user-avatar > span {
    display: grid;
  }

  .is-sidebar-collapsed .image-sidebar .image-sidebar-user-meta,
  .is-sidebar-collapsed .image-sidebar .image-sidebar-user-actions {
    display: none;
  }
}

body.theme-dark .image-sidebar .image-sidebar-user-actions .image-user-action {
  border-color: rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.84));
  color: #cbd5e1;
  box-shadow: none;
}

body.theme-dark .image-sidebar .image-sidebar-user-actions .image-user-action:hover,
body.theme-dark .image-sidebar .image-sidebar-user-actions .image-user-action.is-active {
  border-color: rgba(52, 211, 153, 0.28);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.5), rgba(15, 23, 42, 0.94));
  color: #86efac;
}

body.theme-dark .image-sidebar .image-sidebar-user-actions .image-user-action-logout {
  border-color: rgba(248, 113, 113, 0.22);
  color: #fca5a5;
}

body.theme-dark .image-sidebar .image-sidebar-user-actions .image-user-action-schedule {
  border-color: rgba(103, 232, 249, 0.24);
  color: #67e8f9;
}

body.theme-dark .image-sidebar-scroll {
  scrollbar-color: rgba(52, 211, 153, 0.45) transparent;
}

body.theme-dark .image-sidebar-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.55), rgba(16, 185, 129, 0.28));
  background-clip: padding-box;
}


/* Collect schedule — compact trendy panel */
.cs-panel {
  margin-top: 8px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(11, 122, 73, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(11, 122, 73, 0.08), transparent 55%),
    #fff;
  box-shadow: 0 18px 40px -32px rgba(15, 23, 42, 0.35);
}

.cs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f0;
}

.cs-summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}

.cs-summary strong {
  color: #0f172a;
  font-weight: 800;
}

.cs-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cs-plan-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(233, 247, 239, 0.95);
  border: 1px solid rgba(11, 122, 73, 0.16);
  color: #0b7a49;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.cs-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

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

.cs-switch-track {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #e2e8f0;
  position: relative;
  transition: background 180ms ease;
}

.cs-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
  transition: transform 180ms ease;
}

.cs-switch input:checked + .cs-switch-track {
  background: linear-gradient(145deg, #12a066, #0b7a49);
}

.cs-switch input:checked + .cs-switch-track::after {
  transform: translateX(18px);
}

.cs-switch-label {
  font-size: 11px;
  font-weight: 900;
  color: #64748b;
  min-width: 24px;
}

.cs-switch input:checked ~ .cs-switch-label {
  color: #0b7a49;
}

.cs-last-run {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e8edf0;
  font-size: 12px;
  color: #64748b;
}

.cs-last-run em {
  font-style: normal;
  font-weight: 700;
  color: #334155;
}

.cs-last-run a {
  margin-left: auto;
  color: #0b7a49;
  font-weight: 800;
  text-decoration: none;
}

.cs-plan-lock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  align-items: center;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(11, 122, 73, 0.16);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(233, 247, 239, 0.94), #ffffff);
}

.cs-plan-lock strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.cs-plan-lock span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.cs-plan-lock a {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  background: #0b7a49;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.cs-form {
  display: grid;
  gap: 12px;
}

.cs-block {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafb;
  border: 1px solid #edf2f0;
}

.cs-block-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: -0.02em;
}

.cs-field {
  display: grid;
  gap: 6px;
}

.cs-field > span {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
}

.cs-field > span small {
  font-weight: 700;
  color: #94a3b8;
}

.cs-field textarea,
.cs-field input,
.cs-field select {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.cs-field textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.45;
}

.cs-field textarea:focus,
.cs-field input:focus,
.cs-field select:focus {
  outline: none;
  border-color: rgba(11, 122, 73, 0.45);
  box-shadow: 0 0 0 3px rgba(11, 122, 73, 0.12);
}

.cs-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cs-pill {
  cursor: pointer;
}

.cs-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cs-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  transition: all 160ms ease;
}

.cs-pill input:checked + span {
  border-color: rgba(11, 122, 73, 0.35);
  background: rgba(233, 247, 239, 0.95);
  color: #0b7a49;
  box-shadow: 0 6px 16px -12px rgba(11, 122, 73, 0.65);
}

.cs-timing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cs-timing-grid [hidden] {
  display: none !important;
}

.cs-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.cs-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.cs-save {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, #12a066 0%, #0b7a49 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(11, 122, 73, 0.75);
}

.cs-save:hover {
  filter: brightness(1.04);
}

.cs-save--link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

@media (max-width: 640px) {
  .cs-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .cs-toolbar-actions {
    justify-content: space-between;
  }

  .cs-timing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cs-plan-lock {
    grid-template-columns: 1fr;
  }

  .cs-plan-lock a {
    grid-row: auto;
    grid-column: auto;
    justify-content: center;
  }
}

body.theme-dark .cs-panel {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98));
  border-color: rgba(148, 163, 184, 0.2);
}

body.theme-dark .cs-summary strong,
body.theme-dark .cs-field textarea,
body.theme-dark .cs-field input,
body.theme-dark .cs-field select,
body.theme-dark .cs-pill span,
body.theme-dark .cs-ghost {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.24);
}

body.theme-dark .cs-block {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.16);
}

body.theme-dark .cs-plan-lock {
  background: rgba(15, 23, 42, 0.68);
  border-color: rgba(52, 211, 153, 0.22);
}

body.theme-dark .cs-plan-lock strong {
  color: #e2e8f0;
}


.collect-schedule-panel {
  margin-top: 0;
}

.collect-schedule-keywords {
  display: grid;
  gap: 8px;
}

.collect-schedule-keywords textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  border: 1px solid var(--image-line, #e7eee9);
  border-radius: 12px;
  font: inherit;
  resize: vertical;
}

.collect-schedule-meta {
  margin: 0 0 16px;
  color: var(--image-muted, #7a857f);
  font-size: 14px;
}

.collect-schedule-meta a {
  color: var(--image-accent, #0b7a49);
}

.collect-schedule-cron-hint {
  margin: 0;
  font-size: 13px;
  color: var(--image-muted, #7a857f);
}

.collect-schedule-cron-hint code {
  font-size: 12px;
}

.image-schedule-task {
  gap: 12px;
}

.image-schedule-task .ghost-button.is-small {
  margin-left: auto;
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 12px;
}


.collect-quota-note {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.collect-quota-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--image-soft, #e9f7ef);
  border: 1px solid var(--image-line, #e7eee9);
  font-size: 13px;
}

.collect-quota-note.is-warning {
  background: #fff8eb;
  border-color: #f2dfb8;
}

.collect-quota-note .ghost-button.is-small {
  margin-left: auto;
}

.admin-user-metric-link {
  color: inherit;
  text-decoration: none;
}

.admin-user-metric-link b {
  color: #0b7a49;
  border-bottom: 1px dashed rgba(11, 122, 73, 0.45);
}

.admin-user-metric-link:hover b {
  color: #086341;
}

.admin-view-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(11, 122, 73, 0.2);
  background: rgba(233, 247, 239, 0.92);
  font-size: 13px;
}

.admin-view-banner strong {
  color: #0b7a49;
  font-weight: 900;
}

.admin-view-banner span {
  color: #475569;
  flex: 1;
  min-width: 160px;
}

.admin-user-collections-page .result-job-list {
  margin-top: 0;
}

.admin-user-rank-section {
  margin-top: 18px;
}

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

.admin-rank-watcher-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,252,250,0.94)),
    radial-gradient(circle at 92% 10%, rgba(11,122,73,0.07), transparent 34%);
  box-shadow: 0 18px 40px -36px rgba(15, 23, 42, 0.7);
}

.admin-rank-watcher-head,
.admin-rank-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-rank-watcher-head {
  justify-content: space-between;
}

.admin-rank-watcher-card h3 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 900;
  word-break: keep-all;
}

.admin-rank-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-rank-status.is-visible {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.admin-rank-status.is-warning {
  color: #b45309;
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(245, 158, 11, 0.24);
}

.admin-rank-status.is-missing {
  color: #be123c;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.admin-rank-author,
.admin-rank-message {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 750;
}

.admin-rank-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.admin-rank-meta div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 12px;
  background: rgba(255,255,255,0.74);
}

.admin-rank-meta dt {
  margin: 0 0 4px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
}

.admin-rank-meta dd {
  margin: 0;
  overflow: hidden;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-rank-meta dd.is-strong {
  color: #0b7a49;
  font-size: 13px;
  font-weight: 950;
}

.admin-rank-actions {
  justify-content: flex-end;
  border-top: 1px solid rgba(226, 232, 240, 0.78);
  padding-top: 10px;
}

.admin-rank-actions span {
  margin-right: auto;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 850;
}

.admin-rank-watchers-empty {
  margin-top: 0;
}

body.theme-dark .admin-rank-watcher-card,
body.theme-dark .admin-rank-meta div {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.2);
}

body.theme-dark .admin-rank-watcher-card h3,
body.theme-dark .admin-rank-meta dd {
  color: #e2e8f0;
}

@media (max-width: 980px) {
  .admin-rank-watcher-grid {
    grid-template-columns: 1fr;
  }
}

/* Saved rank-check board redesign */
.rank-check-saved-board {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.8vw, 34px) !important;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 8%, rgba(58, 181, 126, 0.11), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 250, 0.97));
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.rank-check-saved-board > .member-panel-head {
  position: relative;
  z-index: 1;
  align-items: flex-start;
  margin-bottom: 18px;
}

.rank-check-saved-board > .member-panel-head .panel-kicker {
  margin-bottom: 5px;
  color: #0b8a58;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.rank-check-saved-board > .member-panel-head h3 {
  margin: 0;
  color: #111827;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 950;
  letter-spacing: -0.01em;
}

.rank-check-saved-board > .member-panel-head > strong {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
  box-shadow: none;
}

.rank-check-saved-board > .member-panel-head > strong::before {
  content: "총";
  color: #64748b;
  font-size: 12px;
}

.rank-check-saved-board > .member-panel-head > strong {
  color: #087c4b;
  font-size: 29px;
  line-height: 1;
}

.rank-check-saved-board > .member-panel-head > strong span {
  color: #334155;
  font-size: 14px;
  font-weight: 900;
}

.rank-check-saved-board .rank-watcher-filter-row {
  position: relative;
  z-index: 1;
  gap: 10px;
  margin-bottom: 18px;
}

.rank-check-saved-board .rank-watcher-filter {
  min-width: 92px;
  min-height: 38px;
  padding: 0 18px;
  border-color: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rank-check-saved-board .rank-watcher-filter:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.rank-check-saved-board .rank-watcher-filter.is-active {
  border-color: rgba(4, 120, 87, 0.3);
  background: linear-gradient(135deg, #0fa463, #087947);
  color: #fff;
  box-shadow: 0 16px 32px rgba(11, 122, 73, 0.22);
}

.rank-check-saved-board .rank-watcher-health-row {
  position: relative;
  z-index: 1;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 2px solid #19a76f;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.rank-check-saved-board .rank-watcher-health-row::before {
  content: "";
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent),
    #32a86f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 8px 18px rgba(50, 168, 111, 0.28);
}

.rank-check-saved-board .rank-watcher-health-row::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 29px;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.rank-check-saved-board .rank-watcher-health-row span {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.rank-check-saved-board .rank-watcher-health-row b {
  color: #087947;
  font-size: 18px;
  font-weight: 950;
}

.rank-check-saved-board .rank-watcher-health-row em {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  order: 3;
}

.rank-watcher-refresh-button {
  order: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.rank-watcher-refresh-button::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 12a9 9 0 1 1-2.64-6.36'/%3E%3Cpath d='M21 3v6h-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 12a9 9 0 1 1-2.64-6.36'/%3E%3Cpath d='M21 3v6h-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rank-check-saved-board .watcher-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rank-check-saved-board .watcher-item--compact {
  position: relative;
  min-height: 248px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rank-check-saved-board .watcher-item--compact:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 122, 73, 0.18);
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.rank-check-saved-board .watcher-item-body {
  display: flex;
  min-height: 178px;
  flex-direction: column;
}

.rank-check-saved-board .watcher-item-head {
  position: relative;
  gap: 9px;
  padding-right: 30px;
}

.rank-check-saved-board .watcher-keyword {
  display: none;
}

.rank-check-saved-board .watcher-service-badge {
  justify-self: start;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
  letter-spacing: 0;
}

.rank-check-saved-board .watcher-service-badge--blog {
  background: #dff5e7;
  color: #087947;
}

.rank-check-saved-board .watcher-service-badge--cafe {
  background: #fff4d8;
  color: #a05a00;
}

.rank-check-saved-board .watcher-service-badge--kin {
  background: #e6efff;
  color: #2854b8;
}

.watcher-card-menu {
  position: absolute;
  top: 0;
  right: 0;
  color: #26364a;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 1px;
  line-height: 1;
}

.rank-check-saved-board .watcher-title {
  min-height: 48px;
  margin-top: 2px;
  color: #111827;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.55;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.rank-check-saved-board .watcher-title a {
  display: -webkit-box;
  overflow: hidden;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-check-saved-board .rank-position-strip--compact {
  margin-top: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rank-check-saved-board .rank-position-strip--compact .rank-position-strip__row {
  display: grid;
  gap: 10px;
}

.rank-check-saved-board .rank-position-strip--compact .rank-position-strip__section {
  display: block;
  padding: 0;
  border: 0;
}

.rank-check-saved-board .rank-position-strip--compact .rank-position-strip__section .rank-position-strip__eyebrow {
  display: none;
}

.rank-check-saved-board .rank-position-strip--compact .rank-position-strip__section-name {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #66758a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-check-saved-board .rank-position-strip--compact .rank-position-strip__exposure {
  display: block;
  width: 100%;
}

.rank-check-saved-board .rank-position-strip--compact .rank-position-strip__eyebrow {
  margin-bottom: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.rank-check-saved-board .rank-position-strip--compact .rank-position-ranks {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 14px;
}

.rank-check-saved-board .rank-position-strip--compact .rank-position-hero {
  min-height: 62px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rank-check-saved-board .rank-position-strip--compact .rank-position-hero:not(.rank-position-hero--overall) {
  justify-content: flex-start;
  padding: 0;
}

.rank-check-saved-board .rank-position-strip--compact .rank-position-hero--overall {
  justify-content: center;
  border-left: 1px solid rgba(15, 23, 42, 0.09);
}

.rank-check-saved-board .rank-position-hero__service {
  display: inline-flex;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  box-shadow: none;
}

.rank-check-saved-board .rank-position-hero__rank {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 86px;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(237, 248, 240, 0.92), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 22px rgba(11, 122, 73, 0.08);
}

.rank-check-saved-board .rank-position-hero:not(.rank-position-hero--overall) .rank-position-hero__num {
  color: #087947;
  font-size: 38px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.rank-check-saved-board .rank-position-hero:not(.rank-position-hero--overall).is-top3 .rank-position-hero__rank {
  background: linear-gradient(135deg, rgba(255, 248, 219, 0.9), rgba(255, 255, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 22px rgba(245, 158, 11, 0.11);
}

.rank-check-saved-board .rank-position-hero:not(.rank-position-hero--overall).is-top3 .rank-position-hero__num {
  color: #b77900;
}

.rank-check-saved-board .rank-position-hero--overall .rank-position-hero__rank {
  min-width: 78px;
  min-height: 48px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.rank-check-saved-board .rank-position-hero--overall .rank-position-hero__scope {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.rank-check-saved-board .rank-position-hero--overall .rank-position-hero__num {
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.rank-check-saved-board .rank-position-hero__unit {
  margin-left: 3px;
  color: #111827;
  font-size: 11px;
  font-weight: 950;
}

.rank-check-saved-board .watcher-author,
.rank-check-saved-board .watcher-footnote,
.rank-check-saved-board .watcher-fallback-note {
  display: none;
}

.rank-check-saved-board .watcher-checked-at {
  margin-top: auto;
  padding-top: 18px;
  padding-right: 128px;
  color: #7a8796;
  font-size: 11px;
  font-weight: 850;
}

.rank-check-saved-board .watcher-checked-at__label {
  margin-right: 7px;
}

.rank-check-saved-board .watcher-checked-at time {
  color: #64748b;
  font-weight: 950;
}

.rank-check-saved-board .watcher-actions {
  position: absolute;
  right: 20px;
  bottom: 16px;
  width: auto;
  margin: 0;
}

.rank-check-saved-board .watcher-actions-row {
  justify-content: flex-end;
}

.rank-check-saved-board .watcher-actions-row__buttons {
  gap: 8px;
}

.rank-check-saved-board .watcher-schedule-note {
  display: none;
}

.rank-check-saved-board .watcher-action-button,
.rank-check-saved-board .watcher-delete-button,
.rank-check-saved-board .watcher-open-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #172033;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.rank-check-saved-board .watcher-action-button:hover,
.rank-check-saved-board .watcher-delete-button:hover,
.rank-check-saved-board .watcher-open-button:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 122, 73, 0.2);
  color: #087947;
}

.rank-check-saved-board .watcher-delete-button:hover {
  border-color: rgba(220, 38, 38, 0.18);
  color: #b91c1c;
}

.rank-check-saved-board .watcher-action-button span,
.rank-check-saved-board .watcher-delete-button span,
.rank-check-saved-board .watcher-open-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rank-check-saved-board .watcher-action-button::before,
.rank-check-saved-board .watcher-delete-button::before,
.rank-check-saved-board .watcher-open-button::before {
  content: "";
  width: 15px;
  height: 15px;
  background: currentColor;
}

.rank-check-saved-board .watcher-delete-button::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5'/%3E%3Cpath d='M14 11v5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5'/%3E%3Cpath d='M14 11v5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rank-check-saved-board .watcher-open-button::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rank-check-saved-board .watcher-action-button::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 12a9 9 0 1 1-2.64-6.36'/%3E%3Cpath d='M21 3v6h-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 12a9 9 0 1 1-2.64-6.36'/%3E%3Cpath d='M21 3v6h-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.theme-dark .rank-check-saved-board {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at 88% 8%, rgba(52, 211, 153, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.96));
}

body.theme-dark .rank-check-saved-board .watcher-item--compact,
body.theme-dark .rank-check-saved-board .rank-watcher-health-row,
body.theme-dark .rank-watcher-refresh-button {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.88);
}

body.theme-dark .rank-check-saved-board > .member-panel-head h3,
body.theme-dark .rank-check-saved-board .watcher-title,
body.theme-dark .rank-check-saved-board .rank-position-hero--overall .rank-position-hero__num,
body.theme-dark .rank-check-saved-board .rank-position-hero__unit {
  color: #f8fafc;
}

body.theme-dark .rank-check-saved-board .watcher-action-button,
body.theme-dark .rank-check-saved-board .watcher-delete-button,
body.theme-dark .rank-check-saved-board .watcher-open-button {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.42);
  color: #e2e8f0;
}

@media (max-width: 1320px) {
  .rank-check-saved-board .watcher-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .rank-check-saved-board {
    padding: 18px !important;
    border-radius: 18px;
  }

  .rank-check-saved-board > .member-panel-head {
    gap: 12px;
  }

  .rank-check-saved-board .rank-watcher-filter {
    min-width: 0;
    flex: 1 1 calc(50% - 8px);
  }

  .rank-check-saved-board .rank-watcher-health-row {
    padding-right: 12px;
  }

  .rank-watcher-refresh-button {
    width: 100%;
    margin-left: 0;
  }

  .rank-check-saved-board .watcher-list {
    grid-template-columns: 1fr;
  }

  .rank-check-saved-board .watcher-item--compact {
    min-height: 236px;
    padding: 18px;
  }

  .rank-check-saved-board .watcher-checked-at {
    padding-right: 116px;
  }

  .rank-check-saved-board .watcher-actions {
    right: 18px;
  }

  .rank-check-saved-board .rank-position-strip--compact .rank-position-ranks {
    grid-template-columns: 1fr 0.78fr;
  }
}


/* Naver Expert inspired dashboard refresh */
.image-dashboard-body {
  --image-bg: #f8fbff;
  --image-surface: #ffffff;
  --image-surface-soft: #f6f8ff;
  --image-ink: #111827;
  --image-muted: #6f7b91;
  --image-line: #e4e9f5;
  --image-accent: #6d5df7;
  --image-accent-2: #3f7cff;
  --image-success: #29c365;
  --image-orange: #ff872f;
  --image-shadow: 0 24px 60px -42px rgba(28, 45, 88, 0.34);
  --expert-card: rgba(255, 255, 255, 0.88);
  --expert-card-border: rgba(214, 222, 241, 0.9);
  min-height: 100dvh;
  background:
    radial-gradient(circle at 52% -12%, rgba(109, 93, 247, 0.1), transparent 34rem),
    radial-gradient(circle at 100% 12%, rgba(63, 124, 255, 0.08), transparent 32rem),
    linear-gradient(180deg, #fbfdff 0%, #f5f8ff 100%);
  color: var(--image-ink);
  font-family: "Noto Sans KR", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
}

.image-dashboard-shell {
  grid-template-columns: 276px minmax(0, 1fr);
  background: transparent;
}

.image-sidebar {
  padding: 24px 16px 20px;
  border-right: 1px solid rgba(215, 223, 239, 0.9);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px);
}

.image-sidebar-brand-row {
  margin-bottom: 18px;
}

.image-sidebar-brand {
  gap: 12px;
}

.image-sidebar-brand span {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #8a54ff 0%, #497cff 100%);
  color: #fff;
  font-size: 19px;
  box-shadow: 0 14px 30px -18px rgba(91, 87, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.image-sidebar-brand strong {
  color: #111827;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.image-sidebar-brand em {
  padding: 3px 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(133, 97, 255, 0.18), rgba(79, 124, 255, 0.14));
  color: #7156e8;
  font-size: 10px;
  font-weight: 950;
}

.image-sidebar-collapse,
.image-icon-button {
  border-color: rgba(210, 219, 238, 0.92);
  background: rgba(255, 255, 255, 0.72);
  color: #536179;
  box-shadow: 0 12px 28px -22px rgba(32, 47, 79, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.image-sidebar-nav {
  gap: 6px;
}

.image-sidebar-nav-label {
  margin: 10px 6px 8px;
  color: #8a96aa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.image-sidebar-nav a {
  min-height: 50px;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #4b5568;
  font-size: 14px;
  font-weight: 850;
}

.image-sidebar-nav a:hover {
  border-color: rgba(109, 93, 247, 0.15);
  background: rgba(246, 247, 255, 0.96);
  color: #5b4bea;
  transform: translateX(2px);
}

.image-sidebar-nav a.is-active {
  border-color: rgba(109, 93, 247, 0.18);
  background: linear-gradient(145deg, rgba(117, 93, 247, 0.13), rgba(63, 124, 255, 0.09));
  color: #5d4cf1;
  box-shadow: inset 4px 0 0 rgba(109, 93, 247, 0.95);
}

.image-nav-icon {
  width: 29px;
  height: 29px;
  flex-basis: 29px;
  border-radius: 9px;
  background: rgba(88, 104, 140, 0.08);
  color: currentColor;
}

.image-sidebar-nav a.is-active .image-nav-icon {
  background: linear-gradient(145deg, #7457ff, #407cff);
  color: #fff;
}

.image-collect-panel {
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(215, 223, 239, 0.94);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 255, 0.86));
  box-shadow: 0 20px 44px -38px rgba(28, 45, 88, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.image-collect-promo > span {
  background: linear-gradient(145deg, #7f5cff, #4582ff);
}

.image-keyword-editor textarea,
.image-collect-field textarea,
.image-searchbox input {
  letter-spacing: 0;
}

.image-inline-button,
.image-start-button,
.image-new-button {
  border-radius: 10px;
  background: linear-gradient(135deg, #8357ff 0%, #3f80ff 100%);
  color: #fff;
  box-shadow: 0 18px 32px -24px rgba(81, 94, 255, 0.86), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.image-inline-button {
  min-height: 42px;
}

.image-service-toggles {
  gap: 8px;
}

.image-service-toggles .toggle-pill span {
  height: 58px;
  border-radius: 12px;
  border-color: rgba(215, 223, 239, 0.9);
  background: rgba(255, 255, 255, 0.76);
  color: #536179;
  box-shadow: none;
}

.image-service-toggles .toggle-pill input:checked + span {
  border-color: transparent;
  background: linear-gradient(145deg, rgba(94, 123, 255, 0.16), rgba(129, 91, 255, 0.16));
  color: #5b4bea;
}

.image-sidebar .image-sidebar-user {
  margin-top: 18px;
  padding-top: 16px;
  border-top-color: rgba(215, 223, 239, 0.9);
}

.image-sidebar .image-sidebar-user-actions .image-user-action {
  border-color: rgba(215, 223, 239, 0.9);
  background: rgba(255, 255, 255, 0.74);
  color: #526077;
  box-shadow: 0 12px 24px -22px rgba(32, 47, 79, 0.45);
}

.image-sidebar .image-sidebar-user-actions .image-user-action:hover,
.image-sidebar .image-sidebar-user-actions .image-user-action.is-active {
  border-color: rgba(109, 93, 247, 0.22);
  background: linear-gradient(145deg, rgba(246, 247, 255, 0.98), rgba(255, 255, 255, 0.94));
  color: #5b4bea;
}

.image-dashboard-main {
  padding: 24px 28px 34px;
}

.image-home-topbar {
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.image-topbar {
  align-items: center;
}

.image-searchbox {
  width: min(548px, 100%);
  min-height: 50px;
  border: 1px solid rgba(210, 219, 238, 0.94);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px -34px rgba(32, 47, 79, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.image-searchbox span {
  border-color: #8a97b0;
}

.image-searchbox span::after {
  background: #8a97b0;
}

.image-searchbox input {
  color: #111827;
  font-size: 14px;
}

.image-searchbox kbd {
  min-width: 34px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(210, 219, 238, 0.92);
  border-radius: 8px;
  background: #f6f8ff;
  color: #8a97b0;
  font-size: 12px;
  font-weight: 900;
}

.image-topbar-actions {
  gap: 13px;
}

.image-icon-button {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.image-new-button {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 14px;
}

.image-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.image-dashboard-primary {
  min-width: 0;
}

.image-dashboard-aside {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 16px;
}

.image-hero-card.image-expert-hero {
  position: relative;
  min-height: 256px;
  margin-bottom: 16px;
  padding: 36px 44px;
  display: block;
  border: 1px solid rgba(218, 223, 255, 0.96);
  border-radius: 15px;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.76), transparent 16rem),
    linear-gradient(110deg, #ffffff 0%, #f2f0ff 54%, #dfe7ff 100%);
  box-shadow: 0 26px 68px -46px rgba(72, 85, 160, 0.54);
}

.image-hero-card.image-expert-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55), transparent 46%),
    radial-gradient(circle at 62% 34%, rgba(134, 111, 255, 0.18), transparent 20rem);
}

.image-hero-copy {
  position: relative;
  z-index: 3;
  max-width: min(560px, 74%);
}

.image-hero-kicker {
  color: #6b57f5;
  font-size: 13px;
  font-weight: 950;
}

.image-hero-card h1 {
  max-width: 720px;
  color: #111827;
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.image-hero-card h1 span {
  color: #4f66f2;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.image-expert-hero em {
  display: block;
  margin-top: 14px;
  color: #3f4b63;
  font-size: 16px;
  font-style: normal;
  font-weight: 650;
}

.image-hero-cta {
  min-height: 48px;
  margin-top: 28px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 11px;
  background: linear-gradient(135deg, #8357ff, #4082ff);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 20px 42px -28px rgba(78, 96, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.image-hero-cta .image-line-icon {
  transform: rotate(180deg);
}

.image-hero-art-expert {
  position: absolute;
  inset: 24px 24px 20px auto;
  z-index: 1;
  width: min(390px, 48%);
  height: auto;
  perspective: 800px;
}

.hero-cube {
  position: absolute;
  right: 58px;
  top: 48px;
  width: 150px;
  height: 120px;
  transform: rotateX(58deg) rotateZ(-28deg);
  transform-style: preserve-3d;
}

.hero-cube span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(101, 118, 255, 0.95), rgba(43, 103, 224, 0.64));
  box-shadow: 0 32px 54px -34px rgba(42, 69, 171, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hero-cube span:nth-child(2) {
  transform: translate3d(0, 0, -46px);
  background: linear-gradient(145deg, rgba(25, 46, 126, 0.72), rgba(63, 119, 255, 0.34));
}

.hero-cube span:nth-child(3) {
  inset: auto 12px 24px;
  height: 54px;
  transform: translate3d(0, -44px, 34px) rotateX(-90deg);
  background: linear-gradient(145deg, rgba(138, 83, 255, 0.84), rgba(62, 127, 255, 0.44));
}

.hero-cardlet {
  position: absolute;
  width: 190px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 44px -30px rgba(38, 52, 110, 0.58);
  backdrop-filter: blur(8px);
}

.hero-cardlet::before,
.hero-cardlet::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  height: 10px;
  border-radius: 999px;
  background: rgba(122, 137, 178, 0.2);
}

.hero-cardlet::before {
  top: 22px;
}

.hero-cardlet::after {
  top: 42px;
  right: 64px;
}

.hero-cardlet-a {
  right: 176px;
  top: 58px;
  transform: rotate(12deg);
}

.hero-cardlet-b {
  right: 32px;
  top: 24px;
  transform: rotate(8deg) scale(0.78);
}

.hero-orbit {
  position: absolute;
  right: 35px;
  top: 44px;
  width: 250px;
  height: 120px;
  border: 3px solid rgba(113, 88, 246, 0.26);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 999px;
  transform: rotate(-18deg);
  animation: expert-float 5.8s ease-in-out infinite;
}

.image-kpi-grid {
  gap: 14px;
  margin-bottom: 16px;
}

.image-kpi-card,
.image-performance-card,
.image-recent-card,
.image-schedule-card,
.image-system-card,
.image-tip-card,
.image-today-card,
.image-report-section {
  border: 1px solid var(--expert-card-border);
  border-radius: 14px;
  background: var(--expert-card);
  box-shadow: var(--image-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.image-kpi-card {
  min-height: 145px;
  padding: 22px;
}

.image-kpi-head span {
  color: #182033;
  font-size: 14px;
  font-weight: 850;
}

.image-kpi-head i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(82, 118, 255, 0.12);
  color: #4b72ff;
}

.image-kpi-card:nth-child(2) .image-kpi-head i {
  background: rgba(139, 76, 255, 0.13);
  color: #884fff;
}

.image-kpi-card:nth-child(3) .image-kpi-head i {
  background: rgba(63, 132, 255, 0.13);
  color: #437cff;
}

.image-kpi-card:nth-child(4) .image-kpi-head i {
  background: rgba(255, 135, 47, 0.12);
  color: var(--image-orange);
}

.image-kpi-card strong {
  color: #111827;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.image-kpi-card small {
  color: #64748b;
}

.image-kpi-card p {
  margin-top: 14px;
  color: #7c879b;
}

.image-kpi-card p b {
  color: var(--image-success);
}

.image-sparkline {
  right: 18px;
  bottom: 20px;
  width: 48%;
  height: 42px;
}

.image-sparkline polyline {
  stroke: #4c78ff;
  stroke-width: 3;
}

.image-kpi-card:nth-child(2) .image-sparkline polyline {
  stroke: #8754ff;
}

.image-kpi-card:nth-child(4) .image-sparkline polyline {
  stroke: var(--image-orange);
}

.image-home-main-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 16px;
  margin-bottom: 16px;
}

.image-performance-card,
.image-recent-card,
.image-schedule-card,
.image-system-card,
.image-tip-card,
.image-today-card {
  padding: 22px;
}

.image-card-head {
  margin-bottom: 18px;
}

.image-card-head h3 {
  color: #111827;
  font-size: 17px;
  font-weight: 950;
}

.image-card-head a,
.image-card-head span {
  color: #657088;
}

.image-range-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.image-range-tabs span {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: #8490a4;
  font-size: 12px;
  font-weight: 850;
}

.image-range-tabs span.is-active {
  background: rgba(112, 93, 247, 0.11);
  color: #6552f2;
}

.image-range-tabs button {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8490a4;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.image-range-tabs button.is-active {
  background: rgba(112, 93, 247, 0.11);
  color: #6552f2;
}

.image-performance-ring [data-performance-delta][data-delta-up="0"] {
  color: #d1435b;
}

.image-performance-ring [data-performance-delta][data-delta-up="1"] {
  color: #1f9d63;
}

.image-performance-rings {
  display: grid;
  grid-template-columns: repeat(4, minmax(104px, 1fr));
  gap: 14px;
}

.image-performance-ring {
  min-height: 188px;
  display: grid;
  place-items: center;
}

.image-ring-visual {
  width: 152px;
  height: 172px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--expert-card) 0 56%, transparent 57%),
    conic-gradient(var(--ring-color) var(--value), rgba(226, 232, 244, 0.95) 0);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.55);
}

.image-performance-ring.tone-blue {
  --ring-color: #5c7cff;
}

.image-performance-ring.tone-green {
  --ring-color: #7ed957;
}

.image-performance-ring.tone-purple {
  --ring-color: #8a57ff;
}

.image-performance-ring.tone-orange {
  --ring-color: #ff8b2f;
}

.image-ring-visual span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.image-ring-visual strong {
  color: #111827;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
}

.image-ring-visual small {
  margin-left: 2px;
  color: #64748b;
  font-size: 13px;
}

.image-ring-visual em {
  color: var(--image-success);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.image-recent-list {
  gap: 10px;
}

.image-recent-row {
  min-height: 68px;
  padding: 12px;
  border: 1px solid rgba(223, 229, 243, 0.84);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.92), rgba(255, 255, 255, 0.86));
}

.image-recent-row:hover {
  background: #fff;
  transform: translateY(-1px);
}

.image-recent-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.image-recent-row strong {
  color: #172033;
  font-size: 13px;
  font-weight: 950;
}

.image-recent-row b {
  color: #111827;
  font-size: 13px;
}

.image-recent-row > i {
  background: rgba(41, 195, 101, 0.11);
  color: #1bb557;
}

.image-dashboard-aside .image-schedule-card {
  min-height: 416px;
}

.image-calendar {
  gap: 9px;
}

.image-calendar b,
.image-calendar span {
  min-height: 32px;
  border-radius: 10px;
  background: transparent;
  color: #172033;
  font-size: 13px;
  font-weight: 850;
}

.image-calendar b {
  color: #7f8ba1;
  font-size: 12px;
}

.image-calendar span:empty {
  opacity: 0.34;
}

.image-calendar span.is-today {
  background: linear-gradient(135deg, #8b55ff, #4a7dff);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 14px 26px -18px rgba(105, 91, 246, 0.88);
}

.image-calendar span.is-scheduled {
  border: 1px solid rgba(11, 122, 73, 0.42);
  background: rgba(233, 247, 239, 0.92);
  color: #0b7a49;
}

.image-calendar span.is-today.is-scheduled {
  border-color: transparent;
  background: var(--image-accent, #0b7a49);
  color: #fff;
}

.image-schedule-note {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(223, 229, 243, 0.82);
  border-radius: 12px;
  background: rgba(247, 249, 255, 0.76);
}

.image-schedule-note strong {
  color: #6552f2;
}

.image-schedule-task {
  min-height: 62px;
  padding: 12px;
  border: 1px solid rgba(223, 229, 243, 0.82);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.image-today-list {
  display: grid;
  gap: 10px;
}

.image-today-list div,
.image-today-list a {
  min-height: 54px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid rgba(223, 229, 243, 0.82);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), background 160ms ease;
}

.image-today-list a:hover {
  background: #ffffff;
  transform: translateX(2px);
}

.image-today-list span,
.image-today-list em {
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.image-today-list .tone-blue span,
.image-today-list .tone-blue em {
  color: #4e77ff;
}

.image-today-list .tone-green span,
.image-today-list .tone-green em {
  color: #19b756;
}

.image-today-list .tone-orange span,
.image-today-list .tone-orange em {
  color: #ff872f;
}

.image-today-list strong {
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.image-today-more {
  min-height: 50px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(223, 229, 243, 0.92);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.image-dashboard-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 16px;
}

.image-system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(223, 229, 243, 0.84);
  border-radius: 13px;
  background: rgba(250, 252, 255, 0.76);
}

.image-system-grid div {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-right: 1px solid rgba(223, 229, 243, 0.84);
}

.image-system-grid div:last-child {
  border-right: 0;
}

.image-system-grid i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(41, 195, 101, 0.11);
  color: #1bb557;
}

.image-system-grid span {
  color: #536179;
  font-size: 12px;
  font-weight: 850;
}

.image-system-grid strong {
  color: #20ad52;
  font-size: 13px;
  font-weight: 950;
}

.image-system-grid em {
  grid-column: 2 / 4;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(223, 229, 243, 0.9);
}

.image-system-grid em::before {
  content: "";
  width: var(--value);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #7f55ff, #4d7fff);
}

.image-tip-card {
  min-height: 154px;
  display: flex;
  align-items: center;
  gap: 18px;
  background:
    radial-gradient(circle at 100% 100%, rgba(112, 89, 247, 0.14), transparent 15rem),
    var(--expert-card);
}

.image-tip-card > span {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(126, 94, 255, 0.16), rgba(63, 128, 255, 0.1));
  color: #7057ff;
}

.image-tip-card h3,
.image-tip-card p {
  margin: 0;
}

.image-tip-card h3 {
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.image-tip-card p {
  margin-top: 8px;
  color: #657088;
  font-size: 14px;
  line-height: 1.55;
}

@keyframes expert-float {
  0%,
  100% {
    transform: rotate(-18deg) translateY(0);
  }
  50% {
    transform: rotate(-18deg) translateY(-8px);
  }
}

body.theme-dark.image-dashboard-body {
  --image-bg: #081121;
  --image-surface: #101a2d;
  --image-surface-soft: #121d32;
  --image-ink: #f7f9ff;
  --image-muted: #9aa8c5;
  --image-line: rgba(94, 113, 154, 0.28);
  --image-accent: #8b5cf6;
  --image-accent-2: #4f8cff;
  --image-success: #51e36f;
  --expert-card: rgba(16, 27, 48, 0.88);
  --expert-card-border: rgba(87, 105, 145, 0.28);
  --image-shadow: 0 26px 64px -42px rgba(0, 0, 0, 0.72);
  background:
    radial-gradient(circle at 64% -10%, rgba(124, 78, 255, 0.22), transparent 32rem),
    radial-gradient(circle at 100% 10%, rgba(62, 126, 255, 0.16), transparent 32rem),
    linear-gradient(180deg, #07101f 0%, #091224 100%) !important;
  color: var(--image-ink);
}

body.theme-dark .image-sidebar {
  border-right-color: rgba(82, 98, 132, 0.28);
  background: rgba(7, 16, 31, 0.84) !important;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04) !important;
}

body.theme-dark .image-sidebar-brand strong,
body.theme-dark .image-card-head h3,
body.theme-dark .image-kpi-card strong,
body.theme-dark .image-kpi-head span,
body.theme-dark .image-hero-card h1,
body.theme-dark .image-ring-visual strong,
body.theme-dark .image-recent-row strong,
body.theme-dark .image-recent-row b,
body.theme-dark .image-today-list strong,
body.theme-dark .image-tip-card h3 {
  color: #f8fafc !important;
}

body.theme-dark .image-sidebar-nav a {
  color: #c9d4ea;
}

body.theme-dark .image-sidebar-nav a:hover,
body.theme-dark .image-sidebar-nav a.is-active {
  background: linear-gradient(145deg, rgba(125, 86, 255, 0.2), rgba(54, 116, 255, 0.11)) !important;
  color: #f8fafc;
}

body.theme-dark .image-searchbox,
body.theme-dark .image-icon-button,
body.theme-dark .image-sidebar-collapse,
body.theme-dark .image-collect-panel,
body.theme-dark .image-keyword-editor textarea,
body.theme-dark .image-collect-field textarea,
body.theme-dark .image-service-toggles .toggle-pill span {
  border-color: rgba(87, 105, 145, 0.32) !important;
  background: rgba(13, 24, 43, 0.78) !important;
  color: #dbe5f7 !important;
}

body.theme-dark .image-home-topbar {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.theme-dark .image-searchbox kbd {
  border-color: rgba(87, 105, 145, 0.32);
  background: rgba(7, 16, 31, 0.82);
  color: #91a0bd;
}

body.theme-dark .image-hero-card.image-expert-hero {
  border-color: rgba(52, 211, 153, 0.22) !important;
  background:
    radial-gradient(circle at 72% 12%, rgba(16, 185, 129, 0.24), transparent 18rem),
    radial-gradient(circle at 10% 92%, rgba(56, 189, 248, 0.1), transparent 34%),
    linear-gradient(118deg, #0f172a 0%, #132338 55%, #101827 100%) !important;
}

body.theme-dark .image-expert-hero em,
body.theme-dark .image-tip-card p,
body.theme-dark .image-card-head a,
body.theme-dark .image-card-head span,
body.theme-dark .image-ring-visual span,
body.theme-dark .image-kpi-card p,
body.theme-dark .image-kpi-card small,
body.theme-dark .image-recent-row em,
body.theme-dark .image-schedule-note span,
body.theme-dark .image-system-grid span {
  color: #9aa8c5 !important;
}

body.theme-dark .image-kpi-card,
body.theme-dark .image-performance-card,
body.theme-dark .image-recent-card,
body.theme-dark .image-schedule-card,
body.theme-dark .image-system-card,
body.theme-dark .image-tip-card,
body.theme-dark .image-today-card,
body.theme-dark .image-report-section {
  border-color: var(--expert-card-border) !important;
  background: var(--expert-card) !important;
  box-shadow: var(--image-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.theme-dark .image-recent-row,
body.theme-dark .image-schedule-task,
body.theme-dark .image-schedule-note,
body.theme-dark .image-today-list div,
body.theme-dark .image-today-list a,
body.theme-dark .image-today-more,
body.theme-dark .image-system-grid {
  border-color: rgba(87, 105, 145, 0.26) !important;
  background: rgba(9, 19, 37, 0.64) !important;
  color: #f8fafc !important;
}

body.theme-dark .image-calendar b,
body.theme-dark .image-calendar span {
  color: #dce6f8;
  background: transparent !important;
}

body.theme-dark .image-calendar span.is-today {
  background: linear-gradient(135deg, #8b55ff, #4a7dff) !important;
  color: #fff !important;
}

body.theme-dark .image-calendar span.is-scheduled {
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(16, 185, 129, 0.16) !important;
  color: #b7f7d8 !important;
}

body.theme-dark .image-calendar span.is-today.is-scheduled {
  background: var(--image-accent, #0b7a49) !important;
  color: #fff !important;
}

body.theme-dark .image-ring-visual {
  background:
    radial-gradient(circle at center, rgba(16, 27, 48, 0.98) 0 56%, transparent 57%),
    conic-gradient(var(--ring-color) var(--value), rgba(44, 57, 86, 0.96) 0);
  box-shadow: inset 0 0 0 8px rgba(14, 24, 44, 0.55);
}

body.theme-dark .image-system-grid div {
  border-right-color: rgba(87, 105, 145, 0.26);
}

body.theme-dark .image-sidebar .image-sidebar-user-actions .image-user-action {
  border-color: rgba(87, 105, 145, 0.26);
  background: rgba(13, 24, 43, 0.74);
  color: #dbe5f7;
}

body.theme-dark .image-sidebar .image-sidebar-user-actions .image-user-action:hover,
body.theme-dark .image-sidebar .image-sidebar-user-actions .image-user-action.is-active {
  background: rgba(118, 86, 255, 0.16);
  color: #f8fafc;
}

@media (max-width: 1480px) {
  .image-dashboard-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .image-performance-rings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1240px) {
  .image-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .image-dashboard-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) and (min-width: 961px) {
  .image-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .image-sidebar {
    position: fixed;
  }

  .image-home-main-grid,
  .image-dashboard-bottom-grid,
  .image-dashboard-aside {
    grid-template-columns: 1fr;
  }

  .image-hero-card.image-expert-hero {
    grid-template-columns: 1fr;
  }

  .image-hero-art-expert {
    display: none;
  }

  .image-hero-copy {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .image-dashboard-main {
    padding: 18px 14px 28px;
  }

  .image-home-topbar {
    align-items: stretch;
  }

  .image-searchbox {
    width: 100%;
  }

  .image-topbar-actions {
    display: grid;
    grid-template-columns: repeat(3, 46px) minmax(0, 1fr);
  }

  .image-new-button {
    padding: 0 12px;
  }

  .image-hero-card.image-expert-hero {
    min-height: 0;
    padding: 26px 22px;
  }

  .image-hero-copy {
    max-width: none;
  }

  .image-kpi-grid,
  .image-performance-rings,
  .image-system-grid {
    grid-template-columns: 1fr;
  }

  .image-system-grid div {
    border-right: 0;
    border-bottom: 1px solid rgba(223, 229, 243, 0.84);
  }

  .image-system-grid div:last-child {
    border-bottom: 0;
  }
}


/* Sidebar service selector cards */
.image-sidebar .image-collect-panel .image-service-toggles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.image-sidebar .image-collect-panel .image-service-toggles .toggle-pill {
  min-width: 0;
  display: block;
}

.image-sidebar .image-collect-panel .image-service-toggles .toggle-pill span {
  position: relative;
  isolation: isolate;
  height: 76px;
  min-width: 0;
  padding: 10px 6px 9px;
  display: grid;
  grid-template-rows: 34px auto;
  place-items: center;
  gap: 7px;
  overflow: hidden;
  border: 1px solid rgba(213, 222, 242, 0.92);
  border-radius: 16px;
  background:
    radial-gradient(circle at 70% 8%, rgba(255, 255, 255, 0.95), transparent 1.8rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 255, 0.9));
  color: #334155;
  box-shadow:
    0 15px 30px -25px rgba(38, 52, 110, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  transition:
    transform 170ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 170ms ease,
    background 170ms ease,
    box-shadow 170ms ease,
    color 170ms ease;
}

.image-sidebar .image-collect-panel .image-service-toggles .toggle-pill span::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.26);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.image-sidebar .image-collect-panel .image-service-toggles .toggle-pill span::after {
  content: "";
  position: absolute;
  inset: auto -12px -22px auto;
  z-index: -1;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: var(--svc-soft);
}

.image-sidebar .image-collect-panel .image-service-toggles .toggle-pill span i {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid !important;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--svc-main);
  color: #fff;
  opacity: 1;
  box-shadow:
    0 14px 24px -18px var(--svc-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.image-sidebar .image-collect-panel .image-service-toggles .toggle-pill span i::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
}

.image-sidebar .image-collect-panel .image-service-toggles .toggle-pill span i::after {
  content: none !important;
  display: none !important;
}

.image-sidebar .image-collect-panel .image-service-toggles .service-toggle-blog {
  --svc-main: linear-gradient(145deg, #4b7fff, #315fdc);
  --svc-solid: #416fff;
  --svc-soft: rgba(65, 111, 255, 0.16);
  --svc-shadow: rgba(65, 111, 255, 0.74);
}

.image-sidebar .image-collect-panel .image-service-toggles .service-toggle-cafe {
  --svc-main: linear-gradient(145deg, #ff9a35, #f36b16);
  --svc-solid: #f97316;
  --svc-soft: rgba(249, 115, 22, 0.18);
  --svc-shadow: rgba(249, 115, 22, 0.72);
}

.image-sidebar .image-collect-panel .image-service-toggles .service-toggle-kin {
  --svc-main: linear-gradient(145deg, #8a5cff, #6040de);
  --svc-solid: #7652f3;
  --svc-soft: rgba(118, 82, 243, 0.18);
  --svc-shadow: rgba(118, 82, 243, 0.74);
}

.image-sidebar .image-collect-panel .image-service-toggles .service-toggle-blog span i::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M6 3.5h9.2L20 8.3V19a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V5.5a2 2 0 0 1 2-2Zm8 1.7V9h3.8L14 5.2ZM7.5 12.2a1 1 0 0 0 0 2h9a1 1 0 1 0 0-2h-9Zm0 4a1 1 0 0 0 0 2h6.2a1 1 0 1 0 0-2H7.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M6 3.5h9.2L20 8.3V19a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V5.5a2 2 0 0 1 2-2Zm8 1.7V9h3.8L14 5.2ZM7.5 12.2a1 1 0 0 0 0 2h9a1 1 0 1 0 0-2h-9Zm0 4a1 1 0 0 0 0 2h6.2a1 1 0 1 0 0-2H7.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.image-sidebar .image-collect-panel .image-service-toggles .service-toggle-cafe span i::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M6 7h10.8v7.2A5.3 5.3 0 0 1 11.5 19.5h-.2A5.3 5.3 0 0 1 6 14.2V7Zm11 2h.8a3.2 3.2 0 0 1 0 6.4H17V13h.8a.8.8 0 0 0 0-1.6H17V9ZM4.8 20.5h13.4a1 1 0 1 1 0 2H4.8a1 1 0 1 1 0-2ZM8.8 2.4a1 1 0 0 1 1 1V5a1 1 0 1 1-2 0V3.4a1 1 0 0 1 1-1Zm4.8 0a1 1 0 0 1 1 1V5a1 1 0 1 1-2 0V3.4a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M6 7h10.8v7.2A5.3 5.3 0 0 1 11.5 19.5h-.2A5.3 5.3 0 0 1 6 14.2V7Zm11 2h.8a3.2 3.2 0 0 1 0 6.4H17V13h.8a.8.8 0 0 0 0-1.6H17V9ZM4.8 20.5h13.4a1 1 0 1 1 0 2H4.8a1 1 0 1 1 0-2ZM8.8 2.4a1 1 0 0 1 1 1V5a1 1 0 1 1-2 0V3.4a1 1 0 0 1 1-1Zm4.8 0a1 1 0 0 1 1 1V5a1 1 0 1 1-2 0V3.4a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.image-sidebar .image-collect-panel .image-service-toggles .service-toggle-kin span i::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 3.5a8.5 8.5 0 0 1 7.18 13.05l.86 3.03a1 1 0 0 1-1.23 1.22l-3.24-.92A8.5 8.5 0 1 1 12 3.5Zm-.25 11.3a1.15 1.15 0 1 0 0 2.3 1.15 1.15 0 0 0 0-2.3ZM12 7.1c-1.86 0-3.25 1.08-3.25 2.67a1 1 0 0 0 2 0c0-.37.48-.77 1.25-.77.84 0 1.25.45 1.25.96 0 .45-.17.68-1.08 1.22-1.06.64-1.55 1.25-1.55 2.23a1 1 0 1 0 2 0c0-.22.1-.36.58-.65 1-.6 2.05-1.32 2.05-2.8 0-1.73-1.37-2.86-3.25-2.86Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 3.5a8.5 8.5 0 0 1 7.18 13.05l.86 3.03a1 1 0 0 1-1.23 1.22l-3.24-.92A8.5 8.5 0 1 1 12 3.5Zm-.25 11.3a1.15 1.15 0 1 0 0 2.3 1.15 1.15 0 0 0 0-2.3ZM12 7.1c-1.86 0-3.25 1.08-3.25 2.67a1 1 0 0 0 2 0c0-.37.48-.77 1.25-.77.84 0 1.25.45 1.25.96 0 .45-.17.68-1.08 1.22-1.06.64-1.55 1.25-1.55 2.23a1 1 0 1 0 2 0c0-.22.1-.36.58-.65 1-.6 2.05-1.32 2.05-2.8 0-1.73-1.37-2.86-3.25-2.86Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.image-sidebar .image-collect-panel .image-service-toggles .toggle-pill:hover span {
  transform: translateY(-2px);
  border-color: rgba(108, 93, 247, 0.22);
  box-shadow:
    0 18px 34px -24px var(--svc-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.image-sidebar .image-collect-panel .image-service-toggles .toggle-pill input:checked + span {
  border-color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 72% 6%, rgba(255, 255, 255, 0.42), transparent 2rem),
    linear-gradient(145deg, var(--svc-solid), #2f49d9);
  color: #fff;
  box-shadow:
    0 20px 36px -24px var(--svc-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.image-sidebar .image-collect-panel .image-service-toggles .service-toggle-cafe input:checked + span {
  background:
    radial-gradient(circle at 72% 6%, rgba(255, 255, 255, 0.42), transparent 2rem),
    linear-gradient(145deg, #ff9b34, #f06c18);
}

.image-sidebar .image-collect-panel .image-service-toggles .service-toggle-kin input:checked + span {
  background:
    radial-gradient(circle at 72% 6%, rgba(255, 255, 255, 0.42), transparent 2rem),
    linear-gradient(145deg, #8b5cff, #5740d6);
}

.image-sidebar .image-collect-panel .image-service-toggles .toggle-pill input:checked + span::before {
  background: #fff;
  box-shadow: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8.1 13.7 4.7 10.3a1 1 0 0 1 1.4-1.4l2 2 5.8-5.8a1 1 0 1 1 1.4 1.4l-6.5 6.5a1 1 0 0 1-.7.7Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8.1 13.7 4.7 10.3a1 1 0 0 1 1.4-1.4l2 2 5.8-5.8a1 1 0 1 1 1.4 1.4l-6.5 6.5a1 1 0 0 1-.7.7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.image-sidebar .image-collect-panel .image-service-toggles .toggle-pill input:checked + span i {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

body.theme-dark .image-sidebar .image-collect-panel .image-service-toggles .toggle-pill span {
  border-color: rgba(87, 105, 145, 0.28) !important;
  background:
    radial-gradient(circle at 70% 8%, rgba(255, 255, 255, 0.08), transparent 1.8rem),
    linear-gradient(180deg, rgba(17, 29, 52, 0.96), rgba(10, 22, 42, 0.9)) !important;
  color: #dfe8fb !important;
  box-shadow:
    0 16px 32px -26px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-dark .image-sidebar .image-collect-panel .image-service-toggles .toggle-pill input:checked + span {
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
}

body.theme-dark .image-sidebar .image-collect-panel .image-service-toggles .service-toggle-blog input:checked + span {
  background: linear-gradient(145deg, #4b7fff, #315fdc) !important;
}

body.theme-dark .image-sidebar .image-collect-panel .image-service-toggles .service-toggle-cafe input:checked + span {
  background: linear-gradient(145deg, #ff9b34, #f06c18) !important;
}

body.theme-dark .image-sidebar .image-collect-panel .image-service-toggles .service-toggle-kin input:checked + span {
  background: linear-gradient(145deg, #8b5cff, #5740d6) !important;
}


/* Admin company management refinements */
.admin-users-table td:last-child {
  min-width: 154px;
}

.admin-user-date-stack {
  display: grid;
  gap: 4px;
  min-width: 118px;
}

.admin-user-date-stack strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.admin-user-date-stack span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.admin-user-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  justify-items: unset;
  white-space: nowrap;
}

.admin-user-actions .admin-user-role-form {
  display: inline-flex;
  margin: 0;
}

.admin-user-actions .admin-user-role-button {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
}

.admin-user-actions .admin-user-self-note {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.1);
}

body.theme-dark .admin-user-date-stack strong {
  color: #e2e8f0;
}

body.theme-dark .admin-user-date-stack span {
  background: rgba(129, 140, 248, 0.16);
  color: #c4b5fd;
}

/**
 * Dashboard design unification — main home (green SERP desk) across all app pages.
 */

.image-dashboard-body {
  --image-bg: #f8fbfa;
  --image-surface: #ffffff;
  --image-muted: #7b8790;
  --image-ink: #202631;
  --image-line: #e8eef0;
  --image-accent: #0b7a49;
  --image-accent-2: #12a66a;
  --image-soft: #ebf8f2;
  --image-cta: #0b7a49;
  --image-shadow: 0 22px 55px -42px rgba(38, 49, 61, 0.48);
  --image-shadow-strong: 0 28px 68px -44px rgba(11, 122, 73, 0.42);
  background:
    radial-gradient(circle at 82% 8%, rgba(11, 122, 73, 0.07), transparent 25rem),
    linear-gradient(180deg, #fcfdfd 0%, #f7faf9 100%) !important;
  color: var(--image-ink);
}

.image-dashboard-body::before {
  background:
    linear-gradient(rgba(32, 38, 49, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 38, 49, 0.028) 1px, transparent 1px) !important;
  background-size: 42px 42px !important;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%) !important;
}

.image-dashboard-body .image-sidebar {
  border-right-color: var(--image-line) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 253, 252, 0.94)) !important;
  box-shadow: 18px 0 50px -46px rgba(39, 49, 61, 0.38) !important;
}

.image-dashboard-body .image-sidebar-brand span {
  background: linear-gradient(145deg, #16b978, #087245) !important;
  box-shadow: 0 15px 28px -20px rgba(11, 122, 73, 0.75) !important;
}

.image-dashboard-body .image-sidebar-brand em {
  background: #dff2e9 !important;
  color: #137a4d !important;
}

.image-dashboard-body .image-sidebar-nav a.is-active {
  border-color: rgba(11, 122, 73, 0.16) !important;
  background:
    linear-gradient(90deg, rgba(11, 122, 73, 0.1), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #0f8c55, #087244) !important;
  color: #fff !important;
  box-shadow: 0 18px 34px -25px rgba(11, 122, 73, 0.65) !important;
}

.image-dashboard-body .image-sidebar-nav a:hover {
  background: #f7fbf9 !important;
  color: #1f3b2d !important;
}

.image-dashboard-body .image-new-button,
.image-dashboard-body .image-start-button,
.image-dashboard-body .image-collect-panel .image-start-button,
.image-dashboard-body .primary-button,
.image-dashboard-body .auth-submit {
  border: 0 !important;
  background: linear-gradient(135deg, #12a66a, #087244) !important;
  color: #fff !important;
  box-shadow: 0 18px 38px -24px rgba(11, 122, 73, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.image-dashboard-body .image-inline-button,
.image-dashboard-body .ghost-button {
  border: 1px solid rgba(11, 122, 73, 0.2) !important;
  border-radius: 10px !important;
  background: rgba(235, 248, 242, 0.88) !important;
  color: var(--image-accent) !important;
}

.image-dashboard-body .image-topbar {
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: var(--image-shadow) !important;
}

.image-dashboard-body .image-icon-button {
  border-color: var(--image-line) !important;
  color: var(--image-accent) !important;
}

.image-dashboard-body .image-hero-card,
.image-dashboard-body .image-page-hero,
.image-dashboard-body .image-hero-card.image-expert-hero {
  min-height: 148px;
  padding: clamp(24px, 3vw, 36px) !important;
  border: 1px solid rgba(11, 122, 73, 0.14) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(18, 166, 106, 0.18), transparent 42%),
    linear-gradient(110deg, #ffffff 0%, #f3fbf7 52%, #e8f6ef 100%) !important;
  color: var(--image-ink) !important;
  box-shadow: var(--image-shadow) !important;
}

.image-dashboard-body .image-hero-card::before,
.image-dashboard-body .image-page-hero::before,
.image-dashboard-body .image-expert-hero::before {
  display: none !important;
}

.image-dashboard-body .image-hero-kicker,
.image-dashboard-body .image-page-hero p {
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--image-accent) !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  backdrop-filter: none;
}

.image-dashboard-body .image-hero-card h1,
.image-dashboard-body .image-page-hero h1 {
  color: var(--image-ink) !important;
  font-size: clamp(26px, 3vw, 34px) !important;
}

.image-dashboard-body .image-hero-card h1 span {
  color: var(--image-accent) !important;
}

.image-dashboard-body .image-hero-card span,
.image-dashboard-body .image-page-hero span,
.image-dashboard-body .image-expert-hero em {
  color: var(--image-muted) !important;
}

.image-dashboard-body .image-hero-cta {
  border: 1px solid rgba(7, 114, 68, 0.34) !important;
  background: linear-gradient(135deg, #1f2b24 0%, #0b7a49 58%, #12a66a 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 18px 38px -22px rgba(8, 114, 68, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.image-dashboard-body .image-hero-card .image-hero-cta span,
.image-dashboard-body .image-hero-card .image-hero-cta .image-line-icon {
  color: #ffffff !important;
  stroke: currentColor;
}

.image-dashboard-body .image-hero-card .image-hero-cta:hover {
  background: linear-gradient(135deg, #111b16 0%, #087244 56%, #0f8f57 100%) !important;
  transform: translateY(-1px);
}



/* Dashboard heroes — dark mode */
body.theme-dark.image-dashboard-body .image-hero-card,
body.theme-dark.image-dashboard-body .image-page-hero,
body.theme-dark.image-dashboard-body .image-hero-card.image-expert-hero {
  border: 1px solid rgba(52, 211, 153, 0.22) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 88% 10%, rgba(16, 185, 129, 0.22), transparent 42%),
    radial-gradient(circle at 6% 100%, rgba(56, 189, 248, 0.1), transparent 36%),
    linear-gradient(118deg, #0f172a 0%, #132338 52%, #101827 100%) !important;
  color: #e2e8f0 !important;
  box-shadow:
    0 24px 60px -36px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.theme-dark.image-dashboard-body .image-hero-kicker,
body.theme-dark.image-dashboard-body .image-page-hero p {
  color: #6ee7b7 !important;
}

body.theme-dark.image-dashboard-body .image-hero-card h1,
body.theme-dark.image-dashboard-body .image-page-hero h1 {
  color: #f8fafc !important;
}

body.theme-dark.image-dashboard-body .image-hero-card h1 span {
  color: #5eead4 !important;
}

body.theme-dark.image-dashboard-body .image-hero-card span,
body.theme-dark.image-dashboard-body .image-page-hero span,
body.theme-dark.image-dashboard-body .image-expert-hero em {
  color: #94a3b8 !important;
}

body.theme-dark.image-dashboard-body .image-hero-cta {
  background: linear-gradient(135deg, #10b981, #047857) !important;
  box-shadow: 0 16px 34px -18px rgba(16, 185, 129, 0.55) !important;
  color: #ffffff !important;
}

body.theme-dark.image-dashboard-body .image-page-hero--admin .admin-hero-tools,
body.theme-dark.image-dashboard-body .image-expert-hero .admin-hero-tools {
  border-color: rgba(52, 211, 153, 0.24) !important;
  background: rgba(15, 23, 42, 0.58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px -22px rgba(0, 0, 0, 0.55) !important;
}

body.theme-dark.image-dashboard-body .admin-hero-tool-btn {
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
  color: #7dd3fc !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 18px -12px rgba(0, 0, 0, 0.65) !important;
}

body.theme-dark.image-dashboard-body .admin-hero-tool-btn:hover {
  border-color: rgba(52, 211, 153, 0.42) !important;
  background: linear-gradient(180deg, rgba(20, 45, 38, 0.98) 0%, rgba(12, 32, 28, 0.98) 100%) !important;
  color: #6ee7b7 !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 10px 22px -12px rgba(16, 185, 129, 0.35) !important;
}

body.theme-dark.image-dashboard-body .admin-hero-tool-btn:focus-visible {
  box-shadow:
    0 0 0 2px rgba(15, 23, 42, 0.85),
    0 0 0 4px rgba(52, 211, 153, 0.55),
    0 8px 18px -12px rgba(16, 185, 129, 0.35) !important;
}

body.theme-dark.image-dashboard-body .image-hero-summary-compact {
  border-color: rgba(52, 211, 153, 0.22) !important;
  background: rgba(15, 23, 42, 0.52) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.theme-dark.image-dashboard-body .image-hero-summary-stats span {
  color: #cbd5e1 !important;
}

body.theme-dark.image-dashboard-body .image-hero-summary-stats b {
  color: #f8fafc !important;
}

body.theme-dark.image-dashboard-body .image-hero-summary-stats b em {
  color: #94a3b8 !important;
}

body.theme-dark.image-dashboard-body .image-page-hero--report .image-hero-donut span,
body.theme-dark.image-dashboard-body .image-page-hero--report .image-hero-donut em {
  color: #94a3b8 !important;
}

body.theme-dark.image-dashboard-body .image-page-hero--report .image-hero-donut strong {
  color: #f8fafc !important;
}


.image-dashboard-body .image-kpi-card,
.image-dashboard-body .image-summary-card,
.image-dashboard-body .image-recent-card,
.image-dashboard-body .image-schedule-card,
.image-dashboard-body .image-report-section,
.image-dashboard-body .image-sub-panel,
.image-dashboard-body .result-job-card,
.image-dashboard-body .member-panel,
.image-dashboard-body .member-panel-large,
.image-dashboard-body .rank-check-form,
.image-dashboard-body .rank-check-setup-panel,
.image-dashboard-body .cs-panel,
.image-dashboard-body .admin-control-card,
.image-dashboard-body .admin-settings-card,
.image-dashboard-body .notification-settings-panel,
.image-dashboard-body .trend-header-card,
.image-dashboard-body .results-panel,
.image-dashboard-body .service-panel,
.image-dashboard-body .member-empty,
.image-dashboard-body .image-empty-report {
  border: 1px solid var(--image-line) !important;
  border-radius: 18px !important;
  background: var(--image-surface) !important;
  box-shadow: var(--image-shadow) !important;
  backdrop-filter: none !important;
}

.image-dashboard-body .image-kpi-card::before {
  background: linear-gradient(90deg, #0b7a49, #12a66a, #6ee7b7) !important;
}

.image-dashboard-body .image-kpi-card p b,
.image-dashboard-body .image-section-heading p,
.image-dashboard-body .panel-kicker,
.image-dashboard-body .image-card-head a,
.image-dashboard-body .result-job-card.is-completed::before {
  color: var(--image-accent) !important;
}

.image-dashboard-body .image-kpi-head i,
.image-dashboard-body .image-recent-icon {
  background: var(--image-soft) !important;
  color: var(--image-accent) !important;
}

.image-dashboard-body .image-sparkline polyline {
  stroke: var(--image-accent) !important;
}

.image-dashboard-body .image-calendar span.is-today {
  background: var(--image-accent) !important;
}

.image-dashboard-body .image-calendar span.is-scheduled {
  border-color: color-mix(in srgb, var(--image-accent) 42%, transparent);
  background: var(--image-soft) !important;
  color: var(--image-accent) !important;
}

.image-dashboard-body .image-calendar span.is-today.is-scheduled {
  background: var(--image-accent) !important;
  color: #fff !important;
}

.image-dashboard-body .image-schedule-note {
  background: var(--image-soft) !important;
}

.image-dashboard-body .image-schedule-note strong {
  color: var(--image-accent) !important;
}

.image-dashboard-body .watcher-item,
.image-dashboard-body .memory-item {
  border: 1px solid var(--image-line);
  border-radius: 14px;
  background: #fff;
}

.image-dashboard-body .tab-button.active {
  border-color: rgba(11, 122, 73, 0.24);
  background: var(--image-soft);
  color: var(--image-accent);
}

.image-dashboard-body .success-alert {
  border-color: rgba(11, 122, 73, 0.22);
  background: var(--image-soft);
  color: #0f5132;
}

.image-dashboard-body.image-auth-page,
.auth-screen.image-dashboard-body {
  --auth-accent: #0b7a49;
  --auth-line: #e8eef0;
  background:
    radial-gradient(circle at 82% 8%, rgba(11, 122, 73, 0.07), transparent 25rem),
    linear-gradient(180deg, #fcfdfd 0%, #f7faf9 100%) !important;
}

.image-auth-page .auth-stage {
  width: min(100%, 1040px);
  grid-template-columns: minmax(260px, 1fr) minmax(340px, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

.image-auth-page .auth-brand-panel {
  border: 1px solid rgba(11, 122, 73, 0.14);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 32px);
  background:
    radial-gradient(circle at 88% 8%, rgba(18, 166, 106, 0.22), transparent 48%),
    linear-gradient(145deg, #087244, #0b7a49);
  color: #f4fbf7;
  box-shadow: var(--image-shadow);
}

.image-auth-page .auth-form-panel {
  border: 1px solid var(--image-line);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 28px);
  background: #fff;
  box-shadow: var(--image-shadow);
}

.image-auth-page .auth-mode-tabs a.is-active {
  background: var(--image-accent);
  color: #fff;
}

.image-auth-page .auth-kicker-line {
  color: var(--image-accent);
}

@media (max-width: 900px) {
  .image-auth-page .auth-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .image-dashboard-body .image-kpi-grid,
  .image-dashboard-body .image-sub-kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .image-dashboard-body .image-kpi-grid,
  .image-dashboard-body .image-sub-kpi {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .image-dashboard-home .image-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .image-dashboard-home .image-kpi-card {
    min-height: 140px;
    padding: 15px 12px;
  }

  .image-dashboard-home .image-kpi-head {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
  }

  .image-dashboard-home .image-kpi-head span {
    font-size: 11px;
    line-height: 1.35;
  }

  .image-dashboard-home .image-kpi-head i {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 10px;
  }

  .image-dashboard-home .image-kpi-card strong {
    font-size: clamp(21px, 6.2vw, 29px);
  }

  .image-dashboard-home .image-kpi-card small {
    font-size: 11px;
  }

  .image-dashboard-home .image-kpi-card p {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.45;
  }

  .image-dashboard-home .image-sparkline {
    width: 58%;
    height: 34px;
  }

  .image-dashboard-home .image-performance-rings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .image-dashboard-home .image-performance-ring {
    min-height: 150px;
  }

  .image-dashboard-home .image-ring-visual {
    width: min(132px, 100%);
    height: 148px;
    gap: 7px;
  }

  .image-dashboard-home .image-ring-visual span,
  .image-dashboard-home .image-ring-visual em {
    font-size: 11px;
  }

  .image-dashboard-home .image-ring-visual strong {
    font-size: 22px;
  }
}

.image-dashboard-body .keyword-intel-run-button,
.image-dashboard-body .keyword-intel-export-button,
.image-dashboard-body .admin-page-tabs a.is-active,
.image-dashboard-body .admin-page-tabs a:hover {
  border-color: rgba(11, 122, 73, 0.22) !important;
}

.image-dashboard-body .keyword-intel-run-button {
  background: linear-gradient(135deg, #12a66a, #087244) !important;
  color: #fff !important;
}

.image-dashboard-body .loading-orbit span,
.image-dashboard-body .loading-progress i {
  background: var(--image-accent) !important;
}

.image-dashboard-body .loading-progress i {
  background: linear-gradient(90deg, #087244, #12a66a, #6ee7b7) !important;
}

.image-dashboard-body .site-header {
  border-bottom-color: var(--image-line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}



/* Admin topbar + notifications layout */
.image-topbar-admin {
  justify-content: flex-end;
}

.image-topbar-admin .image-topbar-actions-end {
  margin-left: auto;
}

.admin-notifications-page .admin-notifications-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.admin-notifications-page .admin-notifications-smtp {
  grid-column: span 7;
}

.admin-notifications-page .admin-notifications-ops {
  grid-column: span 5;
}

.admin-notifications-page .admin-notifications-templates {
  grid-column: 1 / -1;
}

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

.admin-mail-template-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.7);
}

.admin-mail-template-card textarea {
  min-height: 120px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.admin-retention-settings {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-retention-settings__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.admin-retention-settings__head strong {
  color: var(--image-ink, #0f172a);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.admin-retention-settings__head span {
  color: var(--image-muted, #64748b);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.admin-retention-grid input[type='number'] {
  min-height: 42px;
  border-radius: 12px;
}

.admin-kakao-preview {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.74);
}

.admin-kakao-preview.is-valid {
  border-color: rgba(16, 185, 129, 0.24);
  background: rgba(240, 253, 244, 0.58);
}

.admin-kakao-preview.is-invalid {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(255, 251, 235, 0.62);
}

.admin-kakao-preview__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-kakao-preview__head strong,
.admin-kakao-preview__head span {
  display: block;
}

.admin-kakao-preview__head strong {
  color: var(--image-ink, #0f172a);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.admin-kakao-preview__head span {
  margin-top: 4px;
  color: var(--image-muted, #64748b);
  font-size: 0.8rem;
  font-weight: 800;
}

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

.admin-kakao-preview__actions .ghost-button,
.admin-kakao-preview__actions .kakao-share-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 900;
}

.admin-kakao-preview__body {
  width: 100%;
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.58;
  white-space: pre-wrap;
  word-break: keep-all;
}

.admin-kakao-preview__issues {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-kakao-preview__issues:empty {
  display: none;
}

.admin-kakao-preview__issues li {
  min-height: 28px;
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 10px;
  background: rgba(255, 251, 235, 0.82);
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-storage-cleanup-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.admin-storage-cleanup-form .ghost-button {
  justify-self: start;
}

.admin-smtp-test-form {
  margin-top: 16px;
}

@media (max-width: 1180px) {
  .admin-notifications-page .admin-notifications-smtp,
  .admin-notifications-page .admin-notifications-ops,
  .admin-notifications-page .admin-notifications-templates {
    grid-column: 1 / -1;
  }

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

@media (max-width: 720px) {
  .admin-retention-settings__head,
  .admin-kakao-preview__head {
    display: grid;
  }

  .admin-retention-grid,
  .admin-kakao-preview__actions {
    grid-template-columns: 1fr;
  }

  .admin-kakao-preview__actions {
    display: grid;
    justify-content: stretch;
  }

  .admin-kakao-preview__actions .ghost-button,
  .admin-kakao-preview__actions .kakao-share-button {
    width: 100%;
  }
}


/* Admin hero tools (no separate topbar) */
.admin-page .image-dashboard-main {
  padding-top: 22px;
}

.image-subpage-body .image-page-hero--admin,
.admin-page .image-page-hero--admin {
  min-height: 122px;
  padding: clamp(18px, 2.4vw, 26px);
}

.image-page-hero--admin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
}

.image-page-hero--admin .image-page-hero-copy {
  min-width: 0;
}

.image-page-hero--admin .image-page-hero-copy span {
  margin-top: 8px;
}

.admin-hero-tools {
  --admin-tool-size: 46px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 28px -22px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.admin-hero-tool-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--admin-tool-size);
  height: var(--admin-tool-size);
  aspect-ratio: 1;
  flex: 0 0 var(--admin-tool-size);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: #1e40af;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 16px -10px rgba(15, 23, 42, 0.45);
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.admin-hero-tool-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.5), transparent 55%);
  pointer-events: none;
}

.admin-hero-tool-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(191, 219, 254, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  color: #1d4ed8;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 10px 22px -8px rgba(37, 99, 235, 0.35);
}

.admin-hero-tool-btn:active {
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.12) inset,
    0 4px 10px -8px rgba(15, 23, 42, 0.3);
}

.admin-hero-tool-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(15, 23, 42, 0.35),
    0 0 0 4px rgba(147, 197, 253, 0.85),
    0 8px 18px -10px rgba(37, 99, 235, 0.35);
}

.admin-hero-tool-btn__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.admin-hero-tool-btn__icon .image-line-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.1;
}

.admin-hero-tool-btn b,
.admin-hero-tool-btn [data-notification-badge] {
  position: absolute;
  z-index: 2;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
  box-shadow: 0 4px 10px -4px rgba(220, 38, 38, 0.65);
}

.admin-hero-tool-btn [data-notification-badge][hidden] {
  display: none;
}

body.theme-dark .admin-hero-tools {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
}

body.theme-dark .admin-hero-tool-btn {
  border-color: rgba(255, 255, 255, 0.38);
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: #1e3a8a;
}

@media (max-width: 720px) {
  .image-page-hero--admin {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-hero-tools {
    justify-content: flex-end;
    width: 100%;
  }
}


.image-advertiser-panel {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--image-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}
.image-advertiser-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.image-advertiser-select-form {
  flex: 1;
  min-width: 0;
}
.image-advertiser-select-form select {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--image-line);
  padding: 8px 10px;
  font-weight: 700;
}
.image-advertiser-manage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--image-line);
  border-radius: 10px;
  background: #fff;
  color: var(--image-muted);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.image-advertiser-manage-btn:hover {
  border-color: var(--image-accent);
  color: var(--image-accent);
  background: rgba(99, 102, 241, 0.06);
}
.image-advertiser-manage-btn svg {
  width: 18px;
  height: 18px;
}

/* Advertiser compact list */
/* Advertiser grid list: PC 4 cols, mobile 2 cols */
.advertisers-page .advertiser-grid-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 960px) {
  .advertisers-page .advertiser-grid-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.advertiser-grid-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 100%;
  padding: 12px;
  border: 1px solid var(--image-line, rgba(148, 163, 184, 0.22));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.advertiser-grid-card.is-active {
  border-color: rgba(99, 102, 241, 0.38);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(255, 255, 255, 0.98));
}

.advertiser-grid-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.advertiser-grid-card__name {
  font-size: 0.9rem;
  font-weight: 950;
  color: var(--image-ink, #0f172a);
  line-height: 1.3;
}

.advertiser-grid-card__badge {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.14);
}

.advertiser-grid-card__company {
  margin: 6px 0 0;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--image-muted, #64748b);
}

.advertiser-grid-card__meta {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.advertiser-grid-card__meta li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 6px;
  font-size: 0.72rem;
}

.advertiser-grid-card__meta span {
  color: var(--image-muted, #94a3b8);
  font-weight: 800;
}

.advertiser-grid-card__meta em {
  font-style: normal;
  font-weight: 700;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advertiser-grid-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.advertiser-grid-card__form {
  margin: 0;
}

.advertiser-form-panel .advertiser-form-lead {
  margin: 6px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--image-muted, #64748b);
}

.advertiser-detail-form {
  display: grid;
  gap: 14px;
}

.advertiser-form-block {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.65);
}

.advertiser-form-block legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0;
  font-size: 0.84rem;
  font-weight: 950;
  color: var(--image-ink, #0f172a);
}

.advertiser-form-block legend span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 0.68rem;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.12);
}

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

.advertiser-form-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.advertiser-form-grid label > span {
  font-size: 0.74rem;
  font-weight: 900;
  color: #475569;
}

.advertiser-form-grid label.is-required > span::after {
  content: " *";
  color: #dc2626;
}

.advertiser-form-grid label em {
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  color: var(--image-muted, #94a3b8);
}

.advertiser-form-grid input,
.advertiser-form-grid textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  background: #fff;
}

.advertiser-form-grid textarea {
  min-height: 72px;
  resize: vertical;
}

.advertiser-form-span-2 {
  grid-column: span 2;
}

.advertiser-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.advertiser-form-required-note {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--image-muted, #64748b);
}

.advertiser-form-required-note span {
  color: #dc2626;
}

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

  .advertiser-form-span-2 {
    grid-column: span 1;
  }

  .advertiser-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .advertiser-form-actions .image-start-button {
    width: 100%;
  }
}

.advertiser-compact-list,
.image-advertiser-compact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.advertiser-list-item,
.image-advertiser-compact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--image-line, rgba(148, 163, 184, 0.22));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
}

.advertiser-list-item.is-active,
.image-advertiser-compact-item.is-active {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.06);
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.08);
}

.advertiser-list-item__main,
.image-advertiser-compact-select {
  flex: 1;
  min-width: 0;
}

.advertiser-list-item__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.advertiser-list-item__name,
.image-advertiser-compact-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--image-ink, #0f172a);
}

.image-advertiser-compact-name {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.image-advertiser-compact-name.is-current {
  cursor: default;
  color: var(--image-accent, #4f46e5);
}

.advertiser-list-item__badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.14);
}

.advertiser-list-item__meta {
  margin: 4px 0 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--image-muted, #64748b);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advertiser-list-item__actions,
.image-advertiser-compact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.advertiser-list-item__form {
  margin: 0;
}

.advertiser-action-btn,
.image-advertiser-compact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.image-advertiser-compact-btn {
  width: 30px;
  min-width: 30px;
  padding: 0;
}

.image-advertiser-compact-btn svg {
  width: 15px;
  height: 15px;
}

.advertiser-action-btn:hover,
.image-advertiser-compact-btn:hover,
.image-advertiser-compact-name:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.28);
  color: #4338ca;
}

.advertiser-action-btn--select {
  border-color: rgba(99, 102, 241, 0.22);
  color: #4338ca;
  background: rgba(99, 102, 241, 0.08);
}

.advertiser-action-btn.is-current {
  border-color: rgba(99, 102, 241, 0.35);
  color: #4338ca;
  background: rgba(99, 102, 241, 0.12);
  cursor: default;
}

.image-advertiser-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.image-advertiser-manage-link {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--image-accent, #4f46e5);
  text-decoration: none;
}

.image-advertiser-manage-link:hover {
  text-decoration: underline;
}

.image-advertiser-compact-list {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

.image-advertiser-panel {
  margin-bottom: 14px;
  padding: 10px;
}

@media (max-width: 720px) {
  .advertiser-list-item {
    flex-direction: column;
    align-items: stretch;
  }

  .advertiser-list-item__actions {
    justify-content: flex-start;
  }
}

.advertisers-page .admin-compact-list > div {
  padding: 12px;
  border: 1px solid var(--image-line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 8px;
}

.admin-agency-id,
.admin-user-agency-note {
  display: block;
  font-size: 11px;
  color: var(--image-muted);
  font-weight: 600;
}
.admin-agencies-table td em,
.admin-advertisers-table td em {
  display: block;
  font-size: 12px;
  color: var(--image-muted);
  font-style: normal;
}
.admin-agencies-table td span,
.admin-advertisers-table td span {
  display: block;
  font-size: 11px;
  color: var(--image-muted);
}
.admin-report-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.06);
  color: var(--image-muted);
}
.admin-report-badge.is-on {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}
.admin-advertiser-status {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.kakao-share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: #fee500;
  color: #191919;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.kakao-share-button:hover {
  filter: brightness(0.97);
}
.kakao-share-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.kakao-share-button__icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #191919;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 4C7.03 4 3 7.18 3 11.1c0 2.5 1.66 4.69 4.16 5.95l-.68 2.48c-.06.22.19.4.38.27l3.02-2.02c.68.1 1.39.16 2.12.16 4.97 0 9-3.18 9-7.1S16.97 4 12 4Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 4C7.03 4 3 7.18 3 11.1c0 2.5 1.66 4.69 4.16 5.95l-.68 2.48c-.06.22.19.4.38.27l3.02-2.02c.68.1 1.39.16 2.12.16 4.97 0 9-3.18 9-7.1S16.97 4 12 4Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
.advertiser-reports-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.advertiser-rank-snapshot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.advertiser-rank-snapshot-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 12px 14px;
  border: 1px solid var(--image-line);
  border-radius: 12px;
  background: #fff;
}
.advertiser-rank-snapshot-list li strong {
  font-size: 15px;
}
.advertiser-rank-snapshot-list li em {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--image-muted);
  font-style: normal;
}
.rank-snapshot-badge {
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}
.rank-snapshot-badge.is-visible {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}
.rank-snapshot-badge.is-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}
.rank-snapshot-badge.is-missing {
  background: rgba(148, 163, 184, 0.2);
  color: #64748b;
}
.kakao-message-preview {
  margin-top: 14px;
  border: 1px dashed var(--image-line);
  border-radius: 12px;
  padding: 10px 12px;
}
.kakao-message-preview summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.kakao-message-preview__body {
  margin: 10px 0 0;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.kakao-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.rank-copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--image-line);
  border-radius: 12px;
  background: #fff;
  color: var(--image-text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.rank-copy-button:hover {
  border-color: var(--image-accent);
  color: var(--image-accent);
}
.rank-copy-button svg {
  width: 16px;
  height: 16px;
}
.kakao-share-button.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.rank-share-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  z-index: 12000;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.rank-share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Rank check all overview */
.rank-check-all-page .rank-all-panel {
  padding: 12px 14px;
}

.rank-all-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.rank-all-toolbar__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rank-all-toolbar__label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.rank-all-toolbar__email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.rank-all-toolbar__email input[type="email"] {
  min-width: 200px;
  max-width: 280px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
}

.rank-all-kpi {
  margin-bottom: 12px;
}

.rank-all-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-all-group {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.rank-all-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.rank-all-group__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.rank-all-group__title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.rank-all-group__title span {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.rank-all-group__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.rank-all-group__empty {
  margin: 0;
  padding: 14px 12px;
  font-size: 13px;
  color: #64748b;
}

.rank-all-table-wrap {
  overflow-x: auto;
}

.rank-all-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.rank-all-table th,
.rank-all-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.rank-all-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #fafbfc;
}

.rank-all-table tbody tr:hover {
  background: #f8fafc;
}



.rank-all-row__section {
  min-width: 120px;
  max-width: 220px;
}

.rank-all-section-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.rank-all-section-badge .section-token,
.rank-all-section-badge .cafe-token {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-all-row__keyword strong {
  font-weight: 600;
  color: #0f172a;
}

.rank-all-row__title a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.rank-all-row__title em {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-style: normal;
  color: #94a3b8;
}

.rank-all-muted {
  color: #94a3b8;
}

.rank-all-empty {
  text-align: center;
  padding: 32px 16px;
}

.kakao-share-actions--compact .rank-copy-button,
.kakao-share-actions--compact .kakao-share-button {
  padding: 5px 10px;
  font-size: 12px;
  min-height: 30px;
}

.kakao-share-actions--compact .rank-copy-button span,
.kakao-share-actions--compact .kakao-share-button span {
  font-size: 12px;
}

.rank-all-email-form {
  display: inline;
}


/* Rank-check-all advertiser action bar: grouped, aligned controls */
.rank-all-action-bar {
  justify-content: flex-end;
  align-items: center;
  gap: 6px 8px;
  max-width: min(100%, 720px);
}

.rank-all-action-cluster {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.76);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.rank-all-action-cluster:empty {
  display: none;
}

.rank-all-action-cluster .kakao-share-actions {
  gap: 4px;
}

.rank-all-action-cluster .rank-action-inline-form,
.rank-all-action-cluster .rank-all-email-form {
  display: inline-flex;
  margin: 0;
}

.rank-all-action-cluster .rank-action-btn,
.rank-all-action-cluster .rank-copy-button,
.rank-all-action-cluster .kakao-share-button {
  margin: 0;
  box-shadow: none;
}

.rank-all-action-cluster--delivery {
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.82) 0%, rgba(236, 253, 245, 0.72) 100%);
  border-color: rgba(16, 185, 129, 0.22);
}

.rank-all-action-cluster--share {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.78) 0%, rgba(254, 249, 195, 0.60) 100%);
  border-color: rgba(234, 179, 8, 0.22);
}

.rank-all-action-cluster--manage {
  background: rgba(241, 245, 249, 0.70);
}

.rank-all-group__head {
  gap: 12px;
}

.rank-all-group__title {
  min-width: 160px;
}

@media (max-width: 980px) {
  .rank-all-group__head {
    align-items: flex-start;
  }

  .rank-all-action-bar {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .rank-all-action-bar,
  .rank-all-action-cluster {
    width: 100%;
  }

  .rank-all-action-cluster {
    justify-content: stretch;
  }

  .rank-all-action-cluster .rank-action-btn,
  .rank-all-action-cluster .rank-copy-button,
  .rank-all-action-cluster .kakao-share-button,
  .rank-all-action-cluster .rank-action-inline-form {
    flex: 1 1 0;
  }

  .rank-all-action-cluster .rank-action-btn,
  .rank-all-action-cluster .rank-copy-button,
  .rank-all-action-cluster .kakao-share-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .rank-all-toolbar__email {
    margin-left: 0;
    width: 100%;
  }

  .rank-all-table th:nth-child(3),
  .rank-all-table td:nth-child(3) {
    display: none;
  }
}


/* Memory saved feedback */
.memory-saved-modal {
  position: fixed;
  inset: 0;
  z-index: 12100;
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: none;
}

.memory-saved-modal.is-visible {
  pointer-events: auto;
}

.memory-saved-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.memory-saved-modal.is-visible .memory-saved-modal__backdrop {
  opacity: 1;
}

.memory-saved-modal__panel {
  position: relative;
  width: min(100%, 360px);
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.memory-saved-modal.is-visible .memory-saved-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.memory-saved-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
}

.memory-saved-modal__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.memory-saved-modal__summary {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  white-space: pre-line;
}

.memory-saved-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.memory-saved-modal__link {
  margin-right: auto;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.memory-saved-modal__ok {
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.memory-brief-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(8px);
  z-index: 12110;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.memory-brief-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[data-result-row].is-memory-pending {
  opacity: 0.72;
}

[data-result-row].is-memory-pending [data-memory-check] {
  cursor: wait;
}

body.is-memory-saved-modal-open {
  overflow: hidden;
}



/* Advertiser add form — compact */
.advertisers-page .advertiser-form-panel--compact {
  padding: 10px 12px !important;
  margin-top: 8px !important;
  border-radius: 12px !important;
}

.advertisers-page .advertiser-form-panel--compact .image-section-heading {
  display: none;
}

.advertiser-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--image-line, #e8eef0);
}

.advertiser-form-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 950;
  color: var(--image-ink, #0f172a);
}

.advertiser-form-head-note {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--image-muted, #64748b);
}

.advertiser-form-head-note .req {
  color: #dc2626;
}

.advertiser-detail-form--compact {
  display: grid;
  gap: 4px;
}

.advertiser-form-section-label {
  margin: 6px 0 2px;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--image-muted, #64748b);
}

.advertiser-form-section-label:first-of-type {
  margin-top: 0;
}

.advertiser-form-grid--dense {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 8px;
}

.advertiser-form-grid--dense label {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin: 0;
}

.advertiser-form-grid--dense label > span {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  line-height: 1.2;
}

.advertiser-form-grid--dense label.is-required > span::after {
  content: " *";
  color: #dc2626;
}

.advertiser-form-grid--dense input {
  width: 100%;
  min-height: 30px;
  height: 30px;
  padding: 4px 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #fff;
}

.advertiser-form-span-2 {
  grid-column: span 2;
}

.advertiser-form-span-3 {
  grid-column: span 3;
}

.advertiser-form-actions--compact {
  display: flex;
  justify-content: flex-end;
  margin: 6px 0 0;
  padding: 0;
}

.advertiser-form-actions--compact .image-start-button--compact {
  min-height: 32px;
  padding: 0 14px;
  font-size: 0.78rem;
}

.advertisers-page .image-report-section:not(.advertiser-form-panel--compact) {
  padding: 10px 12px !important;
  margin-bottom: 8px !important;
}

.advertisers-page .image-section-heading {
  margin-bottom: 6px !important;
  gap: 8px !important;
}

.advertisers-page .image-section-heading h2 {
  font-size: 1rem !important;
  margin: 0 !important;
}

.advertisers-page .image-section-heading p {
  font-size: 0.65rem !important;
  margin: 0 !important;
}

.advertisers-page .advertiser-grid-list {
  margin-top: 6px !important;
  gap: 8px !important;
}

@media (max-width: 960px) {
  .advertiser-form-grid--dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advertiser-form-span-3 {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .advertiser-form-grid--dense {
    grid-template-columns: 1fr;
  }

  .advertiser-form-span-2,
  .advertiser-form-span-3 {
    grid-column: span 1;
  }
}


/* ========== Rank action suite — premium compact ========== */
.rank-action-suite {
  --ras-h: 32px;
  --ras-radius: 9px;
  --ras-font: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.rank-action-suite--toolbar {
  gap: 8px 10px;
  margin-bottom: 14px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.04);
}

.rank-action-suite--dense {
  --ras-h: 30px;
  --ras-font: 11px;
  gap: 5px;
}

.rank-action-suite--inline {
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

.rank-action-suite__cluster {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.rank-action-suite__cluster--end {
  margin-left: auto;
}

.rank-action-suite__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  padding-right: 2px;
}

.rank-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: var(--ras-h);
  height: var(--ras-h);
  padding: 0 11px;
  border-radius: var(--ras-radius);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  color: #334155;
  font-size: var(--ras-font);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.rank-action-btn:hover {
  border-color: rgba(100, 116, 139, 0.45);
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.rank-action-btn:active {
  transform: translateY(1px);
}

.rank-action-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
}

.rank-action-btn--ghost {
  background: rgba(248, 250, 252, 0.9);
  color: #475569;
}

.rank-action-btn--excel {
  border-color: rgba(16, 185, 129, 0.28);
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
  color: #047857;
}

.rank-action-btn--excel:hover {
  border-color: rgba(5, 150, 105, 0.45);
  background: #dcfce7;
  color: #065f46;
}

.rank-action-btn--email,
.rank-action-btn--primary {
  border-color: rgba(15, 23, 42, 0.88);
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
}

.rank-action-btn--email:hover,
.rank-action-btn--primary:hover {
  border-color: #0f172a;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  color: #fff;
}

.rank-action-btn--email:disabled,
.rank-action-btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}


.rank-action-btn--live {
  border-color: rgba(11, 122, 73, 0.28);
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
  color: #0b7a49;
}

.rank-action-btn--live:hover {
  border-color: rgba(11, 122, 73, 0.45);
  background: #dcfce7;
  color: #065f46;
}

.rank-action-btn--live[aria-busy="true"] {
  opacity: 0.72;
  cursor: wait;
}

.rank-action-btn--copy {
  background: #fff;
}

.rank-action-btn--kakao {
  border-color: rgba(234, 179, 8, 0.45);
  background: linear-gradient(180deg, #fffce8 0%, #fef08a 100%);
  color: #3f3f46;
  box-shadow: 0 1px 2px rgba(234, 179, 8, 0.2);
}

.rank-action-btn--kakao:hover {
  filter: none;
  background: linear-gradient(180deg, #fef9c3 0%, #fde047 100%);
  color: #18181b;
}

.rank-action-btn--kakao .rank-action-btn__kakao-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #191919;
  flex-shrink: 0;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 4C7.03 4 3 7.18 3 11.1c0 2.5 1.66 4.69 4.16 5.95l-.68 2.48c-.06.22.19.4.38.27l3.02-2.02c.68.1 1.39.16 2.12.16 4.97 0 9-3.18 9-7.1S16.97 4 12 4Z'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 4C7.03 4 3 7.18 3 11.1c0 2.5 1.66 4.69 4.16 5.95l-.68 2.48c-.06.22.19.4.38.27l3.02-2.02c.68.1 1.39.16 2.12.16 4.97 0 9-3.18 9-7.1S16.97 4 12 4Z'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

.rank-action-btn.is-disabled,
.rank-action-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.rank-action-input {
  min-height: var(--ras-h);
  height: var(--ras-h);
  min-width: 168px;
  max-width: 240px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: var(--ras-radius);
  background: #fff;
  color: #0f172a;
  font-size: var(--ras-font);
  font-weight: 500;
}

.rank-action-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.rank-action-inline-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.rank-all-group__actions .kakao-share-actions,
.rank-action-suite .kakao-share-actions,
.rank-check-kakao-bar .kakao-share-actions,
.advertiser-reports-toolbar .kakao-share-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rank-action-suite .kakao-share-actions,
.rank-action-suite[data-kakao-share-actions] {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.rank-check-kakao-bar.rank-action-suite--toolbar {
  margin-bottom: 12px;
}

.advertiser-reports-toolbar.rank-action-suite--toolbar .rank-action-btn--ghost:first-child {
  margin-right: 2px;
}

.rank-all-group__actions.rank-action-suite--dense {
  justify-content: flex-end;
}

.rank-report-panel-compact {
  border-radius: 11px;
  border-color: rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.92) 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.rank-report-panel-compact .rank-report-panel__head {
  min-height: 42px;
  padding: 8px 11px;
}

.rank-report-panel-compact .rank-report-panel__head h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.rank-report-panel-compact .panel-kicker {
  font-size: 9px;
  letter-spacing: 0.1em;
}

.rank-report-summary-pill {
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.rank-report-panel__body {
  gap: 8px;
  padding: 0 10px 10px;
}

.rank-report-panel__quick .rank-report-panel__summary {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.rank-report-instant-form.rank-action-inline-form {
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.28);
}

.rank-report-instant-form label {
  display: contents;
}

.rank-report-instant-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.rank-report-instant-form input.rank-action-input,
.rank-report-instant-form input[type="email"] {
  min-height: var(--ras-h);
  height: var(--ras-h);
  padding: 0 10px;
  border-radius: var(--ras-radius);
  font-size: 12px;
}

.rank-report-schedule-form .ghost-button {
  min-height: 30px;
  height: 30px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9px;
}

.rank-report-schedule-grid input,
.rank-report-schedule-grid select {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 9px;
}

.rank-report-schedule-grid span {
  font-size: 11px;
}

.rank-report-toggle {
  font-size: 12px;
  font-weight: 600;
}

.rank-all-toolbar {
  display: none;
}

@media (max-width: 720px) {
  .rank-action-suite--toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .rank-action-suite__cluster--end {
    margin-left: 0;
    width: 100%;
  }

  .rank-action-input {
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .rank-action-inline-form {
    width: 100%;
  }
}

body.theme-dark .rank-action-suite--toolbar {
  border-color: rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

body.theme-dark .rank-action-btn {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.85);
  color: #e2e8f0;
}

body.theme-dark .rank-action-btn--excel {
  background: rgba(6, 78, 59, 0.35);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.25);
}

body.theme-dark .rank-action-input {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.25);
  color: #f1f5f9;
}

body.theme-dark .rank-report-panel-compact {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.16);
}


.rank-report-instant-form.rank-action-inline-form {
  display: inline-flex;
  grid-template-columns: none;
  width: 100%;
}

.rank-report-panel__actions {
  padding-top: 2px;
}

.rank-all-group__head {
  padding: 8px 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Rank check all — excel & table manage */
.rank-check-all-page .rank-action-btn--excel,
.rank-check-all-page a.rank-action-btn--excel {
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  gap: 5px;
}

.rank-action-btn__excel-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  position: relative;
}

.rank-action-btn__excel-icon::after {
  content: "";
  position: absolute;
  inset: 3px 2px 2px 3px;
  border-left: 1.5px solid rgba(255, 255, 255, 0.9);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.9);
  transform: translate(1px, 0) rotate(-45deg) scale(0.85);
}

.rank-action-btn--table {
  --ras-h: 26px;
  min-height: 26px;
  height: 26px;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 8px;
  flex-shrink: 0;
}

.rank-all-table .rank-all-th-meta,
.rank-all-table .rank-all-row__meta {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.rank-all-row__meta-inner {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.rank-all-row__date {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.rank-all-row__meta .rank-action-btn--table:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
  background: #eff6ff;
}

@media (max-width: 720px) {
  .rank-all-table th.rank-all-th-meta,
  .rank-all-table td.rank-all-row__meta {
    display: table-cell;
  }

  .rank-all-table th:nth-child(3),
  .rank-all-table td:nth-child(3) {
    display: none;
  }

  .rank-all-row__meta-inner {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
}

.advertiser-quota-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.95);
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.advertiser-quota-notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(255, 251, 235, 0.9);
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
}

.advertisers-page .image-section-heading {
  flex-wrap: wrap;
  gap: 8px;
}

/* Hero tools on light dashboard welcome hero */
.image-expert-hero.image-page-hero--admin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
}

.image-expert-hero.image-page-hero--admin .image-hero-copy {
  max-width: none;
  min-width: 0;
}

.image-expert-hero .admin-hero-tools {
  border-color: rgba(11, 122, 73, 0.18);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 28px -22px rgba(11, 122, 73, 0.28);
}

.image-subpage-body .image-page-hero--admin {
  min-height: 122px;
  padding: clamp(18px, 2.4vw, 26px);
}

.image-hero-art,
.image-hero-art-expert {
  display: none !important;
}



/* Collect quota upgrade modal */
.collect-quota-modal {
  position: fixed;
  inset: 0;
  z-index: 12200;
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: none;
}

.collect-quota-modal.is-visible {
  pointer-events: auto;
}

.collect-quota-modal[hidden] {
  display: none !important;
}

.collect-quota-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.collect-quota-modal.is-visible .collect-quota-modal__backdrop {
  opacity: 1;
}

.collect-quota-modal__panel {
  position: relative;
  width: min(100%, 380px);
  padding: 20px 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 0%, rgba(16, 185, 129, 0.16), transparent 42%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 24px 56px rgba(15, 23, 42, 0.2);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.collect-quota-modal.is-visible .collect-quota-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.collect-quota-modal__badge {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.collect-quota-modal__badge em {
  font-style: normal;
  color: #94a3b8;
  font-weight: 600;
}

.collect-quota-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #64748b;
}

.collect-quota-modal__title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.collect-quota-modal__message {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
}

.collect-quota-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.collect-quota-modal__close {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 12px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.collect-quota-modal__upgrade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 9px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #12a66a, #087244);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px -16px rgba(11, 122, 73, 0.85);
}

.collect-quota-modal__upgrade:hover {
  filter: brightness(1.03);
}

body.is-collect-quota-modal-open {
  overflow: hidden;
}

body.theme-dark .collect-quota-modal__panel {
  border-color: rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(circle at 88% 0%, rgba(16, 185, 129, 0.14), transparent 42%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
}

body.theme-dark .collect-quota-modal__title,
body.theme-dark .collect-quota-modal__badge {
  color: #f8fafc;
}

body.theme-dark .collect-quota-modal__message,
body.theme-dark .collect-quota-modal__eyebrow {
  color: #94a3b8;
}

body.theme-dark .collect-quota-modal__close {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
}


/* Pricing page showcase (hero unchanged) */
body.image-dashboard-body[data-pricing-page] .pricing-showcase {
  display: grid;
  gap: 18px;
  margin-top: 4px;
  min-width: 0;
  width: 100%;
}

body.image-dashboard-body[data-pricing-page] .pricing-status-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(11, 122, 73, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(18, 166, 106, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 253, 247, 0.94));
  box-shadow: 0 22px 50px -36px rgba(11, 122, 73, 0.45);
}

body.image-dashboard-body[data-pricing-page] .pricing-status-bar__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #0b7a49;
}

body.image-dashboard-body[data-pricing-page] .pricing-status-bar__copy h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0f172a;
}

body.image-dashboard-body[data-pricing-page] .pricing-status-bar__copy h2 em {
  font-style: normal;
  color: #64748b;
  font-size: 0.72em;
  font-weight: 700;
}

body.image-dashboard-body[data-pricing-page] .pricing-status-bar__meta {
  margin: 8px 0 0;
  font-size: 13px;
  color: #64748b;
}

body.image-dashboard-body[data-pricing-page] .pricing-status-bar__meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #64748b;
}

body.image-dashboard-body[data-pricing-page] .pricing-status-bar__meter-head strong {
  color: #0f172a;
  font-size: 14px;
}

body.image-dashboard-body[data-pricing-page] .pricing-status-bar__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

body.image-dashboard-body[data-pricing-page] .pricing-status-bar__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #12a66a, #34d399, #6ee7b7);
  box-shadow: 0 0 18px rgba(18, 166, 106, 0.45);
}

body.image-dashboard-body[data-pricing-page] .pricing-benefits-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.image-dashboard-body[data-pricing-page] .pricing-benefits-strip article {
  position: relative;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.image-dashboard-body[data-pricing-page] .pricing-benefits-strip span {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #12a66a;
}

body.image-dashboard-body[data-pricing-page] .pricing-benefits-strip strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
}

body.image-dashboard-body[data-pricing-page] .pricing-benefits-strip em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: #64748b;
}

body.image-dashboard-body[data-pricing-page] .pricing-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 2px;
  align-items: stretch;
}

body.image-dashboard-body[data-pricing-page] .pricing-plan-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100%;
  padding: 18px 16px 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  border-radius: 22px !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.08), transparent 34%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 20px 44px -34px rgba(15, 23, 42, 0.35) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.image-dashboard-body[data-pricing-page] .pricing-plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 122, 73, 0.28) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 28px 56px -30px rgba(11, 122, 73, 0.35) !important;
}

body.image-dashboard-body[data-pricing-page] .pricing-plan-card__glow {
  position: absolute;
  inset: -30% -20% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(18, 166, 106, 0.18), transparent 68%);
  pointer-events: none;
}

body.image-dashboard-body[data-pricing-page] .pricing-plan-card.is-featured {
  border-color: rgba(11, 122, 73, 0.42) !important;
  background:
    radial-gradient(circle at 88% 0%, rgba(245, 158, 11, 0.16), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(18, 166, 106, 0.18), transparent 40%),
    linear-gradient(155deg, #ffffff 0%, #f3fbf7 52%, #e8f6ef 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 28px 60px -28px rgba(11, 122, 73, 0.42) !important;
  transform: translateY(-6px);
}

body.image-dashboard-body[data-pricing-page] .pricing-plan-card.is-current {
  box-shadow:
    0 0 0 1px rgba(11, 122, 73, 0.35),
    0 24px 50px -30px rgba(11, 122, 73, 0.35) !important;
}

body.image-dashboard-body[data-pricing-page] .pricing-plan-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #12a66a, #087244);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.image-dashboard-body[data-pricing-page] .pricing-plan-ribbon.is-current {
  right: auto;
  left: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

body.image-dashboard-body[data-pricing-page] .pricing-plan-badge {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

body.image-dashboard-body[data-pricing-page] .pricing-plan-card__head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
}

body.image-dashboard-body[data-pricing-page] .pricing-price {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #0f172a;
}

body.image-dashboard-body[data-pricing-page] .pricing-price span {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

body.image-dashboard-body[data-pricing-page] .pricing-plan-tagline {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

body.image-dashboard-body[data-pricing-page] .pricing-feature-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.image-dashboard-body[data-pricing-page] .pricing-feature-list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}

body.image-dashboard-body[data-pricing-page] .pricing-feature-list__icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 999px;
  background: linear-gradient(135deg, #12a66a, #34d399);
  box-shadow: 0 0 0 3px rgba(18, 166, 106, 0.14);
  position: relative;
}

body.image-dashboard-body[data-pricing-page] .pricing-feature-list__icon::after {
  content: '';
  position: absolute;
  inset: 4px 3px 3px 4px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
}

body.image-dashboard-body[data-pricing-page] .pricing-plan-card__foot {
  display: grid;
  gap: 8px;
}

body.image-dashboard-body[data-pricing-page] .pricing-plan-cta {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  background: linear-gradient(135deg, #12a66a, #087244);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 34px -20px rgba(11, 122, 73, 0.85);
  transition: transform 0.18s ease, filter 0.18s ease;
}

body.image-dashboard-body[data-pricing-page] .pricing-plan-card.is-featured .pricing-plan-cta {
  background: linear-gradient(135deg, #0f766e, #047857 40%, #12a66a 100%);
}

body.image-dashboard-body[data-pricing-page] .pricing-plan-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

body.image-dashboard-body[data-pricing-page] .pricing-plan-cta:disabled {
  opacity: 0.72;
  cursor: wait;
}

body.image-dashboard-body[data-pricing-page] .pricing-cta.is-muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

body.image-dashboard-body[data-pricing-page] .pricing-footnote {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
}

body.theme-dark.image-dashboard-body[data-pricing-page] .pricing-status-bar,
body.theme-dark.image-dashboard-body[data-pricing-page] .pricing-benefits-strip article,
body.theme-dark.image-dashboard-body[data-pricing-page] .pricing-plan-card {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.12), transparent 34%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96)) !important;
}

body.theme-dark.image-dashboard-body[data-pricing-page] .pricing-status-bar__copy h2,
body.theme-dark.image-dashboard-body[data-pricing-page] .pricing-plan-card__head h3,
body.theme-dark.image-dashboard-body[data-pricing-page] .pricing-price,
body.theme-dark.image-dashboard-body[data-pricing-page] .pricing-benefits-strip strong {
  color: #f8fafc;
}

body.theme-dark.image-dashboard-body[data-pricing-page] .pricing-feature-list li,
body.theme-dark.image-dashboard-body[data-pricing-page] .pricing-status-bar__meta,
body.theme-dark.image-dashboard-body[data-pricing-page] .pricing-plan-tagline,
body.theme-dark.image-dashboard-body[data-pricing-page] .pricing-benefits-strip em,
body.theme-dark.image-dashboard-body[data-pricing-page] .pricing-footnote {
  color: #94a3b8;
}

@media (max-width: 1180px) {
  body.image-dashboard-body[data-pricing-page] .pricing-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.image-dashboard-body[data-pricing-page] .pricing-plan-card.is-featured {
    transform: none;
  }
}

@media (max-width: 760px) {
  body.image-dashboard-body[data-pricing-page] .pricing-status-bar {
    grid-template-columns: 1fr;
  }

  body.image-dashboard-body[data-pricing-page] .pricing-benefits-strip,
  body.image-dashboard-body[data-pricing-page] .pricing-plan-grid {
    grid-template-columns: 1fr;
  }
}


/* Admin user subscription management */
.admin-user-actions {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.admin-user-plan-link {
  display: inline-grid;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.admin-user-plan-link:hover .admin-plan-badge {
  filter: brightness(1.03);
}

.admin-user-plan-expiry {
  display: block;
  font-size: 11px;
  color: var(--image-muted, #7a857f);
}

.admin-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.admin-plan-badge--free {
  background: rgba(148, 163, 184, 0.14);
  color: #475569;
  border-color: rgba(148, 163, 184, 0.24);
}

.admin-plan-badge--starter {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.22);
}

.admin-plan-badge--pro {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.24);
}

.admin-plan-badge--enterprise {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.24);
}

.admin-subscription-panel {
  margin-bottom: 18px;
}

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

.admin-subscription-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-subscription-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--image-muted, #7a857f);
}

.admin-subscription-form select,
.admin-subscription-form input[type="datetime-local"] {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--image-line, #e7eee9);
  border-radius: 10px;
  background: #fff;
  color: var(--image-ink, #18221d);
  font-size: 14px;
}

.admin-subscription-meta {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--image-muted, #7a857f);
}

.admin-subscription-meta strong {
  color: var(--image-ink, #18221d);
}

.admin-subscription-note.is-warning {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(255, 251, 235, 0.92);
  color: #92400e;
  font-weight: 600;
}

.admin-subscription-form-actions {
  margin-top: 14px;
}

.admin-subscription-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.admin-subscription-status.is-paid {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.admin-subscription-status.is-pending {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.admin-subscription-status.is-manual {
  background: rgba(168, 85, 247, 0.12);
  color: #7e22ce;
}

.admin-subscription-status.is-failed {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.admin-subscription-code {
  font-size: 11px;
  word-break: break-all;
}

body.theme-dark .admin-subscription-form select,
body.theme-dark .admin-subscription-form input[type="datetime-local"] {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
}

body.theme-dark .admin-subscription-meta strong {
  color: #f8fafc;
}

body.theme-dark .admin-subscription-note.is-warning {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(69, 45, 10, 0.55);
  color: #fcd34d;
}

@media (max-width: 900px) {
  .admin-subscription-form-grid {
    grid-template-columns: 1fr;
  }
}


/* Advertiser add + list — 50/50 split */
.advertiser-manage-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  align-items: start;
}

.advertiser-split-card--add,
.advertiser-split-card--list {
  min-height: 100%;
}

.advertisers-page .advertiser-split-card--list .advertiser-grid-list.advertiser-grid-list--stack {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
}

.advertiser-list-empty {
  margin-top: 4px;
  padding: 18px 14px;
}

@media (max-width: 960px) {
  .advertiser-manage-split {
    grid-template-columns: 1fr;
  }
}
/* Advertiser edit + daily report — 50/50 split */
.advertiser-edit-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.advertiser-split-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
}

.advertiser-split-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.advertiser-split-card__head p {
  margin: 0 0 2px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #64748b;
}

.advertiser-split-card__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 950;
  color: #0f172a;
  line-height: 1.25;
}

.advertiser-split-card__badge {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #475569;
  background: rgba(148, 163, 184, 0.14);
}

.advertiser-split-card__note {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}

.advertiser-split-card__note .req {
  color: #dc2626;
}

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

.advertiser-form-grid--split .advertiser-form-span-2 {
  grid-column: span 2;
}

.advertiser-form-grid--split label > span {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
}

.advertiser-form-grid--split input {
  width: 100%;
  min-height: 32px;
  height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.advertiser-form-grid--split input:focus-visible {
  outline: none;
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.advertiser-report-status {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.advertiser-report-status.is-on {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
}

.advertiser-report-status.is-off {
  color: #64748b;
  background: rgba(148, 163, 184, 0.16);
}

.advertiser-report-form {
  display: grid;
  gap: 10px;
}

.advertiser-report-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #fff;
  cursor: pointer;
}

.advertiser-report-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.advertiser-report-toggle__ui {
  flex-shrink: 0;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.18s ease;
}

.advertiser-report-toggle__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease;
}

.advertiser-report-toggle input:checked + .advertiser-report-toggle__ui {
  background: #10b981;
}

.advertiser-report-toggle input:checked + .advertiser-report-toggle__ui::after {
  transform: translateX(16px);
}

.advertiser-report-toggle__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.advertiser-report-toggle__copy strong {
  font-size: 0.8rem;
  font-weight: 900;
  color: #0f172a;
}

.advertiser-report-toggle__copy em {
  font-size: 0.68rem;
  font-weight: 700;
  font-style: normal;
  color: #64748b;
}

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

.advertiser-report-fields label {
  display: grid;
  gap: 4px;
  margin: 0;
}

.advertiser-report-fields label > span {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
}

.advertiser-report-fields input {
  width: 100%;
  min-height: 32px;
  height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #fff;
}

.advertiser-report-actions {
  display: flex;
  justify-content: flex-end;
}

.advertiser-report-divider {
  height: 1px;
  margin: 12px 0 10px;
  background: rgba(148, 163, 184, 0.18);
}

.advertiser-report-test-form {
  display: grid;
  gap: 6px;
}

.advertiser-report-test-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.advertiser-report-test-row label {
  display: grid;
  gap: 4px;
  margin: 0;
  min-width: 0;
}

.advertiser-report-test-row label > span {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
}

.advertiser-report-test-row input {
  width: 100%;
  min-height: 32px;
  height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #fff;
}

.advertiser-report-delete-form {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.24);
}

.advertiser-delete-button {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: #b91c1c;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.advertiser-delete-button:hover {
  color: #991b1b;
}

.advertisers-page .advertiser-share-panel {
  margin-top: 8px !important;
}

@media (max-width: 1024px) {
  .advertiser-edit-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .advertiser-form-grid--split,
  .advertiser-report-fields,
  .advertiser-report-test-row {
    grid-template-columns: 1fr;
  }

  .advertiser-form-grid--split .advertiser-form-span-2 {
    grid-column: span 1;
  }

  .advertiser-report-test-row .ghost-button {
    width: 100%;
  }
}

body.theme-dark.image-dashboard-body .advertiser-split-card {
  border-color: rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.78) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

body.theme-dark.image-dashboard-body .advertiser-split-card__head h2,
body.theme-dark.image-dashboard-body .advertiser-report-toggle__copy strong {
  color: #e2e8f0;
}

body.theme-dark.image-dashboard-body .advertiser-split-card__head p,
body.theme-dark.image-dashboard-body .advertiser-split-card__note,
body.theme-dark.image-dashboard-body .advertiser-report-toggle__copy em,
body.theme-dark.image-dashboard-body .advertiser-form-grid--split label > span,
body.theme-dark.image-dashboard-body .advertiser-report-fields label > span,
body.theme-dark.image-dashboard-body .advertiser-report-test-row label > span {
  color: #94a3b8;
}

body.theme-dark.image-dashboard-body .advertiser-form-grid--split input,
body.theme-dark.image-dashboard-body .advertiser-report-fields input,
body.theme-dark.image-dashboard-body .advertiser-report-test-row input,
body.theme-dark.image-dashboard-body .advertiser-report-toggle {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}
.advertiser-share-inline {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.advertiser-share-inline__head p {
  margin: 0 0 2px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #64748b;
}

.advertiser-share-inline__head h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 950;
  color: #0f172a;
}

.advertiser-reports-toolbar--inline {
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

body.theme-dark.image-dashboard-body .advertiser-share-inline__head h3 {
  color: #e2e8f0;
}

body.theme-dark.image-dashboard-body .advertiser-reports-toolbar--inline {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(148, 163, 184, 0.16);
}

/* Advertiser manage page — compact pro layout */
.advertisers-manage-page .image-dashboard-main {
  gap: 10px;
}

.advertiser-manage-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 10px;
}

.advertiser-manage-stat {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.07), rgba(255, 255, 255, 0.98) 48%),
    #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.advertiser-manage-stat > span {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.advertiser-manage-stat > strong {
  font-size: 1rem;
  font-weight: 950;
  color: #0f172a;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advertiser-manage-stat > strong em {
  margin-left: 2px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  color: #64748b;
}

.advertiser-edit-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.92);
}

.advertiser-edit-topbar > span {
  font-size: 0.82rem;
  font-weight: 900;
  color: #334155;
}

.advertisers-manage-page .advertiser-manage-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.advertisers-manage-page .advertiser-split-card--list {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.advertisers-manage-page .advertiser-split-card {
  border-radius: 16px;
  border-color: rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.advertisers-manage-page .advertiser-split-card__head h2 {
  font-size: 1.02rem;
}

.advertiser-form-more {
  margin-top: 4px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(248, 250, 252, 0.72);
  overflow: hidden;
}

.advertiser-form-more > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 0.74rem;
  font-weight: 900;
  color: #475569;
}

.advertiser-form-more > summary::-webkit-details-marker {
  display: none;
}

.advertiser-form-more > summary span {
  font-weight: 800;
  color: #94a3b8;
}

.advertiser-form-more[open] > summary {
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.advertiser-form-more .advertiser-form-grid--split {
  padding: 8px 10px 10px;
}

.advertiser-list-count {
  flex-shrink: 0;
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.12);
}

.advertiser-list-toolbar {
  margin: 2px 0 8px;
}

.advertiser-list-search input {
  width: 100%;
  min-height: 34px;
  padding: 0 12px 0 34px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3 3'/%3E%3C/svg%3E") 10px center no-repeat,
    #fff;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

.advertiser-list-search input:focus-visible {
  outline: none;
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}


.advertiser-split-card--list .advertiser-list-toolbar {
  margin: 0 0 8px;
}

.advertiser-split-card--list .advertiser-manage-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  flex: 1;
  min-height: 0;
  max-height: min(620px, calc(100vh - 280px));
  overflow: auto;
  padding-right: 2px;
}

.advertiser-manage-row {
  gap: 6px;
  padding: 8px;
}

.advertiser-manage-row__live {
  margin: -8px -8px 6px;
  padding: 8px 10px;
}

.advertiser-manage-row__live strong {
  font-size: 0.76rem;
}

.advertiser-manage-row__fields {
  display: grid;
  gap: 4px;
  margin: 0;
}

.advertiser-manage-row__field {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
  min-width: 0;
}

.advertiser-manage-row__field dt {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.advertiser-manage-row__field dd {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advertiser-manage-row__actions {
  padding-top: 6px;
  gap: 4px;
}

.advertiser-manage-chip {
  min-height: 28px;
  font-size: 0.66rem;
}

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

.advertiser-manage-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-height: 100%;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.advertiser-manage-row:hover {
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

/* Advertiser manage row — premium actions + live banner */
.advertiser-manage-row.is-active {
  border-color: rgba(99, 102, 241, 0.58);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.12) 0%, rgba(255, 255, 255, 0.98) 34%);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.16), 0 14px 32px rgba(99, 102, 241, 0.16);
  transform: translateY(-2px);
}

.advertiser-manage-row__live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -10px -10px 8px;
  padding: 10px 12px;
  border-radius: 11px 11px 8px 8px;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 48%, #6366f1 100%);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.38);
}

.advertiser-manage-row__live strong {
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
}

.advertiser-manage-row__live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65);
  animation: advertiser-live-pulse 1.7s ease-in-out infinite;
}

@keyframes advertiser-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65); transform: scale(1); }
  50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); transform: scale(1.08); }
}

.advertiser-manage-row__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.advertiser-manage-row__form { margin: 0; min-width: 0; }

.advertiser-manage-chip {
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.advertiser-manage-chip:hover { transform: translateY(-1px); }

.advertiser-manage-chip--select {
  color: #334155;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-color: rgba(148, 163, 184, 0.32);
}
.advertiser-manage-chip--select:hover {
  color: #4338ca;
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
  border-color: rgba(99, 102, 241, 0.42);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.16);
}

.advertiser-manage-chip--current {
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.34);
  cursor: default;
}

.advertiser-manage-chip--report {
  color: #0369a1;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  border-color: rgba(14, 165, 233, 0.28);
}
.advertiser-manage-chip--report:hover {
  color: #0c4a6e;
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: rgba(14, 165, 233, 0.42);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.16);
}

.advertiser-manage-chip--settings {
  color: #047857;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border-color: rgba(16, 185, 129, 0.28);
}
.advertiser-manage-chip--settings:hover {
  color: #065f46;
  background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: rgba(16, 185, 129, 0.42);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.16);
}

body.theme-dark.image-dashboard-body.advertisers-manage-page .advertiser-manage-chip--select {
  color: #e2e8f0;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.92));
  border-color: rgba(148, 163, 184, 0.28);
}
body.theme-dark.image-dashboard-body.advertisers-manage-page .advertiser-manage-chip--report {
  color: #7dd3fc;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(12, 74, 110, 0.35));
  border-color: rgba(56, 189, 248, 0.28);
}
body.theme-dark.image-dashboard-body.advertisers-manage-page .advertiser-manage-chip--settings {
  color: #6ee7b7;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(6, 78, 59, 0.35));
  border-color: rgba(52, 211, 153, 0.28);
}
body.theme-dark.image-dashboard-body.advertisers-manage-page .advertiser-manage-row.is-active {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.22) 0%, rgba(15, 23, 42, 0.92) 38%);
}

.advertiser-list-empty-filter.is-hidden {
  display: none;
}

.advertiser-list-empty-filter {
  margin: 8px 0 0;
  font-size: 0.76rem;
  font-weight: 800;
  color: #64748b;
  text-align: center;
}

@media (min-width: 961px) {
  .advertiser-manage-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .advertiser-split-card--list .advertiser-manage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .advertiser-manage-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advertisers-manage-page .advertiser-manage-split {
    grid-template-columns: 1fr;
  }
}

body.theme-dark.image-dashboard-body.advertisers-manage-page .advertiser-manage-stat,
body.theme-dark.image-dashboard-body.advertisers-manage-page .advertiser-split-card,
body.theme-dark.image-dashboard-body.advertisers-manage-page .advertiser-manage-row {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark.image-dashboard-body.advertisers-manage-page .advertiser-manage-stat > strong,
body.theme-dark.image-dashboard-body.advertisers-manage-page .advertiser-manage-row__field dt {
  color: #64748b;
}

body.theme-dark.image-dashboard-body.advertisers-manage-page .advertiser-manage-row__field dd {
  color: #e2e8f0;
}

body.theme-dark.image-dashboard-body.advertisers-manage-page .advertiser-manage-row__title strong {
  color: #e2e8f0;
}

body.theme-dark.image-dashboard-body.advertisers-manage-page .advertiser-list-search input {
  background: rgba(15, 23, 42, 0.86);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.22);
}

body.theme-dark.image-dashboard-body.advertisers-manage-page .advertiser-edit-topbar {
  background: rgba(15, 23, 42, 0.72);
}

body.theme-dark.image-dashboard-body.advertisers-manage-page .advertiser-form-more {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(148, 163, 184, 0.22);
}


/* Site footer — premium */
.site-footer {
  --footer-bg: #0c100e;
  --footer-elevated: #141a17;
  --footer-line: rgba(255, 255, 255, 0.08);
  --footer-text: #eef3f0;
  --footer-muted: #9aa8a0;
  --footer-accent: #3dd68c;
  position: relative;
  margin-top: auto;
  color: var(--footer-text);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(61, 214, 140, 0.09), transparent 55%),
    linear-gradient(180deg, #101512 0%, var(--footer-bg) 100%);
  overflow: hidden;
}

.site-footer-accent {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(61, 214, 140, 0.15) 15%,
    var(--footer-accent) 50%,
    rgba(61, 214, 140, 0.15) 85%,
    transparent 100%
  );
}

.site-footer-glow {
  display: none;
}

.site-footer-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 52px) clamp(20px, 4vw, 32px) clamp(22px, 3vw, 28px);
}

.site-footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(0, 1.9fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  padding-bottom: clamp(24px, 3vw, 32px);
  border-bottom: 1px solid var(--footer-line);
}

.site-footer-brand {
  display: grid;
  gap: 14px;
}

.site-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-footer-logo:hover {
  opacity: 0.88;
}

.site-footer-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #0f9d58 0%, #03c75a 48%, #028a42 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  overflow: hidden;
  box-shadow:
    0 12px 28px -12px rgba(3, 199, 90, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.site-footer-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}

.site-footer-logo-copy {
  display: grid;
  gap: 4px;
}

.site-footer-logo-copy strong {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.site-footer-logo-copy em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.site-footer-tagline {
  margin: 0;
  max-width: 28rem;
  color: var(--footer-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.site-footer-nav-grid,
.site-footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.site-footer-col h3 {
  margin: 0 0 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.site-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--footer-text);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.site-footer-links a:hover {
  color: var(--footer-accent);
  opacity: 1;
  transform: translateX(2px);
}

.site-footer-meta {
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer-meta div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px 12px;
  font-size: 0.84rem;
  line-height: 1.55;
}

.site-footer-meta dt {
  margin: 0;
  color: var(--footer-muted);
  font-weight: 500;
}

.site-footer-meta dd {
  margin: 0;
  color: var(--footer-text);
  word-break: keep-all;
}

.site-footer-meta a {
  color: var(--footer-accent);
  text-decoration: none;
}

.site-footer-meta a:hover {
  text-decoration: underline;
}

.site-footer-bar,
.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: clamp(18px, 2.5vw, 22px);
}

.site-footer-copy,
.site-footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--footer-muted);
  letter-spacing: 0.01em;
}

.site-footer-legal,
.site-footer-bottom-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.site-footer-legal a,
.site-footer-bottom-links a {
  color: var(--footer-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer-legal a:hover,
.site-footer-bottom-links a:hover {
  color: var(--footer-accent);
}

.site-footer-legal a:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 10px;
  margin-left: 16px;
  background: var(--footer-line);
  vertical-align: middle;
}

/* Footer responsive */
@media (max-width: 900px) {
  .site-footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 18px;
  }

  .site-footer-inner {
    padding-top: 28px;
    padding-bottom: 18px;
  }

  .landing-features {
    padding: 16px 0 20px;
  }

  .landing-section-head {
    margin-bottom: 16px;
  }

  .site-footer-nav-grid,
  .site-footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .site-footer-contact {
    grid-column: 1 / -1;
  }

  .site-footer-meta div {
    grid-template-columns: 100px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .site-footer-inner {
    padding: 18px 12px 12px;
  }

  .site-footer-main {
    gap: 12px;
    padding-bottom: 12px;
  }

  .site-footer-brand {
    gap: 8px;
  }

  .site-footer-nav-grid,
  .site-footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
  }

  .site-footer-contact {
    grid-column: 1 / -1;
  }

  .site-footer-col h3 {
    margin-bottom: 8px;
    font-size: 0.62rem;
  }

  .site-footer-links {
    gap: 4px;
  }

  .site-footer-links a {
    min-height: 20px;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .site-footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .site-footer-meta div {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 6px;
    grid-template-columns: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.74rem;
    line-height: 1.4;
  }

  .site-footer-meta dt::after {
    content: ":";
  }

  .site-footer-meta dt {
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .site-footer-meta dd {
    word-break: break-all;
  }

  .site-footer-bar,
  .site-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
  }

  .site-footer-copy,
  .site-footer-bottom p {
    font-size: 0.72rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-footer-legal {
    width: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 10px;
  }

  .site-footer-legal a,
  .site-footer-bottom-links a {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .site-footer-legal a:not(:last-child)::after {
    display: inline-block;
    margin-left: 10px;
    height: 8px;
  }

  .site-footer-logo {
    gap: 10px;
  }

  .site-footer-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .site-footer-logo-copy strong {
    font-size: 0.95rem;
  }

  .site-footer-logo-copy em {
    font-size: 0.62rem;
  }

  .site-footer-tagline {
    font-size: 0.78rem;
    line-height: 1.45;
  }
}

body.theme-dark .site-footer {
  --footer-bg: #080b0a;
  --footer-elevated: #101412;
}


/* Legal pages */
.legal-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.legal-page-shell {
  flex: 1 1 auto;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 28px 20px 36px;
}

.legal-page-card {
  border: 1px solid var(--image-line, #e7eee9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--image-shadow, 0 18px 45px -34px rgba(24, 34, 29, 0.48));
  padding: 28px 28px 24px;
}

.legal-page-header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--image-line, #e7eee9);
}

.legal-page-eyebrow {
  margin: 0 0 8px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--image-accent, #0b7a49);
  font-weight: 700;
}

.legal-page-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
}

.legal-page-lead {
  margin: 0;
  color: var(--image-muted, #7a857f);
  line-height: 1.65;
}

.prose-legal {
  color: var(--image-ink, #18221d);
  line-height: 1.75;
  font-size: 0.95rem;
}

.prose-legal p {
  margin: 0 0 14px;
}

.prose-legal h3 {
  margin: 22px 0 10px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.legal-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--image-line, #e7eee9);
}

.admin-footer-settings .admin-field-textarea textarea {
  min-height: 220px;
  resize: vertical;
}

.admin-kakao-template-settings .admin-field-textarea textarea {
  min-height: 240px;
  resize: vertical;
}

@media (max-width: 860px) {
  .legal-page-card {
    padding: 22px 18px 18px;
  }
}

/* ===== Home dashboard v2 (compact) ===== */
.image-dashboard-home-v2 .image-dashboard-main {
  padding: 16px clamp(16px, 2.5vw, 28px) 28px;
}

.home-shell {
  display: grid;
  gap: 14px;
  max-width: 1280px;
}

.home-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 2px;
}

.home-top-copy {
  min-width: 0;
}

.home-eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--image-accent, #0b7a49);
}

.home-top h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--image-ink, #18221d);
}

.home-top-copy > span {
  display: block;
  margin-top: 6px;
  color: var(--image-muted, #7a857f);
  font-size: 0.88rem;
  line-height: 1.5;
}

.home-top .admin-hero-tools {
  flex-shrink: 0;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.home-action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--image-line, #e7eee9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px -24px rgba(24, 34, 29, 0.45);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.home-action:hover {
  border-color: rgba(11, 122, 73, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -22px rgba(11, 122, 73, 0.28);
}

.home-action.is-primary {
  border-color: rgba(11, 122, 73, 0.35);
  background: linear-gradient(145deg, #0b7a49, #12a66a);
  color: #fff;
  box-shadow: 0 16px 36px -22px rgba(11, 122, 73, 0.55);
}

.home-action.is-primary .home-action-copy em {
  color: rgba(255, 255, 255, 0.82);
}

.home-action-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--image-soft, #e9f7ef);
  color: var(--image-accent, #0b7a49);
}

.home-action.is-primary .home-action-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.home-action-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.home-action-copy strong {
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.home-action-copy em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--image-muted, #7a857f);
}

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

.home-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid var(--image-line, #e7eee9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.home-stat-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f3f8f5;
  color: var(--image-accent, #0b7a49);
}

.home-stat-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.home-stat-copy > span {
  font-size: 0.72rem;
  color: var(--image-muted, #7a857f);
  font-weight: 700;
}

.home-stat-copy strong {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.home-stat-copy strong small {
  margin-left: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--image-muted, #7a857f);
}

.home-stat-copy em {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--image-muted, #7a857f);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
  align-items: start;
}

.home-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.home-aside {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 18px;
}

.home-aside-card {
  border: 1px solid var(--image-line, #e7eee9);
  border-radius: 14px;
  background: #fff;
  padding: 14px 14px 12px;
  box-shadow: 0 12px 32px -28px rgba(24, 34, 29, 0.4);
}

.home-aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.home-aside-head h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.home-aside-head a {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--image-accent, #0b7a49);
  text-decoration: none;
}

.home-aside-meta {
  margin: 0;
  display: grid;
  gap: 8px;
}

.home-aside-meta div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  font-size: 0.82rem;
}

.home-aside-meta dt {
  margin: 0;
  color: var(--image-muted, #7a857f);
}

.home-aside-meta dd {
  margin: 0;
  font-weight: 700;
}

.home-aside-note {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--image-line, #e7eee9);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--image-muted, #7a857f);
}

.home-aside-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--image-muted, #7a857f);
}

.home-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f0;
  color: #6b7570;
  font-size: 0.72rem;
  font-weight: 800;
}

.home-pill.is-on {
  background: #e4f6ec;
  color: #0b7a49;
}

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

.home-rank-list li {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7faf8;
}

.home-rank-list strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
}

.home-rank-list span {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--image-muted, #7a857f);
}

.home-shell .payment-gateway-banner {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
}

.home-shell .payment-gateway-banner h2 {
  font-size: 0.95rem;
}

.home-shell .payment-gateway-banner p {
  margin: 0;
}

.home-shell .alert {
  margin: 0;
}

.home-recent-card,
.home-performance-card {
  border: 1px solid var(--image-line, #e7eee9);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px -28px rgba(24, 34, 29, 0.38);
}

.home-recent-card .image-card-head,
.home-performance-card .image-card-head {
  padding: 14px 14px 0;
}

.home-recent-card .image-recent-list,
.home-performance-card .image-performance-rings {
  padding: 8px 10px 12px;
}

.home-performance-wrap .image-performance-rings {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.home-performance-wrap .image-performance-ring {
  min-height: 0;
}

.home-performance-wrap .image-ring-visual {
  padding: 10px 8px;
}

.home-performance-wrap .image-ring-visual strong {
  font-size: 1.1rem;
}

.home-performance-wrap .image-range-tabs button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.image-dashboard-home-v2 .image-recent-row {
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 10px;
}

.home-recent-card .image-recent-list--scroll {
  display: grid;
  gap: 10px;
}

.home-recent-card .image-recent-list--scroll:has(.image-recent-row:nth-child(5)) {
  --recent-row-height: 52px;
  --recent-row-gap: 10px;
  --recent-visible-count: 5;
  max-height: calc(
    var(--recent-visible-count) * var(--recent-row-height)
    + (var(--recent-visible-count) - 1) * var(--recent-row-gap)
  );
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;
}

.home-recent-card .image-recent-list--scroll:has(.image-recent-row:nth-child(5))::-webkit-scrollbar {
  width: 6px;
}

.home-recent-card .image-recent-list--scroll:has(.image-recent-row:nth-child(5))::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(11, 122, 73, 0.35);
}

.home-recent-card .image-recent-list--scroll:has(.image-recent-row:nth-child(5))::-webkit-scrollbar-track {
  background: transparent;
}

body.theme-dark.image-dashboard-home-v2 .home-recent-card .image-recent-list--scroll:has(.image-recent-row:nth-child(5))::-webkit-scrollbar-thumb {
  background: rgba(61, 214, 140, 0.35);
}

@media (max-width: 1100px) {
  .home-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 720px) {
  .home-top {
    flex-direction: column;
  }

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

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

  .home-aside {
    grid-template-columns: 1fr;
  }

  .home-performance-wrap .image-performance-rings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.theme-dark.image-dashboard-home-v2 .home-action,
body.theme-dark.image-dashboard-home-v2 .home-stat,
body.theme-dark.image-dashboard-home-v2 .home-aside-card,
body.theme-dark.image-dashboard-home-v2 .home-recent-card,
body.theme-dark.image-dashboard-home-v2 .home-performance-card {
  background: rgba(22, 28, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark.image-dashboard-home-v2 .home-action.is-primary {
  background: linear-gradient(145deg, #0f8f57, #12a66a);
}

body.theme-dark.image-dashboard-home-v2 .home-stat-icon,
body.theme-dark.image-dashboard-home-v2 .home-action-icon {
  background: rgba(11, 122, 73, 0.16);
}

body.theme-dark.image-dashboard-home-v2 .home-rank-list li {
  background: rgba(255, 255, 255, 0.04);
}

/* Dashboard mobile density */
.image-dashboard-home .image-recent-list--scroll:has(.image-recent-row:nth-child(5)) {
  --dashboard-recent-row-height: 68px;
  --dashboard-recent-row-gap: 10px;
  --dashboard-recent-visible-count: 5;
  max-height: calc(
    var(--dashboard-recent-visible-count) * var(--dashboard-recent-row-height)
    + (var(--dashboard-recent-visible-count) - 1) * var(--dashboard-recent-row-gap)
  );
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;
}

.image-dashboard-home .image-recent-list--scroll:has(.image-recent-row:nth-child(5))::-webkit-scrollbar {
  width: 6px;
}

.image-dashboard-home .image-recent-list--scroll:has(.image-recent-row:nth-child(5))::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(11, 122, 73, 0.34);
}

.image-dashboard-home .image-recent-list--scroll:has(.image-recent-row:nth-child(5))::-webkit-scrollbar-track {
  background: transparent;
}

body.theme-dark .image-dashboard-home .image-recent-list--scroll:has(.image-recent-row:nth-child(5))::-webkit-scrollbar-thumb {
  background: rgba(81, 227, 111, 0.34);
}

@media (max-width: 720px) {
  .image-dashboard-home .image-hero-card.image-expert-hero,
  .image-dashboard-body .image-dashboard-home .image-hero-card.image-expert-hero {
    position: relative;
    min-height: 0 !important;
    margin-bottom: 12px;
    padding: 14px 14px 16px !important;
    border-radius: 16px !important;
  }

  .image-dashboard-home .image-hero-copy {
    max-width: none;
  }

  .image-dashboard-home .image-hero-kicker {
    margin-bottom: 6px;
    font-size: 10px !important;
    letter-spacing: 0.12em;
  }

  .image-dashboard-home .image-hero-card h1 {
    margin-bottom: 6px;
    padding-right: 0;
    font-size: clamp(20px, 6vw, 24px) !important;
    line-height: 1.12;
  }

  .image-dashboard-home .image-hero-card h1 span {
    display: inline;
  }

  .image-dashboard-home .image-expert-hero em {
    display: none;
  }

  .image-dashboard-home .image-hero-cta {
    min-height: 38px;
    margin-top: 12px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 12px;
  }

  .image-dashboard-home .image-page-hero--admin .admin-hero-tools {
    position: absolute;
    top: 12px;
    right: 12px;
    transform: scale(0.82);
    transform-origin: top right;
    width: auto;
    justify-content: flex-end;
  }

  .image-dashboard-home .image-kpi-grid,
  .image-dashboard-body .image-dashboard-home .image-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .image-dashboard-home .image-kpi-card {
    min-height: 118px;
    padding: 13px 11px;
  }

  .image-dashboard-home .image-kpi-card p {
    margin-top: 9px;
    font-size: 10px;
    line-height: 1.35;
  }

  .image-dashboard-home .image-sparkline {
    right: 10px;
    bottom: 10px;
    width: 44%;
    height: 30px;
  }

  .image-dashboard-home .image-recent-card,
  .image-dashboard-home .image-performance-card,
  .image-dashboard-home .image-system-card,
  .image-dashboard-home .image-tip-card {
    padding: 15px;
  }

  .image-dashboard-home .image-recent-list--scroll:has(.image-recent-row:nth-child(5)) {
    --dashboard-recent-row-height: 62px;
    --dashboard-recent-row-gap: 8px;
  }

  .image-dashboard-home .image-recent-list {
    gap: 8px;
  }

  .image-dashboard-home .image-recent-row {
    min-height: 62px;
    padding: 9px;
  }

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

  .image-dashboard-home .image-system-grid div {
    min-height: 78px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 4px 8px;
    padding: 10px 11px;
    border-right: 0;
    border-bottom: 1px solid rgba(223, 229, 243, 0.84);
  }

  .image-dashboard-home .image-system-grid div:nth-child(odd) {
    border-right: 1px solid rgba(223, 229, 243, 0.84);
  }

  .image-dashboard-home .image-system-grid div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .image-dashboard-home .image-system-grid i {
    grid-row: 1 / 3;
    width: 30px;
    height: 30px;
  }

  .image-dashboard-home .image-system-grid strong {
    grid-column: 2;
  }

  .image-dashboard-home .image-system-grid em {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .image-dashboard-home .image-kpi-grid,
  .image-dashboard-body .image-dashboard-home .image-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Dashboard sidebar collection workbench */
.image-sidebar-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-sidebar-workbench {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  padding: 0 0 8px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 78%, rgba(255, 255, 255, 0));
}

.image-sidebar-workbench .image-collect-panel {
  order: 2;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  border-radius: 12px;
}

.image-sidebar-workbench .image-collect-promo {
  min-height: 0;
  padding: 8px 10px;
  gap: 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}

.image-sidebar-workbench .image-collect-promo > span {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  border-radius: 8px;
}

.image-sidebar-workbench .image-collect-promo > span .image-line-icon {
  width: 13px;
  height: 13px;
}

.image-sidebar-workbench .image-collect-head strong {
  font-size: 11.5px;
  line-height: 1.25;
}

.image-sidebar-workbench .image-collect-field {
  padding: 7px 9px 0;
}

.image-sidebar-workbench .image-keyword-editor {
  border-radius: 9px;
}

.image-dashboard-body .image-sidebar-workbench #keywords {
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  padding: 7px 9px;
  font-size: 11px;
  line-height: 1.35;
}

.image-dashboard-body .image-sidebar-workbench .image-collect-panel .image-inline-button {
  min-height: 27px;
  margin: 6px 9px 0;
  border-radius: 8px;
  font-size: 10.5px;
}

.image-sidebar-workbench .image-service-toggles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 7px 9px 0;
}

.image-sidebar .image-sidebar-workbench .image-collect-panel .image-service-toggles .toggle-pill span {
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  grid-template-rows: none;
  border-radius: 9px;
  font-size: 10px;
  line-height: 1;
}

.image-sidebar .image-sidebar-workbench .image-collect-panel .image-service-toggles .toggle-pill span::before {
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
}

.image-sidebar .image-sidebar-workbench .image-collect-panel .image-service-toggles .toggle-pill span::after,
.image-sidebar .image-sidebar-workbench .image-collect-panel .image-service-toggles .toggle-pill span i {
  display: none !important;
}

.image-sidebar .image-sidebar-workbench .image-collect-panel .image-service-toggles .toggle-pill:hover span {
  transform: none;
}

.image-sidebar-workbench .payment-collect-note {
  margin: 7px 9px 0;
  padding: 7px 8px;
  gap: 7px;
  border-radius: 9px;
}

.image-sidebar-workbench .payment-collect-note > span {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.image-sidebar-workbench .payment-collect-note strong,
.image-sidebar-workbench .payment-collect-note em {
  font-size: 10px;
  line-height: 1.25;
}

.image-sidebar-workbench .image-collect-panel .image-start-button {
  min-height: 32px;
  margin: 8px 9px 9px;
  border-radius: 9px;
  font-size: 12px;
}

.image-sidebar-workbench .image-advertiser-panel {
  order: 1;
  margin: 0;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px -30px rgba(15, 23, 42, 0.42);
}

.image-sidebar-workbench .image-sidebar-nav-label {
  display: block;
  margin-bottom: 6px;
  font-size: 10.5px;
  line-height: 1;
}

.image-sidebar-workbench .image-advertiser-row {
  gap: 6px;
}

.image-sidebar-workbench .image-advertiser-select-form select {
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 11.5px;
}

.image-sidebar-workbench .image-advertiser-manage-btn {
  flex-basis: 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.image-sidebar-workbench + .image-sidebar-nav {
  margin-top: 0;
}

.is-sidebar-collapsed .image-sidebar-workbench {
  display: none;
}

body.theme-dark .image-sidebar-workbench {
  background: linear-gradient(180deg, #121a26 0%, rgba(18, 26, 38, 0.98) 78%, rgba(18, 26, 38, 0));
}

body.theme-dark .image-sidebar-workbench .image-advertiser-panel {
  background: rgba(15, 23, 42, 0.86);
}

@media (max-width: 960px) {
  .image-sidebar-workbench {
    position: static;
    padding-bottom: 4px;
  }
}

/* Sidebar user footer text containment */
.image-sidebar .image-sidebar-user-main,
.image-sidebar .image-sidebar-user-meta,
.image-sidebar .image-sidebar-user-name-row,
.image-sidebar .image-sidebar-user-actions {
  min-width: 0;
}

.image-sidebar .image-sidebar-user-name-row {
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: 100%;
}

.image-sidebar .image-sidebar-user-name-row strong {
  flex: 1 1 0;
  max-width: none;
}

.image-sidebar .image-sidebar-plan-summary {
  flex: 0 0 auto;
  width: max-content;
  min-width: max-content;
  max-width: 100%;
  overflow: visible;
}

.image-sidebar .image-sidebar-plan-summary-tier,
.image-sidebar .image-sidebar-plan-summary-expires {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
}

.image-sidebar .image-sidebar-user-actions .image-user-action {
  overflow: hidden;
}

.image-sidebar .image-sidebar-user-actions .image-user-action span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sidebar user footer visible labels */
.image-sidebar .image-sidebar-plan-summary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  width: max-content;
  min-width: max-content;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 7px;
  overflow: visible;
  line-height: 1;
  white-space: nowrap;
}

.image-sidebar .image-sidebar-plan-summary-tier {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.image-sidebar .image-sidebar-user-actions .image-user-action {
  flex: none;
}

.image-sidebar .image-sidebar-user-actions .image-user-action-schedule {
  border-color: rgba(14, 116, 144, 0.22);
  background: linear-gradient(145deg, rgba(236, 254, 255, 0.98), rgba(255, 255, 255, 0.94));
  color: #0e7490;
}

.image-sidebar .image-sidebar-user-actions .image-user-action-logout {
  grid-column: auto;
}

.image-sidebar .image-sidebar-user-actions .image-user-action span {
  flex: 0 1 auto;
  max-width: calc(100% - 22px);
  overflow: visible;
  text-overflow: clip;
}

body.theme-dark .image-sidebar .image-sidebar-user-actions .image-user-action-schedule {
  border-color: rgba(103, 232, 249, 0.24);
  background: rgba(13, 24, 43, 0.74);
  color: #67e8f9;
}

/* Sidebar plan expiry appears only on hover */
.image-sidebar .image-sidebar-plan-summary {
  position: relative;
}

.image-sidebar .image-sidebar-plan-summary-expires {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 6px);
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: none;
  padding: 0 7px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 7px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 14px 28px -18px rgba(15, 23, 42, 0.58);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  overflow: visible;
  pointer-events: none;
  text-overflow: clip;
  transform: translate(-50%, 4px);
  visibility: hidden;
  white-space: nowrap;
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.image-sidebar .image-sidebar-plan-summary:hover .image-sidebar-plan-summary-expires,
.image-sidebar .image-sidebar-plan-summary:focus-visible .image-sidebar-plan-summary-expires {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

body.theme-dark .image-sidebar .image-sidebar-plan-summary-expires {
  border-color: rgba(255, 255, 255, 0.14);
  background: #f8fafc;
  color: #0f172a;
}

/* ===== Landing page (Naver Expert style) ===== */
.landing-page-body {
  background: #f8faf9;
  color: #1e2329;
  overflow-x: hidden;
}

.landing-main {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px) 48px;
}

/* Header hamburger */
.site-header-inner {
  grid-template-columns: auto 1fr auto;
}

.site-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #e5ecef;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  justify-self: end;
}

.site-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #1e2329;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.is-site-menu-open .site-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.is-site-menu-open .site-menu-toggle span:nth-child(2) {
  opacity: 0;
}
body.is-site-menu-open .site-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-mobile-menu[hidden] {
  display: none;
}

.site-mobile-menu.is-open {
  display: block;
  pointer-events: auto;
}

.site-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

.site-mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 1;
}

.site-mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2;
  width: min(88vw, 320px);
  height: 100%;
  max-height: 100dvh;
  padding: 18px 16px 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  background: #ffffff;
  opacity: 1;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
}

.site-mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-mobile-menu-head strong {
  font-size: 1rem;
}

.site-mobile-menu-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #f3f6f4;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.site-mobile-nav {
  display: grid;
  gap: 4px;
  align-content: start;
}

.site-mobile-nav-link {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  color: #4d5b68;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.site-mobile-nav-link.is-active,
.site-mobile-nav-link:hover {
  background: #edf8f2;
  color: #03a94d;
}

.site-mobile-actions {
  display: grid;
  gap: 8px;
}

.site-mobile-actions .header-btn {
  width: 100%;
}

@media (max-width: 960px) {
  .site-header-inner {
    grid-template-columns: auto auto;
    gap: 12px;
  }

  .site-menu-toggle {
    display: inline-flex;
  }

  .site-nav--desktop,
  .site-header-actions--desktop {
    display: none !important;
  }
}

/* Hero */
.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px) 0 clamp(36px, 5vw, 56px);
}

.landing-hero-visual {
  position: absolute;
  left: 0;
  top: 12%;
  width: min(52%, 420px);
  height: 280px;
  pointer-events: none;
  z-index: 0;
}

.landing-hero-orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 169, 77, 0.14), transparent 68%);
}

.landing-hero-doc {
  position: absolute;
  left: 18%;
  top: 18%;
  width: 220px;
  height: 160px;
  border-radius: 20px;
  border: 1px solid rgba(3, 169, 77, 0.2);
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(232, 248, 238, 0.9));
  box-shadow: 0 24px 50px -30px rgba(3, 169, 77, 0.35);
  transform: rotate(-8deg);
}

.landing-hero-doc::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: 20px;
  width: 90px;
  height: 90px;
  border: 3px solid rgba(3, 169, 77, 0.25);
  border-radius: 50%;
}

.landing-hero-copy {
  position: relative;
  z-index: 1;
}

.landing-kicker {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f8ef;
  color: #03a94d;
  font-size: 0.78rem;
  font-weight: 800;
}

.landing-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #111;
}

.landing-lead {
  margin: 0 0 22px;
  max-width: 34rem;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.65;
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #03a94d;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 36px -20px rgba(3, 169, 77, 0.65);
}

.landing-hero-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  color: #4b5563;
  font-size: 0.82rem;
  font-weight: 700;
}

.landing-hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Login card */
.landing-login-card {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 3vw, 28px);
  border: 1px solid #e8ecef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 60px -40px rgba(30, 35, 41, 0.35);
}

.landing-login-card h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 900;
}

.landing-login-lead {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 0.86rem;
}

.landing-social-stack {
  display: grid;
  gap: 8px;
}

.landing-social-btn {
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}

.landing-social-naver {
  background: #03a94d;
  color: #fff;
}

.landing-social-kakao {
  background: #fee500;
  color: #191919;
}

.landing-social-google {
  background: #fff;
  border-color: #e5e7eb;
  color: #1e2329;
}

.landing-divider {
  margin: 16px 0;
  display: grid;
  place-items: center;
  color: #9ca3af;
  font-size: 0.78rem;
}

.landing-divider::before {
  content: "";
  grid-area: 1;
  width: 100%;
  height: 1px;
  background: #e5e7eb;
}

.landing-divider span {
  grid-area: 1;
  padding: 0 10px;
  background: #fff;
}

.landing-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}

.landing-auth-tabs a {
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f3f6f4;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.landing-auth-tabs a.is-active {
  background: #e8f8ef;
  color: #03a94d;
}

.landing-auth-form {
  display: grid;
  gap: 12px;
}

.landing-field {
  display: grid;
  gap: 6px;
}

.landing-field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4b5563;
}

.landing-field input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9rem;
}

.landing-password-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.landing-password-toggle {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.landing-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
}

.landing-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
}

.landing-submit-btn {
  min-height: 46px;
  border: none;
  border-radius: 10px;
  background: #1e2329;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
}

.landing-submit-btn--ghost {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #1e2329;
}

.landing-team-access {
  margin-top: 10px;
  font-size: 0.82rem;
}

.landing-auth-switch {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #6b7280;
}

.landing-auth-switch a {
  color: #03a94d;
  font-weight: 800;
}

/* Features */
.landing-features {
  padding: 20px 0 36px;
}

.landing-section-head {
  text-align: center;
  margin-bottom: 24px;
}

.landing-section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 900;
}

.landing-section-head p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

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

.landing-feature-card {
  padding: 20px 16px;
  border: 1px solid #e8ecef;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.landing-feature-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e8f8ef;
  color: #03a94d;
}

.landing-feature-icon svg {
  width: 22px;
  height: 22px;
}

.landing-feature-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 900;
}

.landing-feature-card p {
  margin: 0;
  color: #6b7280;
  font-size: 0.8rem;
  line-height: 1.55;
}

/* Bottom panels */
.landing-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.landing-panel {
  padding: 18px 16px;
  border: 1px solid #e8ecef;
  border-radius: 14px;
  background: #fff;
}

.landing-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.landing-panel-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
}

.landing-panel-head a {
  font-size: 0.8rem;
  font-weight: 700;
  color: #03a94d;
  text-decoration: none;
}

.landing-trend-list,
.landing-notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.landing-trend-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8faf9;
  font-size: 0.86rem;
}

.landing-trend-list .is-up {
  color: #03a94d;
  font-weight: 800;
}

.landing-trend-list .is-down {
  color: #dc2626;
  font-weight: 800;
}

.landing-notice-list a {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f1;
  color: inherit;
  text-decoration: none;
}

.landing-notice-list li:last-child a {
  border-bottom: none;
}

.landing-notice-list strong {
  font-size: 0.86rem;
}

.landing-notice-list span {
  font-size: 0.74rem;
  color: #9ca3af;
}

.landing-notice-list em {
  font-style: normal;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.45;
}

.site-brand-copy em {
  display: none;
}


.site-nav-link.is-active {
  box-shadow: inset 0 -2px 0 #03a94d;
  background: transparent;
  border-radius: 0;
}

.header-btn-primary {
  background: #03a94d;
}

@media (max-width: 1024px) {
  .landing-main {
    padding-bottom: 28px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    padding: 20px 0 24px;
    gap: 16px;
    align-items: stretch;
  }

  .landing-hero-visual {
    display: none;
  }

  .landing-hero-copy {
    max-width: 40rem;
  }

  .landing-hero h1 {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    margin-bottom: 10px;
  }

  .landing-lead {
    margin-bottom: 14px;
    font-size: 0.9rem;
  }

  .landing-hero-points {
    margin-top: 14px;
    gap: 10px 14px;
  }

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

@media (max-width: 640px) {
  .landing-main {
    padding-bottom: 20px;
  }

  .landing-features {
    padding: 12px 0 16px;
  }

  .landing-section-head {
    margin-bottom: 14px;
  }

  .landing-section-head h2 {
    margin-bottom: 4px;
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .landing-section-head p {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .landing-feature-grid {
    gap: 10px;
  }

  .landing-feature-card {
    padding: 14px 12px;
  }

  .landing-feature-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
  }

  .landing-feature-card h3 {
    margin-bottom: 4px;
    font-size: 0.88rem;
  }

  .landing-feature-card p {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .landing-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
  }

  .landing-panel {
    padding: 12px 14px;
  }

  .landing-panel-head {
    margin-bottom: 8px;
  }

  .landing-trends .landing-panel-head {
    margin-bottom: 6px;
  }

  .landing-trends .landing-panel-head h3 {
    font-size: 0.86rem;
  }

  .landing-trends .landing-panel-head a {
    font-size: 0.72rem;
  }

  .landing-trend-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .landing-trend-list li {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    text-align: center;
    font-size: 0.7rem;
  }

  .landing-trend-list li strong {
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.25;
    word-break: keep-all;
  }

  .landing-trend-list li span {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .landing-main {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 14px;
  }

  .landing-hero {
    padding: 10px 0 12px;
    gap: 10px;
    align-items: stretch;
  }

  .landing-hero-copy {
    display: grid;
    gap: 0;
    text-align: left;
  }

  .landing-hero h1 br {
    display: none;
  }

  .landing-kicker {
    margin-bottom: 6px;
    padding: 3px 8px;
    font-size: 0.68rem;
  }

  .landing-hero h1 {
    margin-bottom: 6px;
    font-size: 1.32rem;
    line-height: 1.22;
    letter-spacing: -0.03em;
  }

  .landing-lead {
    margin-bottom: 0;
    max-width: none;
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .landing-cta {
    display: none;
  }

  .landing-hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
    font-size: 0.64rem;
    font-weight: 700;
  }

  .landing-hero-points li {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 0;
    padding: 6px 4px;
    text-align: center;
    line-height: 1.25;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e8ecef;
    box-shadow: 0 6px 16px -14px rgba(30, 35, 41, 0.2);
  }

  .landing-point-icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
    font-size: 11px;
  }

  .landing-login-card {
    padding: 14px 12px;
    border-radius: 12px;
    box-shadow: 0 16px 40px -32px rgba(30, 35, 41, 0.28);
  }

  .landing-login-card h2 {
    margin-bottom: 4px;
    font-size: 1.05rem;
  }

  .landing-login-lead {
    margin-bottom: 10px;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .landing-login-card .alert {
    margin-bottom: 8px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .landing-social-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .landing-social-btn {
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 8px 4px;
    gap: 4px;
    font-size: 0.68rem;
    line-height: 1.25;
    text-align: center;
    border-radius: 8px;
  }

  .landing-social-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .landing-social-icon svg {
    width: 16px;
    height: 16px;
  }

  .landing-divider {
    margin: 10px 0;
    font-size: 0.72rem;
  }

  .landing-auth-tabs {
    gap: 4px;
    margin-bottom: 10px;
  }

  .landing-auth-tabs a {
    min-height: 32px;
    font-size: 0.76rem;
    border-radius: 6px;
  }

  .landing-auth-form {
    gap: 8px;
  }

  .landing-field {
    gap: 4px;
  }

  .landing-field span {
    font-size: 0.72rem;
  }

  .landing-field input {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.86rem;
    border-radius: 8px;
  }

  .landing-password-toggle {
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.7rem;
    border-radius: 8px;
  }

  .landing-form-meta {
    font-size: 0.72rem;
  }

  .landing-check {
    gap: 4px;
  }

  .landing-submit-btn {
    min-height: 40px;
    font-size: 0.86rem;
    border-radius: 8px;
  }

  .landing-team-access {
    margin-top: 6px;
    font-size: 0.76rem;
  }

  .landing-team-access summary {
    padding: 4px 0;
  }

  .landing-auth-switch {
    margin-top: 10px;
    font-size: 0.76rem;
  }
}

/* ===== Landing/header fixes (menu opacity + image sizes) ===== */
.has-site-header .site-header {
  background: #ffffff;
  border-bottom: 1px solid #e8ecef;
}

body.is-site-menu-open .site-header {
  background: #ffffff;
  backdrop-filter: none;
}

body.is-site-menu-open {
  overflow: hidden;
}

.site-header-inner {
  position: relative;
  z-index: 2;
}

.site-brand-mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
}

.landing-page-body .site-brand-mark:not(:has(img)),
.legal-page-body .site-brand-mark:not(:has(img)) {
  background: #03a94d;
  color: #fff;
}

.site-brand-mark:has(img) {
  background: #ffffff !important;
  padding: 4px;
  border: 1px solid #e8ecef;
  box-shadow: none;
}

.site-brand-mark img {
  width: 100%;
  height: 100%;
  max-width: 32px;
  max-height: 32px;
  margin: auto;
  object-fit: contain;
  display: block;
}

.site-menu-toggle {
  flex: 0 0 42px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-left: auto;
}

.site-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

.site-mobile-menu.is-open {
  display: block;
  pointer-events: auto;
}

.site-mobile-menu[hidden]:not(.is-open) {
  display: none !important;
}

.site-mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: none;
  z-index: 1;
}

.site-mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2;
  width: min(88vw, 320px);
  height: 100%;
  max-height: 100dvh;
  padding: 18px 16px 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  background: #ffffff;
  opacity: 1;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
}

.landing-social-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
}

.landing-social-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.landing-social-naver .landing-social-icon {
  background: transparent;
}

.landing-social-kakao .landing-social-icon {
  background: rgba(255, 255, 255, 0.5);
}

.landing-social-btn {
  gap: 10px;
}

.landing-point-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
}

.landing-hero-points li {
  align-items: center;
}

@media (max-width: 960px) {
  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .site-brand {
    min-width: 0;
    overflow: hidden;
  }

  .site-brand-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Landing + footer mobile compact */
@media (max-width: 480px) {
  .landing-main {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 12px;
  }

  .landing-hero {
    padding: 8px 0 10px;
    gap: 8px;
  }

  .landing-kicker {
    margin-bottom: 4px;
    padding: 2px 7px;
    font-size: 0.64rem;
  }

  .landing-hero h1 {
    margin-bottom: 4px;
    font-size: 1.18rem;
    line-height: 1.2;
  }

  .landing-lead {
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .landing-hero-points {
    gap: 4px;
    margin-top: 6px;
  }

  .landing-hero-points li {
    padding: 5px 3px;
    font-size: 0.6rem;
    border-radius: 6px;
  }

  .landing-point-icon {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
    font-size: 10px;
  }

  .landing-login-card {
    padding: 12px 10px;
  }

  .landing-login-card h2 {
    font-size: 1rem;
  }

  .landing-login-lead {
    margin-bottom: 8px;
    font-size: 0.74rem;
  }

  .landing-social-btn {
    padding: 7px 3px;
    font-size: 0.64rem;
  }

  .landing-divider {
    margin: 8px 0;
  }

  .landing-auth-tabs a {
    min-height: 30px;
    font-size: 0.74rem;
  }

  .landing-field input,
  .landing-password-toggle,
  .landing-submit-btn {
    min-height: 38px;
  }

  .landing-auth-form {
    gap: 6px;
  }

  .landing-features {
    padding: 10px 0 12px;
  }

  .landing-section-head {
    margin-bottom: 10px;
  }

  .landing-section-head h2 {
    font-size: 1.05rem;
  }

  .landing-section-head p {
    font-size: 0.8rem;
  }

  .landing-feature-grid {
    gap: 8px;
  }

  .landing-feature-card {
    padding: 12px 10px;
  }

  .landing-bottom {
    gap: 8px;
  }

  .landing-trends .landing-panel {
    padding: 10px 10px;
  }

  .landing-trend-list {
    gap: 4px;
  }

  .landing-trend-list li {
    padding: 6px 3px;
    gap: 2px;
  }

  .landing-trend-list li strong {
    font-size: 0.6rem;
  }

  .landing-trend-list li span {
    font-size: 0.66rem;
  }

  .site-footer-inner {
    padding: 20px 14px 14px;
  }

  .site-footer-main {
    gap: 14px;
    padding-bottom: 12px;
  }

  .site-footer-nav-grid,
  .site-footer-columns {
    gap: 8px 6px;
  }

  .site-footer-meta {
    gap: 4px 8px;
  }

  .site-footer-meta div {
    font-size: 0.7rem;
  }

  .site-footer-bar,
  .site-footer-bottom {
    padding-top: 8px;
    gap: 6px;
  }

  .site-footer-col h3 {
    margin-bottom: 6px;
  }

  .site-footer-links {
    gap: 3px;
  }

  .site-footer-links a {
    font-size: 0.74rem;
  }
}


/* Restore main landing breathing room after the compact mobile pass. */
@media (max-width: 640px) {
  .landing-main {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 24px;
  }

  .landing-hero {
    padding: 18px 0 22px;
    gap: 16px;
  }

  .landing-kicker {
    margin-bottom: 8px;
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .landing-hero h1 {
    margin-bottom: 8px;
    font-size: 1.42rem;
    line-height: 1.24;
  }

  .landing-hero h1 br {
    display: initial;
  }

  .landing-lead {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .landing-hero-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
  }

  .landing-hero-points li {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 0;
    padding: 7px 4px;
    font-size: 0.62rem;
    border-radius: 9px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }

  .landing-point-icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
    font-size: 11px;
  }

  .landing-login-card {
    max-width: 100%;
    overflow: hidden;
    padding: 16px 14px;
    border-radius: 14px;
  }

  .landing-login-card h2 {
    font-size: 1.08rem;
  }

  .landing-login-lead {
    margin-bottom: 12px;
    font-size: 0.82rem;
  }

  .landing-social-btn {
    flex-direction: row;
    min-width: 0;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
  }

  .landing-social-stack {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .landing-divider {
    margin: 12px 0;
  }

  .landing-auth-tabs a {
    min-height: 34px;
    font-size: 0.78rem;
  }

  .landing-field input,
  .landing-password-toggle,
  .landing-submit-btn {
    min-height: 42px;
  }

  .landing-auth-form {
    gap: 10px;
  }

  .landing-features {
    padding: 16px 0 20px;
  }

  .landing-section-head {
    margin-bottom: 16px;
  }

  .landing-section-head h2 {
    font-size: 1.18rem;
  }

  .landing-feature-card {
    padding: 14px 10px;
  }

  .landing-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .landing-feature-card h3 {
    font-size: 0.76rem;
    line-height: 1.25;
    white-space: nowrap;
  }

  .landing-feature-card p {
    font-size: 0.7rem;
    line-height: 1.42;
  }

  .landing-bottom {
    gap: 12px;
  }

  .landing-trends .landing-panel {
    padding: 14px;
  }

  .landing-trend-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .landing-trend-list li {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 8px 4px;
    gap: 3px;
    text-align: center;
  }

  .landing-trend-list li strong {
    font-size: 0.62rem;
    line-height: 1.25;
    white-space: nowrap;
  }

  .landing-trend-list li span {
    font-size: 0.66rem;
    white-space: nowrap;
  }

  .site-footer-inner {
    padding: 28px 16px 18px;
  }
}


/* Final admin company table action alignment */
.admin-users-table td:last-child {
  min-width: 154px;
}

.admin-user-actions {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 6px !important;
  justify-items: unset !important;
  white-space: nowrap;
}

.admin-user-actions .admin-user-role-form {
  display: inline-flex !important;
  margin: 0 !important;
}

.admin-user-actions .admin-user-role-button {
  min-height: 28px !important;
  padding: 0 8px !important;
  border-radius: 8px !important;
  font-size: 10.5px !important;
  font-weight: 900;
  line-height: 1;
}

/* Position check visual upgrade */
.rank-check-visual-body {
  --rank-ink: #121b2a;
  --rank-muted: #6d7788;
  --rank-line: #e6ebf1;
  --rank-soft: #f6f9f7;
  --rank-green: #12975f;
  --rank-green-dark: #08754a;
  --rank-green-soft: #eaf8f1;
  --rank-shadow: 0 22px 55px -38px rgba(20, 32, 55, 0.34);
}

.rank-check-visual-body.image-dashboard-body {
  background:
    radial-gradient(circle at 14% -8%, rgba(18, 151, 95, 0.09), transparent 30rem),
    radial-gradient(circle at 90% 8%, rgba(85, 119, 200, 0.08), transparent 28rem),
    linear-gradient(180deg, #fbfcfd 0%, #f5f7fa 100%);
}

.rank-check-visual-body .image-dashboard-main {
  padding-top: 24px !important;
}

.rank-check-visual-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
}

.rank-check-visual-header h1 {
  margin: 0;
  color: var(--rank-ink);
  font-size: clamp(25px, 2.3vw, 34px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.18;
}

.rank-check-visual-header p {
  margin: 7px 0 0;
  color: var(--rank-muted);
  font-size: 14px;
  font-weight: 750;
}

.rank-check-new-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(18, 151, 95, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, #18a66c, #08754a);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 18px 34px -24px rgba(8, 117, 74, 0.76), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rank-check-new-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px -24px rgba(8, 117, 74, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.rank-check-new-link:active {
  transform: translateY(0) scale(0.98);
}

.rank-check-new-link::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rank-check-visual-body .rank-check-page-wrap {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.rank-check-visual-body .rank-check-page-stack {
  gap: 20px;
}

.rank-check-visual-body .rank-check-setup-panel {
  overflow: hidden;
  padding: 22px !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 92% 0%, rgba(18, 151, 95, 0.09), transparent 18rem),
    #fff !important;
  box-shadow: var(--rank-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.rank-check-visual-body .rank-check-setup-panel > .member-panel-head {
  display: none;
}

.rank-check-visual-body .rank-check-setup-panel .rank-check-form {
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid {
  grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 0.9fr) minmax(280px, 1.15fr);
  gap: 18px;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label {
  gap: 8px;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label span {
  color: #6d7788;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid input {
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(218, 226, 236, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--rank-ink);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 26px -22px rgba(20, 32, 55, 0.44);
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid input::placeholder {
  color: #9aa5b5;
  font-weight: 750;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid input:focus {
  border-color: rgba(18, 151, 95, 0.52);
  box-shadow: 0 0 0 4px rgba(18, 151, 95, 0.1);
}

.rank-check-visual-body .rank-check-setup-panel .rank-service-row {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.rank-check-visual-body .rank-service-toggle-group {
  gap: 8px;
}

.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(220, 227, 235, 0.95);
  border-radius: 10px;
  background: #fff;
  color: #26364a;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 22px -18px rgba(20, 32, 55, 0.4);
}

.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle span::before {
  content: "";
  width: 15px;
  height: 15px;
  background: currentColor;
}

.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle input[value="blog"] + span::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 3h9l3 3v15H6z'/%3E%3Cpath d='M14 3v4h4'/%3E%3Cpath d='M9 12h6'/%3E%3Cpath d='M9 16h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 3h9l3 3v15H6z'/%3E%3Cpath d='M14 3v4h4'/%3E%3Cpath d='M9 12h6'/%3E%3Cpath d='M9 16h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle input[value="cafe"] + span::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8h12v6a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4z'/%3E%3Cpath d='M16 9h1a3 3 0 0 1 0 6h-1'/%3E%3Cpath d='M6 20h10'/%3E%3Cpath d='M8 4v2'/%3E%3Cpath d='M12 4v2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8h12v6a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4z'/%3E%3Cpath d='M16 9h1a3 3 0 0 1 0 6h-1'/%3E%3Cpath d='M6 20h10'/%3E%3Cpath d='M8 4v2'/%3E%3Cpath d='M12 4v2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle input[value="kin"] + span::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 19a7 7 0 1 0-7-7'/%3E%3Cpath d='M12 17v2'/%3E%3Cpath d='M9.1 9a3 3 0 1 1 4.9 2.3c-.9.6-2 1.3-2 2.7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 19a7 7 0 1 0-7-7'/%3E%3Cpath d='M12 17v2'/%3E%3Cpath d='M9.1 9a3 3 0 1 1 4.9 2.3c-.9.6-2 1.3-2 2.7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle input:checked + span {
  border-color: rgba(18, 151, 95, 0.24);
  background: #effaf4;
  color: var(--rank-green-dark);
}

.rank-check-visual-body .rank-check-setup-panel .rank-form-hint {
  margin: 0;
  color: #7b8795;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button {
  min-width: 154px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 950;
}

.rank-watch-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) minmax(360px, 1.55fr);
  gap: 14px;
}

.rank-watch-stat {
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--rank-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.rank-watch-stat__icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #edf6ff;
  color: #4f74ce;
}

.rank-watch-stat__icon::before {
  content: "";
  display: block;
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 19V5'/%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M8 15l3-4 3 2 4-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 19V5'/%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M8 15l3-4 3 2 4-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rank-watch-stat--auto .rank-watch-stat__icon {
  background: #eaf8f1;
  color: var(--rank-green-dark);
}

.rank-watch-stat--auto .rank-watch-stat__icon::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3l7 4v5c0 4.5-2.9 7.6-7 9-4.1-1.4-7-4.5-7-9V7z'/%3E%3Cpath d='M9 12l2 2 4-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3l7 4v5c0 4.5-2.9 7.6-7 9-4.1-1.4-7-4.5-7-9V7z'/%3E%3Cpath d='M9 12l2 2 4-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rank-watch-stat--keyword .rank-watch-stat__icon {
  background: #f4f0ff;
  color: #7959d8;
}

.rank-watch-stat--keyword .rank-watch-stat__icon::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M7 4v6'/%3E%3Cpath d='M17 14v6'/%3E%3Cpath d='M4 17h16'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M7 4v6'/%3E%3Cpath d='M17 14v6'/%3E%3Cpath d='M4 17h16'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rank-watch-stat--time .rank-watch-stat__icon {
  background: #fff6e8;
  color: #c77b13;
}

.rank-watch-stat--time .rank-watch-stat__icon::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Cpath d='M3 10h18'/%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Cpath d='M3 10h18'/%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Operator dashboard shell refresh */
body.image-dashboard-body {
  --operator-green: #08784a;
  --operator-green-soft: #eef8f2;
  --operator-ink: #111827;
  --operator-muted: #667085;
  --operator-line: #e4e9ee;
  background:
    radial-gradient(circle at 18% 8%, rgba(8, 120, 74, 0.07), transparent 22rem),
    linear-gradient(135deg, #f7faf8 0%, #f3f7f5 100%) !important;
  color: var(--operator-ink);
}

body.image-dashboard-body .image-dashboard-shell {
  min-height: 100dvh !important;
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 24px !important;
  padding: 28px 24px 28px 0 !important;
}

body.image-dashboard-body .image-sidebar {
  position: sticky !important;
  top: 28px !important;
  width: 112px !important;
  height: calc(100dvh - 56px) !important;
  min-height: 640px !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: 16px !important;
  padding: 24px 7px 16px !important;
  border: 1px solid rgba(228, 233, 238, 0.92) !important;
  border-left: 0 !important;
  border-radius: 0 18px 18px 0 !important;
  background: rgba(255, 255, 255, 0.93) !important;
  box-shadow: 16px 24px 58px -46px rgba(17, 24, 39, 0.48) !important;
  backdrop-filter: blur(18px) !important;
}

body.image-dashboard-body .image-sidebar-brand-row {
  min-height: 54px !important;
  justify-content: center !important;
  padding: 0 !important;
}

body.image-dashboard-body .image-sidebar-brand {
  width: 54px !important;
  height: 54px !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0 !important;
  border-radius: 16px !important;
  color: var(--operator-green) !important;
  text-decoration: none !important;
}

body.image-dashboard-body .image-sidebar-brand span {
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, #effaf4, #ffffff) !important;
  color: var(--operator-green) !important;
  box-shadow: inset 0 0 0 1px rgba(8, 120, 74, 0.12) !important;
}

body.image-dashboard-body .image-sidebar-brand span img {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
}

body.image-dashboard-body .image-sidebar-brand strong,
body.image-dashboard-body .image-sidebar-brand em,
body.image-dashboard-body .image-sidebar-collapse,
body.image-dashboard-body .image-sidebar-workbench,
body.image-dashboard-body .image-sidebar-nav-label,
body.image-dashboard-body .image-sidebar-divider,
body.image-dashboard-body .image-admin-sidebar-panel {
  display: none !important;
}

body.image-dashboard-body .image-sidebar-scroll {
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: visible !important;
  padding: 0 !important;
  scrollbar-width: none !important;
}

body.image-dashboard-body .image-sidebar-scroll::-webkit-scrollbar {
  display: none !important;
}

body.image-dashboard-body .image-sidebar-nav,
body.image-dashboard-body .image-sidebar-nav.is-admin-nav {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 5px !important;
  padding: 0 !important;
}

body.image-dashboard-body .image-sidebar-nav a,
body.image-dashboard-body .image-sidebar-nav.is-admin-nav a {
  position: relative !important;
  min-width: 0 !important;
  min-height: 63px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  align-content: center !important;
  gap: 5px !important;
  padding: 7px 4px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #606a75 !important;
  font-size: 11px !important;
  font-weight: 860 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  text-decoration: none !important;
  transform: none !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-sidebar-nav a::before {
  content: "" !important;
  position: absolute !important;
  top: 8px !important;
  bottom: 8px !important;
  left: -8px !important;
  width: 4px !important;
  border-radius: 0 999px 999px 0 !important;
  background: transparent !important;
  opacity: 1 !important;
  transform: none !important;
}

body.image-dashboard-body .image-sidebar-nav a > span:not(.image-nav-icon) {
  max-width: 78px !important;
  display: block !important;
  overflow: hidden !important;
  color: inherit !important;
  font-size: 11px !important;
  font-weight: 860 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.image-dashboard-body .image-sidebar-nav a .image-nav-icon {
  width: 31px !important;
  height: 31px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: currentColor !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-sidebar-nav a .image-line-icon {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2.2 !important;
}

body.image-dashboard-body .image-sidebar-nav a:hover,
body.image-dashboard-body .image-sidebar-nav a.is-active,
body.image-dashboard-body .image-sidebar-nav.is-admin-nav a:hover,
body.image-dashboard-body .image-sidebar-nav.is-admin-nav a.is-active {
  background: var(--operator-green-soft) !important;
  color: var(--operator-green) !important;
  transform: none !important;
}

body.image-dashboard-body .image-sidebar-nav a.is-active::before {
  background: var(--operator-green) !important;
}

body.image-dashboard-body .image-sidebar-nav a.is-active .image-nav-icon {
  background: linear-gradient(145deg, #13945f, #08784a) !important;
  color: #fff !important;
  box-shadow: 0 14px 26px -18px rgba(8, 120, 74, 0.88) !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user {
  display: grid !important;
  justify-items: center !important;
  gap: 7px !important;
  padding: 8px 0 0 !important;
  border-top: 0 !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-main {
  display: grid !important;
  justify-items: center !important;
  gap: 6px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-avatar {
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-avatar > span {
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, #eef1f4, #dfe5e9) !important;
  color: #6b7280 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-meta {
  width: 100% !important;
  display: grid !important;
  justify-items: center !important;
  gap: 3px !important;
  text-align: center !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-name-row {
  display: grid !important;
  justify-items: center !important;
  gap: 2px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-name-row strong {
  max-width: 82px !important;
  color: #1f2937 !important;
  font-size: 11px !important;
  font-weight: 880 !important;
  line-height: 1.2 !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-name-row::after {
  content: "운영 중";
  color: var(--operator-green);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-meta em,
body.image-dashboard-body .image-sidebar .image-sidebar-plan-summary,
body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
  display: none !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home {
  width: 100% !important;
  max-width: none !important;
  min-height: calc(100dvh - 56px) !important;
  margin: 0 !important;
  padding: 42px 30px 34px !important;
  border: 1px solid rgba(228, 233, 238, 0.9) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 24px 68px -58px rgba(17, 24, 39, 0.46) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(300px, 0.86fr) minmax(420px, 1.14fr) !important;
  grid-template-areas:
    "kicker actions"
    "title actions"
    "lead actions"
    "stats stats" !important;
  align-items: start !important;
  column-gap: 28px !important;
  row-gap: 8px !important;
  margin: 0 0 22px !important;
  padding: 14px 16px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero::before,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero::after {
  display: none !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-copy {
  display: contents !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-head {
  grid-area: kicker !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-hero-kicker {
  margin: 0 !important;
  color: var(--operator-green) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: 0.08em !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-badge {
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  border: 1px solid rgba(8, 120, 74, 0.2) !important;
  border-radius: 999px !important;
  background: #f4fbf7 !important;
  color: var(--operator-green) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero h1 {
  grid-area: title !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 12px !important;
  max-width: 760px !important;
  margin: 0 !important;
  color: #111827 !important;
  font-size: clamp(30px, 3.25vw, 44px) !important;
  font-weight: 950 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-name {
  color: #111827 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-title {
  color: var(--operator-green) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-lead {
  grid-area: lead !important;
  max-width: 560px !important;
  margin: 4px 0 0 !important;
  color: var(--operator-muted) !important;
  font-size: 15px !important;
  font-weight: 740 !important;
  line-height: 1.45 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-actions {
  grid-area: actions !important;
  align-self: start !important;
  display: grid !important;
  justify-items: end !important;
  gap: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin: 0 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tool-btn {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  border: 1px solid rgba(228, 233, 238, 0.95) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #111827 !important;
  box-shadow: 0 14px 32px -28px rgba(17, 24, 39, 0.45) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect {
  width: min(100%, 660px) !important;
  display: grid !important;
  grid-template-columns: minmax(320px, 1fr) auto !important;
  grid-template-areas:
    "search search"
    ". services" !important;
  justify-items: end !important;
  align-items: start !important;
  gap: 10px 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-search-row {
  grid-area: search !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) 64px !important;
  gap: 0 !important;
  align-items: stretch !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-keyword-stack {
  min-width: 0 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-keywords {
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  border: 1px solid rgba(209, 216, 224, 0.95) !important;
  border-right: 0 !important;
  border-radius: 10px 0 0 10px !important;
  background: #fff !important;
  box-shadow: 0 12px 28px -25px rgba(17, 24, 39, 0.42) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-keywords::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-left: 16px;
  background: #667085;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home #hero-keywords {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 13px 15px 12px 10px !important;
  border: 0 !important;
  background: transparent !important;
  color: #1f2937 !important;
  font-size: 15px !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
  resize: none !important;
  box-shadow: none !important;
  outline: 0 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home #hero-keywords::placeholder {
  color: #8a94a1 !important;
  font-weight: 760 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-keyword-help {
  display: none !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-submit {
  min-width: 64px !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 17px !important;
  border: 0 !important;
  border-radius: 0 10px 10px 0 !important;
  background: linear-gradient(135deg, #0c8250, #076d43) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 920 !important;
  box-shadow: 0 16px 28px -22px rgba(8, 120, 74, 0.82) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-services {
  grid-area: services !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin: 0 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
  min-width: 74px !important;
  min-height: 43px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(8, 120, 74, 0.2) !important;
  border-radius: 9px !important;
  background: #f8fbf9 !important;
  color: #1f2937 !important;
  font-size: 13px !important;
  font-weight: 880 !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-services .toggle-pill span i {
  display: none !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-services .toggle-pill input:checked + span {
  background: var(--operator-green-soft) !important;
  color: var(--operator-green) !important;
  box-shadow: inset 0 0 0 1px rgba(8, 120, 74, 0.06) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats {
  grid-area: stats !important;
  min-height: 84px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  align-items: center !important;
  margin: 16px 0 0 !important;
  padding: 0 34px !important;
  border: 1px solid rgba(228, 233, 238, 0.96) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 20px 42px -34px rgba(17, 24, 39, 0.46) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span {
  min-height: 60px !important;
  display: grid !important;
  grid-template-columns: 50px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  column-gap: 14px !important;
  padding: 0 30px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span + span {
  border-left: 1px solid rgba(228, 233, 238, 0.96) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats .image-line-icon {
  grid-row: 1 / 3 !important;
  width: 50px !important;
  height: 50px !important;
  padding: 13px !important;
  border-radius: 999px !important;
  background: #eaf6ef !important;
  color: var(--operator-green) !important;
  stroke-width: 2.2 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats em {
  margin: 0 !important;
  color: #374151 !important;
  font-size: 14px !important;
  font-weight: 840 !important;
  line-height: 1.15 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats b {
  margin: 3px 0 0 !important;
  color: #111827 !important;
  font-size: 27px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-grid {
  gap: 16px !important;
  margin-top: 0 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card {
  min-height: 218px !important;
  padding: 26px 26px 22px !important;
  border-radius: 14px !important;
  border-color: rgba(228, 233, 238, 0.96) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 18px 40px -34px rgba(17, 24, 39, 0.46) !important;
}

@media (max-width: 1180px) {
  body.image-dashboard-body .image-dashboard-shell {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 18px !important;
    padding-right: 18px !important;
  }

  body.image-dashboard-body .image-sidebar {
    width: 96px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "kicker"
      "title"
      "lead"
      "actions"
      "stats" !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-actions {
    justify-items: start !important;
    gap: 14px !important;
    margin-top: 10px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect {
    justify-items: start !important;
  }
}

@media (max-width: 900px) {
  body.image-dashboard-body .image-dashboard-shell {
    display: block !important;
    padding: 0 !important;
  }

  body.image-dashboard-body .image-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 80 !important;
    width: min(320px, 86vw) !important;
    height: 100dvh !important;
    min-height: 0 !important;
    padding: 22px 16px 16px !important;
    border: 1px solid rgba(228, 233, 238, 0.92) !important;
    border-radius: 0 18px 18px 0 !important;
  }

  body.image-dashboard-body .image-sidebar-brand strong,
  body.image-dashboard-body .image-sidebar-brand em {
    display: none !important;
  }

  body.image-dashboard-body .image-sidebar-nav a,
  body.image-dashboard-body .image-sidebar-nav.is-admin-nav a {
    min-height: 56px !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    justify-items: start !important;
    align-content: center !important;
    padding: 8px 10px !important;
    text-align: left !important;
  }

  body.image-dashboard-body .image-sidebar-nav a > span:not(.image-nav-icon) {
    max-width: none !important;
    white-space: nowrap !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home {
    min-height: 100dvh !important;
    padding: 58px 14px 24px !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
    padding: 8px 0 0 !important;
    row-gap: 7px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-head {
    min-height: 34px !important;
    padding-left: 76px !important;
    margin-bottom: 8px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero h1 {
    font-size: clamp(27px, 8vw, 36px) !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect {
    width: 100% !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "search"
      "services" !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-search-row {
    grid-template-columns: minmax(0, 1fr) 58px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-services {
    width: 100% !important;
    justify-content: stretch !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-services .toggle-pill {
    flex: 1 1 0 !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats {
    min-height: 74px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin-top: 10px !important;
    padding: 0 8px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span {
    min-height: 58px !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 4px !important;
    padding: 0 5px !important;
    text-align: center !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span + span {
    border-left: 1px solid rgba(228, 233, 238, 0.96) !important;
    border-top: 0 !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats .image-line-icon {
    display: none !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span em {
    display: block !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span b {
    display: block !important;
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1 !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card {
    min-height: 160px !important;
  }
}


/* ===== Usability refresh for ad.owlxai.com landing ===== */
.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.landing-cta-secondary {
  background: #ffffff;
  color: #1e2329;
  border: 1px solid #dbe5df;
  box-shadow: none;
}

.landing-quick-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 440px;
}

.landing-quick-steps li {
  min-height: 72px;
  padding: 12px 10px;
  border: 1px solid #e2ece7;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px -28px rgba(30, 35, 41, 0.35);
}

.landing-quick-steps strong {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #03a94d;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.landing-quick-steps span {
  display: block;
  color: #1e2329;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.25;
}

.landing-login-card {
  border-color: rgba(3, 169, 77, 0.22);
}

.landing-submit-btn,
.landing-social-btn,
.header-btn,
.site-mobile-nav-link {
  touch-action: manipulation;
}

@media (max-width: 640px) {
  .landing-cta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .landing-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .landing-quick-steps {
    margin-top: 10px;
    max-width: none;
    gap: 6px;
  }

  .landing-quick-steps li {
    min-height: 58px;
    padding: 8px 6px;
    border-radius: 10px;
  }

  .landing-quick-steps strong {
    width: 22px;
    height: 22px;
    margin-bottom: 5px;
    font-size: 0.7rem;
  }

  .landing-quick-steps span {
    font-size: 0.68rem;
    text-align: center;
    word-break: keep-all;
  }

  .landing-hero-points {
    margin-top: 8px;
  }
}


/* Hermes 20260618 usability/security upgrade */
.dashboard-quickstart-panel {
  margin: 18px 0 22px;
  padding: 22px;
  border: 1px solid rgba(47, 111, 78, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(226,239,230,.72));
  box-shadow: 0 22px 50px -42px rgba(23,26,22,.5);
}
.dashboard-quickstart-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.dashboard-quickstart-head p { margin:0 0 5px; color:var(--accent); font-size:12px; font-weight:900; letter-spacing:.08em; }
.dashboard-quickstart-head h2 { margin:0; font-size:clamp(1.25rem,2vw,1.65rem); }
.dashboard-quickstart-head span { display:block; margin-top:7px; color:var(--muted); line-height:1.6; }
.dashboard-quickstart-head-link,
.dashboard-quickstart-steps a,
.image-empty-action a,
.rank-empty-action a { text-decoration:none; }
.dashboard-quickstart-head-link { flex:0 0 auto; padding:10px 14px; border-radius:999px; background:var(--ink); color:#fff; font-weight:800; font-size:13px; }
.dashboard-quickstart-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; padding:0; margin:18px 0 0; list-style:none; }
.dashboard-quickstart-steps li { display:flex; gap:12px; padding:15px; border:1px solid rgba(203,211,195,.9); border-radius:18px; background:rgba(255,255,255,.78); }
.dashboard-quickstart-steps li>strong { width:30px; height:30px; display:grid; place-items:center; border-radius:999px; background:#eef2ef; color:var(--accent); font-weight:900; }
.dashboard-quickstart-steps li.is-done>strong { background:var(--accent); color:#fff; }
.dashboard-quickstart-steps h3 { margin:0 0 5px; font-size:15px; }
.dashboard-quickstart-steps p { margin:0; color:var(--muted); font-size:13px; line-height:1.55; }
.dashboard-quickstart-steps a { display:inline-flex; margin-top:10px; color:var(--accent); font-weight:900; font-size:13px; }
.image-empty-action, .result-history-empty--action, .rank-empty-action { display:grid; gap:10px; justify-items:start; text-align:left; }
.image-empty-action span { color:var(--muted); font-size:13px; }
.image-empty-action a, .empty-action-row a { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:0 13px; border-radius:999px; background:var(--accent); color:#fff; font-weight:900; }
.empty-action-row { display:flex; flex-wrap:wrap; gap:10px; margin-top:4px; }
.empty-action-row .ghost-button { background:#fff; color:var(--ink); border:1px solid var(--line); }
.landing-faq { width:min(1180px, calc(100% - 32px)); margin:34px auto; }
.landing-faq-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.landing-faq details { padding:18px 20px; border:1px solid rgba(203,211,195,.82); border-radius:18px; background:rgba(255,255,255,.84); box-shadow:0 18px 45px -40px rgba(23,26,22,.48); }
.landing-faq summary { cursor:pointer; font-weight:900; }
.landing-faq p { margin:12px 0 0; color:var(--muted); line-height:1.7; }
.mobile-bottom-nav { display:none; }
@media (max-width: 860px) {
  .dashboard-body { padding-bottom:78px; }
  .dashboard-quickstart-head { display:grid; }
  .dashboard-quickstart-head-link { width:100%; justify-content:center; text-align:center; }
  .dashboard-quickstart-steps { grid-template-columns:1fr; }
  .landing-faq-grid { grid-template-columns:1fr; }
  .mobile-bottom-nav { position:fixed; left:10px; right:10px; bottom:10px; z-index:90; display:grid; grid-template-columns:repeat(4,1fr); gap:6px; padding:8px; border:1px solid rgba(203,211,195,.9); border-radius:22px; background:rgba(255,255,255,.94); box-shadow:0 18px 50px -28px rgba(23,26,22,.45); backdrop-filter:blur(16px); }
  .mobile-bottom-nav a { min-height:50px; display:grid; place-items:center; gap:2px; color:var(--muted); text-decoration:none; border-radius:16px; font-size:11px; font-weight:900; }
  .mobile-bottom-nav a.is-active { background:var(--ink); color:#fff; }
  .mobile-bottom-nav svg { width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:2; }
  .mobile-bottom-nav em { font-style:normal; }
}


/* Result history filters */
.result-filter-bar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
  margin: 0 0 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(246,248,252,.9));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.result-filter-search,
.result-filter-select {
  display: grid;
  gap: 6px;
  color: #64707d;
  font-size: 12px;
  font-weight: 800;
}

.result-filter-search { flex: 1 1 260px; }
.result-filter-select { flex: 0 1 170px; }

.result-filter-search input,
.result-filter-select select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 14px;
  padding: 0 13px;
  background: #fff;
  color: #1f2937;
  font-weight: 800;
}

.result-filter-reset {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: #64707d;
  font-weight: 900;
  text-decoration: none;
}

.result-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.result-filter-chips a,
.result-filter-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255,255,255,.86);
  color: #64707d;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.result-filter-chips a.is-active {
  border-color: rgba(11, 122, 73, .22);
  background: #ecfdf5;
  color: #0b7a49;
}

@media (max-width: 720px) {
  .result-filter-bar { align-items: stretch; }
  .result-filter-bar .ghost-button,
  .result-filter-reset { width: 100%; justify-content: center; }
}


.result-history-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.result-history-empty-actions .image-new-button,
.result-history-empty-actions .ghost-button {
  min-height: 40px;
}

@media (max-width: 560px) {
  .result-history-empty-actions {
    width: 100%;
  }

  .result-history-empty-actions .image-new-button,
  .result-history-empty-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }
}


/* Hermes UX/UI refinement layer — design tokens, action hierarchy, forms, alerts */
:root {
  --ux-bg: #f8fafc;
  --ux-surface: rgba(255, 255, 255, 0.88);
  --ux-surface-solid: #ffffff;
  --ux-surface-muted: #f1f5f9;
  --ux-ink: #0f172a;
  --ux-muted: #64748b;
  --ux-subtle: #94a3b8;
  --ux-line: rgba(148, 163, 184, 0.24);
  --ux-line-strong: rgba(30, 64, 175, 0.22);
  --ux-primary: #1e40af;
  --ux-primary-hover: #2563eb;
  --ux-primary-soft: #eff6ff;
  --ux-accent: #f59e0b;
  --ux-success: #0f766e;
  --ux-success-soft: #ecfdf5;
  --ux-warning: #b45309;
  --ux-warning-soft: #fffbeb;
  --ux-danger: #dc2626;
  --ux-danger-soft: #fef2f2;
  --ux-info: #0369a1;
  --ux-info-soft: #f0f9ff;
  --ux-radius-sm: 12px;
  --ux-radius-md: 16px;
  --ux-radius-lg: 22px;
  --ux-radius-xl: 28px;
  --ux-shadow-sm: 0 12px 30px -24px rgba(15, 23, 42, 0.32);
  --ux-shadow-md: 0 24px 58px -42px rgba(15, 23, 42, 0.42);
  --ux-shadow-lg: 0 34px 90px -54px rgba(30, 64, 175, 0.46);
  --ux-focus-ring: 0 0 0 4px rgba(59, 130, 246, 0.16);
  --ux-transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.image-dashboard-body {
  --image-bg: var(--ux-bg);
  --image-surface: var(--ux-surface);
  --image-surface-solid: var(--ux-surface-solid);
  --image-ink: var(--ux-ink);
  --image-muted: var(--ux-muted);
  --image-line: var(--ux-line);
  --image-line-strong: var(--ux-line-strong);
  --image-accent: var(--ux-primary);
  --image-accent-2: var(--ux-primary-hover);
  --image-cta: var(--ux-accent);
  --image-soft: var(--ux-primary-soft);
  --image-shadow: var(--ux-shadow-md);
  --image-shadow-strong: var(--ux-shadow-lg);
}

.image-dashboard-body :where(a, button, input, textarea, select) {
  transition:
    color var(--ux-transition),
    background var(--ux-transition),
    border-color var(--ux-transition),
    box-shadow var(--ux-transition),
    transform var(--ux-transition),
    opacity var(--ux-transition);
}

.image-dashboard-body :where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.36);
  outline-offset: 3px;
}

/* Action hierarchy: primary, secondary, danger and neutral buttons */
.image-dashboard-body :where(.image-new-button, .image-start-button, .image-dashboard-hero-submit, .auth-submit) {
  min-height: 44px;
  border-radius: var(--ux-radius-md);
  background: linear-gradient(135deg, var(--ux-primary) 0%, var(--ux-primary-hover) 100%) !important;
  color: #fff !important;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: 0 22px 46px -28px rgba(30, 64, 175, 0.72), inset 0 1px 0 rgba(255,255,255,0.22) !important;
}

.image-dashboard-body :where(.image-new-button, .image-start-button, .image-dashboard-hero-submit, .auth-submit):hover {
  transform: translateY(-1px);
  box-shadow: 0 28px 60px -34px rgba(30, 64, 175, 0.78), inset 0 1px 0 rgba(255,255,255,0.26) !important;
}

.image-dashboard-body :where(.ghost-button, .image-inline-button, .download-button, .image-advertiser-manage-btn, .dashboard-quickstart-head-link, .image-card-head a) {
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--ux-line) !important;
  border-radius: 999px;
  background: rgba(255,255,255,0.76) !important;
  color: var(--ux-primary) !important;
  font-weight: 850;
  text-decoration: none;
  box-shadow: var(--ux-shadow-sm), inset 0 1px 0 rgba(255,255,255,0.9);
}

.image-dashboard-body :where(.ghost-button, .image-inline-button, .download-button, .image-advertiser-manage-btn, .dashboard-quickstart-head-link, .image-card-head a):hover {
  border-color: var(--ux-line-strong) !important;
  background: #fff !important;
  transform: translateY(-1px);
}

.image-dashboard-body :where(.result-delete-button, .watcher-delete-button, .image-user-action--danger, button[name="delete"], button[value="delete"]) {
  border-color: rgba(220, 38, 38, 0.22) !important;
  background: var(--ux-danger-soft) !important;
  color: var(--ux-danger) !important;
}

.image-dashboard-body :where(.result-delete-button, .watcher-delete-button, .image-user-action--danger, button[name="delete"], button[value="delete"]):hover {
  border-color: rgba(220, 38, 38, 0.34) !important;
  background: #fff1f2 !important;
}

/* Cards: cleaner hierarchy with subtle glass surfaces */
.image-dashboard-body :where(.image-kpi-card, .image-recent-card, .image-performance-card, .image-system-card, .image-tip-card, .image-schedule-card, .image-today-card, .dashboard-quickstart-panel, .home-aside-card, .trend-header-card, .member-empty, .result-job-card) {
  border-color: var(--ux-line) !important;
  border-radius: var(--ux-radius-xl) !important;
  background: var(--ux-surface) !important;
  box-shadow: var(--ux-shadow-md), inset 0 1px 0 rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(16px) saturate(140%);
}

.image-dashboard-body :where(.image-kpi-card, .image-recent-card, .image-performance-card, .image-system-card, .image-tip-card, .image-schedule-card, .image-today-card, .dashboard-quickstart-panel, .home-aside-card, .trend-header-card, .member-empty, .result-job-card):hover {
  border-color: var(--ux-line-strong) !important;
}

.image-dashboard-body :where(.image-card-head, .dashboard-quickstart-head, .image-section-heading) h2,
.image-dashboard-body :where(.image-card-head, .dashboard-quickstart-head, .image-section-heading) h3 {
  color: var(--ux-ink);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.image-dashboard-body :where(.image-card-head, .dashboard-quickstart-head, .image-section-heading) span,
.image-dashboard-body :where(.image-card-head, .dashboard-quickstart-head, .image-section-heading) p {
  color: var(--ux-muted);
}

/* KPI cards: easier scanning */
.image-dashboard-body .image-kpi-card::before {
  height: 4px;
  background: linear-gradient(90deg, var(--ux-primary), var(--ux-primary-hover), var(--ux-accent));
}

.image-dashboard-body .image-kpi-head i,
.image-dashboard-body .image-recent-icon,
.image-dashboard-body .rank-watch-stat__icon {
  background: var(--ux-primary-soft) !important;
  color: var(--ux-primary) !important;
}

.image-dashboard-body .image-kpi-card strong {
  color: var(--ux-ink);
  font-variant-numeric: tabular-nums;
}

/* Form UX: consistent inputs, help text, touch targets */
.image-dashboard-body :where(input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="password"], input[type="number"], textarea, select) {
  border: 1px solid var(--ux-line);
  border-radius: var(--ux-radius-md);
  background: rgba(255,255,255,0.84);
  color: var(--ux-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
}

.image-dashboard-body :where(input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="password"], input[type="number"], textarea, select)::placeholder {
  color: var(--ux-subtle);
}

.image-dashboard-body :where(input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="password"], input[type="number"], textarea, select):focus {
  border-color: rgba(30, 64, 175, 0.38) !important;
  background: #fff;
  box-shadow: var(--ux-focus-ring), inset 0 1px 0 rgba(255,255,255,0.95) !important;
}

.image-dashboard-body :where(.field-label-row, .image-dashboard-hero-keywords, .image-collect-panel label, .image-keyword-editor label, .result-filter-label) {
  color: var(--ux-ink);
  font-weight: 850;
}

.image-dashboard-body :where(.image-dashboard-hero-keyword-help, .form-help, .help-text, small) {
  color: var(--ux-muted);
}

/* Alerts and empty states */
.image-dashboard-body :where(.alert, .warn-alert, .notice, .flash, .member-empty) {
  border: 1px solid var(--ux-line);
  border-radius: var(--ux-radius-lg);
  background: var(--ux-info-soft);
  color: var(--ux-info);
  box-shadow: var(--ux-shadow-sm), inset 0 1px 0 rgba(255,255,255,0.9);
}

.image-dashboard-body :where(.warn-alert, .warning-alert, .alert-warning, .notice-warning) {
  border-color: rgba(180, 83, 9, 0.22) !important;
  background: var(--ux-warning-soft) !important;
  color: var(--ux-warning) !important;
}

.image-dashboard-body :where(.success-alert, .alert-success, .notice-success, .is-success) {
  border-color: rgba(15, 118, 110, 0.22) !important;
  background: var(--ux-success-soft) !important;
  color: var(--ux-success) !important;
}

.image-dashboard-body :where(.alert-error, .notice-error, .is-error, .error-alert) {
  border-color: rgba(220, 38, 38, 0.22) !important;
  background: var(--ux-danger-soft) !important;
  color: var(--ux-danger) !important;
}

.image-dashboard-body :where(.member-empty, .empty-state, .result-history-empty) {
  text-align: center;
}

.image-dashboard-body :where(.member-empty, .empty-state, .result-history-empty) :where(a, button) {
  margin-top: 8px;
}

/* Mobile polish: larger touch targets and calmer spacing */
@media (max-width: 720px) {
  .image-dashboard-body :where(.image-new-button, .image-start-button, .ghost-button, .image-inline-button, .download-button, .image-dashboard-hero-submit) {
    min-height: 44px;
  }

  .image-dashboard-body :where(.image-kpi-card, .image-recent-card, .image-performance-card, .image-system-card, .image-tip-card, .image-schedule-card, .image-today-card, .dashboard-quickstart-panel, .home-aside-card, .trend-header-card, .member-empty, .result-job-card) {
    border-radius: var(--ux-radius-lg) !important;
  }

  .image-dashboard-body .image-recent-row,
  .image-dashboard-body .image-schedule-task {
    gap: 10px;
  }
}


/* Hermes UX/UI phase 2 — dashboard action center, empty states, mobile lists */
.dashboard-action-center {
  margin: 18px 0 20px;
  padding: 22px;
  border: 1px solid var(--ux-line);
  border-radius: var(--ux-radius-xl);
  background:
    radial-gradient(circle at 8% 0%, rgba(59, 130, 246, 0.10), transparent 34%),
    rgba(255,255,255,0.84);
  box-shadow: var(--ux-shadow-md), inset 0 1px 0 rgba(255,255,255,0.92);
  backdrop-filter: blur(16px) saturate(140%);
}

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

.dashboard-action-head p {
  margin: 0 0 6px;
  color: var(--ux-primary);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.dashboard-action-head h2 {
  margin: 0;
  color: var(--ux-ink);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.dashboard-action-head span {
  display: block;
  margin-top: 7px;
  color: var(--ux-muted);
  font-size: 14px;
  line-height: 1.65;
}

.dashboard-action-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-action-summary span {
  min-width: 74px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--ux-line);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.82);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88);
}

.dashboard-action-summary b {
  display: block;
  color: var(--ux-ink);
  font-size: 18px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.dashboard-action-summary em {
  display: block;
  margin-top: 5px;
  color: var(--ux-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.dashboard-action-summary .tone-success b { color: var(--ux-success); }
.dashboard-action-summary .tone-warning b { color: var(--ux-warning); }
.dashboard-action-summary .tone-danger b { color: var(--ux-danger); }

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

.dashboard-action-card {
  position: relative;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--ux-line);
  border-radius: 22px;
  background: rgba(255,255,255,0.80);
  color: var(--ux-ink);
  text-decoration: none;
  box-shadow: var(--ux-shadow-sm), inset 0 1px 0 rgba(255,255,255,0.92);
}

.dashboard-action-card::after {
  content: '';
  position: absolute;
  right: -42px;
  top: -44px;
  width: 128px;
  height: 128px;
  border-radius: 999px;
  background: var(--action-soft, rgba(30, 64, 175, 0.10));
}

.dashboard-action-card:hover {
  border-color: var(--action-line, var(--ux-line-strong));
  transform: translateY(-2px);
  box-shadow: var(--ux-shadow-lg), inset 0 1px 0 rgba(255,255,255,0.96);
}

.dashboard-action-card.tone-danger { --action-color: var(--ux-danger); --action-soft: rgba(220, 38, 38, 0.10); --action-line: rgba(220, 38, 38, 0.24); }
.dashboard-action-card.tone-warning { --action-color: var(--ux-warning); --action-soft: rgba(245, 158, 11, 0.15); --action-line: rgba(180, 83, 9, 0.24); }
.dashboard-action-card.tone-success { --action-color: var(--ux-success); --action-soft: rgba(15, 118, 110, 0.12); --action-line: rgba(15, 118, 110, 0.24); }
.dashboard-action-card.tone-info,
.dashboard-action-card.tone-blue { --action-color: var(--ux-primary); --action-soft: rgba(59, 130, 246, 0.12); --action-line: rgba(30, 64, 175, 0.22); }

.dashboard-action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--action-soft, var(--ux-primary-soft));
  color: var(--action-color, var(--ux-primary));
}

.dashboard-action-icon .image-line-icon { width: 22px; height: 22px; }
.dashboard-action-card em {
  color: var(--action-color, var(--ux-primary));
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.11em;
}
.dashboard-action-card strong {
  position: relative;
  z-index: 1;
  color: var(--ux-ink);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.035em;
}
.dashboard-action-card small {
  position: relative;
  z-index: 1;
  color: var(--ux-muted);
  font-size: 13px;
  line-height: 1.6;
}
.dashboard-action-card b {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: var(--action-color, var(--ux-primary));
  font-size: 13px;
}

/* UX/UI refinement layer — today operations center */
.dashboard-ops-center {
  display: grid;
  gap: 16px;
  border-color: rgba(30, 64, 175, 0.14);
  background:
    radial-gradient(circle at 9% 4%, rgba(245, 158, 11, 0.14), transparent 26%),
    radial-gradient(circle at 92% 0%, rgba(30, 64, 175, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,250,252,0.86));
}

.dashboard-ops-head {
  align-items: stretch;
  margin-bottom: 0;
}

.dashboard-ops-status {
  min-width: 178px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--ops-status-line, var(--ux-line));
  border-radius: 20px;
  background: var(--ops-status-bg, rgba(255,255,255,0.84));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.94), 0 18px 42px -34px rgba(15, 23, 42, 0.38);
}

.dashboard-ops-status.tone-success { --ops-status-line: rgba(15, 118, 110, 0.24); --ops-status-bg: rgba(240, 253, 250, 0.92); --ops-status-color: var(--ux-success); }
.dashboard-ops-status.tone-warning { --ops-status-line: rgba(180, 83, 9, 0.26); --ops-status-bg: rgba(255, 251, 235, 0.94); --ops-status-color: var(--ux-warning); }
.dashboard-ops-status.tone-danger { --ops-status-line: rgba(220, 38, 38, 0.24); --ops-status-bg: rgba(254, 242, 242, 0.94); --ops-status-color: var(--ux-danger); }

.dashboard-ops-status small,
.dashboard-ops-status em {
  color: var(--ux-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.dashboard-ops-status strong {
  color: var(--ops-status-color, var(--ux-primary));
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.dashboard-ops-summary {
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.dashboard-ops-summary span {
  flex: 0 0 auto;
  min-width: 96px;
}

.dashboard-ops-summary .tone-info b,
.dashboard-ops-summary .tone-blue b { color: var(--ux-primary); }

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

.dashboard-ops-card {
  min-height: 188px;
}

.dashboard-ops-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(30, 64, 175, 0.10);
  border-radius: 20px;
  background: rgba(255,255,255,0.68);
}

.dashboard-ops-footer p {
  margin: 0;
  color: var(--ux-muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-ops-footer p strong {
  color: var(--ux-ink);
  font-variant-numeric: tabular-nums;
}

.dashboard-ops-footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-ops-footer a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.image-empty-mini.image-empty-action,
.result-history-empty {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px) !important;
  border-style: dashed !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12), transparent 34%),
    rgba(255,255,255,0.84) !important;
}

.image-empty-mini.image-empty-action::before,
.result-history-empty::before {
  content: '';
  width: 52px;
  height: 52px;
  display: block;
  margin: 0 auto 14px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(30, 64, 175, 0.14), rgba(245, 158, 11, 0.14)),
    #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 16px 34px -26px rgba(30,64,175,0.46);
}

.result-history-empty-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto -66px;
  color: var(--ux-primary);
}

.result-history-empty-icon .image-line-icon {
  width: 24px;
  height: 24px;
}

.image-empty-mini.image-empty-action strong,
.result-history-empty strong {
  display: block;
  color: var(--ux-ink);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.045em;
}

.image-empty-mini.image-empty-action span,
.result-history-empty span {
  display: block;
  max-width: 58ch;
  margin: 8px auto 0;
  color: var(--ux-muted);
  line-height: 1.7;
}

.result-job-card {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
}

.result-job-actions {
  align-items: center;
}

.result-job-actions :where(a, button) {
  min-height: 38px;
}

@media (max-width: 1080px) {
  .dashboard-action-head {
    flex-direction: column;
  }

  .dashboard-action-summary {
    width: 100%;
    justify-content: stretch;
  }

  .dashboard-action-summary span {
    flex: 1 1 0;
  }

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

  .dashboard-ops-head,
  .dashboard-ops-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-ops-status {
    min-width: 0;
  }

  .dashboard-ops-summary span {
    flex: 0 0 auto;
  }

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

  .dashboard-ops-footer div {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .dashboard-action-center {
    margin-top: 14px;
    padding: 16px;
    border-radius: var(--ux-radius-lg);
  }

  .dashboard-action-card {
    min-height: auto;
    padding: 16px;
  }

  .dashboard-ops-center {
    gap: 12px;
  }

  .dashboard-ops-summary {
    margin-inline: -2px;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }

  .dashboard-ops-summary span {
    min-width: 88px;
    scroll-snap-align: start;
  }

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

  .dashboard-ops-card {
    min-height: auto;
  }

  .dashboard-ops-footer {
    padding: 12px;
  }

  .dashboard-ops-footer div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-ops-footer a {
    width: 100%;
  }

  .result-filter-bar {
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--ux-line);
    border-radius: var(--ux-radius-lg);
    background: rgba(255,255,255,0.72);
  }

  .result-filter-search,
  .result-filter-select {
    width: 100%;
  }

  .result-filter-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .result-filter-chips a,
  .result-filter-chips span {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .result-job-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px !important;
  }

  .result-job-main,
  .result-job-count,
  .result-job-actions {
    width: 100%;
  }

  .result-job-count {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid var(--ux-line);
    border-radius: 16px;
    background: rgba(248,250,252,0.78);
  }

  .result-job-count::before {
    content: '수집 결과';
    color: var(--ux-muted);
    font-size: 12px;
    font-weight: 850;
  }

  .result-job-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .result-job-actions :where(a, button, form) {
    width: 100%;
  }

  .result-job-actions :where(a, button) {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .result-job-actions,
  .dashboard-ops-footer div {
    grid-template-columns: 1fr;
  }
}


/* UX/UI refinement layer — monthly rank calendar */
.rank-check-visual-body .rank-month-calendar-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background:
    radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.rank-check-visual-body .rank-month-calendar-head {
  align-items: center;
  gap: 18px;
}

.rank-check-visual-body .rank-month-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.rank-check-visual-body .rank-month-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #1d4ed8;
  text-decoration: none;
  font-size: 24px;
  font-weight: 900;
  background: rgba(37, 99, 235, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.rank-check-visual-body .rank-month-nav a:hover {
  transform: translateY(-1px);
  background: #2563eb;
  color: #fff;
}

.rank-check-visual-body .rank-month-nav strong {
  min-width: 96px;
  text-align: center;
  color: #0f172a;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.rank-check-visual-body .rank-month-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.rank-check-visual-body .rank-month-summary-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #475569;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 13px;
  font-weight: 800;
}

.rank-check-visual-body .rank-month-summary-row b {
  color: #1d4ed8;
}

.rank-check-visual-body .rank-month-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 18px;
  align-items: stretch;
}

.rank-check-visual-body .rank-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.rank-check-visual-body .rank-month-weekday {
  display: flex;
  justify-content: center;
  padding: 4px 0 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.rank-check-visual-body .rank-month-day {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.8);
  color: #334155;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rank-check-visual-body .rank-month-day:hover,
.rank-check-visual-body .rank-month-day.is-selected {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.13);
}

.rank-check-visual-body .rank-month-day.is-blank {
  visibility: hidden;
  pointer-events: none;
}

.rank-check-visual-body .rank-month-day.is-today {
  outline: 2px solid rgba(37, 99, 235, 0.34);
  outline-offset: 2px;
}

.rank-check-visual-body .rank-month-day__num {
  font-size: 13px;
  font-weight: 950;
  color: #0f172a;
}

.rank-check-visual-body .rank-month-day__count,
.rank-check-visual-body .rank-month-day__empty {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.rank-check-visual-body .rank-month-day strong {
  margin-top: auto;
  font-size: 20px;
  color: #1d4ed8;
  letter-spacing: -0.04em;
}

.rank-check-visual-body .rank-month-day--top3 {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.14), rgba(255, 255, 255, 0.9));
  border-color: rgba(34, 197, 94, 0.34);
}

.rank-check-visual-body .rank-month-day--top3 strong {
  color: #15803d;
}

.rank-check-visual-body .rank-month-day--visible,
.rank-check-visual-body .rank-month-day--checked {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0.9));
}

.rank-check-visual-body .rank-month-day--missing {
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.1), rgba(255, 255, 255, 0.9));
  border-color: rgba(244, 63, 94, 0.24);
}

.rank-check-visual-body .rank-month-detail {
  min-height: 100%;
  border-radius: 24px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

.rank-check-visual-body .rank-month-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.rank-check-visual-body .rank-month-detail__head span {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 900;
}

.rank-check-visual-body .rank-month-detail__head strong {
  color: #fff;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.rank-check-visual-body .rank-month-empty {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed rgba(226, 232, 240, 0.25);
  border-radius: 18px;
  color: #cbd5e1;
}

.rank-check-visual-body .rank-month-empty strong {
  color: #fff;
}

.rank-check-visual-body .rank-month-detail-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.rank-check-visual-body .rank-month-detail-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-check-visual-body .rank-month-detail-item div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-check-visual-body .rank-month-detail-item strong,
.rank-check-visual-body .rank-month-detail-item span,
.rank-check-visual-body .rank-month-detail-item em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-check-visual-body .rank-month-detail-item strong {
  color: #fff;
  font-size: 14px;
}

.rank-check-visual-body .rank-month-detail-item span {
  color: #cbd5e1;
  font-size: 13px;
}

.rank-check-visual-body .rank-month-detail-item em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.rank-check-visual-body .rank-month-detail-item b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 14px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.18);
  font-size: 16px;
  letter-spacing: -0.03em;
}

.rank-check-visual-body .rank-month-detail-item--top3 b {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.18);
}

.rank-check-visual-body .rank-month-detail-item--missing b {
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.18);
}

body.theme-dark .rank-check-visual-body .rank-month-calendar-panel,
body.theme-dark.rank-check-visual-body .rank-month-calendar-panel {
  border-color: rgba(96, 165, 250, 0.22);
  background:
    radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
}

body.theme-dark .rank-check-visual-body .rank-month-nav,
body.theme-dark.rank-check-visual-body .rank-month-nav,
body.theme-dark .rank-check-visual-body .rank-month-summary-row span,
body.theme-dark.rank-check-visual-body .rank-month-summary-row span,
body.theme-dark .rank-check-visual-body .rank-month-day,
body.theme-dark.rank-check-visual-body .rank-month-day {
  background-color: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.22);
}

body.theme-dark .rank-check-visual-body .rank-month-nav strong,
body.theme-dark.rank-check-visual-body .rank-month-nav strong,
body.theme-dark .rank-check-visual-body .rank-month-day__num,
body.theme-dark.rank-check-visual-body .rank-month-day__num {
  color: #f8fafc;
}

@media (max-width: 980px) {
  .rank-check-visual-body .rank-month-calendar-layout {
    grid-template-columns: 1fr;
  }

  .rank-check-visual-body .rank-month-detail {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .rank-check-visual-body .rank-month-calendar-head {
    align-items: stretch;
  }

  .rank-check-visual-body .rank-month-nav {
    width: 100%;
    justify-content: space-between;
  }

  .rank-check-visual-body .rank-month-grid {
    gap: 5px;
  }

  .rank-check-visual-body .rank-month-weekday {
    font-size: 11px;
  }

  .rank-check-visual-body .rank-month-day {
    min-height: 72px;
    padding: 7px;
    border-radius: 14px;
  }

  .rank-check-visual-body .rank-month-day strong {
    font-size: 15px;
  }

  .rank-check-visual-body .rank-month-day__count,
  .rank-check-visual-body .rank-month-day__empty {
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  .rank-check-visual-body .rank-month-summary-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rank-check-visual-body .rank-month-day {
    min-height: 58px;
    padding: 6px 4px;
    align-items: center;
    text-align: center;
  }

  .rank-check-visual-body .rank-month-day strong {
    font-size: 13px;
  }

  .rank-check-visual-body .rank-month-detail-item {
    grid-template-columns: 1fr;
  }

  .rank-check-visual-body .rank-month-detail-item b {
    width: 100%;
  }
}


/* UX/UI refinement layer — responsive notification center */
.notification-modal {
  width: min(520px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.notification-modal-head {
  flex: 0 0 auto;
}

.notification-modal-desc {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.notification-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.notification-summary-chip {
  min-width: 0;
  padding: 10px 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.notification-summary-chip b,
.notification-summary-chip em {
  display: block;
}

.notification-summary-chip b {
  color: var(--image-ink, #0f172a);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.notification-summary-chip em {
  margin-top: 5px;
  color: var(--image-muted, #64748b);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.notification-summary-chip.is-important {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(254, 242, 242, 0.84);
}

.notification-summary-chip.is-collection {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(255, 251, 235, 0.84);
}

.notification-summary-chip.is-rank {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(239, 246, 255, 0.86);
}

.notification-summary-chip.is-scheduled {
  border-color: rgba(99, 102, 241, 0.22);
  background: rgba(238, 242, 255, 0.86);
}

.notification-filter-tabs {
  display: flex;
  gap: 8px;
  margin: 0 -4px;
  padding: 0 4px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.notification-filter-tabs::-webkit-scrollbar {
  display: none;
}

.notification-filter-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.84);
  color: var(--image-muted, #64748b);
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.notification-filter-tab b {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: inherit;
  font-size: 0.72rem;
}

.notification-filter-tab:hover,
.notification-filter-tab.is-active {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.34);
  background: #eff6ff;
  color: #1d4ed8;
}

.notification-modal-list {
  min-height: 0;
  max-height: min(420px, calc(100dvh - 380px));
  overflow: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
}

.notification-item {
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.notification-item:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(255, 255, 255, 0.92);
}

.notification-item.is-important {
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(135deg, rgba(255, 247, 247, 0.96), rgba(248, 250, 252, 0.86));
}

.notification-item-copy {
  min-width: 0;
}

.notification-item-meta {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 4px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: #2563eb;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.notification-item.is-important .notification-item-meta {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.notification-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.notification-empty-actions .ghost-button,
.notification-empty-actions .image-start-button {
  min-height: 40px;
  padding: 0 14px;
  text-decoration: none;
}

body.is-notification-open {
  overflow: hidden;
}

body.theme-dark .notification-summary-chip,
body.theme-dark .notification-filter-tab,
body.theme-dark .notification-modal-empty {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.24);
  color: var(--image-ink, #e5e7eb);
}

body.theme-dark .notification-summary-chip b,
body.theme-dark .notification-modal-empty strong,
body.theme-dark .notification-filter-tab.is-active {
  color: var(--image-ink, #f8fafc);
}

body.theme-dark .notification-summary-chip em,
body.theme-dark .notification-modal-empty span {
  color: var(--image-muted, #94a3b8);
}

body.theme-dark .notification-summary-chip.is-important,
body.theme-dark .notification-item.is-important {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.26), rgba(15, 23, 42, 0.86));
  border-color: rgba(248, 113, 113, 0.28);
}

body.theme-dark .notification-summary-chip.is-collection {
  background: rgba(120, 53, 15, 0.24);
  border-color: rgba(245, 158, 11, 0.25);
}

body.theme-dark .notification-summary-chip.is-rank,
body.theme-dark .notification-summary-chip.is-scheduled,
body.theme-dark .notification-filter-tab.is-active {
  background: rgba(30, 64, 175, 0.24);
  border-color: rgba(96, 165, 250, 0.26);
}

body.theme-dark .notification-item:hover {
  background: rgba(30, 41, 59, 0.9);
}

body.theme-dark .notification-item-meta {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}

body.theme-dark .notification-item.is-important .notification-item-meta {
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
}

@media (max-width: 900px) and (min-width: 641px) {
  .notification-modal {
    top: 90px;
    right: 50%;
    transform: translateX(50%);
    width: min(640px, calc(100vw - 40px));
    max-height: min(760px, calc(100dvh - 120px));
  }
}

@media (max-width: 640px) {
  .notification-modal {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(92dvh, calc(100dvh - 18px));
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    box-shadow: 0 -22px 70px -36px rgba(15, 23, 42, 0.72);
  }

  .notification-modal-head {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: -16px -16px 0;
    padding: 16px 16px 12px;
    border-radius: 26px 26px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88));
    backdrop-filter: blur(14px);
  }

  body.theme-dark .notification-modal-head {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.86));
  }

  .notification-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notification-modal-list {
    max-height: none;
    flex: 1 1 auto;
    padding-right: 0;
  }

  .notification-item {
    grid-template-columns: minmax(0, 1fr) 40px;
    border-radius: 20px;
  }

  .notification-item-link {
    padding: 12px 10px 12px 12px;
  }

  .notification-item-delete {
    width: 36px;
    height: 36px;
    margin: 8px 6px 0 0;
  }

  .notification-modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 2px -16px calc(-16px - env(safe-area-inset-bottom));
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.98));
    backdrop-filter: blur(14px);
  }

  body.theme-dark .notification-modal-actions {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.98));
  }

  .notification-modal-actions .ghost-button,
  .notification-modal-actions .image-start-button {
    min-height: 44px;
  }
}

@media (max-width: 420px) {
  .notification-modal {
    max-height: 96dvh;
    padding-right: 12px;
    padding-left: 12px;
  }

  .notification-modal-head {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .notification-filter-tab {
    min-height: 36px;
    padding: 0 11px;
  }

  .notification-modal-actions {
    grid-template-columns: 1fr;
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .notification-empty-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* UX/UI refinement layer — all pages mobile safety pass */
@media (max-width: 900px) {
  html,
  body,
  .dashboard-body,
  .image-dashboard-body,
  .landing-page-body,
  .legal-page-body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.image-dashboard-body .image-dashboard-shell {
    width: 100% !important;
    max-width: 100vw !important;
  }

  body.image-dashboard-body .image-dashboard-main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 58px 14px calc(86px + env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
  }

  body.image-dashboard-body .image-dashboard-main > *,
  body.image-dashboard-body .image-sub-panel,
  body.image-dashboard-body .image-page-hero,
  body.image-dashboard-body .member-panel-large,
  body.image-dashboard-body .image-member-panel,
  body.image-dashboard-body .image-report-section,
  body.image-dashboard-body .admin-panel,
  body.image-dashboard-body .home-aside-card,
  body.image-dashboard-body .trend-header-card,
  body.image-dashboard-body .rank-check-page-wrap,
  body.image-dashboard-body .rank-month-calendar-panel {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.image-dashboard-body :where(h1, h2, h3, h4, p, span, strong, em, small, b, a, button, label, input, textarea, select) {
    min-width: 0;
  }

  body.image-dashboard-body :where(h1, h2, h3, .image-page-hero-copy, .image-section-heading, .member-panel-head, .admin-page-tabs a, .dashboard-action-card strong) {
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  body.image-dashboard-body :where(input, textarea, select, button) {
    max-width: 100%;
  }

  body.image-dashboard-body :where(.image-page-hero, .image-card-head, .image-section-heading, .member-panel-head, .admin-page-header, .admin-section-head, .result-filter-bar, .rank-check-visual-header, .rank-month-calendar-head) {
    flex-wrap: wrap !important;
    align-items: stretch !important;
  }

  body.image-dashboard-body :where(.image-page-hero, .member-page-grid, .member-page-grid-single, .image-dashboard-layout, .image-home-main-grid, .image-dashboard-bottom-grid, .image-kpi-grid, .image-sub-kpi, .pricing-plan-grid, .collect-schedule-layout, .profile-layout, .admin-dashboard-grid, .admin-settings-grid, .advertiser-report-grid, .advertisers-layout, .trend-grid, .keyword-intel-grid, .rank-field-grid, .rank-watch-stats) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.image-dashboard-body :where(.image-form-actions, .export-actions, .admin-actions, .admin-user-actions, .member-actions, .result-job-actions, .pricing-actions, .rank-actions, .advertiser-actions, .dashboard-ops-footer div) {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    white-space: normal !important;
  }

  body.image-dashboard-body :where(.image-form-actions, .export-actions, .admin-actions, .admin-user-actions, .member-actions, .result-job-actions, .pricing-actions, .rank-actions, .advertiser-actions) > :where(a, button, form),
  body.image-dashboard-body :where(.image-form-actions, .export-actions, .admin-actions, .admin-user-actions, .member-actions, .result-job-actions, .pricing-actions, .rank-actions, .advertiser-actions) > form :where(button, a) {
    flex: 1 1 140px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-content: center !important;
  }

  body.image-dashboard-body .admin-page-tabs,
  body.image-dashboard-body .result-filter-chips,
  body.image-dashboard-body .image-range-tabs,
  body.image-dashboard-body .rank-service-toggle-group,
  body.image-dashboard-body .pricing-toggle-row,
  body.image-dashboard-body .notification-filter-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 4px !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  body.image-dashboard-body .admin-page-tabs > *,
  body.image-dashboard-body .result-filter-chips > *,
  body.image-dashboard-body .image-range-tabs > *,
  body.image-dashboard-body .rank-service-toggle-group > *,
  body.image-dashboard-body .pricing-toggle-row > *,
  body.image-dashboard-body .notification-filter-tabs > * {
    flex: 0 0 auto !important;
    scroll-snap-align: start;
  }

  body.image-dashboard-body :where(table, .admin-users-table, .admin-table, .result-table, .collection-table, .payment-table) {
    width: 100%;
    max-width: 100%;
  }

  body.image-dashboard-body :where(.admin-table-wrap, .table-wrap, .member-table-wrap, .result-table-wrap, .collection-table-wrap, .payment-table-wrap),
  body.image-dashboard-body :where(.admin-users-table, .admin-table, .result-table, .collection-table, .payment-table) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.image-dashboard-body :where(.admin-users-table table, .admin-table table, .result-table table, .collection-table table, .payment-table table) {
    min-width: 680px;
  }

  body.image-dashboard-body :where(.image-recent-row, .image-schedule-task, .result-job-card, .advertiser-card, .admin-list-row, .notification-item, .rank-month-detail-item) {
    min-width: 0 !important;
  }

  body.image-dashboard-body :where(.image-recent-row > *, .image-schedule-task > *, .result-job-card > *, .advertiser-card > *, .admin-list-row > *, .notification-item > *, .rank-month-detail-item > *) {
    min-width: 0 !important;
  }
}

@media (max-width: 640px) {
  body.image-dashboard-body .image-dashboard-main {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  body.image-dashboard-body :where(.image-page-hero, .image-sub-panel, .member-panel-large, .admin-panel, .home-aside-card, .trend-header-card, .rank-month-calendar-panel, .dashboard-action-center, .dashboard-quickstart-panel) {
    border-radius: 18px !important;
  }

  body.image-dashboard-body :where(.image-page-hero, .image-sub-panel, .member-panel-large, .admin-panel, .home-aside-card, .trend-header-card, .rank-month-calendar-panel) {
    padding: 16px !important;
  }

  body.image-dashboard-body :where(.image-page-hero h1, .rank-check-visual-header h1) {
    font-size: clamp(24px, 8vw, 32px) !important;
    line-height: 1.16 !important;
  }

  body.image-dashboard-body :where(.image-section-heading, .image-card-head, .member-panel-head, .admin-section-head, .rank-check-visual-header, .rank-month-calendar-head) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  body.image-dashboard-body :where(.image-start-button, .image-new-button, .ghost-button, .primary-button, .download-button, .image-inline-button, .admin-user-role-button) {
    min-height: 44px !important;
    white-space: normal !important;
    text-align: center !important;
  }

  body.image-dashboard-body :where(.rank-check-form, .collect-schedule-form, .profile-form, .advertiser-form, .admin-settings-form, .keyword-intel-form, .image-trend-form) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  body.image-dashboard-body :where(.rank-check-setup-panel .rank-service-row, .image-dashboard-hero-search-row, .collect-schedule-time-row, .profile-form-row, .admin-form-row, .advertiser-form-row) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-search-row {
    grid-template-columns: minmax(0, 1fr) 58px !important;
  }

  body.image-dashboard-body :where(.admin-page-tabs a, .result-filter-chips a, .result-filter-chips span, .image-range-tabs button) {
    min-height: 40px !important;
  }
}

@media (max-width: 420px) {
  body.image-dashboard-body .image-dashboard-main {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  body.image-dashboard-body :where(.image-form-actions, .export-actions, .admin-actions, .admin-user-actions, .member-actions, .result-job-actions, .pricing-actions, .rank-actions, .advertiser-actions, .dashboard-ops-footer div) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.image-dashboard-body :where(.image-form-actions, .export-actions, .admin-actions, .admin-user-actions, .member-actions, .result-job-actions, .pricing-actions, .rank-actions, .advertiser-actions, .dashboard-ops-footer div) > :where(a, button, form),
  body.image-dashboard-body :where(.image-form-actions, .export-actions, .admin-actions, .admin-user-actions, .member-actions, .result-job-actions, .pricing-actions, .rank-actions, .advertiser-actions, .dashboard-ops-footer div) > form :where(button, a) {
    width: 100% !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-head {
    padding-left: 68px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-services {
    gap: 6px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
    min-height: 40px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }

  body.image-dashboard-body .rank-check-visual-body .rank-month-grid,
  .rank-check-visual-body .rank-month-grid {
    gap: 3px !important;
  }

  body.image-dashboard-body .rank-check-visual-body .rank-month-day,
  .rank-check-visual-body .rank-month-day {
    border-radius: 10px !important;
  }
}


/* UX/UI refinement layer — rank-check mobile text containment */
@media (max-width: 720px) {
  body.rank-check-visual-body :where(
    .rank-action-suite,
    .rank-action-suite .kakao-share-actions,
    .rank-check-kakao-bar,
    .rank-action-inline-form,
    .rank-service-row,
    .rank-service-toggle-group,
    .watcher-actions,
    .watcher-actions-row,
    .watcher-actions-row__buttons
  ) {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.rank-check-visual-body .rank-action-suite,
  body.rank-check-visual-body .rank-action-suite .kakao-share-actions,
  body.rank-check-visual-body .rank-check-kakao-bar {
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
  }

  body.rank-check-visual-body .rank-action-suite :where(a, button, form),
  body.rank-check-visual-body .rank-action-suite .kakao-share-actions :where(a, button, form),
  body.rank-check-visual-body .rank-action-inline-form :where(a, button, input),
  body.rank-check-visual-body .rank-check-setup-panel .rank-service-row :where(button, .primary-button),
  body.rank-check-visual-body .rank-check-new-link,
  body.rank-check-visual-body .rank-watcher-filter,
  body.rank-check-visual-body .rank-watcher-refresh-button {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.rank-check-visual-body :where(
    .rank-action-btn,
    .rank-action-suite button,
    .rank-action-suite a,
    .rank-check-new-link,
    .rank-check-setup-panel .rank-service-row .primary-button,
    .rank-type-toggle span,
    .rank-watcher-filter,
    .rank-watcher-refresh-button
  ) {
    height: auto !important;
    min-height: 42px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
    word-break: keep-all !important;
    hyphens: auto;
  }

  body.rank-check-visual-body .rank-action-btn {
    flex: 1 1 132px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  body.rank-check-visual-body .rank-action-btn svg,
  body.rank-check-visual-body .rank-action-btn::before,
  body.rank-check-visual-body .rank-check-new-link::before,
  body.rank-check-visual-body .rank-type-toggle span::before {
    flex: 0 0 auto !important;
  }

  body.rank-check-visual-body .rank-action-input {
    width: 100% !important;
  }

  body.rank-check-visual-body :where(.watcher-title, .watcher-meta, .rank-month-detail-item, .rank-month-detail-item *, .rank-month-detail__head, .rank-month-empty, .rank-month-summary-row span) {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: keep-all !important;
  }
}

@media (max-width: 480px) {
  body.rank-check-visual-body .rank-action-suite,
  body.rank-check-visual-body .rank-action-suite .kakao-share-actions,
  body.rank-check-visual-body .rank-action-inline-form,
  body.rank-check-visual-body .rank-check-kakao-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }

  body.rank-check-visual-body .rank-action-suite :where(a, button, form),
  body.rank-check-visual-body .rank-action-suite .kakao-share-actions :where(a, button, form),
  body.rank-check-visual-body .rank-action-inline-form :where(a, button, input),
  body.rank-check-visual-body .rank-check-new-link,
  body.rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button,
  body.rank-check-visual-body .rank-watcher-filter,
  body.rank-check-visual-body .rank-watcher-refresh-button {
    width: 100% !important;
    flex-basis: auto !important;
  }

  body.rank-check-visual-body .rank-action-suite form :where(a, button),
  body.rank-check-visual-body .rank-action-suite .kakao-share-actions form :where(a, button) {
    width: 100% !important;
  }

  body.rank-check-visual-body .rank-service-toggle-group {
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  body.rank-check-visual-body .rank-service-toggle-group .rank-type-toggle {
    flex: 1 1 calc(50% - 6px) !important;
    min-width: 0 !important;
  }

  body.rank-check-visual-body .rank-service-toggle-group .rank-type-toggle span {
    width: 100% !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  body.rank-check-visual-body .rank-month-summary-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* UX/UI refinement layer — rank-check mobile snapshot containment */
@media (max-width: 720px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
    min-width: 0 !important;
    overflow: hidden !important;
    padding-bottom: 18px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-item-body,
  body.rank-check-visual-body .rank-check-saved-board .watcher-item-head,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-strip--compact,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-strip--compact .rank-position-strip__row,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-strip--compact .rank-position-strip__exposure,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-strip--compact .rank-position-ranks,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-hero,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__rank,
  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot,
  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot > *,
  body.rank-check-visual-body .rank-check-saved-board .watcher-actions,
  body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row,
  body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 12px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot__rank,
  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot__change {
    display: grid !important;
    align-content: center !important;
    gap: 4px !important;
    min-height: 66px !important;
    padding: 10px 11px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 13px !important;
    background: rgba(248, 250, 252, 0.92) !important;
    overflow: hidden !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot :where(span, strong, em) {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: keep-all !important;
    line-height: 1.22 !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot span {
    color: #64748b !important;
    font-size: 10px !important;
    font-weight: 900 !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot strong {
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 950 !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot em {
    color: #7a8796 !important;
    font-size: 10px !important;
    font-style: normal !important;
    font-weight: 800 !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-actions {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin-top: 14px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at {
    margin: 0 !important;
    padding: 0 !important;
    color: #7a8796 !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at__label,
  body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at time {
    display: inline !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row__buttons {
    flex: 0 0 auto !important;
    justify-self: end !important;
    max-width: 126px !important;
  }
}

@media (max-width: 420px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at {
    text-align: left !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row__buttons {
    justify-self: stretch !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row__buttons form,
  body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row__buttons :where(a, button) {
    width: 100% !important;
  }
}


/* UX/UI emergency fix — rank-check card no-overflow mobile */
@media (max-width: 760px) {
  body.rank-check-visual-body .rank-check-saved-board,
  body.image-dashboard-body.rank-check-visual-body .rank-check-saved-board,
  body.rank-check-visual-body .rank-check-saved-board * {
    box-sizing: border-box !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 16px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-item-body,
  body.rank-check-visual-body .rank-check-saved-board .watcher-item-head,
  body.rank-check-visual-body .rank-check-saved-board .watcher-card-top,
  body.rank-check-visual-body .rank-check-saved-board .watcher-card-badges,
  body.rank-check-visual-body .rank-check-saved-board .watcher-title,
  body.rank-check-visual-body .rank-check-saved-board .watcher-title a,
  body.rank-check-visual-body .rank-check-saved-board .watcher-target,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-strip,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__row,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__section,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__exposure,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-ranks,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-hero,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__rank,
  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot,
  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot__rank,
  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot__change,
  body.rank-check-visual-body .rank-check-saved-board .watcher-actions,
  body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row,
  body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row__buttons,
  body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-card-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    align-items: start !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank {
    max-width: 86px !important;
    min-width: 0 !important;
    justify-self: end !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-align: center !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank span {
    display: inline-block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .rank-position-strip--compact {
    margin-top: 12px !important;
    padding: 0 !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__row,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-ranks,
  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot,
  body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__section,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-hero--overall {
    border-right: 0 !important;
    border-left: 0 !important;
    border-bottom: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .rank-position-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    justify-content: stretch !important;
    align-items: center !important;
    min-height: 0 !important;
    padding: 8px 10px !important;
    gap: 6px !important;
    border-radius: 12px !important;
    background: rgba(248, 250, 252, 0.86) !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__service,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__scope,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__section-name,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__eyebrow {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: keep-all !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__rank {
    width: auto !important;
    max-width: 118px !important;
    min-width: 0 !important;
    min-height: 36px !important;
    justify-self: end !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__num,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-hero:not(.rank-position-hero--overall) .rank-position-hero__num,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-hero--overall .rank-position-hero__num {
    max-width: 78px !important;
    overflow: hidden !important;
    font-size: clamp(20px, 8vw, 28px) !important;
    line-height: 1 !important;
    text-overflow: ellipsis !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__unit {
    flex: 0 0 auto !important;
    font-size: 10px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot {
    margin-top: 10px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot__rank,
  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot__change {
    display: grid !important;
    grid-template-columns: minmax(0, 82px) minmax(0, 1fr) !important;
    align-items: center !important;
    min-height: 0 !important;
    padding: 9px 10px !important;
    gap: 6px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot__change em {
    grid-column: 1 / -1 !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot :where(span, strong, em),
  body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at,
  body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at * {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: keep-all !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot strong {
    justify-self: end !important;
    text-align: right !important;
    font-size: 14px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-actions {
    position: static !important;
    inset: auto !important;
    margin-top: 12px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row__buttons {
    justify-self: stretch !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row__buttons form,
  body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row__buttons :where(a, button) {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 380px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
    padding: 14px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-card-top,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-hero,
  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot__rank,
  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot__change {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank,
  body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__rank,
  body.rank-check-visual-body .rank-check-saved-board .watcher-rank-snapshot strong {
    justify-self: start !important;
    text-align: left !important;
  }
}

/* Rank check summary mobile overflow hardening — 2026-06-21
   Targets the actual overflowing summary blocks: "마지막 체크" and "최근 순위 변화". */
body.rank-check-visual-body .rank-watch-stat--mobile-safe,
body.rank-check-visual-body .rank-watch-stat--mobile-safe *,
body.rank-check-visual-body .advertiser-rank-summary__changes--mobile-safe,
body.rank-check-visual-body .advertiser-rank-summary__changes--mobile-safe * {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

body.rank-check-visual-body .rank-watch-stat__body,
body.rank-check-visual-body .rank-watch-stat__label,
body.rank-check-visual-body .rank-watch-stat__value,
body.rank-check-visual-body .rank-watch-stat__note,
body.rank-check-visual-body .advertiser-rank-summary__changes-head,
body.rank-check-visual-body .advertiser-rank-summary__changes-head :where(span, strong),
body.rank-check-visual-body .advertiser-rank-summary__change-item :where(strong, em) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

body.rank-check-visual-body .rank-watch-stat__value,
body.rank-check-visual-body .advertiser-rank-summary__change-item :where(strong, em) {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body.rank-check-visual-body .rank-watch-stat {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 14px !important;
    gap: 10px !important;
  }

  body.rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary,
  body.rank-check-visual-body .advertiser-rank-summary__changes,
  body.rank-check-visual-body .advertiser-rank-summary__changes ul,
  body.rank-check-visual-body .advertiser-rank-summary__change-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__changes ul {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__change-item {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 6px 8px !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__change-item .rank-change-chip {
    max-width: 112px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__change-item em {
    grid-column: 1 / -1 !important;
    white-space: normal !important;
  }
}

@media (max-width: 430px) {
  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-watch-stat,
  body.rank-check-visual-body .rank-watch-stat--mobile-safe {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    min-height: 0 !important;
    padding: 12px !important;
  }

  body.rank-check-visual-body .rank-watch-stat__icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
  }

  body.rank-check-visual-body .rank-watch-stat__value {
    display: block !important;
    font-size: clamp(15px, 4.2vw, 18px) !important;
    line-height: 1.18 !important;
    white-space: normal !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__changes {
    padding: 14px !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__changes-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2px !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__changes-head strong {
    font-size: clamp(15px, 4.4vw, 18px) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__change-item {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__change-item .rank-change-chip,
  body.rank-check-visual-body .advertiser-rank-summary__change-item em {
    grid-column: auto !important;
    justify-self: start !important;
  }
}



/* Free/Paid pricing system public page */
.public-pricing-page {
  background: radial-gradient(circle at 12% 0%, rgba(74, 144, 226, 0.18), transparent 34%), #f7f9ff;
}
.public-pricing-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0 56px;
}
.public-pricing-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(24, 34, 65, 0.08);
  border-radius: 30px;
  padding: clamp(28px, 5vw, 58px);
  background: linear-gradient(135deg, rgba(10, 24, 52, 0.96), rgba(34, 90, 190, 0.9));
  color: #fff;
  box-shadow: 0 28px 80px rgba(20, 42, 100, 0.22);
  margin-bottom: 24px;
}
.public-pricing-hero::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  right: -92px;
  top: -118px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.public-pricing-hero > * {
  position: relative;
  z-index: 1;
}
.public-pricing-hero p {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  color: #9bd3ff;
}
.public-pricing-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 5.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.public-pricing-hero span {
  display: block;
  max-width: 720px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.75;
}
.public-pricing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.pricing-system-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}
.pricing-system-guide article {
  padding: 18px;
  border: 1px solid rgba(32, 48, 87, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(26, 49, 96, 0.08);
}
.pricing-system-guide strong {
  display: block;
  margin-bottom: 8px;
  color: #102044;
  font-size: 15px;
}
.pricing-system-guide span {
  display: block;
  color: #60708e;
  font-size: 13px;
  line-height: 1.65;
}
.pricing-plan-card a.pricing-plan-cta {
  text-align: center;
  text-decoration: none;
}
@media (max-width: 820px) {
  .public-pricing-main { width: min(100% - 20px, 1180px); padding-top: 84px; }
  .pricing-system-guide { grid-template-columns: 1fr; }
  .public-pricing-hero { border-radius: 24px; }
}


/* Plan usage + upgrade conversion layer */
.plan-usage-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 18px;
  align-items: stretch;
  margin: 18px 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(44, 89, 180, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(73, 136, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(244,248,255,0.94));
  box-shadow: 0 22px 56px rgba(36, 68, 140, 0.12);
}
.plan-usage-panel.is-low,
.plan-usage-panel.is-exhausted {
  border-color: rgba(245, 158, 11, 0.34);
  background:
    radial-gradient(circle at 0% 0%, rgba(251, 191, 36, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,248,235,0.94));
}
.plan-usage-panel.is-exhausted {
  border-color: rgba(239, 68, 68, 0.32);
}
.plan-usage-panel__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  color: #3b82f6;
}
.plan-usage-panel h2 {
  margin: 0;
  color: #102044;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: -0.04em;
}
.plan-usage-panel p:not(.plan-usage-panel__eyebrow) {
  margin: 10px 0 0;
  color: #5d6b84;
  line-height: 1.65;
}
.plan-usage-panel__meta,
.plan-usage-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.plan-usage-panel__meta span,
.plan-usage-panel__actions span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #26416e;
  font-size: 12px;
  font-weight: 800;
}
.plan-usage-panel__usage {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(28, 48, 87, 0.08);
}
.plan-usage-panel__numbers {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}
.plan-usage-panel__numbers strong {
  color: #0f172a;
}
.plan-usage-panel__track {
  height: 11px;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
}
.plan-usage-panel__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}
.plan-usage-panel.is-low .plan-usage-panel__track i {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}
.plan-usage-panel.is-exhausted .plan-usage-panel__track i {
  background: linear-gradient(90deg, #ef4444, #f97316);
}
.plan-usage-panel__actions {
  align-items: center;
  justify-content: space-between;
}
.plan-usage-panel__actions .pricing-plan-cta {
  min-height: 40px;
  padding: 10px 16px;
  text-decoration: none;
  white-space: nowrap;
}
.image-collect-panel .collect-quota-note {
  margin: 10px 0 12px;
  align-items: flex-start;
}
.image-collect-panel .collect-quota-note .ghost-button {
  min-height: 30px;
  padding: 7px 10px;
}
@media (max-width: 860px) {
  .plan-usage-panel {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }
  .plan-usage-panel__actions {
    justify-content: flex-start;
  }
}
@media (max-width: 480px) {
  .plan-usage-panel {
    padding: 16px;
  }
  .plan-usage-panel__numbers,
  .plan-usage-panel__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .plan-usage-panel__actions .pricing-plan-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.payment-gateway-banner__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.payment-gateway-banner__side .pricing-plan-cta {
  min-height: 38px;
  padding: 9px 14px;
  text-decoration: none;
  white-space: nowrap;
}
.payment-collect-note .ghost-button.is-small {
  margin-left: auto;
  min-height: 30px;
  padding: 7px 10px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .payment-gateway-banner__side {
    align-items: flex-start;
    width: 100%;
  }
}

/* Compact dashboard metric cards */
.dashboard-body .metric-grid {
  gap: 10px;
  margin-bottom: 14px;
}
.dashboard-body .metric-block {
  min-height: 108px;
  padding: 15px 16px;
  align-content: center;
  gap: 10px;
  border-radius: 10px;
}
.dashboard-body .metric-block::before {
  height: 2px;
}
.dashboard-body .metric-head {
  gap: 9px;
}
.dashboard-body .metric-icon {
  width: 18px;
  height: 18px;
}
.dashboard-body .icon-search::after {
  width: 7px;
  right: -5px;
  bottom: 0;
}
.dashboard-body .metric-block span {
  font-size: 11px;
  line-height: 1.25;
}
.dashboard-body .metric-block strong {
  font-size: 26px;
}
.dashboard-body .metric-block em {
  font-size: 12px;
}
.dashboard-body .metric-spark {
  height: 18px;
  padding-top: 4px;
}
@media (max-width: 680px) {
  .dashboard-body .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }
  .dashboard-body .metric-block {
    min-height: 72px;
    padding: 10px 11px;
    gap: 5px;
  }
  .dashboard-body .metric-head {
    gap: 7px;
  }
  .dashboard-body .metric-icon {
    width: 14px;
    height: 14px;
    border-width: 1.5px;
  }
  .dashboard-body .icon-search::after {
    width: 5px;
    height: 1.5px;
    right: -4px;
  }
  .dashboard-body .metric-block span {
    font-size: 10px;
    letter-spacing: -0.01em;
  }
  .dashboard-body .metric-value {
    gap: 4px;
  }
  .dashboard-body .metric-block strong {
    font-size: clamp(19px, 6vw, 23px);
  }
  .dashboard-body .metric-block em {
    font-size: 10px;
  }
  .dashboard-body .metric-spark {
    display: none;
  }
}
@media (max-width: 360px) {
  .dashboard-body .metric-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact collection-history KPI cards */
.results-page .image-sub-kpi {
  gap: 10px;
  margin-bottom: 12px;
}
.results-page .image-kpi-card {
  min-height: 104px;
  padding: 14px 15px;
  border-radius: 12px;
}
.results-page .image-kpi-head {
  gap: 8px;
}
.results-page .image-kpi-head span {
  font-size: 11px;
  line-height: 1.25;
}
.results-page .image-kpi-head i {
  width: 28px;
  height: 28px;
}
.results-page .image-kpi-card strong {
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1;
}
.results-page .image-kpi-card small,
.results-page .image-kpi-card p {
  font-size: 11px;
}
@media (max-width: 640px) {
  .results-page .image-sub-kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
    margin-bottom: 10px;
  }
  .results-page .image-kpi-card {
    min-height: 70px;
    padding: 9px 10px;
    border-radius: 10px;
  }
  .results-page .image-kpi-card::before,
  .results-page .image-kpi-card::after {
    opacity: 0.28;
  }
  .results-page .image-kpi-head {
    margin-bottom: 5px;
  }
  .results-page .image-kpi-head span {
    font-size: 10px;
    letter-spacing: -0.01em;
  }
  .results-page .image-kpi-head i {
    width: 20px;
    height: 20px;
  }
  .results-page .image-kpi-card strong {
    font-size: clamp(18px, 5.6vw, 22px);
  }
  .results-page .image-kpi-card small,
  .results-page .image-kpi-card p {
    font-size: 10px;
    line-height: 1.25;
  }
}
@media (max-width: 360px) {
  .results-page .image-sub-kpi {
    grid-template-columns: 1fr !important;
  }
}

/* Compact all-rank KPI cards */
.rank-check-all-page .rank-all-kpi {
  gap: 10px;
  margin-bottom: 12px;
}
.rank-check-all-page .rank-all-kpi .image-kpi-card {
  min-height: 104px;
  padding: 14px 15px;
  border-radius: 12px;
}
.rank-check-all-page .rank-all-kpi .image-kpi-head {
  gap: 8px;
}
.rank-check-all-page .rank-all-kpi .image-kpi-head span {
  font-size: 11px;
  line-height: 1.25;
}
.rank-check-all-page .rank-all-kpi .image-kpi-head i {
  width: 28px;
  height: 28px;
}
.rank-check-all-page .rank-all-kpi .image-kpi-card strong {
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1;
}
.rank-check-all-page .rank-all-kpi .image-kpi-card small,
.rank-check-all-page .rank-all-kpi .image-kpi-card p {
  font-size: 11px;
}
@media (max-width: 640px) {
  .rank-check-all-page .rank-all-kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
    margin-bottom: 10px;
  }
  .rank-check-all-page .rank-all-kpi .image-kpi-card {
    min-height: 70px;
    padding: 9px 10px;
    border-radius: 10px;
  }
  .rank-check-all-page .rank-all-kpi .image-kpi-card::before,
  .rank-check-all-page .rank-all-kpi .image-kpi-card::after {
    opacity: 0.28;
  }
  .rank-check-all-page .rank-all-kpi .image-kpi-head {
    margin-bottom: 5px;
  }
  .rank-check-all-page .rank-all-kpi .image-kpi-head span {
    font-size: 10px;
    letter-spacing: -0.01em;
  }
  .rank-check-all-page .rank-all-kpi .image-kpi-head i {
    width: 20px;
    height: 20px;
  }
  .rank-check-all-page .rank-all-kpi .image-kpi-card strong {
    font-size: clamp(18px, 5.6vw, 22px);
  }
  .rank-check-all-page .rank-all-kpi .image-kpi-card small,
  .rank-check-all-page .rank-all-kpi .image-kpi-card p {
    font-size: 10px;
    line-height: 1.25;
  }
}
@media (max-width: 360px) {
  .rank-check-all-page .rank-all-kpi {
    grid-template-columns: 1fr !important;
  }
}

/* Compact KPI cards for all user/admin subpages */
.image-subpage-body .image-sub-kpi,
.admin-page .image-sub-kpi,
.member-page .image-sub-kpi,
.user-profile-page .image-sub-kpi,
.admin-dashboard-page .image-sub-kpi {
  gap: 10px !important;
  margin-bottom: 12px !important;
}
.image-subpage-body .image-sub-kpi .image-kpi-card,
.admin-page .image-sub-kpi .image-kpi-card,
.member-page .image-sub-kpi .image-kpi-card,
.user-profile-page .image-sub-kpi .image-kpi-card,
.admin-dashboard-page .image-sub-kpi .image-kpi-card {
  min-height: 104px !important;
  padding: 14px 15px !important;
  border-radius: 12px !important;
}
.image-subpage-body .image-sub-kpi .image-kpi-head,
.admin-page .image-sub-kpi .image-kpi-head,
.member-page .image-sub-kpi .image-kpi-head,
.user-profile-page .image-sub-kpi .image-kpi-head,
.admin-dashboard-page .image-sub-kpi .image-kpi-head {
  gap: 8px !important;
}
.image-subpage-body .image-sub-kpi .image-kpi-head span,
.admin-page .image-sub-kpi .image-kpi-head span,
.member-page .image-sub-kpi .image-kpi-head span,
.user-profile-page .image-sub-kpi .image-kpi-head span,
.admin-dashboard-page .image-sub-kpi .image-kpi-head span {
  font-size: 11px !important;
  line-height: 1.25 !important;
}
.image-subpage-body .image-sub-kpi .image-kpi-head i,
.admin-page .image-sub-kpi .image-kpi-head i,
.member-page .image-sub-kpi .image-kpi-head i,
.user-profile-page .image-sub-kpi .image-kpi-head i,
.admin-dashboard-page .image-sub-kpi .image-kpi-head i {
  width: 28px !important;
  height: 28px !important;
}
.image-subpage-body .image-sub-kpi .image-kpi-card strong,
.admin-page .image-sub-kpi .image-kpi-card strong,
.member-page .image-sub-kpi .image-kpi-card strong,
.user-profile-page .image-sub-kpi .image-kpi-card strong,
.admin-dashboard-page .image-sub-kpi .image-kpi-card strong {
  font-size: clamp(22px, 2vw, 26px) !important;
  line-height: 1 !important;
}
.image-subpage-body .image-sub-kpi .image-kpi-card small,
.image-subpage-body .image-sub-kpi .image-kpi-card p,
.admin-page .image-sub-kpi .image-kpi-card small,
.admin-page .image-sub-kpi .image-kpi-card p,
.member-page .image-sub-kpi .image-kpi-card small,
.member-page .image-sub-kpi .image-kpi-card p,
.user-profile-page .image-sub-kpi .image-kpi-card small,
.user-profile-page .image-sub-kpi .image-kpi-card p,
.admin-dashboard-page .image-sub-kpi .image-kpi-card small,
.admin-dashboard-page .image-sub-kpi .image-kpi-card p {
  font-size: 11px !important;
  line-height: 1.3 !important;
}
@media (max-width: 640px) {
  .image-subpage-body .image-sub-kpi,
  .admin-page .image-sub-kpi,
  .member-page .image-sub-kpi,
  .user-profile-page .image-sub-kpi,
  .admin-dashboard-page .image-sub-kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }
  .image-subpage-body .image-sub-kpi .image-kpi-card,
  .admin-page .image-sub-kpi .image-kpi-card,
  .member-page .image-sub-kpi .image-kpi-card,
  .user-profile-page .image-sub-kpi .image-kpi-card,
  .admin-dashboard-page .image-sub-kpi .image-kpi-card {
    min-height: 70px !important;
    padding: 9px 10px !important;
    border-radius: 10px !important;
  }
  .image-subpage-body .image-sub-kpi .image-kpi-card::before,
  .image-subpage-body .image-sub-kpi .image-kpi-card::after,
  .admin-page .image-sub-kpi .image-kpi-card::before,
  .admin-page .image-sub-kpi .image-kpi-card::after,
  .member-page .image-sub-kpi .image-kpi-card::before,
  .member-page .image-sub-kpi .image-kpi-card::after,
  .user-profile-page .image-sub-kpi .image-kpi-card::before,
  .user-profile-page .image-sub-kpi .image-kpi-card::after,
  .admin-dashboard-page .image-sub-kpi .image-kpi-card::before,
  .admin-dashboard-page .image-sub-kpi .image-kpi-card::after {
    opacity: 0.28 !important;
  }
  .image-subpage-body .image-sub-kpi .image-kpi-head,
  .admin-page .image-sub-kpi .image-kpi-head,
  .member-page .image-sub-kpi .image-kpi-head,
  .user-profile-page .image-sub-kpi .image-kpi-head,
  .admin-dashboard-page .image-sub-kpi .image-kpi-head {
    margin-bottom: 5px !important;
  }
  .image-subpage-body .image-sub-kpi .image-kpi-head span,
  .admin-page .image-sub-kpi .image-kpi-head span,
  .member-page .image-sub-kpi .image-kpi-head span,
  .user-profile-page .image-sub-kpi .image-kpi-head span,
  .admin-dashboard-page .image-sub-kpi .image-kpi-head span {
    font-size: 10px !important;
    letter-spacing: -0.01em !important;
  }
  .image-subpage-body .image-sub-kpi .image-kpi-head i,
  .admin-page .image-sub-kpi .image-kpi-head i,
  .member-page .image-sub-kpi .image-kpi-head i,
  .user-profile-page .image-sub-kpi .image-kpi-head i,
  .admin-dashboard-page .image-sub-kpi .image-kpi-head i {
    width: 20px !important;
    height: 20px !important;
  }
  .image-subpage-body .image-sub-kpi .image-kpi-card strong,
  .admin-page .image-sub-kpi .image-kpi-card strong,
  .member-page .image-sub-kpi .image-kpi-card strong,
  .user-profile-page .image-sub-kpi .image-kpi-card strong,
  .admin-dashboard-page .image-sub-kpi .image-kpi-card strong {
    font-size: clamp(18px, 5.6vw, 22px) !important;
  }
  .image-subpage-body .image-sub-kpi .image-kpi-card small,
  .image-subpage-body .image-sub-kpi .image-kpi-card p,
  .admin-page .image-sub-kpi .image-kpi-card small,
  .admin-page .image-sub-kpi .image-kpi-card p,
  .member-page .image-sub-kpi .image-kpi-card small,
  .member-page .image-sub-kpi .image-kpi-card p,
  .user-profile-page .image-sub-kpi .image-kpi-card small,
  .user-profile-page .image-sub-kpi .image-kpi-card p,
  .admin-dashboard-page .image-sub-kpi .image-kpi-card small,
  .admin-dashboard-page .image-sub-kpi .image-kpi-card p {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }
}
@media (max-width: 360px) {
  .image-subpage-body .image-sub-kpi,
  .admin-page .image-sub-kpi,
  .member-page .image-sub-kpi,
  .user-profile-page .image-sub-kpi,
  .admin-dashboard-page .image-sub-kpi {
    grid-template-columns: 1fr !important;
  }
}

/* Responsive and late-stage interface patches.
   This file is appended after app.css by AssetDelivery. */

/* Landing hero compact polish */
.landing-main {
  padding-top: clamp(10px, 1.8vw, 22px) !important;
}

.landing-hero {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px) !important;
  align-items: center !important;
  gap: clamp(16px, 2.6vw, 28px) !important;
  min-height: auto !important;
  padding: clamp(18px, 2.8vw, 34px) 0 clamp(22px, 3.2vw, 38px) !important;
}

.landing-hero-visual {
  left: clamp(-80px, -5vw, -28px) !important;
  top: 50% !important;
  width: min(42vw, 360px) !important;
  height: min(28vw, 250px) !important;
  transform: translateY(-50%) !important;
  opacity: 0.55 !important;
}

.landing-hero-copy {
  min-width: 0 !important;
  max-width: 620px !important;
}

.landing-kicker {
  margin-bottom: 8px !important;
  padding: 5px 10px !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
}

.landing-hero h1 {
  margin-bottom: 10px !important;
  font-size: clamp(1.58rem, 3.25vw, 2.28rem) !important;
  line-height: 1.14 !important;
  letter-spacing: 0 !important;
}

.landing-lead {
  max-width: 34rem !important;
  margin-bottom: 16px !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

.landing-cta {
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
}

.landing-hero-points {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  max-width: 520px !important;
  margin-top: 14px !important;
}

.landing-hero-points li {
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 6px 8px !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.72rem !important;
  line-height: 1.22 !important;
  text-align: center !important;
  white-space: normal !important;
}

.landing-point-icon {
  flex: 0 0 16px !important;
}

.landing-login-card {
  align-self: center !important;
  width: 100% !important;
  max-width: 390px !important;
  justify-self: end !important;
  padding: clamp(18px, 2.4vw, 24px) !important;
  border-radius: 14px !important;
}

@media (max-width: 960px) {
  .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
    gap: 18px !important;
  }

  .landing-hero-visual {
    width: min(38vw, 300px) !important;
    height: 220px !important;
    opacity: 0.36 !important;
  }
}

@media (max-width: 760px) {
  .image-dashboard-body .image-dashboard-main {
    padding: 14px 12px 28px;
  }

  .image-dashboard-body .image-hero-card,
  .image-dashboard-body .image-page-hero,
  .image-dashboard-body .image-hero-card.image-expert-hero,
  .image-subpage-body .image-page-hero--admin,
  .admin-page .image-page-hero--admin {
    min-height: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    padding: 14px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 244, 0.94)) !important;
  }

  .image-dashboard-body .image-hero-card::before,
  .image-dashboard-body .image-page-hero::before {
    opacity: 0 !important;
  }

  .image-dashboard-body .image-hero-kicker,
  .image-dashboard-body .image-page-hero p {
    margin-bottom: 4px !important;
    font-size: 0.66rem !important;
    line-height: 1.2 !important;
  }

  .image-dashboard-body .image-hero-card h1,
  .image-dashboard-body .image-page-hero h1 {
    margin-bottom: 5px !important;
    font-size: clamp(1.25rem, 5.8vw, 1.55rem) !important;
    line-height: 1.16 !important;
    letter-spacing: 0 !important;
  }

  .image-dashboard-body .image-hero-copy > span,
  .image-dashboard-body .image-page-hero-copy > span {
    display: block !important;
    max-width: 100% !important;
    font-size: 0.78rem !important;
    line-height: 1.42 !important;
  }

  .image-page-hero--admin .admin-hero-tools,
  .image-expert-hero .admin-hero-tools,
  .home-top .admin-hero-tools {
    justify-self: start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 4px !important;
    gap: 4px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  .image-page-hero--admin .admin-hero-tools::-webkit-scrollbar,
  .image-expert-hero .admin-hero-tools::-webkit-scrollbar,
  .home-top .admin-hero-tools::-webkit-scrollbar {
    display: none;
  }

  .admin-hero-tool-btn {
    --admin-tool-size: 38px;
    border-radius: 10px !important;
  }

  .landing-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .landing-hero-visual {
    display: none !important;
  }

  .landing-login-card {
    max-width: 100% !important;
    justify-self: stretch !important;
  }
}

@media (max-width: 640px) {
  .landing-main {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-bottom: 18px !important;
  }

  .landing-hero {
    min-height: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px 0 14px !important;
  }

  .landing-hero-visual {
    display: none !important;
  }

  .landing-hero-copy {
    min-width: 0 !important;
    padding: 0 !important;
  }

  .landing-kicker {
    margin-bottom: 6px !important;
    padding: 4px 9px !important;
    font-size: 0.68rem !important;
  }

  .landing-hero h1 {
    margin-bottom: 6px !important;
    max-width: 100% !important;
    font-size: clamp(1.28rem, 6.2vw, 1.58rem) !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere !important;
  }

  .landing-hero h1 br {
    display: initial !important;
  }

  .landing-lead {
    max-width: 36rem !important;
    margin-bottom: 10px !important;
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
  }

  .landing-cta {
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 0.82rem !important;
  }

  .landing-hero-points {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin-top: 9px !important;
  }

  .landing-hero-points li {
    min-height: 42px !important;
    min-width: 0 !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 6px 4px !important;
    border-radius: 8px !important;
    font-size: 0.62rem !important;
    line-height: 1.22 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .landing-point-icon {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
    font-size: 11px !important;
  }

  .landing-login-card {
    margin-top: 0 !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 420px) {
  .image-dashboard-body .image-dashboard-main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .image-dashboard-body .image-hero-card,
  .image-dashboard-body .image-page-hero,
  .image-dashboard-body .image-hero-card.image-expert-hero {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  .landing-hero {
    gap: 8px !important;
    padding-top: 8px !important;
  }

  .landing-hero h1 {
    font-size: clamp(1.18rem, 6.5vw, 1.42rem) !important;
  }

  .landing-hero-points li {
    min-width: 0 !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
    font-size: 0.58rem !important;
  }
}

/* Rank change summary and advertiser report */
.advertiser-rank-summary {
  padding: 20px !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px -30px rgba(15, 23, 42, 0.28) !important;
}

.advertiser-rank-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.advertiser-rank-summary__grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e6edf2;
  border-radius: 8px;
  background: #f8fafc;
}

.advertiser-rank-summary__grid span,
.advertiser-rank-summary__changes-head span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.advertiser-rank-summary__grid strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 24px;
  line-height: 1.1;
}

.advertiser-rank-summary__grid em {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.advertiser-rank-summary__grid article.is-up {
  border-color: rgba(5, 150, 105, 0.2);
  background: #ecfdf5;
}

.advertiser-rank-summary__grid article.is-up strong,
.rank-change-badge.is-up strong,
.rank-change-chip.is-up {
  color: #047857;
}

.advertiser-rank-summary__grid article.is-down {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fff1f2;
}

.advertiser-rank-summary__grid article.is-down strong,
.rank-change-badge.is-down strong,
.rank-change-chip.is-down {
  color: #be123c;
}

.advertiser-rank-summary__changes {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e6edf2;
}

.advertiser-rank-summary__changes-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.advertiser-rank-summary__changes-head strong {
  color: #0f172a;
  font-size: 14px;
}

.advertiser-rank-summary__changes ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.advertiser-rank-summary__changes li {
  display: grid;
  grid-template-columns: auto minmax(110px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #ffffff;
}

.advertiser-rank-summary__changes li strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advertiser-rank-summary__changes li em,
.advertiser-rank-summary__empty {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.rank-change-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid #e6edf2;
  border-radius: 8px;
  background: #f8fafc;
}

.rank-change-badge span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.rank-change-badge strong {
  color: #475569;
  font-size: 12px;
  font-weight: 950;
}

.rank-change-badge em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}

.rank-change-badge.is-up {
  border-color: rgba(5, 150, 105, 0.22);
  background: #ecfdf5;
}

.rank-change-badge.is-down {
  border-color: rgba(220, 38, 38, 0.2);
  background: #fff1f2;
}

.rank-change-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  max-width: 100%;
  padding: 0 9px;
  border: 1px solid #e6edf2;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.rank-change-chip.is-up {
  border-color: rgba(5, 150, 105, 0.22);
  background: #ecfdf5;
}

.rank-change-chip.is-down {
  border-color: rgba(220, 38, 38, 0.2);
  background: #fff1f2;
}

.rank-all-row__change {
  min-width: 86px;
}

body.theme-dark .advertiser-rank-summary,
body.theme-dark.rank-check-visual-body .advertiser-rank-summary {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.92) !important;
}

body.theme-dark .advertiser-rank-summary__grid article,
body.theme-dark .advertiser-rank-summary__changes li,
body.theme-dark .rank-change-badge,
body.theme-dark .rank-change-chip {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.34);
}

body.theme-dark .advertiser-rank-summary__changes {
  border-top-color: rgba(148, 163, 184, 0.16);
}

body.theme-dark .advertiser-rank-summary__grid strong,
body.theme-dark .advertiser-rank-summary__changes-head strong,
body.theme-dark .advertiser-rank-summary__changes li strong {
  color: #f8fafc;
}

@media (max-width: 980px) {
  .advertiser-rank-summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advertiser-rank-summary__changes li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .advertiser-rank-summary__changes li em {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .advertiser-rank-summary {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .advertiser-rank-summary__grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .advertiser-rank-summary__grid article {
    padding: 11px;
  }

  .advertiser-rank-summary__grid strong {
    font-size: 20px;
  }

  .advertiser-rank-summary__changes-head {
    display: block;
  }

  .rank-change-badge {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rank-change-badge em {
    grid-column: 1 / -1;
  }
}

/* Main hero and rank-check compact polish */
.image-dashboard-home .image-dashboard-compact-hero {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.78fr) minmax(430px, 1.22fr) !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 0 !important;
  margin-bottom: 14px !important;
  padding: 16px 18px !important;
  border-color: #e3ebe7 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 42px -34px rgba(15, 23, 42, 0.32) !important;
}

.image-dashboard-home .image-dashboard-compact-hero::before,
.image-dashboard-home .image-dashboard-compact-hero::after {
  display: none !important;
}

.image-dashboard-home .image-dashboard-compact-copy {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.image-dashboard-home .image-dashboard-compact-head {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
}

.image-dashboard-home .image-hero-kicker {
  margin: 0 !important;
  color: #047857 !important;
  font-size: 0.68rem !important;
  line-height: 1 !important;
}

.image-dashboard-home .image-dashboard-compact-badge {
  min-height: 22px !important;
  padding: 0 8px !important;
  border: 1px solid #d7eee2 !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
  font-size: 0.68rem !important;
}

.image-dashboard-home .image-dashboard-compact-hero h1 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 3px 7px !important;
  margin: 0 !important;
  font-size: clamp(1.32rem, 1.75vw, 1.72rem) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-name,
.image-dashboard-home .image-dashboard-hero-title {
  min-width: 0 !important;
}

.image-dashboard-home .image-dashboard-compact-lead {
  max-width: 42ch !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.82rem !important;
  line-height: 1.38 !important;
}

.image-dashboard-home .image-dashboard-hero-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin-top: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-stats span {
  min-height: 28px !important;
  padding: 0 8px !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.image-dashboard-home .image-dashboard-hero-stats svg,
.image-dashboard-home .image-dashboard-hero-stats .image-line-icon {
  width: 14px !important;
  height: 14px !important;
}

.image-dashboard-home .image-dashboard-compact-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "tools"
    "collect" !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools {
  grid-area: tools !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
  justify-content: flex-end !important;
  align-self: center !important;
  justify-self: end !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.image-dashboard-home .image-dashboard-hero-collect {
  grid-area: collect !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(142px, 172px) !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.image-dashboard-home .image-dashboard-hero-search-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 56px !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-keyword-stack,
.image-dashboard-home .image-dashboard-hero-keywords {
  min-width: 0 !important;
  margin: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-keyword-help {
  display: none !important;
}

.image-dashboard-home .image-dashboard-hero-keywords,
.image-dashboard-home .image-dashboard-hero-keywords textarea {
  height: 40px !important;
  min-height: 40px !important;
}

.image-dashboard-home .image-dashboard-hero-keywords textarea {
  padding: 9px 12px !important;
  border-radius: 11px !important;
  font-size: 0.84rem !important;
  line-height: 1.2 !important;
  resize: none !important;
}

.image-dashboard-home .image-dashboard-hero-submit {
  width: 56px !important;
  min-width: 56px !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 26px -20px rgba(4, 120, 87, 0.8) !important;
}

.image-dashboard-home .image-dashboard-hero-services {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-services .toggle-pill,
.image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
  width: 100% !important;
  min-width: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
  justify-content: center !important;
  min-height: 32px !important;
  padding: 0 8px !important;
  border-radius: 10px !important;
  font-size: 0.7rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tool-btn {
  --admin-tool-size: 34px !important;
  border-radius: 10px !important;
}

.rank-check-visual-body .image-dashboard-main {
  padding-top: 16px !important;
}

.rank-check-visual-body .image-page-hero--admin {
  min-height: 0 !important;
  margin-bottom: 10px !important;
  padding: 14px 16px !important;
  border-color: #e3ebe7 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 16px 38px -32px rgba(15, 23, 42, 0.3) !important;
}

.rank-check-visual-body .image-page-hero--admin h1 {
  margin: 0 !important;
  font-size: clamp(1.25rem, 1.8vw, 1.62rem) !important;
  line-height: 1.18 !important;
}

.rank-check-visual-body .image-page-hero--admin p {
  margin-bottom: 5px !important;
  font-size: 0.68rem !important;
}

.rank-check-visual-body .image-page-hero-copy > span {
  max-width: 58ch !important;
  color: #64748b !important;
  font-size: 0.82rem !important;
  line-height: 1.38 !important;
}

.rank-check-visual-body .rank-check-kakao-bar {
  margin: 0 0 10px !important;
  padding: 7px !important;
  border-radius: 12px !important;
}

.rank-check-visual-body .rank-check-page-stack {
  gap: 12px !important;
}

.rank-check-visual-body .rank-check-setup-panel,
.rank-check-visual-body .advertiser-rank-summary,
.rank-check-visual-body .rank-check-saved-board {
  border-radius: 14px !important;
  box-shadow: 0 16px 38px -34px rgba(15, 23, 42, 0.28) !important;
}

.rank-check-visual-body .rank-check-setup-panel {
  padding: 15px !important;
  background: #ffffff !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-check-form {
  gap: 10px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid {
  grid-template-columns: minmax(160px, 0.85fr) minmax(190px, 0.9fr) minmax(240px, 1.15fr) !important;
  gap: 10px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label {
  gap: 5px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label span {
  font-size: 10.5px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid input {
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-service-row {
  grid-template-columns: auto minmax(180px, 1fr) auto !important;
  gap: 8px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-service-toggle-group {
  gap: 5px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle span {
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  box-shadow: none !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle span::before {
  width: 13px !important;
  height: 13px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-form-hint {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button {
  min-width: 128px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

.rank-check-visual-body .rank-report-panel {
  margin-top: 10px !important;
  border-radius: 12px !important;
}

.rank-check-visual-body .rank-report-panel__head {
  min-height: 44px !important;
  padding: 10px 12px !important;
}

.rank-check-visual-body .rank-report-panel__head h4 {
  font-size: 13px !important;
}

.rank-check-visual-body .rank-report-panel__body {
  padding: 10px 12px 12px !important;
}

.rank-check-visual-body .rank-watch-stats {
  grid-template-columns: repeat(4, minmax(112px, 1fr)) minmax(260px, 1.25fr) !important;
  gap: 8px !important;
}

.rank-check-visual-body .rank-watch-stat {
  min-height: 82px !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  gap: 9px !important;
  padding: 12px !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px -26px rgba(15, 23, 42, 0.26) !important;
}

.rank-check-visual-body .rank-watch-stat__icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
}

.rank-check-visual-body .rank-watch-stat__icon::before {
  width: 14px !important;
  height: 14px !important;
}

.rank-check-visual-body .rank-watch-stat span,
.rank-check-visual-body .rank-watch-channel-copy span {
  font-size: 10.5px !important;
}

.rank-check-visual-body .rank-watch-stat strong {
  font-size: 18px !important;
}

.rank-check-visual-body .rank-watch-stat em {
  margin-top: 3px !important;
  font-size: 10.5px !important;
}

.rank-check-visual-body .rank-watch-stat--channels {
  min-height: 82px !important;
  padding: 12px !important;
}

.rank-check-visual-body .rank-watch-donut {
  width: 58px !important;
  height: 58px !important;
}

.rank-check-visual-body .advertiser-rank-summary {
  padding: 14px !important;
}

.rank-check-visual-body .advertiser-rank-summary .member-panel-head {
  margin-bottom: 10px !important;
}

.rank-check-visual-body .advertiser-rank-summary__grid {
  gap: 8px !important;
}

.rank-check-visual-body .advertiser-rank-summary__grid article {
  padding: 10px !important;
}

.rank-check-visual-body .advertiser-rank-summary__grid strong {
  font-size: 20px !important;
}

.rank-check-visual-body .advertiser-rank-summary__changes {
  margin-top: 9px !important;
  padding-top: 9px !important;
}

.rank-check-visual-body .advertiser-rank-summary__changes li {
  padding: 8px 10px !important;
}

.rank-check-visual-body .rank-check-saved-board {
  padding: 16px !important;
}

.rank-check-visual-body .rank-check-saved-board > .member-panel-head {
  margin-bottom: 10px !important;
}

.rank-check-visual-body .rank-watcher-toolbar {
  margin-bottom: 8px !important;
}

.rank-check-visual-body .rank-watcher-filter {
  min-height: 32px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
}

.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter.is-active {
  border-color: rgba(4, 120, 87, 0.34) !important;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%) !important;
  color: #065f46 !important;
  box-shadow: 0 10px 24px rgba(11, 122, 73, 0.14) !important;
}

.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter.is-active:hover {
  border-color: rgba(4, 120, 87, 0.46) !important;
  background: #bbf7d0 !important;
  color: #064e3b !important;
}

.rank-check-kakao-bar .rank-action-btn--ghost,
.rank-check-all-page .rank-action-btn--ghost {
  color: #334155 !important;
}

.rank-check-visual-body .rank-watcher-health-row {
  margin-bottom: 8px !important;
  padding: 8px 10px !important;
}

.rank-check-visual-body .rank-check-saved-board .watcher-list {
  gap: 8px !important;
}

.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
  min-height: 0 !important;
  padding: 10px !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.rank-check-visual-body .rank-position-strip {
  margin-top: 8px !important;
  padding: 9px !important;
  border-radius: 10px !important;
}

.rank-check-visual-body .rank-change-badge {
  margin-top: 6px !important;
  padding: 6px 8px !important;
}

.rank-check-visual-body .watcher-checked-at {
  margin-top: 5px !important;
}

.rank-check-visual-body .watcher-actions {
  margin-top: 2px !important;
}

.rank-check-visual-body .rank-watch-tip-row {
  margin-top: 10px !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
}

body.theme-dark .image-dashboard-home .image-dashboard-compact-hero,
body.theme-dark.rank-check-visual-body .image-page-hero--admin,
body.theme-dark.rank-check-visual-body .rank-check-setup-panel {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.94) !important;
}

body.theme-dark .image-dashboard-home .image-dashboard-hero-stats span {
  border-color: rgba(148, 163, 184, 0.18) !important;
  background: rgba(2, 6, 23, 0.32) !important;
  color: #e2e8f0 !important;
}

body.theme-dark.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter.is-active {
  border-color: rgba(52, 211, 153, 0.38) !important;
  background: rgba(6, 78, 59, 0.48) !important;
  color: #bbf7d0 !important;
}

body.theme-dark .rank-check-kakao-bar .rank-action-btn--ghost,
body.theme-dark.rank-check-all-page .rank-action-btn--ghost {
  color: #e2e8f0 !important;
}

@media (max-width: 1180px) {
  .image-dashboard-home .image-dashboard-compact-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .image-dashboard-home .image-dashboard-compact-actions {
    grid-template-areas: "tools" "collect" !important;
  }

  .rank-check-visual-body .rank-watch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 900px) {
  .image-dashboard-home .image-dashboard-hero-collect,
  .rank-check-visual-body .rank-check-setup-panel .rank-field-grid,
  .rank-check-visual-body .rank-check-setup-panel .rank-service-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button {
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  .image-dashboard-home .image-dashboard-compact-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
    padding: 9px !important;
  }

  .image-dashboard-home .image-dashboard-compact-hero h1 {
    font-size: clamp(1.06rem, 5.3vw, 1.32rem) !important;
  }

  .image-dashboard-home .image-dashboard-hero-stats {
    grid-column: 1 / -1 !important;
  }

  .image-dashboard-home .image-dashboard-hero-stats span {
    min-height: 24px !important;
    padding: 0 7px !important;
  }

  .image-dashboard-home .image-dashboard-compact-actions {
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "tools"
      "collect" !important;
    gap: 6px !important;
  }

  .image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-end !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools::-webkit-scrollbar {
    display: none !important;
  }

  .image-dashboard-home .image-dashboard-compact-hero .admin-hero-tool-btn {
    --admin-tool-size: 31px !important;
  }

  .image-dashboard-home .image-dashboard-hero-keywords,
  .image-dashboard-home .image-dashboard-hero-keywords textarea {
    height: 36px !important;
    min-height: 36px !important;
  }

  .image-dashboard-home .image-dashboard-hero-search-row {
    grid-template-columns: minmax(0, 1fr) 44px !important;
  }

  .image-dashboard-home .image-dashboard-hero-submit {
    width: 44px !important;
    min-width: 44px !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  .rank-check-visual-body .image-dashboard-main {
    padding-top: 10px !important;
  }

  .rank-check-visual-body .image-page-hero--admin {
    margin-bottom: 8px !important;
    padding: 11px 12px !important;
  }

  .rank-check-visual-body .image-page-hero-copy > span {
    display: none !important;
  }

  .rank-check-visual-body .rank-check-kakao-bar {
    margin-bottom: 8px !important;
  }

  .rank-check-visual-body .rank-check-setup-panel,
  .rank-check-visual-body .advertiser-rank-summary,
  .rank-check-visual-body .rank-check-saved-board {
    padding: 12px !important;
  }

  .rank-check-visual-body .rank-watch-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  .rank-check-visual-body .rank-watch-stat {
    min-height: 74px !important;
    padding: 10px !important;
  }

  .rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
  }

  .rank-check-visual-body .advertiser-rank-summary__grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
    padding: 12px !important;
  }

  .rank-check-visual-body .rank-check-saved-board .watcher-checked-at {
    padding-right: 0 !important;
  }

  .rank-check-visual-body .rank-check-saved-board .watcher-actions {
    position: static !important;
    right: auto !important;
  }
}

@media (max-width: 420px) {
  .image-dashboard-home .image-dashboard-compact-hero {
    padding: 8px !important;
  }

  .image-dashboard-home .image-dashboard-hero-stats span em {
    display: none !important;
  }

  .image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
    min-height: 27px !important;
    font-size: 0.64rem !important;
  }

  .rank-check-visual-body .rank-watch-stats,
  .rank-check-visual-body .advertiser-rank-summary__grid {
    grid-template-columns: 1fr !important;
  }
}

/* Final main hero guard: keep the landing and dashboard heroes stable. */
body.landing-page-body .landing-main {
  padding-top: clamp(10px, 1.8vw, 22px) !important;
}

body.landing-page-body .landing-hero {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px) !important;
  align-items: start !important;
  gap: clamp(16px, 2.6vw, 28px) !important;
  min-height: auto !important;
  padding: clamp(18px, 2.8vw, 34px) 0 clamp(22px, 3.2vw, 38px) !important;
}

body.landing-page-body .landing-hero-visual {
  position: absolute !important;
  left: clamp(-80px, -5vw, -28px) !important;
  top: 50% !important;
  width: min(42vw, 360px) !important;
  height: min(28vw, 250px) !important;
  transform: translateY(-50%) !important;
  opacity: 0.48 !important;
  pointer-events: none !important;
}

body.landing-page-body .landing-hero-copy {
  position: relative !important;
  z-index: 1 !important;
  min-width: 0 !important;
  max-width: 620px !important;
}

body.landing-page-body .landing-kicker {
  margin-bottom: 8px !important;
  padding: 5px 10px !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
}

body.landing-page-body .landing-hero h1 {
  margin-bottom: 10px !important;
  font-size: clamp(1.58rem, 3.25vw, 2.28rem) !important;
  line-height: 1.14 !important;
  letter-spacing: 0 !important;
}

body.landing-page-body .landing-lead {
  max-width: 34rem !important;
  margin-bottom: 16px !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

body.landing-page-body .landing-cta {
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
}

body.landing-page-body .landing-hero-points {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  max-width: 520px !important;
  margin-top: 14px !important;
}

body.landing-page-body .landing-hero-points li {
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 6px 8px !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.72rem !important;
  line-height: 1.22 !important;
  text-align: center !important;
  white-space: normal !important;
}

body.landing-page-body .landing-point-icon {
  flex: 0 0 16px !important;
}

body.landing-page-body .landing-login-card {
  align-self: start !important;
  width: 100% !important;
  max-width: 390px !important;
  justify-self: end !important;
  padding: clamp(18px, 2.4vw, 24px) !important;
  border-radius: 14px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.78fr) minmax(430px, 1.22fr) !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 0 !important;
  margin-bottom: 14px !important;
  padding: 16px 18px !important;
  border-color: #e3ebe7 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px -34px rgba(15, 23, 42, 0.32) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "tools"
    "collect" !important;
  align-items: stretch !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools {
  grid-area: tools !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
  justify-content: flex-end !important;
  justify-self: end !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect {
  grid-area: collect !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(142px, 172px) !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 960px) {
  body.landing-page-body .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
    gap: 18px !important;
  }

  body.landing-page-body .landing-hero-visual {
    width: min(38vw, 300px) !important;
    height: 220px !important;
    opacity: 0.32 !important;
  }
}

@media (max-width: 760px) {
  body.landing-page-body .landing-main {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.landing-page-body .landing-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px 0 14px !important;
  }

  body.landing-page-body .landing-hero-visual {
    display: none !important;
  }

  body.landing-page-body .landing-login-card {
    max-width: 100% !important;
    justify-self: stretch !important;
    margin-top: 0 !important;
    padding: 14px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
    padding: 9px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-actions {
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "tools"
      "collect" !important;
    gap: 6px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-end !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 640px) {
  body.landing-page-body .landing-hero h1 {
    margin-bottom: 6px !important;
    font-size: clamp(1.28rem, 6.2vw, 1.58rem) !important;
    line-height: 1.18 !important;
  }

  body.landing-page-body .landing-lead {
    margin-bottom: 10px !important;
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
  }

  body.landing-page-body .landing-cta {
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 0.82rem !important;
  }

  body.landing-page-body .landing-hero-points {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin-top: 9px !important;
  }

  body.landing-page-body .landing-hero-points li {
    min-height: 42px !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 6px 4px !important;
    font-size: 0.62rem !important;
  }
}

@media (max-width: 420px) {
  body.landing-page-body .landing-hero {
    gap: 8px !important;
    padding-top: 8px !important;
  }

  body.landing-page-body .landing-hero h1 {
    font-size: clamp(1.18rem, 6.5vw, 1.42rem) !important;
  }

  body.landing-page-body .landing-hero-points li {
    padding-left: 3px !important;
    padding-right: 3px !important;
    font-size: 0.58rem !important;
  }
}

/* Final user dashboard and rank-check page polish */
body.image-dashboard-body .image-dashboard-main.image-dashboard-home {
  max-width: 1380px !important;
  padding-top: 14px !important;
  padding-bottom: 24px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
  grid-template-columns: minmax(260px, 0.72fr) minmax(460px, 1.28fr) !important;
  gap: 12px !important;
  margin-bottom: 10px !important;
  padding: 13px 15px !important;
  border-radius: 14px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-copy {
  gap: 5px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero h1 {
  font-size: clamp(1.22rem, 1.58vw, 1.58rem) !important;
  line-height: 1.1 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-lead {
  font-size: 0.78rem !important;
  line-height: 1.32 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span {
  min-height: 25px !important;
  padding: 0 7px !important;
  font-size: 0.68rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-actions {
  gap: 6px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect {
  grid-template-columns: minmax(0, 1fr) minmax(132px, 160px) !important;
  gap: 6px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-keywords,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-keywords textarea {
  height: 36px !important;
  min-height: 36px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-search-row {
  grid-template-columns: minmax(0, 1fr) 50px !important;
  gap: 5px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-submit {
  width: 50px !important;
  min-width: 50px !important;
  height: 34px !important;
  min-height: 34px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
  min-height: 29px !important;
  border-radius: 9px !important;
  font-size: 0.66rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card {
  min-height: 104px !important;
  padding: 12px !important;
  border-radius: 12px !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 14px 34px -30px rgba(15, 23, 42, 0.28) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-head {
  margin-bottom: 7px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-head i {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-head span {
  font-size: 0.68rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card strong {
  font-size: clamp(1.32rem, 2.2vw, 1.88rem) !important;
  line-height: 1 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card p {
  margin-top: 7px !important;
  font-size: 0.66rem !important;
  line-height: 1.32 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-sparkline {
  right: 10px !important;
  bottom: 8px !important;
  width: 42% !important;
  height: 26px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px) !important;
  gap: 12px !important;
  align-items: start !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-primary,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-aside {
  gap: 10px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-home-main-grid,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-bottom-grid {
  gap: 10px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-system-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-tip-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-schedule-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-today-card {
  padding: 13px !important;
  border-radius: 12px !important;
  border-color: rgba(226, 232, 240, 0.94) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 16px 36px -34px rgba(15, 23, 42, 0.3) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-card-head {
  margin-bottom: 9px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-card-head h3 {
  font-size: 0.9rem !important;
  line-height: 1.18 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-card-head a,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-card-head span {
  font-size: 0.72rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-list {
  gap: 6px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-list--scroll:has(.image-recent-row:nth-child(5)) {
  --dashboard-recent-row-height: 54px !important;
  --dashboard-recent-row-gap: 6px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row {
  min-height: 54px !important;
  padding: 8px !important;
  border-radius: 9px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row .image-recent-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row strong {
  font-size: 0.8rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row em,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row i {
  font-size: 0.66rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-ring {
  min-height: 128px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-ring-visual {
  width: min(118px, 100%) !important;
  height: 126px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-ring-visual strong {
  font-size: 1.24rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-system-grid {
  gap: 0 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-system-grid div {
  min-height: 72px !important;
  padding: 10px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-calendar {
  gap: 4px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-calendar span,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-calendar b {
  min-height: 24px !important;
  border-radius: 7px !important;
  font-size: 0.66rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-schedule-note,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-schedule-task,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-today-list a {
  border-radius: 10px !important;
}

body.rank-check-visual-body .image-dashboard-main {
  max-width: 1380px !important;
  padding-top: 12px !important;
  padding-bottom: 24px !important;
}

body.rank-check-visual-body .image-page-hero--admin {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
}

body.rank-check-visual-body .image-page-hero--admin h1 {
  font-size: clamp(1.18rem, 1.55vw, 1.45rem) !important;
  line-height: 1.12 !important;
}

body.rank-check-visual-body .image-page-hero--admin p {
  margin-bottom: 4px !important;
  font-size: 0.64rem !important;
}

body.rank-check-visual-body .image-page-hero-copy > span {
  max-width: 64ch !important;
  font-size: 0.76rem !important;
  line-height: 1.32 !important;
}

body.rank-check-visual-body .rank-check-kakao-bar {
  justify-content: flex-end !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
  padding: 6px !important;
  border-radius: 11px !important;
}

body.rank-check-visual-body .rank-check-kakao-bar .rank-action-btn {
  min-height: 32px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 0.7rem !important;
}

body.rank-check-visual-body .rank-check-page-stack {
  gap: 10px !important;
}

body.rank-check-visual-body .rank-check-setup-panel,
body.rank-check-visual-body .advertiser-rank-summary,
body.rank-check-visual-body .rank-check-saved-board {
  border-radius: 12px !important;
  border-color: rgba(226, 232, 240, 0.94) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 16px 38px -34px rgba(15, 23, 42, 0.3) !important;
}

body.rank-check-visual-body .rank-check-setup-panel {
  padding: 12px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-check-form {
  gap: 8px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid {
  grid-template-columns: minmax(150px, 0.82fr) minmax(170px, 0.88fr) minmax(220px, 1.18fr) !important;
  gap: 8px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label {
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label span {
  font-size: 0.64rem !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid input {
  height: 36px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 0.78rem !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-service-row {
  grid-template-columns: auto minmax(160px, 1fr) auto !important;
  gap: 7px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-service-toggle-group {
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle span {
  min-height: 31px !important;
  padding: 0 9px !important;
  border-radius: 8px !important;
  font-size: 0.66rem !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-form-hint {
  font-size: 0.68rem !important;
  line-height: 1.3 !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button {
  min-width: 118px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  font-size: 0.7rem !important;
}

body.rank-check-visual-body .rank-report-panel {
  margin-top: 8px !important;
  border-radius: 10px !important;
}

body.rank-check-visual-body .rank-report-panel__head {
  min-height: 38px !important;
  padding: 8px 10px !important;
}

body.rank-check-visual-body .rank-report-panel__body {
  padding: 8px 10px 10px !important;
}

body.rank-check-visual-body .rank-watch-stats {
  grid-template-columns: repeat(4, minmax(104px, 1fr)) minmax(240px, 1.18fr) !important;
  gap: 7px !important;
}

body.rank-check-visual-body .rank-watch-stat {
  min-height: 74px !important;
  grid-template-columns: 26px minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 10px !important;
  border-radius: 10px !important;
}

body.rank-check-visual-body .rank-watch-stat__icon {
  width: 26px !important;
  height: 26px !important;
}

body.rank-check-visual-body .rank-watch-stat strong {
  font-size: 1rem !important;
}

body.rank-check-visual-body .rank-watch-stat span,
body.rank-check-visual-body .rank-watch-stat em,
body.rank-check-visual-body .rank-watch-channel-copy span {
  font-size: 0.64rem !important;
}

body.rank-check-visual-body .rank-watch-donut {
  width: 52px !important;
  height: 52px !important;
}

body.rank-check-visual-body .advertiser-rank-summary {
  padding: 12px !important;
}

body.rank-check-visual-body .advertiser-rank-summary .member-panel-head {
  margin-bottom: 8px !important;
}

body.rank-check-visual-body .advertiser-rank-summary__grid {
  gap: 7px !important;
}

body.rank-check-visual-body .advertiser-rank-summary__grid article {
  padding: 9px !important;
  border-radius: 9px !important;
}

body.rank-check-visual-body .advertiser-rank-summary__grid strong {
  font-size: 1.08rem !important;
}

body.rank-check-visual-body .rank-check-saved-board {
  padding: 13px !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head {
  margin-bottom: 8px !important;
}

body.rank-check-visual-body .rank-watcher-toolbar {
  gap: 8px !important;
  margin-bottom: 7px !important;
}

body.rank-check-visual-body .rank-watcher-filter-row {
  gap: 5px !important;
}

body.rank-check-visual-body .rank-watcher-filter {
  min-height: 29px !important;
  padding: 0 9px !important;
  border-radius: 8px !important;
  font-size: 0.66rem !important;
}

body.rank-check-visual-body .rank-watcher-health-row {
  margin-bottom: 7px !important;
  padding: 7px 9px !important;
  border-radius: 9px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-list {
  gap: 7px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
  padding: 9px !important;
  border-radius: 9px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-head,
body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row {
  gap: 7px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title {
  font-size: 0.82rem !important;
  line-height: 1.25 !important;
}

body.rank-check-visual-body .rank-position-strip {
  margin-top: 7px !important;
  padding: 8px !important;
  border-radius: 9px !important;
}

body.rank-check-visual-body .rank-position-strip--compact .rank-position-ranks {
  gap: 6px !important;
}

body.rank-check-visual-body .rank-position-hero {
  min-height: 0 !important;
  padding: 7px 8px !important;
  border-radius: 8px !important;
}

body.rank-check-visual-body .rank-position-hero__rank {
  font-size: 0.78rem !important;
}

body.rank-check-visual-body .rank-position-hero__num {
  font-size: 1rem !important;
}

body.rank-check-visual-body .watcher-actions-row__buttons {
  gap: 5px !important;
}

body.rank-check-visual-body .watcher-action-button,
body.rank-check-visual-body .watcher-delete-button,
body.rank-check-visual-body .watcher-open-button {
  min-height: 29px !important;
  padding: 0 9px !important;
  border-radius: 8px !important;
  font-size: 0.66rem !important;
}

body.rank-check-visual-body .rank-watch-tip-row {
  margin-top: 8px !important;
  padding: 8px 9px !important;
  border-radius: 9px !important;
}

body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-system-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-tip-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-schedule-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-today-card,
body.theme-dark.rank-check-visual-body .rank-check-setup-panel,
body.theme-dark.rank-check-visual-body .advertiser-rank-summary,
body.theme-dark.rank-check-visual-body .rank-check-saved-board {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.92) !important;
}

@media (max-width: 1180px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero,
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-layout,
  body.rank-check-visual-body .image-page-hero--admin {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 900px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect,
  body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid,
  body.rank-check-visual-body .rank-check-setup-panel .rank-service-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-home-main-grid,
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-bottom-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button {
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home {
    padding-top: 10px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
    padding: 9px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero h1 {
    font-size: clamp(1.05rem, 5.1vw, 1.28rem) !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card {
    min-height: 92px !important;
    padding: 10px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rank-check-visual-body .image-dashboard-main {
    padding-top: 9px !important;
  }

  body.rank-check-visual-body .image-page-hero--admin {
    padding: 10px !important;
  }

  body.rank-check-visual-body .image-page-hero-copy > span {
    display: none !important;
  }

  body.rank-check-visual-body .rank-check-kakao-bar {
    justify-content: flex-start !important;
    overflow-x: auto !important;
  }

  body.rank-check-visual-body .rank-check-setup-panel,
  body.rank-check-visual-body .advertiser-rank-summary,
  body.rank-check-visual-body .rank-check-saved-board {
    padding: 10px !important;
  }
}

@media (max-width: 520px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span em {
    display: none !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card p,
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-sparkline {
    display: none !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings,
  body.rank-check-visual-body .rank-watch-stats,
  body.rank-check-visual-body .advertiser-rank-summary__grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-watcher-toolbar {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  body.rank-check-visual-body .rank-watcher-filter-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Rank-check summary stats: extra compact pass */
body.rank-check-visual-body .rank-watch-stats {
  grid-template-columns: repeat(4, minmax(96px, 0.82fr)) minmax(220px, 1.14fr) !important;
  gap: 6px !important;
  margin: 0 !important;
}

body.rank-check-visual-body .rank-watch-stat {
  min-height: 58px !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  gap: 7px !important;
  align-items: center !important;
  padding: 8px 9px !important;
  border-radius: 9px !important;
  box-shadow: 0 10px 24px -24px rgba(15, 23, 42, 0.28) !important;
}

body.rank-check-visual-body .rank-watch-stat__icon {
  width: 22px !important;
  height: 22px !important;
  border-radius: 7px !important;
}

body.rank-check-visual-body .rank-watch-stat__icon::before {
  width: 12px !important;
  height: 12px !important;
}

body.rank-check-visual-body .rank-watch-stat span,
body.rank-check-visual-body .rank-watch-channel-copy span {
  font-size: 0.58rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watch-stat strong {
  margin-top: 2px !important;
  font-size: 0.96rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-watch-stat em {
  display: block !important;
  margin-top: 3px !important;
  font-size: 0.58rem !important;
  line-height: 1.18 !important;
  white-space: normal !important;
}

body.rank-check-visual-body .rank-watch-stat--time strong {
  font-size: 0.82rem !important;
  letter-spacing: 0 !important;
}

body.rank-check-visual-body .rank-watch-stat--channels {
  min-height: 58px !important;
  grid-template-columns: minmax(62px, 0.58fr) 42px minmax(120px, 1fr) !important;
  gap: 7px !important;
  padding: 8px 9px !important;
}

body.rank-check-visual-body .rank-watch-channel-copy {
  gap: 3px !important;
}

body.rank-check-visual-body .rank-watch-channel-copy strong {
  font-size: 0.82rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-watch-donut {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
}

body.rank-check-visual-body .rank-watch-channel-legend {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 3px !important;
  min-width: 0 !important;
}

body.rank-check-visual-body .rank-watch-channel-legend span {
  min-height: 22px !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 0 4px !important;
  border-radius: 7px !important;
  font-size: 0.56rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-watch-channel-legend i {
  width: 6px !important;
  height: 6px !important;
  flex: 0 0 6px !important;
}

body.rank-check-visual-body .rank-watch-channel-legend b {
  font-size: 0.58rem !important;
}

@media (max-width: 1180px) {
  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 520px) {
  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-watch-stat,
  body.rank-check-visual-body .rank-watch-stat--channels {
    min-height: 54px !important;
  }

  body.rank-check-visual-body .rank-watch-stat--channels {
    grid-template-columns: minmax(70px, 0.65fr) 38px minmax(0, 1fr) !important;
  }
}

/* Saved rank-check list: compact cards with stronger rank signals */
body.rank-check-visual-body .rank-check-saved-board {
  padding: 8px !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head {
  margin-bottom: 5px !important;
  padding-bottom: 6px !important;
  gap: 8px !important;
  border-bottom: 1px solid #edf2f7 !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head .panel-kicker {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head h3 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 0.93rem !important;
  line-height: 1.1 !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong {
  min-height: 24px !important;
  padding: 0 8px !important;
  border-radius: 7px !important;
  font-size: 0.8rem !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong span {
  margin-left: 1px !important;
  font-size: 0.58rem !important;
}

body.rank-check-visual-body .rank-watcher-toolbar {
  display: block !important;
  margin: 0 0 5px !important;
}

body.rank-check-visual-body .rank-watcher-view-tools,
body.rank-check-visual-body .rank-sort-control,
body.rank-check-visual-body .rank-view-button {
  display: none !important;
}

body.rank-check-visual-body .rank-watcher-filter-row {
  display: flex !important;
  gap: 4px !important;
  margin: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter {
  min-height: 25px !important;
  padding: 0 8px !important;
  border-radius: 7px !important;
  font-size: 0.62rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watcher-health-row {
  min-height: 0 !important;
  margin: 0 0 6px !important;
  padding: 5px 7px !important;
  gap: 6px !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-watcher-health-row span,
body.rank-check-visual-body .rank-watcher-health-row em {
  font-size: 0.58rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watcher-health-row b {
  font-size: 0.82rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watcher-refresh-button {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #047857 !important;
  font-size: 0.58rem !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-watch-tip-row {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-list {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
  min-height: 0 !important;
  padding: 7px !important;
  border-radius: 8px !important;
  border-color: rgba(226, 232, 240, 0.94) !important;
  box-shadow: 0 10px 24px -25px rgba(15, 23, 42, 0.32) !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-body {
  min-height: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-head {
  gap: 4px !important;
  padding-right: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-service-badge {
  min-height: 20px !important;
  padding: 0 7px !important;
  border-radius: 7px !important;
  font-size: 0.58rem !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title {
  min-height: 0 !important;
  margin-top: 0 !important;
  font-size: 0.74rem !important;
  line-height: 1.24 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title a {
  -webkit-line-clamp: 1 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip {
  margin-top: 4px !important;
  padding: 5px !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__row {
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__section-name {
  font-size: 0.62rem !important;
  line-height: 1.2 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-ranks {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero {
  min-height: 32px !important;
  padding: 4px 6px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__service,
body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__scope {
  font-size: 0.56rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__rank {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero:not(.rank-position-hero--overall) .rank-position-hero__num {
  color: #047857 !important;
  font-size: 1.36rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero--overall .rank-position-hero__num {
  color: #0f172a !important;
  font-size: 1.08rem !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__unit {
  margin-left: 1px !important;
  font-size: 0.58rem !important;
}

body.rank-check-visual-body .watcher-rank-snapshot {
  display: grid !important;
  grid-template-columns: minmax(76px, 0.72fr) minmax(0, 1.28fr) !important;
  gap: 4px !important;
  margin-top: 4px !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank,
body.rank-check-visual-body .watcher-rank-snapshot__change {
  min-width: 0 !important;
  min-height: 38px !important;
  display: grid !important;
  align-content: center !important;
  gap: 1px !important;
  padding: 5px 6px !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 8px !important;
  background: #fff !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank {
  border-color: rgba(4, 120, 87, 0.18) !important;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%) !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank span,
body.rank-check-visual-body .watcher-rank-snapshot__change span {
  color: #64748b !important;
  font-size: 0.54rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank strong {
  color: #047857 !important;
  font-size: 1.34rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank strong em {
  margin-left: 1px !important;
  color: #065f46 !important;
  font-size: 0.62rem !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change strong {
  overflow: hidden !important;
  color: #334155 !important;
  font-size: 0.68rem !important;
  font-weight: 950 !important;
  line-height: 1.08 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change em {
  overflow: hidden !important;
  color: #64748b !important;
  font-size: 0.56rem !important;
  font-style: normal !important;
  line-height: 1.12 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-up .watcher-rank-snapshot__change {
  border-color: rgba(34, 197, 94, 0.24) !important;
  background: #f0fdf4 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-up .watcher-rank-snapshot__change strong {
  color: #047857 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-down .watcher-rank-snapshot__change {
  border-color: rgba(239, 68, 68, 0.22) !important;
  background: #fff5f5 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-down .watcher-rank-snapshot__change strong {
  color: #b91c1c !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-flat .watcher-rank-snapshot__change {
  background: #f8fafc !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-author,
body.rank-check-visual-body .rank-check-saved-board .watcher-footnote,
body.rank-check-visual-body .rank-check-saved-board .watcher-fallback-note {
  margin-top: 4px !important;
  font-size: 0.6rem !important;
  line-height: 1.15 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at {
  margin-top: 4px !important;
  padding-right: 0 !important;
  font-size: 0.56rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions {
  margin-top: 4px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row {
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row__buttons {
  gap: 3px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-action-button,
body.rank-check-visual-body .rank-check-saved-board .watcher-delete-button,
body.rank-check-visual-body .rank-check-saved-board .watcher-open-button {
  min-height: 23px !important;
  padding: 0 6px !important;
  border-radius: 6px !important;
  font-size: 0.56rem !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-schedule-note {
  font-size: 0.54rem !important;
  line-height: 1.08 !important;
}

/* Saved rank-check list: image-reference dense card pass */
body.rank-check-visual-body .rank-check-saved-board {
  padding: 18px !important;
  border-radius: 12px !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head {
  margin-bottom: 14px !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head h3 {
  font-size: 1.72rem !important;
  font-weight: 950 !important;
  line-height: 1.12 !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong {
  min-height: 0 !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong span:first-child {
  color: #0f172a !important;
  font-size: 0.9rem !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong span:last-child {
  color: #0f172a !important;
  font-size: 1rem !important;
}

body.rank-check-visual-body .rank-watcher-toolbar {
  margin: 0 0 12px !important;
}

body.rank-check-visual-body .rank-watcher-filter-row {
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter {
  min-width: 126px !important;
  min-height: 46px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter.is-active {
  border-color: #16a34a !important;
  background: #effdf4 !important;
  color: #047857 !important;
}

body.rank-check-visual-body .rank-watcher-health-row {
  position: relative !important;
  align-items: center !important;
  min-height: 56px !important;
  margin: 0 0 12px !important;
  padding: 10px 16px !important;
  gap: 10px !important;
  border: 1px solid #dbe3ec !important;
  border-radius: 9px !important;
  background: #fbfcfe !important;
}

body.rank-check-visual-body .rank-watcher-health-row::before {
  content: "" !important;
  flex: 0 0 auto !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  background: #16a34a !important;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.14) !important;
  -webkit-mask: none !important;
  mask: none !important;
}

body.rank-check-visual-body .rank-watcher-health-row::after {
  content: "" !important;
  position: absolute !important;
  left: 25px !important;
  width: 13px !important;
  height: 8px !important;
  border-left: 3px solid #ffffff !important;
  border-bottom: 3px solid #ffffff !important;
  transform: rotate(-45deg) !important;
}

body.rank-check-visual-body .rank-watcher-health-row span,
body.rank-check-visual-body .rank-watcher-health-row em {
  font-size: 1rem !important;
  line-height: 1.2 !important;
}

body.rank-check-visual-body .rank-watcher-health-row span {
  color: #111827 !important;
  font-weight: 950 !important;
}

body.rank-check-visual-body .rank-watcher-health-row b {
  color: #047857 !important;
  font-size: 1.12rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watcher-health-row em {
  color: #475569 !important;
  font-weight: 750 !important;
}

body.rank-check-visual-body .rank-watcher-refresh-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin-left: auto !important;
  color: #047857 !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-list {
  gap: 10px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
  position: relative !important;
  min-height: 0 !important;
  padding: 14px !important;
  border-radius: 9px !important;
  border-color: #dbe3ec !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-body {
  display: flex !important;
  min-height: 0 !important;
  flex-direction: column !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-head {
  gap: 7px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-width: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-badges {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  min-width: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-keyword {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-service-badge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 0.92rem !important;
  font-weight: 950 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank {
  display: inline-flex !important;
  align-items: baseline !important;
  flex: 0 0 auto !important;
  color: #047857 !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank span {
  font-size: 2.1rem !important;
  letter-spacing: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank em {
  margin-left: 2px !important;
  color: #111827 !important;
  font-size: 1.05rem !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank.is-empty span {
  color: #64748b !important;
  font-size: 1rem !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title {
  min-height: 0 !important;
  margin: 0 !important;
  color: #111827 !important;
  font-size: 1.1rem !important;
  font-weight: 950 !important;
  line-height: 1.45 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title a {
  -webkit-line-clamp: 2 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-author,
body.rank-check-visual-body .rank-check-saved-board .watcher-fallback-note {
  display: block !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-footnote {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip {
  margin-top: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__row {
  display: block !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__section {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__eyebrow,
body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__exposure {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__section-name {
  overflow: hidden !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .watcher-rank-snapshot {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 0 !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid #dbe3ec !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank,
body.rank-check-visual-body .watcher-rank-snapshot__change {
  min-height: 62px !important;
  padding: 0 10px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change {
  padding-left: 14px !important;
  border-left: 1px solid #dbe3ec !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank span,
body.rank-check-visual-body .watcher-rank-snapshot__change span {
  color: #64748b !important;
  font-size: 0.88rem !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank strong {
  display: inline-flex !important;
  align-items: baseline !important;
  flex: 0 0 auto !important;
  color: #047857 !important;
  font-size: 1.55rem !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank strong em {
  font-size: 0.95rem !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change strong {
  color: #111827 !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-up .watcher-rank-snapshot__change strong {
  color: #047857 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-down .watcher-rank-snapshot__change strong {
  color: #b91c1c !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change em {
  color: #475569 !important;
  font-size: 0.88rem !important;
  line-height: 1.2 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #475569 !important;
  font-size: 0.9rem !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at__label {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions {
  position: static !important;
  width: 100% !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid #dbe3ec !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row__buttons {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
  gap: 6px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-action-button,
body.rank-check-visual-body .rank-check-saved-board .watcher-delete-button,
body.rank-check-visual-body .rank-check-saved-board .watcher-open-button {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  font-size: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-action-button span,
body.rank-check-visual-body .rank-check-saved-board .watcher-delete-button span,
body.rank-check-visual-body .rank-check-saved-board .watcher-open-button span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-schedule-note {
  display: none !important;
}

@media (max-width: 1320px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .watcher-rank-snapshot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}

/* Final operator dashboard mobile pass after bundled responsive rules */
@media (max-width: 900px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-head {
    min-height: 34px !important;
    padding-left: 76px !important;
    margin-bottom: 8px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats {
    min-height: 74px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin-top: 10px !important;
    padding: 0 8px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span {
    min-height: 58px !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 4px !important;
    padding: 0 5px !important;
    text-align: center !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span + span {
    border-left: 1px solid rgba(228, 233, 238, 0.96) !important;
    border-top: 0 !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats .image-line-icon {
    display: none !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span em {
    display: block !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span b {
    display: block !important;
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1 !important;
  }
}

/* Sidebar account actions + full-width workspace pass */
body.image-dashboard-body .image-dashboard-shell {
  grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 14px !important;
  padding-right: 14px !important;
}

body.image-dashboard-body .image-dashboard-main,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home,
body.rank-check-visual-body .image-dashboard-main {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.rank-check-visual-body .image-dashboard-main {
  padding-left: clamp(18px, 2vw, 28px) !important;
  padding-right: clamp(18px, 2vw, 28px) !important;
}

body.rank-check-visual-body .rank-check-page-wrap,
body.rank-check-visual-body .rank-check-page-stack,
body.rank-check-visual-body .rank-check-setup-panel,
body.rank-check-visual-body .advertiser-rank-summary,
body.rank-check-visual-body .rank-check-saved-board {
  width: 100% !important;
  max-width: none !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user {
  gap: 7px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
  width: 78px !important;
  display: grid !important;
  grid-template-columns: repeat(2, 32px) !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 2px auto 0 !important;
  padding: 7px !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-radius: 14px !important;
  background: rgba(248, 251, 249, 0.96) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action {
  position: relative !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid rgba(226, 232, 240, 0.96) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #64748b !important;
  text-decoration: none !important;
  box-shadow: 0 10px 22px -20px rgba(15, 23, 42, 0.42) !important;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action:hover,
body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action.is-active {
  border-color: rgba(8, 120, 74, 0.24) !important;
  background: #effaf4 !important;
  color: #08784a !important;
  transform: translateY(-1px) !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action:active {
  transform: scale(0.96) !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action-logout {
  color: #b42318 !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action-logout:hover {
  border-color: rgba(180, 35, 24, 0.2) !important;
  background: #fff5f4 !important;
  color: #b42318 !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action .image-line-icon {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2.2 !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action span {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 8px) !important;
  z-index: 4 !important;
  width: max-content !important;
  max-width: 140px !important;
  height: auto !important;
  min-height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 9px !important;
  clip: auto !important;
  overflow: visible !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-radius: 8px !important;
  background: rgba(15, 23, 42, 0.94) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, 4px) !important;
  transition: opacity 0.16s ease, transform 0.16s ease !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 8px;
  height: 8px;
  background: rgba(15, 23, 42, 0.94);
  transform: translate(-50%, -4px) rotate(45deg);
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action:hover span,
body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action:focus-visible span {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}

@media (max-width: 1180px) and (min-width: 961px) {
  body.image-dashboard-body .image-dashboard-shell {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding-right: 12px !important;
  }
}

@media (max-width: 900px) {
  body.image-dashboard-body .image-dashboard-shell {
    display: block !important;
    padding: 0 !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user {
    width: 100% !important;
    align-items: stretch !important;
    justify-items: stretch !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-main {
    justify-items: start !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-meta {
    justify-items: start !important;
    text-align: left !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 8px !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action {
    width: 100% !important;
    height: 40px !important;
    min-width: 0 !important;
    min-height: 40px !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    justify-items: start !important;
    gap: 8px !important;
    padding: 0 10px !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action span {
    position: static !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action span::after {
    display: none !important;
  }

  body.rank-check-visual-body .image-dashboard-main {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Sidebar quick-menu descriptive tooltips */
@media (min-width: 901px) {
  body.image-dashboard-body .image-sidebar {
    overflow: visible !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user {
    position: relative !important;
    overflow: visible !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
    overflow: visible !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip] {
    isolation: isolate !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    z-index: 30;
    width: max-content;
    max-width: 190px;
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    box-shadow: 0 18px 32px -20px rgba(15, 23, 42, 0.55);
    opacity: 0;
    pointer-events: none;
    transform: translate(0, -50%) scale(0.98);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]::before {
    content: "";
    position: absolute;
    left: calc(100% + 7px);
    top: 50%;
    z-index: 31;
    width: 9px;
    height: 9px;
    border-left: 1px solid rgba(15, 23, 42, 0.12);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translate(0, -50%) rotate(45deg);
    transition: opacity 0.16s ease;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:hover::after,
  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:hover::before,
  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:focus-visible::before {
    opacity: 1;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:hover span,
  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:focus-visible span {
    opacity: 0 !important;
    transform: translate(-50%, 4px) !important;
  }
}

/* Dashboard and rank-check responsive grid correction */
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-ring {
  min-width: 0 !important;
}

@media (max-width: 960px) {
  .site-menu-toggle {
    position: relative;
    z-index: 10002;
    pointer-events: auto !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    touch-action: manipulation;
  }

  body.is-site-menu-open .site-header {
    z-index: 10002;
  }

  .site-mobile-menu:not(.is-open) {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  .site-mobile-menu.is-open {
    display: block !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  .site-mobile-menu.is-open .site-mobile-menu-backdrop,
  .site-mobile-menu.is-open .site-mobile-menu-panel {
    pointer-events: auto !important;
  }

  .site-mobile-menu-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .site-mobile-menu-panel {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.image-dashboard-body .image-dashboard-shell {
    display: block !important;
    grid-template-columns: 1fr !important;
    padding: 0 !important;
  }

  body.image-dashboard-body .image-mobile-menu-button {
    display: inline-flex !important;
    position: fixed !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 1600 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
    color: #0f172a !important;
    opacity: 1 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12) !important;
  }

  body.image-dashboard-body .image-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 1500 !important;
    width: min(88vw, 320px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    transform: translate3d(-105%, 0, 0) !important;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    background: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.image-dashboard-body.is-sidebar-open .image-sidebar {
    transform: translate3d(0, 0, 0) !important;
    pointer-events: auto !important;
  }

  body.image-dashboard-body .image-sidebar-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1450 !important;
    display: block !important;
    border: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(15, 23, 42, 0.32) !important;
    transition: opacity 200ms ease, visibility 200ms ease !important;
  }

  body.image-dashboard-body.is-sidebar-open .image-sidebar-backdrop {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.image-dashboard-body.is-sidebar-open {
    overflow: hidden !important;
  }

  body.image-dashboard-body .image-sidebar *,
  body.image-dashboard-body .image-sidebar *::before,
  body.image-dashboard-body .image-sidebar *::after {
    filter: none !important;
    text-shadow: none !important;
  }
}

@media (max-width: 900px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-ring {
    min-height: 128px !important;
    padding: 8px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-ring-visual {
    width: min(118px, 100%) !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto !important;
  }

  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.rank-check-visual-body .rank-watch-stat {
    min-width: 0 !important;
    min-height: 92px !important;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  body.rank-check-visual-body .rank-watch-stat__icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
  }

  body.rank-check-visual-body .rank-watch-stat span {
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  body.rank-check-visual-body .rank-watch-stat strong {
    font-size: clamp(19px, 5.4vw, 24px) !important;
    line-height: 1.05 !important;
    word-break: keep-all !important;
  }

  body.rank-check-visual-body .rank-watch-stat em {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  body.rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
    min-height: 86px !important;
    grid-template-columns: minmax(0, 0.82fr) 58px minmax(0, 1.18fr) !important;
    align-items: center !important;
  }

  body.rank-check-visual-body .rank-watch-donut {
    width: 54px !important;
    height: 54px !important;
  }

  body.rank-check-visual-body .rank-watch-channel-legend {
    gap: 4px !important;
  }

  body.rank-check-visual-body .rank-watch-channel-legend span {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid article {
    min-width: 0 !important;
    min-height: 76px !important;
    padding: 9px 6px !important;
    border-radius: 10px !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid span {
    overflow: hidden !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid strong {
    font-size: clamp(18px, 5vw, 22px) !important;
    line-height: 1 !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid em {
    overflow: hidden !important;
    font-size: 9px !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* Saved rank-check cards: keep two cards per mobile row */
@media (max-width: 900px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
    min-width: 0 !important;
    padding: 10px !important;
    border-radius: 10px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-card-top {
    gap: 6px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-service-badge {
    min-height: 24px !important;
    padding: 0 8px !important;
    font-size: 0.82rem !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank span {
    font-size: 1.74rem !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank em {
    font-size: 0.86rem !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-title {
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
  }
}

/* Expanded sidebar with collection and advertiser controls */
body.image-dashboard-body {
  --operator-sidebar-width: 252px;
}

body.image-dashboard-body .image-dashboard-shell {
  grid-template-columns: var(--operator-sidebar-width) minmax(0, 1fr) !important;
  gap: 16px !important;
  padding-right: 16px !important;
}

body.image-dashboard-body .image-sidebar {
  width: var(--operator-sidebar-width) !important;
  padding: 18px 14px 14px !important;
  gap: 12px !important;
  overflow: visible !important;
}

body.image-dashboard-body .image-sidebar-brand-row {
  min-height: 46px !important;
}

body.image-dashboard-body .image-sidebar-brand {
  width: 100% !important;
  height: 46px !important;
  display: flex !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  padding: 0 8px !important;
}

body.image-dashboard-body .image-sidebar-brand span {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 auto !important;
}

body.image-dashboard-body .image-sidebar-brand strong {
  display: block !important;
  overflow: hidden !important;
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.image-dashboard-body .image-sidebar-brand em {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 20px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: #effaf4 !important;
  color: #08784a !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

body.image-dashboard-body .image-sidebar-scroll {
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
  padding-right: 2px !important;
  overflow-y: auto !important;
}

body.image-dashboard-body .image-sidebar-workbench {
  display: grid !important;
  gap: 8px !important;
  min-width: 0 !important;
  padding: 0 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-panel {
  order: 2 !important;
  display: grid !important;
  gap: 8px !important;
  padding: 10px !important;
  border: 1px solid rgba(8, 120, 74, 0.16) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #f5fcf8 0%, #ffffff 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 30px -26px rgba(15, 23, 42, 0.35) !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-promo {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-promo > span {
  width: 28px !important;
  height: 28px !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  border-radius: 10px !important;
  background: #e8f7ee !important;
  color: #08784a !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-promo .image-line-icon {
  width: 15px !important;
  height: 15px !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-head strong {
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-field {
  gap: 5px !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-keyword-editor {
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-sidebar-workbench #keywords {
  min-height: 64px !important;
  max-height: 96px !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  resize: vertical !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-inline-button {
  min-height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(8, 120, 74, 0.16) !important;
  border-radius: 9px !important;
  background: #f8fbf9 !important;
  color: #08784a !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-service-toggles {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-workbench .image-collect-panel .image-service-toggles .toggle-pill span {
  min-height: 32px !important;
  padding: 0 4px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

body.image-dashboard-body .image-sidebar-workbench .payment-collect-note {
  margin: 0 !important;
  padding: 7px !important;
  border-radius: 9px !important;
  font-size: 10px !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-start-button {
  min-height: 36px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #0c8250, #076d43) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-panel {
  order: 1 !important;
  display: grid !important;
  gap: 6px !important;
  padding: 9px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 12px 26px -24px rgba(15, 23, 42, 0.42) !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-sidebar-nav-label {
  display: block !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 36px !important;
  gap: 6px !important;
  align-items: center !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-select-form select {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 28px 0 9px !important;
  border: 1px solid rgba(203, 213, 225, 0.95) !important;
  border-radius: 9px !important;
  background-color: #fff !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-manage-btn {
  width: 36px !important;
  height: 36px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(8, 120, 74, 0.18) !important;
  border-radius: 9px !important;
  background: #effaf4 !important;
  color: #08784a !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-manage-btn .image-line-icon {
  width: 17px !important;
  height: 17px !important;
}

body.image-dashboard-body .image-sidebar-nav,
body.image-dashboard-body .image-sidebar-nav.is-admin-nav {
  gap: 4px !important;
}

body.image-dashboard-body .image-sidebar-nav a,
body.image-dashboard-body .image-sidebar-nav.is-admin-nav a {
  min-height: 44px !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  justify-items: start !important;
  align-content: center !important;
  gap: 8px !important;
  padding: 6px 9px !important;
  text-align: left !important;
}

body.image-dashboard-body .image-sidebar-nav a > span:not(.image-nav-icon) {
  max-width: none !important;
  font-size: 13px !important;
  text-align: left !important;
}

body.image-dashboard-body .image-sidebar-nav a .image-nav-icon {
  width: 30px !important;
  height: 30px !important;
}

body.image-dashboard-body .image-sidebar-nav a .image-line-icon {
  width: 18px !important;
  height: 18px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
  width: 100% !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action {
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 1180px) {
  body.image-dashboard-body {
    --operator-sidebar-width: 236px;
  }
}

@media (max-width: 900px) {
  body.image-dashboard-body {
    --operator-sidebar-width: min(336px, 88vw);
  }

  body.image-dashboard-body .image-dashboard-shell {
    display: block !important;
    padding: 0 !important;
  }

  body.image-dashboard-body .image-sidebar {
    width: var(--operator-sidebar-width) !important;
    padding: 18px 14px 16px !important;
  }

  body.image-dashboard-body .image-sidebar-scroll {
    gap: 10px !important;
  }

  body.image-dashboard-body .image-sidebar-brand strong,
  body.image-dashboard-body .image-sidebar-brand em {
    display: inline-flex !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ===== Footer/sidebar overlap fix — authenticated image dashboard =====
   Prevents global footer text from rendering under the sticky left menu. */
@media (min-width: 961px) {
  body.image-dashboard-body:not(.public-pricing-page) > .site-footer,
  .image-dashboard-body:not(.public-pricing-page) > .site-footer {
    box-sizing: border-box !important;
    inline-size: auto !important;
    width: auto !important;
    max-width: none !important;
    margin-top: 0 !important;
    margin-left: 292px !important;
    margin-inline-start: 292px !important;
    position: relative !important;
    clear: both !important;
    z-index: 0 !important;
  }

  body.image-dashboard-body:not(.public-pricing-page) > .site-footer .site-footer-inner,
  .image-dashboard-body:not(.public-pricing-page) > .site-footer .site-footer-inner {
    box-sizing: border-box !important;
    width: min(100%, 1160px) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 961px) and (max-width: 1280px) {
  body.image-dashboard-body:not(.public-pricing-page) > .site-footer,
  .image-dashboard-body:not(.public-pricing-page) > .site-footer {
    margin-left: 270px !important;
    margin-inline-start: 270px !important;
  }
}

@media (max-width: 960px) {
  body.image-dashboard-body:not(.public-pricing-page) > .site-footer,
  .image-dashboard-body:not(.public-pricing-page) > .site-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-inline-start: 0 !important;
    padding-bottom: 78px !important;
  }
}

/* Responsive and late-stage interface patches.
   This file is appended after app.css by AssetDelivery. */

/* Landing hero compact polish */
.landing-main {
  padding-top: clamp(10px, 1.8vw, 22px) !important;
}

.landing-hero {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px) !important;
  align-items: center !important;
  gap: clamp(16px, 2.6vw, 28px) !important;
  min-height: auto !important;
  padding: clamp(18px, 2.8vw, 34px) 0 clamp(22px, 3.2vw, 38px) !important;
}

.landing-hero-visual {
  left: clamp(-80px, -5vw, -28px) !important;
  top: 50% !important;
  width: min(42vw, 360px) !important;
  height: min(28vw, 250px) !important;
  transform: translateY(-50%) !important;
  opacity: 0.55 !important;
}

.landing-hero-copy {
  min-width: 0 !important;
  max-width: 620px !important;
}

.landing-kicker {
  margin-bottom: 8px !important;
  padding: 5px 10px !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
}

.landing-hero h1 {
  margin-bottom: 10px !important;
  font-size: clamp(1.58rem, 3.25vw, 2.28rem) !important;
  line-height: 1.14 !important;
  letter-spacing: 0 !important;
}

.landing-lead {
  max-width: 34rem !important;
  margin-bottom: 16px !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

.landing-cta {
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
}

.landing-hero-points {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  max-width: 520px !important;
  margin-top: 14px !important;
}

.landing-hero-points li {
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 6px 8px !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.72rem !important;
  line-height: 1.22 !important;
  text-align: center !important;
  white-space: normal !important;
}

.landing-point-icon {
  flex: 0 0 16px !important;
}

.landing-login-card {
  align-self: center !important;
  width: 100% !important;
  max-width: 390px !important;
  justify-self: end !important;
  padding: clamp(18px, 2.4vw, 24px) !important;
  border-radius: 14px !important;
}

@media (max-width: 960px) {
  .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
    gap: 18px !important;
  }

  .landing-hero-visual {
    width: min(38vw, 300px) !important;
    height: 220px !important;
    opacity: 0.36 !important;
  }
}

@media (max-width: 760px) {
  .image-dashboard-body .image-dashboard-main {
    padding: 14px 12px 28px;
  }

  .image-dashboard-body .image-hero-card,
  .image-dashboard-body .image-page-hero,
  .image-dashboard-body .image-hero-card.image-expert-hero,
  .image-subpage-body .image-page-hero--admin,
  .admin-page .image-page-hero--admin {
    min-height: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    padding: 14px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 244, 0.94)) !important;
  }

  .image-dashboard-body .image-hero-card::before,
  .image-dashboard-body .image-page-hero::before {
    opacity: 0 !important;
  }

  .image-dashboard-body .image-hero-kicker,
  .image-dashboard-body .image-page-hero p {
    margin-bottom: 4px !important;
    font-size: 0.66rem !important;
    line-height: 1.2 !important;
  }

  .image-dashboard-body .image-hero-card h1,
  .image-dashboard-body .image-page-hero h1 {
    margin-bottom: 5px !important;
    font-size: clamp(1.25rem, 5.8vw, 1.55rem) !important;
    line-height: 1.16 !important;
    letter-spacing: 0 !important;
  }

  .image-dashboard-body .image-hero-copy > span,
  .image-dashboard-body .image-page-hero-copy > span {
    display: block !important;
    max-width: 100% !important;
    font-size: 0.78rem !important;
    line-height: 1.42 !important;
  }

  .image-page-hero--admin .admin-hero-tools,
  .image-expert-hero .admin-hero-tools,
  .home-top .admin-hero-tools {
    justify-self: start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 4px !important;
    gap: 4px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  .image-page-hero--admin .admin-hero-tools::-webkit-scrollbar,
  .image-expert-hero .admin-hero-tools::-webkit-scrollbar,
  .home-top .admin-hero-tools::-webkit-scrollbar {
    display: none;
  }

  .admin-hero-tool-btn {
    --admin-tool-size: 38px;
    border-radius: 10px !important;
  }

  .landing-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .landing-hero-visual {
    display: none !important;
  }

  .landing-login-card {
    max-width: 100% !important;
    justify-self: stretch !important;
  }
}

@media (max-width: 640px) {
  .landing-main {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-bottom: 18px !important;
  }

  .landing-hero {
    min-height: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px 0 14px !important;
  }

  .landing-hero-visual {
    display: none !important;
  }

  .landing-hero-copy {
    min-width: 0 !important;
    padding: 0 !important;
  }

  .landing-kicker {
    margin-bottom: 6px !important;
    padding: 4px 9px !important;
    font-size: 0.68rem !important;
  }

  .landing-hero h1 {
    margin-bottom: 6px !important;
    max-width: 100% !important;
    font-size: clamp(1.28rem, 6.2vw, 1.58rem) !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere !important;
  }

  .landing-hero h1 br {
    display: initial !important;
  }

  .landing-lead {
    max-width: 36rem !important;
    margin-bottom: 10px !important;
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
  }

  .landing-cta {
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 0.82rem !important;
  }

  .landing-hero-points {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin-top: 9px !important;
  }

  .landing-hero-points li {
    min-height: 42px !important;
    min-width: 0 !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 6px 4px !important;
    border-radius: 8px !important;
    font-size: 0.62rem !important;
    line-height: 1.22 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .landing-point-icon {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
    font-size: 11px !important;
  }

  .landing-login-card {
    margin-top: 0 !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 420px) {
  .image-dashboard-body .image-dashboard-main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .image-dashboard-body .image-hero-card,
  .image-dashboard-body .image-page-hero,
  .image-dashboard-body .image-hero-card.image-expert-hero {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  .landing-hero {
    gap: 8px !important;
    padding-top: 8px !important;
  }

  .landing-hero h1 {
    font-size: clamp(1.18rem, 6.5vw, 1.42rem) !important;
  }

  .landing-hero-points li {
    min-width: 0 !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
    font-size: 0.58rem !important;
  }
}

/* Rank change summary and advertiser report */
.advertiser-rank-summary {
  padding: 20px !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px -30px rgba(15, 23, 42, 0.28) !important;
}

.advertiser-rank-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.advertiser-rank-summary__grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e6edf2;
  border-radius: 8px;
  background: #f8fafc;
}

.advertiser-rank-summary__grid span,
.advertiser-rank-summary__changes-head span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.advertiser-rank-summary__grid strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 24px;
  line-height: 1.1;
}

.advertiser-rank-summary__grid em {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.advertiser-rank-summary__grid article.is-up {
  border-color: rgba(5, 150, 105, 0.2);
  background: #ecfdf5;
}

.advertiser-rank-summary__grid article.is-up strong,
.rank-change-badge.is-up strong,
.rank-change-chip.is-up {
  color: #047857;
}

.advertiser-rank-summary__grid article.is-down {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fff1f2;
}

.advertiser-rank-summary__grid article.is-down strong,
.rank-change-badge.is-down strong,
.rank-change-chip.is-down {
  color: #be123c;
}

.advertiser-rank-summary__changes {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e6edf2;
}

.advertiser-rank-summary__changes-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.advertiser-rank-summary__changes-head strong {
  color: #0f172a;
  font-size: 14px;
}

.advertiser-rank-summary__changes ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.advertiser-rank-summary__changes li {
  display: grid;
  grid-template-columns: auto minmax(110px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #ffffff;
}

.advertiser-rank-summary__changes li strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advertiser-rank-summary__changes li em,
.advertiser-rank-summary__empty {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.rank-change-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid #e6edf2;
  border-radius: 8px;
  background: #f8fafc;
}

.rank-change-badge span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.rank-change-badge strong {
  color: #475569;
  font-size: 12px;
  font-weight: 950;
}

.rank-change-badge em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}

.rank-change-badge.is-up {
  border-color: rgba(5, 150, 105, 0.22);
  background: #ecfdf5;
}

.rank-change-badge.is-down {
  border-color: rgba(220, 38, 38, 0.2);
  background: #fff1f2;
}

.rank-change-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  max-width: 100%;
  padding: 0 9px;
  border: 1px solid #e6edf2;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.rank-change-chip.is-up {
  border-color: rgba(5, 150, 105, 0.22);
  background: #ecfdf5;
}

.rank-change-chip.is-down {
  border-color: rgba(220, 38, 38, 0.2);
  background: #fff1f2;
}

.rank-all-row__change {
  min-width: 86px;
}

body.theme-dark .advertiser-rank-summary,
body.theme-dark.rank-check-visual-body .advertiser-rank-summary {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.92) !important;
}

body.theme-dark .advertiser-rank-summary__grid article,
body.theme-dark .advertiser-rank-summary__changes li,
body.theme-dark .rank-change-badge,
body.theme-dark .rank-change-chip {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.34);
}

body.theme-dark .advertiser-rank-summary__changes {
  border-top-color: rgba(148, 163, 184, 0.16);
}

body.theme-dark .advertiser-rank-summary__grid strong,
body.theme-dark .advertiser-rank-summary__changes-head strong,
body.theme-dark .advertiser-rank-summary__changes li strong {
  color: #f8fafc;
}

@media (max-width: 980px) {
  .advertiser-rank-summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advertiser-rank-summary__changes li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .advertiser-rank-summary__changes li em {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .advertiser-rank-summary {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .advertiser-rank-summary__grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .advertiser-rank-summary__grid article {
    padding: 11px;
  }

  .advertiser-rank-summary__grid strong {
    font-size: 20px;
  }

  .advertiser-rank-summary__changes-head {
    display: block;
  }

  .rank-change-badge {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rank-change-badge em {
    grid-column: 1 / -1;
  }
}

/* Main hero and rank-check compact polish */
.image-dashboard-home .image-dashboard-compact-hero {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.78fr) minmax(430px, 1.22fr) !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 0 !important;
  margin-bottom: 14px !important;
  padding: 16px 18px !important;
  border-color: #e3ebe7 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 42px -34px rgba(15, 23, 42, 0.32) !important;
}

.image-dashboard-home .image-dashboard-compact-hero::before,
.image-dashboard-home .image-dashboard-compact-hero::after {
  display: none !important;
}

.image-dashboard-home .image-dashboard-compact-copy {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.image-dashboard-home .image-dashboard-compact-head {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
}

.image-dashboard-home .image-hero-kicker {
  margin: 0 !important;
  color: #047857 !important;
  font-size: 0.68rem !important;
  line-height: 1 !important;
}

.image-dashboard-home .image-dashboard-compact-badge {
  min-height: 22px !important;
  padding: 0 8px !important;
  border: 1px solid #d7eee2 !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
  font-size: 0.68rem !important;
}

.image-dashboard-home .image-dashboard-compact-hero h1 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 3px 7px !important;
  margin: 0 !important;
  font-size: clamp(1.32rem, 1.75vw, 1.72rem) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-name,
.image-dashboard-home .image-dashboard-hero-title {
  min-width: 0 !important;
}

.image-dashboard-home .image-dashboard-compact-lead {
  max-width: 42ch !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.82rem !important;
  line-height: 1.38 !important;
}

.image-dashboard-home .image-dashboard-hero-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin-top: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-stats span {
  min-height: 28px !important;
  padding: 0 8px !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.image-dashboard-home .image-dashboard-hero-stats svg,
.image-dashboard-home .image-dashboard-hero-stats .image-line-icon {
  width: 14px !important;
  height: 14px !important;
}

.image-dashboard-home .image-dashboard-compact-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "tools"
    "collect" !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools {
  grid-area: tools !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
  justify-content: flex-end !important;
  align-self: center !important;
  justify-self: end !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.image-dashboard-home .image-dashboard-hero-collect {
  grid-area: collect !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(142px, 172px) !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.image-dashboard-home .image-dashboard-hero-search-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 56px !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-keyword-stack,
.image-dashboard-home .image-dashboard-hero-keywords {
  min-width: 0 !important;
  margin: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-keyword-help {
  display: none !important;
}

.image-dashboard-home .image-dashboard-hero-keywords,
.image-dashboard-home .image-dashboard-hero-keywords textarea {
  height: 40px !important;
  min-height: 40px !important;
}

.image-dashboard-home .image-dashboard-hero-keywords textarea {
  padding: 9px 12px !important;
  border-radius: 11px !important;
  font-size: 0.84rem !important;
  line-height: 1.2 !important;
  resize: none !important;
}

.image-dashboard-home .image-dashboard-hero-submit {
  width: 56px !important;
  min-width: 56px !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 26px -20px rgba(4, 120, 87, 0.8) !important;
}

.image-dashboard-home .image-dashboard-hero-services {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-services .toggle-pill,
.image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
  width: 100% !important;
  min-width: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
  justify-content: center !important;
  min-height: 32px !important;
  padding: 0 8px !important;
  border-radius: 10px !important;
  font-size: 0.7rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tool-btn {
  --admin-tool-size: 34px !important;
  border-radius: 10px !important;
}

.rank-check-visual-body .image-dashboard-main {
  padding-top: 16px !important;
}

.rank-check-visual-body .image-page-hero--admin {
  min-height: 0 !important;
  margin-bottom: 10px !important;
  padding: 14px 16px !important;
  border-color: #e3ebe7 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 16px 38px -32px rgba(15, 23, 42, 0.3) !important;
}

.rank-check-visual-body .image-page-hero--admin h1 {
  margin: 0 !important;
  font-size: clamp(1.25rem, 1.8vw, 1.62rem) !important;
  line-height: 1.18 !important;
}

.rank-check-visual-body .image-page-hero--admin p {
  margin-bottom: 5px !important;
  font-size: 0.68rem !important;
}

.rank-check-visual-body .image-page-hero-copy > span {
  max-width: 58ch !important;
  color: #64748b !important;
  font-size: 0.82rem !important;
  line-height: 1.38 !important;
}

.rank-check-visual-body .rank-check-kakao-bar {
  margin: 0 0 10px !important;
  padding: 7px !important;
  border-radius: 12px !important;
}

.rank-check-visual-body .rank-check-page-stack {
  gap: 12px !important;
}

.rank-check-visual-body .rank-check-setup-panel,
.rank-check-visual-body .advertiser-rank-summary,
.rank-check-visual-body .rank-check-saved-board {
  border-radius: 14px !important;
  box-shadow: 0 16px 38px -34px rgba(15, 23, 42, 0.28) !important;
}

.rank-check-visual-body .rank-check-setup-panel {
  padding: 15px !important;
  background: #ffffff !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-check-form {
  gap: 10px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid {
  grid-template-columns: minmax(160px, 0.85fr) minmax(190px, 0.9fr) minmax(240px, 1.15fr) !important;
  gap: 10px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label {
  gap: 5px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label span {
  font-size: 10.5px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid input {
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-service-row {
  grid-template-columns: auto minmax(180px, 1fr) auto !important;
  gap: 8px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-service-toggle-group {
  gap: 5px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle span {
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  box-shadow: none !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle span::before {
  width: 13px !important;
  height: 13px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-form-hint {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button {
  min-width: 128px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

.rank-check-visual-body .rank-report-panel {
  margin-top: 10px !important;
  border-radius: 12px !important;
}

.rank-check-visual-body .rank-report-panel__head {
  min-height: 44px !important;
  padding: 10px 12px !important;
}

.rank-check-visual-body .rank-report-panel__head h4 {
  font-size: 13px !important;
}

.rank-check-visual-body .rank-report-panel__body {
  padding: 10px 12px 12px !important;
}

.rank-check-visual-body .rank-watch-stats {
  grid-template-columns: repeat(4, minmax(112px, 1fr)) minmax(260px, 1.25fr) !important;
  gap: 8px !important;
}

.rank-check-visual-body .rank-watch-stat {
  min-height: 82px !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  gap: 9px !important;
  padding: 12px !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px -26px rgba(15, 23, 42, 0.26) !important;
}

.rank-check-visual-body .rank-watch-stat__icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
}

.rank-check-visual-body .rank-watch-stat__icon::before {
  width: 14px !important;
  height: 14px !important;
}

.rank-check-visual-body .rank-watch-stat span,
.rank-check-visual-body .rank-watch-channel-copy span {
  font-size: 10.5px !important;
}

.rank-check-visual-body .rank-watch-stat strong {
  font-size: 18px !important;
}

.rank-check-visual-body .rank-watch-stat em {
  margin-top: 3px !important;
  font-size: 10.5px !important;
}

.rank-check-visual-body .rank-watch-stat--channels {
  min-height: 82px !important;
  padding: 12px !important;
}

.rank-check-visual-body .rank-watch-donut {
  width: 58px !important;
  height: 58px !important;
}

.rank-check-visual-body .advertiser-rank-summary {
  padding: 14px !important;
}

.rank-check-visual-body .advertiser-rank-summary .member-panel-head {
  margin-bottom: 10px !important;
}

.rank-check-visual-body .advertiser-rank-summary__grid {
  gap: 8px !important;
}

.rank-check-visual-body .advertiser-rank-summary__grid article {
  padding: 10px !important;
}

.rank-check-visual-body .advertiser-rank-summary__grid strong {
  font-size: 20px !important;
}

.rank-check-visual-body .advertiser-rank-summary__changes {
  margin-top: 9px !important;
  padding-top: 9px !important;
}

.rank-check-visual-body .advertiser-rank-summary__changes li {
  padding: 8px 10px !important;
}

.rank-check-visual-body .rank-check-saved-board {
  padding: 16px !important;
}

.rank-check-visual-body .rank-check-saved-board > .member-panel-head {
  margin-bottom: 10px !important;
}

.rank-check-visual-body .rank-watcher-toolbar {
  margin-bottom: 8px !important;
}

.rank-check-visual-body .rank-watcher-filter {
  min-height: 32px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
}

.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter.is-active {
  border-color: rgba(4, 120, 87, 0.34) !important;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%) !important;
  color: #065f46 !important;
  box-shadow: 0 10px 24px rgba(11, 122, 73, 0.14) !important;
}

.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter.is-active:hover {
  border-color: rgba(4, 120, 87, 0.46) !important;
  background: #bbf7d0 !important;
  color: #064e3b !important;
}

.rank-check-kakao-bar .rank-action-btn--ghost,
.rank-check-all-page .rank-action-btn--ghost {
  color: #334155 !important;
}

.rank-check-visual-body .rank-watcher-health-row {
  margin-bottom: 8px !important;
  padding: 8px 10px !important;
}

.rank-check-visual-body .rank-check-saved-board .watcher-list {
  gap: 8px !important;
}

.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
  min-height: 0 !important;
  padding: 10px !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.rank-check-visual-body .rank-position-strip {
  margin-top: 8px !important;
  padding: 9px !important;
  border-radius: 10px !important;
}

.rank-check-visual-body .rank-change-badge {
  margin-top: 6px !important;
  padding: 6px 8px !important;
}

.rank-check-visual-body .watcher-checked-at {
  margin-top: 5px !important;
}

.rank-check-visual-body .watcher-actions {
  margin-top: 2px !important;
}

.rank-check-visual-body .rank-watch-tip-row {
  margin-top: 10px !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
}

body.theme-dark .image-dashboard-home .image-dashboard-compact-hero,
body.theme-dark.rank-check-visual-body .image-page-hero--admin,
body.theme-dark.rank-check-visual-body .rank-check-setup-panel {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.94) !important;
}

body.theme-dark .image-dashboard-home .image-dashboard-hero-stats span {
  border-color: rgba(148, 163, 184, 0.18) !important;
  background: rgba(2, 6, 23, 0.32) !important;
  color: #e2e8f0 !important;
}

body.theme-dark.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter.is-active {
  border-color: rgba(52, 211, 153, 0.38) !important;
  background: rgba(6, 78, 59, 0.48) !important;
  color: #bbf7d0 !important;
}

body.theme-dark .rank-check-kakao-bar .rank-action-btn--ghost,
body.theme-dark.rank-check-all-page .rank-action-btn--ghost {
  color: #e2e8f0 !important;
}

@media (max-width: 1180px) {
  .image-dashboard-home .image-dashboard-compact-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .image-dashboard-home .image-dashboard-compact-actions {
    grid-template-areas: "tools" "collect" !important;
  }

  .rank-check-visual-body .rank-watch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 900px) {
  .image-dashboard-home .image-dashboard-hero-collect,
  .rank-check-visual-body .rank-check-setup-panel .rank-field-grid,
  .rank-check-visual-body .rank-check-setup-panel .rank-service-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button {
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  .image-dashboard-home .image-dashboard-compact-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
    padding: 9px !important;
  }

  .image-dashboard-home .image-dashboard-compact-hero h1 {
    font-size: clamp(1.06rem, 5.3vw, 1.32rem) !important;
  }

  .image-dashboard-home .image-dashboard-hero-stats {
    grid-column: 1 / -1 !important;
  }

  .image-dashboard-home .image-dashboard-hero-stats span {
    min-height: 24px !important;
    padding: 0 7px !important;
  }

  .image-dashboard-home .image-dashboard-compact-actions {
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "tools"
      "collect" !important;
    gap: 6px !important;
  }

  .image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-end !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools::-webkit-scrollbar {
    display: none !important;
  }

  .image-dashboard-home .image-dashboard-compact-hero .admin-hero-tool-btn {
    --admin-tool-size: 31px !important;
  }

  .image-dashboard-home .image-dashboard-hero-keywords,
  .image-dashboard-home .image-dashboard-hero-keywords textarea {
    height: 36px !important;
    min-height: 36px !important;
  }

  .image-dashboard-home .image-dashboard-hero-search-row {
    grid-template-columns: minmax(0, 1fr) 44px !important;
  }

  .image-dashboard-home .image-dashboard-hero-submit {
    width: 44px !important;
    min-width: 44px !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  .rank-check-visual-body .image-dashboard-main {
    padding-top: 10px !important;
  }

  .rank-check-visual-body .image-page-hero--admin {
    margin-bottom: 8px !important;
    padding: 11px 12px !important;
  }

  .rank-check-visual-body .image-page-hero-copy > span {
    display: none !important;
  }

  .rank-check-visual-body .rank-check-kakao-bar {
    margin-bottom: 8px !important;
  }

  .rank-check-visual-body .rank-check-setup-panel,
  .rank-check-visual-body .advertiser-rank-summary,
  .rank-check-visual-body .rank-check-saved-board {
    padding: 12px !important;
  }

  .rank-check-visual-body .rank-watch-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  .rank-check-visual-body .rank-watch-stat {
    min-height: 74px !important;
    padding: 10px !important;
  }

  .rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
  }

  .rank-check-visual-body .advertiser-rank-summary__grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
    padding: 12px !important;
  }

  .rank-check-visual-body .rank-check-saved-board .watcher-checked-at {
    padding-right: 0 !important;
  }

  .rank-check-visual-body .rank-check-saved-board .watcher-actions {
    position: static !important;
    right: auto !important;
  }
}

@media (max-width: 420px) {
  .image-dashboard-home .image-dashboard-compact-hero {
    padding: 8px !important;
  }

  .image-dashboard-home .image-dashboard-hero-stats span em {
    display: none !important;
  }

  .image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
    min-height: 27px !important;
    font-size: 0.64rem !important;
  }

  .rank-check-visual-body .rank-watch-stats,
  .rank-check-visual-body .advertiser-rank-summary__grid {
    grid-template-columns: 1fr !important;
  }
}

/* Final main hero guard: keep the landing and dashboard heroes stable. */
body.landing-page-body .landing-main {
  padding-top: clamp(10px, 1.8vw, 22px) !important;
}

body.landing-page-body .landing-hero {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px) !important;
  align-items: start !important;
  gap: clamp(16px, 2.6vw, 28px) !important;
  min-height: auto !important;
  padding: clamp(18px, 2.8vw, 34px) 0 clamp(22px, 3.2vw, 38px) !important;
}

body.landing-page-body .landing-hero-visual {
  position: absolute !important;
  left: clamp(-80px, -5vw, -28px) !important;
  top: 50% !important;
  width: min(42vw, 360px) !important;
  height: min(28vw, 250px) !important;
  transform: translateY(-50%) !important;
  opacity: 0.48 !important;
  pointer-events: none !important;
}

body.landing-page-body .landing-hero-copy {
  position: relative !important;
  z-index: 1 !important;
  min-width: 0 !important;
  max-width: 620px !important;
}

body.landing-page-body .landing-kicker {
  margin-bottom: 8px !important;
  padding: 5px 10px !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
}

body.landing-page-body .landing-hero h1 {
  margin-bottom: 10px !important;
  font-size: clamp(1.58rem, 3.25vw, 2.28rem) !important;
  line-height: 1.14 !important;
  letter-spacing: 0 !important;
}

body.landing-page-body .landing-lead {
  max-width: 34rem !important;
  margin-bottom: 16px !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

body.landing-page-body .landing-cta {
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
}

body.landing-page-body .landing-hero-points {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  max-width: 520px !important;
  margin-top: 14px !important;
}

body.landing-page-body .landing-hero-points li {
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 6px 8px !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.72rem !important;
  line-height: 1.22 !important;
  text-align: center !important;
  white-space: normal !important;
}

body.landing-page-body .landing-point-icon {
  flex: 0 0 16px !important;
}

body.landing-page-body .landing-login-card {
  align-self: start !important;
  width: 100% !important;
  max-width: 390px !important;
  justify-self: end !important;
  padding: clamp(18px, 2.4vw, 24px) !important;
  border-radius: 14px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.78fr) minmax(430px, 1.22fr) !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 0 !important;
  margin-bottom: 14px !important;
  padding: 16px 18px !important;
  border-color: #e3ebe7 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px -34px rgba(15, 23, 42, 0.32) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "tools"
    "collect" !important;
  align-items: stretch !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools {
  grid-area: tools !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
  justify-content: flex-end !important;
  justify-self: end !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect {
  grid-area: collect !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(142px, 172px) !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 960px) {
  body.landing-page-body .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
    gap: 18px !important;
  }

  body.landing-page-body .landing-hero-visual {
    width: min(38vw, 300px) !important;
    height: 220px !important;
    opacity: 0.32 !important;
  }
}

@media (max-width: 760px) {
  body.landing-page-body .landing-main {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.landing-page-body .landing-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px 0 14px !important;
  }

  body.landing-page-body .landing-hero-visual {
    display: none !important;
  }

  body.landing-page-body .landing-login-card {
    max-width: 100% !important;
    justify-self: stretch !important;
    margin-top: 0 !important;
    padding: 14px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
    padding: 9px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-actions {
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "tools"
      "collect" !important;
    gap: 6px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-end !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 640px) {
  body.landing-page-body .landing-hero h1 {
    margin-bottom: 6px !important;
    font-size: clamp(1.28rem, 6.2vw, 1.58rem) !important;
    line-height: 1.18 !important;
  }

  body.landing-page-body .landing-lead {
    margin-bottom: 10px !important;
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
  }

  body.landing-page-body .landing-cta {
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 0.82rem !important;
  }

  body.landing-page-body .landing-hero-points {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin-top: 9px !important;
  }

  body.landing-page-body .landing-hero-points li {
    min-height: 42px !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 6px 4px !important;
    font-size: 0.62rem !important;
  }
}

@media (max-width: 420px) {
  body.landing-page-body .landing-hero {
    gap: 8px !important;
    padding-top: 8px !important;
  }

  body.landing-page-body .landing-hero h1 {
    font-size: clamp(1.18rem, 6.5vw, 1.42rem) !important;
  }

  body.landing-page-body .landing-hero-points li {
    padding-left: 3px !important;
    padding-right: 3px !important;
    font-size: 0.58rem !important;
  }
}

/* Final user dashboard and rank-check page polish */
body.image-dashboard-body .image-dashboard-main.image-dashboard-home {
  max-width: 1380px !important;
  padding-top: 14px !important;
  padding-bottom: 24px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
  grid-template-columns: minmax(260px, 0.72fr) minmax(460px, 1.28fr) !important;
  gap: 12px !important;
  margin-bottom: 10px !important;
  padding: 13px 15px !important;
  border-radius: 14px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-copy {
  gap: 5px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero h1 {
  font-size: clamp(1.22rem, 1.58vw, 1.58rem) !important;
  line-height: 1.1 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-lead {
  font-size: 0.78rem !important;
  line-height: 1.32 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span {
  min-height: 25px !important;
  padding: 0 7px !important;
  font-size: 0.68rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-actions {
  gap: 6px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect {
  grid-template-columns: minmax(0, 1fr) minmax(132px, 160px) !important;
  gap: 6px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-keywords,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-keywords textarea {
  height: 36px !important;
  min-height: 36px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-search-row {
  grid-template-columns: minmax(0, 1fr) 50px !important;
  gap: 5px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-submit {
  width: 50px !important;
  min-width: 50px !important;
  height: 34px !important;
  min-height: 34px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
  min-height: 29px !important;
  border-radius: 9px !important;
  font-size: 0.66rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card {
  min-height: 104px !important;
  padding: 12px !important;
  border-radius: 12px !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 14px 34px -30px rgba(15, 23, 42, 0.28) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-head {
  margin-bottom: 7px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-head i {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-head span {
  font-size: 0.68rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card strong {
  font-size: clamp(1.32rem, 2.2vw, 1.88rem) !important;
  line-height: 1 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card p {
  margin-top: 7px !important;
  font-size: 0.66rem !important;
  line-height: 1.32 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-sparkline {
  right: 10px !important;
  bottom: 8px !important;
  width: 42% !important;
  height: 26px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px) !important;
  gap: 12px !important;
  align-items: start !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-primary,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-aside {
  gap: 10px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-home-main-grid,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-bottom-grid {
  gap: 10px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-system-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-tip-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-schedule-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-today-card {
  padding: 13px !important;
  border-radius: 12px !important;
  border-color: rgba(226, 232, 240, 0.94) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 16px 36px -34px rgba(15, 23, 42, 0.3) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-card-head {
  margin-bottom: 9px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-card-head h3 {
  font-size: 0.9rem !important;
  line-height: 1.18 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-card-head a,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-card-head span {
  font-size: 0.72rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-list {
  gap: 6px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-list--scroll:has(.image-recent-row:nth-child(5)) {
  --dashboard-recent-row-height: 54px !important;
  --dashboard-recent-row-gap: 6px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row {
  min-height: 54px !important;
  padding: 8px !important;
  border-radius: 9px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row .image-recent-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row strong {
  font-size: 0.8rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row em,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row i {
  font-size: 0.66rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-ring {
  min-height: 128px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-ring-visual {
  width: min(118px, 100%) !important;
  height: 126px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-ring-visual strong {
  font-size: 1.24rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-system-grid {
  gap: 0 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-system-grid div {
  min-height: 72px !important;
  padding: 10px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-calendar {
  gap: 4px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-calendar span,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-calendar b {
  min-height: 24px !important;
  border-radius: 7px !important;
  font-size: 0.66rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-schedule-note,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-schedule-task,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-today-list a {
  border-radius: 10px !important;
}

body.rank-check-visual-body .image-dashboard-main {
  max-width: 1380px !important;
  padding-top: 12px !important;
  padding-bottom: 24px !important;
}

body.rank-check-visual-body .image-page-hero--admin {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
}

body.rank-check-visual-body .image-page-hero--admin h1 {
  font-size: clamp(1.18rem, 1.55vw, 1.45rem) !important;
  line-height: 1.12 !important;
}

body.rank-check-visual-body .image-page-hero--admin p {
  margin-bottom: 4px !important;
  font-size: 0.64rem !important;
}

body.rank-check-visual-body .image-page-hero-copy > span {
  max-width: 64ch !important;
  font-size: 0.76rem !important;
  line-height: 1.32 !important;
}

body.rank-check-visual-body .rank-check-kakao-bar {
  justify-content: flex-end !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
  padding: 6px !important;
  border-radius: 11px !important;
}

body.rank-check-visual-body .rank-check-kakao-bar .rank-action-btn {
  min-height: 32px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 0.7rem !important;
}

body.rank-check-visual-body .rank-check-page-stack {
  gap: 10px !important;
}

body.rank-check-visual-body .rank-check-setup-panel,
body.rank-check-visual-body .advertiser-rank-summary,
body.rank-check-visual-body .rank-check-saved-board {
  border-radius: 12px !important;
  border-color: rgba(226, 232, 240, 0.94) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 16px 38px -34px rgba(15, 23, 42, 0.3) !important;
}

body.rank-check-visual-body .rank-check-setup-panel {
  padding: 12px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-check-form {
  gap: 8px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid {
  grid-template-columns: minmax(150px, 0.82fr) minmax(170px, 0.88fr) minmax(220px, 1.18fr) !important;
  gap: 8px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label {
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label span {
  font-size: 0.64rem !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid input {
  height: 36px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 0.78rem !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-service-row {
  grid-template-columns: auto minmax(160px, 1fr) auto !important;
  gap: 7px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-service-toggle-group {
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle span {
  min-height: 31px !important;
  padding: 0 9px !important;
  border-radius: 8px !important;
  font-size: 0.66rem !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-form-hint {
  font-size: 0.68rem !important;
  line-height: 1.3 !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button {
  min-width: 118px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  font-size: 0.7rem !important;
}

body.rank-check-visual-body .rank-report-panel {
  margin-top: 8px !important;
  border-radius: 10px !important;
}

body.rank-check-visual-body .rank-report-panel__head {
  min-height: 38px !important;
  padding: 8px 10px !important;
}

body.rank-check-visual-body .rank-report-panel__body {
  padding: 8px 10px 10px !important;
}

body.rank-check-visual-body .rank-watch-stats {
  grid-template-columns: repeat(4, minmax(104px, 1fr)) minmax(240px, 1.18fr) !important;
  gap: 7px !important;
}

body.rank-check-visual-body .rank-watch-stat {
  min-height: 74px !important;
  grid-template-columns: 26px minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 10px !important;
  border-radius: 10px !important;
}

body.rank-check-visual-body .rank-watch-stat__icon {
  width: 26px !important;
  height: 26px !important;
}

body.rank-check-visual-body .rank-watch-stat strong {
  font-size: 1rem !important;
}

body.rank-check-visual-body .rank-watch-stat span,
body.rank-check-visual-body .rank-watch-stat em,
body.rank-check-visual-body .rank-watch-channel-copy span {
  font-size: 0.64rem !important;
}

body.rank-check-visual-body .rank-watch-donut {
  width: 52px !important;
  height: 52px !important;
}

body.rank-check-visual-body .advertiser-rank-summary {
  padding: 12px !important;
}

body.rank-check-visual-body .advertiser-rank-summary .member-panel-head {
  margin-bottom: 8px !important;
}

body.rank-check-visual-body .advertiser-rank-summary__grid {
  gap: 7px !important;
}

body.rank-check-visual-body .advertiser-rank-summary__grid article {
  padding: 9px !important;
  border-radius: 9px !important;
}

body.rank-check-visual-body .advertiser-rank-summary__grid strong {
  font-size: 1.08rem !important;
}

body.rank-check-visual-body .rank-check-saved-board {
  padding: 13px !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head {
  margin-bottom: 8px !important;
}

body.rank-check-visual-body .rank-watcher-toolbar {
  gap: 8px !important;
  margin-bottom: 7px !important;
}

body.rank-check-visual-body .rank-watcher-filter-row {
  gap: 5px !important;
}

body.rank-check-visual-body .rank-watcher-filter {
  min-height: 29px !important;
  padding: 0 9px !important;
  border-radius: 8px !important;
  font-size: 0.66rem !important;
}

body.rank-check-visual-body .rank-watcher-health-row {
  margin-bottom: 7px !important;
  padding: 7px 9px !important;
  border-radius: 9px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-list {
  gap: 7px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
  padding: 9px !important;
  border-radius: 9px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-head,
body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row {
  gap: 7px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title {
  font-size: 0.82rem !important;
  line-height: 1.25 !important;
}

body.rank-check-visual-body .rank-position-strip {
  margin-top: 7px !important;
  padding: 8px !important;
  border-radius: 9px !important;
}

body.rank-check-visual-body .rank-position-strip--compact .rank-position-ranks {
  gap: 6px !important;
}

body.rank-check-visual-body .rank-position-hero {
  min-height: 0 !important;
  padding: 7px 8px !important;
  border-radius: 8px !important;
}

body.rank-check-visual-body .rank-position-hero__rank {
  font-size: 0.78rem !important;
}

body.rank-check-visual-body .rank-position-hero__num {
  font-size: 1rem !important;
}

body.rank-check-visual-body .watcher-actions-row__buttons {
  gap: 5px !important;
}

body.rank-check-visual-body .watcher-action-button,
body.rank-check-visual-body .watcher-delete-button,
body.rank-check-visual-body .watcher-open-button {
  min-height: 29px !important;
  padding: 0 9px !important;
  border-radius: 8px !important;
  font-size: 0.66rem !important;
}

body.rank-check-visual-body .rank-watch-tip-row {
  margin-top: 8px !important;
  padding: 8px 9px !important;
  border-radius: 9px !important;
}

body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-system-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-tip-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-schedule-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-today-card,
body.theme-dark.rank-check-visual-body .rank-check-setup-panel,
body.theme-dark.rank-check-visual-body .advertiser-rank-summary,
body.theme-dark.rank-check-visual-body .rank-check-saved-board {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.92) !important;
}

@media (max-width: 1180px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero,
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-layout,
  body.rank-check-visual-body .image-page-hero--admin {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 900px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect,
  body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid,
  body.rank-check-visual-body .rank-check-setup-panel .rank-service-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-home-main-grid,
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-bottom-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button {
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home {
    padding-top: 10px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
    padding: 9px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero h1 {
    font-size: clamp(1.05rem, 5.1vw, 1.28rem) !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card {
    min-height: 92px !important;
    padding: 10px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rank-check-visual-body .image-dashboard-main {
    padding-top: 9px !important;
  }

  body.rank-check-visual-body .image-page-hero--admin {
    padding: 10px !important;
  }

  body.rank-check-visual-body .image-page-hero-copy > span {
    display: none !important;
  }

  body.rank-check-visual-body .rank-check-kakao-bar {
    justify-content: flex-start !important;
    overflow-x: auto !important;
  }

  body.rank-check-visual-body .rank-check-setup-panel,
  body.rank-check-visual-body .advertiser-rank-summary,
  body.rank-check-visual-body .rank-check-saved-board {
    padding: 10px !important;
  }
}

@media (max-width: 520px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span em {
    display: none !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card p,
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-sparkline {
    display: none !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings,
  body.rank-check-visual-body .rank-watch-stats,
  body.rank-check-visual-body .advertiser-rank-summary__grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-watcher-toolbar {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  body.rank-check-visual-body .rank-watcher-filter-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Rank-check summary stats: extra compact pass */
body.rank-check-visual-body .rank-watch-stats {
  grid-template-columns: repeat(4, minmax(96px, 0.82fr)) minmax(220px, 1.14fr) !important;
  gap: 6px !important;
  margin: 0 !important;
}

body.rank-check-visual-body .rank-watch-stat {
  min-height: 58px !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  gap: 7px !important;
  align-items: center !important;
  padding: 8px 9px !important;
  border-radius: 9px !important;
  box-shadow: 0 10px 24px -24px rgba(15, 23, 42, 0.28) !important;
}

body.rank-check-visual-body .rank-watch-stat__icon {
  width: 22px !important;
  height: 22px !important;
  border-radius: 7px !important;
}

body.rank-check-visual-body .rank-watch-stat__icon::before {
  width: 12px !important;
  height: 12px !important;
}

body.rank-check-visual-body .rank-watch-stat span,
body.rank-check-visual-body .rank-watch-channel-copy span {
  font-size: 0.58rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watch-stat strong {
  margin-top: 2px !important;
  font-size: 0.96rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-watch-stat em {
  display: block !important;
  margin-top: 3px !important;
  font-size: 0.58rem !important;
  line-height: 1.18 !important;
  white-space: normal !important;
}

body.rank-check-visual-body .rank-watch-stat--time strong {
  font-size: 0.82rem !important;
  letter-spacing: 0 !important;
}

body.rank-check-visual-body .rank-watch-stat--channels {
  min-height: 58px !important;
  grid-template-columns: minmax(62px, 0.58fr) 42px minmax(120px, 1fr) !important;
  gap: 7px !important;
  padding: 8px 9px !important;
}

body.rank-check-visual-body .rank-watch-channel-copy {
  gap: 3px !important;
}

body.rank-check-visual-body .rank-watch-channel-copy strong {
  font-size: 0.82rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-watch-donut {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
}

body.rank-check-visual-body .rank-watch-channel-legend {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 3px !important;
  min-width: 0 !important;
}

body.rank-check-visual-body .rank-watch-channel-legend span {
  min-height: 22px !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 0 4px !important;
  border-radius: 7px !important;
  font-size: 0.56rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-watch-channel-legend i {
  width: 6px !important;
  height: 6px !important;
  flex: 0 0 6px !important;
}

body.rank-check-visual-body .rank-watch-channel-legend b {
  font-size: 0.58rem !important;
}

@media (max-width: 1180px) {
  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 520px) {
  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-watch-stat,
  body.rank-check-visual-body .rank-watch-stat--channels {
    min-height: 54px !important;
  }

  body.rank-check-visual-body .rank-watch-stat--channels {
    grid-template-columns: minmax(70px, 0.65fr) 38px minmax(0, 1fr) !important;
  }
}

/* Saved rank-check list: compact cards with stronger rank signals */
body.rank-check-visual-body .rank-check-saved-board {
  padding: 8px !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head {
  margin-bottom: 5px !important;
  padding-bottom: 6px !important;
  gap: 8px !important;
  border-bottom: 1px solid #edf2f7 !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head .panel-kicker {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head h3 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 0.93rem !important;
  line-height: 1.1 !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong {
  min-height: 24px !important;
  padding: 0 8px !important;
  border-radius: 7px !important;
  font-size: 0.8rem !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong span {
  margin-left: 1px !important;
  font-size: 0.58rem !important;
}

body.rank-check-visual-body .rank-watcher-toolbar {
  display: block !important;
  margin: 0 0 5px !important;
}

body.rank-check-visual-body .rank-watcher-view-tools,
body.rank-check-visual-body .rank-sort-control,
body.rank-check-visual-body .rank-view-button {
  display: none !important;
}

body.rank-check-visual-body .rank-watcher-filter-row {
  display: flex !important;
  gap: 4px !important;
  margin: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter {
  min-height: 25px !important;
  padding: 0 8px !important;
  border-radius: 7px !important;
  font-size: 0.62rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watcher-health-row {
  min-height: 0 !important;
  margin: 0 0 6px !important;
  padding: 5px 7px !important;
  gap: 6px !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-watcher-health-row span,
body.rank-check-visual-body .rank-watcher-health-row em {
  font-size: 0.58rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watcher-health-row b {
  font-size: 0.82rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watcher-refresh-button {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #047857 !important;
  font-size: 0.58rem !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-watch-tip-row {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-list {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
  min-height: 0 !important;
  padding: 7px !important;
  border-radius: 8px !important;
  border-color: rgba(226, 232, 240, 0.94) !important;
  box-shadow: 0 10px 24px -25px rgba(15, 23, 42, 0.32) !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-body {
  min-height: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-head {
  gap: 4px !important;
  padding-right: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-service-badge {
  min-height: 20px !important;
  padding: 0 7px !important;
  border-radius: 7px !important;
  font-size: 0.58rem !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title {
  min-height: 0 !important;
  margin-top: 0 !important;
  font-size: 0.74rem !important;
  line-height: 1.24 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title a {
  -webkit-line-clamp: 1 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip {
  margin-top: 4px !important;
  padding: 5px !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__row {
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__section-name {
  font-size: 0.62rem !important;
  line-height: 1.2 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-ranks {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero {
  min-height: 32px !important;
  padding: 4px 6px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__service,
body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__scope {
  font-size: 0.56rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__rank {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero:not(.rank-position-hero--overall) .rank-position-hero__num {
  color: #047857 !important;
  font-size: 1.36rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero--overall .rank-position-hero__num {
  color: #0f172a !important;
  font-size: 1.08rem !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__unit {
  margin-left: 1px !important;
  font-size: 0.58rem !important;
}

body.rank-check-visual-body .watcher-rank-snapshot {
  display: grid !important;
  grid-template-columns: minmax(76px, 0.72fr) minmax(0, 1.28fr) !important;
  gap: 4px !important;
  margin-top: 4px !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank,
body.rank-check-visual-body .watcher-rank-snapshot__change {
  min-width: 0 !important;
  min-height: 38px !important;
  display: grid !important;
  align-content: center !important;
  gap: 1px !important;
  padding: 5px 6px !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 8px !important;
  background: #fff !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank {
  border-color: rgba(4, 120, 87, 0.18) !important;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%) !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank span,
body.rank-check-visual-body .watcher-rank-snapshot__change span {
  color: #64748b !important;
  font-size: 0.54rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank strong {
  color: #047857 !important;
  font-size: 1.34rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank strong em {
  margin-left: 1px !important;
  color: #065f46 !important;
  font-size: 0.62rem !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change strong {
  overflow: hidden !important;
  color: #334155 !important;
  font-size: 0.68rem !important;
  font-weight: 950 !important;
  line-height: 1.08 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change em {
  overflow: hidden !important;
  color: #64748b !important;
  font-size: 0.56rem !important;
  font-style: normal !important;
  line-height: 1.12 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-up .watcher-rank-snapshot__change {
  border-color: rgba(34, 197, 94, 0.24) !important;
  background: #f0fdf4 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-up .watcher-rank-snapshot__change strong {
  color: #047857 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-down .watcher-rank-snapshot__change {
  border-color: rgba(239, 68, 68, 0.22) !important;
  background: #fff5f5 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-down .watcher-rank-snapshot__change strong {
  color: #b91c1c !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-flat .watcher-rank-snapshot__change {
  background: #f8fafc !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-author,
body.rank-check-visual-body .rank-check-saved-board .watcher-footnote,
body.rank-check-visual-body .rank-check-saved-board .watcher-fallback-note {
  margin-top: 4px !important;
  font-size: 0.6rem !important;
  line-height: 1.15 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at {
  margin-top: 4px !important;
  padding-right: 0 !important;
  font-size: 0.56rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions {
  margin-top: 4px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row {
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row__buttons {
  gap: 3px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-action-button,
body.rank-check-visual-body .rank-check-saved-board .watcher-delete-button,
body.rank-check-visual-body .rank-check-saved-board .watcher-open-button {
  min-height: 23px !important;
  padding: 0 6px !important;
  border-radius: 6px !important;
  font-size: 0.56rem !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-schedule-note {
  font-size: 0.54rem !important;
  line-height: 1.08 !important;
}

/* Saved rank-check list: image-reference dense card pass */
body.rank-check-visual-body .rank-check-saved-board {
  padding: 18px !important;
  border-radius: 12px !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head {
  margin-bottom: 14px !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head h3 {
  font-size: 1.72rem !important;
  font-weight: 950 !important;
  line-height: 1.12 !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong {
  min-height: 0 !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong span:first-child {
  color: #0f172a !important;
  font-size: 0.9rem !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong span:last-child {
  color: #0f172a !important;
  font-size: 1rem !important;
}

body.rank-check-visual-body .rank-watcher-toolbar {
  margin: 0 0 12px !important;
}

body.rank-check-visual-body .rank-watcher-filter-row {
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter {
  min-width: 126px !important;
  min-height: 46px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter.is-active {
  border-color: #16a34a !important;
  background: #effdf4 !important;
  color: #047857 !important;
}

body.rank-check-visual-body .rank-watcher-health-row {
  position: relative !important;
  align-items: center !important;
  min-height: 56px !important;
  margin: 0 0 12px !important;
  padding: 10px 16px !important;
  gap: 10px !important;
  border: 1px solid #dbe3ec !important;
  border-radius: 9px !important;
  background: #fbfcfe !important;
}

body.rank-check-visual-body .rank-watcher-health-row::before {
  content: "" !important;
  flex: 0 0 auto !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  background: #16a34a !important;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.14) !important;
  -webkit-mask: none !important;
  mask: none !important;
}

body.rank-check-visual-body .rank-watcher-health-row::after {
  content: "" !important;
  position: absolute !important;
  left: 25px !important;
  width: 13px !important;
  height: 8px !important;
  border-left: 3px solid #ffffff !important;
  border-bottom: 3px solid #ffffff !important;
  transform: rotate(-45deg) !important;
}

body.rank-check-visual-body .rank-watcher-health-row span,
body.rank-check-visual-body .rank-watcher-health-row em {
  font-size: 1rem !important;
  line-height: 1.2 !important;
}

body.rank-check-visual-body .rank-watcher-health-row span {
  color: #111827 !important;
  font-weight: 950 !important;
}

body.rank-check-visual-body .rank-watcher-health-row b {
  color: #047857 !important;
  font-size: 1.12rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watcher-health-row em {
  color: #475569 !important;
  font-weight: 750 !important;
}

body.rank-check-visual-body .rank-watcher-refresh-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin-left: auto !important;
  color: #047857 !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-list {
  gap: 10px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
  position: relative !important;
  min-height: 0 !important;
  padding: 14px !important;
  border-radius: 9px !important;
  border-color: #dbe3ec !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-body {
  display: flex !important;
  min-height: 0 !important;
  flex-direction: column !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-head {
  gap: 7px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-width: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-badges {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  min-width: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-keyword {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-service-badge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 0.92rem !important;
  font-weight: 950 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank {
  display: inline-flex !important;
  align-items: baseline !important;
  flex: 0 0 auto !important;
  color: #047857 !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank span {
  font-size: 2.1rem !important;
  letter-spacing: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank em {
  margin-left: 2px !important;
  color: #111827 !important;
  font-size: 1.05rem !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank.is-empty span {
  color: #64748b !important;
  font-size: 1rem !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title {
  min-height: 0 !important;
  margin: 0 !important;
  color: #111827 !important;
  font-size: 1.1rem !important;
  font-weight: 950 !important;
  line-height: 1.45 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title a {
  -webkit-line-clamp: 2 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-author,
body.rank-check-visual-body .rank-check-saved-board .watcher-fallback-note {
  display: block !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-footnote {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip {
  margin-top: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__row {
  display: block !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__section {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__eyebrow,
body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__exposure {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__section-name {
  overflow: hidden !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .watcher-rank-snapshot {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 0 !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid #dbe3ec !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank,
body.rank-check-visual-body .watcher-rank-snapshot__change {
  min-height: 62px !important;
  padding: 0 10px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change {
  padding-left: 14px !important;
  border-left: 1px solid #dbe3ec !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank span,
body.rank-check-visual-body .watcher-rank-snapshot__change span {
  color: #64748b !important;
  font-size: 0.88rem !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank strong {
  display: inline-flex !important;
  align-items: baseline !important;
  flex: 0 0 auto !important;
  color: #047857 !important;
  font-size: 1.55rem !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank strong em {
  font-size: 0.95rem !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change strong {
  color: #111827 !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-up .watcher-rank-snapshot__change strong {
  color: #047857 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-down .watcher-rank-snapshot__change strong {
  color: #b91c1c !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change em {
  color: #475569 !important;
  font-size: 0.88rem !important;
  line-height: 1.2 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #475569 !important;
  font-size: 0.9rem !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at__label {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions {
  position: static !important;
  width: 100% !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid #dbe3ec !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row__buttons {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
  gap: 6px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-action-button,
body.rank-check-visual-body .rank-check-saved-board .watcher-delete-button,
body.rank-check-visual-body .rank-check-saved-board .watcher-open-button {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  font-size: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-action-button span,
body.rank-check-visual-body .rank-check-saved-board .watcher-delete-button span,
body.rank-check-visual-body .rank-check-saved-board .watcher-open-button span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-schedule-note {
  display: none !important;
}

@media (max-width: 1320px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .watcher-rank-snapshot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}

/* Final operator dashboard mobile pass after bundled responsive rules */
@media (max-width: 900px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-head {
    min-height: 34px !important;
    padding-left: 76px !important;
    margin-bottom: 8px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats {
    min-height: 74px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin-top: 10px !important;
    padding: 0 8px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span {
    min-height: 58px !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 4px !important;
    padding: 0 5px !important;
    text-align: center !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span + span {
    border-left: 1px solid rgba(228, 233, 238, 0.96) !important;
    border-top: 0 !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats .image-line-icon {
    display: none !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span em {
    display: block !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span b {
    display: block !important;
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1 !important;
  }
}

/* Sidebar account actions + full-width workspace pass */
body.image-dashboard-body .image-dashboard-shell {
  grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 14px !important;
  padding-right: 14px !important;
}

body.image-dashboard-body .image-dashboard-main,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home,
body.rank-check-visual-body .image-dashboard-main {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.rank-check-visual-body .image-dashboard-main {
  padding-left: clamp(18px, 2vw, 28px) !important;
  padding-right: clamp(18px, 2vw, 28px) !important;
}

body.rank-check-visual-body .rank-check-page-wrap,
body.rank-check-visual-body .rank-check-page-stack,
body.rank-check-visual-body .rank-check-setup-panel,
body.rank-check-visual-body .advertiser-rank-summary,
body.rank-check-visual-body .rank-check-saved-board {
  width: 100% !important;
  max-width: none !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user {
  gap: 7px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
  width: 78px !important;
  display: grid !important;
  grid-template-columns: repeat(2, 32px) !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 2px auto 0 !important;
  padding: 7px !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-radius: 14px !important;
  background: rgba(248, 251, 249, 0.96) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action {
  position: relative !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid rgba(226, 232, 240, 0.96) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #64748b !important;
  text-decoration: none !important;
  box-shadow: 0 10px 22px -20px rgba(15, 23, 42, 0.42) !important;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action:hover,
body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action.is-active {
  border-color: rgba(8, 120, 74, 0.24) !important;
  background: #effaf4 !important;
  color: #08784a !important;
  transform: translateY(-1px) !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action:active {
  transform: scale(0.96) !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action-logout {
  color: #b42318 !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action-logout:hover {
  border-color: rgba(180, 35, 24, 0.2) !important;
  background: #fff5f4 !important;
  color: #b42318 !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action .image-line-icon {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2.2 !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action span {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 8px) !important;
  z-index: 4 !important;
  width: max-content !important;
  max-width: 140px !important;
  height: auto !important;
  min-height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 9px !important;
  clip: auto !important;
  overflow: visible !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-radius: 8px !important;
  background: rgba(15, 23, 42, 0.94) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, 4px) !important;
  transition: opacity 0.16s ease, transform 0.16s ease !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 8px;
  height: 8px;
  background: rgba(15, 23, 42, 0.94);
  transform: translate(-50%, -4px) rotate(45deg);
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action:hover span,
body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action:focus-visible span {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}

@media (max-width: 1180px) and (min-width: 961px) {
  body.image-dashboard-body .image-dashboard-shell {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding-right: 12px !important;
  }
}

@media (max-width: 900px) {
  body.image-dashboard-body .image-dashboard-shell {
    display: block !important;
    padding: 0 !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user {
    width: 100% !important;
    align-items: stretch !important;
    justify-items: stretch !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-main {
    justify-items: start !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-meta {
    justify-items: start !important;
    text-align: left !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 8px !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action {
    width: 100% !important;
    height: 40px !important;
    min-width: 0 !important;
    min-height: 40px !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    justify-items: start !important;
    gap: 8px !important;
    padding: 0 10px !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action span {
    position: static !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action span::after {
    display: none !important;
  }

  body.rank-check-visual-body .image-dashboard-main {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Sidebar quick-menu descriptive tooltips */
@media (min-width: 901px) {
  body.image-dashboard-body .image-sidebar {
    overflow: visible !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user {
    position: relative !important;
    overflow: visible !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
    overflow: visible !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip] {
    isolation: isolate !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    z-index: 30;
    width: max-content;
    max-width: 190px;
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    box-shadow: 0 18px 32px -20px rgba(15, 23, 42, 0.55);
    opacity: 0;
    pointer-events: none;
    transform: translate(0, -50%) scale(0.98);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]::before {
    content: "";
    position: absolute;
    left: calc(100% + 7px);
    top: 50%;
    z-index: 31;
    width: 9px;
    height: 9px;
    border-left: 1px solid rgba(15, 23, 42, 0.12);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translate(0, -50%) rotate(45deg);
    transition: opacity 0.16s ease;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:hover::after,
  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:hover::before,
  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:focus-visible::before {
    opacity: 1;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:hover span,
  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:focus-visible span {
    opacity: 0 !important;
    transform: translate(-50%, 4px) !important;
  }
}

/* Dashboard and rank-check responsive grid correction */
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-ring {
  min-width: 0 !important;
}

@media (max-width: 960px) {
  .site-menu-toggle {
    position: relative;
    z-index: 10002;
    pointer-events: auto !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    touch-action: manipulation;
  }

  body.is-site-menu-open .site-header {
    z-index: 10002;
  }

  .site-mobile-menu:not(.is-open) {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  .site-mobile-menu.is-open {
    display: block !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  .site-mobile-menu.is-open .site-mobile-menu-backdrop,
  .site-mobile-menu.is-open .site-mobile-menu-panel {
    pointer-events: auto !important;
  }

  .site-mobile-menu-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .site-mobile-menu-panel {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.image-dashboard-body .image-dashboard-shell {
    display: block !important;
    grid-template-columns: 1fr !important;
    padding: 0 !important;
  }

  body.image-dashboard-body .image-mobile-menu-button {
    display: inline-flex !important;
    position: fixed !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 1600 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
    color: #0f172a !important;
    opacity: 1 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12) !important;
  }

  body.image-dashboard-body .image-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 1500 !important;
    width: min(88vw, 320px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    transform: translate3d(-105%, 0, 0) !important;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    background: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.image-dashboard-body.is-sidebar-open .image-sidebar {
    transform: translate3d(0, 0, 0) !important;
    pointer-events: auto !important;
  }

  body.image-dashboard-body .image-sidebar-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1450 !important;
    display: block !important;
    border: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(15, 23, 42, 0.32) !important;
    transition: opacity 200ms ease, visibility 200ms ease !important;
  }

  body.image-dashboard-body.is-sidebar-open .image-sidebar-backdrop {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.image-dashboard-body.is-sidebar-open {
    overflow: hidden !important;
  }

  body.image-dashboard-body .image-sidebar *,
  body.image-dashboard-body .image-sidebar *::before,
  body.image-dashboard-body .image-sidebar *::after {
    filter: none !important;
    text-shadow: none !important;
  }
}

@media (max-width: 900px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-ring {
    min-height: 128px !important;
    padding: 8px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-ring-visual {
    width: min(118px, 100%) !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto !important;
  }

  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.rank-check-visual-body .rank-watch-stat {
    min-width: 0 !important;
    min-height: 92px !important;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  body.rank-check-visual-body .rank-watch-stat__icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
  }

  body.rank-check-visual-body .rank-watch-stat span {
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  body.rank-check-visual-body .rank-watch-stat strong {
    font-size: clamp(19px, 5.4vw, 24px) !important;
    line-height: 1.05 !important;
    word-break: keep-all !important;
  }

  body.rank-check-visual-body .rank-watch-stat em {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  body.rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
    min-height: 86px !important;
    grid-template-columns: minmax(0, 0.82fr) 58px minmax(0, 1.18fr) !important;
    align-items: center !important;
  }

  body.rank-check-visual-body .rank-watch-donut {
    width: 54px !important;
    height: 54px !important;
  }

  body.rank-check-visual-body .rank-watch-channel-legend {
    gap: 4px !important;
  }

  body.rank-check-visual-body .rank-watch-channel-legend span {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid article {
    min-width: 0 !important;
    min-height: 76px !important;
    padding: 9px 6px !important;
    border-radius: 10px !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid span {
    overflow: hidden !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid strong {
    font-size: clamp(18px, 5vw, 22px) !important;
    line-height: 1 !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid em {
    overflow: hidden !important;
    font-size: 9px !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* Saved rank-check cards: keep two cards per mobile row */
@media (max-width: 900px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
    min-width: 0 !important;
    padding: 10px !important;
    border-radius: 10px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-card-top {
    gap: 6px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-service-badge {
    min-height: 24px !important;
    padding: 0 8px !important;
    font-size: 0.82rem !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank span {
    font-size: 1.74rem !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank em {
    font-size: 0.86rem !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-title {
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
  }
}

/* Expanded sidebar with collection and advertiser controls */
body.image-dashboard-body {
  --operator-sidebar-width: 252px;
}

body.image-dashboard-body .image-dashboard-shell {
  grid-template-columns: var(--operator-sidebar-width) minmax(0, 1fr) !important;
  gap: 16px !important;
  padding-right: 16px !important;
}

body.image-dashboard-body .image-sidebar {
  width: var(--operator-sidebar-width) !important;
  padding: 18px 14px 14px !important;
  gap: 12px !important;
  overflow: visible !important;
}

body.image-dashboard-body .image-sidebar-brand-row {
  min-height: 46px !important;
}

body.image-dashboard-body .image-sidebar-brand {
  width: 100% !important;
  height: 46px !important;
  display: flex !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  padding: 0 8px !important;
}

body.image-dashboard-body .image-sidebar-brand span {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 auto !important;
}

body.image-dashboard-body .image-sidebar-brand strong {
  display: block !important;
  overflow: hidden !important;
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.image-dashboard-body .image-sidebar-brand em {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 20px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: #effaf4 !important;
  color: #08784a !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

body.image-dashboard-body .image-sidebar-scroll {
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
  padding-right: 2px !important;
  overflow-y: auto !important;
}

body.image-dashboard-body .image-sidebar-workbench {
  display: grid !important;
  gap: 8px !important;
  min-width: 0 !important;
  padding: 0 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-panel {
  order: 2 !important;
  display: grid !important;
  gap: 8px !important;
  padding: 10px !important;
  border: 1px solid rgba(8, 120, 74, 0.16) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #f5fcf8 0%, #ffffff 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 30px -26px rgba(15, 23, 42, 0.35) !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-promo {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-promo > span {
  width: 28px !important;
  height: 28px !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  border-radius: 10px !important;
  background: #e8f7ee !important;
  color: #08784a !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-promo .image-line-icon {
  width: 15px !important;
  height: 15px !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-head strong {
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-field {
  gap: 5px !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-keyword-editor {
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-sidebar-workbench #keywords {
  min-height: 64px !important;
  max-height: 96px !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  resize: vertical !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-inline-button {
  min-height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(8, 120, 74, 0.16) !important;
  border-radius: 9px !important;
  background: #f8fbf9 !important;
  color: #08784a !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-service-toggles {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-workbench .image-collect-panel .image-service-toggles .toggle-pill span {
  min-height: 32px !important;
  padding: 0 4px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

body.image-dashboard-body .image-sidebar-workbench .payment-collect-note {
  margin: 0 !important;
  padding: 7px !important;
  border-radius: 9px !important;
  font-size: 10px !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-start-button {
  min-height: 36px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #0c8250, #076d43) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-panel {
  order: 1 !important;
  display: grid !important;
  gap: 6px !important;
  padding: 9px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 12px 26px -24px rgba(15, 23, 42, 0.42) !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-sidebar-nav-label {
  display: block !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 36px !important;
  gap: 6px !important;
  align-items: center !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-select-form select {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 28px 0 9px !important;
  border: 1px solid rgba(203, 213, 225, 0.95) !important;
  border-radius: 9px !important;
  background-color: #fff !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-manage-btn {
  width: 36px !important;
  height: 36px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(8, 120, 74, 0.18) !important;
  border-radius: 9px !important;
  background: #effaf4 !important;
  color: #08784a !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-manage-btn .image-line-icon {
  width: 17px !important;
  height: 17px !important;
}

body.image-dashboard-body .image-sidebar-nav,
body.image-dashboard-body .image-sidebar-nav.is-admin-nav {
  gap: 4px !important;
}

body.image-dashboard-body .image-sidebar-nav a,
body.image-dashboard-body .image-sidebar-nav.is-admin-nav a {
  min-height: 44px !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  justify-items: start !important;
  align-content: center !important;
  gap: 8px !important;
  padding: 6px 9px !important;
  text-align: left !important;
}

body.image-dashboard-body .image-sidebar-nav a > span:not(.image-nav-icon) {
  max-width: none !important;
  font-size: 13px !important;
  text-align: left !important;
}

body.image-dashboard-body .image-sidebar-nav a .image-nav-icon {
  width: 30px !important;
  height: 30px !important;
}

body.image-dashboard-body .image-sidebar-nav a .image-line-icon {
  width: 18px !important;
  height: 18px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
  width: 100% !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action {
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 1180px) {
  body.image-dashboard-body {
    --operator-sidebar-width: 236px;
  }
}

@media (max-width: 900px) {
  body.image-dashboard-body {
    --operator-sidebar-width: min(336px, 88vw);
  }

  body.image-dashboard-body .image-dashboard-shell {
    display: block !important;
    padding: 0 !important;
  }

  body.image-dashboard-body .image-sidebar {
    width: var(--operator-sidebar-width) !important;
    padding: 18px 14px 16px !important;
  }

  body.image-dashboard-body .image-sidebar-scroll {
    gap: 10px !important;
  }

  body.image-dashboard-body .image-sidebar-brand strong,
  body.image-dashboard-body .image-sidebar-brand em {
    display: inline-flex !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* Rank watcher daily monitor start/stop buttons */
.rank-check-saved-board .watcher-monitor-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #172033;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.rank-check-saved-board .watcher-monitor-button:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 122, 73, 0.2);
  color: #087947;
}

.rank-check-saved-board .watcher-monitor-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rank-check-saved-board .watcher-monitor-button::before {
  content: "";
  width: 15px;
  height: 15px;
  background: currentColor;
}

.rank-check-saved-board .watcher-monitor-button.is-start {
  color: #047857;
  border-color: rgba(4, 120, 87, 0.18);
  background: #ecfdf5;
}

.rank-check-saved-board .watcher-monitor-button.is-stop {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.18);
  background: #fffbeb;
}

.rank-check-saved-board .watcher-monitor-button.is-start::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3Cpath d='M5 5h2v14H5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3Cpath d='M5 5h2v14H5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rank-check-saved-board .watcher-monitor-button.is-stop::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='6' y='5' width='4' height='14' rx='1'/%3E%3Crect x='14' y='5' width='4' height='14' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='6' y='5' width='4' height='14' rx='1'/%3E%3Crect x='14' y='5' width='4' height='14' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.theme-dark .rank-check-saved-board .watcher-monitor-button {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.42);
  color: #e2e8f0;
}

body.theme-dark .rank-check-saved-board .watcher-monitor-button.is-start {
  border-color: rgba(52, 211, 153, 0.26);
  background: rgba(6, 78, 59, 0.46);
  color: #a7f3d0;
}

body.theme-dark .rank-check-saved-board .watcher-monitor-button.is-stop {
  border-color: rgba(245, 158, 11, 0.26);
  background: rgba(120, 53, 15, 0.42);
  color: #fde68a;
}

/* Responsive and late-stage interface patches.
   This file is appended after app.css by AssetDelivery. */

/* Landing hero compact polish */
.landing-main {
  padding-top: clamp(10px, 1.8vw, 22px) !important;
}

.landing-hero {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px) !important;
  align-items: center !important;
  gap: clamp(16px, 2.6vw, 28px) !important;
  min-height: auto !important;
  padding: clamp(18px, 2.8vw, 34px) 0 clamp(22px, 3.2vw, 38px) !important;
}

.landing-hero-visual {
  left: clamp(-80px, -5vw, -28px) !important;
  top: 50% !important;
  width: min(42vw, 360px) !important;
  height: min(28vw, 250px) !important;
  transform: translateY(-50%) !important;
  opacity: 0.55 !important;
}

.landing-hero-copy {
  min-width: 0 !important;
  max-width: 620px !important;
}

.landing-kicker {
  margin-bottom: 8px !important;
  padding: 5px 10px !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
}

.landing-hero h1 {
  margin-bottom: 10px !important;
  font-size: clamp(1.58rem, 3.25vw, 2.28rem) !important;
  line-height: 1.14 !important;
  letter-spacing: 0 !important;
}

.landing-lead {
  max-width: 34rem !important;
  margin-bottom: 16px !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

.landing-cta {
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
}

.landing-hero-points {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  max-width: 520px !important;
  margin-top: 14px !important;
}

.landing-hero-points li {
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 6px 8px !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.72rem !important;
  line-height: 1.22 !important;
  text-align: center !important;
  white-space: normal !important;
}

.landing-point-icon {
  flex: 0 0 16px !important;
}

.landing-login-card {
  align-self: center !important;
  width: 100% !important;
  max-width: 390px !important;
  justify-self: end !important;
  padding: clamp(18px, 2.4vw, 24px) !important;
  border-radius: 14px !important;
}

@media (max-width: 960px) {
  .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
    gap: 18px !important;
  }

  .landing-hero-visual {
    width: min(38vw, 300px) !important;
    height: 220px !important;
    opacity: 0.36 !important;
  }
}

@media (max-width: 760px) {
  .image-dashboard-body .image-dashboard-main {
    padding: 14px 12px 28px;
  }

  .image-dashboard-body .image-hero-card,
  .image-dashboard-body .image-page-hero,
  .image-dashboard-body .image-hero-card.image-expert-hero,
  .image-subpage-body .image-page-hero--admin,
  .admin-page .image-page-hero--admin {
    min-height: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    padding: 14px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 244, 0.94)) !important;
  }

  .image-dashboard-body .image-hero-card::before,
  .image-dashboard-body .image-page-hero::before {
    opacity: 0 !important;
  }

  .image-dashboard-body .image-hero-kicker,
  .image-dashboard-body .image-page-hero p {
    margin-bottom: 4px !important;
    font-size: 0.66rem !important;
    line-height: 1.2 !important;
  }

  .image-dashboard-body .image-hero-card h1,
  .image-dashboard-body .image-page-hero h1 {
    margin-bottom: 5px !important;
    font-size: clamp(1.25rem, 5.8vw, 1.55rem) !important;
    line-height: 1.16 !important;
    letter-spacing: 0 !important;
  }

  .image-dashboard-body .image-hero-copy > span,
  .image-dashboard-body .image-page-hero-copy > span {
    display: block !important;
    max-width: 100% !important;
    font-size: 0.78rem !important;
    line-height: 1.42 !important;
  }

  .image-page-hero--admin .admin-hero-tools,
  .image-expert-hero .admin-hero-tools,
  .home-top .admin-hero-tools {
    justify-self: start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 4px !important;
    gap: 4px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  .image-page-hero--admin .admin-hero-tools::-webkit-scrollbar,
  .image-expert-hero .admin-hero-tools::-webkit-scrollbar,
  .home-top .admin-hero-tools::-webkit-scrollbar {
    display: none;
  }

  .admin-hero-tool-btn {
    --admin-tool-size: 38px;
    border-radius: 10px !important;
  }

  .landing-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .landing-hero-visual {
    display: none !important;
  }

  .landing-login-card {
    max-width: 100% !important;
    justify-self: stretch !important;
  }
}

@media (max-width: 640px) {
  .landing-main {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-bottom: 18px !important;
  }

  .landing-hero {
    min-height: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px 0 14px !important;
  }

  .landing-hero-visual {
    display: none !important;
  }

  .landing-hero-copy {
    min-width: 0 !important;
    padding: 0 !important;
  }

  .landing-kicker {
    margin-bottom: 6px !important;
    padding: 4px 9px !important;
    font-size: 0.68rem !important;
  }

  .landing-hero h1 {
    margin-bottom: 6px !important;
    max-width: 100% !important;
    font-size: clamp(1.28rem, 6.2vw, 1.58rem) !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere !important;
  }

  .landing-hero h1 br {
    display: initial !important;
  }

  .landing-lead {
    max-width: 36rem !important;
    margin-bottom: 10px !important;
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
  }

  .landing-cta {
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 0.82rem !important;
  }

  .landing-hero-points {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin-top: 9px !important;
  }

  .landing-hero-points li {
    min-height: 42px !important;
    min-width: 0 !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 6px 4px !important;
    border-radius: 8px !important;
    font-size: 0.62rem !important;
    line-height: 1.22 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .landing-point-icon {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
    font-size: 11px !important;
  }

  .landing-login-card {
    margin-top: 0 !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 420px) {
  .image-dashboard-body .image-dashboard-main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .image-dashboard-body .image-hero-card,
  .image-dashboard-body .image-page-hero,
  .image-dashboard-body .image-hero-card.image-expert-hero {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  .landing-hero {
    gap: 8px !important;
    padding-top: 8px !important;
  }

  .landing-hero h1 {
    font-size: clamp(1.18rem, 6.5vw, 1.42rem) !important;
  }

  .landing-hero-points li {
    min-width: 0 !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
    font-size: 0.58rem !important;
  }
}

/* Rank change summary and advertiser report */
.advertiser-rank-summary {
  padding: 20px !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px -30px rgba(15, 23, 42, 0.28) !important;
}

.advertiser-rank-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.advertiser-rank-summary__grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e6edf2;
  border-radius: 8px;
  background: #f8fafc;
}

.advertiser-rank-summary__grid span,
.advertiser-rank-summary__changes-head span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.advertiser-rank-summary__grid strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 24px;
  line-height: 1.1;
}

.advertiser-rank-summary__grid em {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.advertiser-rank-summary__grid article.is-up {
  border-color: rgba(5, 150, 105, 0.2);
  background: #ecfdf5;
}

.advertiser-rank-summary__grid article.is-up strong,
.rank-change-badge.is-up strong,
.rank-change-chip.is-up {
  color: #047857;
}

.advertiser-rank-summary__grid article.is-down {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fff1f2;
}

.advertiser-rank-summary__grid article.is-down strong,
.rank-change-badge.is-down strong,
.rank-change-chip.is-down {
  color: #be123c;
}

.advertiser-rank-summary__changes {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e6edf2;
}

.advertiser-rank-summary__changes-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.advertiser-rank-summary__changes-head strong {
  color: #0f172a;
  font-size: 14px;
}

.advertiser-rank-summary__changes ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.advertiser-rank-summary__changes li {
  display: grid;
  grid-template-columns: auto minmax(110px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #ffffff;
}

.advertiser-rank-summary__changes li strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advertiser-rank-summary__changes li em,
.advertiser-rank-summary__empty {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.rank-change-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid #e6edf2;
  border-radius: 8px;
  background: #f8fafc;
}

.rank-change-badge span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.rank-change-badge strong {
  color: #475569;
  font-size: 12px;
  font-weight: 950;
}

.rank-change-badge em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}

.rank-change-badge.is-up {
  border-color: rgba(5, 150, 105, 0.22);
  background: #ecfdf5;
}

.rank-change-badge.is-down {
  border-color: rgba(220, 38, 38, 0.2);
  background: #fff1f2;
}

.rank-change-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  max-width: 100%;
  padding: 0 9px;
  border: 1px solid #e6edf2;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.rank-change-chip.is-up {
  border-color: rgba(5, 150, 105, 0.22);
  background: #ecfdf5;
}

.rank-change-chip.is-down {
  border-color: rgba(220, 38, 38, 0.2);
  background: #fff1f2;
}

.rank-all-row__change {
  min-width: 86px;
}

body.theme-dark .advertiser-rank-summary,
body.theme-dark.rank-check-visual-body .advertiser-rank-summary {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.92) !important;
}

body.theme-dark .advertiser-rank-summary__grid article,
body.theme-dark .advertiser-rank-summary__changes li,
body.theme-dark .rank-change-badge,
body.theme-dark .rank-change-chip {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.34);
}

body.theme-dark .advertiser-rank-summary__changes {
  border-top-color: rgba(148, 163, 184, 0.16);
}

body.theme-dark .advertiser-rank-summary__grid strong,
body.theme-dark .advertiser-rank-summary__changes-head strong,
body.theme-dark .advertiser-rank-summary__changes li strong {
  color: #f8fafc;
}

@media (max-width: 980px) {
  .advertiser-rank-summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advertiser-rank-summary__changes li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .advertiser-rank-summary__changes li em {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .advertiser-rank-summary {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .advertiser-rank-summary__grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .advertiser-rank-summary__grid article {
    padding: 11px;
  }

  .advertiser-rank-summary__grid strong {
    font-size: 20px;
  }

  .advertiser-rank-summary__changes-head {
    display: block;
  }

  .rank-change-badge {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rank-change-badge em {
    grid-column: 1 / -1;
  }
}

/* Main hero and rank-check compact polish */
.image-dashboard-home .image-dashboard-compact-hero {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.78fr) minmax(430px, 1.22fr) !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 0 !important;
  margin-bottom: 14px !important;
  padding: 16px 18px !important;
  border-color: #e3ebe7 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 42px -34px rgba(15, 23, 42, 0.32) !important;
}

.image-dashboard-home .image-dashboard-compact-hero::before,
.image-dashboard-home .image-dashboard-compact-hero::after {
  display: none !important;
}

.image-dashboard-home .image-dashboard-compact-copy {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.image-dashboard-home .image-dashboard-compact-head {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
}

.image-dashboard-home .image-hero-kicker {
  margin: 0 !important;
  color: #047857 !important;
  font-size: 0.68rem !important;
  line-height: 1 !important;
}

.image-dashboard-home .image-dashboard-compact-badge {
  min-height: 22px !important;
  padding: 0 8px !important;
  border: 1px solid #d7eee2 !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
  font-size: 0.68rem !important;
}

.image-dashboard-home .image-dashboard-compact-hero h1 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 3px 7px !important;
  margin: 0 !important;
  font-size: clamp(1.32rem, 1.75vw, 1.72rem) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-name,
.image-dashboard-home .image-dashboard-hero-title {
  min-width: 0 !important;
}

.image-dashboard-home .image-dashboard-compact-lead {
  max-width: 42ch !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.82rem !important;
  line-height: 1.38 !important;
}

.image-dashboard-home .image-dashboard-hero-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin-top: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-stats span {
  min-height: 28px !important;
  padding: 0 8px !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.image-dashboard-home .image-dashboard-hero-stats svg,
.image-dashboard-home .image-dashboard-hero-stats .image-line-icon {
  width: 14px !important;
  height: 14px !important;
}

.image-dashboard-home .image-dashboard-compact-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "tools"
    "collect" !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools {
  grid-area: tools !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
  justify-content: flex-end !important;
  align-self: center !important;
  justify-self: end !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.image-dashboard-home .image-dashboard-hero-collect {
  grid-area: collect !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(142px, 172px) !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.image-dashboard-home .image-dashboard-hero-search-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 56px !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-keyword-stack,
.image-dashboard-home .image-dashboard-hero-keywords {
  min-width: 0 !important;
  margin: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-keyword-help {
  display: none !important;
}

.image-dashboard-home .image-dashboard-hero-keywords,
.image-dashboard-home .image-dashboard-hero-keywords textarea {
  height: 40px !important;
  min-height: 40px !important;
}

.image-dashboard-home .image-dashboard-hero-keywords textarea {
  padding: 9px 12px !important;
  border-radius: 11px !important;
  font-size: 0.84rem !important;
  line-height: 1.2 !important;
  resize: none !important;
}

.image-dashboard-home .image-dashboard-hero-submit {
  width: 56px !important;
  min-width: 56px !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 26px -20px rgba(4, 120, 87, 0.8) !important;
}

.image-dashboard-home .image-dashboard-hero-services {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-services .toggle-pill,
.image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
  width: 100% !important;
  min-width: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
  justify-content: center !important;
  min-height: 32px !important;
  padding: 0 8px !important;
  border-radius: 10px !important;
  font-size: 0.7rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tool-btn {
  --admin-tool-size: 34px !important;
  border-radius: 10px !important;
}

.rank-check-visual-body .image-dashboard-main {
  padding-top: 16px !important;
}

.rank-check-visual-body .image-page-hero--admin {
  min-height: 0 !important;
  margin-bottom: 10px !important;
  padding: 14px 16px !important;
  border-color: #e3ebe7 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 16px 38px -32px rgba(15, 23, 42, 0.3) !important;
}

.rank-check-visual-body .image-page-hero--admin h1 {
  margin: 0 !important;
  font-size: clamp(1.25rem, 1.8vw, 1.62rem) !important;
  line-height: 1.18 !important;
}

.rank-check-visual-body .image-page-hero--admin p {
  margin-bottom: 5px !important;
  font-size: 0.68rem !important;
}

.rank-check-visual-body .image-page-hero-copy > span {
  max-width: 58ch !important;
  color: #64748b !important;
  font-size: 0.82rem !important;
  line-height: 1.38 !important;
}

.rank-check-visual-body .rank-check-kakao-bar {
  margin: 0 0 10px !important;
  padding: 7px !important;
  border-radius: 12px !important;
}

.rank-check-visual-body .rank-check-page-stack {
  gap: 12px !important;
}

.rank-check-visual-body .rank-check-setup-panel,
.rank-check-visual-body .advertiser-rank-summary,
.rank-check-visual-body .rank-check-saved-board {
  border-radius: 14px !important;
  box-shadow: 0 16px 38px -34px rgba(15, 23, 42, 0.28) !important;
}

.rank-check-visual-body .rank-check-setup-panel {
  padding: 15px !important;
  background: #ffffff !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-check-form {
  gap: 10px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid {
  grid-template-columns: minmax(160px, 0.85fr) minmax(190px, 0.9fr) minmax(240px, 1.15fr) !important;
  gap: 10px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label {
  gap: 5px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label span {
  font-size: 10.5px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid input {
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-service-row {
  grid-template-columns: auto minmax(180px, 1fr) auto !important;
  gap: 8px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-service-toggle-group {
  gap: 5px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle span {
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  box-shadow: none !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle span::before {
  width: 13px !important;
  height: 13px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-form-hint {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button {
  min-width: 128px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

.rank-check-visual-body .rank-report-panel {
  margin-top: 10px !important;
  border-radius: 12px !important;
}

.rank-check-visual-body .rank-report-panel__head {
  min-height: 44px !important;
  padding: 10px 12px !important;
}

.rank-check-visual-body .rank-report-panel__head h4 {
  font-size: 13px !important;
}

.rank-check-visual-body .rank-report-panel__body {
  padding: 10px 12px 12px !important;
}

.rank-check-visual-body .rank-watch-stats {
  grid-template-columns: repeat(4, minmax(112px, 1fr)) minmax(260px, 1.25fr) !important;
  gap: 8px !important;
}

.rank-check-visual-body .rank-watch-stat {
  min-height: 82px !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  gap: 9px !important;
  padding: 12px !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px -26px rgba(15, 23, 42, 0.26) !important;
}

.rank-check-visual-body .rank-watch-stat__icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
}

.rank-check-visual-body .rank-watch-stat__icon::before {
  width: 14px !important;
  height: 14px !important;
}

.rank-check-visual-body .rank-watch-stat span,
.rank-check-visual-body .rank-watch-channel-copy span {
  font-size: 10.5px !important;
}

.rank-check-visual-body .rank-watch-stat strong {
  font-size: 18px !important;
}

.rank-check-visual-body .rank-watch-stat em {
  margin-top: 3px !important;
  font-size: 10.5px !important;
}

.rank-check-visual-body .rank-watch-stat--channels {
  min-height: 82px !important;
  padding: 12px !important;
}

.rank-check-visual-body .rank-watch-donut {
  width: 58px !important;
  height: 58px !important;
}

.rank-check-visual-body .advertiser-rank-summary {
  padding: 14px !important;
}

.rank-check-visual-body .advertiser-rank-summary .member-panel-head {
  margin-bottom: 10px !important;
}

.rank-check-visual-body .advertiser-rank-summary__grid {
  gap: 8px !important;
}

.rank-check-visual-body .advertiser-rank-summary__grid article {
  padding: 10px !important;
}

.rank-check-visual-body .advertiser-rank-summary__grid strong {
  font-size: 20px !important;
}

.rank-check-visual-body .advertiser-rank-summary__changes {
  margin-top: 9px !important;
  padding-top: 9px !important;
}

.rank-check-visual-body .advertiser-rank-summary__changes li {
  padding: 8px 10px !important;
}

.rank-check-visual-body .rank-check-saved-board {
  padding: 16px !important;
}

.rank-check-visual-body .rank-check-saved-board > .member-panel-head {
  margin-bottom: 10px !important;
}

.rank-check-visual-body .rank-watcher-toolbar {
  margin-bottom: 8px !important;
}

.rank-check-visual-body .rank-watcher-filter {
  min-height: 32px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
}

.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter.is-active {
  border-color: rgba(4, 120, 87, 0.34) !important;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%) !important;
  color: #065f46 !important;
  box-shadow: 0 10px 24px rgba(11, 122, 73, 0.14) !important;
}

.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter.is-active:hover {
  border-color: rgba(4, 120, 87, 0.46) !important;
  background: #bbf7d0 !important;
  color: #064e3b !important;
}

.rank-check-kakao-bar .rank-action-btn--ghost,
.rank-check-all-page .rank-action-btn--ghost {
  color: #334155 !important;
}

.rank-check-visual-body .rank-watcher-health-row {
  margin-bottom: 8px !important;
  padding: 8px 10px !important;
}

.rank-check-visual-body .rank-check-saved-board .watcher-list {
  gap: 8px !important;
}

.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
  min-height: 0 !important;
  padding: 10px !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.rank-check-visual-body .rank-position-strip {
  margin-top: 8px !important;
  padding: 9px !important;
  border-radius: 10px !important;
}

.rank-check-visual-body .rank-change-badge {
  margin-top: 6px !important;
  padding: 6px 8px !important;
}

.rank-check-visual-body .watcher-checked-at {
  margin-top: 5px !important;
}

.rank-check-visual-body .watcher-actions {
  margin-top: 2px !important;
}

.rank-check-visual-body .rank-watch-tip-row {
  margin-top: 10px !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
}

body.theme-dark .image-dashboard-home .image-dashboard-compact-hero,
body.theme-dark.rank-check-visual-body .image-page-hero--admin,
body.theme-dark.rank-check-visual-body .rank-check-setup-panel {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.94) !important;
}

body.theme-dark .image-dashboard-home .image-dashboard-hero-stats span {
  border-color: rgba(148, 163, 184, 0.18) !important;
  background: rgba(2, 6, 23, 0.32) !important;
  color: #e2e8f0 !important;
}

body.theme-dark.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter.is-active {
  border-color: rgba(52, 211, 153, 0.38) !important;
  background: rgba(6, 78, 59, 0.48) !important;
  color: #bbf7d0 !important;
}

body.theme-dark .rank-check-kakao-bar .rank-action-btn--ghost,
body.theme-dark.rank-check-all-page .rank-action-btn--ghost {
  color: #e2e8f0 !important;
}

@media (max-width: 1180px) {
  .image-dashboard-home .image-dashboard-compact-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .image-dashboard-home .image-dashboard-compact-actions {
    grid-template-areas: "tools" "collect" !important;
  }

  .rank-check-visual-body .rank-watch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 900px) {
  .image-dashboard-home .image-dashboard-hero-collect,
  .rank-check-visual-body .rank-check-setup-panel .rank-field-grid,
  .rank-check-visual-body .rank-check-setup-panel .rank-service-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button {
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  .image-dashboard-home .image-dashboard-compact-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
    padding: 9px !important;
  }

  .image-dashboard-home .image-dashboard-compact-hero h1 {
    font-size: clamp(1.06rem, 5.3vw, 1.32rem) !important;
  }

  .image-dashboard-home .image-dashboard-hero-stats {
    grid-column: 1 / -1 !important;
  }

  .image-dashboard-home .image-dashboard-hero-stats span {
    min-height: 24px !important;
    padding: 0 7px !important;
  }

  .image-dashboard-home .image-dashboard-compact-actions {
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "tools"
      "collect" !important;
    gap: 6px !important;
  }

  .image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-end !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools::-webkit-scrollbar {
    display: none !important;
  }

  .image-dashboard-home .image-dashboard-compact-hero .admin-hero-tool-btn {
    --admin-tool-size: 31px !important;
  }

  .image-dashboard-home .image-dashboard-hero-keywords,
  .image-dashboard-home .image-dashboard-hero-keywords textarea {
    height: 36px !important;
    min-height: 36px !important;
  }

  .image-dashboard-home .image-dashboard-hero-search-row {
    grid-template-columns: minmax(0, 1fr) 44px !important;
  }

  .image-dashboard-home .image-dashboard-hero-submit {
    width: 44px !important;
    min-width: 44px !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  .rank-check-visual-body .image-dashboard-main {
    padding-top: 10px !important;
  }

  .rank-check-visual-body .image-page-hero--admin {
    margin-bottom: 8px !important;
    padding: 11px 12px !important;
  }

  .rank-check-visual-body .image-page-hero-copy > span {
    display: none !important;
  }

  .rank-check-visual-body .rank-check-kakao-bar {
    margin-bottom: 8px !important;
  }

  .rank-check-visual-body .rank-check-setup-panel,
  .rank-check-visual-body .advertiser-rank-summary,
  .rank-check-visual-body .rank-check-saved-board {
    padding: 12px !important;
  }

  .rank-check-visual-body .rank-watch-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  .rank-check-visual-body .rank-watch-stat {
    min-height: 74px !important;
    padding: 10px !important;
  }

  .rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
  }

  .rank-check-visual-body .advertiser-rank-summary__grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
    padding: 12px !important;
  }

  .rank-check-visual-body .rank-check-saved-board .watcher-checked-at {
    padding-right: 0 !important;
  }

  .rank-check-visual-body .rank-check-saved-board .watcher-actions {
    position: static !important;
    right: auto !important;
  }
}

@media (max-width: 420px) {
  .image-dashboard-home .image-dashboard-compact-hero {
    padding: 8px !important;
  }

  .image-dashboard-home .image-dashboard-hero-stats span em {
    display: none !important;
  }

  .image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
    min-height: 27px !important;
    font-size: 0.64rem !important;
  }

  .rank-check-visual-body .rank-watch-stats,
  .rank-check-visual-body .advertiser-rank-summary__grid {
    grid-template-columns: 1fr !important;
  }
}

/* Final main hero guard: keep the landing and dashboard heroes stable. */
body.landing-page-body .landing-main {
  padding-top: clamp(10px, 1.8vw, 22px) !important;
}

body.landing-page-body .landing-hero {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px) !important;
  align-items: start !important;
  gap: clamp(16px, 2.6vw, 28px) !important;
  min-height: auto !important;
  padding: clamp(18px, 2.8vw, 34px) 0 clamp(22px, 3.2vw, 38px) !important;
}

body.landing-page-body .landing-hero-visual {
  position: absolute !important;
  left: clamp(-80px, -5vw, -28px) !important;
  top: 50% !important;
  width: min(42vw, 360px) !important;
  height: min(28vw, 250px) !important;
  transform: translateY(-50%) !important;
  opacity: 0.48 !important;
  pointer-events: none !important;
}

body.landing-page-body .landing-hero-copy {
  position: relative !important;
  z-index: 1 !important;
  min-width: 0 !important;
  max-width: 620px !important;
}

body.landing-page-body .landing-kicker {
  margin-bottom: 8px !important;
  padding: 5px 10px !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
}

body.landing-page-body .landing-hero h1 {
  margin-bottom: 10px !important;
  font-size: clamp(1.58rem, 3.25vw, 2.28rem) !important;
  line-height: 1.14 !important;
  letter-spacing: 0 !important;
}

body.landing-page-body .landing-lead {
  max-width: 34rem !important;
  margin-bottom: 16px !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

body.landing-page-body .landing-cta {
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
}

body.landing-page-body .landing-hero-points {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  max-width: 520px !important;
  margin-top: 14px !important;
}

body.landing-page-body .landing-hero-points li {
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 6px 8px !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.72rem !important;
  line-height: 1.22 !important;
  text-align: center !important;
  white-space: normal !important;
}

body.landing-page-body .landing-point-icon {
  flex: 0 0 16px !important;
}

body.landing-page-body .landing-login-card {
  align-self: start !important;
  width: 100% !important;
  max-width: 390px !important;
  justify-self: end !important;
  padding: clamp(18px, 2.4vw, 24px) !important;
  border-radius: 14px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.78fr) minmax(430px, 1.22fr) !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 0 !important;
  margin-bottom: 14px !important;
  padding: 16px 18px !important;
  border-color: #e3ebe7 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px -34px rgba(15, 23, 42, 0.32) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "tools"
    "collect" !important;
  align-items: stretch !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools {
  grid-area: tools !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
  justify-content: flex-end !important;
  justify-self: end !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect {
  grid-area: collect !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(142px, 172px) !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 960px) {
  body.landing-page-body .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
    gap: 18px !important;
  }

  body.landing-page-body .landing-hero-visual {
    width: min(38vw, 300px) !important;
    height: 220px !important;
    opacity: 0.32 !important;
  }
}

@media (max-width: 760px) {
  body.landing-page-body .landing-main {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.landing-page-body .landing-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px 0 14px !important;
  }

  body.landing-page-body .landing-hero-visual {
    display: none !important;
  }

  body.landing-page-body .landing-login-card {
    max-width: 100% !important;
    justify-self: stretch !important;
    margin-top: 0 !important;
    padding: 14px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
    padding: 9px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-actions {
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "tools"
      "collect" !important;
    gap: 6px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-end !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 640px) {
  body.landing-page-body .landing-hero h1 {
    margin-bottom: 6px !important;
    font-size: clamp(1.28rem, 6.2vw, 1.58rem) !important;
    line-height: 1.18 !important;
  }

  body.landing-page-body .landing-lead {
    margin-bottom: 10px !important;
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
  }

  body.landing-page-body .landing-cta {
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 0.82rem !important;
  }

  body.landing-page-body .landing-hero-points {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin-top: 9px !important;
  }

  body.landing-page-body .landing-hero-points li {
    min-height: 42px !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 6px 4px !important;
    font-size: 0.62rem !important;
  }
}

@media (max-width: 420px) {
  body.landing-page-body .landing-hero {
    gap: 8px !important;
    padding-top: 8px !important;
  }

  body.landing-page-body .landing-hero h1 {
    font-size: clamp(1.18rem, 6.5vw, 1.42rem) !important;
  }

  body.landing-page-body .landing-hero-points li {
    padding-left: 3px !important;
    padding-right: 3px !important;
    font-size: 0.58rem !important;
  }
}

/* Final user dashboard and rank-check page polish */
body.image-dashboard-body .image-dashboard-main.image-dashboard-home {
  max-width: 1380px !important;
  padding-top: 14px !important;
  padding-bottom: 24px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
  grid-template-columns: minmax(260px, 0.72fr) minmax(460px, 1.28fr) !important;
  gap: 12px !important;
  margin-bottom: 10px !important;
  padding: 13px 15px !important;
  border-radius: 14px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-copy {
  gap: 5px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero h1 {
  font-size: clamp(1.22rem, 1.58vw, 1.58rem) !important;
  line-height: 1.1 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-lead {
  font-size: 0.78rem !important;
  line-height: 1.32 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span {
  min-height: 25px !important;
  padding: 0 7px !important;
  font-size: 0.68rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-actions {
  gap: 6px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect {
  grid-template-columns: minmax(0, 1fr) minmax(132px, 160px) !important;
  gap: 6px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-keywords,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-keywords textarea {
  height: 36px !important;
  min-height: 36px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-search-row {
  grid-template-columns: minmax(0, 1fr) 50px !important;
  gap: 5px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-submit {
  width: 50px !important;
  min-width: 50px !important;
  height: 34px !important;
  min-height: 34px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
  min-height: 29px !important;
  border-radius: 9px !important;
  font-size: 0.66rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card {
  min-height: 104px !important;
  padding: 12px !important;
  border-radius: 12px !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 14px 34px -30px rgba(15, 23, 42, 0.28) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-head {
  margin-bottom: 7px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-head i {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-head span {
  font-size: 0.68rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card strong {
  font-size: clamp(1.32rem, 2.2vw, 1.88rem) !important;
  line-height: 1 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card p {
  margin-top: 7px !important;
  font-size: 0.66rem !important;
  line-height: 1.32 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-sparkline {
  right: 10px !important;
  bottom: 8px !important;
  width: 42% !important;
  height: 26px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px) !important;
  gap: 12px !important;
  align-items: start !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-primary,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-aside {
  gap: 10px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-home-main-grid,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-bottom-grid {
  gap: 10px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-system-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-tip-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-schedule-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-today-card {
  padding: 13px !important;
  border-radius: 12px !important;
  border-color: rgba(226, 232, 240, 0.94) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 16px 36px -34px rgba(15, 23, 42, 0.3) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-card-head {
  margin-bottom: 9px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-card-head h3 {
  font-size: 0.9rem !important;
  line-height: 1.18 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-card-head a,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-card-head span {
  font-size: 0.72rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-list {
  gap: 6px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-list--scroll:has(.image-recent-row:nth-child(5)) {
  --dashboard-recent-row-height: 54px !important;
  --dashboard-recent-row-gap: 6px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row {
  min-height: 54px !important;
  padding: 8px !important;
  border-radius: 9px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row .image-recent-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row strong {
  font-size: 0.8rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row em,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row i {
  font-size: 0.66rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-ring {
  min-height: 128px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-ring-visual {
  width: min(118px, 100%) !important;
  height: 126px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-ring-visual strong {
  font-size: 1.24rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-system-grid {
  gap: 0 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-system-grid div {
  min-height: 72px !important;
  padding: 10px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-calendar {
  gap: 4px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-calendar span,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-calendar b {
  min-height: 24px !important;
  border-radius: 7px !important;
  font-size: 0.66rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-schedule-note,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-schedule-task,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-today-list a {
  border-radius: 10px !important;
}

body.rank-check-visual-body .image-dashboard-main {
  max-width: 1380px !important;
  padding-top: 12px !important;
  padding-bottom: 24px !important;
}

body.rank-check-visual-body .image-page-hero--admin {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
}

body.rank-check-visual-body .image-page-hero--admin h1 {
  font-size: clamp(1.18rem, 1.55vw, 1.45rem) !important;
  line-height: 1.12 !important;
}

body.rank-check-visual-body .image-page-hero--admin p {
  margin-bottom: 4px !important;
  font-size: 0.64rem !important;
}

body.rank-check-visual-body .image-page-hero-copy > span {
  max-width: 64ch !important;
  font-size: 0.76rem !important;
  line-height: 1.32 !important;
}

body.rank-check-visual-body .rank-check-kakao-bar {
  justify-content: flex-end !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
  padding: 6px !important;
  border-radius: 11px !important;
}

body.rank-check-visual-body .rank-check-kakao-bar .rank-action-btn {
  min-height: 32px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 0.7rem !important;
}

body.rank-check-visual-body .rank-check-page-stack {
  gap: 10px !important;
}

body.rank-check-visual-body .rank-check-setup-panel,
body.rank-check-visual-body .advertiser-rank-summary,
body.rank-check-visual-body .rank-check-saved-board {
  border-radius: 12px !important;
  border-color: rgba(226, 232, 240, 0.94) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 16px 38px -34px rgba(15, 23, 42, 0.3) !important;
}

body.rank-check-visual-body .rank-check-setup-panel {
  padding: 12px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-check-form {
  gap: 8px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid {
  grid-template-columns: minmax(150px, 0.82fr) minmax(170px, 0.88fr) minmax(220px, 1.18fr) !important;
  gap: 8px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label {
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label span {
  font-size: 0.64rem !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid input {
  height: 36px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 0.78rem !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-service-row {
  grid-template-columns: auto minmax(160px, 1fr) auto !important;
  gap: 7px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-service-toggle-group {
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle span {
  min-height: 31px !important;
  padding: 0 9px !important;
  border-radius: 8px !important;
  font-size: 0.66rem !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-form-hint {
  font-size: 0.68rem !important;
  line-height: 1.3 !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button {
  min-width: 118px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  font-size: 0.7rem !important;
}

body.rank-check-visual-body .rank-report-panel {
  margin-top: 8px !important;
  border-radius: 10px !important;
}

body.rank-check-visual-body .rank-report-panel__head {
  min-height: 38px !important;
  padding: 8px 10px !important;
}

body.rank-check-visual-body .rank-report-panel__body {
  padding: 8px 10px 10px !important;
}

body.rank-check-visual-body .rank-watch-stats {
  grid-template-columns: repeat(4, minmax(104px, 1fr)) minmax(240px, 1.18fr) !important;
  gap: 7px !important;
}

body.rank-check-visual-body .rank-watch-stat {
  min-height: 74px !important;
  grid-template-columns: 26px minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 10px !important;
  border-radius: 10px !important;
}

body.rank-check-visual-body .rank-watch-stat__icon {
  width: 26px !important;
  height: 26px !important;
}

body.rank-check-visual-body .rank-watch-stat strong {
  font-size: 1rem !important;
}

body.rank-check-visual-body .rank-watch-stat span,
body.rank-check-visual-body .rank-watch-stat em,
body.rank-check-visual-body .rank-watch-channel-copy span {
  font-size: 0.64rem !important;
}

body.rank-check-visual-body .rank-watch-donut {
  width: 52px !important;
  height: 52px !important;
}

body.rank-check-visual-body .advertiser-rank-summary {
  padding: 12px !important;
}

body.rank-check-visual-body .advertiser-rank-summary .member-panel-head {
  margin-bottom: 8px !important;
}

body.rank-check-visual-body .advertiser-rank-summary__grid {
  gap: 7px !important;
}

body.rank-check-visual-body .advertiser-rank-summary__grid article {
  padding: 9px !important;
  border-radius: 9px !important;
}

body.rank-check-visual-body .advertiser-rank-summary__grid strong {
  font-size: 1.08rem !important;
}

body.rank-check-visual-body .rank-check-saved-board {
  padding: 13px !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head {
  margin-bottom: 8px !important;
}

body.rank-check-visual-body .rank-watcher-toolbar {
  gap: 8px !important;
  margin-bottom: 7px !important;
}

body.rank-check-visual-body .rank-watcher-filter-row {
  gap: 5px !important;
}

body.rank-check-visual-body .rank-watcher-filter {
  min-height: 29px !important;
  padding: 0 9px !important;
  border-radius: 8px !important;
  font-size: 0.66rem !important;
}

body.rank-check-visual-body .rank-watcher-health-row {
  margin-bottom: 7px !important;
  padding: 7px 9px !important;
  border-radius: 9px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-list {
  gap: 7px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
  padding: 9px !important;
  border-radius: 9px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-head,
body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row {
  gap: 7px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title {
  font-size: 0.82rem !important;
  line-height: 1.25 !important;
}

body.rank-check-visual-body .rank-position-strip {
  margin-top: 7px !important;
  padding: 8px !important;
  border-radius: 9px !important;
}

body.rank-check-visual-body .rank-position-strip--compact .rank-position-ranks {
  gap: 6px !important;
}

body.rank-check-visual-body .rank-position-hero {
  min-height: 0 !important;
  padding: 7px 8px !important;
  border-radius: 8px !important;
}

body.rank-check-visual-body .rank-position-hero__rank {
  font-size: 0.78rem !important;
}

body.rank-check-visual-body .rank-position-hero__num {
  font-size: 1rem !important;
}

body.rank-check-visual-body .watcher-actions-row__buttons {
  gap: 5px !important;
}

body.rank-check-visual-body .watcher-action-button,
body.rank-check-visual-body .watcher-delete-button,
body.rank-check-visual-body .watcher-open-button {
  min-height: 29px !important;
  padding: 0 9px !important;
  border-radius: 8px !important;
  font-size: 0.66rem !important;
}

body.rank-check-visual-body .rank-watch-tip-row {
  margin-top: 8px !important;
  padding: 8px 9px !important;
  border-radius: 9px !important;
}

body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-system-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-tip-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-schedule-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-today-card,
body.theme-dark.rank-check-visual-body .rank-check-setup-panel,
body.theme-dark.rank-check-visual-body .advertiser-rank-summary,
body.theme-dark.rank-check-visual-body .rank-check-saved-board {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.92) !important;
}

@media (max-width: 1180px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero,
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-layout,
  body.rank-check-visual-body .image-page-hero--admin {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 900px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect,
  body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid,
  body.rank-check-visual-body .rank-check-setup-panel .rank-service-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-home-main-grid,
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-bottom-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button {
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home {
    padding-top: 10px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
    padding: 9px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero h1 {
    font-size: clamp(1.05rem, 5.1vw, 1.28rem) !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card {
    min-height: 92px !important;
    padding: 10px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rank-check-visual-body .image-dashboard-main {
    padding-top: 9px !important;
  }

  body.rank-check-visual-body .image-page-hero--admin {
    padding: 10px !important;
  }

  body.rank-check-visual-body .image-page-hero-copy > span {
    display: none !important;
  }

  body.rank-check-visual-body .rank-check-kakao-bar {
    justify-content: flex-start !important;
    overflow-x: auto !important;
  }

  body.rank-check-visual-body .rank-check-setup-panel,
  body.rank-check-visual-body .advertiser-rank-summary,
  body.rank-check-visual-body .rank-check-saved-board {
    padding: 10px !important;
  }
}

@media (max-width: 520px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span em {
    display: none !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card p,
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-sparkline {
    display: none !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings,
  body.rank-check-visual-body .rank-watch-stats,
  body.rank-check-visual-body .advertiser-rank-summary__grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-watcher-toolbar {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  body.rank-check-visual-body .rank-watcher-filter-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Rank-check summary stats: extra compact pass */
body.rank-check-visual-body .rank-watch-stats {
  grid-template-columns: repeat(4, minmax(96px, 0.82fr)) minmax(220px, 1.14fr) !important;
  gap: 6px !important;
  margin: 0 !important;
}

body.rank-check-visual-body .rank-watch-stat {
  min-height: 58px !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  gap: 7px !important;
  align-items: center !important;
  padding: 8px 9px !important;
  border-radius: 9px !important;
  box-shadow: 0 10px 24px -24px rgba(15, 23, 42, 0.28) !important;
}

body.rank-check-visual-body .rank-watch-stat__icon {
  width: 22px !important;
  height: 22px !important;
  border-radius: 7px !important;
}

body.rank-check-visual-body .rank-watch-stat__icon::before {
  width: 12px !important;
  height: 12px !important;
}

body.rank-check-visual-body .rank-watch-stat span,
body.rank-check-visual-body .rank-watch-channel-copy span {
  font-size: 0.58rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watch-stat strong {
  margin-top: 2px !important;
  font-size: 0.96rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-watch-stat em {
  display: block !important;
  margin-top: 3px !important;
  font-size: 0.58rem !important;
  line-height: 1.18 !important;
  white-space: normal !important;
}

body.rank-check-visual-body .rank-watch-stat--time strong {
  font-size: 0.82rem !important;
  letter-spacing: 0 !important;
}

body.rank-check-visual-body .rank-watch-stat--channels {
  min-height: 58px !important;
  grid-template-columns: minmax(62px, 0.58fr) 42px minmax(120px, 1fr) !important;
  gap: 7px !important;
  padding: 8px 9px !important;
}

body.rank-check-visual-body .rank-watch-channel-copy {
  gap: 3px !important;
}

body.rank-check-visual-body .rank-watch-channel-copy strong {
  font-size: 0.82rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-watch-donut {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
}

body.rank-check-visual-body .rank-watch-channel-legend {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 3px !important;
  min-width: 0 !important;
}

body.rank-check-visual-body .rank-watch-channel-legend span {
  min-height: 22px !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 0 4px !important;
  border-radius: 7px !important;
  font-size: 0.56rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-watch-channel-legend i {
  width: 6px !important;
  height: 6px !important;
  flex: 0 0 6px !important;
}

body.rank-check-visual-body .rank-watch-channel-legend b {
  font-size: 0.58rem !important;
}

@media (max-width: 1180px) {
  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 520px) {
  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-watch-stat,
  body.rank-check-visual-body .rank-watch-stat--channels {
    min-height: 54px !important;
  }

  body.rank-check-visual-body .rank-watch-stat--channels {
    grid-template-columns: minmax(70px, 0.65fr) 38px minmax(0, 1fr) !important;
  }
}

/* Saved rank-check list: compact cards with stronger rank signals */
body.rank-check-visual-body .rank-check-saved-board {
  padding: 8px !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head {
  margin-bottom: 5px !important;
  padding-bottom: 6px !important;
  gap: 8px !important;
  border-bottom: 1px solid #edf2f7 !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head .panel-kicker {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head h3 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 0.93rem !important;
  line-height: 1.1 !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong {
  min-height: 24px !important;
  padding: 0 8px !important;
  border-radius: 7px !important;
  font-size: 0.8rem !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong span {
  margin-left: 1px !important;
  font-size: 0.58rem !important;
}

body.rank-check-visual-body .rank-watcher-toolbar {
  display: block !important;
  margin: 0 0 5px !important;
}

body.rank-check-visual-body .rank-watcher-view-tools,
body.rank-check-visual-body .rank-sort-control,
body.rank-check-visual-body .rank-view-button {
  display: none !important;
}

body.rank-check-visual-body .rank-watcher-filter-row {
  display: flex !important;
  gap: 4px !important;
  margin: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter {
  min-height: 25px !important;
  padding: 0 8px !important;
  border-radius: 7px !important;
  font-size: 0.62rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watcher-health-row {
  min-height: 0 !important;
  margin: 0 0 6px !important;
  padding: 5px 7px !important;
  gap: 6px !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-watcher-health-row span,
body.rank-check-visual-body .rank-watcher-health-row em {
  font-size: 0.58rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watcher-health-row b {
  font-size: 0.82rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watcher-refresh-button {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #047857 !important;
  font-size: 0.58rem !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-watch-tip-row {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-list {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
  min-height: 0 !important;
  padding: 7px !important;
  border-radius: 8px !important;
  border-color: rgba(226, 232, 240, 0.94) !important;
  box-shadow: 0 10px 24px -25px rgba(15, 23, 42, 0.32) !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-body {
  min-height: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-head {
  gap: 4px !important;
  padding-right: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-service-badge {
  min-height: 20px !important;
  padding: 0 7px !important;
  border-radius: 7px !important;
  font-size: 0.58rem !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title {
  min-height: 0 !important;
  margin-top: 0 !important;
  font-size: 0.74rem !important;
  line-height: 1.24 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title a {
  -webkit-line-clamp: 1 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip {
  margin-top: 4px !important;
  padding: 5px !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__row {
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__section-name {
  font-size: 0.62rem !important;
  line-height: 1.2 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-ranks {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero {
  min-height: 32px !important;
  padding: 4px 6px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__service,
body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__scope {
  font-size: 0.56rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__rank {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero:not(.rank-position-hero--overall) .rank-position-hero__num {
  color: #047857 !important;
  font-size: 1.36rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero--overall .rank-position-hero__num {
  color: #0f172a !important;
  font-size: 1.08rem !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__unit {
  margin-left: 1px !important;
  font-size: 0.58rem !important;
}

body.rank-check-visual-body .watcher-rank-snapshot {
  display: grid !important;
  grid-template-columns: minmax(76px, 0.72fr) minmax(0, 1.28fr) !important;
  gap: 4px !important;
  margin-top: 4px !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank,
body.rank-check-visual-body .watcher-rank-snapshot__change {
  min-width: 0 !important;
  min-height: 38px !important;
  display: grid !important;
  align-content: center !important;
  gap: 1px !important;
  padding: 5px 6px !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 8px !important;
  background: #fff !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank {
  border-color: rgba(4, 120, 87, 0.18) !important;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%) !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank span,
body.rank-check-visual-body .watcher-rank-snapshot__change span {
  color: #64748b !important;
  font-size: 0.54rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank strong {
  color: #047857 !important;
  font-size: 1.34rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank strong em {
  margin-left: 1px !important;
  color: #065f46 !important;
  font-size: 0.62rem !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change strong {
  overflow: hidden !important;
  color: #334155 !important;
  font-size: 0.68rem !important;
  font-weight: 950 !important;
  line-height: 1.08 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change em {
  overflow: hidden !important;
  color: #64748b !important;
  font-size: 0.56rem !important;
  font-style: normal !important;
  line-height: 1.12 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-up .watcher-rank-snapshot__change {
  border-color: rgba(34, 197, 94, 0.24) !important;
  background: #f0fdf4 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-up .watcher-rank-snapshot__change strong {
  color: #047857 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-down .watcher-rank-snapshot__change {
  border-color: rgba(239, 68, 68, 0.22) !important;
  background: #fff5f5 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-down .watcher-rank-snapshot__change strong {
  color: #b91c1c !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-flat .watcher-rank-snapshot__change {
  background: #f8fafc !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-author,
body.rank-check-visual-body .rank-check-saved-board .watcher-footnote,
body.rank-check-visual-body .rank-check-saved-board .watcher-fallback-note {
  margin-top: 4px !important;
  font-size: 0.6rem !important;
  line-height: 1.15 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at {
  margin-top: 4px !important;
  padding-right: 0 !important;
  font-size: 0.56rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions {
  margin-top: 4px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row {
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row__buttons {
  gap: 3px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-action-button,
body.rank-check-visual-body .rank-check-saved-board .watcher-delete-button,
body.rank-check-visual-body .rank-check-saved-board .watcher-open-button {
  min-height: 23px !important;
  padding: 0 6px !important;
  border-radius: 6px !important;
  font-size: 0.56rem !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-schedule-note {
  font-size: 0.54rem !important;
  line-height: 1.08 !important;
}

/* Saved rank-check list: image-reference dense card pass */
body.rank-check-visual-body .rank-check-saved-board {
  padding: 18px !important;
  border-radius: 12px !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head {
  margin-bottom: 14px !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head h3 {
  font-size: 1.72rem !important;
  font-weight: 950 !important;
  line-height: 1.12 !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong {
  min-height: 0 !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong span:first-child {
  color: #0f172a !important;
  font-size: 0.9rem !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong span:last-child {
  color: #0f172a !important;
  font-size: 1rem !important;
}

body.rank-check-visual-body .rank-watcher-toolbar {
  margin: 0 0 12px !important;
}

body.rank-check-visual-body .rank-watcher-filter-row {
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter {
  min-width: 126px !important;
  min-height: 46px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter.is-active {
  border-color: #16a34a !important;
  background: #effdf4 !important;
  color: #047857 !important;
}

body.rank-check-visual-body .rank-watcher-health-row {
  position: relative !important;
  align-items: center !important;
  min-height: 56px !important;
  margin: 0 0 12px !important;
  padding: 10px 16px !important;
  gap: 10px !important;
  border: 1px solid #dbe3ec !important;
  border-radius: 9px !important;
  background: #fbfcfe !important;
}

body.rank-check-visual-body .rank-watcher-health-row::before {
  content: "" !important;
  flex: 0 0 auto !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  background: #16a34a !important;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.14) !important;
  -webkit-mask: none !important;
  mask: none !important;
}

body.rank-check-visual-body .rank-watcher-health-row::after {
  content: "" !important;
  position: absolute !important;
  left: 25px !important;
  width: 13px !important;
  height: 8px !important;
  border-left: 3px solid #ffffff !important;
  border-bottom: 3px solid #ffffff !important;
  transform: rotate(-45deg) !important;
}

body.rank-check-visual-body .rank-watcher-health-row span,
body.rank-check-visual-body .rank-watcher-health-row em {
  font-size: 1rem !important;
  line-height: 1.2 !important;
}

body.rank-check-visual-body .rank-watcher-health-row span {
  color: #111827 !important;
  font-weight: 950 !important;
}

body.rank-check-visual-body .rank-watcher-health-row b {
  color: #047857 !important;
  font-size: 1.12rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watcher-health-row em {
  color: #475569 !important;
  font-weight: 750 !important;
}

body.rank-check-visual-body .rank-watcher-refresh-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin-left: auto !important;
  color: #047857 !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-list {
  gap: 10px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
  position: relative !important;
  min-height: 0 !important;
  padding: 14px !important;
  border-radius: 9px !important;
  border-color: #dbe3ec !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-body {
  display: flex !important;
  min-height: 0 !important;
  flex-direction: column !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-head {
  gap: 7px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-width: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-badges {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  min-width: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-keyword {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-service-badge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 0.92rem !important;
  font-weight: 950 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank {
  display: inline-flex !important;
  align-items: baseline !important;
  flex: 0 0 auto !important;
  color: #047857 !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank span {
  font-size: 2.1rem !important;
  letter-spacing: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank em {
  margin-left: 2px !important;
  color: #111827 !important;
  font-size: 1.05rem !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank.is-empty span {
  color: #64748b !important;
  font-size: 1rem !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title {
  min-height: 0 !important;
  margin: 0 !important;
  color: #111827 !important;
  font-size: 1.1rem !important;
  font-weight: 950 !important;
  line-height: 1.45 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title a {
  -webkit-line-clamp: 2 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-author,
body.rank-check-visual-body .rank-check-saved-board .watcher-fallback-note {
  display: block !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-footnote {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip {
  margin-top: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__row {
  display: block !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__section {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__eyebrow,
body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__exposure {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__section-name {
  overflow: hidden !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .watcher-rank-snapshot {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 0 !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid #dbe3ec !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank,
body.rank-check-visual-body .watcher-rank-snapshot__change {
  min-height: 62px !important;
  padding: 0 10px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change {
  padding-left: 14px !important;
  border-left: 1px solid #dbe3ec !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank span,
body.rank-check-visual-body .watcher-rank-snapshot__change span {
  color: #64748b !important;
  font-size: 0.88rem !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank strong {
  display: inline-flex !important;
  align-items: baseline !important;
  flex: 0 0 auto !important;
  color: #047857 !important;
  font-size: 1.55rem !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank strong em {
  font-size: 0.95rem !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change strong {
  color: #111827 !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-up .watcher-rank-snapshot__change strong {
  color: #047857 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-down .watcher-rank-snapshot__change strong {
  color: #b91c1c !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change em {
  color: #475569 !important;
  font-size: 0.88rem !important;
  line-height: 1.2 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #475569 !important;
  font-size: 0.9rem !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at__label {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions {
  position: static !important;
  width: 100% !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid #dbe3ec !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row__buttons {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
  gap: 6px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-action-button,
body.rank-check-visual-body .rank-check-saved-board .watcher-delete-button,
body.rank-check-visual-body .rank-check-saved-board .watcher-open-button {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  font-size: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-action-button span,
body.rank-check-visual-body .rank-check-saved-board .watcher-delete-button span,
body.rank-check-visual-body .rank-check-saved-board .watcher-open-button span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-schedule-note {
  display: none !important;
}

@media (max-width: 1320px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .watcher-rank-snapshot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}

/* Final operator dashboard mobile pass after bundled responsive rules */
@media (max-width: 900px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-head {
    min-height: 34px !important;
    padding-left: 76px !important;
    margin-bottom: 8px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats {
    min-height: 74px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin-top: 10px !important;
    padding: 0 8px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span {
    min-height: 58px !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 4px !important;
    padding: 0 5px !important;
    text-align: center !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span + span {
    border-left: 1px solid rgba(228, 233, 238, 0.96) !important;
    border-top: 0 !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats .image-line-icon {
    display: none !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span em {
    display: block !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span b {
    display: block !important;
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1 !important;
  }
}

/* Sidebar account actions + full-width workspace pass */
body.image-dashboard-body .image-dashboard-shell {
  grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 14px !important;
  padding-right: 14px !important;
}

body.image-dashboard-body .image-dashboard-main,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home,
body.rank-check-visual-body .image-dashboard-main {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.rank-check-visual-body .image-dashboard-main {
  padding-left: clamp(18px, 2vw, 28px) !important;
  padding-right: clamp(18px, 2vw, 28px) !important;
}

body.rank-check-visual-body .rank-check-page-wrap,
body.rank-check-visual-body .rank-check-page-stack,
body.rank-check-visual-body .rank-check-setup-panel,
body.rank-check-visual-body .advertiser-rank-summary,
body.rank-check-visual-body .rank-check-saved-board {
  width: 100% !important;
  max-width: none !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user {
  gap: 7px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
  width: 78px !important;
  display: grid !important;
  grid-template-columns: repeat(2, 32px) !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 2px auto 0 !important;
  padding: 7px !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-radius: 14px !important;
  background: rgba(248, 251, 249, 0.96) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action {
  position: relative !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid rgba(226, 232, 240, 0.96) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #64748b !important;
  text-decoration: none !important;
  box-shadow: 0 10px 22px -20px rgba(15, 23, 42, 0.42) !important;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action:hover,
body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action.is-active {
  border-color: rgba(8, 120, 74, 0.24) !important;
  background: #effaf4 !important;
  color: #08784a !important;
  transform: translateY(-1px) !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action:active {
  transform: scale(0.96) !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action-logout {
  color: #b42318 !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action-logout:hover {
  border-color: rgba(180, 35, 24, 0.2) !important;
  background: #fff5f4 !important;
  color: #b42318 !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action .image-line-icon {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2.2 !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action span {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 8px) !important;
  z-index: 4 !important;
  width: max-content !important;
  max-width: 140px !important;
  height: auto !important;
  min-height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 9px !important;
  clip: auto !important;
  overflow: visible !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-radius: 8px !important;
  background: rgba(15, 23, 42, 0.94) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, 4px) !important;
  transition: opacity 0.16s ease, transform 0.16s ease !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 8px;
  height: 8px;
  background: rgba(15, 23, 42, 0.94);
  transform: translate(-50%, -4px) rotate(45deg);
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action:hover span,
body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action:focus-visible span {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}

@media (max-width: 1180px) and (min-width: 961px) {
  body.image-dashboard-body .image-dashboard-shell {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding-right: 12px !important;
  }
}

@media (max-width: 900px) {
  body.image-dashboard-body .image-dashboard-shell {
    display: block !important;
    padding: 0 !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user {
    width: 100% !important;
    align-items: stretch !important;
    justify-items: stretch !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-main {
    justify-items: start !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-meta {
    justify-items: start !important;
    text-align: left !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 8px !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action {
    width: 100% !important;
    height: 40px !important;
    min-width: 0 !important;
    min-height: 40px !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    justify-items: start !important;
    gap: 8px !important;
    padding: 0 10px !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action span {
    position: static !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action span::after {
    display: none !important;
  }

  body.rank-check-visual-body .image-dashboard-main {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Sidebar quick-menu descriptive tooltips */
@media (min-width: 901px) {
  body.image-dashboard-body .image-sidebar {
    overflow: visible !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user {
    position: relative !important;
    overflow: visible !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
    overflow: visible !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip] {
    isolation: isolate !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    z-index: 30;
    width: max-content;
    max-width: 190px;
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    box-shadow: 0 18px 32px -20px rgba(15, 23, 42, 0.55);
    opacity: 0;
    pointer-events: none;
    transform: translate(0, -50%) scale(0.98);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]::before {
    content: "";
    position: absolute;
    left: calc(100% + 7px);
    top: 50%;
    z-index: 31;
    width: 9px;
    height: 9px;
    border-left: 1px solid rgba(15, 23, 42, 0.12);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translate(0, -50%) rotate(45deg);
    transition: opacity 0.16s ease;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:hover::after,
  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:hover::before,
  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:focus-visible::before {
    opacity: 1;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:hover span,
  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:focus-visible span {
    opacity: 0 !important;
    transform: translate(-50%, 4px) !important;
  }
}

/* Dashboard and rank-check responsive grid correction */
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-ring {
  min-width: 0 !important;
}

@media (max-width: 960px) {
  .site-menu-toggle {
    position: relative;
    z-index: 10002;
    pointer-events: auto !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    touch-action: manipulation;
  }

  body.is-site-menu-open .site-header {
    z-index: 10002;
  }

  .site-mobile-menu:not(.is-open) {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  .site-mobile-menu.is-open {
    display: block !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  .site-mobile-menu.is-open .site-mobile-menu-backdrop,
  .site-mobile-menu.is-open .site-mobile-menu-panel {
    pointer-events: auto !important;
  }

  .site-mobile-menu-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .site-mobile-menu-panel {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.image-dashboard-body .image-dashboard-shell {
    display: block !important;
    grid-template-columns: 1fr !important;
    padding: 0 !important;
  }

  body.image-dashboard-body .image-mobile-menu-button {
    display: inline-flex !important;
    position: fixed !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 1600 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
    color: #0f172a !important;
    opacity: 1 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12) !important;
  }

  body.image-dashboard-body .image-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 1500 !important;
    width: min(88vw, 320px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    transform: translate3d(-105%, 0, 0) !important;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    background: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.image-dashboard-body.is-sidebar-open .image-sidebar {
    transform: translate3d(0, 0, 0) !important;
    pointer-events: auto !important;
  }

  body.image-dashboard-body .image-sidebar-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1450 !important;
    display: block !important;
    border: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(15, 23, 42, 0.32) !important;
    transition: opacity 200ms ease, visibility 200ms ease !important;
  }

  body.image-dashboard-body.is-sidebar-open .image-sidebar-backdrop {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.image-dashboard-body.is-sidebar-open {
    overflow: hidden !important;
  }

  body.image-dashboard-body .image-sidebar *,
  body.image-dashboard-body .image-sidebar *::before,
  body.image-dashboard-body .image-sidebar *::after {
    filter: none !important;
    text-shadow: none !important;
  }
}

@media (max-width: 900px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-ring {
    min-height: 128px !important;
    padding: 8px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-ring-visual {
    width: min(118px, 100%) !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto !important;
  }

  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.rank-check-visual-body .rank-watch-stat {
    min-width: 0 !important;
    min-height: 92px !important;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  body.rank-check-visual-body .rank-watch-stat__icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
  }

  body.rank-check-visual-body .rank-watch-stat span {
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  body.rank-check-visual-body .rank-watch-stat strong {
    font-size: clamp(19px, 5.4vw, 24px) !important;
    line-height: 1.05 !important;
    word-break: keep-all !important;
  }

  body.rank-check-visual-body .rank-watch-stat em {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  body.rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
    min-height: 86px !important;
    grid-template-columns: minmax(0, 0.82fr) 58px minmax(0, 1.18fr) !important;
    align-items: center !important;
  }

  body.rank-check-visual-body .rank-watch-donut {
    width: 54px !important;
    height: 54px !important;
  }

  body.rank-check-visual-body .rank-watch-channel-legend {
    gap: 4px !important;
  }

  body.rank-check-visual-body .rank-watch-channel-legend span {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid article {
    min-width: 0 !important;
    min-height: 76px !important;
    padding: 9px 6px !important;
    border-radius: 10px !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid span {
    overflow: hidden !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid strong {
    font-size: clamp(18px, 5vw, 22px) !important;
    line-height: 1 !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid em {
    overflow: hidden !important;
    font-size: 9px !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* Saved rank-check cards: keep two cards per mobile row */
@media (max-width: 900px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
    min-width: 0 !important;
    padding: 10px !important;
    border-radius: 10px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-card-top {
    gap: 6px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-service-badge {
    min-height: 24px !important;
    padding: 0 8px !important;
    font-size: 0.82rem !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank span {
    font-size: 1.74rem !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank em {
    font-size: 0.86rem !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-title {
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
  }
}

/* Expanded sidebar with collection and advertiser controls */
body.image-dashboard-body {
  --operator-sidebar-width: 252px;
}

body.image-dashboard-body .image-dashboard-shell {
  grid-template-columns: var(--operator-sidebar-width) minmax(0, 1fr) !important;
  gap: 16px !important;
  padding-right: 16px !important;
}

body.image-dashboard-body .image-sidebar {
  width: var(--operator-sidebar-width) !important;
  padding: 18px 14px 14px !important;
  gap: 12px !important;
  overflow: visible !important;
}

body.image-dashboard-body .image-sidebar-brand-row {
  min-height: 46px !important;
}

body.image-dashboard-body .image-sidebar-brand {
  width: 100% !important;
  height: 46px !important;
  display: flex !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  padding: 0 8px !important;
}

body.image-dashboard-body .image-sidebar-brand span {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 auto !important;
}

body.image-dashboard-body .image-sidebar-brand strong {
  display: block !important;
  overflow: hidden !important;
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.image-dashboard-body .image-sidebar-brand em {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 20px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: #effaf4 !important;
  color: #08784a !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

body.image-dashboard-body .image-sidebar-scroll {
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
  padding-right: 2px !important;
  overflow-y: auto !important;
}

body.image-dashboard-body .image-sidebar-workbench {
  display: grid !important;
  gap: 8px !important;
  min-width: 0 !important;
  padding: 0 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-panel {
  order: 2 !important;
  display: grid !important;
  gap: 8px !important;
  padding: 10px !important;
  border: 1px solid rgba(8, 120, 74, 0.16) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #f5fcf8 0%, #ffffff 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 30px -26px rgba(15, 23, 42, 0.35) !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-promo {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-promo > span {
  width: 28px !important;
  height: 28px !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  border-radius: 10px !important;
  background: #e8f7ee !important;
  color: #08784a !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-promo .image-line-icon {
  width: 15px !important;
  height: 15px !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-head strong {
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-field {
  gap: 5px !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-keyword-editor {
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-sidebar-workbench #keywords {
  min-height: 64px !important;
  max-height: 96px !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  resize: vertical !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-inline-button {
  min-height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(8, 120, 74, 0.16) !important;
  border-radius: 9px !important;
  background: #f8fbf9 !important;
  color: #08784a !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-service-toggles {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-workbench .image-collect-panel .image-service-toggles .toggle-pill span {
  min-height: 32px !important;
  padding: 0 4px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

body.image-dashboard-body .image-sidebar-workbench .payment-collect-note {
  margin: 0 !important;
  padding: 7px !important;
  border-radius: 9px !important;
  font-size: 10px !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-start-button {
  min-height: 36px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #0c8250, #076d43) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-panel {
  order: 1 !important;
  display: grid !important;
  gap: 6px !important;
  padding: 9px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 12px 26px -24px rgba(15, 23, 42, 0.42) !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-sidebar-nav-label {
  display: block !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 36px !important;
  gap: 6px !important;
  align-items: center !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-select-form select {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 28px 0 9px !important;
  border: 1px solid rgba(203, 213, 225, 0.95) !important;
  border-radius: 9px !important;
  background-color: #fff !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-manage-btn {
  width: 36px !important;
  height: 36px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(8, 120, 74, 0.18) !important;
  border-radius: 9px !important;
  background: #effaf4 !important;
  color: #08784a !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-manage-btn .image-line-icon {
  width: 17px !important;
  height: 17px !important;
}

body.image-dashboard-body .image-sidebar-nav,
body.image-dashboard-body .image-sidebar-nav.is-admin-nav {
  gap: 4px !important;
}

body.image-dashboard-body .image-sidebar-nav a,
body.image-dashboard-body .image-sidebar-nav.is-admin-nav a {
  min-height: 44px !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  justify-items: start !important;
  align-content: center !important;
  gap: 8px !important;
  padding: 6px 9px !important;
  text-align: left !important;
}

body.image-dashboard-body .image-sidebar-nav a > span:not(.image-nav-icon) {
  max-width: none !important;
  font-size: 13px !important;
  text-align: left !important;
}

body.image-dashboard-body .image-sidebar-nav a .image-nav-icon {
  width: 30px !important;
  height: 30px !important;
}

body.image-dashboard-body .image-sidebar-nav a .image-line-icon {
  width: 18px !important;
  height: 18px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
  width: 100% !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action {
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 1180px) {
  body.image-dashboard-body {
    --operator-sidebar-width: 236px;
  }
}

@media (max-width: 900px) {
  body.image-dashboard-body {
    --operator-sidebar-width: min(336px, 88vw);
  }

  body.image-dashboard-body .image-dashboard-shell {
    display: block !important;
    padding: 0 !important;
  }

  body.image-dashboard-body .image-sidebar {
    width: var(--operator-sidebar-width) !important;
    padding: 18px 14px 16px !important;
  }

  body.image-dashboard-body .image-sidebar-scroll {
    gap: 10px !important;
  }

  body.image-dashboard-body .image-sidebar-brand strong,
  body.image-dashboard-body .image-sidebar-brand em {
    display: inline-flex !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Rank month calendar: all saved checks scope + Excel export button */
.rank-check-visual-body .rank-month-scope-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.rank-check-visual-body .rank-month-nav .rank-month-export-button {
  width: auto;
  min-width: max-content;
  height: 34px;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #047857;
  background: #ecfdf5;
}

.rank-check-visual-body .rank-month-nav .rank-month-export-button:hover {
  background: #059669;
  color: #fff;
}

.rank-check-visual-body .rank-month-nav .rank-month-export-button .rank-action-btn__excel-icon {
  width: 14px;
  height: 14px;
}

body.theme-dark .rank-check-visual-body .rank-month-scope-label,
body.theme-dark.rank-check-visual-body .rank-month-scope-label {
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(30, 64, 175, 0.24);
  color: #bfdbfe;
}

body.theme-dark .rank-check-visual-body .rank-month-nav .rank-month-export-button,
body.theme-dark.rank-check-visual-body .rank-month-nav .rank-month-export-button {
  background: rgba(6, 78, 59, 0.46);
  color: #a7f3d0;
}

@media (max-width: 680px) {
  .rank-check-visual-body .rank-month-nav {
    flex-wrap: wrap;
    border-radius: 22px;
  }

  .rank-check-visual-body .rank-month-nav .rank-month-export-button {
    flex: 1 1 100%;
  }
}

/* Responsive and late-stage interface patches.
   This file is appended after app.css by AssetDelivery. */

/* Landing hero compact polish */
.landing-main {
  padding-top: clamp(10px, 1.8vw, 22px) !important;
}

.landing-hero {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px) !important;
  align-items: center !important;
  gap: clamp(16px, 2.6vw, 28px) !important;
  min-height: auto !important;
  padding: clamp(18px, 2.8vw, 34px) 0 clamp(22px, 3.2vw, 38px) !important;
}

.landing-hero-visual {
  left: clamp(-80px, -5vw, -28px) !important;
  top: 50% !important;
  width: min(42vw, 360px) !important;
  height: min(28vw, 250px) !important;
  transform: translateY(-50%) !important;
  opacity: 0.55 !important;
}

.landing-hero-copy {
  min-width: 0 !important;
  max-width: 620px !important;
}

.landing-kicker {
  margin-bottom: 8px !important;
  padding: 5px 10px !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
}

.landing-hero h1 {
  margin-bottom: 10px !important;
  font-size: clamp(1.58rem, 3.25vw, 2.28rem) !important;
  line-height: 1.14 !important;
  letter-spacing: 0 !important;
}

.landing-lead {
  max-width: 34rem !important;
  margin-bottom: 16px !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

.landing-cta {
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
}

.landing-hero-points {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  max-width: 520px !important;
  margin-top: 14px !important;
}

.landing-hero-points li {
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 6px 8px !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.72rem !important;
  line-height: 1.22 !important;
  text-align: center !important;
  white-space: normal !important;
}

.landing-point-icon {
  flex: 0 0 16px !important;
}

.landing-login-card {
  align-self: center !important;
  width: 100% !important;
  max-width: 390px !important;
  justify-self: end !important;
  padding: clamp(18px, 2.4vw, 24px) !important;
  border-radius: 14px !important;
}

@media (max-width: 960px) {
  .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
    gap: 18px !important;
  }

  .landing-hero-visual {
    width: min(38vw, 300px) !important;
    height: 220px !important;
    opacity: 0.36 !important;
  }
}

@media (max-width: 760px) {
  .image-dashboard-body .image-dashboard-main {
    padding: 14px 12px 28px;
  }

  .image-dashboard-body .image-hero-card,
  .image-dashboard-body .image-page-hero,
  .image-dashboard-body .image-hero-card.image-expert-hero,
  .image-subpage-body .image-page-hero--admin,
  .admin-page .image-page-hero--admin {
    min-height: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    padding: 14px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 244, 0.94)) !important;
  }

  .image-dashboard-body .image-hero-card::before,
  .image-dashboard-body .image-page-hero::before {
    opacity: 0 !important;
  }

  .image-dashboard-body .image-hero-kicker,
  .image-dashboard-body .image-page-hero p {
    margin-bottom: 4px !important;
    font-size: 0.66rem !important;
    line-height: 1.2 !important;
  }

  .image-dashboard-body .image-hero-card h1,
  .image-dashboard-body .image-page-hero h1 {
    margin-bottom: 5px !important;
    font-size: clamp(1.25rem, 5.8vw, 1.55rem) !important;
    line-height: 1.16 !important;
    letter-spacing: 0 !important;
  }

  .image-dashboard-body .image-hero-copy > span,
  .image-dashboard-body .image-page-hero-copy > span {
    display: block !important;
    max-width: 100% !important;
    font-size: 0.78rem !important;
    line-height: 1.42 !important;
  }

  .image-page-hero--admin .admin-hero-tools,
  .image-expert-hero .admin-hero-tools,
  .home-top .admin-hero-tools {
    justify-self: start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 4px !important;
    gap: 4px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  .image-page-hero--admin .admin-hero-tools::-webkit-scrollbar,
  .image-expert-hero .admin-hero-tools::-webkit-scrollbar,
  .home-top .admin-hero-tools::-webkit-scrollbar {
    display: none;
  }

  .admin-hero-tool-btn {
    --admin-tool-size: 38px;
    border-radius: 10px !important;
  }

  .landing-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .landing-hero-visual {
    display: none !important;
  }

  .landing-login-card {
    max-width: 100% !important;
    justify-self: stretch !important;
  }
}

@media (max-width: 640px) {
  .landing-main {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-bottom: 18px !important;
  }

  .landing-hero {
    min-height: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px 0 14px !important;
  }

  .landing-hero-visual {
    display: none !important;
  }

  .landing-hero-copy {
    min-width: 0 !important;
    padding: 0 !important;
  }

  .landing-kicker {
    margin-bottom: 6px !important;
    padding: 4px 9px !important;
    font-size: 0.68rem !important;
  }

  .landing-hero h1 {
    margin-bottom: 6px !important;
    max-width: 100% !important;
    font-size: clamp(1.28rem, 6.2vw, 1.58rem) !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere !important;
  }

  .landing-hero h1 br {
    display: initial !important;
  }

  .landing-lead {
    max-width: 36rem !important;
    margin-bottom: 10px !important;
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
  }

  .landing-cta {
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 0.82rem !important;
  }

  .landing-hero-points {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin-top: 9px !important;
  }

  .landing-hero-points li {
    min-height: 42px !important;
    min-width: 0 !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 6px 4px !important;
    border-radius: 8px !important;
    font-size: 0.62rem !important;
    line-height: 1.22 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .landing-point-icon {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
    font-size: 11px !important;
  }

  .landing-login-card {
    margin-top: 0 !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 420px) {
  .image-dashboard-body .image-dashboard-main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .image-dashboard-body .image-hero-card,
  .image-dashboard-body .image-page-hero,
  .image-dashboard-body .image-hero-card.image-expert-hero {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  .landing-hero {
    gap: 8px !important;
    padding-top: 8px !important;
  }

  .landing-hero h1 {
    font-size: clamp(1.18rem, 6.5vw, 1.42rem) !important;
  }

  .landing-hero-points li {
    min-width: 0 !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
    font-size: 0.58rem !important;
  }
}

/* Rank change summary and advertiser report */
.advertiser-rank-summary {
  padding: 20px !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px -30px rgba(15, 23, 42, 0.28) !important;
}

.advertiser-rank-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.advertiser-rank-summary__grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e6edf2;
  border-radius: 8px;
  background: #f8fafc;
}

.advertiser-rank-summary__grid span,
.advertiser-rank-summary__changes-head span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.advertiser-rank-summary__grid strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 24px;
  line-height: 1.1;
}

.advertiser-rank-summary__grid em {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.advertiser-rank-summary__grid article.is-up {
  border-color: rgba(5, 150, 105, 0.2);
  background: #ecfdf5;
}

.advertiser-rank-summary__grid article.is-up strong,
.rank-change-badge.is-up strong,
.rank-change-chip.is-up {
  color: #047857;
}

.advertiser-rank-summary__grid article.is-down {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fff1f2;
}

.advertiser-rank-summary__grid article.is-down strong,
.rank-change-badge.is-down strong,
.rank-change-chip.is-down {
  color: #be123c;
}

.advertiser-rank-summary__changes {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e6edf2;
}

.advertiser-rank-summary__changes-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.advertiser-rank-summary__changes-head strong {
  color: #0f172a;
  font-size: 14px;
}

.advertiser-rank-summary__changes ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.advertiser-rank-summary__changes li {
  display: grid;
  grid-template-columns: auto minmax(110px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #ffffff;
}

.advertiser-rank-summary__changes li strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advertiser-rank-summary__changes li em,
.advertiser-rank-summary__empty {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.rank-change-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid #e6edf2;
  border-radius: 8px;
  background: #f8fafc;
}

.rank-change-badge span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.rank-change-badge strong {
  color: #475569;
  font-size: 12px;
  font-weight: 950;
}

.rank-change-badge em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}

.rank-change-badge.is-up {
  border-color: rgba(5, 150, 105, 0.22);
  background: #ecfdf5;
}

.rank-change-badge.is-down {
  border-color: rgba(220, 38, 38, 0.2);
  background: #fff1f2;
}

.rank-change-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  max-width: 100%;
  padding: 0 9px;
  border: 1px solid #e6edf2;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.rank-change-chip.is-up {
  border-color: rgba(5, 150, 105, 0.22);
  background: #ecfdf5;
}

.rank-change-chip.is-down {
  border-color: rgba(220, 38, 38, 0.2);
  background: #fff1f2;
}

.rank-all-row__change {
  min-width: 86px;
}

body.theme-dark .advertiser-rank-summary,
body.theme-dark.rank-check-visual-body .advertiser-rank-summary {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.92) !important;
}

body.theme-dark .advertiser-rank-summary__grid article,
body.theme-dark .advertiser-rank-summary__changes li,
body.theme-dark .rank-change-badge,
body.theme-dark .rank-change-chip {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.34);
}

body.theme-dark .advertiser-rank-summary__changes {
  border-top-color: rgba(148, 163, 184, 0.16);
}

body.theme-dark .advertiser-rank-summary__grid strong,
body.theme-dark .advertiser-rank-summary__changes-head strong,
body.theme-dark .advertiser-rank-summary__changes li strong {
  color: #f8fafc;
}

@media (max-width: 980px) {
  .advertiser-rank-summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advertiser-rank-summary__changes li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .advertiser-rank-summary__changes li em {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .advertiser-rank-summary {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .advertiser-rank-summary__grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .advertiser-rank-summary__grid article {
    padding: 11px;
  }

  .advertiser-rank-summary__grid strong {
    font-size: 20px;
  }

  .advertiser-rank-summary__changes-head {
    display: block;
  }

  .rank-change-badge {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rank-change-badge em {
    grid-column: 1 / -1;
  }
}

/* Main hero and rank-check compact polish */
.image-dashboard-home .image-dashboard-compact-hero {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.78fr) minmax(430px, 1.22fr) !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 0 !important;
  margin-bottom: 14px !important;
  padding: 16px 18px !important;
  border-color: #e3ebe7 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 42px -34px rgba(15, 23, 42, 0.32) !important;
}

.image-dashboard-home .image-dashboard-compact-hero::before,
.image-dashboard-home .image-dashboard-compact-hero::after {
  display: none !important;
}

.image-dashboard-home .image-dashboard-compact-copy {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.image-dashboard-home .image-dashboard-compact-head {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
}

.image-dashboard-home .image-hero-kicker {
  margin: 0 !important;
  color: #047857 !important;
  font-size: 0.68rem !important;
  line-height: 1 !important;
}

.image-dashboard-home .image-dashboard-compact-badge {
  min-height: 22px !important;
  padding: 0 8px !important;
  border: 1px solid #d7eee2 !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
  font-size: 0.68rem !important;
}

.image-dashboard-home .image-dashboard-compact-hero h1 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 3px 7px !important;
  margin: 0 !important;
  font-size: clamp(1.32rem, 1.75vw, 1.72rem) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-name,
.image-dashboard-home .image-dashboard-hero-title {
  min-width: 0 !important;
}

.image-dashboard-home .image-dashboard-compact-lead {
  max-width: 42ch !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.82rem !important;
  line-height: 1.38 !important;
}

.image-dashboard-home .image-dashboard-hero-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin-top: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-stats span {
  min-height: 28px !important;
  padding: 0 8px !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.image-dashboard-home .image-dashboard-hero-stats svg,
.image-dashboard-home .image-dashboard-hero-stats .image-line-icon {
  width: 14px !important;
  height: 14px !important;
}

.image-dashboard-home .image-dashboard-compact-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "tools"
    "collect" !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools {
  grid-area: tools !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
  justify-content: flex-end !important;
  align-self: center !important;
  justify-self: end !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.image-dashboard-home .image-dashboard-hero-collect {
  grid-area: collect !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(142px, 172px) !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.image-dashboard-home .image-dashboard-hero-search-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 56px !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-keyword-stack,
.image-dashboard-home .image-dashboard-hero-keywords {
  min-width: 0 !important;
  margin: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-keyword-help {
  display: none !important;
}

.image-dashboard-home .image-dashboard-hero-keywords,
.image-dashboard-home .image-dashboard-hero-keywords textarea {
  height: 40px !important;
  min-height: 40px !important;
}

.image-dashboard-home .image-dashboard-hero-keywords textarea {
  padding: 9px 12px !important;
  border-radius: 11px !important;
  font-size: 0.84rem !important;
  line-height: 1.2 !important;
  resize: none !important;
}

.image-dashboard-home .image-dashboard-hero-submit {
  width: 56px !important;
  min-width: 56px !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 26px -20px rgba(4, 120, 87, 0.8) !important;
}

.image-dashboard-home .image-dashboard-hero-services {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-services .toggle-pill,
.image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
  width: 100% !important;
  min-width: 0 !important;
}

.image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
  justify-content: center !important;
  min-height: 32px !important;
  padding: 0 8px !important;
  border-radius: 10px !important;
  font-size: 0.7rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tool-btn {
  --admin-tool-size: 34px !important;
  border-radius: 10px !important;
}

.rank-check-visual-body .image-dashboard-main {
  padding-top: 16px !important;
}

.rank-check-visual-body .image-page-hero--admin {
  min-height: 0 !important;
  margin-bottom: 10px !important;
  padding: 14px 16px !important;
  border-color: #e3ebe7 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 16px 38px -32px rgba(15, 23, 42, 0.3) !important;
}

.rank-check-visual-body .image-page-hero--admin h1 {
  margin: 0 !important;
  font-size: clamp(1.25rem, 1.8vw, 1.62rem) !important;
  line-height: 1.18 !important;
}

.rank-check-visual-body .image-page-hero--admin p {
  margin-bottom: 5px !important;
  font-size: 0.68rem !important;
}

.rank-check-visual-body .image-page-hero-copy > span {
  max-width: 58ch !important;
  color: #64748b !important;
  font-size: 0.82rem !important;
  line-height: 1.38 !important;
}

.rank-check-visual-body .rank-check-kakao-bar {
  margin: 0 0 10px !important;
  padding: 7px !important;
  border-radius: 12px !important;
}

.rank-check-visual-body .rank-check-page-stack {
  gap: 12px !important;
}

.rank-check-visual-body .rank-check-setup-panel,
.rank-check-visual-body .advertiser-rank-summary,
.rank-check-visual-body .rank-check-saved-board {
  border-radius: 14px !important;
  box-shadow: 0 16px 38px -34px rgba(15, 23, 42, 0.28) !important;
}

.rank-check-visual-body .rank-check-setup-panel {
  padding: 15px !important;
  background: #ffffff !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-check-form {
  gap: 10px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid {
  grid-template-columns: minmax(160px, 0.85fr) minmax(190px, 0.9fr) minmax(240px, 1.15fr) !important;
  gap: 10px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label {
  gap: 5px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label span {
  font-size: 10.5px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-field-grid input {
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-service-row {
  grid-template-columns: auto minmax(180px, 1fr) auto !important;
  gap: 8px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-service-toggle-group {
  gap: 5px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle span {
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  box-shadow: none !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle span::before {
  width: 13px !important;
  height: 13px !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-form-hint {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button {
  min-width: 128px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

.rank-check-visual-body .rank-report-panel {
  margin-top: 10px !important;
  border-radius: 12px !important;
}

.rank-check-visual-body .rank-report-panel__head {
  min-height: 44px !important;
  padding: 10px 12px !important;
}

.rank-check-visual-body .rank-report-panel__head h4 {
  font-size: 13px !important;
}

.rank-check-visual-body .rank-report-panel__body {
  padding: 10px 12px 12px !important;
}

.rank-check-visual-body .rank-watch-stats {
  grid-template-columns: repeat(4, minmax(112px, 1fr)) minmax(260px, 1.25fr) !important;
  gap: 8px !important;
}

.rank-check-visual-body .rank-watch-stat {
  min-height: 82px !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  gap: 9px !important;
  padding: 12px !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px -26px rgba(15, 23, 42, 0.26) !important;
}

.rank-check-visual-body .rank-watch-stat__icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
}

.rank-check-visual-body .rank-watch-stat__icon::before {
  width: 14px !important;
  height: 14px !important;
}

.rank-check-visual-body .rank-watch-stat span,
.rank-check-visual-body .rank-watch-channel-copy span {
  font-size: 10.5px !important;
}

.rank-check-visual-body .rank-watch-stat strong {
  font-size: 18px !important;
}

.rank-check-visual-body .rank-watch-stat em {
  margin-top: 3px !important;
  font-size: 10.5px !important;
}

.rank-check-visual-body .rank-watch-stat--channels {
  min-height: 82px !important;
  padding: 12px !important;
}

.rank-check-visual-body .rank-watch-donut {
  width: 58px !important;
  height: 58px !important;
}

.rank-check-visual-body .advertiser-rank-summary {
  padding: 14px !important;
}

.rank-check-visual-body .advertiser-rank-summary .member-panel-head {
  margin-bottom: 10px !important;
}

.rank-check-visual-body .advertiser-rank-summary__grid {
  gap: 8px !important;
}

.rank-check-visual-body .advertiser-rank-summary__grid article {
  padding: 10px !important;
}

.rank-check-visual-body .advertiser-rank-summary__grid strong {
  font-size: 20px !important;
}

.rank-check-visual-body .advertiser-rank-summary__changes {
  margin-top: 9px !important;
  padding-top: 9px !important;
}

.rank-check-visual-body .advertiser-rank-summary__changes li {
  padding: 8px 10px !important;
}

.rank-check-visual-body .rank-check-saved-board {
  padding: 16px !important;
}

.rank-check-visual-body .rank-check-saved-board > .member-panel-head {
  margin-bottom: 10px !important;
}

.rank-check-visual-body .rank-watcher-toolbar {
  margin-bottom: 8px !important;
}

.rank-check-visual-body .rank-watcher-filter {
  min-height: 32px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
}

.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter.is-active {
  border-color: rgba(4, 120, 87, 0.34) !important;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%) !important;
  color: #065f46 !important;
  box-shadow: 0 10px 24px rgba(11, 122, 73, 0.14) !important;
}

.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter.is-active:hover {
  border-color: rgba(4, 120, 87, 0.46) !important;
  background: #bbf7d0 !important;
  color: #064e3b !important;
}

.rank-check-kakao-bar .rank-action-btn--ghost,
.rank-check-all-page .rank-action-btn--ghost {
  color: #334155 !important;
}

.rank-check-visual-body .rank-watcher-health-row {
  margin-bottom: 8px !important;
  padding: 8px 10px !important;
}

.rank-check-visual-body .rank-check-saved-board .watcher-list {
  gap: 8px !important;
}

.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
  min-height: 0 !important;
  padding: 10px !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.rank-check-visual-body .rank-position-strip {
  margin-top: 8px !important;
  padding: 9px !important;
  border-radius: 10px !important;
}

.rank-check-visual-body .rank-change-badge {
  margin-top: 6px !important;
  padding: 6px 8px !important;
}

.rank-check-visual-body .watcher-checked-at {
  margin-top: 5px !important;
}

.rank-check-visual-body .watcher-actions {
  margin-top: 2px !important;
}

.rank-check-visual-body .rank-watch-tip-row {
  margin-top: 10px !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
}

body.theme-dark .image-dashboard-home .image-dashboard-compact-hero,
body.theme-dark.rank-check-visual-body .image-page-hero--admin,
body.theme-dark.rank-check-visual-body .rank-check-setup-panel {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.94) !important;
}

body.theme-dark .image-dashboard-home .image-dashboard-hero-stats span {
  border-color: rgba(148, 163, 184, 0.18) !important;
  background: rgba(2, 6, 23, 0.32) !important;
  color: #e2e8f0 !important;
}

body.theme-dark.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter.is-active {
  border-color: rgba(52, 211, 153, 0.38) !important;
  background: rgba(6, 78, 59, 0.48) !important;
  color: #bbf7d0 !important;
}

body.theme-dark .rank-check-kakao-bar .rank-action-btn--ghost,
body.theme-dark.rank-check-all-page .rank-action-btn--ghost {
  color: #e2e8f0 !important;
}

@media (max-width: 1180px) {
  .image-dashboard-home .image-dashboard-compact-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .image-dashboard-home .image-dashboard-compact-actions {
    grid-template-areas: "tools" "collect" !important;
  }

  .rank-check-visual-body .rank-watch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 900px) {
  .image-dashboard-home .image-dashboard-hero-collect,
  .rank-check-visual-body .rank-check-setup-panel .rank-field-grid,
  .rank-check-visual-body .rank-check-setup-panel .rank-service-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button {
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  .image-dashboard-home .image-dashboard-compact-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
    padding: 9px !important;
  }

  .image-dashboard-home .image-dashboard-compact-hero h1 {
    font-size: clamp(1.06rem, 5.3vw, 1.32rem) !important;
  }

  .image-dashboard-home .image-dashboard-hero-stats {
    grid-column: 1 / -1 !important;
  }

  .image-dashboard-home .image-dashboard-hero-stats span {
    min-height: 24px !important;
    padding: 0 7px !important;
  }

  .image-dashboard-home .image-dashboard-compact-actions {
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "tools"
      "collect" !important;
    gap: 6px !important;
  }

  .image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-end !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools::-webkit-scrollbar {
    display: none !important;
  }

  .image-dashboard-home .image-dashboard-compact-hero .admin-hero-tool-btn {
    --admin-tool-size: 31px !important;
  }

  .image-dashboard-home .image-dashboard-hero-keywords,
  .image-dashboard-home .image-dashboard-hero-keywords textarea {
    height: 36px !important;
    min-height: 36px !important;
  }

  .image-dashboard-home .image-dashboard-hero-search-row {
    grid-template-columns: minmax(0, 1fr) 44px !important;
  }

  .image-dashboard-home .image-dashboard-hero-submit {
    width: 44px !important;
    min-width: 44px !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  .rank-check-visual-body .image-dashboard-main {
    padding-top: 10px !important;
  }

  .rank-check-visual-body .image-page-hero--admin {
    margin-bottom: 8px !important;
    padding: 11px 12px !important;
  }

  .rank-check-visual-body .image-page-hero-copy > span {
    display: none !important;
  }

  .rank-check-visual-body .rank-check-kakao-bar {
    margin-bottom: 8px !important;
  }

  .rank-check-visual-body .rank-check-setup-panel,
  .rank-check-visual-body .advertiser-rank-summary,
  .rank-check-visual-body .rank-check-saved-board {
    padding: 12px !important;
  }

  .rank-check-visual-body .rank-watch-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  .rank-check-visual-body .rank-watch-stat {
    min-height: 74px !important;
    padding: 10px !important;
  }

  .rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
  }

  .rank-check-visual-body .advertiser-rank-summary__grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
    padding: 12px !important;
  }

  .rank-check-visual-body .rank-check-saved-board .watcher-checked-at {
    padding-right: 0 !important;
  }

  .rank-check-visual-body .rank-check-saved-board .watcher-actions {
    position: static !important;
    right: auto !important;
  }
}

@media (max-width: 420px) {
  .image-dashboard-home .image-dashboard-compact-hero {
    padding: 8px !important;
  }

  .image-dashboard-home .image-dashboard-hero-stats span em {
    display: none !important;
  }

  .image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
    min-height: 27px !important;
    font-size: 0.64rem !important;
  }

  .rank-check-visual-body .rank-watch-stats,
  .rank-check-visual-body .advertiser-rank-summary__grid {
    grid-template-columns: 1fr !important;
  }
}

/* Final main hero guard: keep the landing and dashboard heroes stable. */
body.landing-page-body .landing-main {
  padding-top: clamp(10px, 1.8vw, 22px) !important;
}

body.landing-page-body .landing-hero {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px) !important;
  align-items: start !important;
  gap: clamp(16px, 2.6vw, 28px) !important;
  min-height: auto !important;
  padding: clamp(18px, 2.8vw, 34px) 0 clamp(22px, 3.2vw, 38px) !important;
}

body.landing-page-body .landing-hero-visual {
  position: absolute !important;
  left: clamp(-80px, -5vw, -28px) !important;
  top: 50% !important;
  width: min(42vw, 360px) !important;
  height: min(28vw, 250px) !important;
  transform: translateY(-50%) !important;
  opacity: 0.48 !important;
  pointer-events: none !important;
}

body.landing-page-body .landing-hero-copy {
  position: relative !important;
  z-index: 1 !important;
  min-width: 0 !important;
  max-width: 620px !important;
}

body.landing-page-body .landing-kicker {
  margin-bottom: 8px !important;
  padding: 5px 10px !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
}

body.landing-page-body .landing-hero h1 {
  margin-bottom: 10px !important;
  font-size: clamp(1.58rem, 3.25vw, 2.28rem) !important;
  line-height: 1.14 !important;
  letter-spacing: 0 !important;
}

body.landing-page-body .landing-lead {
  max-width: 34rem !important;
  margin-bottom: 16px !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

body.landing-page-body .landing-cta {
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
}

body.landing-page-body .landing-hero-points {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  max-width: 520px !important;
  margin-top: 14px !important;
}

body.landing-page-body .landing-hero-points li {
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 6px 8px !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.72rem !important;
  line-height: 1.22 !important;
  text-align: center !important;
  white-space: normal !important;
}

body.landing-page-body .landing-point-icon {
  flex: 0 0 16px !important;
}

body.landing-page-body .landing-login-card {
  align-self: start !important;
  width: 100% !important;
  max-width: 390px !important;
  justify-self: end !important;
  padding: clamp(18px, 2.4vw, 24px) !important;
  border-radius: 14px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.78fr) minmax(430px, 1.22fr) !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 0 !important;
  margin-bottom: 14px !important;
  padding: 16px 18px !important;
  border-color: #e3ebe7 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px -34px rgba(15, 23, 42, 0.32) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "tools"
    "collect" !important;
  align-items: stretch !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools {
  grid-area: tools !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
  justify-content: flex-end !important;
  justify-self: end !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect {
  grid-area: collect !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(142px, 172px) !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 960px) {
  body.landing-page-body .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
    gap: 18px !important;
  }

  body.landing-page-body .landing-hero-visual {
    width: min(38vw, 300px) !important;
    height: 220px !important;
    opacity: 0.32 !important;
  }
}

@media (max-width: 760px) {
  body.landing-page-body .landing-main {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.landing-page-body .landing-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px 0 14px !important;
  }

  body.landing-page-body .landing-hero-visual {
    display: none !important;
  }

  body.landing-page-body .landing-login-card {
    max-width: 100% !important;
    justify-self: stretch !important;
    margin-top: 0 !important;
    padding: 14px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
    padding: 9px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-actions {
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "tools"
      "collect" !important;
    gap: 6px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero .admin-hero-tools {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-end !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 640px) {
  body.landing-page-body .landing-hero h1 {
    margin-bottom: 6px !important;
    font-size: clamp(1.28rem, 6.2vw, 1.58rem) !important;
    line-height: 1.18 !important;
  }

  body.landing-page-body .landing-lead {
    margin-bottom: 10px !important;
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
  }

  body.landing-page-body .landing-cta {
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 0.82rem !important;
  }

  body.landing-page-body .landing-hero-points {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin-top: 9px !important;
  }

  body.landing-page-body .landing-hero-points li {
    min-height: 42px !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 6px 4px !important;
    font-size: 0.62rem !important;
  }
}

@media (max-width: 420px) {
  body.landing-page-body .landing-hero {
    gap: 8px !important;
    padding-top: 8px !important;
  }

  body.landing-page-body .landing-hero h1 {
    font-size: clamp(1.18rem, 6.5vw, 1.42rem) !important;
  }

  body.landing-page-body .landing-hero-points li {
    padding-left: 3px !important;
    padding-right: 3px !important;
    font-size: 0.58rem !important;
  }
}

/* Final user dashboard and rank-check page polish */
body.image-dashboard-body .image-dashboard-main.image-dashboard-home {
  max-width: 1380px !important;
  padding-top: 14px !important;
  padding-bottom: 24px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
  grid-template-columns: minmax(260px, 0.72fr) minmax(460px, 1.28fr) !important;
  gap: 12px !important;
  margin-bottom: 10px !important;
  padding: 13px 15px !important;
  border-radius: 14px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-copy {
  gap: 5px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero h1 {
  font-size: clamp(1.22rem, 1.58vw, 1.58rem) !important;
  line-height: 1.1 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-lead {
  font-size: 0.78rem !important;
  line-height: 1.32 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span {
  min-height: 25px !important;
  padding: 0 7px !important;
  font-size: 0.68rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-actions {
  gap: 6px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect {
  grid-template-columns: minmax(0, 1fr) minmax(132px, 160px) !important;
  gap: 6px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-keywords,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-keywords textarea {
  height: 36px !important;
  min-height: 36px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-search-row {
  grid-template-columns: minmax(0, 1fr) 50px !important;
  gap: 5px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-submit {
  width: 50px !important;
  min-width: 50px !important;
  height: 34px !important;
  min-height: 34px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-services .toggle-pill span {
  min-height: 29px !important;
  border-radius: 9px !important;
  font-size: 0.66rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card {
  min-height: 104px !important;
  padding: 12px !important;
  border-radius: 12px !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 14px 34px -30px rgba(15, 23, 42, 0.28) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-head {
  margin-bottom: 7px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-head i {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-head span {
  font-size: 0.68rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card strong {
  font-size: clamp(1.32rem, 2.2vw, 1.88rem) !important;
  line-height: 1 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card p {
  margin-top: 7px !important;
  font-size: 0.66rem !important;
  line-height: 1.32 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-sparkline {
  right: 10px !important;
  bottom: 8px !important;
  width: 42% !important;
  height: 26px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px) !important;
  gap: 12px !important;
  align-items: start !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-primary,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-aside {
  gap: 10px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-home-main-grid,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-bottom-grid {
  gap: 10px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-system-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-tip-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-schedule-card,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-today-card {
  padding: 13px !important;
  border-radius: 12px !important;
  border-color: rgba(226, 232, 240, 0.94) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 16px 36px -34px rgba(15, 23, 42, 0.3) !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-card-head {
  margin-bottom: 9px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-card-head h3 {
  font-size: 0.9rem !important;
  line-height: 1.18 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-card-head a,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-card-head span {
  font-size: 0.72rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-list {
  gap: 6px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-list--scroll:has(.image-recent-row:nth-child(5)) {
  --dashboard-recent-row-height: 54px !important;
  --dashboard-recent-row-gap: 6px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row {
  min-height: 54px !important;
  padding: 8px !important;
  border-radius: 9px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row .image-recent-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row strong {
  font-size: 0.8rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row em,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-row i {
  font-size: 0.66rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-ring {
  min-height: 128px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-ring-visual {
  width: min(118px, 100%) !important;
  height: 126px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-ring-visual strong {
  font-size: 1.24rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-system-grid {
  gap: 0 !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-system-grid div {
  min-height: 72px !important;
  padding: 10px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-calendar {
  gap: 4px !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-calendar span,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-calendar b {
  min-height: 24px !important;
  border-radius: 7px !important;
  font-size: 0.66rem !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-schedule-note,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-schedule-task,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-today-list a {
  border-radius: 10px !important;
}

body.rank-check-visual-body .image-dashboard-main {
  max-width: 1380px !important;
  padding-top: 12px !important;
  padding-bottom: 24px !important;
}

body.rank-check-visual-body .image-page-hero--admin {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
}

body.rank-check-visual-body .image-page-hero--admin h1 {
  font-size: clamp(1.18rem, 1.55vw, 1.45rem) !important;
  line-height: 1.12 !important;
}

body.rank-check-visual-body .image-page-hero--admin p {
  margin-bottom: 4px !important;
  font-size: 0.64rem !important;
}

body.rank-check-visual-body .image-page-hero-copy > span {
  max-width: 64ch !important;
  font-size: 0.76rem !important;
  line-height: 1.32 !important;
}

body.rank-check-visual-body .rank-check-kakao-bar {
  justify-content: flex-end !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
  padding: 6px !important;
  border-radius: 11px !important;
}

body.rank-check-visual-body .rank-check-kakao-bar .rank-action-btn {
  min-height: 32px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 0.7rem !important;
}

body.rank-check-visual-body .rank-check-page-stack {
  gap: 10px !important;
}

body.rank-check-visual-body .rank-check-setup-panel,
body.rank-check-visual-body .advertiser-rank-summary,
body.rank-check-visual-body .rank-check-saved-board {
  border-radius: 12px !important;
  border-color: rgba(226, 232, 240, 0.94) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 16px 38px -34px rgba(15, 23, 42, 0.3) !important;
}

body.rank-check-visual-body .rank-check-setup-panel {
  padding: 12px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-check-form {
  gap: 8px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid {
  grid-template-columns: minmax(150px, 0.82fr) minmax(170px, 0.88fr) minmax(220px, 1.18fr) !important;
  gap: 8px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label {
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid label span {
  font-size: 0.64rem !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid input {
  height: 36px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 0.78rem !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-service-row {
  grid-template-columns: auto minmax(160px, 1fr) auto !important;
  gap: 7px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-service-toggle-group {
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-type-toggle span {
  min-height: 31px !important;
  padding: 0 9px !important;
  border-radius: 8px !important;
  font-size: 0.66rem !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-form-hint {
  font-size: 0.68rem !important;
  line-height: 1.3 !important;
}

body.rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button {
  min-width: 118px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  font-size: 0.7rem !important;
}

body.rank-check-visual-body .rank-report-panel {
  margin-top: 8px !important;
  border-radius: 10px !important;
}

body.rank-check-visual-body .rank-report-panel__head {
  min-height: 38px !important;
  padding: 8px 10px !important;
}

body.rank-check-visual-body .rank-report-panel__body {
  padding: 8px 10px 10px !important;
}

body.rank-check-visual-body .rank-watch-stats {
  grid-template-columns: repeat(4, minmax(104px, 1fr)) minmax(240px, 1.18fr) !important;
  gap: 7px !important;
}

body.rank-check-visual-body .rank-watch-stat {
  min-height: 74px !important;
  grid-template-columns: 26px minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 10px !important;
  border-radius: 10px !important;
}

body.rank-check-visual-body .rank-watch-stat__icon {
  width: 26px !important;
  height: 26px !important;
}

body.rank-check-visual-body .rank-watch-stat strong {
  font-size: 1rem !important;
}

body.rank-check-visual-body .rank-watch-stat span,
body.rank-check-visual-body .rank-watch-stat em,
body.rank-check-visual-body .rank-watch-channel-copy span {
  font-size: 0.64rem !important;
}

body.rank-check-visual-body .rank-watch-donut {
  width: 52px !important;
  height: 52px !important;
}

body.rank-check-visual-body .advertiser-rank-summary {
  padding: 12px !important;
}

body.rank-check-visual-body .advertiser-rank-summary .member-panel-head {
  margin-bottom: 8px !important;
}

body.rank-check-visual-body .advertiser-rank-summary__grid {
  gap: 7px !important;
}

body.rank-check-visual-body .advertiser-rank-summary__grid article {
  padding: 9px !important;
  border-radius: 9px !important;
}

body.rank-check-visual-body .advertiser-rank-summary__grid strong {
  font-size: 1.08rem !important;
}

body.rank-check-visual-body .rank-check-saved-board {
  padding: 13px !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head {
  margin-bottom: 8px !important;
}

body.rank-check-visual-body .rank-watcher-toolbar {
  gap: 8px !important;
  margin-bottom: 7px !important;
}

body.rank-check-visual-body .rank-watcher-filter-row {
  gap: 5px !important;
}

body.rank-check-visual-body .rank-watcher-filter {
  min-height: 29px !important;
  padding: 0 9px !important;
  border-radius: 8px !important;
  font-size: 0.66rem !important;
}

body.rank-check-visual-body .rank-watcher-health-row {
  margin-bottom: 7px !important;
  padding: 7px 9px !important;
  border-radius: 9px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-list {
  gap: 7px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
  padding: 9px !important;
  border-radius: 9px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-head,
body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row {
  gap: 7px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title {
  font-size: 0.82rem !important;
  line-height: 1.25 !important;
}

body.rank-check-visual-body .rank-position-strip {
  margin-top: 7px !important;
  padding: 8px !important;
  border-radius: 9px !important;
}

body.rank-check-visual-body .rank-position-strip--compact .rank-position-ranks {
  gap: 6px !important;
}

body.rank-check-visual-body .rank-position-hero {
  min-height: 0 !important;
  padding: 7px 8px !important;
  border-radius: 8px !important;
}

body.rank-check-visual-body .rank-position-hero__rank {
  font-size: 0.78rem !important;
}

body.rank-check-visual-body .rank-position-hero__num {
  font-size: 1rem !important;
}

body.rank-check-visual-body .watcher-actions-row__buttons {
  gap: 5px !important;
}

body.rank-check-visual-body .watcher-action-button,
body.rank-check-visual-body .watcher-delete-button,
body.rank-check-visual-body .watcher-open-button {
  min-height: 29px !important;
  padding: 0 9px !important;
  border-radius: 8px !important;
  font-size: 0.66rem !important;
}

body.rank-check-visual-body .rank-watch-tip-row {
  margin-top: 8px !important;
  padding: 8px 9px !important;
  border-radius: 9px !important;
}

body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-recent-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-system-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-tip-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-schedule-card,
body.theme-dark.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-today-card,
body.theme-dark.rank-check-visual-body .rank-check-setup-panel,
body.theme-dark.rank-check-visual-body .advertiser-rank-summary,
body.theme-dark.rank-check-visual-body .rank-check-saved-board {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.92) !important;
}

@media (max-width: 1180px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero,
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-layout,
  body.rank-check-visual-body .image-page-hero--admin {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 900px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-collect,
  body.rank-check-visual-body .rank-check-setup-panel .rank-field-grid,
  body.rank-check-visual-body .rank-check-setup-panel .rank-service-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-home-main-grid,
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-bottom-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-check-setup-panel .rank-service-row .primary-button {
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home {
    padding-top: 10px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero {
    padding: 9px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-hero h1 {
    font-size: clamp(1.05rem, 5.1vw, 1.28rem) !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card {
    min-height: 92px !important;
    padding: 10px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rank-check-visual-body .image-dashboard-main {
    padding-top: 9px !important;
  }

  body.rank-check-visual-body .image-page-hero--admin {
    padding: 10px !important;
  }

  body.rank-check-visual-body .image-page-hero-copy > span {
    display: none !important;
  }

  body.rank-check-visual-body .rank-check-kakao-bar {
    justify-content: flex-start !important;
    overflow-x: auto !important;
  }

  body.rank-check-visual-body .rank-check-setup-panel,
  body.rank-check-visual-body .advertiser-rank-summary,
  body.rank-check-visual-body .rank-check-saved-board {
    padding: 10px !important;
  }
}

@media (max-width: 520px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span em {
    display: none !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-kpi-card p,
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-sparkline {
    display: none !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings,
  body.rank-check-visual-body .rank-watch-stats,
  body.rank-check-visual-body .advertiser-rank-summary__grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-watcher-toolbar {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  body.rank-check-visual-body .rank-watcher-filter-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Rank-check summary stats: extra compact pass */
body.rank-check-visual-body .rank-watch-stats {
  grid-template-columns: repeat(4, minmax(96px, 0.82fr)) minmax(220px, 1.14fr) !important;
  gap: 6px !important;
  margin: 0 !important;
}

body.rank-check-visual-body .rank-watch-stat {
  min-height: 58px !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  gap: 7px !important;
  align-items: center !important;
  padding: 8px 9px !important;
  border-radius: 9px !important;
  box-shadow: 0 10px 24px -24px rgba(15, 23, 42, 0.28) !important;
}

body.rank-check-visual-body .rank-watch-stat__icon {
  width: 22px !important;
  height: 22px !important;
  border-radius: 7px !important;
}

body.rank-check-visual-body .rank-watch-stat__icon::before {
  width: 12px !important;
  height: 12px !important;
}

body.rank-check-visual-body .rank-watch-stat span,
body.rank-check-visual-body .rank-watch-channel-copy span {
  font-size: 0.58rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watch-stat strong {
  margin-top: 2px !important;
  font-size: 0.96rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-watch-stat em {
  display: block !important;
  margin-top: 3px !important;
  font-size: 0.58rem !important;
  line-height: 1.18 !important;
  white-space: normal !important;
}

body.rank-check-visual-body .rank-watch-stat--time strong {
  font-size: 0.82rem !important;
  letter-spacing: 0 !important;
}

body.rank-check-visual-body .rank-watch-stat--channels {
  min-height: 58px !important;
  grid-template-columns: minmax(62px, 0.58fr) 42px minmax(120px, 1fr) !important;
  gap: 7px !important;
  padding: 8px 9px !important;
}

body.rank-check-visual-body .rank-watch-channel-copy {
  gap: 3px !important;
}

body.rank-check-visual-body .rank-watch-channel-copy strong {
  font-size: 0.82rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-watch-donut {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
}

body.rank-check-visual-body .rank-watch-channel-legend {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 3px !important;
  min-width: 0 !important;
}

body.rank-check-visual-body .rank-watch-channel-legend span {
  min-height: 22px !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 0 4px !important;
  border-radius: 7px !important;
  font-size: 0.56rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-watch-channel-legend i {
  width: 6px !important;
  height: 6px !important;
  flex: 0 0 6px !important;
}

body.rank-check-visual-body .rank-watch-channel-legend b {
  font-size: 0.58rem !important;
}

@media (max-width: 1180px) {
  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 520px) {
  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .rank-watch-stat,
  body.rank-check-visual-body .rank-watch-stat--channels {
    min-height: 54px !important;
  }

  body.rank-check-visual-body .rank-watch-stat--channels {
    grid-template-columns: minmax(70px, 0.65fr) 38px minmax(0, 1fr) !important;
  }
}

/* Saved rank-check list: compact cards with stronger rank signals */
body.rank-check-visual-body .rank-check-saved-board {
  padding: 8px !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head {
  margin-bottom: 5px !important;
  padding-bottom: 6px !important;
  gap: 8px !important;
  border-bottom: 1px solid #edf2f7 !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head .panel-kicker {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head h3 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 0.93rem !important;
  line-height: 1.1 !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong {
  min-height: 24px !important;
  padding: 0 8px !important;
  border-radius: 7px !important;
  font-size: 0.8rem !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong span {
  margin-left: 1px !important;
  font-size: 0.58rem !important;
}

body.rank-check-visual-body .rank-watcher-toolbar {
  display: block !important;
  margin: 0 0 5px !important;
}

body.rank-check-visual-body .rank-watcher-view-tools,
body.rank-check-visual-body .rank-sort-control,
body.rank-check-visual-body .rank-view-button {
  display: none !important;
}

body.rank-check-visual-body .rank-watcher-filter-row {
  display: flex !important;
  gap: 4px !important;
  margin: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter {
  min-height: 25px !important;
  padding: 0 8px !important;
  border-radius: 7px !important;
  font-size: 0.62rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watcher-health-row {
  min-height: 0 !important;
  margin: 0 0 6px !important;
  padding: 5px 7px !important;
  gap: 6px !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-watcher-health-row span,
body.rank-check-visual-body .rank-watcher-health-row em {
  font-size: 0.58rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watcher-health-row b {
  font-size: 0.82rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watcher-refresh-button {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #047857 !important;
  font-size: 0.58rem !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-watch-tip-row {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-list {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
  min-height: 0 !important;
  padding: 7px !important;
  border-radius: 8px !important;
  border-color: rgba(226, 232, 240, 0.94) !important;
  box-shadow: 0 10px 24px -25px rgba(15, 23, 42, 0.32) !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-body {
  min-height: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-head {
  gap: 4px !important;
  padding-right: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-service-badge {
  min-height: 20px !important;
  padding: 0 7px !important;
  border-radius: 7px !important;
  font-size: 0.58rem !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title {
  min-height: 0 !important;
  margin-top: 0 !important;
  font-size: 0.74rem !important;
  line-height: 1.24 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title a {
  -webkit-line-clamp: 1 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip {
  margin-top: 4px !important;
  padding: 5px !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__row {
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__section-name {
  font-size: 0.62rem !important;
  line-height: 1.2 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-ranks {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero {
  min-height: 32px !important;
  padding: 4px 6px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__service,
body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__scope {
  font-size: 0.56rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__rank {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero:not(.rank-position-hero--overall) .rank-position-hero__num {
  color: #047857 !important;
  font-size: 1.36rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero--overall .rank-position-hero__num {
  color: #0f172a !important;
  font-size: 1.08rem !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-hero__unit {
  margin-left: 1px !important;
  font-size: 0.58rem !important;
}

body.rank-check-visual-body .watcher-rank-snapshot {
  display: grid !important;
  grid-template-columns: minmax(76px, 0.72fr) minmax(0, 1.28fr) !important;
  gap: 4px !important;
  margin-top: 4px !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank,
body.rank-check-visual-body .watcher-rank-snapshot__change {
  min-width: 0 !important;
  min-height: 38px !important;
  display: grid !important;
  align-content: center !important;
  gap: 1px !important;
  padding: 5px 6px !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 8px !important;
  background: #fff !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank {
  border-color: rgba(4, 120, 87, 0.18) !important;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%) !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank span,
body.rank-check-visual-body .watcher-rank-snapshot__change span {
  color: #64748b !important;
  font-size: 0.54rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank strong {
  color: #047857 !important;
  font-size: 1.34rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank strong em {
  margin-left: 1px !important;
  color: #065f46 !important;
  font-size: 0.62rem !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change strong {
  overflow: hidden !important;
  color: #334155 !important;
  font-size: 0.68rem !important;
  font-weight: 950 !important;
  line-height: 1.08 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change em {
  overflow: hidden !important;
  color: #64748b !important;
  font-size: 0.56rem !important;
  font-style: normal !important;
  line-height: 1.12 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-up .watcher-rank-snapshot__change {
  border-color: rgba(34, 197, 94, 0.24) !important;
  background: #f0fdf4 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-up .watcher-rank-snapshot__change strong {
  color: #047857 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-down .watcher-rank-snapshot__change {
  border-color: rgba(239, 68, 68, 0.22) !important;
  background: #fff5f5 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-down .watcher-rank-snapshot__change strong {
  color: #b91c1c !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-flat .watcher-rank-snapshot__change {
  background: #f8fafc !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-author,
body.rank-check-visual-body .rank-check-saved-board .watcher-footnote,
body.rank-check-visual-body .rank-check-saved-board .watcher-fallback-note {
  margin-top: 4px !important;
  font-size: 0.6rem !important;
  line-height: 1.15 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at {
  margin-top: 4px !important;
  padding-right: 0 !important;
  font-size: 0.56rem !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions {
  margin-top: 4px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row {
  gap: 4px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row__buttons {
  gap: 3px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-action-button,
body.rank-check-visual-body .rank-check-saved-board .watcher-delete-button,
body.rank-check-visual-body .rank-check-saved-board .watcher-open-button {
  min-height: 23px !important;
  padding: 0 6px !important;
  border-radius: 6px !important;
  font-size: 0.56rem !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-schedule-note {
  font-size: 0.54rem !important;
  line-height: 1.08 !important;
}

/* Saved rank-check list: image-reference dense card pass */
body.rank-check-visual-body .rank-check-saved-board {
  padding: 18px !important;
  border-radius: 12px !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head {
  margin-bottom: 14px !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head h3 {
  font-size: 1.72rem !important;
  font-weight: 950 !important;
  line-height: 1.12 !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong {
  min-height: 0 !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong span:first-child {
  color: #0f172a !important;
  font-size: 0.9rem !important;
}

body.rank-check-visual-body .rank-check-saved-board > .member-panel-head > strong span:last-child {
  color: #0f172a !important;
  font-size: 1rem !important;
}

body.rank-check-visual-body .rank-watcher-toolbar {
  margin: 0 0 12px !important;
}

body.rank-check-visual-body .rank-watcher-filter-row {
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter {
  min-width: 126px !important;
  min-height: 46px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-watcher-filter.is-active {
  border-color: #16a34a !important;
  background: #effdf4 !important;
  color: #047857 !important;
}

body.rank-check-visual-body .rank-watcher-health-row {
  position: relative !important;
  align-items: center !important;
  min-height: 56px !important;
  margin: 0 0 12px !important;
  padding: 10px 16px !important;
  gap: 10px !important;
  border: 1px solid #dbe3ec !important;
  border-radius: 9px !important;
  background: #fbfcfe !important;
}

body.rank-check-visual-body .rank-watcher-health-row::before {
  content: "" !important;
  flex: 0 0 auto !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  background: #16a34a !important;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.14) !important;
  -webkit-mask: none !important;
  mask: none !important;
}

body.rank-check-visual-body .rank-watcher-health-row::after {
  content: "" !important;
  position: absolute !important;
  left: 25px !important;
  width: 13px !important;
  height: 8px !important;
  border-left: 3px solid #ffffff !important;
  border-bottom: 3px solid #ffffff !important;
  transform: rotate(-45deg) !important;
}

body.rank-check-visual-body .rank-watcher-health-row span,
body.rank-check-visual-body .rank-watcher-health-row em {
  font-size: 1rem !important;
  line-height: 1.2 !important;
}

body.rank-check-visual-body .rank-watcher-health-row span {
  color: #111827 !important;
  font-weight: 950 !important;
}

body.rank-check-visual-body .rank-watcher-health-row b {
  color: #047857 !important;
  font-size: 1.12rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-watcher-health-row em {
  color: #475569 !important;
  font-weight: 750 !important;
}

body.rank-check-visual-body .rank-watcher-refresh-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin-left: auto !important;
  color: #047857 !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-list {
  gap: 10px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
  position: relative !important;
  min-height: 0 !important;
  padding: 14px !important;
  border-radius: 9px !important;
  border-color: #dbe3ec !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-body {
  display: flex !important;
  min-height: 0 !important;
  flex-direction: column !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-item-head {
  gap: 7px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-width: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-badges {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  min-width: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-keyword {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-service-badge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 0.92rem !important;
  font-weight: 950 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank {
  display: inline-flex !important;
  align-items: baseline !important;
  flex: 0 0 auto !important;
  color: #047857 !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank span {
  font-size: 2.1rem !important;
  letter-spacing: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank em {
  margin-left: 2px !important;
  color: #111827 !important;
  font-size: 1.05rem !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank.is-empty span {
  color: #64748b !important;
  font-size: 1rem !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title {
  min-height: 0 !important;
  margin: 0 !important;
  color: #111827 !important;
  font-size: 1.1rem !important;
  font-weight: 950 !important;
  line-height: 1.45 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-title a {
  -webkit-line-clamp: 2 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-author,
body.rank-check-visual-body .rank-check-saved-board .watcher-fallback-note {
  display: block !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-footnote {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip {
  margin-top: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__row {
  display: block !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__section {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__eyebrow,
body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__exposure {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .rank-position-strip__section-name {
  overflow: hidden !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .watcher-rank-snapshot {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 0 !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid #dbe3ec !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank,
body.rank-check-visual-body .watcher-rank-snapshot__change {
  min-height: 62px !important;
  padding: 0 10px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change {
  padding-left: 14px !important;
  border-left: 1px solid #dbe3ec !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank span,
body.rank-check-visual-body .watcher-rank-snapshot__change span {
  color: #64748b !important;
  font-size: 0.88rem !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank strong {
  display: inline-flex !important;
  align-items: baseline !important;
  flex: 0 0 auto !important;
  color: #047857 !important;
  font-size: 1.55rem !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__rank strong em {
  font-size: 0.95rem !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change strong {
  color: #111827 !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-up .watcher-rank-snapshot__change strong {
  color: #047857 !important;
}

body.rank-check-visual-body .watcher-rank-snapshot.is-down .watcher-rank-snapshot__change strong {
  color: #b91c1c !important;
}

body.rank-check-visual-body .watcher-rank-snapshot__change em {
  color: #475569 !important;
  font-size: 0.88rem !important;
  line-height: 1.2 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #475569 !important;
  font-size: 0.9rem !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-checked-at__label {
  display: none !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions {
  position: static !important;
  width: 100% !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid #dbe3ec !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-actions-row__buttons {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
  gap: 6px !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-action-button,
body.rank-check-visual-body .rank-check-saved-board .watcher-delete-button,
body.rank-check-visual-body .rank-check-saved-board .watcher-open-button {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  font-size: 0 !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-action-button span,
body.rank-check-visual-body .rank-check-saved-board .watcher-delete-button span,
body.rank-check-visual-body .rank-check-saved-board .watcher-open-button span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

body.rank-check-visual-body .rank-check-saved-board .watcher-schedule-note {
  display: none !important;
}

@media (max-width: 1320px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rank-check-visual-body .watcher-rank-snapshot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}

/* Final operator dashboard mobile pass after bundled responsive rules */
@media (max-width: 900px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-compact-head {
    min-height: 34px !important;
    padding-left: 76px !important;
    margin-bottom: 8px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats {
    min-height: 74px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin-top: 10px !important;
    padding: 0 8px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span {
    min-height: 58px !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 4px !important;
    padding: 0 5px !important;
    text-align: center !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span + span {
    border-left: 1px solid rgba(228, 233, 238, 0.96) !important;
    border-top: 0 !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats .image-line-icon {
    display: none !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span em {
    display: block !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-dashboard-hero-stats span b {
    display: block !important;
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1 !important;
  }
}

/* Sidebar account actions + full-width workspace pass */
body.image-dashboard-body .image-dashboard-shell {
  grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 14px !important;
  padding-right: 14px !important;
}

body.image-dashboard-body .image-dashboard-main,
body.image-dashboard-body .image-dashboard-main.image-dashboard-home,
body.rank-check-visual-body .image-dashboard-main {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.rank-check-visual-body .image-dashboard-main {
  padding-left: clamp(18px, 2vw, 28px) !important;
  padding-right: clamp(18px, 2vw, 28px) !important;
}

body.rank-check-visual-body .rank-check-page-wrap,
body.rank-check-visual-body .rank-check-page-stack,
body.rank-check-visual-body .rank-check-setup-panel,
body.rank-check-visual-body .advertiser-rank-summary,
body.rank-check-visual-body .rank-check-saved-board {
  width: 100% !important;
  max-width: none !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user {
  gap: 7px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
  width: 78px !important;
  display: grid !important;
  grid-template-columns: repeat(2, 32px) !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 2px auto 0 !important;
  padding: 7px !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-radius: 14px !important;
  background: rgba(248, 251, 249, 0.96) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action {
  position: relative !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid rgba(226, 232, 240, 0.96) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #64748b !important;
  text-decoration: none !important;
  box-shadow: 0 10px 22px -20px rgba(15, 23, 42, 0.42) !important;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action:hover,
body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action.is-active {
  border-color: rgba(8, 120, 74, 0.24) !important;
  background: #effaf4 !important;
  color: #08784a !important;
  transform: translateY(-1px) !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action:active {
  transform: scale(0.96) !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action-logout {
  color: #b42318 !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action-logout:hover {
  border-color: rgba(180, 35, 24, 0.2) !important;
  background: #fff5f4 !important;
  color: #b42318 !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action .image-line-icon {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2.2 !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action span {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 8px) !important;
  z-index: 4 !important;
  width: max-content !important;
  max-width: 140px !important;
  height: auto !important;
  min-height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 9px !important;
  clip: auto !important;
  overflow: visible !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-radius: 8px !important;
  background: rgba(15, 23, 42, 0.94) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, 4px) !important;
  transition: opacity 0.16s ease, transform 0.16s ease !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 8px;
  height: 8px;
  background: rgba(15, 23, 42, 0.94);
  transform: translate(-50%, -4px) rotate(45deg);
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action:hover span,
body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action:focus-visible span {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}

@media (max-width: 1180px) and (min-width: 961px) {
  body.image-dashboard-body .image-dashboard-shell {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding-right: 12px !important;
  }
}

@media (max-width: 900px) {
  body.image-dashboard-body .image-dashboard-shell {
    display: block !important;
    padding: 0 !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user {
    width: 100% !important;
    align-items: stretch !important;
    justify-items: stretch !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-main {
    justify-items: start !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-meta {
    justify-items: start !important;
    text-align: left !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 8px !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action {
    width: 100% !important;
    height: 40px !important;
    min-width: 0 !important;
    min-height: 40px !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    justify-items: start !important;
    gap: 8px !important;
    padding: 0 10px !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action span {
    position: static !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action span::after {
    display: none !important;
  }

  body.rank-check-visual-body .image-dashboard-main {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Sidebar quick-menu descriptive tooltips */
@media (min-width: 901px) {
  body.image-dashboard-body .image-sidebar {
    overflow: visible !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user {
    position: relative !important;
    overflow: visible !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
    overflow: visible !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip] {
    isolation: isolate !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    z-index: 30;
    width: max-content;
    max-width: 190px;
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    box-shadow: 0 18px 32px -20px rgba(15, 23, 42, 0.55);
    opacity: 0;
    pointer-events: none;
    transform: translate(0, -50%) scale(0.98);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]::before {
    content: "";
    position: absolute;
    left: calc(100% + 7px);
    top: 50%;
    z-index: 31;
    width: 9px;
    height: 9px;
    border-left: 1px solid rgba(15, 23, 42, 0.12);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translate(0, -50%) rotate(45deg);
    transition: opacity 0.16s ease;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:hover::after,
  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:hover::before,
  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:focus-visible::before {
    opacity: 1;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:hover span,
  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action[data-tooltip]:focus-visible span {
    opacity: 0 !important;
    transform: translate(-50%, 4px) !important;
  }
}

/* Dashboard and rank-check responsive grid correction */
body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-ring {
  min-width: 0 !important;
}

@media (max-width: 960px) {
  .site-menu-toggle {
    position: relative;
    z-index: 10002;
    pointer-events: auto !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    touch-action: manipulation;
  }

  body.is-site-menu-open .site-header {
    z-index: 10002;
  }

  .site-mobile-menu:not(.is-open) {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  .site-mobile-menu.is-open {
    display: block !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  .site-mobile-menu.is-open .site-mobile-menu-backdrop,
  .site-mobile-menu.is-open .site-mobile-menu-panel {
    pointer-events: auto !important;
  }

  .site-mobile-menu-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .site-mobile-menu-panel {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.image-dashboard-body .image-dashboard-shell {
    display: block !important;
    grid-template-columns: 1fr !important;
    padding: 0 !important;
  }

  body.image-dashboard-body .image-mobile-menu-button {
    display: inline-flex !important;
    position: fixed !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 1600 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
    color: #0f172a !important;
    opacity: 1 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12) !important;
  }

  body.image-dashboard-body .image-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 1500 !important;
    width: min(88vw, 320px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    transform: translate3d(-105%, 0, 0) !important;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    background: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.image-dashboard-body.is-sidebar-open .image-sidebar {
    transform: translate3d(0, 0, 0) !important;
    pointer-events: auto !important;
  }

  body.image-dashboard-body .image-sidebar-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1450 !important;
    display: block !important;
    border: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(15, 23, 42, 0.32) !important;
    transition: opacity 200ms ease, visibility 200ms ease !important;
  }

  body.image-dashboard-body.is-sidebar-open .image-sidebar-backdrop {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.image-dashboard-body.is-sidebar-open {
    overflow: hidden !important;
  }

  body.image-dashboard-body .image-sidebar *,
  body.image-dashboard-body .image-sidebar *::before,
  body.image-dashboard-body .image-sidebar *::after {
    filter: none !important;
    text-shadow: none !important;
  }
}

@media (max-width: 900px) {
  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-rings {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-performance-ring {
    min-height: 128px !important;
    padding: 8px !important;
  }

  body.image-dashboard-body .image-dashboard-main.image-dashboard-home .image-ring-visual {
    width: min(118px, 100%) !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto !important;
  }

  body.rank-check-visual-body .rank-watch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.rank-check-visual-body .rank-watch-stat {
    min-width: 0 !important;
    min-height: 92px !important;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  body.rank-check-visual-body .rank-watch-stat__icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
  }

  body.rank-check-visual-body .rank-watch-stat span {
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  body.rank-check-visual-body .rank-watch-stat strong {
    font-size: clamp(19px, 5.4vw, 24px) !important;
    line-height: 1.05 !important;
    word-break: keep-all !important;
  }

  body.rank-check-visual-body .rank-watch-stat em {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  body.rank-check-visual-body .rank-watch-stat--channels {
    grid-column: 1 / -1 !important;
    min-height: 86px !important;
    grid-template-columns: minmax(0, 0.82fr) 58px minmax(0, 1.18fr) !important;
    align-items: center !important;
  }

  body.rank-check-visual-body .rank-watch-donut {
    width: 54px !important;
    height: 54px !important;
  }

  body.rank-check-visual-body .rank-watch-channel-legend {
    gap: 4px !important;
  }

  body.rank-check-visual-body .rank-watch-channel-legend span {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid article {
    min-width: 0 !important;
    min-height: 76px !important;
    padding: 9px 6px !important;
    border-radius: 10px !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid span {
    overflow: hidden !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid strong {
    font-size: clamp(18px, 5vw, 22px) !important;
    line-height: 1 !important;
  }

  body.rank-check-visual-body .advertiser-rank-summary__grid em {
    overflow: hidden !important;
    font-size: 9px !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* Saved rank-check cards: keep two cards per mobile row */
@media (max-width: 900px) {
  body.rank-check-visual-body .rank-check-saved-board .watcher-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-item--compact {
    min-width: 0 !important;
    padding: 10px !important;
    border-radius: 10px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-card-top {
    gap: 6px !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-service-badge {
    min-height: 24px !important;
    padding: 0 8px !important;
    font-size: 0.82rem !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank span {
    font-size: 1.74rem !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-card-rank em {
    font-size: 0.86rem !important;
  }

  body.rank-check-visual-body .rank-check-saved-board .watcher-title {
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
  }
}

/* Expanded sidebar with collection and advertiser controls */
body.image-dashboard-body {
  --operator-sidebar-width: 252px;
}

body.image-dashboard-body .image-dashboard-shell {
  grid-template-columns: var(--operator-sidebar-width) minmax(0, 1fr) !important;
  gap: 16px !important;
  padding-right: 16px !important;
}

body.image-dashboard-body .image-sidebar {
  width: var(--operator-sidebar-width) !important;
  padding: 18px 14px 14px !important;
  gap: 12px !important;
  overflow: visible !important;
}

body.image-dashboard-body .image-sidebar-brand-row {
  min-height: 46px !important;
}

body.image-dashboard-body .image-sidebar-brand {
  width: 100% !important;
  height: 46px !important;
  display: flex !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  padding: 0 8px !important;
}

body.image-dashboard-body .image-sidebar-brand span {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 auto !important;
}

body.image-dashboard-body .image-sidebar-brand strong {
  display: block !important;
  overflow: hidden !important;
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.image-dashboard-body .image-sidebar-brand em {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 20px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: #effaf4 !important;
  color: #08784a !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

body.image-dashboard-body .image-sidebar-scroll {
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
  padding-right: 2px !important;
  overflow-y: auto !important;
}

body.image-dashboard-body .image-sidebar-workbench {
  display: grid !important;
  gap: 8px !important;
  min-width: 0 !important;
  padding: 0 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-panel {
  order: 2 !important;
  display: grid !important;
  gap: 8px !important;
  padding: 10px !important;
  border: 1px solid rgba(8, 120, 74, 0.16) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #f5fcf8 0%, #ffffff 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 30px -26px rgba(15, 23, 42, 0.35) !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-promo {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-promo > span {
  width: 28px !important;
  height: 28px !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  border-radius: 10px !important;
  background: #e8f7ee !important;
  color: #08784a !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-promo .image-line-icon {
  width: 15px !important;
  height: 15px !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-head strong {
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-collect-field {
  gap: 5px !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-keyword-editor {
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-sidebar-workbench #keywords {
  min-height: 64px !important;
  max-height: 96px !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  resize: vertical !important;
  box-shadow: none !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-inline-button {
  min-height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(8, 120, 74, 0.16) !important;
  border-radius: 9px !important;
  background: #f8fbf9 !important;
  color: #08784a !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-service-toggles {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-workbench .image-collect-panel .image-service-toggles .toggle-pill span {
  min-height: 32px !important;
  padding: 0 4px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

body.image-dashboard-body .image-sidebar-workbench .payment-collect-note {
  margin: 0 !important;
  padding: 7px !important;
  border-radius: 9px !important;
  font-size: 10px !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-start-button {
  min-height: 36px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #0c8250, #076d43) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-panel {
  order: 1 !important;
  display: grid !important;
  gap: 6px !important;
  padding: 9px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 12px 26px -24px rgba(15, 23, 42, 0.42) !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-sidebar-nav-label {
  display: block !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 36px !important;
  gap: 6px !important;
  align-items: center !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-select-form select {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 28px 0 9px !important;
  border: 1px solid rgba(203, 213, 225, 0.95) !important;
  border-radius: 9px !important;
  background-color: #fff !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-manage-btn {
  width: 36px !important;
  height: 36px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(8, 120, 74, 0.18) !important;
  border-radius: 9px !important;
  background: #effaf4 !important;
  color: #08784a !important;
}

body.image-dashboard-body .image-sidebar-workbench .image-advertiser-manage-btn .image-line-icon {
  width: 17px !important;
  height: 17px !important;
}

body.image-dashboard-body .image-sidebar-nav,
body.image-dashboard-body .image-sidebar-nav.is-admin-nav {
  gap: 4px !important;
}

body.image-dashboard-body .image-sidebar-nav a,
body.image-dashboard-body .image-sidebar-nav.is-admin-nav a {
  min-height: 44px !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  justify-items: start !important;
  align-content: center !important;
  gap: 8px !important;
  padding: 6px 9px !important;
  text-align: left !important;
}

body.image-dashboard-body .image-sidebar-nav a > span:not(.image-nav-icon) {
  max-width: none !important;
  font-size: 13px !important;
  text-align: left !important;
}

body.image-dashboard-body .image-sidebar-nav a .image-nav-icon {
  width: 30px !important;
  height: 30px !important;
}

body.image-dashboard-body .image-sidebar-nav a .image-line-icon {
  width: 18px !important;
  height: 18px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
  width: 100% !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

body.image-dashboard-body .image-sidebar .image-sidebar-user-actions .image-user-action {
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 1180px) {
  body.image-dashboard-body {
    --operator-sidebar-width: 236px;
  }
}

@media (max-width: 900px) {
  body.image-dashboard-body {
    --operator-sidebar-width: min(336px, 88vw);
  }

  body.image-dashboard-body .image-dashboard-shell {
    display: block !important;
    padding: 0 !important;
  }

  body.image-dashboard-body .image-sidebar {
    width: var(--operator-sidebar-width) !important;
    padding: 18px 14px 16px !important;
  }

  body.image-dashboard-body .image-sidebar-scroll {
    gap: 10px !important;
  }

  body.image-dashboard-body .image-sidebar-brand strong,
  body.image-dashboard-body .image-sidebar-brand em {
    display: inline-flex !important;
  }

  body.image-dashboard-body .image-sidebar .image-sidebar-user-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

