.cf-shell { max-width: 1360px; }
.cf-hero { padding: 1.4rem 0 2.2rem; }
.cf-hero h1 { font-size: clamp(2.9rem, 8.8vw, 8rem); line-height: .95; padding: 1.2rem 0; }
.cf-hero .learn-deck { max-width: 44rem; }
.cf-shell a { text-decoration: underline; text-underline-offset: .18em; }
.cf-tabs { display: flex; flex-wrap: wrap; gap: .35rem; border-bottom: 1px solid #171912; }
.cf-tabs button, .cf-actions button, .cf-span button {
  border: 1px solid #171912; background: transparent; color: inherit; font: inherit;
  font-size: .88rem; padding: .68rem .95rem; cursor: pointer;
}
.cf-tabs button { border-bottom: 0; }
.cf-tabs [aria-selected="true"] { background: #171912; color: #fff; }
.cf-actions button, .cf-span button { background: var(--learn-accent); }
.cf-shell button:disabled { opacity: .5; cursor: default; }
.cf-panel { padding-top: 1.8rem; }
.cf-panel[hidden] { display: none; }
.cf-intro { margin-bottom: 1.4rem; }
.cf-panel h2 { font: 600 clamp(1.7rem, 4vw, 3rem)/1.05 'Archivo',sans-serif; letter-spacing: -.045em; margin-bottom: .55rem; }
.cf-panel h3 { font: 600 clamp(1.3rem, 2.2vw, 1.8rem)/1.15 'Archivo',sans-serif; letter-spacing: -.025em; }
.cf-intro p, .cf-history p, .cf-details p { max-width: 77ch; line-height: 1.55; }
.cf-controls, .cf-workflow { min-width: 0; margin: 0; border: 1px solid #a7a99d; padding: .9rem; background: #f8f8f2; }
.cf-controls, .cf-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 12rem),1fr)); gap: .8rem; align-items: end; }
.cf-controls legend, .cf-workflow legend { padding: 0 .35rem; font-size: .88rem; font-weight: 700; }
.cf-workflows { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; margin-top: 1rem; }
.cf-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cf-fields label:first-child, .cf-fields label:nth-child(2), .cf-span { grid-column: 1/-1; }
.cf-two, .cf-gateways { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; align-items: start; }
.cf-panel label { min-width: 0; display: block; color: #3c4035; font-size: .77rem; line-height: 1.35; }
.cf-panel input:not([type="range"]), .cf-panel select {
  display: block; margin-top: .3rem; width: 100%; min-width: 0; padding: .44rem .55rem; min-height: 2.25rem;
  border: 1px solid #8d9084; background: #fff; color: #171912; font: inherit; border-radius: 0;
}
.cf-panel input[readonly] { background: #ecece4; }
.cf-panel select:focus-visible, .cf-table-wrap:focus-visible, .cf-details summary:focus-visible { outline: 3px solid #6650bd; outline-offset: 3px; }
.cf-note { margin: .65rem 0; color: #4e5248; font-size: .83rem; line-height: 1.55; }
.cf-error { color: #9d241d; margin: .5rem 0; font-size: .85rem; }
.cf-error:empty { display: none; }
.cf-results { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 12rem),1fr)); background: #171912; color: #f8f8f2; gap: 1rem; padding: 1rem; margin: 1rem 0; }
.cf-results:empty { display: none; }
.cf-results dt { font-size: .76rem; color: #d7d9ce; margin-bottom: .35rem; }
.cf-results dd { margin: 0; color: var(--learn-accent); font: 600 1rem/1.4 'IBM Plex Mono',monospace; overflow-wrap: anywhere; }
.cf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin: 1rem 0; }
.cf-actions a { font-size: .86rem; }
.cf-table-wrap { width: 100%; overflow-x: auto; margin: 1rem 0; border: 1px solid #a7a99d; background: #f8f8f2; }
.cf-table-wrap table { width: 100%; min-width: 37rem; border-collapse: collapse; text-align: left; font-size: .85rem; }
.cf-table-wrap caption { text-align: left; font-weight: 700; padding: .75rem; }
.cf-table-wrap th, .cf-table-wrap td { padding: .65rem .75rem; border-top: 1px solid #c9cbbf; vertical-align: top; }
.cf-table-wrap thead { background: #e4e6db; }
.cf-table-wrap tbody th { font-weight: 600; }
.cf-table-wrap small, .cf-table-wrap td a { display: block; }
.cf-table-wrap small { color: #4e5248; margin-top: .25rem; font-size: .75rem; }
.cf-details { margin-top: 1.2rem; font-size: .9rem; }
.cf-details summary { cursor: pointer; font-weight: 700; }
.cf-details p { margin-top: .65rem; }
.cf-verdict { font-weight: 700; margin: 1rem 0; }
.cf-history { border-top: 1px solid #a7a99d; margin-top: 2rem; padding-top: 1.4rem; }
.cf-history p { margin-top: .65rem; }
.cf-history-input { margin: 1rem 0; display: flex !important; align-items: center; flex-wrap: wrap; gap: .65rem; }
.cf-history-input input { accent-color: #6650bd; }
.cf-history-input output { font-weight: 700; min-width: 3ch; }
.cf-chart { display: grid; gap: .75rem; max-width: 56rem; }
.cf-chart-group { border: 1px solid #a7a99d; padding: .65rem .8rem; }
.cf-chart-group strong { font-size: .84rem; }
.cf-chart-line { display: grid; grid-template-columns: 2.5rem minmax(0,1fr) 5.75rem; gap: .45rem; align-items: center; margin-top: .3rem; font-size: .75rem; }
.cf-chart-line > div { background: #ddd9ea; }
.cf-chart-line > span:last-child { text-align: right; }
.cf-chart-own, .cf-chart-rent { height: .6rem; }
.cf-chart-own { background: #6650bd; }
.cf-chart-rent { background: #2e6250; }
.cf-gateways { margin-bottom: 1rem; }
.cf-gateways p { background: #f8f8f2; border: 1px solid #a7a99d; padding: .85rem; font-size: .85rem; line-height: 1.5; }
.cf-gateways a { display: inline-block; }
@media (max-width: 800px) {
  .cf-workflows { grid-template-columns: 1fr; }
  .cf-fields label:nth-child(1), .cf-fields label:nth-child(2) { grid-column: auto; }
}
@media (max-width: 600px) {
  .cf-two, .cf-gateways { grid-template-columns: 1fr; }
  .cf-tabs button { padding: .6rem .53rem; font-size: .76rem; }
}
