:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #142d42;
  background: #f3f6f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #142d42;
  --teal: #006e66;
  --teal-dark: #00584f;
  --muted: #536875;
  --border: #dce5e8;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #5468ed; outline-offset: 4px; }
[hidden] { display: none !important; }
.app-shell { max-width: 1192px; padding: 0 44px; margin: 0 auto; }
.skip-link { position: fixed; top: -90px; left: 16px; background: white; color: var(--navy); padding: 12px 20px; z-index: 5; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); }
.wordmark { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -.6px; }
.wordmark-subtitle { font-weight: 500; }
.wordmark-divider { color: #a5b8c0; margin: 0 5px; font-weight: 400; }
.brand-icon { width: 28px; height: 27px; display: flex; flex-direction: column; justify-content: space-between; transform: skew(-15deg); }
.brand-icon span { display: block; height: 6px; width: 27px; background: var(--teal); border-radius: 2px; }
.brand-icon span:nth-child(2) { width: 20px; }
.brand-icon span:nth-child(3) { width: 14px; }
.environment { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-pill { font-size: 12px; font-weight: 600; background: #e1f0ea; color: #27664a; padding: 7px 11px; border-radius: 30px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.status-pill.is-offline { color: #80540c; background: #fff0cf; }
.status-dot { width: 6px; height: 6px; border-radius: 100%; background: currentColor; }
.status-pill-neutral { background: #e8edf0; color: #536875; }
.intro { min-height: 270px; padding: 51px 0 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eyebrow { color: var(--teal); font-size: 11px; font-weight: 750; letter-spacing: 1.7px; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(31px, 3.7vw, 43px); font-weight: 650; letter-spacing: -1.4px; line-height: 1.16; margin: 0; }
h1 > span { color: var(--teal); }
.intro-description { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 19px 0 0; }
.intro-mark { width: 230px; height: 174px; position: relative; margin-right: 29px; flex: 0 0 230px; }
.mark-grid { position: absolute; inset: 0; background-image: radial-gradient(#b9d0d0 1px, transparent 1px); background-size: 15px 15px; mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent); }
.mark-card { position: absolute; width: 123px; height: 107px; border-radius: 15px; }
.mark-card-back { top: 17px; left: 40px; background: #c9e7e0; transform: rotate(-14deg); border: 1px solid #b8d8d1; }
.mark-card-front { top: 44px; left: 68px; transform: rotate(7deg); display: flex; gap: 8px; align-items: flex-end; padding: 24px; background: var(--navy); box-shadow: 0 14px 22px #142d421a; }
.mark-card-front span { display: block; width: 15px; border-radius: 4px; background: #8ac8ba; }
.mark-card-front span:nth-child(1) { height: 21px; }
.mark-card-front span:nth-child(2) { height: 37px; }
.mark-card-front span:nth-child(3) { height: 29px; }
.mark-card-front span:nth-child(4) { height: 56px; background: #fff; }
.mark-check { position: absolute; top: 20px; right: 11px; border: 5px solid #f3f6f7; border-radius: 100%; background: var(--teal); color: white; width: 44px; height: 44px; display: grid; place-content: center; font-size: 22px; }
.workspace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; }
.card { border: 1px solid var(--border); background: #fff; border-radius: 16px; padding: 28px 30px 25px; box-shadow: 0 3px 8px #142d4203; }
.card-topline { display: flex; align-items: center; gap: 10px; margin-bottom: 19px; }
.step-number { width: 29px; height: 25px; background: #eff5f4; color: var(--teal); border-radius: 6px; font-size: 11px; font-weight: 700; display: inline-grid; place-content: center; }
.card-kicker { text-transform: uppercase; letter-spacing: 1px; font-size: 10px; font-weight: 700; color: var(--muted); }
h2 { font-size: 23px; font-weight: 650; letter-spacing: -.6px; line-height: 1.25; margin: 0 0 10px; }
.card-description { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; max-width: 440px; }
.app-preview { height: 123px; width: 218px; border: 1px solid #bccdd4; border-radius: 8px; margin: 24px auto; position: relative; background: #f5f8fa; box-shadow: 0 5px 14px #142d420b; }
.preview-bar { height: 21px; background: var(--navy); border-radius: 7px 7px 0 0; display: flex; align-items: center; gap: 4px; padding-left: 8px; }
.preview-bar i { width: 4px; height: 4px; background: #879bab; border-radius: 100%; }
.preview-content { height: 100px; display: flex; padding: 12px; gap: 12px; }
.preview-sidebar { width: 24px; background: #dce7e9; border-radius: 3px; }
.preview-panels { flex: 1; display: grid; gap: 6px; grid-template-columns: 1fr 1fr; }
.preview-panels span { background: #e4eded; border-radius: 3px; }
.preview-panels span:last-child { grid-column: 1 / -1; background: #cae6df; }
.preview-badge { position: absolute; bottom: 6px; right: -27px; padding: 8px 11px; background: #fff; border: 1px solid var(--border); color: var(--teal); border-radius: 6px; box-shadow: 0 4px 12px #142d4210; font-size: 10px; font-weight: 650; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 44px; border-radius: 8px; padding: 11px 19px; border: 1px solid transparent; font-size: 13px; font-weight: 650; transition: background .15s, box-shadow .15s; line-height: 1.4; }
.button span[aria-hidden] { font-size: 17px; font-weight: 400; }
.button-primary { color: #fff; background: var(--teal); }
.button-primary:hover:not(:disabled) { background: var(--teal-dark); box-shadow: 0 3px 10px #006e6620; }
.button-secondary { color: var(--navy); border-color: #ccdadd; background: #fff; }
.button-secondary:hover:not(:disabled) { background: #f0f5f6; }
.button:disabled { opacity: .52; }
.install-card > .button, .local-card > .button { width: 100%; }
.small-note { color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; margin: 10px 0 0; }
.install-help { font-size: 12px; color: var(--muted); line-height: 1.6; padding: 12px 15px 3px; margin-top: 15px; border-radius: 8px; background: #f3f6f7; }
.install-help p { margin: 0 0 9px; }
.local-output { height: 123px; margin: 24px 0; padding: 19px 23px; background: #eef7f4; border: 1px solid #dbece5; border-radius: 9px; display: flex; flex-direction: column; justify-content: center; }
.output-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #487768; font-weight: 600; }
#hello-result { font-size: 23px; font-weight: 600; letter-spacing: -.55px; margin: 9px 0 0; color: #155c49; }
.output-detail { font-size: 11px; color: #487768; margin: 7px 0 0; }
.connection-card { grid-column: 1 / -1; }
.connection-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.connection-badge { font-size: 11px; color: var(--muted); background: #edf2f4; padding: 7px 12px; border-radius: 20px; margin-top: 3px; white-space: nowrap; }
.connection-badge.is-connected { color: #27664a; background: #e1f0ea; }
.connection-form { display: flex; align-items: flex-start; gap: 14px; margin-top: 21px; }
.field-group { flex: 1; }
label { font-size: 12px; font-weight: 650; display: block; margin-bottom: 8px; }
input { width: 100%; min-height: 44px; color: var(--navy); padding: 11px 13px; border: 1px solid #bfced5; border-radius: 7px; background: #fff; font-size: 13px; }
input::placeholder { color: #708391; opacity: 1; }
input:disabled { background: #f4f7f8; }
.field-help { font-size: 11px; color: var(--muted); margin: 8px 0 0; line-height: 1.6; }
.connection-form > .button { margin-top: 23px; min-width: 187px; }
.service-notice { background: #f3f6f8; border: 1px solid #e4ebef; border-radius: 7px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.text-button { flex-shrink: 0; padding: 3px; border: 0; color: var(--teal); background: transparent; font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--teal-dark); }
.connection-result { border-radius: 8px; margin-top: 20px; padding: 15px 18px; background: #edf7f1; color: #22593d; }
.connection-result.is-error { background: #fff1ec; color: #843823; }
.connection-result > p { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.6; }
.connection-result > .result-detail { font-size: 11px; font-weight: 400; margin-top: 3px; }
.project-section { margin-top: 27px; }
.project-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.project-heading h3 { margin: 0; font-size: 13px; font-weight: 650; }
.project-heading > span { font-size: 11px; color: var(--muted); }
.project-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.project-list li { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #e0e9e9; border-radius: 7px; padding: 13px; }
.project-list strong { display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.project-list .project-path { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.project-state { font-size: 10px; color: #326653; background: #eaf4ef; padding: 4px 7px; border-radius: 5px; flex-shrink: 0; max-width: 100px; overflow-wrap: anywhere; }
.connection-footnote { border-top: 1px solid #e6edee; padding-top: 16px; margin: 21px 0 0; font-size: 11px; color: var(--muted); line-height: 1.6; }
.offline-note { padding: 24px 4px; display: flex; align-items: flex-start; gap: 12px; color: var(--muted); }
.offline-icon { display: inline-grid; place-content: center; width: 29px; height: 29px; border-radius: 100%; background: #e4edec; color: var(--teal); font-size: 18px; flex-shrink: 0; }
.offline-note strong { display: block; font-size: 12px; margin: 2px 0 5px; font-weight: 600; color: #365561; }
.offline-note p { font-size: 11px; line-height: 1.6; margin: 0; }
.no-script { background: #fff0cf; color: #80540c; padding: 18px; border-radius: 8px; }
.site-footer { margin-top: 6px; padding: 24px 0 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; display: flex; justify-content: space-between; align-items: center; gap: 18px; line-height: 1.6; }
.footer-dot { padding: 0 5px; color: #9caeb6; }

@media (min-width: 1500px) { .app-shell { padding-top: 12px; } }
@media (max-width: 760px) {
  .app-shell { padding: 0 23px; }
  .site-header { min-height: 86px; }
  .wordmark { font-size: 18px; }
  .wordmark-divider, .wordmark-subtitle { display: none; }
  .intro { padding: 36px 0; min-height: 0; }
  .intro-mark { display: none; }
  h1 { font-size: 37px; }
  .card { padding: 24px; }
  .workspace-grid { gap: 17px; }
  .card-description { min-height: 68px; }
  .connection-card .card-description { min-height: 0; }
  .app-preview { width: 170px; }
  .preview-badge { right: -12px; }
  .local-output { padding: 15px; }
  #hello-result { font-size: 20px; }
  .service-notice { display: block; }
  .text-button { display: block; margin-top: 7px; }
  .site-footer { align-items: flex-start; }
}
@media (max-width: 560px) {
  .app-shell { padding: 0 18px; }
  .site-header { gap: 10px; }
  .wordmark { gap: 8px; font-size: 17px; }
  .brand-icon { transform: skew(-15deg) scale(.8); width: 24px; }
  .environment { gap: 5px; }
  .status-pill { padding: 6px 8px; font-size: 10px; }
  .intro { padding: 31px 1px; }
  h1 { font-size: 34px; letter-spacing: -1px; }
  .intro-description { font-size: 14px; }
  .wide-break { display: none; }
  .workspace-grid { grid-template-columns: 1fr; }
  .card { padding: 23px; }
  .card-description { min-height: 0; }
  .app-preview { width: 218px; }
  .local-output { padding: 20px; }
  #hello-result { font-size: 23px; }
  .connection-header { display: block; }
  .connection-badge { display: inline-block; margin-top: 15px; }
  .connection-form { flex-direction: column; gap: 12px; }
  .field-group { width: 100%; }
  .connection-form > .button { width: 100%; margin-top: 0; }
  .project-list { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 6px; }
}
@media (max-width: 360px) {
  h1 { font-size: 29px; }
  .card { padding: 20px; }
  .status-pill-neutral { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
