/* ═══ Landing Page ═══ */
.cof-lp-hero {
  background: #091A12;
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem 4rem;
}
.cof-lp-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 60%; height: 160%;
  background: radial-gradient(ellipse at center, rgba(20, 83, 50, 0.3) 0%, transparent 60%);
  pointer-events: none;
}
.cof-lp-deco {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.cof-lp-deco--1 {
  width: 300px; height: 300px;
  top: -80px; right: 3%;
  border: 2px solid rgba(191, 162, 78, 0.1);
}
.cof-lp-deco--1::after {
  content: '';
  position: absolute; inset: 26px;
  border-radius: 999px;
  border: 1.5px solid rgba(191, 162, 78, 0.07);
}
.cof-lp-deco--2 {
  width: 140px; height: 140px;
  bottom: 40px; right: 20%;
  border: 1.5px solid rgba(191, 162, 78, 0.06);
}
.cof-lp-deco--3 {
  width: 80px; height: 80px;
  top: 35%; left: -20px;
  border: 1.5px solid rgba(191, 162, 78, 0.05);
}
.cof-lp-hero-inner {
  max-width: 52rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
@keyframes cof-lp-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.cof-lp-hero-inner > * {
  animation: cof-lp-up 0.55s ease-out both;
}
.cof-lp-hero-inner > :nth-child(2) { animation-delay: 0.08s; }
.cof-lp-hero-inner > :nth-child(3) { animation-delay: 0.16s; }
.cof-lp-hero-inner > :nth-child(4) { animation-delay: 0.24s; }
.cof-lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #BFA24E;
  margin-bottom: 1rem;
}
.cof-lp-eyebrow::before {
  content: '';
  display: block;
  width: 1.4rem;
  height: 1.5px;
  background: #BFA24E;
}
.cof-lp-h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #F2EFE8;
  margin: 0 0 1.2rem;
}
.cof-lp-sub {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #8FA894;
  max-width: 36rem;
  margin: 0 0 2rem;
}
.cof-lp-steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.6rem;
  max-width: 36rem;
}
.cof-lp-steps-list li {
  display: flex;
  gap: 0.7rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #8FA894;
}
.cof-lp-steps-list strong {
  color: #D6D1C4;
  font-weight: 600;
}
.cof-lp-step-hint {
  font-size: 0.85rem;
  color: #6B7E6F;
}
.cof-lp-step-num {
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1.5px solid rgba(191, 162, 78, 0.4);
  color: #BFA24E;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}
.cof-lp-note {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #6B7E6F;
  max-width: 36rem;
  margin: 0 0 2rem;
}
.cof-lp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #BFA24E;
  color: #091A12;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.85rem 1.7rem;
  border-radius: 10px;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.12s;
}
.cof-lp-cta:hover {
  background: #CEAF5C;
  transform: translateY(-1px);
}
.cof-lp-cta svg { width: 1rem; height: 1rem; }
.cof-lp-tool {
  background: #EEEDEA;
  padding: 3rem 0.85rem 3.5rem;
  position: relative;
}
.cof-lp-tool::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C8B87A 50%, transparent);
}
.cof-lp-tool-inner {
  max-width: 48rem;
  margin: 0 auto;
}
.cof-lp-tool-head {
  text-align: center;
  margin-bottom: 1.3rem;
}
.cof-lp-tool-head h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #1A2E23;
  margin: 0 0 0.2rem;
}
.cof-lp-tool-head p {
  font-size: 0.875rem;
  color: #5F6B63;
  margin: 0;
}
.cof-lp-problems {
  background: #FAFAF6;
  padding: 3.5rem 1.5rem;
}
.cof-lp-problems-inner {
  max-width: 52rem;
  margin: 0 auto;
}
.cof-lp-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8B7335;
  margin-bottom: 0.45rem;
}
.cof-lp-h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #1A2E23;
  margin: 0 0 1.8rem;
}
.cof-lp-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (max-width: 560px) {
  .cof-lp-cards { grid-template-columns: 1fr; }
}
.cof-lp-card {
  background: #fff;
  border: 1px solid #E8E5DD;
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  position: relative;
  overflow: hidden;
}
.cof-lp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #BFA24E, #8B7335);
}
.cof-lp-card-icon {
  width: 2rem; height: 2rem;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  background: #FBF6EB;
  border: 1px solid #EDE4CC;
}
.cof-lp-card h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #1A2E23;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.cof-lp-card p {
  font-size: 0.825rem;
  line-height: 1.5;
  color: #5F6B63;
  margin: 0;
}
.cof-lp-problems a, .cof-lp-features a, .cof-lp-card a {
  color: #8B7335;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cof-lp-problems a:hover, .cof-lp-features a:hover, .cof-lp-card a:hover {
  color: #BFA24E;
}
.cof-lp-problems a.cof-lp-cta,
.cof-lp-features a.cof-lp-cta {
  color: #091A12;
  text-decoration: none;
}
.cof-lp-features {
  background: #FAFAF6;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid #E8E5DD;
}
.cof-lp-features-inner {
  max-width: 52rem;
  margin: 0 auto;
}
.cof-lp-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem 1.5rem;
}
@media (max-width: 640px) {
  .cof-lp-feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .cof-lp-feat-grid { grid-template-columns: 1fr; }
}
.cof-lp-feat {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.cof-lp-feat-check {
  width: 1.2rem; height: 1.2rem;
  border-radius: 999px;
  background: #E8F5EE;
  color: #0F766E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 0.6rem;
  font-weight: 800;
}
.cof-lp-feat span {
  font-size: 0.85rem;
  color: #3D4F44;
  line-height: 1.4;
}
.cof-lp-feat strong {
  color: #1A2E23;
  font-weight: 700;
}
@media (max-width: 600px) {
  .cof-lp-hero { padding: 3.5rem 1.2rem 3rem; }
  .cof-lp-tool { padding: 2.5rem 0.65rem 3rem; }
  .cof-lp-problems { padding: 2.5rem 1.2rem; }
  .cof-lp-features { padding: 2rem 1.2rem 2.5rem; }
}

/* ═══ Content Section Modifiers ═══ */
.cof-lp--white {
  background: #fff;
  border-top: 1px solid #E8E5DD;
}
.cof-lp-narrow { max-width: 42rem; }
.cof-lp-narrow-sm { max-width: 36rem; }
.cof-lp-center { text-align: center; }

/* ═══ Content Typography ═══ */
.cof-lp-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5F6B63;
  margin: 0 0 1.5rem;
}
.cof-lp-body:last-child { margin-bottom: 0; }
.cof-lp-body-sm {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #5F6B63;
  margin: 1rem 0 0;
}
.cof-lp-h2--tight { margin-bottom: 1rem; }

