:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --line: #d6d6d6;
  --accent: #0A84FF;
  --accent-strong: #0066CC;
  --accent-soft: #EEF6FF;
  --yellow: #ffd95a;
  --shadow: 0 14px 32px rgba(0, 0, 0, .055);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 14px;
}
.brand { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.brand span { color: var(--accent); }
.toplink { color: var(--muted); font-size: 14px; font-weight: 650; }

.tool-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; overflow-x: auto; scrollbar-width: none;
  padding: 8px 0 20px; border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
  view-transition-name: tool-tabs;
}
.tool-tabs::-webkit-scrollbar { display: none; }
.tool-tab {
  flex: 0 0 auto; padding: 12px 18px; border: 1px solid #cfe6fb;
  border-radius: 999px; background: #ffffff; color: #242424;
  font-size: 15px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tool-tab:hover {
  transform: translateY(-2px);
  border-color: #9fcff7;
  color: #111111;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .055);
}
.tool-tab.active {
  background: linear-gradient(135deg, #2F95FF, var(--accent));
  border-color: var(--accent); color: #fff;
  box-shadow: 0 8px 20px rgba(10,132,255,.26);
  view-transition-name: active-tab;
}

.hero { padding: 58px 0 42px; max-width: 780px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent-strong); font-size: 13px; font-weight: 750;
}
h1 { margin: 18px 0 14px; font-size: clamp(42px, 8vw, 78px); line-height: .97; letter-spacing: -.065em; }
.hero p { margin: 0; max-width: 650px; color: var(--muted); font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 72px; }
.tool-card {
  background: var(--card); border: 1px solid #dddddd; border-radius: var(--radius);
  padding: 24px; min-height: 180px; box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.tool-card:hover { transform: translateY(-3px); border-color: #bdbdbd; }
.icon {
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px;
  background: #FBE0E8; color: var(--ink); font-size: 28px; margin-bottom: 28px;
  border: none;
  box-shadow: 0 5px 14px rgba(0,0,0,.035);
}
.tool-card:nth-child(2) .icon { background: #E8E1FF; }
.tool-card:nth-child(3) .icon { background: #FFF3BF; }
.tool-card:nth-child(4) .icon { background: #DFF2D8; }
.tool-card:nth-child(5) .icon { background: #DDF1EE; }
.tool-card:nth-child(6) .icon { background: #DCEBFF; }
.tool-card:nth-child(7) .icon { background: #FBE9C9; }
.tool-card:nth-child(8) .icon { background: #F2DFF6; }
.tool-card:nth-child(9) .icon { background: #F8E0EC; }
.tool-card:nth-child(10) .icon { background: #E8EEF5; }
.tool-card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.035em; }
.tool-card p { margin: 0; color: var(--muted); font-size: 14px; }
.footer { padding: 26px 0 42px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

.tool-layout { padding: 38px 0 72px; }
.tool-head { max-width: 760px; margin-bottom: 30px; }
.breadcrumb { color: var(--muted); font-size: 13px; font-weight: 650; }
.tool-head h1 { font-size: clamp(38px, 6vw, 62px); margin-top: 15px; }
.tool-head p { color: var(--muted); font-size: 17px; max-width: 680px; }
.panel {
  background: var(--card); border: 1px solid #f5f5f5; border-radius: 28px;
  padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow);
}
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 750; }
textarea, input, select {
  width: 100%; border: 1px solid #eeeeee; background: #fff; color: var(--ink);
  border-radius: 14px; padding: 13px 14px; outline: none;
}
textarea { resize: vertical; min-height: 150px; }
textarea:focus, input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn {
  border: 0; border-radius: 14px; padding: 12px 17px; font-weight: 800;
  background: linear-gradient(135deg, #2F95FF, var(--accent)); color: #fff; box-shadow: 0 8px 20px rgba(10,132,255,.24);
}
.btn.secondary { background: #f2f2f2; color: #222; box-shadow: none; }
.result {
  margin-top: 22px; min-height: 88px; border: 1px solid #f0f0f0;
  background: #fafafa; border-radius: 18px; padding: 20px;
}
.result-label { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.result-value { margin-top: 4px; font-size: clamp(28px, 5vw, 44px); font-weight: 900; letter-spacing: -.04em; overflow-wrap: anywhere; }
.note { margin-top: 26px; color: var(--muted); font-size: 13px; }
.info { margin-top: 28px; padding: 24px 2px 0; max-width: 760px; color: var(--muted); }
.info h2 { color: var(--ink); font-size: 22px; margin-bottom: 8px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; max-width: none; }
.info-card { padding: 20px; border: 1px solid #f2f2f2; border-radius: 18px; background: #ffffff; box-shadow: 0 8px 22px rgba(0,0,0,.045); }
.info-card h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.02em; }
.info-card p { margin: 0; }
.compact-result .result-value { font-size: clamp(22px, 4vw, 34px); line-height: 1.35; }
.result-history { margin-top: 12px; color: var(--muted); font-size: 13px; }

.swatch { height: 260px; border-radius: 22px; border: 1px solid rgba(0,0,0,.06); display: grid; place-items: center; transition: background .2s ease; }
.swatch-code { background: rgba(255,255,255,.88); backdrop-filter: blur(10px); padding: 11px 15px; border-radius: 12px; font-weight: 900; font-size: 20px; }

.wheel-wrap { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 28px; align-items: center; }
.wheel-box { display: grid; place-items: center; position: relative; }
.pointer {
  position: absolute; left: 50%; top: -2px; z-index: 3;
  width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent;
  border-top: 24px solid var(--ink); transform: translateX(-50%);
}
.wheel {
  position: relative; width: min(74vw, 350px); aspect-ratio: 1; border-radius: 50%;
  border: 10px solid #fff; outline: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 3.4s cubic-bezier(.16,.72,.12,1);
}
.wheel::after {
  content: ""; position: absolute; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 8px solid var(--ink);
}
.wheel-box .wheel { display: grid; place-items: center; }

.teams { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.team { padding: 16px; border-radius: 16px; background: #ffffff; border: 1px solid #cfcfcf; }
.team h3 { margin: 0 0 8px; font-size: 15px; }
.team ul { margin: 0; padding-left: 20px; color: var(--muted); }


.more-tools {
  margin: -2px 0 12px;
  padding: 18px 0 6px;
}
.more-tools-label {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.bottom-tabs {
  padding: 0 0 14px;
  border-bottom: 0;
  gap: 7px;
  view-transition-name: none;
}
.bottom-tabs .tool-tab {
  padding: 9px 13px;
  font-size: 13px;
  border-color: #cfe6fb;
  box-shadow: 0 3px 10px rgba(0,0,0,.035);
}
.bottom-tabs .tool-tab:hover {
  transform: none;
  background: #111111;
  border-color: #111111;
  color: #ffffff;
  box-shadow: none;
}
.bottom-tabs .tool-tab.active {
  view-transition-name: none;
  box-shadow: 0 5px 14px rgba(10,132,255,.18);
}

.ad-slot {
  min-height: 90px; margin: 26px 0; border: 1px dashed #c9c9c9; border-radius: 18px;
  display: grid; place-items: center; color: #aaaab6; font-size: 12px;
}


@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(active-tab),
::view-transition-new(active-tab) {
  animation-duration: .34s;
  animation-timing-function: cubic-bezier(.22,.8,.2,1);
  mix-blend-mode: normal;
}

::view-transition-group(active-tab) {
  animation-duration: .34s;
  animation-timing-function: cubic-bezier(.22,.8,.2,1);
}

@media (max-width: 720px) {
  .toplink { display: none; }
  .tool-tabs { flex-wrap: nowrap; margin-right: -16px; padding: 6px 16px 14px 0; gap: 7px; }
  .tool-tab { padding: 9px 12px; font-size: 13px; }
  .bottom-tabs { margin-right: -16px; padding-right: 16px; gap: 6px; }
  .bottom-tabs .tool-tab { padding: 8px 11px; font-size: 12.5px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .tool-card {
    min-height: 0;
    padding: 14px;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 15px;
    row-gap: 3px;
    align-items: center;
  }
  .tool-card .icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-bottom: 0;
    align-self: center;
  }
  .tool-card h2 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    align-self: end;
  }
  .tool-card p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    line-height: 1.42;
    align-self: start;
  }
  .hero { padding-top: 38px; }
  .tool-layout { padding-top: 28px; }
  .row, .wheel-wrap, .teams, .info-grid { grid-template-columns: 1fr; }
  .wheel-wrap { justify-items: stretch; }
}
