/* ROBERIN k9-calculator compact tool renewal - 2026-06-19 */
body.postid-1699,
body.postid-4943 {
  --k9-page: #faf2e8;
}

body.postid-1699 .entry-content,
body.postid-4943 .entry-content,
body.postid-1699 .cs-entry__content,
body.postid-4943 .cs-entry__content,
body.postid-1699 .cs-entry__content-wrap,
body.postid-4943 .cs-entry__content-wrap,
body.postid-1699 .cs-custom-content,
body.postid-4943 .cs-custom-content,
body.postid-1699 .cs-custom-content-post-before,
body.postid-4943 .cs-custom-content-post-before,
body.postid-1699 .cs-custom-content-post-after,
body.postid-4943 .cs-custom-content-post-after {
  max-width: 100%;
  overflow-x: clip;
}

body.postid-1699 ins.adsbygoogle,
body.postid-4943 ins.adsbygoogle {
  max-width: min(728px, calc(100vw - 32px)) !important;
  width: min(728px, calc(100vw - 32px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.postid-1699 [id^="aswift_"][id$="_host"],
body.postid-4943 [id^="aswift_"][id$="_host"],
body.postid-1699 iframe[id^="aswift_"],
body.postid-4943 iframe[id^="aswift_"] {
  max-width: 100% !important;
  left: 0 !important;
  right: auto !important;
}

.k9-rate-tool,
.k9-rate-tool *,
.k9-rate-tool *::before,
.k9-rate-tool *::after {
  box-sizing: border-box;
  min-width: 0;
}

.k9-rate-tool {
  --k9-shell: #faf2e8;
  --k9-title: #fff7e8;
  --k9-title-end: rgba(247, 223, 157, 0.30);
  --k9-body: #fffdf7;
  --k9-panel: rgba(255, 253, 247, 0.92);
  --k9-input: #fffaf0;
  --k9-action: #fffdf7;
  --k9-action-primary: #f2e3d3;
  --k9-result: #e3efd2;
  --k9-result-strong: #d2e6bf;
  --k9-line: #6b5745;
  --k9-line-strong: #604c3d;
  --k9-ink: #2b2119;
  --k9-muted: #5f4b3c;
  --k9-soft: rgba(107, 87, 69, 0.16);
  --k9-soft-2: rgba(107, 87, 69, 0.28);
  --k9-blue: #4f7d94;
  --k9-warn: #a94a36;
  --k9-shadow: #604c3d;
  position: relative;
  isolation: isolate;
  display: block;
  width: min(860px, calc(100vw - 32px));
  max-width: 860px;
  margin: 18px auto 28px;
  padding: 0 !important;
  color: var(--k9-ink);
  -webkit-text-fill-color: var(--k9-ink);
  background-color: var(--k9-shell);
  background-image:
    linear-gradient(rgba(96, 76, 61, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 76, 61, 0.055) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 2px solid var(--k9-line-strong);
  border-radius: 0 !important;
  box-shadow: 4px 4px 0 var(--k9-shadow);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.45;
}

.k9-rate-tool svg,
.k9-rate-tool .dark-mode-toggle,
.k9-rate-tool #darkModeToggle,
.k9-rate-tool .tooltip {
  display: none !important;
}

.k9-rate-tool :where(button, input) {
  font: inherit;
  border-radius: 0 !important;
}

.k9-rate-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 13px 15px;
  color: var(--k9-ink);
  -webkit-text-fill-color: var(--k9-ink);
  background-color: var(--k9-title);
  background-image: linear-gradient(90deg, rgba(255, 253, 247, 0.99), rgba(255, 249, 238, 0.98) 64%, var(--k9-title-end));
}

.k9-rate-title-copy {
  display: grid;
  gap: 8px;
}

.k9-rate-kicker,
.k9-rate-title h2,
.k9-rate-title p {
  margin: 0;
}

.k9-rate-kicker {
  width: fit-content;
  color: var(--k9-muted);
  -webkit-text-fill-color: var(--k9-muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.k9-rate-title h2 {
  color: var(--k9-ink);
  -webkit-text-fill-color: var(--k9-ink);
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.055em;
  word-break: keep-all;
}

.k9-rate-title-copy > p:last-child {
  max-width: 620px;
  color: var(--k9-muted);
  -webkit-text-fill-color: var(--k9-muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 760;
  word-break: keep-all;
}

.k9-rate-pill {
  display: grid;
  place-items: center;
  min-width: 88px;
  padding: 9px 11px;
  color: var(--k9-ink);
  -webkit-text-fill-color: var(--k9-ink);
  background: #fffdf7;
  border: 1px solid var(--k9-line);
  box-shadow: 3px 3px 0 var(--k9-soft);
  text-align: center;
}

.k9-rate-pill strong {
  display: block;
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
}

.k9-rate-pill span {
  margin-top: 3px;
  color: var(--k9-muted);
  -webkit-text-fill-color: var(--k9-muted);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 850;
  white-space: nowrap;
}

.k9-rate-body {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 10px;
  padding: 10px;
  border-top: 2px solid var(--k9-line);
  background: color-mix(in srgb, var(--k9-body) 88%, var(--k9-shell));
}

.k9-rate-panel {
  display: grid;
  align-self: stretch;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  color: var(--k9-ink);
  -webkit-text-fill-color: var(--k9-ink);
  background: var(--k9-panel);
  border: 1px solid var(--k9-line);
  box-shadow: 3px 3px 0 var(--k9-soft);
}

.k9-rate-panel--input {
  grid-template-rows: auto 1fr auto auto;
}

.k9-rate-panel--result {
  grid-template-rows: auto auto auto auto auto;
}

.k9-rate-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--k9-line);
}

.k9-rate-panel-head h3,
.k9-rate-panel-head p {
  margin: 0;
}

.k9-rate-panel-head h3 {
  color: var(--k9-ink);
  -webkit-text-fill-color: var(--k9-ink);
  font-size: 16px;
  line-height: 1.15;
  font-weight: 930;
  letter-spacing: -0.025em;
}

.k9-rate-panel-head p {
  margin-top: 3px;
  color: var(--k9-muted);
  -webkit-text-fill-color: var(--k9-muted);
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 720;
  word-break: keep-all;
}

.k9-rate-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.k9-rate-field {
  display: grid;
  gap: 5px;
  margin: 0;
}

.k9-rate-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--k9-ink);
  -webkit-text-fill-color: var(--k9-ink);
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 880;
}

.k9-rate-label em {
  flex: 0 0 auto;
  padding: 3px 6px;
  color: var(--k9-muted);
  -webkit-text-fill-color: var(--k9-muted);
  background: #faecd4;
  border: 1px solid rgba(107, 87, 69, 0.34);
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
}

.k9-rate-input {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 8px 10px !important;
  color: var(--k9-ink) !important;
  -webkit-text-fill-color: var(--k9-ink) !important;
  background: var(--k9-input) !important;
  border: 1px solid var(--k9-line) !important;
  box-shadow: inset 1px 1px 0 rgba(96, 76, 61, .12) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "D2Coding", "Nanum Gothic Coding", monospace !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
  font-weight: 950 !important;
  font-variation-settings: "wght" 950 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -.02em;
  appearance: none;
}

.k9-rate-input::placeholder {
  color: rgba(95, 75, 60, 0.66) !important;
  -webkit-text-fill-color: rgba(95, 75, 60, 0.66) !important;
  opacity: 1;
  font-weight: 650 !important;
  font-variation-settings: "wght" 650 !important;
}

.k9-rate-input:focus {
  outline: 2px solid var(--k9-blue);
  outline-offset: 2px;
  background: #fffaf0 !important;
}

.k9-rate-input.is-invalid,
.k9-rate-input[aria-invalid="true"] {
  border-color: var(--k9-warn) !important;
  box-shadow: 0 0 0 3px rgba(169, 74, 54, .16) !important;
}

.k9-rate-field small {
  color: var(--k9-muted);
  -webkit-text-fill-color: var(--k9-muted);
  font-size: 11px;
  line-height: 1.28;
  font-weight: 700;
  word-break: keep-all;
}

.k9-rate-error {
  min-height: 16px;
  color: var(--k9-warn);
  -webkit-text-fill-color: var(--k9-warn);
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 850;
}

.k9-rate-error:empty {
  min-height: 0;
}

.k9-rate-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  align-items: stretch;
}

.k9-rate-action {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 7px 8px !important;
  color: var(--k9-ink) !important;
  -webkit-text-fill-color: var(--k9-ink) !important;
  background: var(--k9-action) !important;
  border: 1px solid var(--k9-line) !important;
  box-shadow: 3px 3px 0 var(--k9-soft) !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
  letter-spacing: -.01em;
  text-align: center !important;
  white-space: nowrap;
  cursor: pointer;
}

.k9-rate-action--primary {
  background: var(--k9-action-primary) !important;
}

.k9-rate-action:hover,
.k9-rate-action:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--k9-soft-2) !important;
}

