:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #172032;
  --muted: #65758b;
  --line: #dce4ef;
  --accent: #1f6feb;
  --accent-dark: #174ea6;
  --accent-soft: #eaf2ff;
  --sun: #f4b740;
  --sun-soft: #fff7df;
  --good: #087f5b;
  --bad: #c92a2a;
  --warn: #b7791f;
  --shadow: 0 12px 30px rgba(23, 32, 50, 0.08);
  --shadow-soft: 0 8px 22px rgba(23, 32, 50, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #eef5ff 0, var(--bg) 230px),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
  letter-spacing: 0;
}

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

.text-link {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100vw - 1120px) / 2 + 18px));
  border-bottom: 1px solid rgba(207, 219, 235, 0.95);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(23, 32, 50, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--accent);
  color: white;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 7px;
  object-fit: cover;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: 17px;
}

.brand-text small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  padding: 9px 11px;
  border-radius: 7px;
}

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

.nav a.active {
  background: #e8f1ff;
  color: var(--accent-dark);
  font-weight: 800;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 18px 44px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: 28px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px 0 18px;
}

.hero-copy {
  padding: 10px 0;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--sun-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14px;
}

h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.18;
  max-width: 690px;
}

.lead {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-points span {
  padding: 7px 10px;
  border: 1px solid #d8e6ff;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.hero-status {
  min-height: 132px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-status img {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  object-fit: cover;
}

.hero-status strong,
.hero-status span {
  display: block;
}

.hero-status strong {
  font-size: 19px;
}

.hero-status span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tool-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.tool-strip div {
  min-height: 66px;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}

.tool-strip div:last-child {
  border-right: 0;
}

.strip-label,
.section-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tool-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.hero,
.tool-strip,
.content {
  display: none;
}

.site-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 14px;
}

.site-summary-copy,
.site-summary-card {
  border: 1px solid #d7e2f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.site-summary-copy {
  padding: 22px 24px;
}

.summary-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #ffe2a8;
  border-radius: 999px;
  background: var(--sun-soft);
  color: #7a4d00;
  font-size: 12px;
  font-weight: 900;
}

.site-summary h1 {
  margin-top: 10px;
  font-size: 30px;
}

.site-summary p {
  max-width: 650px;
  margin: 8px 0 0;
  color: #4c5d74;
  font-size: 15px;
  line-height: 1.55;
}

.site-summary-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.site-summary-card img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
}

.site-summary-card strong,
.site-summary-card span {
  display: block;
}

.site-summary-card strong {
  font-size: 18px;
}

.site-summary-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.tool-tabs {
  position: sticky;
  top: 66px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px;
  border: 1px solid #d2dfef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.tool-tabs button {
  min-height: 42px;
  border: 1px solid transparent;
  background: #f8fbff;
  color: #334155;
  font-size: 14px;
}

.tool-tabs button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(31, 111, 235, 0.18);
}

[data-mobile-panel]:not(.tool-active) {
  display: none !important;
}

[data-mobile-panel].tool-active {
  display: block;
}

#calculator.tool-active {
  display: grid;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 16px;
  align-items: start;
}

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

.compare-panel {
  margin-top: 0;
}

.compare-summary {
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid #cfe2ff;
  border-radius: 8px;
  background: #f8fbff;
  text-align: right;
}

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

.compare-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.insight-grid div {
  min-height: 76px;
  padding: 13px;
  border: 1px solid #d7e6ff;
  border-radius: 8px;
  background: #f8fbff;
}

.insight-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.insight-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.keyword-insight {
  margin-top: 14px;
}

.compare-table {
  min-width: 980px;
}

.compare-table .best-row td {
  background: #f4fbf8;
  font-weight: 800;
}

.keyword-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  align-items: end;
}

.keyword-search .field {
  margin-bottom: 0;
}

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

.bid-grid > div {
  min-height: 132px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #cfe2ff;
  background: #f8fbff;
}

.bid-grid > div > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.bid-grid > div > strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
}

.bid-rank-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.bid-rank-card {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px 8px;
  border: 1px solid #cfe2ff;
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
}

.bid-rank-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bid-rank-card strong {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.15;
}

