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

:root {
  --bg: #f4f8fb;
  --panel: #ffffff;
  --panel-soft: #f8fbfd;
  --ink: #0f1b2d;
  --muted: #64748b;
  --line: #dce6ef;
  --line-soft: #eef3f7;
  --accent: #009f70;
  --accent-dark: #007d58;
  --accent-soft: #e7f8f1;
  --blue: #006fc9;
  --blue-soft: #eaf6ff;
  --red: #dc3454;
  --red-soft: #fff0f3;
  --sidebar: 270px;
  --shadow: 0 12px 36px rgba(15, 27, 45, 0.07);
  color: var(--ink);
  font-family:
    "Pretendard Variable", Pretendard, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.refund-auto-page {
  display: grid;
  gap: 14px;
}

.refund-auto-toolbar,
.refund-auto-search {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(160px, 0.7fr) minmax(150px, 0.45fr) auto;
  gap: 10px;
  align-items: end;
  padding: 16px;
  border: 1px solid #b7efd8;
  border-radius: 8px;
  background: #f2fff9;
}

.refund-auto-search {
  grid-template-columns: minmax(320px, 1fr) auto auto;
  background: #fff;
  border-color: #dbe7f3;
}

.refund-auto-toolbar label,
.refund-auto-search > label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  color: #16325c;
}

.refund-auto-toolbar input,
.refund-auto-toolbar select,
.refund-auto-search > label input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cfe0f1;
  border-radius: 7px;
  background: #fff;
  font-weight: 800;
  color: #07162e;
}

.refund-auto-search-options {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 42px;
}

.refund-auto-search .check-row {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  color: #273444;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.refund-auto-search .check-row input[type="checkbox"] {
  width: 17px;
  min-width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.refund-auto-search .check-row span {
  color: #273444;
  font-size: 13px;
  font-weight: 750;
}

.refund-auto-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

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

.refund-auto-schedule-card {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #d6e6f2;
  border-radius: 8px;
  background: #fff;
}

.refund-auto-schedule-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.refund-auto-schedule-card strong {
  color: #07162e;
  font-size: 14px;
}

.refund-auto-schedule-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.refund-auto-summary > div {
  padding: 14px;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background: #fff;
}

.refund-auto-summary span {
  display: block;
  color: #667895;
  font-size: 12px;
  font-weight: 800;
}

.refund-auto-summary strong {
  display: block;
  margin-top: 6px;
  color: #07162e;
  font-size: 26px;
  line-height: 1;
}

.refund-auto-log {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background: #fff;
}

.refund-auto-log-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.refund-auto-log-head h3 {
  margin: 0;
  color: #07162e;
  font-size: 18px;
}

.refund-auto-log-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.refund-auto-log-group {
  display: grid;
  gap: 8px;
}

.refund-auto-log-date {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.refund-auto-log-date strong {
  font-size: 14px;
}

.refund-auto-log-date span {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
}

.refund-auto-log-table {
  display: grid;
  overflow: hidden;
  border: 1px solid #e3ebf3;
  border-radius: 8px;
}

.refund-auto-log-row {
  display: grid;
  grid-template-columns: 100px minmax(130px, 0.9fr) minmax(150px, 1fr) 110px 110px 130px;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid #edf3f8;
  color: #273444;
  font-size: 12px;
  font-weight: 750;
}

.refund-auto-log-row:first-child {
  border-top: 0;
}

.refund-auto-log-row.is-head {
  background: #f6f9fc;
  color: #667895;
  font-size: 11px;
  font-weight: 850;
}

.refund-auto-log-row span {
  min-width: 0;
}

.refund-auto-log-row b {
  display: block;
  color: #07162e;
  font-size: 13px;
}

.refund-auto-log-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.refund-log-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.refund-log-status.done {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.refund-log-status.skipped {
  background: #eef1f5;
  color: #405064;
}

.refund-log-status.failed {
  background: var(--red-soft);
  color: var(--red);
}

.refund-auto-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.refund-auto-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  align-items: start;
}

.refund-auto-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.refund-auto-card.is-selected {
  border-color: #7ee7bd;
  background: #f8fffb;
  box-shadow: 0 10px 22px rgba(8, 127, 91, 0.09);
}

.refund-auto-card.is-complete {
  border-color: #d8e0e8;
  background: #f4f7fa;
}

.refund-auto-card.is-complete .refund-card-thumb {
  filter: grayscale(1);
  opacity: 0.72;
}

.refund-auto-card.is-complete .refund-product-main h3,
.refund-auto-card.is-complete .refund-compact-link {
  color: #718198;
}

.refund-card-top {
  display: grid;
  grid-template-columns: 24px 62px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  align-items: start;
}

.refund-card-check {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

.refund-media-wrap {
  position: relative;
  width: 62px;
  height: 62px;
}

.refund-card-thumb {
  width: 62px;
  height: 62px;
  border: 1px solid #e3edf7;
  border-radius: 7px;
  background: #f8fbff;
  object-fit: cover;
  overflow: hidden;
}

.refund-thumb-placeholder {
  display: grid;
  place-items: center;
  color: #6b7e99;
}

.refund-card-badge {
  position: absolute;
  left: 4px;
  bottom: 4px;
  max-width: calc(100% - 8px);
  overflow: hidden;
  border-radius: 5px;
  padding: 2px 5px;
  background: rgba(23, 32, 42, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.refund-product-main {
  min-width: 0;
}

.refund-card-kicker {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #667895;
  font-size: 12px;
  font-weight: 800;
}

.refund-card-kicker span,
.refund-card-kicker code,
.refund-compact-link,
.refund-detail-row code,
.refund-period {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.refund-card-kicker code {
  flex: none;
  max-width: 45%;
  color: #405064;
}

.refund-product-main h3 {
  display: -webkit-box;
  min-height: 39px;
  margin: 3px 0 4px;
  overflow: hidden;
  color: #07162e;
  font-size: 14px;
  line-height: 19px;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.refund-compact-link {
  color: #526174;
  font-size: 12px;
  font-weight: 750;
}

.refund-site-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.refund-site-select {
  display: flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #dbe7f3;
  border-radius: 7px;
  background: #fff;
}

.refund-site-select span {
  min-width: 0;
}

.refund-site-select b,
.refund-site-select small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.refund-site-select b {
  color: #07162e;
  font-size: 13px;
  line-height: 17px;
}

.refund-site-select small {
  color: #667895;
  font-size: 11px;
  font-weight: 750;
}

.refund-site-select.flushlog-select:not(.is-disabled) {
  border-color: #9fcbb9;
  background: var(--accent-soft);
}

.refund-site-select.neo-select:not(.is-disabled) {
  border-color: #a8c2e8;
  background: var(--blue-soft);
}

.refund-site-select.is-disabled,
.refund-site-select.is-off {
  background: #f7f8fa;
  color: #7a8697;
}

.refund-card-meta {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.refund-site-detail {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid #edf0f5;
}

.refund-detail-title {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.refund-detail-title b {
  font-size: 12px;
  line-height: 16px;
}

.flushlog-detail .refund-detail-title b {
  color: var(--accent-dark);
}

.sheet-detail .refund-detail-title b {
  color: #405064;
}

.neo-detail .refund-detail-title b {
  color: var(--blue);
}

.neo-detail.is-off .refund-detail-title b {
  color: #6b7889;
}

.refund-detail-title span {
  color: #526174;
  font-size: 12px;
  font-weight: 750;
}

.refund-detail-row {
  display: grid;
  grid-template-columns: auto minmax(54px, 1fr) auto auto;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: #526174;
  font-size: 12px;
}

.refund-detail-row.is-off {
  color: #6b7889;
}

.refund-detail-row b {
  color: #2d3748;
  font-weight: 850;
}

.refund-detail-row.is-off b,
.refund-detail-row.is-off code {
  color: #6b7889;
}

.refund-detail-row code {
  min-width: 0;
  color: #2d3748;
}

.refund-period {
  max-width: 88px;
  color: #526174;
}

.refund-empty-line,
.refund-more-line {
  min-height: 24px;
  color: #8a95a5;
  font-size: 12px;
}

.refund-empty-line {
  display: flex;
  align-items: center;
}

.refund-more-line {
  text-align: right;
  font-weight: 800;
}

.refund-compare-line {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  min-width: 0;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border: 1px solid #dbe7f3;
  border-radius: 7px;
  background: #f8fafc;
  color: #405064;
  font-size: 12px;
}

.refund-compare-line span {
  color: #667895;
  font-weight: 850;
}

.refund-compare-line b,
.refund-compare-line strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.refund-compare-line strong {
  border-radius: 999px;
  padding: 2px 7px;
  text-align: center;
}

.refund-compare-line.is-match strong {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.refund-compare-line.is-different strong {
  background: #fff7ed;
  color: #c2410c;
}

.refund-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
}

.refund-pill.test {
  background: #fff7ed;
  color: #c2410c;
}

.refund-pill.neo {
  background: var(--blue-soft);
  color: var(--blue);
}

.refund-pill.sheet {
  background: #eef1f5;
  color: #405064;
}

.refund-pill.done {
  background: var(--accent);
  color: #fff;
}

.refund-pill.off {
  background: #edf1f5;
  color: #6b7889;
}

@media (max-width: 980px) {
  .refund-auto-toolbar,
  .refund-auto-search,
  .refund-auto-summary,
  .refund-auto-schedules {
    grid-template-columns: 1fr;
  }

  .refund-auto-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .refund-auto-results {
    grid-template-columns: 1fr;
  }

  .refund-auto-log-head {
    display: grid;
  }

  .refund-auto-log-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .refund-auto-log-row.is-head {
    display: none;
  }

  .refund-card-top {
    grid-template-columns: 24px 54px minmax(0, 1fr);
  }

  .refund-media-wrap,
  .refund-card-thumb {
    width: 54px;
    height: 54px;
  }
}

.upload-schedule-page {
  display: grid;
  gap: 16px;
}

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

.upload-schedule-panel,
.upload-recent-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.upload-schedule-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.upload-schedule-panel.is-whale {
  border-color: #b7efd8;
  background: #fbfffd;
}

.upload-schedule-panel.is-moss {
  border-color: #c9e1ff;
  background: #fbfdff;
}

.upload-panel-title,
.upload-panel-footer,
.upload-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.upload-panel-title span {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.upload-panel-title h2,
.upload-section-head h2 {
  margin: 4px 0 0;
  color: #07162e;
  font-size: 20px;
  line-height: 1.25;
}

.upload-panel-title p,
.upload-section-head p {
  margin: 6px 0 0;
  color: #5c718d;
  font-size: 13px;
  font-weight: 700;
}

.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dbe7f3;
  border-radius: 7px;
  background: #fff;
  color: #25466f;
  font-size: 13px;
  font-weight: 800;
}

.upload-schedule-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.upload-schedule-fields label {
  display: grid;
  gap: 6px;
  color: #16325c;
  font-size: 12px;
  font-weight: 900;
}

.upload-schedule-fields input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cfe0f1;
  border-radius: 7px;
  background: #fff;
  color: #07162e;
  font-weight: 900;
}

.upload-schedule-fields input:disabled {
  color: #60748e;
  background: #f5f8fb;
}

.upload-weekly-block {
  display: grid;
  gap: 10px;
}

.upload-weekly-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.upload-weekly-title span {
  color: #16325c;
  font-size: 12px;
  font-weight: 900;
}

.upload-weekly-title small {
  color: #667895;
  font-size: 12px;
  font-weight: 750;
}

.upload-weekly-times {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.upload-weekday-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background: #fff;
}

.upload-weekday-row > span {
  color: #16325c;
  font-size: 12px;
  font-weight: 900;
}

.upload-weekday-row input[type="time"] {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #cfe0f1;
  border-radius: 7px;
  background: #fff;
  color: #07162e;
  font-size: 13px;
  font-weight: 900;
}

.upload-split-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.upload-split-row div {
  padding: 12px;
  border: 1px solid #e0ebf5;
  border-radius: 8px;
  background: #fff;
}

.upload-split-row span,
.upload-panel-footer span {
  display: block;
  color: #667895;
  font-size: 12px;
  font-weight: 800;
}

.upload-split-row strong {
  display: block;
  margin-top: 4px;
  color: #07162e;
  font-size: 22px;
  line-height: 1;
}

.upload-panel-footer {
  align-items: center;
}

.upload-panel-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.upload-panel-footer > div {
  display: flex;
  gap: 8px;
}

.upload-recent-section {
  padding: 16px;
}

.upload-recent-table-wrap {
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.upload-recent-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  background: #fff;
}

.upload-recent-table th,
.upload-recent-table td {
  padding: 12px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

.upload-recent-table th {
  background: #f7fafc;
  color: #53657d;
  font-weight: 900;
}

.upload-recent-table td {
  color: #183456;
  font-weight: 700;
}

.upload-recent-table td small {
  display: block;
  margin-top: 4px;
  color: #7b8fa8;
  font-size: 11px;
}

.upload-mode-badge,
.upload-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.upload-mode-badge {
  background: #eef6ff;
  color: #1f5f9d;
}

.upload-status-badge.is-success {
  background: #e8f8f1;
  color: #00865f;
}

.upload-status-badge.is-skipped {
  background: #fff8df;
  color: #946900;
}

.upload-status-badge.is-failed {
  background: #fff0f3;
  color: #d72f52;
}

@media (max-width: 1100px) {
  .upload-schedule-grid,
  .upload-schedule-fields {
    grid-template-columns: 1fr;
  }

  .upload-weekly-times {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-panel-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

body {
  min-width: 1440px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f3f7f9;
}

.boot-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 34px 42px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 35, 52, 0.08);
}

.boot-card strong {
  font-size: 24px;
  font-weight: 900;
  color: #06142a;
}

.boot-card small {
  font-size: 13px;
  font-weight: 700;
  color: #73849a;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

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

h1,
h2,
p {
  margin: 0;
}

.login-screen {
  display: grid;
  grid-template-columns: minmax(460px, 36vw) minmax(520px, 1fr);
  min-height: 100vh;
  background: #fafcf9;
}

.login-visual {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: 54px;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 18%, rgba(0, 159, 112, 0.18), transparent 34%),
    linear-gradient(180deg, #0c3d2b, #062018);
  color: white;
}

.brand-block {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
}

.brand-block strong {
  font-size: 23px;
  line-height: 1.1;
}

.brand-block small {
  grid-column: 2;
  margin-top: -10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 900;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.92), transparent 0 9%, transparent 10%),
    radial-gradient(circle at 30% 26%, #58ffd0, transparent 0 24%, transparent 25%),
    linear-gradient(145deg, #00d69b 0%, #009f70 46%, #006f53 100%);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.2),
    inset 0 0 0 9px rgba(0, 69, 50, 0.18),
    0 14px 30px rgba(0, 159, 112, 0.24);
}

.brand-mark b {
  display: none;
}

.brand-mark::before {
  content: "T";
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 70, 50, 0.32);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  pointer-events: none;
}

.login-copy {
  max-width: 540px;
}

.login-copy span,
.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #dff8eb;
  font-size: 12px;
  font-weight: 900;
}

.login-copy h1 {
  margin-top: 28px;
  font-size: 48px;
  line-height: 1.22;
  letter-spacing: 0;
}

.login-copy p {
  max-width: 480px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.8;
}

.login-panel {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 520px);
  padding: 56px;
  margin: 0 auto;
}

.login-badge {
  width: max-content;
  border-color: rgba(0, 159, 112, 0.25);
  background: white;
  color: var(--accent-dark);
  box-shadow: 0 8px 18px rgba(0, 159, 112, 0.12);
}

.login-panel h2 {
  margin-top: 22px;
  font-size: 40px;
  line-height: 1.1;
}

.login-panel > p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 70px rgba(15, 27, 45, 0.13);
}

.login-form label {
  display: grid;
  gap: 9px;
}

.login-form label > span,
.remember-row span {
  color: #253247;
  font-size: 14px;
  font-weight: 900;
}

.field-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfd;
  color: #8aa0b9;
}

.field-box:focus-within {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 159, 112, 0.13);
}

.field-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.remember-row {
  display: flex !important;
  align-items: center;
  gap: 9px;
}

.remember-row input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--accent);
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(220, 52, 84, 0.18);
  border-radius: 10px;
  background: var(--red-soft);
  color: #e01841;
  font-size: 14px;
  font-weight: 900;
}

.login-alert[hidden] {
  display: none;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.brand-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 20px;
}

.brand-row strong {
  display: block;
  font-size: 20px;
  line-height: 1.16;
}

.brand-row small {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 950;
}

.account-card {
  margin: 0 14px 22px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfd;
}

.account-card span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 950;
}

.account-card strong {
  display: block;
  margin-top: 10px;
  font-size: 17px;
}

.account-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.side-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  padding: 0 12px;
}

