.icon-btn{
  min-width: var(--control-min-height);
  min-height: var(--control-min-height);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 6px;
  border: 1px solid var(--control-border);
  background: var(--control-bg);
  color: var(--btn-text);
  border-radius: 12px;
  padding: var(--control-padding-block) var(--control-padding-inline);
  cursor:pointer;
  font-weight: 600;
  line-height: 1.2;
  touch-action: manipulation;
}
.icon-btn:hover{
  transform: translateY(-1px);
  background: var(--control-bg-hover);
  border-color: var(--control-border-hover);
  box-shadow: var(--control-hover-shadow);
}
.icon-btn:active{ transform: translateY(0px); }
.icon-btn:disabled,
.btn:disabled{
  cursor: not-allowed;
  opacity: .62;
  transform: none;
  box-shadow: none;
}
.icon-btn:disabled:hover,
.btn:disabled:hover{
  transform: none;
  border-color: var(--control-border);
  box-shadow: none;
}

@media (max-width: 720px){
  .hero h1{ font-size: 30px; }
  .hero p{ line-height: 1.55; }
  .card{ padding: var(--card-padding); }
}

.hero{
  border: 2px solid var(--si-ink);
  border-radius: var(--si-radius-lg);
  padding: var(--space-6);
  background: var(--si-paper);
  color: var(--si-ink);
  box-shadow: 12px 12px 0 var(--si-shadow);
  position: relative;
  overflow: hidden;
}
.hero::after{
  content:"";
  position:absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(20,184,166,.42), rgba(161,98,7,.22), transparent 72%);
  pointer-events: none;
}
.hero-logo{
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.hero-logo img{
  width: min(420px, 92%);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(2, 6, 23, .35));
}
.hero h1{
  margin: 0 0 6px;
  font-size: var(--text-xxl);
  line-height: var(--leading-tight);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.hero p{
  margin:0;
  color: var(--muted);
  max-width: 80ch;
  line-height: 1.62;
}
.hero-actions{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-kicker{
  display:inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(20,184,166,.32);
  border-radius: var(--radius-pill);
  background: rgba(20,184,166,.10);
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-proof{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.stat-card{
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 12px;
  background: var(--panel-tint-strong);
  box-shadow: var(--shadow-soft);
}
.stat-card span,
.stat-card small{
  display:block;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}
.stat-card b{
  display:block;
  margin: 3px 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  line-height: var(--leading-title);
}

.panel{
  border: 1px solid var(--border);
  background: var(--panel-tint);
  border-radius: var(--radius);
  padding: var(--panel-padding);
  box-shadow: var(--shadow-soft);
}
.panel h2{
  margin: 0 0 10px;
  font-size: var(--text-sm);
  line-height: var(--leading-title);
  letter-spacing: .2px;
  color: var(--text);
  text-transform: uppercase;
  font-family: var(--font-display);
}

.field{
  margin-bottom: var(--space-3);
}
label.small{
  display:block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.35;
}
input[type="text"], input[type="number"], input[type="search"], select{
  width: 100%;
  min-height: var(--control-min-height);
  padding: var(--control-padding-block) var(--control-padding-inline);
  border: 1px solid var(--control-border);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  outline:none;
}
input[type="text"]:focus-visible,
input[type="number"]:focus-visible,
input[type="search"]:focus-visible,
select:focus-visible{
  border-color: var(--control-border-hover);
}
input[type="checkbox"]{
  accent-color: var(--accent);
}

.row{
  display:flex;
  gap:10px;
}
.row > * { flex: 1; }

.checkbox-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height: 210px;
  overflow:auto;
  padding-right: 6px;
}
.checkbox{
  display:flex;
  gap:10px;
  align-items:flex-start;
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
}
.checkbox:hover{
  background: rgba(20,184,166,.10);
  border-color: rgba(20,184,166,.22);
}
.checkbox:focus-within{
  border-color: var(--control-border-hover);
  box-shadow: var(--focus-ring);
}
.checkbox input{
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}
.checkbox small{ color: var(--muted); }

.chips{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip{
  appearance: none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 40px;
  border: 1px solid var(--border);
  background: var(--chip);
  padding: 8px 12px;
  border-radius: 999px;
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  cursor:pointer;
  user-select:none;
  touch-action: manipulation;
}
.chip:hover{
  transform: translateY(-1px);
  border-color: var(--control-border-hover);
  background: var(--control-bg-hover);
}
.chip.active{
  border-color: rgba(20,184,166,.45);
  background: rgba(20,184,166,.12);
  box-shadow: 0 0 0 3px rgba(20,184,166,.18);
}
.chip:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

.btn{
  width: 100%;
  min-width: 44px;
  min-height: 44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: var(--control-padding-block) var(--control-padding-inline);
  border-radius: var(--si-radius-sm);
  border: 2px solid var(--si-ink);
  background: var(--si-lime);
  color: var(--si-ink);
  box-shadow: 4px 4px 0 var(--si-shadow);
  cursor:pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: var(--si-ink);
  box-shadow: 6px 6px 0 var(--si-shadow);
  text-decoration: none;
}
.btn:focus-visible{
  box-shadow: 4px 4px 0 var(--si-shadow), var(--focus-ring);
}
.btn.secondary{
  background: var(--si-panel);
  border-color: var(--si-ink);
  color: var(--si-ink);
  font-weight: 600;
}
.btn:disabled,
.btn:disabled:hover{
  cursor: not-allowed;
  opacity: .62;
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cards-related{
  grid-template-columns: 1fr;
}
@media (max-width: 820px){
  .cards{ grid-template-columns: 1fr; }
}

.card{
  border: 2px solid var(--si-ink);
  background: var(--si-panel);
  color: var(--si-ink);
  border-radius: var(--si-radius-md);
  padding: var(--card-padding);
  box-shadow: 8px 8px 0 var(--si-shadow);
  display:flex;
  flex-direction:column;
  gap: 10px;
  min-height: 148px;
}
.card-clickable{
  cursor: pointer;
}
.card:hover{
  transform: translateY(-1px);
  border-color: var(--si-ink);
  box-shadow: 10px 10px 0 var(--si-shadow);
}
.card:focus-visible{
  box-shadow: 8px 8px 0 var(--si-shadow), var(--focus-ring);
}
.card .title{
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.badge-num{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(20,184,166,.16);
  border: 1px solid rgba(20,184,166,.25);
  font-weight: 800;
  font-size: 12px;
  flex: 0 0 auto;
}
.card h3{
  margin:0;
  font-size: 16px;
  line-height: 1.3;
  font-family: var(--font-display);
}
.card h3 a{
  color: inherit;
  text-decoration: none;
}
.card h3 a:hover{
  text-decoration: underline;
}
.card p{
  margin:0;
  color: var(--muted);
  line-height: 1.52;
  font-size: 14px;
}
.card-metrics{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.metric{
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 9px;
  background: var(--surface-soft);
}
.metric span{
  display:block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}
.metric b{
  display:block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
}
.card-verdict{
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius2);
  padding: 9px 10px;
  background: var(--surface-soft);
}
.card-verdict span{
  display:block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.25;
  text-transform: uppercase;
}
.card-verdict p{
  margin-top: 3px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.card-evaluation-list{
  display:grid;
  gap: 6px;
  margin: 0;
}
.card-evaluation-list > div{
  display:grid;
  grid-template-columns: minmax(92px, .38fr) 1fr;
  gap: 8px;
  align-items:start;
  border-top: 1px solid var(--border);
  padding-top: 6px;
}
.card-evaluation-list dt{
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}
.card-evaluation-list dd{
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}
.card-note{
  border-left: 3px solid rgba(245,158,11,.55);
  padding-left: 10px;
  font-size: var(--text-xs) !important;
}
@media (max-width: 560px){
  .card-metrics{ grid-template-columns: 1fr; }
  .card-evaluation-list > div{ grid-template-columns: 1fr; gap: 2px; }
}

.badges{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge{
  display:inline-flex;
  align-items:center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface-soft);
}
.badge.green{ border-color: rgba(20,184,166,.45); background: rgba(20,184,166,.12); }
.badge.purple{ border-color: rgba(99,102,241,.45); background: rgba(99,102,241,.12); }
.badge.orange{ border-color: rgba(249,115,22,.45); background: rgba(249,115,22,.12); }
.badge.gray{ border-color: rgba(148,163,184,.40); background: rgba(148,163,184,.10); }

.card .cta{
  margin-top:auto;
  display:flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
}
.card .cta a{
  font-weight: 800;
  color: var(--text);
  text-decoration:none;
}
.card .cta a:hover{ text-decoration:underline; }
.card .cta .hint{
  color: var(--muted);
  font-size: 12px;
}
.plan-toggle-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 34px;
  border: 1px solid rgba(20,184,166,.45);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(20,184,166,.12);
  color: var(--text);
  cursor:pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-decoration:none;
}
.plan-toggle-btn:hover{
  border-color: rgba(20,184,166,.70);
  text-decoration: underline;
}
.plan-toggle-btn.is-saved{
  border-color: rgba(249,115,22,.48);
  background: rgba(249,115,22,.12);
}
.plan-toggle-btn:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}
.plan-feedback{
  margin: 0 0 12px;
  border: 1px solid rgba(20,184,166,.30);
  border-radius: var(--radius2);
  padding: 9px 11px;
  background: rgba(20,184,166,.09);
  color: var(--text);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.plan-feedback.is-error{
  border-color: rgba(185,28,28,.35);
  background: rgba(185,28,28,.08);
}
.empty-state{
  grid-column: 1 / -1;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: var(--space-7);
  background: var(--panel-tint);
  box-shadow: var(--shadow-soft);
}
.empty-state h3{
  margin:0 0 6px;
  font-family: var(--font-display);
}
.empty-state p{
  margin:0;
  color: var(--muted);
}

.section{
  border: 2px solid var(--si-ink);
  background: var(--si-panel);
  color: var(--si-ink);
  border-radius: var(--si-radius-lg);
  padding: var(--panel-padding);
  box-shadow: 8px 8px 0 var(--si-shadow);
  margin-bottom: 14px;
}
.section h2{
  margin:0 0 10px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .2px;
  font-family: var(--font-display);
}
.section p,
.notice p,
.callout p{
  line-height: 1.6;
}
.small-note{
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
hr.sep{
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

.table-wrap{
  overflow:auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: var(--panel-tint);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}
.table-wrap:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  box-shadow: var(--shadow-soft), var(--focus-ring);
}
table{
  width:100%;
  border-collapse: collapse;
  min-width: 900px;
}
th,td{
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 13px;
  line-height: 1.45;
}
th{
  text-align:left;
  color: var(--muted);
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--table-head-bg);
  backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .02em;
}
tbody tr:nth-child(even){
  background: var(--table-row-bg);
}
tbody tr:hover,
tbody tr:focus-within{
  background: rgba(20,184,166,.09);
}
tbody tr:focus-within{
  box-shadow: inset 3px 0 0 var(--accent);
}
td .mini{
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
@media (max-width: 720px){
  table{
    min-width: 860px;
  }
  th,td{
    padding: 10px;
  }
}

.notice{
  border: 1px solid rgba(20,184,166,.35);
  background: rgba(20,184,166,.08);
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--text);
}
@keyframes fade-up{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: translateY(0); }
}

@keyframes shimmer{
  0%{ transform: translateX(-100%); }
  100%{ transform: translateX(100%); }
}

@media (prefers-reduced-motion: no-preference){
  .hero{
    animation: fade-up .32s var(--ease-out) both;
  }
}

.skeleton{
  position: relative;
  overflow: hidden;
  background: var(--skeleton-bg);
  border-radius: 10px;
}
.skeleton::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, transparent, var(--skeleton-shine), transparent);
  animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton-line{
  height: 12px;
  border-radius: 999px;
  margin: 8px 0;
}
.skeleton-line.sm{ width: 40%; }
.skeleton-line.md{ width: 68%; }
.skeleton-line.lg{ width: 92%; }
.skeleton-line.xl{ width: 100%; height: 18px; }
.skeleton-card{
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--panel-tint);
  box-shadow: var(--shadow);
}
.skeleton-table td{
  padding: 12px;
}
.skeleton-pill{
  height: 20px;
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation: none !important;
    transition: none !important;
  }
}
.notice b{ font-weight: 900; }
/* Extra detail blocks */
.callout{
  border: 1px solid rgba(245, 158, 11, .45);
  background: rgba(245, 158, 11, .10);
  padding: 12px 14px;
  border-radius: var(--radius);
}

.link-list{
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.link-list li{
  margin: 10px 0;
  line-height: 1.35;
}

.link-list a{
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(148,163,184,.35);
}

.link-list a:hover{
  border-bottom-color: rgba(20,184,166,.55);
}