.k9-rate-result-card {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 95px;
  padding: 12px;
  color: var(--k9-ink);
  -webkit-text-fill-color: var(--k9-ink);
  text-align: center;
  background: linear-gradient(180deg, var(--k9-result), var(--k9-result-strong));
  border: 1px solid var(--k9-line);
  box-shadow: 3px 3px 0 var(--k9-soft);
}

.k9-rate-result-card span {
  color: var(--k9-muted);
  -webkit-text-fill-color: var(--k9-muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .08em;
}

.k9-rate-result-card strong {
  display: block;
  color: var(--k9-ink);
  -webkit-text-fill-color: var(--k9-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "D2Coding", "Nanum Gothic Coding", monospace;
  font-size: clamp(38px, 5vw, 48px);
  line-height: .95;
  font-weight: 950;
  font-variation-settings: "wght" 950;
  letter-spacing: -.07em;
}

.k9-rate-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  color: var(--k9-ink);
  -webkit-text-fill-color: var(--k9-ink);
  background: var(--k9-input);
  border: 1px solid var(--k9-line);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 4px 7px;
  color: var(--k9-ink);
  -webkit-text-fill-color: var(--k9-ink);
  background: #faecd4;
  border: 1px solid rgba(107, 87, 69, .34);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 950;
  text-align: center;
}

.rating-badge.elite,
.rating-badge.excellent {
  background: #dcecc8;
}

.rating-badge.good,
.rating-badge.average {
  background: #f7e8c6;
}

.rating-badge.below,
.rating-badge.invalid {
  background: #f2d7cd;
}

.k9-rate-breakdown {
  min-height: 26px;
  padding: 6px 8px;
  color: var(--k9-muted);
  -webkit-text-fill-color: var(--k9-muted);
  background: color-mix(in srgb, var(--k9-input) 80%, var(--k9-shell));
  border: 1px dashed rgba(107, 87, 69, .42);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 760;
  text-align: center;
  word-break: keep-all;
}

.k9-rate-gauge {
  display: grid;
  gap: 5px;
}

.k9-rate-gauge-track {
  position: relative;
  height: 14px;
  overflow: hidden;
  background: #fff7e8;
  border: 1px solid var(--k9-line);
}

.k9-rate-gauge-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, #f1d58c, #dcecc8 58%, #a9d18e);
  transition: width 180ms ease;
}