.side-nav p {
  margin: 18px 10px 8px;
  color: #8b9aad;
  font-size: 11px;
  font-weight: 900;
}

.nav-item {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #334155;
  text-align: left;
  font-size: 14px;
  font-weight: 850;
}

.nav-item.active,
.nav-item:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav-item.locked {
  opacity: 0.72;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 12px 18px;
  border-top: 1px solid var(--line-soft);
}

.sidebar-logout {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: #506176;
  text-align: left;
  font-size: 13px;
  font-weight: 900;
}

.sidebar-logout:hover {
  border-color: rgba(0, 159, 112, 0.34);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

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

.nav-item em {
  display: inline-flex;
  justify-content: center;
  min-width: 25px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #edf3f7;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.workspace {
  min-width: 0;
  padding: 26px 32px 44px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: -26px -32px 26px;
  padding: 22px 32px 18px;
  border-bottom: 1px solid rgba(220, 230, 239, 0.92);
  background: rgba(244, 248, 251, 0.94);
  backdrop-filter: blur(16px);
}

.topbar span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
}

.topbar h1 {
  font-size: 28px;
  line-height: 1.18;
}

.topbar p,
.section-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.topbar-actions,
.section-head,
.button-row {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 10px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #d8e3ee;
  border-radius: 6px;
  background: white;
  color: #17243a;
  font-size: 12px;
  font-weight: 950;
}

.user-chip {
  display: grid;
  grid-template-columns: 1fr 26px;
  grid-template-rows: auto auto;
  column-gap: 8px;
  min-width: 88px;
  padding: 4px 8px 4px 10px;
  text-align: left;
}

.user-chip strong {
  font-size: 11px;
  line-height: 1;
}

.user-chip small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.user-chip svg {
  grid-row: 1 / 3;
  grid-column: 2;
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.profile-menu-wrap {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 172px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 42px rgba(15, 27, 45, 0.14);
}

.profile-dropdown button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: white;
  padding: 0 12px;
  color: #243246;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.profile-dropdown button:last-child {
  border-bottom: 0;
}

.profile-dropdown button:hover {
  background: #f6fbf9;
  color: var(--accent-dark);
}

.clipboard-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  max-width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  border: 1px solid rgba(0, 159, 112, 0.28);
  border-radius: 8px;
  background: #06291f;
  box-shadow: 0 18px 40px rgba(7, 19, 36, 0.18);
  color: #ffffff;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 900;
}

.clipboard-toast svg {
  color: #75ffda;
}

.blocking-task-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(244, 248, 251, 0.72);
  backdrop-filter: blur(5px);
}

.blocking-task-card {
  width: min(520px, calc(100vw - 48px));
  display: grid;
  justify-items: center;
  gap: 16px;
  border: 1px solid rgba(189, 212, 226, 0.9);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(15, 27, 45, 0.18);
  padding: 34px 36px;
  text-align: center;
}

.blocking-task-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(0, 159, 112, 0.16);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.blocking-task-card strong {
  display: block;
  color: #06142a;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: 0;
}

.blocking-task-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.blocking-task-card > small {
  color: #7a8aa0;
  font-size: 12px;
  font-weight: 800;
}

.blocking-task-progress {
  width: 100%;
  display: grid;
  gap: 8px;
  border: 1px solid #d8f1e7;
  border-radius: 8px;
  background: #f5fffb;
  padding: 12px;
  text-align: left;
}

.blocking-task-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.blocking-task-progress i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4edf3;
}

.blocking-task-progress em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.blocking-task-progress small {
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
}

.state-sync-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -8px 0 18px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a5f;
  font-size: 12px;
  font-weight: 850;
}

.state-sync-notice.is-conflict {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #7c2d12;
}

.state-sync-notice span,
.state-sync-notice button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.search-box,
.filter-row label {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #8ba0b8;
}

.search-box {
  width: 420px;
}

.search-box input,
.filter-row input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
}

.ghost-button,
.primary-button,
.icon-button,
.action-text-button,
.pager,
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #253247;
  font-size: 13px;
  font-weight: 900;
}

.ghost-button,
.primary-button,
.tab {
  padding: 0 14px;
}

.ghost-button.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.ghost-button.danger {
  color: var(--red);
}

.primary-button {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 24px rgba(0, 159, 112, 0.18);
}

.login-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
}

.icon-button,
.pager {
  width: 38px;
  padding: 0;
}

.action-text-button {
  min-width: 42px;
  padding: 0 10px;
  white-space: nowrap;
}

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

.ghost-button:hover,
.icon-button:hover,
.pager:hover {
  border-color: rgba(0, 159, 112, 0.42);
  color: var(--accent-dark);
}

.icon-button:disabled,
.action-text-button:disabled,
.ghost-button:disabled,
.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

svg {
  width: 16px;
  height: 16px;
}

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

.metric-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric-panel {
  padding: 20px;
}

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

.metric-panel strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
}

.metric-panel small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.split-panel,
.member-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
  margin-top: 18px;
}

.panel {
  padding: 20px;
}

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

.button-row {
  gap: 8px;
}

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

.compact-list div {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfd;
}

.compact-list img,
.product-image {
  object-fit: cover;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #f3f7fa;
}

.compact-list img {
  width: 46px;
  height: 46px;
}

.rank-list,
.rule-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfd;
}

.rank-row span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
}

.dashboard-rank-pending {
  display: grid;
  gap: 8px;
  min-height: 180px;
  align-content: center;
  justify-items: center;
  padding: 28px;
  border: 1px dashed #bfe8dc;
  border-radius: 10px;
  background: #f4fffb;
  text-align: center;
}

.dashboard-rank-pending:has(+ .dashboard-rank-movers) {
  min-height: 0;
  padding: 10px 12px;
  align-content: start;
  justify-items: start;
  border-style: solid;
  text-align: left;
}

.dashboard-rank-pending:has(+ .dashboard-rank-movers) strong {
  font-size: 13px;
}

.dashboard-rank-pending:has(+ .dashboard-rank-movers) span {
  font-size: 12px;
}

.dashboard-rank-pending + .dashboard-rank-movers {
  margin-top: 10px;
}

.dashboard-rank-pending strong {
  font-size: 16px;
  color: var(--ink);
}

.dashboard-rank-pending span,
.dashboard-rank-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.dashboard-rank-movers section {
  min-width: 0;
}

.dashboard-rank-movers h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 950;
  color: var(--ink);
}

.dashboard-rank-movers section > div {
  display: grid;
  gap: 8px;
}

.dashboard-rank-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfcfd;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.dashboard-rank-row:hover {
  border-color: #9adfc8;
  background: #f7fffc;
}

.dashboard-rank-row.is-up {
  border-color: #bfe8dc;
}

.dashboard-rank-row.is-down {
  border-color: #ffd2d7;
}

.dashboard-rank-row img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.dashboard-rank-row strong,
.dashboard-rank-row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-rank-row strong {
  font-size: 13px;
  font-weight: 950;
}

.dashboard-rank-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-rank-row dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 2px 0 0;
}

.dashboard-rank-row div {
  min-width: 0;
}

.dashboard-rank-row dt,
.dashboard-rank-row dd {
  margin: 0;
}

.dashboard-rank-row dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.dashboard-rank-row dd {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 950;
}

.dashboard-rank-row .rank-movement dt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dashboard-rank-row .rank-movement i {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.dashboard-rank-row.is-up .rank-movement dt,
.dashboard-rank-row.is-up .rank-movement dd {
  color: var(--accent-dark);
}

.dashboard-rank-row.is-down .rank-movement dt,
.dashboard-rank-row.is-down .rank-movement dd {
  color: #ef2f55;
}

.dashboard-rank-row.is-up dl > div:last-child dt,
.dashboard-rank-row.is-up dl > div:last-child dd {
  color: var(--accent-dark);
}

.dashboard-rank-row.is-down dl > div:last-child dt,
.dashboard-rank-row.is-down dl > div:last-child dd {
  color: #ef2f55;
}

.dashboard-rank-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fbfcfd;
}