/* ═══ Content Tables ═══ */
.cof-lp-table-wrap { overflow-x: auto; }
.cof-lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}
.cof-lp-table thead tr { border-bottom: 2px solid #D1C9B8; }
.cof-lp-table tbody tr { border-bottom: 1px solid #E8E5DD; }
.cof-lp-table tbody tr:last-child { border-bottom: none; }
.cof-lp-table th {
  text-align: left;
  padding: 0.6rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: #091A12;
}
.cof-lp-table td { padding: 0.6rem 1rem; }
.cof-lp-table .val { font-weight: 600; }
.cof-lp-table .muted { color: #5F6B63; }

/* ═══ Chip Color Dots ═══ */
.cof-lp-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.4rem;
}
.cof-lp-dot--white  { background: #f3f4f6; border: 1.5px solid #d1d5db; }
.cof-lp-dot--red    { background: #dc2626; border: 1.5px solid #991b1b; }
.cof-lp-dot--blue   { background: #2563eb; border: 1.5px solid #1d4ed8; }
.cof-lp-dot--green  { background: #16a34a; border: 1.5px solid #15803d; }
.cof-lp-dot--black  { background: #1f2937; border: 1.5px solid #111827; }
.cof-lp-dot--purple { background: #7c3aed; border: 1.5px solid #5b21b6; }

/* ═══ FAQ ═══ */
.cof-lp-faq-item { margin-bottom: 1.5rem; }
.cof-lp-faq-item:last-child { margin-bottom: 0; }
.cof-lp-faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #091A12;
  margin: 0 0 0.4rem;
}
.cof-lp-faq-item p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: #5F6B63;
  margin: 0;
}

#cof-calc {
  --cof-panel: #ffffff;
  --cof-ink: #0f172a;
  --cof-sub: #475569;
  --cof-line: #d8e1ee;
  --cof-accent: #0f766e;
  --cof-accent-soft: #ecfdf5;
  --cof-danger: #9f1239;
  --cof-danger-bg: #fff1f2;
  --cof-warn: #92400e;
  --cof-warn-bg: #fffbeb;
  --cof-control-border: #d7deea;
  --cof-control-bg: #fff;
  --cof-number-color: #0f4c5c;
  --cof-number-weight: 600;
  --cof-number-underline: #b0c4c0;

  /* Typography scale – Minor Third (1.2) */
  --fs-xs:   0.75rem;   /* 12px – tags, badges */
  --fs-sm:   0.875rem;  /* 14px – secondary text, labels, small buttons */
  --fs-base: 1rem;      /* 16px – body, controls */
  --fs-md:   1.25rem;   /* 20px – titles, captions */
  --fs-lg:   1.5rem;    /* 24px – large numbers */
  --fs-xl:   2rem;      /* 32px – hero numbers */

  margin: 1.5rem 0;
  padding: 0;
  background: transparent;
  color: var(--cof-ink);
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
#cof-calc * { box-sizing: border-box; }
#cof-calc input, #cof-calc button, #cof-calc select { font-family: inherit; }
#cof-calc input[type="number"] { -moz-appearance: textfield; }
#cof-calc input::-webkit-inner-spin-button,
#cof-calc input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.cof-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
}
.cof-status {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--cof-sub);
}
.cof-share {
  border: 1px solid #b9d7d1;
  background: #effcf8;
  color: #0f5f58;
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
}
.cof-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-end;
}
.cof-copy-state {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}
.cof-reset {
  align-self: center;
  font-size: var(--fs-sm);
  color: #475569;
  text-decoration: underline;
  text-underline-offset: 0.12rem;
  cursor: pointer;
}
.cof-reset:hover { color: #0f4c5c; }

/* ═══ Accordion Sections ═══ */
.cof-cl-section {
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 0.75rem;
}
.cof-cl-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  gap: 0.5rem;
}
.cof-cl-section-header:hover { background: #fafbfc; border-radius: 12px; }
.cof-cl-section-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}
.cof-cl-section-num {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  border: 1.5px solid rgba(15,118,110,0.3);
  color: #0f766e;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cof-cl-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}
.cof-cl-section-summary {
  font-size: 0.8rem;
  color: #64748b;
  margin-left: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.cof-cl-section-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.cof-cl-chevron {
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.cof-cl-section.is-expanded .cof-cl-chevron { transform: rotate(180deg); }
.cof-cl-section.is-expanded .cof-cl-section-summary { opacity: 0; }
.cof-cl-section-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1rem;
  transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
}
.cof-cl-section.is-expanded .cof-cl-section-body {
  max-height: 2000px;
  opacity: 1;
  padding: 0 1rem 1rem;
  overflow: visible;
}
.cof-share-img {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1.5px solid #7c3aed;
  border-radius: 8px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  padding: 0.36rem 0.85rem;
  white-space: nowrap;
}
.cof-share-img:hover {
  background: #ddd6fe;
}
.cof-share-img svg { width: 1em; height: 1em; }
.cof-share-img-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

.cof-hidden { display: none; }

.cof-buy-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}
.cof-buy-main {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: #0f4c5c;
  line-height: 1;
}
.cof-buy-sub {
  font-size: var(--fs-sm);
  color: var(--cof-sub);
}
.cof-slider {
  width: 100%;
  accent-color: var(--cof-accent);
}
.cof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.cof-pill {
  border: 1px solid #d7dfed;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  font-size: var(--fs-sm);
  padding: 0.24rem 0.6rem;
  cursor: pointer;
}
.cof-pill:hover { background: #f1f5f9; }

.cof-field {
  display: grid;
  gap: 0.2rem;
}
.cof-field label {
  font-size: var(--fs-sm);
  color: #64748b;
  font-weight: 700;
}
.cof-field input,
.cof-field select {
  border: 1px solid #d7deea;
  border-radius: 8px;
  background: #fff;
  color: var(--cof-ink);
  padding: 0.35rem 0.44rem;
  font-size: var(--fs-base);
}

.cof-grid-2 {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cof-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-sm);
  color: #475569;
  font-weight: 600;
}
.cof-toggle input { accent-color: var(--cof-accent); }

.cof-stepper {
  display: inline-flex;
  align-items: center;
}
.cof-stepper button {
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid #d7deea;
  background: #fff;
  color: #0f766e;
  font-weight: 800;
  font-size: var(--fs-base);
  cursor: pointer;
}
.cof-stepper button:first-child { border-radius: 8px 0 0 8px; }
.cof-stepper button:last-child { border-radius: 0 8px 8px 0; }
.cof-stepper span {
  min-width: 2.2rem;
  line-height: 1.9rem;
  text-align: center;
  border-top: 1px solid #d7deea;
  border-bottom: 1px solid #d7deea;
  font-size: var(--fs-base);
  font-weight: 700;
  color: #1e293b;
}

.cof-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  justify-content: center;
  margin: 0.45rem 0 0.65rem;
}
.cof-preset {
  border: 1px solid #d7deea;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  font-size: var(--fs-sm);
  padding: 0.24rem 0.62rem;
  cursor: pointer;
}
.cof-preset.is-active {
  border-color: #84b9b0;
  background: #ecfdf5;
  color: #115e59;
  font-weight: 700;
}

/* Marked-mode preset picker */
.cof-presets-picker {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0.45rem 0 0.65rem;
}
.cof-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: #fff;
  padding: 0.44rem 0.62rem;
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #334155;
}
.cof-picker-trigger:hover { border-color: #9ecbc4; }
.cof-picker-trigger.has-selection {
  border-color: #84b9b0;
  background: #f0fdf4;
  color: #115e59;
}
.cof-picker-caret {
  font-size: var(--fs-xs);
  color: #64748b;
  margin-left: 0.1rem;
}
.cof-picker-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 16rem;
  max-width: calc(100vw - 2rem);
  border: 1px solid #d7deea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  padding: 0.35rem;
  z-index: 30;
  display: grid;
  gap: 0.2rem;
}
.cof-picker-dropdown.cof-hidden { display: none; }
.cof-picker-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 0.42rem 0.5rem;
  cursor: pointer;
  font-size: var(--fs-sm);
  color: #334155;
  width: 100%;
  text-align: left;
}
.cof-picker-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.cof-picker-item.is-active {
  background: #f0fdf4;
  border-color: #84b9b0;
  font-weight: 700;
  color: #115e59;
}
.cof-preset-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  flex-shrink: 0;
}
.cof-preset-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  flex-shrink: 0;
}
.cof-preset-vals {
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}
.cof-picker-item.is-active .cof-preset-vals { color: #115e59; }
.cof-preset-label {
  font-size: var(--fs-xs);
  color: #64748b;
  white-space: nowrap;
  margin-left: auto;
}
.cof-picker-item.is-active .cof-preset-label { color: #115e59; }
.cof-picker-custom {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  border-top: 1px solid #eef2f7;
  border-radius: 0;
  background: transparent;
  padding: 0.42rem 0.5rem;
  cursor: pointer;
  font-size: var(--fs-sm);
  color: #64748b;
  width: 100%;
  text-align: left;
}
.cof-picker-custom:hover { color: #334155; }

.cof-chip-list {
  display: grid;
  gap: 0.42rem;
}
.cof-chip-columns {
  display: grid;
  grid-template-columns: 4.9rem minmax(0, 1fr) 2.05rem;
  gap: 0.22rem;
  padding: 0 0.2rem;
  margin-bottom: 0.18rem;
}
.cof-chip-columns span {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  font-weight: 700;
}
.cof-chip-row {
  display: grid;
  grid-template-columns: 4.9rem minmax(0, 1fr) 2.05rem;
  gap: 0.22rem;
  align-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0.24rem 0.2rem;
}
.cof-chip-row:nth-child(odd) {
  background: #fbfdff;
}
.cof-chip-color {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  width: max-content;
}
.cof-chip-button {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 2px solid var(--chip-border, #334155);
  background:
    radial-gradient(circle at center, #f8fafc 0 38%, transparent 40% 100%),
    radial-gradient(circle at center, var(--chip-fill, #94a3b8) 0 99%, transparent 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 1px 1px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.cof-chip-mult {
  font-size: var(--fs-base);
  color: #475569;
  font-weight: 700;
  line-height: 1;
}
.cof-color-menu {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1.55rem);
  gap: 0.28rem;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: #fff;
  padding: 0.32rem;
  z-index: 20;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}
.cof-color-menu.cof-hidden { display: none; }
.cof-color-swatch {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.26);
  background: var(--swatch-color, #94a3b8);
  cursor: pointer;
  padding: 0;
}
.cof-color-swatch.is-active {
  outline: 2px solid #0f766e;
  outline-offset: 1px;
}
.cof-chip-stepper {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  justify-content: flex-start;
}
.cof-chip-stepper button {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--cof-control-border);
  border-radius: 10px;
  background: var(--cof-control-bg);
  color: #0f766e;
  font-size: var(--fs-md);
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}
.cof-chip-stepper button:active { background: #f0fdfa; }
.cof-chip-stepper input {
  width: 4.8rem;
  border: 0;
  border-bottom: 2px dashed var(--cof-number-underline);
  border-radius: 0;
  background: transparent;
  padding: 0 0 0.1rem 0;
  font-size: var(--fs-lg);
  line-height: 1;
  text-align: center;
  font-weight: var(--cof-number-weight);
  color: var(--cof-number-color);
}
.cof-chip-stepper input:focus {
  outline: none;
  border-bottom-style: solid;
  border-bottom-color: var(--cof-accent);
}
.cof-remove {
  width: 2.05rem;
  height: 2.05rem;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff;
  color: #c2410c;
  font-size: var(--fs-base);
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.cof-add {
  margin-top: 0.45rem;
  width: 100%;
  border: 1px dashed #bac8dd;
  border-radius: 10px;
  background: #f8fbff;
  color: #334155;
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 0.55rem 0.5rem;
  cursor: pointer;
}

.cof-suggest-head {
  margin-top: 0.7rem;
  margin-bottom: 0.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.cof-suggest-head span {
  font-size: var(--fs-sm);
  color: #64748b;
  font-weight: 700;
}
.cof-auto-btn {
  border: 1px solid #9ecbc4;
  background: #ecfdf5;
  color: #0f766e;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  cursor: pointer;
}

.cof-options {
  display: grid;
  gap: 0.42rem;
}
.cof-option {
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: #fff;
  padding: 0.45rem;
  cursor: pointer;
}
.cof-option.is-active {
  border-color: #83b9af;
  background: #f0fdf4;
}
.cof-option-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}
.cof-option-label {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: #1e3a5f;
}
.cof-tag {
  font-size: var(--fs-xs);
  border-radius: 999px;
  padding: 0.15rem 0.42rem;
  border: 1px solid transparent;
}
.cof-tag.good { color: #166534; background: #ecfdf3; border-color: #b9efcd; }
.cof-tag.warn { color: #92400e; background: #fffbeb; border-color: #f5dd9b; }
.cof-map {
  font-size: var(--fs-sm);
  color: #475569;
}

.cof-alert {
  border: 1px solid #fecdd3;
  background: var(--cof-danger-bg);
  color: var(--cof-danger);
  border-radius: 10px;
  padding: 0.5rem 0.56rem;
  font-size: var(--fs-sm);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.cof-alert strong { color: #881337; }
.cof-alert button {
  margin-top: 0.34rem;
  border: 1px solid #fda4af;
  background: #fff;
  color: #9f1239;
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
}

.cof-summary {
  font-size: var(--fs-sm);
  color: #334155;
  margin: 1rem 0 1.2rem;
}
.cof-dist-kicker {
  font-size: var(--fs-base);
  color: #334155;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}
.cof-dist-kicker strong {
  font-weight: 700;
  color: #0f172a;
}
.cof-dist-blinds {
  font-size: var(--fs-sm);
  color: #475569;
  text-align: center;
  margin-top: 0.15rem;
}
.cof-stacks {
  margin-top: 0.7rem;
}
.cof-ref-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}
.cof-ref-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cof-chip-token {
  width: 5.1rem;
  height: 5.1rem;
  border-radius: 999px;
  border: 0;
  --chip-notch-a: rgba(255, 255, 255, 0.75);
  --chip-notch-b: rgba(255, 255, 255, 0.12);
  --chip-center-ring: rgba(248, 250, 252, 0.74);
  --chip-face-shadow: rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), transparent 36%),
    var(--chip-fill, #94a3b8);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.cof-chip-token::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: repeating-conic-gradient(
    from -6deg,
    var(--chip-notch-a) 0deg 7deg,
    var(--chip-notch-b) 7deg 28deg
  );
  opacity: 0.3;
}
.cof-chip-token::after {
  content: '';
  position: absolute;
  inset: 0.78rem;
  border-radius: 999px;
  border: 3px solid var(--chip-center-ring);
  background: var(--chip-fill, #94a3b8);
  box-shadow: inset 0 0 0 2px var(--chip-face-shadow);
}
.cof-chip-token.is-light {
  --chip-notch-a: rgba(148, 163, 184, 0.5);
  --chip-notch-b: rgba(148, 163, 184, 0.12);
  --chip-center-ring: rgba(100, 116, 139, 0.35);
  --chip-face-shadow: rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85), transparent 36%),
    #f8fafc;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12), inset 0 0 0 1px #cbd5e1;
}
.cof-chip-token-value {
  position: relative;
  z-index: 2;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--chip-text, #0f172a);
  letter-spacing: 0.01em;
}
.cof-ref-name {
  margin-top: 0.44rem;
  font-size: var(--fs-sm);
  color: #334155;
  font-weight: 700;
}
.cof-ref-mult {
  margin-top: 0.08rem;
  font-size: var(--fs-base);
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}
.cof-ref-eq {
  margin-top: 0.04rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #475569;
}
.cof-stack-total {
  margin-top: 0.78rem;
  border: 1px solid #9ecbc4;
  background: #f0fdf4;
  color: #115e59;
  border-radius: 10px;
  padding: 0.48rem 0.62rem;
  font-size: var(--fs-base);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
}

.cof-warnings {
  display: grid;
  gap: 0.34rem;
  margin-top: 0.55rem;
}
.cof-warning {
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: var(--fs-sm);
  padding: 0.34rem 0.48rem;
}
.cof-warning.red { border-color: #fecdd3; background: #fff1f2; color: #9f1239; }
.cof-warning.yellow { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.cof-chips-only-pitch {
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  border-radius: 8px;
  font-size: var(--fs-sm);
  padding: 0.34rem 0.48rem;
  line-height: 1.45;
}
.cof-chips-only-pitch strong { color: #312e81; }
.cof-chips-only-pitch a {
  color: #4338ca;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12rem;
}
.cof-chips-only-pitch a:hover { color: #3730a3; }


.cof-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eef2f7;
}
.cof-form-row:first-of-type { padding-top: 0; }
.cof-form-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cof-form-label {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.cof-form-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cof-section { margin-bottom: 1.1rem; }
.cof-section:last-child { margin-bottom: 0; }

.cof-buy-hero {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.cof-buy-value {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
}
.cof-buy-step {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--cof-control-border);
  border-radius: 10px;
  background: var(--cof-control-bg);
  color: #0f766e;
  font-weight: 800;
  font-size: var(--fs-md);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cof-buy-step:active { background: #f0fdfa; }
.cof-buy-step:disabled { opacity: 0.35; cursor: default; }
.cof-dollar {
  font-size: var(--fs-lg);
  font-weight: var(--cof-number-weight);
  color: var(--cof-number-color);
  line-height: 1;
}
.cof-num-input {
  font-size: var(--fs-lg);
  font-weight: var(--cof-number-weight);
  color: var(--cof-number-color);
  background: transparent;
  border: none;
  border-bottom: 2px dashed var(--cof-number-underline);
  padding: 0 0 0.1rem 0;
  line-height: 1;
  outline: none;
  text-align: right;
}
.cof-num-input:focus {
  border-bottom-style: solid;
  border-bottom-color: var(--cof-accent);
}
.cof-buy-hero input:not(.cof-num-narrow) {
  width: 5rem;
}
.cof-num-narrow {
  width: 2.5rem;
  text-align: center;
}
.cof-depth {
  font-size: var(--fs-sm);
  color: var(--cof-sub);
  margin-top: 0.12rem;
}

.cof-section-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}
.cof-section-label {
  font-size: var(--fs-base);
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
}
.cof-auto-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #475569;
  user-select: none;
}
.cof-auto-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cof-checkmark {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid #b0c4c0;
  border-radius: 5px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.cof-auto-check input:checked + .cof-checkmark {
  background: #0f766e;
  border-color: #0f766e;
}
.cof-checkmark::after {
  content: '';
  width: 0.32rem;
  height: 0.62rem;
  border: solid transparent;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}
.cof-auto-check input:checked + .cof-checkmark::after {
  border-color: #fff;
}
.cof-blinds-row {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
}
.cof-blinds-row .cof-dollar {
  font-size: var(--fs-lg);
}
.cof-blinds-row input {
  width: 4rem;
}
.cof-blinds-sep {
  font-size: var(--fs-lg);
  color: #64748b;
  font-weight: 500;
  padding: 0 0.2rem;
}
.cof-stepper-lg { margin-top: 0.3rem; }
.cof-stepper-lg button {
  width: 2.5rem;
  height: 2.5rem;
  font-size: var(--fs-md);
}
.cof-stepper-lg > span {
  min-width: 2.8rem;
  line-height: 2.5rem;
  font-size: var(--fs-lg);
}

.cof-marked-switch {
  display: flex;
  justify-content: center;
  margin-bottom: 0.65rem;
}
.cof-marked-switch-track {
  display: inline-flex;
  border: 1px solid #9ecbc4;
  border-radius: 999px;
  background: #ecfdf5;
  padding: 0.18rem;
  gap: 0;
}
.cof-marked-switch-track input { position: absolute; opacity: 0; width: 0; height: 0; }
.cof-marked-opt {
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #0f766e;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  user-select: none;
  white-space: nowrap;
  text-align: center;
}
.cof-marked-opt.is-active {
  background: #fff;
  color: #115e59;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.cof-chip-columns.is-marked {
  grid-template-columns: 3.2rem 5.5rem minmax(0, 1fr) 2.05rem;
}
.cof-chip-row.is-marked {
  grid-template-columns: 3.2rem 5.5rem minmax(0, 1fr) 2.05rem;
}
.cof-chip-row.is-marked .cof-chip-mult { display: none; }
.cof-col-value { text-align: center; }
.cof-chip-value {
  display: flex;
  align-items: center;
  gap: 0.12rem;
}
.cof-chip-value .cof-dollar {
  font-size: var(--fs-sm);
  line-height: 1;
}
.cof-val-input {
  width: 3.5rem;
  font-size: var(--fs-sm);
  font-weight: var(--cof-number-weight);
  color: var(--cof-number-color);
  background: transparent;
  border: none;
  border-bottom: 2px dashed var(--cof-number-underline);
  padding: 0 0 0.1rem 0;
  line-height: 1;
  outline: none;
  text-align: right;
}
.cof-val-input:focus {
  border-bottom-style: solid;
  border-bottom-color: var(--cof-accent);
}

@media (max-width: 600px) {
  #cof-calc {
    overflow-x: hidden;
  }
  .cof-head { flex-wrap: wrap; }
  .cof-head-actions { width: 100%; }
  .cof-form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .cof-chip-columns {
    grid-template-columns: 3.7rem minmax(0, 1fr) 1.9rem;
    gap: 0.25rem;
    padding: 0;
  }
  .cof-chip-columns.is-marked {
    grid-template-columns: 3.2rem 5.5rem minmax(0, 1fr) 1.9rem;
  }
  .cof-chip-row {
    grid-template-columns: 3.7rem minmax(0, 1fr) 1.9rem;
    gap: 0.25rem;
    padding: 0.25rem 0;
  }
  .cof-chip-row.is-marked {
    grid-template-columns: 3.2rem 5.5rem minmax(0, 1fr) 1.9rem;
  }
  .cof-chip-button {
    width: 1.9rem;
    height: 1.9rem;
  }
  .cof-chip-stepper button {
    width: 2rem;
    height: 2rem;
  }
  .cof-chip-stepper input {
    width: 3.1rem;
    padding: 0 0 0.08rem 0;
  }
  .cof-remove {
    width: 1.9rem;
    height: 1.9rem;
  }
  .cof-color-menu {
    grid-template-columns: repeat(4, 1.35rem);
  }
  .cof-color-swatch {
    width: 1.35rem;
    height: 1.35rem;
  }
}