.k9-rate-gauge-marker {
  position: absolute;
  top: -4px;
  left: 0%;
  width: 2px;
  height: 20px;
  background: var(--k9-ink);
  box-shadow: 0 0 0 1px rgba(255,255,255,.72);
  transform: translateX(-1px);
  opacity: 0;
  transition: left 180ms ease, opacity 120ms ease;
}

.k9-rate-gauge-marker.visible {
  opacity: 1;
}

.k9-rate-gauge-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--k9-muted);
  -webkit-text-fill-color: var(--k9-muted);
  font-size: 10.5px;
  line-height: 1;
  font-weight: 820;
}

.k9-rate-formula {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  padding: 7px 8px;
  color: var(--k9-ink);
  -webkit-text-fill-color: var(--k9-ink);
  background: var(--k9-input);
  border: 1px solid var(--k9-line);
}

.k9-rate-formula span {
  padding: 3px 6px;
  color: var(--k9-muted);
  -webkit-text-fill-color: var(--k9-muted);
  background: #faecd4;
  border: 1px solid rgba(107, 87, 69, .34);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
}

.k9-rate-formula strong {
  color: var(--k9-ink);
  -webkit-text-fill-color: var(--k9-ink);
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 920;
}

.k9-rate-formula em {
  grid-column: 2;
  color: var(--k9-muted);
  -webkit-text-fill-color: var(--k9-muted);
  font-size: 10.5px;
  line-height: 1.2;
  font-style: normal;
  font-weight: 720;
}