.product-detail-panel {
  width: min(1680px, calc(100vw - 72px));
  margin: 32px auto 48px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.product-detail-head span,
.product-detail-head h2,
.product-detail-head p {
  margin: 0;
}

.product-detail-head span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
}

.product-detail-head h2 {
  margin-top: 5px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 950;
}

.product-detail-head p {
  margin-top: 5px;
  color: #53627a;
  font-weight: 750;
}

.product-detail-form {
  display: grid;
  grid-template-columns: minmax(320px, 1.5fr) minmax(220px, 0.8fr) 150px;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(0, 190, 135, 0.28);
  border-radius: 10px;
  background: #effdf7;
}

.product-detail-form label {
  display: grid;
  gap: 8px;
  color: #082238;
  font-size: 13px;
  font-weight: 900;
}

.product-detail-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cfdceb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.product-detail-form input:focus {
  border-color: rgba(0, 159, 112, 0.45);
  outline: 3px solid rgba(0, 159, 112, 0.13);
}

.product-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0;
}

.product-detail-stats div {
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.product-detail-stats span,
.product-detail-stats small {
  display: block;
  color: #63748b;
  font-weight: 850;
}

.product-detail-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 950;
}

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

.product-detail-card,
.product-detail-empty {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfdff;
}

.product-detail-card {
  padding: 14px;
}

.product-detail-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.product-detail-product {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.product-detail-image,
.product-detail-image img,
.product-detail-image-empty {
  width: 70px;
  height: 70px;
  border-radius: 9px;
}

.product-detail-image {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f1f5f9;
}

.product-detail-image img {
  display: block;
  object-fit: cover;
}

.product-detail-image-empty {
  display: grid;
  place-items: center;
  color: #8aa0b9;
}

.product-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.product-detail-badges span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: #426079;
  font-size: 12px;
  font-weight: 900;
}

.product-detail-product strong,
.product-detail-product a,
.product-detail-product p {
  display: block;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-detail-product strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.product-detail-product a,
.product-detail-product p {
  margin-top: 4px;
  color: #35516e;
  font-weight: 800;
}

.product-detail-product p {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  white-space: normal;
}

.product-detail-keyword-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 8px;
  max-width: 560px;
}

.product-detail-keyword-form label {
  flex: 1;
  min-width: 220px;
}

.product-detail-keyword-form label span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  color: #35516e;
  font-size: 12px;
  font-weight: 900;
}

.product-detail-keyword-form input {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #cfe0f2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.product-detail-keyword-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 166, 111, 0.1);
  outline: none;
}

.product-detail-keyword-form button {
  min-height: 36px;
}

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

.product-detail-order-button {
  min-width: 76px;
}

.product-detail-day-label {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.product-detail-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border: 1px solid rgba(0, 159, 112, 0.18);
  border-radius: 999px;
  background: #eefdf6;
  color: #426079;
  font-size: 12px;
  font-weight: 900;
}

.product-detail-date-chip span {
  padding: 0;
  background: transparent;
}

.product-detail-date-chip input,
.product-detail-date-chip select {
  width: 128px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.product-detail-date-chip input:focus,
.product-detail-date-chip select:focus {
  border-color: rgba(0, 159, 112, 0.35);
  outline: 2px solid rgba(0, 159, 112, 0.12);
}

.product-detail-date-chip select:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.product-detail-day-label span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: #426079;
  font-size: 12px;
  font-weight: 900;
}

.product-detail-day-label .product-detail-date-chip span {
  padding: 0;
  background: transparent;
}

.product-detail-hours {
  display: grid;
  grid-template-columns: repeat(12, minmax(78px, 1fr));
  gap: 8px;
}

.product-detail-hour {
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-detail-hour span,
.product-detail-hour strong {
  display: block;
}

.product-detail-hour span {
  color: #74849a;
  font-size: 11px;
  font-weight: 900;
}

.product-detail-hour strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.product-detail-hour.is-checked {
  border-color: rgba(0, 190, 135, 0.32);
  background: #f3fff9;
}

.product-detail-hour.is-checked strong {
  color: var(--accent-dark);
}

.product-detail-hour.is-issue {
  border-color: rgba(239, 47, 85, 0.28);
  background: #fff5f7;
}

.product-detail-hour.is-issue strong {
  color: #ef2f55;
}

.product-detail-hour.is-future {
  background: #f5f8fb;
}

.product-detail-empty {
  padding: 38px;
  color: #64748b;
  font-weight: 900;
  text-align: center;
}

.campaign-panel {
  padding: 20px 18px;
}

.campaign-head {
  margin-bottom: 14px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.tab-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.tab-row span {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.campaign-table-wrap {
  width: 100%;
  overflow: visible;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.campaign-table {
  table-layout: fixed;
  min-width: 0;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
  color: #1f2b3d;
  font-size: 13px;
  font-weight: 780;
}

th {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
}

.campaign-table th:nth-child(1),
.campaign-table td:nth-child(1) {
  width: 40px;
}

.campaign-table th:nth-child(2),
.campaign-table td:nth-child(2) {
  width: 92px;
}

.campaign-table th:nth-child(3),
.campaign-table td:nth-child(3) {
  width: 96px;
}

.campaign-table th:nth-child(4),
.campaign-table td:nth-child(4) {
  width: 32%;
}

.campaign-table th:nth-child(5),
.campaign-table td:nth-child(5) {
  width: 80px;
}

.campaign-table th:nth-child(6),
.campaign-table td:nth-child(6) {
  width: 110px;
}

.campaign-table th:nth-child(7),
.campaign-table td:nth-child(7) {
  width: 96px;
}

.campaign-table th:nth-child(8),
.campaign-table td:nth-child(8) {
  width: 96px;
}

.campaign-table th:nth-child(9),
.campaign-table td:nth-child(9) {
  width: 24%;
}

.campaign-table th:nth-child(10),
.campaign-table td:nth-child(10) {
  width: 92px;
}

.campaign-table th:nth-child(11),
.campaign-table td:nth-child(11),
.campaign-table th:nth-child(12),
.campaign-table td:nth-child(12),
.campaign-table th:nth-child(13),
.campaign-table td:nth-child(13) {
  width: 136px;
  white-space: nowrap;
}

.campaign-table th:nth-child(14),
.campaign-table td:nth-child(14) {
  width: 170px;
  padding-right: 18px;
}

.product-image {
  width: 54px;
  height: 54px;
}

.title-cell a {
  display: grid;
  grid-template-columns: minmax(0, max-content) 24px;
  align-items: center;
  gap: 9px;
  max-width: 100%;
}

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

.campaign-rank-text {
  white-space: nowrap;
}

.keyword-copy-list {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 5px;
  overflow: hidden;
  vertical-align: middle;
}

.keyword-copy-button {
  display: inline-flex;
  align-items: center;
  max-width: 118px;
  height: 26px;
  border: 1px solid #d8e3ee;
  border-radius: 6px;
  background: #ffffff;
  padding: 0 8px;
  color: #263b58;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.keyword-copy-button:hover {
  border-color: rgba(0, 159, 112, 0.42);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.keyword-copy-text {
  display: inline;
  border: 0;
  background: transparent;
  padding: 0;
  color: #263b58;
  font: inherit;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
}

.keyword-copy-text:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.title-cell span {
  min-width: 0;
  max-width: 100%;
  font-weight: 950;
}

.open-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 159, 112, 0.24);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.title-cell a:hover span {
  color: var(--accent-dark);
}

.campaign-cpc-managed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 950;
}

.campaign-cpc-managed-badge svg {
  width: 13px;
  height: 13px;
}

.cpc-convert-campaign {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.cpc-convert-campaign:hover {
  color: #065f46;
  background: #d1fae5;
}

.campaign-more-menu {
  position: relative;
  display: inline-flex;
}

.campaign-more-menu[open] {
  z-index: 80;
}

.campaign-more-toggle {
  cursor: pointer;
  list-style: none;
}

.campaign-more-toggle::-webkit-details-marker {
  display: none;
}

.campaign-more-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 90;
  display: grid;
  min-width: 154px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 27, 45, 0.16);
}

.campaign-more-panel .action-text-button {
  width: 100%;
  justify-content: flex-start;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.status.on {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.status.wait {
  background: var(--blue-soft);
  color: var(--blue);
}

.status.off {
  background: var(--red-soft);
  color: var(--red);
}

.status.refunded {
  background: var(--red-soft);
  color: var(--red);
}

.status.ended {
  background: #eef2f7;
  color: #64748b;
}

.status.review {
  gap: 4px;
  background: var(--red-soft);
  color: var(--red);
}

.status.review svg {
  width: 13px;
  height: 13px;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 58px;
  height: 27px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}

.switch.on {
  justify-content: flex-end;
  background: var(--accent);
}

.switch.off {
  justify-content: flex-start;
  background: #c5d1df;
}

.switch::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: white;
}

.switch.on::after {
  left: 5px;
}

.switch.off::after {
  right: 5px;
}

.switch:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(11, 24, 38, 0.34);
  backdrop-filter: blur(8px);
}

.bulk-modal {
  width: min(860px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  border: 1px solid rgba(205, 216, 228, 0.92);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 27, 45, 0.24);
}

.bulk-modal-head,
.bulk-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}

.bulk-modal-head {
  border-bottom: 1px solid var(--line-soft);
}

.bulk-modal-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.bulk-modal-head h2 {
  margin-top: 7px;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: 0;
}

.bulk-modal-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.bulk-modal-body {
  display: grid;
  gap: 16px;
  padding: 18px 22px 8px;
}

.profile-modal {
  width: min(620px, calc(100vw - 56px));
}

.campaign-notice-modal {
  width: min(460px, calc(100vw - 56px));
}

.campaign-notice-modal-body {
  padding: 22px 24px 4px;
}

.campaign-notice-modal-body p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.6;
  word-break: keep-all;
}

.campaign-notice-modal.is-success .bulk-modal-head span {
  color: var(--accent-dark);
}

.campaign-notice-modal.is-warning .bulk-modal-head span {
  color: #b7791f;
}

.campaign-notice-modal.is-error .bulk-modal-head span {
  color: var(--danger);
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 22px 20px;
}

.profile-form label {
  display: grid;
  gap: 7px;
}

.profile-form-wide,
.profile-message,
.profile-modal-foot {
  grid-column: 1 / -1;
}

.profile-form span {
  color: #405069;
  font-size: 12px;
  font-weight: 900;
}

.profile-form input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 12px;
  outline: 0;
  color: var(--ink);
  font-weight: 850;
}

.profile-form input:disabled {
  background: #f7fafc;
  color: var(--muted);
}

.profile-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 159, 112, 0.12);
}

.profile-message {
  padding: 11px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
}

.profile-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.bulk-guide {
  display: grid;
  grid-template-columns: 200px 1fr 160px;
  gap: 10px;
  align-items: stretch;
}

.bulk-guide > a,
.bulk-guide > div {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 58px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfefd;
  padding: 12px;
}

.sample-download {
  color: var(--accent-dark);
  font-weight: 950;
  text-decoration: none;
}

.bulk-guide strong {
  color: #142238;
  font-size: 12px;
  font-weight: 950;
}

.bulk-guide span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.bulk-dropzone {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 190px;
  border: 1.5px dashed rgba(0, 159, 112, 0.38);
  border-radius: 14px;
  background: linear-gradient(180deg, #f6fffb 0%, #fbfefd 100%);
  padding: 28px;
  text-align: center;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.bulk-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.bulk-dropzone.is-dragging {
  border-color: var(--accent);
  background: #effcf6;
  transform: translateY(-1px);
}

.drop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 28px rgba(0, 159, 112, 0.22);
}

.bulk-dropzone strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.bulk-dropzone small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

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

.bulk-status {
  display: grid;
  grid-template-columns: 94px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfdff;
  padding: 12px 14px;
}

.bulk-status span {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 950;
}

.bulk-status.done span {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.bulk-status.ready span,
.bulk-status.saving span {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.bulk-status.error span {
  background: var(--red-soft);
  color: var(--red);
}

.bulk-status strong {
  color: #1f2b3d;
  font-size: 13px;
  font-weight: 900;
}

.bulk-progress {
  display: grid;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid #ccefe2;
  border-radius: 12px;
  background: #f8fffb;
}

.bulk-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #102037;
  font-size: 12px;
  font-weight: 900;
}

.bulk-progress-head strong {
  color: var(--accent-dark);
  font-weight: 950;
}

.bulk-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eef6;
}

.bulk-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.24s ease;
}