.bid-rank-card:first-child {
  border-color: #8eb5ff;
  background: #edf5ff;
  box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.12);
}

.bid-rank-card:first-child span,
.bid-rank-card:first-child strong {
  color: var(--accent-dark);
}

.keyword-table-wrap {
  margin-top: 14px;
}

.keyword-table {
  min-width: 980px;
}

.keyword-table td:first-child {
  font-weight: 800;
}

.tool-panel {
  margin-bottom: 24px;
}

.panel {
  background: var(--surface);
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 16px;
}

.panel h2,
.content h2 {
  margin: 0;
  font-size: 20px;
}

.section-label + h2 {
  margin-top: 3px;
}

.panel-subtitle {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.calc-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  overflow: hidden;
}

.calc-mode button {
  min-height: 58px;
  display: grid;
  gap: 3px;
  align-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.calc-mode button strong,
.calc-mode button span {
  display: block;
}

.calc-mode button strong {
  color: #26344c;
  font-size: 14px;
}

.calc-mode button span {
  font-size: 12px;
  font-weight: 600;
}

.calc-mode button.active {
  border-color: #bfd5ff;
  background: #ffffff;
  color: var(--accent-dark);
  box-shadow: 0 6px 14px rgba(31, 111, 235, 0.08);
}

.calc-mode button.active strong {
  color: var(--accent-dark);
}

body[data-current-calc-mode="quick"] [data-detail-field] {
  display: none;
}

.quick-note {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid #d9e7ff;
  border-radius: 8px;
  background: #f7fbff;
  color: #42526b;
  font-size: 12px;
  line-height: 1.5;
}

body[data-current-calc-mode="detail"] .quick-note {
  display: none;
}

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

.span-full {
  grid-column: 1 / -1;
}

.field {
  margin-bottom: 12px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  color: #34405a;
  font-weight: 700;
}

.input-wrap {
  height: 44px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  overflow: hidden;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 13px;
  color: var(--text);
  background: white;
  font: inherit;
}

input,
select {
  height: 44px;
}

textarea {
  min-height: 128px;
  padding: 12px;
  line-height: 1.5;
  resize: vertical;
}

.contact-form {
  margin-top: 18px;
}

.input-wrap input {
  border: 0;
  border-radius: 0;
}

.input-wrap span {
  flex: 0 0 auto;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.hint,
.notice {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

button {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
}

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

.primary {
  background: linear-gradient(135deg, var(--accent), #0f78ff);
  color: white;
}

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

.ghost {
  background: var(--accent-soft);
  color: var(--text);
}

.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 18px;
}

.result-panel {
  position: sticky;
  top: 82px;
}

.result-main {
  padding: 24px 20px;
  border-radius: 8px;
  background: #f3fbf7;
  border: 1px solid #bfe6d7;
  margin-bottom: 14px;
}

.result-main.loss {
  background: #fff1f1;
  border-color: #ffd0d0;
}

.result-main span,
.metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.result-main strong {
  display: block;
  margin-top: 6px;
  font-size: 34px;
  color: var(--good);
}

.result-main.loss strong {
  color: var(--bad);
}

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

.metrics div {
  min-height: 72px;
  padding: 12px;
  border-radius: 7px;
  background: #fbfdff;
  border: 1px solid var(--line);
}

.metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
}

.ad-decision {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.ad-decision span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.ad-decision strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.ad-decision p {
  margin: 8px 0 0;
  color: #364257;
  font-size: 13px;
  line-height: 1.5;
}

.ad-decision.good {
  border-color: #bfe6d7;
  background: #f4fbf8;
}

.ad-decision.good strong,
.good-text {
  color: var(--good);
}

.ad-decision.bad {
  border-color: #ffd0d0;
  background: #fff6f6;
}

.ad-decision.bad strong {
  color: var(--bad);
}

.ad-decision.warn {
  border-color: #ffe2a8;
  background: #fffaf0;
}

.ad-decision.warn strong {
  color: var(--warn);
}

.target-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.target-price .field {
  margin: 0;
  flex: 1 1 180px;
}

.target-price-result span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.target-price-result strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.import-helper {
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.import-helper summary {
  padding: 13px 0;
  cursor: pointer;
  font-weight: 600;
  color: #364257;
}

.import-helper[open] summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.import-helper .hint {
  margin-top: 4px;
}

.import-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.import-result span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.import-result strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.save-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.save-row .save-name {
  flex: 1 1 220px;
}

.save-row .save-name input {
  width: 100%;
}

.row-button {
  padding: 6px 10px;
  font-size: 13px;
}

.manage-cell {
  white-space: nowrap;
}

.manage-cell .row-button + .row-button {
  margin-left: 6px;
}

.size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-buttons .ghost.active {
  border-color: var(--brand);
  color: var(--brand);
}

.panel-head .panel-title {
  margin: 4px 0 0;
  font-size: 21px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.tool-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  font-size: 13px;
}

.tool-table th,
.tool-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.tool-table th:first-child,
.tool-table td:first-child {
  text-align: left;
}

.tool-table th {
  background: #f8fafc;
  color: #34405a;
  font-weight: 800;
}

.tool-table tr:last-child td {
  border-bottom: 0;
}

.tool-table input {
  min-width: 86px;
  height: 36px;
  padding: 0 9px;
  text-align: right;
}

.tool-table .keyword {
  min-width: 150px;
  text-align: left;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.summary-grid div {
  min-height: 82px;
  padding: 14px;
  border-radius: 7px;
  background: #fbfdff;
  border: 1px solid var(--line);
}

.summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.summary-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 20px;
}

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

.title-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdff;
}

.title-item span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 13px;
}

.title-item strong {
  display: block;
  line-height: 1.4;
}

.title-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.loss-text {
  color: var(--bad);
}

.ad-slot {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  background: repeating-linear-gradient(135deg, #f7f9fd, #f7f9fd 10px, #edf2f7 10px, #edf2f7 20px);
  border: 1px dashed #aeb9ca;
  border-radius: 8px;
  color: var(--muted);
}

.ad-slot span {
  display: block;
  font-weight: 800;
  color: #475569;
}

.ad-slot small {
  display: block;
  margin-top: 4px;
}

.ad-slot.compact {
  min-height: 92px;
  margin: 14px 0;
}

.seo-directory {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #d7e2f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.seo-directory h2 {
  margin: 3px 0 14px;
  font-size: 20px;
}

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

.seo-link-grid a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: #26344c;
  font-size: 13px;
  font-weight: 800;
}

.seo-link-grid a:hover {
  border-color: #bcd3ff;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.content {
  margin-top: 28px;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.content article,
.legal-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  line-height: 1.72;
}

.content p,
.content li,
.legal-page p,
.legal-page li {
  color: #364257;
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 18px 40px;
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.footer span {
  color: var(--text);
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  background: #14213d;
  color: white;
  border-radius: 7px;
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .topbar {
    height: auto;
    min-height: 62px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    gap: 10px;
    font-size: 13px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero,
  .site-summary,
  .workspace,
  .content {
    grid-template-columns: 1fr;
  }

  .hero-status {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 106px;
    padding: 14px;
  }

  .hero-status img {
    width: 70px;
    height: 70px;
  }

  h1 {
    font-size: 28px;
  }

  .result-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  main {
    padding: 10px 12px 30px;
  }

  .topbar {
    position: static;
    min-height: 54px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav {
    display: none;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

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

  .nav a {
    flex: 0 0 auto;
    padding: 7px 9px;
    background: #f7faff;
  }

  .hero,
  .hero-points,
  .hero-status {
    display: none;
  }

  .tool-strip {
    display: none;
  }

  .site-summary {
    gap: 8px;
    margin-bottom: 10px;
  }

  .site-summary-copy {
    padding: 14px;
  }

  .summary-kicker {
    min-height: 22px;
    font-size: 11px;
  }

  .site-summary h1 {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.24;
  }

  .site-summary p {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.45;
  }

  .site-summary-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 13px;
  }

  .site-summary-card img {
    width: 48px;
    height: 48px;
  }

  .site-summary-card strong {
    font-size: 15px;
  }

  .site-summary-card span {
    margin-top: 3px;
    font-size: 12px;
  }

  .tool-tabs {
    position: sticky;
    top: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0 -12px 10px;
    padding: 8px 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
  }

  .calc-mode {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 12px;
  }

  .calc-mode button {
    min-height: 52px;
    padding: 0 10px;
  }

  .calc-mode button strong {
    font-size: 13px;
  }

  .calc-mode button span {
    font-size: 11px;
  }

  .tool-tabs button {
    min-height: 38px;
    padding: 0 8px;
    border: 1px solid var(--line);
    background: #f8fbff;
    color: #334155;
    font-size: 13px;
  }

  .tool-tabs button.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
  }

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

  .form-panel .panel-head {
    align-items: center;
    flex-direction: row;
  }

  .compare-summary {
    width: 100%;
    text-align: left;
  }

  .actions,
  .actions button {
    width: 100%;
  }

  .result-panel .panel-head > .ghost {
    width: 100%;
  }

  .form-panel .panel-head > .ghost {
    width: auto;
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .grid.two,
  .metrics,
  .summary-grid,
  .insight-grid,
  .seo-link-grid,
  .bid-grid {
    grid-template-columns: 1fr;
  }

  .bid-grid > div {
    min-height: auto;
    padding: 12px;
  }

  .bid-rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .bid-rank-card {
    min-height: 58px;
    padding: 8px;
  }

  .bid-rank-card strong {
    font-size: 16px;
  }

  .bid-rank-card:first-child {
    grid-column: 1 / -1;
  }

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

  .keyword-search button {
    width: 100%;
  }

  .panel,
  .content article,
  .legal-page {
    padding: 13px;
  }

  .form-panel .panel-head {
    min-height: 34px;
    margin-bottom: 10px;
  }

  .section-label {
    font-size: 11px;
  }

  .panel h2,
  .content h2 {
    font-size: 18px;
  }

  .result-main {
    padding: 18px;
  }

  .result-main strong {
    font-size: 28px;
  }

  .tool-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 9px;
  }

  .tool-table thead {
    display: none;
  }

  .tool-table tbody,
  .tool-table tr,
  .tool-table td {
    display: block;
    width: 100%;
  }

  .tool-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
  }

  .tool-table td {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border-bottom: 1px solid #edf1f6;
    text-align: right;
    white-space: normal;
  }

  .tool-table td:last-child {
    border-bottom: 0;
  }

  .tool-table td::before {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: left;
  }

  .compare-table td:nth-child(1)::before { content: "채널"; }
  .compare-table td:nth-child(2)::before { content: "수수료율"; }
  .compare-table td:nth-child(3)::before { content: "수수료 기준"; }
  .compare-table td:nth-child(4)::before { content: "예상 순이익"; }
  .compare-table td:nth-child(5)::before { content: "마진율"; }
  .compare-table td:nth-child(6)::before { content: "현재 대비"; }
  .compare-table td:nth-child(7)::before { content: "확인 상태"; }

  .compare-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-table td {
    min-height: 34px;
    padding: 7px 10px;
  }

  .compare-table td:first-child {
    grid-column: 1 / -1;
    background: #f8fbff;
    font-size: 15px;
    font-weight: 800;
  }

  .compare-table td:first-child::before {
    content: "채널";
  }

  .keyword-table td:nth-child(1)::before { content: "추천 키워드"; }
  .keyword-table td:nth-child(2)::before { content: "PC 검색량"; }
  .keyword-table td:nth-child(3)::before { content: "모바일 검색량"; }
  .keyword-table td:nth-child(4)::before { content: "경쟁도"; }
  .keyword-table td:nth-child(5)::before { content: "광고 깊이"; }
  .keyword-table td:nth-child(6)::before { content: "PC 클릭"; }
  .keyword-table td:nth-child(7)::before { content: "모바일 클릭"; }
  .keyword-table td:nth-child(8)::before { content: "PC CTR"; }
  .keyword-table td:nth-child(9)::before { content: "모바일 CTR"; }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .content {
    display: none;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    text-align: center;
  }

  .footer {
    flex-wrap: wrap;
  }
}
