:root {
  color-scheme: light;
  --page: #f7f8fc;
  --white: #fff;
  --ink: #17192e;
  --muted: #59617a;
  --line: #e4e6f0;
  --accent: #4b3bce;
  --accent-dark: #3a2aa9;
  --accent-soft: #eeebfe;
  --radius: 16px;
  font: 16px/1.5 "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #7565ef;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 3; left: 16px; top: 16px; background: var(--white); padding: 8px 12px; }

.layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 26px 18px 22px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.brand img { display: block; border-radius: 9px; }
.brand strong { display: block; font-size: .94rem; line-height: 1.25; letter-spacing: -.025em; }
.brand small { display: block; color: var(--muted); font-size: .83rem; margin-top: 2px; }
.navigation { display: grid; gap: 5px; margin-top: 48px; }
.navigation a, .docs-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: var(--muted); font-size: .95rem; font-weight: 600; }
.navigation a:hover, .docs-link:hover { background: var(--page); color: var(--ink); }
.navigation a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); }
.docs-link { margin-top: auto; }
.docs-external { margin-left: auto; width: 15px; height: 15px; }
.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 34px; background: var(--white); border-bottom: 1px solid var(--line); font-size: .9rem; }
.breadcrumb, .workspace-name { display: flex; align-items: center; gap: 10px; }
.breadcrumb { color: var(--muted); }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.breadcrumb .icon { width: 15px; height: 15px; }
.workspace-name { font-weight: 600; }
.workspace-avatar { background: #eae6ff; color: var(--accent-dark); width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; }
.workspace { width: min(100%, 1260px); margin-inline: auto; padding: 32px 34px 46px; }
.page-heading { margin-bottom: 25px; }
.page-heading h1 { font-size: clamp(2rem, 3vw, 2.5rem); letter-spacing: -.055em; line-height: 1.13; font-weight: 720; }
.page-heading p { color: var(--muted); margin-top: 7px; }

.hero {
  border-radius: 19px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 27px 32px 24px;
  color: var(--white);
  background: #1b194e;
}
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero::before { background: url("assets/image-wall.webp") right center / auto 127% no-repeat; opacity: .8; }
.hero::after { background: linear-gradient(90deg, #1c194d 0%, #27215f 38%, #302881e8 57%, #39308f47 100%); }
.hero-content { max-width: 625px; }
.hero-icon { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #d5ccff59; border-radius: 10px; background: #ded7ff24; color: #dfd6ff; margin-bottom: 11px; }
.hero h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); letter-spacing: -.052em; line-height: 1.14; }
.hero p { color: #e1dcf8; margin: 8px 0 17px; font-size: .96rem; }
.url-form { display: flex; gap: 9px; max-width: 565px; }
.input-shell { display: flex; align-items: center; gap: 10px; padding: 0 12px; min-width: 0; flex: 1; background: var(--white); border: 1px solid #d9dbeb; border-radius: 9px; color: #5e6680; }
.input-shell .icon { width: 18px; height: 18px; }
.input-shell input { min-width: 0; width: 100%; padding: 11px 0; border: 0; background: transparent; color: var(--ink); outline: none; }
.input-shell input::placeholder { color: #636a80; opacity: 1; }
.input-shell:focus-within { outline: 3px solid #9a8bff; outline-offset: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; padding: 10px 15px; font-weight: 650; font-size: .94rem; text-align: center; }
.hero-button { background: #e9e3ff; color: #2f214d; white-space: nowrap; }
.hero-button:hover { background: var(--white); }
.primary-button { background: var(--accent); color: var(--white); }
.primary-button:hover { background: var(--accent-dark); }
.button:disabled { cursor: wait; opacity: .7; }
.secondary-button { border-color: var(--line); background: var(--white); color: var(--accent-dark); }
.secondary-button:hover { background: var(--accent-soft); }
.secondary-button .icon { width: 16px; height: 16px; }
.text-button { padding: 4px 0; border: 0; background: transparent; color: var(--accent-dark); font-weight: 650; font-size: .9rem; }
.text-button:hover, .inline-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-sample { margin-top: 8px; color: #e6deff; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 3px #201c4210; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-block: 20px; }
.metric { min-width: 0; padding: 16px 18px; }
.metric-label { display: flex; align-items: center; gap: 9px; color: #444c66; font-size: .93rem; font-weight: 600; }
.metric-icon { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent-soft); color: var(--accent-dark); border-radius: 9px; flex-shrink: 0; }
.metric-icon .icon { width: 18px; height: 18px; }
.metric-value { margin: 8px 0 3px; font-size: 1.8rem; font-weight: 710; letter-spacing: -.055em; line-height: 1.22; }
.metric-value small { color: var(--muted); font-size: .95rem; font-weight: 550; letter-spacing: 0; }
.metric-words { font-size: 1.5rem; }
.metric-caption, .card-heading p, .muted { color: var(--muted); font-size: .92rem; }
.inline-link { color: var(--accent-dark); font-size: .92rem; font-weight: 650; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 19px 13px; }
.card-heading h2, .form-card h2, .integration-card h2 { font-size: 1.17rem; line-height: 1.3; letter-spacing: -.027em; }
.card-heading p { margin-top: 3px; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { padding: 10px 19px; border-top: 1px solid var(--line); white-space: nowrap; }
th { background: #fafaff; color: #555d77; font-weight: 650; font-size: .87rem; }
.table-primary { color: var(--ink); font-weight: 650; }
.table-detail { color: var(--muted); font-size: .83rem; margin-top: 1px; }
.row-label { display: flex; align-items: center; gap: 9px; }
.row-label .icon { color: #7164b7; width: 16px; height: 16px; }
.scan-status { display: inline-flex; align-items: center; gap: 5px; color: #167046; font-weight: 600; }
.scan-status .icon { width: 15px; height: 15px; }

.form-card { padding: 22px; max-width: 740px; }
.form-card .muted { margin: 5px 0 15px; }
.scan-form .input-shell { max-width: 650px; }
.form-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.form-options label, .field-label { color: #414861; font-size: .92rem; font-weight: 650; }
.form-options select { display: block; margin-top: 4px; background: var(--white); width: 100%; padding: 9px; border: 1px solid #d9dbeb; border-radius: 9px; color: var(--ink); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 17px; }
.key-field { margin-top: 14px; }
.key-field label { display: block; color: #414861; font-size: .92rem; font-weight: 650; margin-bottom: 4px; }
.key-field label span { font-weight: 400; }
.scan-error { color: #a52c32; margin-top: 12px; font-size: .93rem; }
.scan-output { margin-top: 20px; }
.empty-state { color: var(--muted); border-top: 1px solid var(--line); padding: 17px 19px; }
.integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.integration-card { padding: 18px; min-width: 0; }
.integration-card h2 { margin: 11px 0 4px; }
.integration-card p { color: var(--muted); }
.integration-card .field-label { margin-top: 15px; color: #414861; }
.endpoint { display: flex; align-items: center; gap: 8px; background: var(--page); border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px 7px 10px; margin-top: 5px; }
code { font: .84rem/1.45 Consolas, "SFMono-Regular", monospace; }
.endpoint code { flex: 1; overflow-wrap: anywhere; }
.icon-button { display: grid; place-items: center; border: 0; color: var(--accent-dark); background: transparent; border-radius: 6px; height: 30px; width: 30px; flex: none; }
.icon-button:hover { background: var(--accent-soft); }
.icon-button .icon { width: 16px; height: 16px; }
.feedback { position: fixed; bottom: 20px; right: 20px; left: auto; max-width: calc(100% - 40px); z-index: 2; background: #231d4c; color: var(--white); box-shadow: 0 6px 24px #251d4e2c; padding: 11px 16px; border-radius: 10px; }

@media (max-width: 950px) {
  .layout { grid-template-columns: 209px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .workspace, .topbar { padding-inline: 22px; }
  .hero { padding-inline: 24px; }
}
@media (max-width: 730px) {
  .layout { display: flex; flex-direction: column; }
  .sidebar { position: static; height: auto; padding: 14px 16px 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .navigation { display: flex; flex-wrap: wrap; gap: 2px; margin: 11px 0 0; }
  .navigation a { padding-inline: 8px; gap: 6px; }
  .navigation .icon { width: 17px; height: 17px; }
  .docs-link { display: none; }
  .topbar { padding-inline: 16px; height: 50px; }
  .workspace { padding: 24px 16px 38px; }
  .metrics { gap: 8px; }
  .metric { padding: 11px; }
}
@media (max-width: 500px) {
  .breadcrumb > span, .breadcrumb .icon { display: none; }
  .hero { padding: 19px 15px; }
  .hero::after { background: linear-gradient(90deg, #211d54 20%, #28225ee8 64%, #372e82a8); }
  .url-form { flex-wrap: wrap; }
  .url-form .input-shell { flex-basis: 100%; }
  .metrics, .integration-grid { grid-template-columns: 1fr; }
  .metric { padding: 13px; }
  .metric-label { font-size: .89rem; }
  th, td { padding-inline: 12px; }
  .card-heading { padding-inline: 12px; }
}