.bulk-progress p {
  margin: 0;
  color: #56677d;
  font-size: 12px;
  font-weight: 820;
}

.bulk-result,
.bulk-errors {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.bulk-result h3,
.bulk-errors h3 {
  font-size: 15px;
  font-weight: 950;
}

.bulk-result-list {
  display: grid;
  gap: 8px;
}

.bulk-result-list div,
.bulk-errors p {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #fbfdff;
  padding: 10px 12px;
}

.bulk-result-list span,
.bulk-errors b {
  color: var(--accent-dark);
  font-weight: 950;
}

.bulk-result-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}

.bulk-result-list small,
.bulk-errors span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.bulk-errors p {
  grid-template-columns: 72px 120px 1fr;
  margin: 0 0 8px;
  background: #fff9fa;
}

.bulk-modal-foot {
  border-top: 1px solid var(--line-soft);
}

.bulk-modal-foot > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.action-text-button .button-spinner {
  border-color: rgba(15, 23, 42, 0.18);
  border-top-color: var(--accent-dark);
}

.table-foot > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pager.active {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.pager-ellipsis {
  color: var(--muted);
  font-weight: 800;
  padding: 0 2px;
}

.table-foot select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #334155;
  font-weight: 900;
}

.member-grid {
  margin-bottom: 16px;
}

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

.issue-form label {
  display: grid;
  gap: 7px;
}

.issue-form label span {
  color: #405069;
  font-size: 12px;
  font-weight: 900;
}

.issue-form input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 12px;
  outline: 0;
  color: var(--ink);
  font-weight: 800;
}

.issue-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 159, 112, 0.12);
}

.member-permission-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 8px;
  min-width: 300px;
}

.member-permission-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfefd;
}

.member-permission-item span {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.member-permission-item .switch {
  min-width: 54px;
}

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

.notice-box {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: #405069;
  font-size: 13px;
  font-weight: 750;
}

.campaign-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
}

.request-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 10px;
  min-width: 360px;
}

.request-summary div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfefd;
}

.request-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.request-summary strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.request-table {
  min-width: 1580px;
}

.request-table th:nth-child(3),
.request-table td:nth-child(3) {
  width: 28%;
}

.request-table th:nth-child(4),
.request-table td:nth-child(4) {
  width: 118px;
}

.request-campaign-cell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.request-campaign-cell div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.request-campaign-cell div span {
  overflow: hidden;
  color: #405069;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-campaign-image {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #f3f7fa;
  object-fit: cover;
}

.request-campaign-image.empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.product-id-cell {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 6px;
  background: #f7fafc;
  padding: 0 8px;
  color: #263b58;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.request-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 24px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.request-type.delete {
  background: var(--red-soft);
  color: var(--red);
}

.request-type.refund {
  background: var(--blue-soft);
  color: var(--blue);
}

.request-actions {
  justify-content: flex-start;
}

.request-done-button {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: rgba(0, 159, 112, 0.28);
}

.request-reject-button {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(220, 38, 38, 0.24);
}

.request-time-cell {
  white-space: nowrap;
}

.muted-text,
.empty-table-cell {
  color: var(--muted);
  font-weight: 850;
}

.empty-table-cell {
  height: 96px;
  text-align: center;
}

.campaign-check:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.rule-list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.rule-list div:last-child {
  border-bottom: 0;
}

.rule-list strong {
  font-size: 13px;
}

.rule-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.unit-price-input {
  width: 92px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 10px;
  outline: 0;
  color: var(--ink);
  font-weight: 900;
}

.unit-price-input:focus,
.usage-date-filter input:focus,
.usage-date-range input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 159, 112, 0.12);
}

.audit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audit-actions select {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 900;
}

.audit-table th,
.audit-table td {
  white-space: nowrap;
}

.processing-table th,
.processing-table td {
  white-space: nowrap;
}

.processing-table .file-name-cell {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.processing-table .selected-row {
  background: #f0fdf8;
}

.processing-detail {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(0, 159, 112, 0.22);
  border-radius: 10px;
  background: #f8fffc;
}

.processing-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.processing-detail-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
}

.processing-detail-head svg {
  width: 16px;
  height: 16px;
}

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

.processing-detail-grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.processing-detail-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.processing-detail-grid strong {
  min-width: 0;
  overflow: hidden;
  color: #061326;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-date-filter {
  display: grid;
  gap: 7px;
  min-width: 180px;
}

.usage-date-filter span {
  color: #405069;
  font-size: 12px;
  font-weight: 900;
}

.usage-date-filter input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 12px;
  outline: 0;
  color: var(--ink);
  font-weight: 900;
}

.usage-date-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr)) auto;
  align-items: end;
  gap: 10px;
  min-width: 460px;
}

.usage-date-range label {
  display: grid;
  gap: 7px;
}

.usage-date-range span {
  color: #405069;
  font-size: 12px;
  font-weight: 900;
}

.usage-date-range input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 12px;
  outline: 0;
  color: var(--ink);
  font-weight: 900;
}

.usage-query-button {
  height: 40px;
  min-width: 88px;
}

.usage-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.usage-summary div {
  display: grid;
  gap: 8px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfefd;
}

.usage-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.usage-summary strong {
  font-size: 20px;
  line-height: 1;
}

.search-api-usage-panel {
  margin-top: 18px;
}

.search-api-usage-summary {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  margin-bottom: 14px;
}

.account-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #0f1b2d;
  font-weight: 950;
  text-align: left;
}

.account-link:hover {
  color: var(--accent-dark);
}

tr.selected-row {
  background: #f1fbf7;
}

.usage-account-row {
  cursor: pointer;
}

.usage-account-row .account-link {
  pointer-events: none;
}

.usage-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.usage-bar {
  width: 160px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3f7;
}

.usage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

tbody tr:hover {
  background: #f8fdfb;
}

@media (max-width: 1500px) {
  body {
    min-width: 1360px;
  }

  .search-box {
    width: 340px;
  }

  .workspace {
    padding-inline: 24px;
  }

  .topbar {
    margin-inline: -24px;
    padding-inline: 24px;
  }
}

/* Dense campaign-console pass matching the previous PC layout */
:root {
  --sidebar: 200px;
  --shadow: 0 12px 32px rgba(15, 27, 45, 0.08);
}

body {
  min-width: 1500px;
  background: #f4f8fb;
  font-size: 14px;
}

.sidebar {
  border-right-color: #dfe7ef;
}

.brand-row {
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 18px 12px 16px;
  border-bottom: 1px solid #edf2f7;
}

.brand-row .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.brand-row .brand-mark::before {
  width: 19px;
  height: 19px;
  font-size: 12px;
}

.brand-row .brand-mark::after {
  inset: 6px;
}

.brand-row strong {
  font-size: 18px;
}

.brand-row small {
  font-size: 9px;
}

.account-card {
  margin: 12px 10px 22px;
  padding: 12px;
  border-radius: 7px;
}

.account-card span {
  min-height: 20px;
  font-size: 10px;
}

.account-card strong {
  margin-top: 9px;
  font-size: 14px;
}

.account-card small {
  font-size: 11px;
}

.side-nav {
  gap: 3px;
  padding: 0 8px;
}

.side-nav p {
  margin: 18px 8px 8px;
  font-size: 10px;
}

.nav-item {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 13px;
}

.sidebar-footer {
  padding: 12px 8px 14px;
}

.sidebar-logout {
  min-height: 38px;
  border-radius: 7px;
  font-size: 12px;
}

.workspace {
  padding: 0 28px 38px;
}

.topbar {
  min-height: 50px;
  margin: 0 -28px 26px;
  padding: 8px 28px 8px;
  background: rgba(255, 255, 255, 0.96);
}

.topbar span {
  margin-bottom: 0;
  font-size: 10px;
}

.topbar h1 {
  font-size: 17px;
}

.topbar p {
  margin-top: 2px;
  font-size: 11px;
}

.search-box {
  width: 352px;
  height: 34px;
  border-radius: 6px;
  font-size: 12px;
}

.ghost-button,
.primary-button,
.icon-button,
.action-text-button,
.pager,
.tab {
  min-height: 34px;
  border-radius: 6px;
  font-size: 12px;
}

.campaign-panel {
  max-width: 1628px;
  margin: 0 auto;
  padding: 16px 17px;
  border-radius: 10px;
}

.campaign-head {
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 22px;
  letter-spacing: 0;
}

.section-head p {
  margin-top: 6px;
  font-size: 13px;
}

.button-row {
  align-self: flex-start;
}

.naver-import-box {
  padding: 18px 16px 15px;
  margin: 12px 0 18px;
  border: 1px solid #bcefdc;
  border-radius: 9px;
  background: #f4fffa;
}

.keyword-rule {
  display: grid;
  grid-template-columns: minmax(0, 44px) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.keyword-rule span {
  height: 1px;
  background: #bcefdc;
}

.keyword-rule strong {
  font-size: 18px;
  line-height: 1;
}

.keyword-rule.bottom {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin: 18px 0 14px;
}

.keyword-rule.bottom strong {
  font-size: 13px;
}

.import-grid {
  display: grid;
  grid-template-columns:
    minmax(300px, 1.4fr)
    130px
    150px
    170px
    170px
    92px
    minmax(240px, 1fr);
  gap: 10px;
  align-items: end;
}

.import-grid label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.import-grid b {
  color: #132136;
  font-size: 12px;
  line-height: 1;
}

.import-grid em {
  color: #ff2450;
  font-style: normal;
}

.import-grid label > span,
.search-filter-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #d8e3ee;
  border-radius: 6px;
  background: white;
  color: #8aa0b8;
}

.import-grid input,
.import-grid select,
.search-filter-row input,
.search-filter-row select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f1b2d;
  font-size: 13px;
  font-weight: 800;
}

.import-grid select {
  appearance: auto;
}

.campaign-cpc-check {
  grid-column: 1 / -1;
  display: inline-flex !important;
  align-items: flex-start;
  gap: 10px !important;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #ccefe2;
  border-radius: 8px;
  background: #f8fffb;
  color: #102037;
}

.campaign-cpc-check input {
  width: 16px !important;
  height: 16px;
  min-width: 16px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}

.campaign-cpc-check > span {
  display: grid !important;
  height: auto !important;
  gap: 3px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.campaign-cpc-check b {
  font-size: 12px;
  font-weight: 950;
}

.campaign-cpc-check small {
  color: #5f7288;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.inflow-combo {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 6px !important;
  padding: 0 8px !important;
}

.inflow-combo.compact {
  display: flex !important;
  align-items: center;
  gap: 5px !important;
  padding: 0 !important;
}

.inflow-combo.compact input {
  max-width: 66px;
}

.inflow-combo.compact select {
  max-width: 72px;
}

.field-days span {
  background: #fbfdff;
}

.register-button {
  width: 100%;
  height: 36px;
  box-shadow: 0 10px 18px rgba(0, 159, 112, 0.18);
}

.register-button.is-loading:disabled {
  opacity: 1;
}

.result-spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid rgba(0, 159, 112, 0.18);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.result-message {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #d8e3ee;
  border-radius: 6px;
  background: white;
  color: #23334b;
  font-size: 12px;
  font-weight: 800;
}

.search-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(92px, 120px);
  gap: 12px;
  margin-bottom: 16px;
}

.search-filter-row.admin-filter-row {
  grid-template-columns: minmax(170px, 0.72fr) repeat(4, minmax(0, 1fr)) minmax(92px, 120px);
}

.search-filter-row select {
  appearance: auto;
  cursor: pointer;
}

.filter-apply-button {
  width: 100%;
  min-height: 36px;
}

.distributor-select {
  background: #f8fffc;
}

.filter-row {
  margin-bottom: 16px;
}

.tab-row {
  gap: 7px;
  margin-bottom: 16px;
  padding: 0;
}

.tab {
  min-width: 64px;
  padding: 0 13px;
}

.campaign-table-wrap {
  border-radius: 8px;
  overflow: visible;
}

th,
td {
  padding: 12px 10px;
  font-size: 12px;
}

th {
  height: 40px;
  font-size: 11px;
}

.campaign-table tbody tr {
  height: 66px;
}