.k9-rate-toast {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  max-width: min(280px, calc(100% - 20px));
  padding: 8px 10px;
  color: var(--k9-ink);
  -webkit-text-fill-color: var(--k9-ink);
  background: #fffdf7;
  border: 1px solid var(--k9-line);
  box-shadow: 3px 3px 0 var(--k9-soft-2);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.k9-rate-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .k9-rate-tool {
    width: min(100%, calc(100vw - 24px));
    margin: 14px auto 22px;
  }

  .k9-rate-title,
  .k9-rate-body {
    grid-template-columns: 1fr;
  }

  .k9-rate-title {
    gap: 10px;
    padding: 12px;
  }

  .k9-rate-pill {
    justify-self: stretch;
    grid-template-columns: auto 1fr;
    min-width: 0;
    gap: 8px;
    padding: 8px 10px;
    text-align: left;
  }

  .k9-rate-pill span {
    margin-top: 0;
  }

  .k9-rate-body {
    padding: 9px;
  }

  .k9-rate-panel {
    padding: 9px;
  }

  .k9-rate-fields {
    grid-template-columns: 1fr;
  }

  .k9-rate-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .k9-rate-action {
    height: 36px !important;
    min-height: 36px !important;
    padding-inline: 4px !important;
    font-size: 11.3px !important;
    letter-spacing: -0.04em;
  }

  .k9-rate-result-card {
    min-height: 86px;
  }
}

@media (max-width: 370px) {
  .k9-rate-tool {
    width: min(100%, calc(100vw - 20px));
  }

  .k9-rate-title h2 {
    font-size: 23px;
  }

  .k9-rate-title-copy > p:last-child {
    font-size: 13px;
  }

  .k9-rate-actions {
    grid-template-columns: 1fr;
  }

  .k9-rate-action {
    height: 34px !important;
  }
}

body[data-scheme="dark"] .k9-rate-tool,
body[data-scheme="inverse"] .k9-rate-tool,
html[data-scheme="dark"] body .k9-rate-tool,
html[data-theme="dark"] body .k9-rate-tool {
  --k9-shell: #241c16;
  --k9-title: #30251d;
  --k9-title-end: rgba(118, 88, 43, 0.25);
  --k9-body: #2a211a;
  --k9-panel: rgba(51, 39, 31, 0.96);
  --k9-input: #271e18;
  --k9-action: #3b2d23;
  --k9-action-primary: #5a432f;
  --k9-result: #314429;
  --k9-result-strong: #26391f;
  --k9-line: #b79d78;
  --k9-line-strong: #c8ad85;
  --k9-ink: #fff0dc;
  --k9-muted: #e1c9a7;
  --k9-soft: rgba(0, 0, 0, 0.28);
  --k9-soft-2: rgba(0, 0, 0, 0.42);
  --k9-blue: #8bc1d6;
  --k9-warn: #ffb39e;
  --k9-shadow: #000000;
  background-color: var(--k9-shell);
  background-image:
    linear-gradient(rgba(255, 239, 216, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 239, 216, 0.055) 1px, transparent 1px);
}

