.tool-navigation{
  display:flex;
  gap:28px;
  font-size:14px;
  font-weight:500
}
.tool-navigation [aria-current]{
  color:var(--blue)
}
.tool-main{
  max-width:1200px
}
.tool-heading{
  padding:68px 0 36px
}
.tool-heading h1{
  font-size:clamp(36px,4.2vw,56px);
  line-height:1.12;
  letter-spacing:-1.8px;
  font-weight:600;
  margin:14px 0 18px
}
.tool-heading>p:last-child{
  color:var(--muted);
  line-height:1.65;
  font-size:18px
}
.tool-entry{
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px;
  gap:32px;
  align-items:start
}
.commission-form{
  padding:30px;
  background:white;
  border:1px solid var(--line);
  border-radius:16px
}
.commission-form label{
  display:block;
  font-size:18px;
  font-weight:600
}
.commission-form #url-help{
  margin:7px 0 20px;
  font-size:14px;
  line-height:1.5;
  color:var(--muted)
}
.url-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px
}
.url-row input{
  font:inherit;
  min-width:200px;
  flex:1;
  width:100%;
  background:var(--soft);
  border:1px solid var(--control);
  border-radius:8px;
  padding:15px 14px;
  color:var(--ink);
  outline-offset:3px
}
.url-row input:focus-visible{
  outline:2px solid var(--blue)
}
.url-row .button{
  font-size:14px;
  min-height:52px;
  white-space:nowrap;
  padding:0 18px
}
.form-bottom{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-top:18px;
  font-size:12px;
  color:var(--muted);
  align-items:center
}
.example-button{
  background:none;
  padding:7px 0;
  color:var(--blue);
  font-size:13px;
  min-height:34px
}
.link-guide{
  padding:8px 0 0;
  font-size:14px;
  line-height:1.6
}
.link-guide strong{
  font-size:16px
}
.link-guide ol{
  padding-left:19px;
  margin:12px 0
}
.link-guide li{
  padding-left:4px;
  margin:5px 0;
  color:var(--muted)
}
.link-guide a,.method-note a{
  color:var(--blue);
  font-weight:500
}
.analysis-status{
  border:1px solid var(--line);
  background:white;
  border-radius:12px;
  padding:20px 24px;
  margin:24px 0;
  font-size:15px;
  line-height:1.6
}
.analysis-status[data-kind=loading]{
  background:var(--blue-soft);
  border-color:#c5d2fb
}
.analysis-status[data-kind=error]{
  border-left:4px solid var(--coral)
}
.analysis-status a{
  color:var(--blue);
  display:inline-block;
  margin-left:8px;
  text-decoration:underline
}
.analysis-status[data-kind=loading]:before{
  content:'';
  display:inline-block;
  width:14px;
  height:14px;
  border:2px solid #b3c2f4;
  border-top-color:var(--blue);
  border-radius:50%;
  margin-right:12px;
  animation:spin 1s linear infinite
}
@keyframes spin{
  to{
    transform:rotate(360deg)
  }
}
button:disabled{
  opacity:.6;
  cursor:wait
}
.analysis-results{
  margin-top:36px;
  outline-offset:6px
}
.result-header{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-start;
  padding:28px 0;
  border-top:1px solid var(--line)
}
.result-header h2{
  font-size:26px;
  letter-spacing:-.5px;
  margin:8px 0;
  line-height:1.35
}
.result-header p{
  color:var(--muted);
  line-height:1.6
}
.result-kicker{
  font-size:13px;
  color:var(--blue)!important;
  font-weight:600
}
.source-link{
  font-size:14px;
  color:var(--blue);
  white-space:nowrap;
  padding-top:5px
}
.result-meta{
  font-size:12px;
  margin-top:12px
}
.example-notice{
  padding:12px 18px;
  border-radius:8px;
  background:#fff0eb;
  font-size:14px;
  margin-bottom:12px
}
.lot-switch{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0 0 20px
}
.lot-switch label{
  font-weight:600
}
.lot-switch select{
  font:inherit;
  border:1px solid var(--control);
  border-radius:8px;
  min-height:44px;
  padding:10px 40px 10px 14px;
  background:white;
  color:var(--ink);
  max-width:100%
}
.lot-card{
  border:1px solid var(--line);
  background:white;
  border-radius:16px;
  overflow:hidden
}
.lot-title{
  padding:22px 26px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:center
}
.lot-title h3{
  font-size:18px;
  font-weight:600
}
.lot-title span{
  font-size:13px;
  color:var(--muted)
}
.metrics{
  display:grid;
  grid-template-columns:1fr 1.25fr 1fr;
  padding:26px;
  gap:24px;
  border-bottom:1px solid var(--line)
}
.metric small{
  display:block;
  color:var(--muted);
  font-size:13px
}
.metric strong{
  display:block;
  margin:9px 0;
  font-size:clamp(20px,2.2vw,29px);
  letter-spacing:-.5px;
  font-weight:600;
  font-variant-numeric:tabular-nums
}
.metric em{
  font-style:normal;
  font-size:12px;
  color:var(--muted)
}
.metric.reference strong{
  color:var(--blue)
}
.ranking-note{
  padding:18px 26px;
  background:var(--blue-soft);
  font-size:14px;
  line-height:1.6
}
.ranking-note strong{
  display:block;
  font-weight:600
}
.table-scroll{
  overflow-x:auto
}
.offers-table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
  text-align:left;
  min-width:780px
}
.offers-table caption{
  text-align:left;
  padding:24px 26px 16px;
  font-weight:600
}
.offers-table th{
  font-size:12px;
  font-weight:500;
  color:var(--muted);
  background:var(--soft);
  padding:13px 16px;
  white-space:nowrap
}
.offers-table td{
  padding:17px 16px;
  border-top:1px solid var(--line);
  vertical-align:top;
  line-height:1.45
}
.offers-table th:first-child,.offers-table td:first-child{
  padding-left:26px
}
.offers-table td:nth-child(2){
  min-width:190px
}
.offers-table td:nth-child(3),.offers-table td:nth-child(4){
  white-space:nowrap;
  font-variant-numeric:tabular-nums
}
.offers-table tr.first td{
  background:#f7f9ff
}
.offers-table td small{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:5px;
  max-width:260px
}
.rank-number{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:28px;
  height:28px;
  background:var(--soft);
  border-radius:6px;
  font-weight:600
}
.first .rank-number{
  background:var(--blue);
  color:white
}
.lot-method{
  padding:20px 26px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
  line-height:1.7
}
.lot-method p+p{
  margin-top:8px
}
.result-disclaimer{
  font-size:13px;
  line-height:1.65;
  color:var(--muted);
  margin:16px 0
}
.tool-explanation{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:44px;
  padding:48px 0;
  margin-top:26px;
  border-bottom:1px solid var(--line)
}
.tool-explanation h2{
  font-size:16px;
  margin:16px 0 8px;
  font-weight:600
}
.tool-explanation p{
  font-size:14px;
  color:var(--muted);
  line-height:1.65;
  max-width:290px
}
.method-note{
  font-size:14px;
  color:var(--muted);
  padding:24px 0;
  border-bottom:1px solid var(--line);
  line-height:1.7
}
.method-note summary{
  cursor:pointer;
  font-size:15px;
  font-weight:500;
  color:var(--ink);
  min-height:30px
}
.method-note p{
  margin:14px 0;
  max-width:950px
}
.tool-product-link{
  padding:38px 0 50px;
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:center
}
.tool-product-link strong{
  font-size:18px;
  font-weight:600
}
.tool-product-link p{
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
  margin-top:8px
}
.tool-product-link a{
  white-space:nowrap;
  font-size:14px
}
@media(max-width:1020px){
  .tool-entry{
    grid-template-columns:1fr
  }
  .link-guide{
    display:none
  }
  .tool-navigation{
    gap:18px
  }
  .url-row{
    flex-wrap:nowrap
  }
  .tool-heading{
    padding-top:48px
  }
  .metrics{
    gap:16px
  }
  .tool-explanation{
    gap:26px
  }
}
@media(max-width:760px){
  .tool-navigation{
    display:none
  }
  .commission-page .header-login{
    display:inline-flex;
    font-size:12px;
    padding:10px 12px
  }
  .commission-page .logo{
    width:145px;
    height:auto
  }
  .commission-page .header{
    gap:15px
  }
  .tool-heading h1{
    letter-spacing:-1px
  }
  .tool-heading>p:last-child{
    font-size:16px
  }
  .desktop-break{
    display:none
  }
  .commission-form{
    padding:22px
  }
  .commission-form label{
    font-size:16px
  }
  .url-row{
    flex-direction:column
  }
  .url-row input{
    min-width:0;
    font-size:14px
  }
  .url-row .button{
    justify-content:center
  }
  .form-bottom{
    gap:8px
  }
  .tool-explanation{
    grid-template-columns:1fr;
    gap:25px;
    padding:30px 0
  }
  .tool-explanation>div{
    padding-left:42px;
    position:relative
  }
  .tool-explanation img{
    position:absolute;
    left:0;
    top:1px
  }
  .tool-explanation h2{
    margin:0 0 6px
  }
  .tool-explanation p{
    max-width:none
  }
  .tool-product-link{
    display:block
  }
  .tool-product-link a{
    display:inline-block;
    margin-top:20px
  }
  .result-header{
    display:block
  }
  .result-header h2{
    font-size:22px
  }
  .source-link{
    display:inline-block;
    margin-top:14px
  }
  .metrics{
    grid-template-columns:1fr 1fr;
    padding:20px;
    gap:22px
  }
  .metric.reference{
    grid-column:1/-1;
    grid-row:1
  }
  .metric strong{
    font-size:23px
  }
  .metric.reference strong{
    font-size:32px
  }
  .lot-title{
    padding:18px 20px
  }
  .lot-title span{
    font-size:12px
  }
  .ranking-note,.lot-method{
    padding:18px 20px
  }
  .analysis-status{
    padding:18px
  }
  .analysis-status a{
    margin-left:0;
    display:block
  }
}
@media(prefers-reduced-motion:reduce){
  .analysis-status[data-kind=loading]:before{
    animation:none
  }
}
/* Public tool: compact entry, focused results and a readable comparison. */
.tool-heading{
  padding:38px 0 27px
}
.tool-heading h1{
  font-size:48px;
  margin:10px 0 15px
}
.tool-heading>p:last-child{
  font-size:17px
}
.tool-entry{
  grid-template-columns:minmax(0,1fr) 220px;
  gap:26px
}
.commission-form{
  padding:25px
}
.link-guide{
  font-size:13px;
  padding:12px 0
}
.link-guide summary{
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  min-height:44px;
  padding-top:10px
}
.link-guide ol{
  margin:8px 0 14px
}
.form-bottom{
  font-size:11px
}
.result-actions{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:20px
}
.result-actions>span{
  font-size:12px;
  line-height:19px;
  color:var(--muted)
}
.result-actions .button{
  font-size:13px;
  flex-shrink:0
}
.lot-switch{
  margin-top:4px
}
.company-section{
  padding:23px 26px;
  border-bottom:1px solid var(--line)
}
.company-section label{
  font-size:14px;
  font-weight:600;
  display:inline-block;
  margin-right:18px
}
.company-section select{
  max-width:100%;
  font:inherit;
  font-size:14px;
  background:white;
  color:var(--ink);
  border:1px solid var(--control);
  border-radius:8px;
  padding:11px 36px 11px 14px;
  min-height:44px
}
.company-summary{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin-top:20px;
  padding:20px;
  background:var(--blue-soft);
  border-radius:8px
}
.company-summary small{
  font-size:12px;
  display:block;
  color:var(--muted);
  line-height:19px
}
.company-summary strong{
  display:block;
  font-weight:600;
  font-size:20px;
  margin-top:8px;
  line-height:1.3;
  font-variant-numeric:tabular-nums
}
.company-section #company-position>p{
  font-size:13px;
  margin-top:12px;
  line-height:20px
}
.offers-table .selected-company td{
  background:#fff4ef!important
}
.offers-table .selected-company td:first-child{
  box-shadow:inset 3px 0 var(--coral)
}
.offers-chart{
  padding:24px 26px 18px;
  border-bottom:1px solid var(--line)
}
.chart-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px
}
.chart-heading h3{
  font-size:16px;
  font-weight:600
}
.chart-heading p{
  font-size:12px;
  color:var(--muted);
  margin-top:7px
}
.chart-legend{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  font-size:11px;
  max-width:360px;
  line-height:18px
}
.chart-legend span:before{
  display:inline-block;
  content:'';
  width:9px;
  height:9px;
  margin-right:6px;
  background:var(--blue);
  border-radius:50%
}
.chart-legend .legend-range:before{
  background:var(--blue-soft);
  border:1px solid var(--control);
  border-radius:0
}
.chart-legend .legend-selected:before{
  background:var(--coral)
}
.chart-scroll{
  overflow:auto
}
.chart-scroll svg{
  display:block;
  min-width:740px;
  width:100%;
  font-family:Rethink,Arial,sans-serif
}
.chart-empty{
  font-size:12px;
  color:var(--muted);
  line-height:20px;
  margin-top:10px
}
.reservation-note{
  font-size:12px;
  line-height:20px;
  padding:12px 26px;
  background:#fff4ef;
  border-top:1px solid var(--line)
}
.lot-method summary{
  cursor:pointer;
  color:var(--ink);
  font-weight:500;
  min-height:28px
}
.lot-method[open] summary{
  margin-bottom:12px
}
.has-results .tool-explanation{
  display:none
}
.has-results .method-note{
  margin-top:20px
}
.tool-explanation{
  padding:32px 0;
  margin-top:8px
}
.tool-product-link{
  padding-block:28px 35px
}
.analysis-results{
  scroll-margin-top:20px
}
.metric strong{
  overflow-wrap:anywhere
}
.result-header h2{
  max-width:890px
}
@media(max-width:1020px){
  .tool-entry{
    grid-template-columns:1fr
  }
  .link-guide{
    display:block;
    padding:0 3px;
    margin-top:-16px
  }
  .link-guide summary{
    padding-top:0;
    min-height:32px
  }
  .link-guide ol{
    max-width:450px
  }
  .tool-heading h1{
    font-size:42px
  }
  .company-summary{
    grid-template-columns:1fr 1fr
  }
  .chart-heading{
    display:block
  }
  .chart-legend{
    margin-top:14px;
    max-width:none
  }
}
@media(max-width:760px){
  .tool-heading{
    padding-top:28px
  }
  .tool-heading h1{
    font-size:36px;
    letter-spacing:-1px
  }
  .tool-heading>p:last-child{
    font-size:15px
  }
  .commission-page .logo{
    width:160px
  }
  .commission-page .header{
    gap:12px
  }
  .commission-page .header-login{
    font-size:10px;
    padding:9px 11px;
    min-height:40px
  }
  .commission-form{
    padding:20px
  }
  .tool-entry{
    gap:22px
  }
  .company-section,.offers-chart{
    padding:20px
  }
  .company-section label{
    display:block;
    margin:0 0 10px
  }
  .company-section select{
    width:100%;
    font-size:13px
  }
  .company-summary{
    padding:16px;
    gap:18px
  }
  .company-summary strong{
    font-size:18px;
    overflow-wrap:anywhere
  }
  .company-summary small{
    font-size:11px
  }
  .result-actions{
    flex-direction:column;
    align-items:flex-start;
    gap:10px
  }
  .result-actions>span{
    font-size:11px
  }
  .reservation-note{
    padding-inline:20px
  }
  .chart-legend{
    font-size:10px
  }
  .tool-product-link strong{
    font-size:17px
  }
  .result-header{
    padding:22px 0
  }
  .result-header h2{
    font-size:23px
  }
  .result-header p{
    font-size:13px
  }
  .result-meta{
    font-size:11px!important
  }
}
@media(max-width:360px){
  .commission-page .logo{
    width:135px
  }
  .commission-page .header{
    gap:6px
  }
  .commission-page .header-login{
    font-size:9px;
    padding:8px
  }
  .tool-heading h1{
    font-size:33px
  }
  .company-summary{
    grid-template-columns:1fr
  }
  .company-summary strong{
    margin-top:3px
  }
}