.product-image {
  width: 46px;
  height: 46px;
  border-radius: 7px;
}

.campaign-table th:nth-child(1),
.campaign-table td:nth-child(1) {
  width: 38px;
}

.campaign-table th:nth-child(2),
.campaign-table td:nth-child(2) {
  width: 82px;
}

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

.campaign-table th:nth-child(4),
.campaign-table td:nth-child(4) {
  width: 30%;
}

.campaign-table th:nth-child(5),
.campaign-table td:nth-child(5) {
  width: 72px;
}

.campaign-table th:nth-child(6),
.campaign-table td:nth-child(6) {
  width: 92px;
}

.campaign-table th:nth-child(7),
.campaign-table td:nth-child(7) {
  width: 82px;
}

.campaign-table th:nth-child(8),
.campaign-table td:nth-child(8) {
  width: 78px;
}

.campaign-table th:nth-child(9),
.campaign-table td:nth-child(9) {
  width: 24%;
}

.campaign-table th:nth-child(10),
.campaign-table td:nth-child(10) {
  width: 86px;
}

.campaign-table th:nth-child(11),
.campaign-table td:nth-child(11),
.campaign-table th:nth-child(12),
.campaign-table td:nth-child(12),
.campaign-table th:nth-child(13),
.campaign-table td:nth-child(13) {
  width: 136px;
  white-space: nowrap;
}

.campaign-table th:nth-child(14),
.campaign-table td:nth-child(14) {
  width: 170px;
  padding-right: 12px;
}

.title-cell span {
  font-size: 13px;
}

.title-cell a {
  grid-template-columns: minmax(0, auto) 23px;
}

.open-icon {
  width: 22px;
  height: 22px;
}

.keyword-cell {
  color: #334866;
  font-size: 11px;
}

.status {
  min-height: 22px;
  padding: 0 9px;
  font-size: 11px;
}

.switch {
  width: 54px;
  height: 25px;
  font-size: 10px;
}

.switch::after {
  top: 4px;
  width: 17px;
  height: 17px;
}

.table-foot {
  padding-top: 12px;
  font-size: 12px;
}

/* Final restoration pass: stronger typography and working-state UI */
.is-hidden {
  display: none !important;
}

body {
  font-family:
    "Pretendard Variable", Pretendard, Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 760;
  letter-spacing: 0;
}

.campaign-panel {
  max-width: 1588px;
  padding: 18px;
}

.section-head h2 {
  font-size: 23px;
  font-weight: 950;
}

.section-head p,
.topbar p {
  color: #56677d;
  font-weight: 760;
}

.topbar h1 {
  font-size: 18px;
  font-weight: 950;
}

.topbar span {
  font-weight: 950;
}

.nav-item,
.account-card strong,
.button-row button,
.tab,
th,
td,
.title-cell span,
.keyword-cell,
.result-message,
.import-grid input,
.import-grid select,
.search-filter-row input,
.search-filter-row select {
  font-weight: 850;
}

th {
  color: #5e7189;
  font-size: 11px;
  font-weight: 950;
}

td {
  color: #132136;
  font-size: 12.5px;
}

.campaign-table tbody tr {
  height: 68px;
}

.title-cell span {
  font-size: 13px;
  color: #071324;
}

.keyword-cell {
  color: #263b58;
  font-size: 11.5px;
}

.naver-import-box {
  animation: panel-open 160ms ease both;
}

.edit-input {
  width: 100%;
  height: 32px;
  min-width: 0;
  padding: 0 9px;
  border: 1px solid #cfdbe8;
  border-radius: 6px;
  background: #fff;
  color: #0f1b2d;
  font-size: 12px;
  font-weight: 850;
  outline: 0;
}

.edit-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 159, 112, 0.11);
}

.edit-input.short {
  max-width: 70px;
}

.edit-input.keyword {
  max-width: 88px;
}

.campaign-keyword-readonly {
  width: 100%;
  min-height: 32px;
  max-height: 48px;
  overflow: hidden;
  padding: 7px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #f8fafc;
  color: #475569;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.edit-input.date {
  width: 126px;
  min-width: 126px;
}

.edit-actions {
  display: flex;
  gap: 6px;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-start;
}

.refund-campaign {
  color: #b45309;
  background: #fff7ed;
  border-color: #fed7aa;
}

.refund-campaign:hover {
  color: #92400e;
  background: #ffedd5;
}

.extend-campaign {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.extend-campaign:hover {
  color: #065f46;
  background: #d1fae5;
}

.editing-row {
  background: #f7fffb;
}

.extension-row {
  background: #f5fbff;
}

.editing-row td {
  vertical-align: middle;
}

.campaign-table .icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
}

.campaign-table .action-text-button {
  min-height: 34px;
  min-width: 42px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 950;
}

.campaign-slot-row {
  cursor: pointer;
  transition:
    background 140ms ease,
    box-shadow 140ms ease;
}

.campaign-slot-row:hover,
.campaign-slot-row.is-expanded {
  background: #f2fbf7;
  box-shadow: inset 3px 0 0 var(--accent);
}

.campaign-slot-row.needs-review {
  background: #fff7f7;
  box-shadow: inset 3px 0 0 var(--red);
}

.review-note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
}

.review-note svg {
  width: 13px;
  height: 13px;
}

.campaign-slot-row:hover .title-cell span {
  color: var(--accent-dark);
}

.tab.review-tab {
  border-color: rgba(239, 68, 68, 0.24);
  color: var(--red);
}

.tab.review-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.rank-detail-row {
  height: auto !important;
  background: #f8fbff;
}

.rank-detail-row td {
  padding: 0 14px 16px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.rank-detail-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d8efe6;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fffc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.rank-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.rank-detail-head div {
  min-width: 0;
}

.rank-detail-head span {
  display: block;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

.rank-detail-head strong {
  display: block;
  margin-top: 4px;
  color: #071324;
  font-size: 16px;
  font-weight: 950;
}

.rank-detail-head p {
  max-width: 980px;
  margin-top: 5px;
  overflow: hidden;
  color: #56677d;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-current {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.rank-current span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.rank-detail-head b {
  flex: 0 0 auto;
  min-width: 84px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  text-align: center;
  font-size: 13px;
  font-weight: 950;
}

.rank-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(106px, 1fr));
  gap: 8px;
}

.rank-day {
  display: grid;
  gap: 5px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
}

.rank-day span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #7890ab;
  font-size: 11px;
  font-weight: 850;
}

.rank-day span em {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.rank-day strong {
  color: #132136;
  font-size: 14px;
  font-weight: 950;
}

.rank-day.good {
  border-color: rgba(0, 159, 112, 0.28);
  background: #ecfff6;
}

.rank-day.good strong {
  color: var(--accent-dark);
}

.rank-day.mid {
  border-color: rgba(0, 111, 201, 0.22);
  background: #f1f8ff;
}

.rank-day.mid strong {
  color: #005ca8;
}

.rank-day.out {
  border-color: #e8eef5;
  background: #fbfcfe;
}

.rank-day.future {
  background: #f5f8fb;
}

.rank-day.future strong {
  color: #8aa0b9;
}

@keyframes panel-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.keyword-tool-panel {
  max-width: 1240px;
  margin: 0 auto;
}

.keyword-tool-head {
  align-items: flex-start;
}

.keyword-tool-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.keyword-usage-panel {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfefd;
}

.keyword-usage-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.keyword-usage-panel-head span {
  display: block;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 950;
}

.keyword-usage-panel-head strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.keyword-usage-panel-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.keyword-usage-table {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #fff;
}

.keyword-usage-table-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 82px 96px 96px 112px 76px;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border-top: 1px solid var(--line-soft);
  color: #1b2c44;
  font-size: 12px;
  font-weight: 850;
}

.keyword-usage-table-row:first-child {
  border-top: 0;
}

.keyword-usage-table-row.head {
  background: #f5f8fb;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.keyword-usage-table-row strong,
.keyword-usage-table-row b {
  color: #061326;
  font-weight: 950;
}

.keyword-usage-empty {
  display: grid;
  place-items: center;
  min-height: 42px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.keyword-usage-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #ccefe2;
  border-radius: 9px;
  background: #f5fffb;
  color: #42556f;
  font-size: 12px;
  font-weight: 900;
}

.keyword-usage-chip svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.keyword-usage-chip strong {
  color: var(--accent-dark);
  font-weight: 950;
}

.keyword-tool-form {
  display: grid;
  grid-template-columns: minmax(320px, 1.55fr) minmax(150px, 0.58fr) minmax(150px, 0.58fr) 112px auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid #bcefdc;
  border-radius: 10px;
  background: #f2fffa;
}

.keyword-tool-form label {
  display: grid;
  gap: 8px;
}

.keyword-tool-form b {
  color: #102037;
  font-size: 12px;
  font-weight: 950;
}

.keyword-tool-form em {
  color: var(--red);
  font-style: normal;
}

.keyword-tool-form small {
  margin-left: 5px;
  color: #9aabc0;
  font-size: 11px;
  font-weight: 850;
}

.keyword-tool-form label > span {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #91a4bb;
}

.keyword-tool-form input,
.keyword-tool-form select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.keyword-tool-form select {
  appearance: auto;
  cursor: pointer;
}

.keyword-tool-cpc-check {
  grid-column: 1 / -2;
  display: inline-flex !important;
  align-items: center;
  gap: 10px !important;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d7ecdf;
  border-radius: 8px;
  background: #f8fffb;
}

.keyword-tool-cpc-check input {
  width: 16px !important;
  height: 16px;
  min-width: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.keyword-tool-cpc-check > span {
  display: block !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #102037 !important;
}

.keyword-tool-cpc-check b {
  display: block;
  font-size: 12px;
}

.keyword-tool-cpc-check small {
  display: block;
  margin: 2px 0 0;
  color: #71849b;
  font-size: 11px;
  font-weight: 800;
}

.keyword-tool-cpc-options {
  grid-column: 1 / -2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.keyword-tool-cpc-options .keyword-tool-cpc-check {
  grid-column: auto;
}

.keyword-tool-auto-register-dates {
  grid-column: 1 / -2;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 240px));
  gap: 10px;
}

.keyword-tool-auto-register-dates label {
  display: grid;
  gap: 8px;
}

.keyword-tool-submit {
  height: 42px;
  min-width: 170px;
}

.keyword-tool-submit[disabled] svg,
.keyword-tool-message.loading svg {
  animation: spin 0.8s linear infinite;
}

.keyword-tool-message {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #405069;
  font-size: 13px;
  font-weight: 850;
}

.keyword-tool-message.has-action {
  justify-content: space-between;
  flex-wrap: wrap;
}

.keyword-tool-message-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.keyword-tool-message-main span {
  min-width: 0;
}

.cpc-force-register-button {
  min-height: 30px;
  padding: 0 11px;
  border-color: #fecdd3;
  background: #fff;
  color: var(--red);
}

.cpc-force-register-button:hover {
  border-color: #fb7185;
  background: #fff5f7;
}

.keyword-tool-message.success,
.keyword-tool-message.empty {
  border-color: #ccefe2;
  background: #f5fffb;
  color: var(--accent-dark);
}

.keyword-tool-message.error {
  border-color: #ffd1d8;
  background: #fff3f5;
  color: var(--red);
}

.keyword-progress {
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid #ccefe2;
  border-radius: 10px;
  background: #f8fffb;
}

.keyword-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #102037;
  font-size: 12px;
  font-weight: 900;
}

.keyword-progress-head strong {
  color: var(--accent-dark);
  font-weight: 950;
}

.keyword-progress-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eef6;
}

.keyword-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.24s ease;
}

.keyword-progress p {
  margin: 8px 0 0;
  color: #56677d;
  font-size: 12px;
  font-weight: 800;
}

.cpc-ad-progress {
  margin-top: 10px;
}

.bulk-progress .cpc-ad-progress {
  margin-top: 4px;
  padding: 11px 12px;
  background: #ffffff;
}

.keyword-cpc-debug {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
}

.keyword-cpc-debug-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.keyword-cpc-debug-head span {
  display: block;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 950;
}

.keyword-cpc-debug-head strong {
  display: block;
  margin-top: 3px;
  color: #071324;
  font-size: 14px;
  font-weight: 950;
}

.keyword-cpc-debug-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.keyword-cpc-debug-list {
  display: grid;
  gap: 6px;
}