body[data-scheme="dark"] .k9-rate-title,
body[data-scheme="inverse"] .k9-rate-title,
html[data-scheme="dark"] body .k9-rate-title,
html[data-theme="dark"] body .k9-rate-title {
  background-color: var(--k9-title);
  background-image: linear-gradient(90deg, rgba(48, 37, 29, 0.99), rgba(42, 33, 26, 0.98) 64%, var(--k9-title-end));
}

body[data-scheme="dark"] .k9-rate-pill,
body[data-scheme="dark"] .k9-rate-toast,
body[data-scheme="inverse"] .k9-rate-pill,
body[data-scheme="inverse"] .k9-rate-toast,
html[data-scheme="dark"] body .k9-rate-pill,
html[data-scheme="dark"] body .k9-rate-toast,
html[data-theme="dark"] body .k9-rate-pill,
html[data-theme="dark"] body .k9-rate-toast {
  background: #33271f;
}

body[data-scheme="dark"] .k9-rate-label em,
body[data-scheme="dark"] .rating-badge,
body[data-scheme="dark"] .k9-rate-formula span,
body[data-scheme="inverse"] .k9-rate-label em,
body[data-scheme="inverse"] .rating-badge,
body[data-scheme="inverse"] .k9-rate-formula span,
html[data-scheme="dark"] body .k9-rate-label em,
html[data-scheme="dark"] body .rating-badge,
html[data-scheme="dark"] body .k9-rate-formula span,
html[data-theme="dark"] body .k9-rate-label em,
html[data-theme="dark"] body .rating-badge,
html[data-theme="dark"] body .k9-rate-formula span {
  color: var(--k9-ink);
  -webkit-text-fill-color: var(--k9-ink);
  background: #4a392b;
  border-color: rgba(200, 173, 133, .58);
}

body[data-scheme="dark"] .k9-rate-gauge-track,
body[data-scheme="inverse"] .k9-rate-gauge-track,
html[data-scheme="dark"] body .k9-rate-gauge-track,
html[data-theme="dark"] body .k9-rate-gauge-track {
  background: #1f1813;
}

body[data-scheme="dark"] .k9-rate-gauge-fill,
body[data-scheme="inverse"] .k9-rate-gauge-fill,
html[data-scheme="dark"] body .k9-rate-gauge-fill,
html[data-theme="dark"] body .k9-rate-gauge-fill {
  background: linear-gradient(90deg, #9d7d3f, #67884f 58%, #87a96d);
}

@media (prefers-color-scheme: dark) {
  body:not([data-scheme="light"]) .k9-rate-tool {
    --k9-shell: #241c16;
    --k9-title: #30251d;
    --k9-title-end: rgba(118, 88, 43, 0.25);
    --k9-body: #2a211a;
    --k9-panel: rgba(51, 39, 31, 0.96);
    --k9-input: #271e18;
    --k9-action: #3b2d23;
    --k9-action-primary: #5a432f;
    --k9-result: #314429;
    --k9-result-strong: #26391f;
    --k9-line: #b79d78;
    --k9-line-strong: #c8ad85;
    --k9-ink: #fff0dc;
    --k9-muted: #e1c9a7;
    --k9-soft: rgba(0, 0, 0, 0.28);
    --k9-soft-2: rgba(0, 0, 0, 0.42);
    --k9-blue: #8bc1d6;
    --k9-warn: #ffb39e;
    --k9-shadow: #000000;
  }

  body:not([data-scheme="light"]) .k9-rate-title {
    background-color: var(--k9-title);
    background-image: linear-gradient(90deg, rgba(48, 37, 29, 0.99), rgba(42, 33, 26, 0.98) 64%, var(--k9-title-end));
  }

  body:not([data-scheme="light"]) .k9-rate-pill,
  body:not([data-scheme="light"]) .k9-rate-toast {
    background: #33271f;
  }

  body:not([data-scheme="light"]) .k9-rate-label em,
  body:not([data-scheme="light"]) .rating-badge,
  body:not([data-scheme="light"]) .k9-rate-formula span {
    color: var(--k9-ink);
    -webkit-text-fill-color: var(--k9-ink);
    background: #4a392b;
    border-color: rgba(200, 173, 133, .58);
  }
}
