@font-face {
  font-family: Workbench;
  src: url("/assets/workbench-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Workbench;
  src: url("/assets/workbench-semibold.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: Workbench;
  src: url("/assets/workbench-bold.woff2") format("woff2");
  font-weight: 750 900;
  font-display: swap;
}

@media screen {
  body:has(.fw-header) {
    --wb-ocean: #174760;
    --wb-coral: #e66d51;
    --wb-ink: #102e49;
    --wb-muted: #586575;
    --wb-line: #dce4e9;
    --wb-font: Workbench, "Segoe UI", system-ui, sans-serif;
    --paper: #fff;
    --bg: #fff;
  }
  body[data-tool]:has(.fw-header), body.ci-home { background: #fff; }
  header.fw-header { background: #fff; border-color: var(--wb-line); }
  .fw-header nav a, .fw-header summary { font-family: var(--wb-font); }
  .fw-header summary { border-radius: 10px; }
  .fw-header :focus-visible, .ci-home :focus-visible { outline-color: var(--wb-ocean); }
  .ci-footer { background: #f3f8fa; border-color: var(--wb-line); }
  body[data-tool] .fw-header ~ main h1,
  body[data-tool] .fw-header ~ main .result h2 {
    font-family: var(--wb-font);
    letter-spacing: -.035em;
  }
  body[data-tool] .fw-header ~ main :is(form, .result) { border-radius: 14px; }
  body[data-tool] .fw-header ~ main .result { background: #edf4f7; border-color: var(--wb-line); }
  body[data-tool] .fw-header ~ main :is(button.primary, a.primary) { border-radius: 10px; }
  body[data-tool] .fw-header ~ main button.primary[type="submit"]:enabled {
    background: var(--wb-coral);
    color: #173342;
    border-color: transparent;
  }
  body[data-tool] .fw-header ~ main button.primary[type="submit"]:enabled:hover { background: #ec8067; }

  .ci-home { font-family: var(--wb-font); }
  .ci-home header.fw-header {
    min-height: 104px;
    padding-inline: 4.3%;
    border-bottom: 0;
  }
  .ci-home .fw-header .fw-links { gap: clamp(18px, 3vw, 44px); }
  .ci-home .fw-header .fw-links a { font-size: clamp(15px, 1.4vw, 21px); }
  .ci-home .fw-header .ocean-logo { width: 350px; height: 83px; }
  .ci-home .fw-header .ocean-logo img { width: 405px; left: -31px; top: -94px; }
  .wb-hero {
    display: grid;
    grid-template-columns: minmax(0, 49fr) minmax(0, 51fr);
    align-items: center;
    gap: 16px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(585px, 49.3vw, 733px);
    padding: 15px 4.3% 42px;
    color: var(--wb-ink);
  }
  .wb-intro { position: relative; z-index: 1; }
  .wb-intro h1 {
    margin: 0 0 25px;
    color: #083d54;
    font: 800 clamp(43px, 5.55vw, 86px)/1.08 var(--wb-font);
    letter-spacing: -.055em;
  }
  .wb-intro h1 span { color: var(--wb-coral); font-size: 1.08em; }
  .wb-intro p {
    margin: 0 0 clamp(25px, 3vw, 47px);
    color: var(--wb-muted);
    font-size: clamp(18px, 1.75vw, 26px);
    line-height: 1.38;
    letter-spacing: -.025em;
  }
  .wb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 44px;
    background: var(--wb-coral);
    color: #173342;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
  }
  .wb-button:hover { background: #ec8067; color: #173342; text-decoration: none; }
  .wb-explore {
    padding: clamp(15px, 1.55vw, 23px) clamp(20px, 2.4vw, 36px);
    font-size: clamp(19px, 1.88vw, 28px);
    margin-bottom: clamp(22px, 2.35vw, 35px);
  }
  .wb-explore svg { width: 30px; height: 30px; }
  .wb-search {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 510px;
    min-height: 64px;
    padding: 0 12px 0 17px;
    border: 1px solid #b8cad5;
    border-radius: 16px;
    color: var(--wb-muted);
    background: #fff;
  }
  .wb-search input {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 10px 0;
    border: 0;
    background: none;
    color: var(--wb-ink);
    font-size: 16px;
    box-shadow: none;
  }
  .wb-search input:focus-visible { outline: 0; }
  .wb-search:focus-within { outline: 2px solid var(--wb-ocean); outline-offset: 2px; }
  .wb-search button {
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    padding: 0;
    color: var(--wb-ocean);
    background: transparent;
    border: 0;
    border-radius: 10px;
  }
  .wb-search button:hover { background: #edf4f7; }
  .wb-visual { position: relative; min-width: 0; }
  .wb-visual > img {
    position: absolute;
    z-index: -1;
    inset: -105px -150px -60px -145px;
    width: calc(100% + 295px);
    height: calc(100% + 165px);
    max-width: none;
    object-fit: fill;
  }
  .wb-panel {
    min-height: clamp(424px, 35.4vw, 526px);
    padding: clamp(15px, 1.85vw, 28px);
    border: 1px solid var(--wb-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 5px 22px #143b5010;
  }
  .wb-tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--wb-line); padding-bottom: 14px; }
  .wb-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, 1.1vw, 16px);
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 12px 7px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: var(--wb-ink);
    font-size: clamp(13px, 1.4vw, 21px);
  }
  .wb-tabs button:hover { background: #edf4f7; }
  .wb-tabs button[aria-selected="true"] { background: #fff0eb; font-weight: 700; }
  .wb-tabs button[aria-selected="true"] svg { color: #b84732; }
  .wb-picker { display: flex; align-items: center; gap: 16px; margin: 22px 4px 25px; }
  .wb-picker > span, .wb-lane-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 63px;
    height: 60px;
    background: #eaf3f6;
    border-radius: 15px;
    color: var(--wb-ocean);
  }
  .wb-picker > span svg { width: 31px; height: 31px; }
  .wb-picker select {
    flex: 1;
    min-width: 0;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 4px;
    background: #fff;
    border: 0;
    color: var(--wb-ink);
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 700;
    text-overflow: ellipsis;
  }
  .wb-open { margin-left: 4px; padding: 14px 23px; font-size: clamp(17px, 1.55vw, 23px); }
  .wb-example { margin: clamp(24px, 2.3vw, 35px) 4px 0; }
  .wb-file-flow { display: flex; gap: clamp(8px, 1.2vw, 18px); align-items: center; }
  .wb-file-flow > div {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 80px;
    padding: 10px 14px;
    border: 1px solid var(--wb-line);
    border-radius: 14px;
    font-size: clamp(13px, 1.22vw, 18px);
  }
  .wb-file-flow > div svg { color: #b84732; width: 35px; height: 35px; }
  .wb-file-flow > div:last-child svg { color: #377ca8; }
  .wb-file-flow small { display: block; margin-top: 5px; color: var(--wb-muted); }
  .wb-progress-label { display: flex; justify-content: space-between; margin: 23px 0 9px; color: var(--wb-muted); }
  .wb-example progress {
    appearance: none;
    display: block;
    width: 100%;
    height: 12px;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #e4e9ee;
    color: var(--wb-coral);
  }
  .wb-example progress::-webkit-progress-bar { background: #e4e9ee; }
  .wb-example progress::-webkit-progress-value { background: var(--wb-coral); border-radius: 20px; }
  .wb-example progress::-moz-progress-bar { background: var(--wb-coral); border-radius: 20px; }
  .wb-example p { color: var(--wb-muted); margin: 10px 0 0; font-size: 12px; line-height: 1.5; }
  .wb-task-copy h2 { font-size: clamp(20px, 2vw, 28px); margin: 0; }
  .wb-task-copy p { font-size: 15px; }
  .wb-lanes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--wb-line);
    margin: 0 3.1%;
    padding: clamp(24px, 3.55vw, 53px) 0;
  }
  .wb-lanes a { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 21px); padding: 0 14px; text-decoration: none; }
  .wb-lanes a + a { border-left: 1px solid var(--wb-line); padding-left: clamp(18px, 2.8vw, 42px); }
  .wb-lanes a:hover strong { color: #b84732; }
  .wb-lane-icon { width: clamp(57px, 6.3vw, 94px); height: clamp(60px, 6.3vw, 94px); border-radius: 20px; }
  .wb-lane-icon svg { width: clamp(29px, 3vw, 45px); height: clamp(29px, 3vw, 45px); }
  .wb-lanes a:nth-child(2) .wb-lane-icon { background: #fff0eb; color: #b84732; }
  .wb-lanes strong { display: block; font-size: clamp(21px, 2vw, 29px); letter-spacing: -.03em; }
  .wb-lanes small { display: block; margin-top: 5px; color: var(--wb-muted); font-size: clamp(14px, 1.24vw, 18px); line-height: 1.35; }
  .wb-lanes a > svg { margin-left: auto; color: #b84732; }
  .ci-home .ci-directory-title h2, .ci-home .ci-bundles h2 { font-family: var(--wb-font); }
  .ci-home .ci-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; row-gap: 0; }
  .ci-home .ci-tool-grid .ci-tool { border: 0; border-top: 1px solid var(--wb-line); border-radius: 0; align-items: center; }
}

@media screen and (max-width: 1050px) {
  .ci-home .fw-header .ocean-logo { width: 265px; height: 61px; }
  .ci-home .fw-header .ocean-logo img { width: 305px; left: -23px; top: -71px; }
}
@media screen and (max-width: 850px) {
  .ci-home header.fw-header { min-height: 0; padding: 10px 5%; }
  .wb-hero { grid-template-columns: minmax(0, 1fr); gap: 52px; padding: 30px 5% 42px; }
  .wb-intro h1 { font-size: clamp(32px, 9.5vw, 70px); margin-bottom: 19px; }
  .wb-intro p { max-width: 43ch; margin-bottom: 24px; }
  .wb-break { display: none; }
  .wb-search { min-height: 56px; }
  .wb-visual > img {
    inset: -25px -70px -24px -30px;
    width: calc(100% + 100px);
    height: calc(100% + 49px);
  }
  .wb-panel { min-height: 380px; max-width: 620px; margin-inline: auto; border-radius: 22px; }
  .wb-lanes { grid-template-columns: 1fr; margin: 0 5%; padding-block: 0; }
  .wb-lanes a, .wb-lanes a + a { border-left: 0; padding: 17px 0; }
  .wb-lanes a + a { border-top: 1px solid var(--wb-line); }
}
@media screen and (max-width: 650px) {
  .ci-home .fw-header .ocean-logo { width: 205px; height: 50px; }
  .ci-home .fw-header .ocean-logo img { width: 240px; left: -18px; top: -55px; }
  .wb-tabs button { font-size: clamp(11px, 3.1vw, 15px); padding-inline: 4px; }
  .wb-tabs svg { width: 17px; height: 17px; }
  .wb-picker { gap: 9px; margin: 17px 0; }
  .wb-picker > span { width: 48px; height: 47px; border-radius: 12px; }
  .wb-open { margin-left: 0; }
  .wb-example { margin-inline: 0; }
  .wb-file-flow > div { min-height: 60px; padding: 8px 6px; gap: 4px; font-size: clamp(10px, 3.05vw, 13px); }
  .wb-file-flow > div svg { width: 23px; height: 23px; }
  .wb-file-flow > svg { width: 16px; height: 16px; }
  .wb-progress-label { font-size: 13px; }
  .ci-home .ci-tool-grid { grid-template-columns: 1fr; }
}