.keyword-cpc-debug-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.75fr) 54px minmax(160px, 1fr) minmax(180px, 1.25fr);
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #fbfcfe;
}

.keyword-cpc-debug-row b,
.keyword-cpc-debug-row small,
.keyword-cpc-debug-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.keyword-cpc-debug-row b {
  color: #102037;
  font-size: 12px;
  font-weight: 900;
}

.keyword-cpc-debug-row span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
}

.keyword-cpc-debug-row.blocked span {
  color: var(--red);
}

.keyword-cpc-debug-row small {
  color: #405069;
  font-size: 12px;
  font-weight: 800;
}

.keyword-cpc-debug-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.keyword-cpc-debug-empty {
  padding: 11px;
  border: 1px dashed #d6e2ee;
  border-radius: 8px;
  background: #f8fbfd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.keyword-tool-result {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-top: 16px;
}

.keyword-tool-product,
.keyword-result-card {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
}

.keyword-tool-product {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 13px;
  padding: 14px;
}

.keyword-tool-image {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #f4f8fb;
  color: #8aa0b9;
}

.keyword-tool-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.keyword-tool-product span,
.keyword-result-head span {
  display: block;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 950;
}

.keyword-tool-product strong {
  display: block;
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  color: #071324;
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.keyword-tool-product small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.keyword-result-card {
  padding: 14px;
}

.keyword-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.keyword-result-head h3 {
  margin-top: 4px;
  font-size: 18px;
}

.keyword-chip-list {
  display: grid;
  gap: 8px;
}

.keyword-copy-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfd;
}

.keyword-copy-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
}

.keyword-copy-row strong {
  overflow: hidden;
  color: #12233a;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.keyword-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef7ff;
  color: #2563eb;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.keyword-rank-badge:empty {
  min-width: 0;
  padding: 0;
}

.empty-keyword-result {
  display: grid;
  place-items: center;
  min-height: 146px;
  border: 1px dashed #d6e2ee;
  border-radius: 8px;
  background: #f8fbfd;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.toss-check-panel {
  max-width: 1628px;
  margin: 0 auto;
}

.toss-check-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(420px, 1.25fr);
  gap: 16px;
  align-items: stretch;
}

.toss-check-upload,
.toss-check-preview,
.toss-check-summary,
.toss-check-text {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfd;
}

.toss-check-upload {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.toss-check-dropzone {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 22px;
  border: 1px dashed #9fcdbf;
  border-radius: 10px;
  background: #f5fffb;
  text-align: center;
  cursor: pointer;
}

.toss-check-dropzone input {
  display: none;
}

.toss-check-dropzone.is-dragging,
.toss-check-dropzone:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 159, 112, 0.12);
}

.toss-check-dropzone strong {
  margin-top: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.toss-check-dropzone small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.toss-check-file-list {
  display: grid;
  gap: 8px;
}

.toss-check-file-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.toss-check-file-list span > svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex: 0 0 auto;
}

.toss-check-file-list .icon-button {
  width: 24px;
  height: 24px;
  margin-left: auto;
  flex: 0 0 auto;
}

.toss-check-analyze {
  width: 100%;
}

.toss-check-safe {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  background: white;
  color: #405069;
  font-size: 12px;
  font-weight: 800;
}

.toss-check-safe strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.toss-check-preview {
  display: grid;
  grid-template-rows: minmax(230px, 1fr) auto;
  gap: 12px;
  min-height: 310px;
  padding: 14px;
  overflow: hidden;
  cursor: text;
}

.toss-check-preview:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 159, 112, 0.12);
}

.toss-check-preview-stage {
  display: grid;
  place-items: center;
  min-height: 230px;
  overflow: auto;
}

.toss-check-preview-stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  background: white;
}

.toss-check-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  width: 100%;
  align-self: stretch;
}

.toss-check-preview-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(120px, 1fr) auto;
  gap: 8px;
  min-height: 170px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.toss-check-preview-card img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
}

.toss-check-preview-card span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toss-check-remove-image {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.92);
}

.toss-check-paste-hint {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px dashed #9fcdbf;
  border-radius: 8px;
  background: #f5fffb;
  text-align: center;
}

.toss-check-paste-hint strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.toss-check-paste-hint small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.toss-check-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  color: #7b8ba1;
  font-weight: 900;
}

.toss-check-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: 16px;
  margin-top: 16px;
}

.toss-check-text {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.toss-check-text b,
.toss-check-summary b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.toss-check-text textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  outline: 0;
  color: #253247;
  font-size: 13px;
  line-height: 1.55;
}

.toss-check-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.toss-check-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  background: white;
}

.toss-check-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.toss-check-summary strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.toss-check-table-wrap {
  margin-top: 16px;
}

.toss-check-table th,
.toss-check-table td {
  white-space: nowrap;
}

.status.warning {
  background: #fff7ed;
  color: #c2410c;
}

@media (max-width: 1020px) {
  .keyword-tool-form,
  .keyword-tool-result,
  .toss-check-layout,
  .toss-check-grid {
    grid-template-columns: 1fr;
  }

  .keyword-tool-submit {
    width: 100%;
  }

  .keyword-tool-cpc-check {
    grid-column: 1;
  }

  .keyword-tool-cpc-options,
  .keyword-tool-auto-register-dates {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .keyword-cpc-debug-head,
  .keyword-cpc-debug-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .keyword-cpc-debug-head small {
    text-align: left;
  }
}

/* Wide operations table: keep product titles and all top-5 keywords readable. */
.campaign-panel {
  width: 100%;
  max-width: none;
  margin: 0;
}

.campaign-table-wrap {
  overflow: visible;
}

.campaign-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.campaign-table th:nth-child(4),
.campaign-table td:nth-child(4) {
  min-width: 0;
  width: 25%;
}

.campaign-table th:nth-child(9),
.campaign-table td:nth-child(9) {
  min-width: 0;
  width: 26%;
}

.campaign-table .title-cell,
.campaign-table .keyword-cell {
  overflow: hidden;
}

.campaign-table td:last-child,
.campaign-table td:last-child .row-actions {
  overflow: visible;
}

.campaign-table .title-cell a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 23px;
  width: 100%;
  max-width: 100%;
}

.campaign-table .title-cell span,
.campaign-table .keyword-cell {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-table .keyword-copy-text {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.campaign-rank-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.9fr);
  gap: 12px;
  margin: 12px 0 22px;
  animation: panel-open 160ms ease both;
}

.rank-summary-lead,
.rank-summary-movement {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.rank-summary-lead {
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.rank-summary-title {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
}

.rank-summary-title span {
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 950;
}

.rank-summary-title strong {
  color: #071324;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.2;
}

.rank-summary-title small {
  color: #64748b;
  font-size: 11px;
  font-weight: 780;
  line-height: 1.45;
}

.rank-bucket-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.rank-bucket {
  display: grid;
  align-content: space-between;
  gap: 8px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfdff;
  transition:
    border-color 140ms ease,
    transform 140ms ease;
}

.rank-bucket:hover {
  transform: translateY(-1px);
  border-color: #bdd7ea;
}

.rank-bucket-main {
  display: grid;
  gap: 3px;
}

.rank-bucket span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.rank-bucket strong {
  color: #071324;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.rank-bucket-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 1px;
}

.rank-bucket-flow span {
  padding: 3px 7px;
  border-radius: 999px;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}

.rank-bucket-flow .flow-up {
  background: #e6f8ef;
  color: #047857;
}

.rank-bucket-flow .flow-down {
  background: #fff0f0;
  color: #dc2626;
}

.rank-bucket i {
  display: block;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef5;
}

.rank-bucket i::before {
  display: block;
  width: var(--rank-bar);
  height: 100%;
  border-radius: inherit;
  background: #009f70;
  content: "";
}

.rank-bucket.top100 i::before {
  background: #0b74d1;
}

.rank-bucket.top1000 i::before {
  background: #f59e0b;
}

.rank-bucket.out i::before {
  background: #94a3b8;
}

.rank-summary-movement {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.movement-cell {
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 13px;
  border-right: 1px solid var(--line-soft);
}

.movement-cell span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.movement-cell svg {
  width: 15px;
  height: 15px;
}

.movement-cell strong {
  color: #071324;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.movement-cell b {
  justify-self: start;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #405069;
  font-size: 11px;
  font-weight: 950;
}

.movement-cell.up span,
.movement-cell.up b {
  color: #047857;
}

.movement-cell.up b {
  background: #dcfce7;
}

.movement-cell.down span,
.movement-cell.down b {
  color: #dc2626;
}

.movement-cell.down b {
  background: #fee2e2;
}

.movement-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 36px;
  padding: 9px 13px;
  border-top: 1px solid var(--line-soft);
  background: #f8fafc;
  overflow: hidden;
}

.movement-note span {
  color: #132136;
  font-size: 12px;
  font-weight: 950;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movement-note small {
  color: #64748b;
  font-size: 11px;
  font-weight: 780;
}

@media (max-width: 1180px) {
  .campaign-rank-summary,
  .rank-summary-lead {
    grid-template-columns: 1fr;
  }

  .rank-summary-movement {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .rank-bucket-grid,
  .rank-summary-movement {
    grid-template-columns: 1fr 1fr;
  }

  .movement-note {
    align-items: center;
  }
}

/* Campaign table readability pass */
.campaign-table th {
  color: #6b7d94;
  font-weight: 800;
}

.campaign-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
  text-align: left;
}

.campaign-sort-button b {
  color: #9aaac0;
  font-size: 12px;
  line-height: 1;
}

.campaign-sort-button.active {
  color: #17243a;
}

.campaign-sort-button.active b {
  color: #2563eb;
}

.campaign-sort-button:hover {
  color: #17243a;
}

.server-management-view {
  display: grid;
  gap: 18px;
}

.server-health-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #bcefdc;
  border-radius: 12px;
  background: #f4fffa;
  box-shadow: var(--shadow);
}

.server-health-overview.is-warning {
  border-color: #fed7aa;
  background: #fffaf0;
}

.server-health-overview.is-danger {
  border-color: #fecaca;
  background: #fff5f5;
}

.server-health-overview.is-loading {
  border-color: #dbe5ef;
  background: #fbfdff;
}

.server-health-overview.is-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px 14px;
  margin-top: 18px;
}

.server-health-overview.is-compact .server-health-main {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
}

.server-health-overview.is-compact .server-health-main > span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.server-health-overview.is-compact .server-health-main i {
  width: 18px;
  height: 18px;
}

.server-health-overview.is-compact .server-health-main strong {
  margin-top: 2px;
  font-size: 17px;
}

.server-health-overview.is-compact .server-health-main p {
  margin-top: 3px;
  font-size: 11px;
}

.server-health-main {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.server-health-main > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #dff7ee;
  color: var(--accent-dark);
}

.server-health-overview.is-warning .server-health-main > span {
  background: #ffedd5;
  color: #ea580c;
}

.server-health-overview.is-danger .server-health-main > span {
  background: #ffe4e6;
  color: #e11d48;
}

.server-health-main i {
  width: 22px;
  height: 22px;
}

.server-health-main b,
.server-health-main strong,
.server-health-main p {
  display: block;
}

.server-health-main b {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
}

.server-health-overview.is-warning .server-health-main b {
  color: #c2410c;
}

.server-health-overview.is-danger .server-health-main b {
  color: #be123c;
}

.server-health-main strong {
  margin-top: 4px;
  color: #071226;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
}

.server-health-main p {
  margin: 6px 0 0;
  color: #516178;
  font-size: 13px;
  font-weight: 800;
}

.server-health-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.server-health-meta span {
  padding: 6px 8px;
  border: 1px solid #dbe5ef;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}

.server-health-issues {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.server-health-issue,
.server-health-empty {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid #e1eaf2;
  border-radius: 8px;
  background: #ffffff;
}

.server-health-empty {
  display: flex;
  align-items: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.server-health-empty i {
  width: 16px;
  height: 16px;
  color: var(--accent-dark);
}

.server-health-issue > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff7ed;
  color: #ea580c;
}

.server-health-issue.is-danger > span {
  background: #fff1f2;
  color: #e11d48;
}

.server-health-issue i {
  width: 16px;
  height: 16px;
}

.server-health-issue strong {
  display: block;
  color: #17243a;
  font-size: 13px;
  font-weight: 950;
}

.server-health-issue p {
  margin: 3px 0 0;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.server-health-issue small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.server-health-link {
  justify-self: end;
}

.server-health-compact-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.server-health-overview.is-compact .server-health-link {
  min-height: 34px;
  padding-inline: 12px;
  white-space: nowrap;
}

.server-health-compact-note {
  padding: 7px 9px;
  border: 1px solid #dbe5ef;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.server-resource-panel {
  margin-top: 18px;
}

.server-resource-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  width: max-content;
  min-width: 0;
  padding: 8px 11px;
  border: 1px solid #bcefdc;
  border-radius: 8px;
  background: #f4fffa;
  color: var(--accent-dark);
  text-align: left;
  white-space: nowrap;
}

.server-resource-status > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.server-resource-status i {
  width: 18px;
  height: 18px;
}

.server-resource-status b {
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.server-resource-status small {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.server-resource-status.is-error {
  border-color: #fecaca;
  background: #fff5f5;
  color: #dc2626;
}

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

.server-resource-card {
  min-width: 0;
  min-height: 156px;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #fbfdff;
}

.server-resource-title {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.server-resource-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e8f8f2;
  color: var(--accent-dark);
}

.server-resource-title i {
  width: 16px;
  height: 16px;
}

.server-resource-title b {
  color: #17243a;
  font-size: 13px;
  font-weight: 950;
}

.server-resource-title strong {
  color: #071226;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.server-resource-bar {
  height: 9px;
  overflow: hidden;
  margin-top: 17px;
  border-radius: 999px;
  background: #e7edf4;
}

.server-resource-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.25s ease;
}

.server-resource-card.is-warning .server-resource-title span {
  background: #fff7ed;
  color: #ea580c;
}

.server-resource-card.is-warning .server-resource-bar i {
  background: #f59e0b;
}

.server-resource-card.is-danger .server-resource-title span {
  background: #fff1f2;
  color: #e11d48;
}

.server-resource-card.is-danger .server-resource-bar i {
  background: #ef4444;
}

.server-resource-card.is-muted .server-resource-title span {
  background: #eef2f7;
  color: #64748b;
}

.server-resource-card p {
  margin: 12px 0 0;
  color: #17243a;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.server-resource-card small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.server-process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}

.server-process-list div {
  min-width: 0;
  padding: 8px;
  border-radius: 7px;
  background: #f3f7fb;
}

.server-process-list dt,
.server-process-list dd {
  margin: 0;
}

.server-process-list dt {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.server-process-list dd {
  margin-top: 3px;
  color: #17243a;
  font-size: 12px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-runtime-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.server-runtime-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e1eaf2;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-runtime-strip i {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: #0f9f76;
}

.server-load-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
  margin-top: 12px;
}

.server-load-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1eaf2;
  border-radius: 9px;
  background: #ffffff;
}

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

.server-load-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #17243a;
  font-size: 14px;
  font-weight: 950;
}

.server-load-head h3 i {
  width: 16px;
  height: 16px;
  color: var(--accent-dark);
}

.server-load-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.server-load-head > strong {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef8f4;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 950;
}

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

.server-load-columns > div > b {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 11px;
  font-weight: 950;
}

.server-resource-peak-list {
  margin-top: 10px;
}

.server-resource-peak-list > b {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 11px;
  font-weight: 950;
}

.server-load-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #eef3f7;
}

.server-load-row > span {
  color: #17243a;
  font-size: 12px;
  font-weight: 950;
}

.server-load-row b,
.server-load-row small {
  display: block;
}

.server-load-row b {
  color: #17243a;
  font-size: 12px;
  font-weight: 950;
}

.server-load-row small {
  margin-top: 2px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.server-load-row i,
.server-route-row > i {
  display: block;
  height: 5px;
  overflow: hidden;
  margin-top: 6px;
  border-radius: 999px;
  background: #e7edf4;
}

.server-load-row em,
.server-route-row > i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #22c55e;
}

.server-route-list {
  display: grid;
  gap: 8px;
}

.server-route-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 10px;
  padding: 10px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #fbfdff;
}

.server-route-row strong,
.server-route-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-route-row strong {
  color: #17243a;
  font-size: 12px;
  font-weight: 950;
}

.server-route-row small {
  margin-top: 4px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.server-route-row dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
}

.server-route-row dt,
.server-route-row dd {
  margin: 0;
}

.server-route-row dt {
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
}

.server-route-row dd {
  margin-top: 2px;
  color: #17243a;
  font-size: 11px;
  font-weight: 950;
}

.server-route-row > i {
  grid-column: 1 / -1;
  margin-top: 0;
}

.server-route-row.is-heavy > i em {
  background: #f59e0b;
}

.server-route-row.is-error {
  border-color: #fecaca;
  background: #fff7f7;
}

.server-route-row.is-error > i em {
  background: #ef4444;
}

.server-load-empty {
  padding: 12px;
  border: 1px dashed #dbe5ef;
  border-radius: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.server-incident-panel {
  margin-top: 0;
}

.server-incident-list {
  display: grid;
  gap: 8px;
}

.server-incident-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 9px;
  background: #fff7f7;
}

.server-incident-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #ffe4e6;
  color: #e11d48;
}

.server-incident-item i {
  width: 18px;
  height: 18px;
}

.server-incident-item strong,
.server-incident-item p,
.server-incident-item small,
.server-incident-item em {
  display: block;
}

.server-incident-item strong {
  color: #17243a;
  font-size: 13px;
  font-weight: 950;
}

.server-incident-item p {
  margin: 4px 0 0;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
}

.server-incident-item small {
  margin-top: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.server-incident-item em {
  margin-top: 6px;
  color: #991b1b;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.campaign-table td {
  color: #2c3b52;
  font-weight: 620;
  line-height: 1.38;
}

.campaign-table td strong {
  color: #17243a;
  font-weight: 740;
}

.campaign-table td:nth-child(3) strong {
  font-weight: 800;
}

.title-cell span {
  color: #111f34;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.campaign-table td:nth-child(5) strong,
.campaign-table td:nth-child(6) strong,
.campaign-table td:nth-child(7) strong {
  font-weight: 760;
}

.campaign-table td:nth-child(8),
.campaign-table td:nth-child(11),
.campaign-table td:nth-child(12),
.campaign-table td:nth-child(13) {
  color: #42546d;
  font-weight: 640;
}

.keyword-cell,
.keyword-copy-text {
  color: #43566f;
  font-weight: 620;
  line-height: 1.35;
}

.campaign-table .status {
  font-weight: 760;
}

.campaign-table th:nth-child(4),
.campaign-table td:nth-child(4) {
  width: 20%;
}

.campaign-table th:nth-child(9),
.campaign-table td:nth-child(9) {
  width: 58px;
  text-align: center;
}

.campaign-table th:nth-child(10),
.campaign-table td:nth-child(10) {
  width: 15%;
}

.campaign-table th:nth-child(11),
.campaign-table td:nth-child(11) {
  width: 82px;
}

.campaign-table th:nth-child(12),
.campaign-table td:nth-child(12),
.campaign-table th:nth-child(13),
.campaign-table td:nth-child(13),
.campaign-table th:nth-child(14),
.campaign-table td:nth-child(14) {
  width: 124px;
  white-space: nowrap;
}

.campaign-table th:nth-child(15),
.campaign-table td:nth-child(15) {
  width: 232px;
  padding-right: 10px;
}

.campaign-table th:nth-child(7),
.campaign-table td:nth-child(7) {
  width: 112px;
  padding-right: 18px;
}

.campaign-table th:nth-child(8),
.campaign-table td:nth-child(8) {
  width: 92px;
  padding-left: 18px;
}

.memo-cell {
  overflow: visible;
}

.campaign-memo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  background: #ffffff;
  color: #8aa0b9;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.campaign-memo-button:hover,
.campaign-memo-button.has-memo {
  border-color: rgba(0, 159, 112, 0.34);
  background: #ecfdf5;
  color: var(--accent-dark);
}

.campaign-memo-button i,
.campaign-memo-button svg {
  width: 16px;
  height: 16px;
}

.campaign-memo-modal {
  width: min(560px, calc(100vw - 56px));
}

.campaign-memo-form {
  display: grid;
  gap: 14px;
  padding: 18px 22px 20px;
}

.campaign-memo-form label {
  display: grid;
  gap: 8px;
}

.campaign-memo-form label span {
  color: #405069;
  font-size: 12px;
  font-weight: 850;
}

.campaign-memo-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  color: #132136;
  font: inherit;
  font-weight: 620;
  line-height: 1.5;
  outline: none;
}

.campaign-memo-form textarea:focus {
  border-color: rgba(0, 159, 112, 0.52);
  box-shadow: 0 0 0 3px rgba(0, 159, 112, 0.1);
}

.campaign-extension-modal {
  width: min(980px, calc(100vw - 56px));
}

.campaign-extension-form {
  display: grid;
  gap: 16px;
  padding: 18px 22px 20px;
}

.extension-source-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.extension-source-card img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: #fff;
}

.extension-source-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
}

.extension-source-card strong {
  display: block;
  color: #071226;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}

.extension-source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: #1f2d44;
  font-size: 12px;
  font-weight: 760;
}

.extension-source-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.extension-source-meta b,
.extension-copy-grid span,
.extension-date-grid span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.extension-copy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.extension-copy-grid label,
.extension-date-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.extension-readonly-box {
  min-height: 44px;
  max-height: 92px;
  overflow: auto;
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

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

.extension-date-grid input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  box-sizing: border-box;
  color: #071226;
  font-size: 14px;
  font-weight: 800;
  outline: none;
}

.extension-date-grid input:focus {
  border-color: rgba(0, 159, 112, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 159, 112, 0.09);
}

.cpc-products-panel {
  max-width: 1580px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.cpc-products-head {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(840px, auto);
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.cpc-products-title {
  min-width: 0;
  max-width: 520px;
}

.cpc-products-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.cpc-products-head h2 {
  color: #071226;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.cpc-products-head p {
  margin-top: 5px;
  color: #53657e;
  font-size: 13px;
  font-weight: 750;
  max-width: 440px;
  line-height: 1.35;
}

.cpc-head-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.cpc-owner-filter {
  display: inline-grid;
  gap: 6px;
  width: 152px;
}

.cpc-products-head .cpc-owner-filter span {
  margin: 0;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.cpc-owner-filter select {
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #071226;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  outline: none;
}

.cpc-owner-filter select:focus {
  border-color: rgba(0, 159, 112, 0.52);
  box-shadow: 0 0 0 3px rgba(0, 159, 112, 0.09);
}

.cpc-expired-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 152px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #405069;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.cpc-expired-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.cpc-head-actions .ghost-button {
  width: 152px;
  min-height: 42px;
  padding: 0 12px;
}

#whale-cpc-spreadsheet-download,
#moss-cpc-spreadsheet-download {
  text-align: center;
  white-space: normal;
}

#cpc-products-neo-import-open {
  text-align: center;
  white-space: normal;
}

#whale-cpc-spreadsheet-download .whale-spreadsheet-button-label,
#moss-cpc-spreadsheet-download .whale-spreadsheet-button-label,
#cpc-products-neo-import-open .neo-import-button-label {
  display: inline-block;
  line-height: 1.18;
}

.cpc-products-form {
  display: grid;
  grid-template-columns: 110px minmax(260px, 1.35fr) minmax(220px, 0.95fr) 110px 150px 150px 130px;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #bceedd;
  border-radius: 12px;
  background: #f1fff8;
}

.cpc-products-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.cpc-products-form label span {
  color: #17304d;
  font-size: 12px;
  font-weight: 900;
}

.cpc-products-form input,
.cpc-products-form textarea,
.cpc-products-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #d7e3ee;
  border-radius: 8px;
  background: #fff;
  color: #071226;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  outline: none;
}

.cpc-products-form input {
  padding: 0 12px;
}

.cpc-products-form select {
  padding: 0 34px 0 12px;
}

.cpc-products-form textarea {
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 10px 12px;
  resize: none;
  line-height: 1.45;
  overflow-y: auto;
}

.cpc-products-form input:focus,
.cpc-products-form textarea:focus,
.cpc-products-form select:focus {
  border-color: rgba(0, 159, 112, 0.52);
  box-shadow: 0 0 0 3px rgba(0, 159, 112, 0.09);
}

.cpc-products-form .primary-button {
  width: 100%;
  min-height: 42px;
}

@media (max-width: 1320px) {
  .cpc-products-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cpc-products-head {
    grid-template-columns: 1fr;
  }

  .cpc-products-title {
    max-width: none;
  }

  .cpc-products-head p {
    max-width: none;
  }

  .cpc-head-actions {
    justify-content: flex-start;
  }
}

.cpc-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.cpc-summary-grid.has-registration-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.cpc-summary-grid > div {
  min-height: 96px;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfdff;
}

.cpc-summary-grid span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.cpc-summary-grid strong {
  display: block;
  margin-top: 6px;
  color: #071226;
  font-size: 27px;
  font-weight: 950;
  line-height: 1;
}

.cpc-summary-grid small {
  display: block;
  margin-top: 9px;
  color: #73849a;
  font-size: 11px;
  font-weight: 800;
}

.cpc-summary-grid .is-danger strong {
  color: var(--red);
}

.cpc-summary-grid .is-muted strong {
  color: #334155;
}

@media (max-width: 1400px) {
  .cpc-summary-grid.has-registration-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cpc-summary-grid,
  .cpc-summary-grid.has-registration-stats {
    grid-template-columns: 1fr;
  }
}

.cpc-product-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.cpc-product-card {
  display: grid;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 27, 45, 0.02);
  cursor: pointer;
}

.cpc-product-card.is-danger {
  border-color: #ff9fb0;
  background: #fff5f7;
  box-shadow: inset 3px 0 0 #ff3b5f;
}

.cpc-product-card.is-ok {
  border-color: #ccefe2;
}

.cpc-product-card button,
.cpc-product-card a {
  cursor: pointer;
}

.cpc-product-card.is-muted {
  background: #fbfdff;
}

.cpc-product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cpc-product-main {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.cpc-product-image {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
  color: #8ba0b8;
}

.cpc-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cpc-product-main span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.cpc-product-owner-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.cpc-product-main .cpc-owner-badge,
.cpc-product-main .cpc-product-id-badge,
.cpc-product-main .cpc-pairing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.cpc-product-main .cpc-owner-badge {
  background: #e8fff5;
  color: #007a55;
}

.cpc-product-main .cpc-owner-badge.is-kind {
  background: #eff6ff;
  color: #1d4ed8;
}

.cpc-product-main .cpc-owner-badge.is-muted,
.cpc-product-main .cpc-product-id-badge {
  background: #f1f5f9;
  color: #52657d;
}

.cpc-product-main .cpc-pairing-badge {
  border: 1px solid #8ee6be;
  background: #ecfff6;
  color: #00875a;
}

.cpc-product-main .cpc-pairing-badge.is-failed {
  border-color: #fecaca;
  background: #fff1f2;
  color: #e11d48;
}

.cpc-product-main h3 {
  display: -webkit-box;
  margin: 3px 0 1px;
  overflow: hidden;
  color: #071226;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.24;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.cpc-product-main a {
  display: block;
  overflow: hidden;
  color: #49627f;
  font-size: 11.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cpc-product-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  justify-content: end;
  gap: 6px;
  min-width: 0;
}

.cpc-product-actions .ghost-button,
.cpc-product-actions .danger-button {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 11.5px;
  white-space: nowrap;
}

.cpc-product-actions [data-cpc-replace-id] {
  min-width: 146px;
}

.cpc-product-actions .cpc-keyword-input-button {
  justify-content: center;
  min-width: 92px;
  text-align: center;
}

.cpc-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf4fa;
  color: #405069;
  font-size: 11.5px;
  font-weight: 900;
}

.cpc-status.is-ok {
  background: #e9fbf4;
  color: var(--accent-dark);
}

.cpc-status.is-danger {
  background: #fff0f3;
  color: var(--red);
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #ffd1d8;
  border-radius: 8px;
  background: #fff;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.danger-button.subtle {
  min-height: 32px;
  background: #fff;
}

.danger-button:hover {
  background: #fff3f5;
}

.cpc-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: -1px 0 0 57px;
  color: #52657f;
  font-size: 11.5px;
  font-weight: 820;
}

.cpc-product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cpc-card-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: 57px;
  color: #52657f;
  font-size: 11.5px;
  font-weight: 850;
}

.cpc-card-summary > span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #52657f;
}

.cpc-card-summary > span.is-ok {
  background: #e9fbf4;
  color: var(--accent-dark);
}

.cpc-card-summary > span.is-warn {
  background: #fff7ed;
  color: #b45309;
}

.cpc-card-summary > span.is-danger {
  background: #fff0f3;
  color: var(--red);
}

.cpc-card-summary > span:first-child {
  border: 1px solid #e2edf5;
  background: #fbfdff;
  color: #334155;
}

.cpc-card-summary > span:first-child.is-ok {
  border-color: #ccefe2;
  background: #e9fbf4;
  color: var(--accent-dark);
}

.cpc-card-summary > span:first-child.is-danger {
  border-color: #ffc7d1;
  background: #fff0f3;
  color: var(--red);
}

.cpc-card-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 11.5px;
  font-weight: 900;
}

.cpc-rank-history {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: 57px;
  padding: 7px 9px;
  border: 1px solid #e2edf5;
  border-radius: 8px;
  background: #fbfdff;
}

.cpc-rank-history > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.cpc-rank-history > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cpc-rank-date-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #eef7ff;
  color: #285579;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.cpc-rank-date-chip:hover {
  border-color: #b7d9f4;
  background: #e5f3ff;
}

.cpc-rank-date-chip.is-active {
  border-color: #8ddfbc;
  background: #e8fff5;
  color: #008b68;
}

.cpc-history-panel {
  display: grid;
  gap: 8px;
  margin-left: 57px;
  padding: 9px;
  border: 1px solid #e2edf5;
  border-radius: 8px;
  background: #fbfdff;
}

.cpc-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cpc-history-head strong {
  color: #102137;
  font-size: 12px;
  font-weight: 950;
}

.cpc-history-head span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.cpc-history-list {
  display: grid;
  gap: 6px;
}

.cpc-history-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.cpc-history-item.is-issue_detected,
.cpc-history-item.is-flush_failed {
  border-color: #ffd2d9;
  background: #fff8f9;
}

.cpc-history-item.is-keyword_change,
.cpc-history-item.is-flush_sent,
.cpc-history-item.is-issue_resolved {
  border-color: #ccefe2;
  background: #fbfffd;
}

.cpc-history-item time {
  color: #64748b;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.4;
}

.cpc-history-item strong {
  display: block;
  color: #102137;
  font-size: 11.5px;
  font-weight: 950;
}

.cpc-history-item p {
  margin: 2px 0 5px;
  color: #405069;
  font-size: 11px;
  font-weight: 820;
}

.cpc-history-item div div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cpc-history-item div div span {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #405069;
  font-size: 10.5px;
  font-weight: 850;
}

.cpc-history-empty {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px dashed #dbe6ef;
  border-radius: 8px;
  color: #70849d;
  font-size: 12px;
  font-weight: 850;
}

.cpc-keyword-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 2px;
}

.cpc-keyword-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 8px;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfdff;
}

.cpc-keyword-item strong {
  display: block;
  overflow: hidden;
  color: #12233a;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cpc-keyword-item span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 850;
}

.cpc-keyword-item b {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #314158;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.25;
  text-align: center;
}

.cpc-keyword-item small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #65758c;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cpc-keyword-item.is-danger {
  border-color: #ffc7d1;
  background: #fff8f9;
}

.cpc-keyword-item.is-danger strong,
.cpc-keyword-item.is-danger span {
  color: var(--red);
}

.cpc-keyword-item.is-danger b {
  background: #fff0f3;
  color: var(--red);
}

.cpc-keyword-item.is-ok {
  border-color: #ccefe2;
  background: #fbfffd;
}

.cpc-keyword-item.is-ok b {
  background: #e9fbf4;
  color: var(--accent-dark);
}

.cpc-keyword-item.is-ok span {
  color: var(--accent-dark);
}

.cpc-keyword-item.is-super {
  border-color: #fde68a;
  background: #fffdf3;
}

.cpc-keyword-item.is-super b {
  background: #fef3c7;
  color: #a16207;
}

.cpc-keyword-item.is-super span {
  color: #a16207;
}

.cpc-card-summary .is-super {
  background: #fff7d6;
  color: #a16207;
}

.cpc-empty {
  display: grid;
  place-items: center;
  min-height: 96px;
  border: 1px dashed #dbe6ef;
  border-radius: 10px;
  background: #fbfdff;
  color: #70849d;
  font-size: 13px;
  font-weight: 850;
}

.rewardmost-import-modal-layer {
  padding: 12px 18px;
}

.rewardmost-import-modal {
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100vw - 36px));
  max-width: 1180px;
  max-height: calc(100vh - 24px);
  overflow: hidden;
}

.rewardmost-import-modal .bulk-modal-head {
  flex: 0 0 auto;
  padding: 16px 22px;
}

.rewardmost-import-modal .bulk-modal-body {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.rewardmost-import-modal .bulk-modal-foot {
  flex: 0 0 auto;
  padding: 14px 22px;
}

.rewardmost-import-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.rewardmost-import-toolbar label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  color: #17324d;
}

.rewardmost-import-search {
  flex: 1 1 320px;
  min-width: min(360px, 100%);
}

.rewardmost-import-toolbar input[type="date"],
.rewardmost-import-toolbar input[type="search"] {
  height: 42px;
  min-height: 42px;
  border: 1px solid #d7e5f1;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 900;
}

.rewardmost-import-toolbar input[type="date"] {
  min-width: 170px;
}

.rewardmost-import-toolbar input[type="search"] {
  width: 100%;
  min-width: 0;
}

.rewardmost-import-toolbar .ghost-button {
  align-self: end;
  height: 42px;
  min-height: 42px;
  box-sizing: border-box;
}

.rewardmost-select-all {
  display: inline-flex !important;
  align-items: center;
  align-self: end;
  gap: 8px;
  height: 42px;
  min-height: 42px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #d7e5f1;
  border-radius: 8px;
  background: #fbfdff;
}

.rewardmost-select-all input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

.rewardmost-import-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.rewardmost-import-summary div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #dbe6ef;
  border-radius: 10px;
  background: #fbfdff;
}

.rewardmost-import-summary span,
.rewardmost-import-summary small {
  color: #607895;
  font-size: 12px;
  font-weight: 800;
}

.rewardmost-import-summary strong {
  color: #07182b;
  font-size: 24px;
  line-height: 1;
}

.rewardmost-import-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.rewardmost-import-row {
  display: grid;
  grid-template-columns: max-content 54px minmax(0, 1fr) minmax(220px, 280px);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe6ef;
  border-radius: 10px;
  background: #fff;
}

.rewardmost-import-row.is-disabled {
  background: #f8fafc;
  opacity: .72;
}

.rewardmost-import-thumb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid #e0ebf4;
  border-radius: 8px;
  background: #f5f8fb;
}

.rewardmost-import-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rewardmost-import-main,
.rewardmost-import-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rewardmost-import-main strong,
.rewardmost-import-main small,
.rewardmost-import-main em,
.rewardmost-import-meta b,
.rewardmost-import-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rewardmost-import-main strong,
.rewardmost-import-meta b {
  color: #07182b;
  font-size: 13px;
  font-weight: 950;
}

.rewardmost-import-main small,
.rewardmost-import-main em,
.rewardmost-import-meta small {
  color: #607895;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.rewardmost-import-meta i {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e9fbf4;
  color: var(--accent-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.rewardmost-import-meta i.is-blocked {
  background: #fff0f3;
  color: var(--red);
}

.rewardmost-import-meta i.is-complete {
  background: #ecfdf5;
  color: #00875a;
}

.rewardmost-import-empty {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed #dbe6ef;
  border-radius: 10px;
  background: #fbfdff;
  color: #70849d;
  font-size: 13px;
  font-weight: 850;
}

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

  .rewardmost-import-row {
    grid-template-columns: max-content 48px minmax(0, 1fr);
  }

  .rewardmost-import-meta {
    grid-column: 3;
  }
}

@media (max-width: 1180px) {
  .cpc-product-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cpc-product-actions {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, max-content);
    justify-content: start;
    margin-left: 57px;
  }

  .cpc-card-summary,
  .cpc-rank-history,
  .cpc-history-panel {
    margin-left: 57px;
  }

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

  .cpc-history-item {
    grid-template-columns: 1fr;
  }
}
