:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --glass: #ffffffeb;
  --ink: #1d1d1f;
  --muted: #616168;
  --line: #dedee3;
  --soft: #f0f0f4;
  --green: #0066cc;
  --selected: #e7f0ff;
  --success-bg: #e8f5ed;
  --success-ink: #21603b;
  --red: #b4232f;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
}
.integration-hero { padding: 6px 0 42px; }
.integration-hero h1 { font-size: clamp(2.4rem,4vw,3.7rem); line-height:1.08; letter-spacing:-.055em; margin:18px 0 22px; font-weight:650; }
.integration-hero p { color:var(--muted); font-size:1.12rem; line-height:1.6; margin:0; }
.integration-summary { display:flex; gap:24px; flex-wrap:wrap; margin-top:26px; font-size:.83rem; color:var(--muted); }
.integration-section-heading { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.integration-section-heading h2 { margin:0; font-size:1.15rem; letter-spacing:-.025em; }
.integration-section-heading>span { font-size:.82rem; color:var(--muted); }
.integration-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.integration-card { display:block; position:relative; background:var(--surface); border:1px solid var(--line); border-radius:22px; padding:26px; min-width:0; color:var(--ink); text-decoration:none; transition:transform .18s,border-color .18s,box-shadow .18s; }
.integration-card:hover { text-decoration:none; transform:translateY(-3px); border-color:var(--green); box-shadow:0 10px 30px #00000009; }
.integration-card:focus-visible { outline:3px solid var(--green); outline-offset:4px; }
.integration-mark { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; width:56px; height:56px; border-radius:15px; background:var(--soft); }
.integration-mark img { width:36px; height:36px; object-fit:contain; }
.integration-card h2 { margin:26px 0 8px; font-size:1.1rem; letter-spacing:-.025em; }
.integration-card p { margin:0 0 26px; min-height:44px; font-size:.87rem; line-height:1.6; color:var(--muted); }
.integration-card-status { display:flex; align-items:center; gap:6px; position:absolute; top:30px; right:22px; color:var(--muted); font-size:.72rem; }
.integration-dot { width:6px; height:6px; border-radius:50%; background:#2b8a50; }
.integration-card-link { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:.82rem; color:var(--green); font-weight:600; }
.integration-card-link svg { width:18px; height:18px; }
.integration-bottom { display:flex; align-items:center; gap:18px; margin-top:30px; padding:26px 0; border-top:1px solid var(--line); }
.integration-bottom>div { flex:1; }
.integration-bottom h2 { font-size:1rem; margin:0 0 5px; }
.integration-bottom p { font-size:.84rem; line-height:1.6; color:var(--muted); margin:0; max-width:540px; }
.integration-note { display:block; margin-top:18px; overflow-wrap:anywhere; }
.integration-back { display:inline-block; font-size:.85rem; margin-bottom:25px; color:var(--muted); }
.integration-resource-list { max-height:280px; overflow:auto; border:1px solid var(--line); border-radius:12px; margin:16px 0; padding:8px; }
.integration-resource { display:flex; align-items:center; gap:12px; padding:12px; border-bottom:1px solid var(--line); cursor:pointer; }
.integration-resource:last-child { border-bottom:0; }
.integration-resource input { width:18px; height:18px; flex-shrink:0; }
.integration-resource span { min-width:0; }
.integration-resource strong,.integration-resource small { display:block; overflow-wrap:anywhere; }
.sidebar { overflow-y:auto; }
.nav { flex-shrink:0; }
@media(max-width:1100px) { .integration-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .integration-grid { grid-template-columns:1fr; gap:14px; } .integration-hero { padding-bottom:32px; } .integration-card { padding:24px; } .integration-card p { min-height:0; } .integration-bottom { flex-wrap:wrap; align-items:flex-start; } .integration-bottom>.btn { width:100%; } .integration-summary { gap:12px; } }
.nav-brand { width:20px; height:20px; object-fit:contain; flex-shrink:0; }
@media(max-width:760px) { .integration-row .row-actions { margin-left:0; flex:1 1 100%; max-width:100%; flex-wrap:wrap; } }
html[data-appearance="dark"] {
  color-scheme: dark;
  --canvas: #151517;
  --surface: #202023;
  --glass: #242427ed;
  --ink: #f5f5f7;
  --muted: #acacb4;
  --line: #424248;
  --soft: #2b2b30;
  --green: #78b7ff;
  --selected: #253d5e;
  --success-bg: #203d2c;
  --success-ink: #91d6aa;
  --red: #ff9da6;
}
body { color: var(--ink); background: var(--canvas); }
h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 650; letter-spacing: -.04em; }
h2 { font-weight: 600; }
.brand { color: var(--ink); letter-spacing: -.055em; }
.brandmark:before,.brandmark:after { border-width: 2px; }
.sidebar { width: 248px; padding: 32px 18px 22px; background: var(--glass); backdrop-filter: blur(20px); }
.sidebar .brand { padding: 0 16px 28px; }
.nav-label,.eyebrow { color: var(--muted); font-weight: 600; letter-spacing: .09em; font-size: .6875rem; }
.nav a { color: var(--muted); min-height: 46px; border-radius: 11px; gap: 12px; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a.active { color: var(--green); background: var(--selected); font-weight: 600; }
.nav .count { background: var(--surface); }
.workspace { margin-left: 248px; }
.topbar { height: 76px; padding: 0 44px; background: var(--glass); backdrop-filter: blur(20px); }
.main { max-width: 1240px; padding: 48px 44px; }
.page-heading { margin-bottom: 32px; align-items: center; }
.page-heading p { max-width: 650px; }
.eyebrow { margin-bottom: 10px; }
.panel,.list-card,.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 3px 12px #00000003; }
.panel-heading { padding: 22px 26px; }
.panel-body { padding: 26px; }
.stats { gap: 18px; margin-bottom: 30px; }
.stat { padding: 24px 26px; }
.stat strong { font-size: 2.4rem; font-weight: 600; margin: 12px 0 6px; }
.stat-top svg { color: var(--green); }
.btn { min-height: 44px; border-radius: 11px; padding: 10px 17px; color: var(--ink); background: var(--surface); font-weight: 600; }
.btn:hover { background: var(--soft); }
.btn.primary { color: #fff; background: #0066cc; border-color: #0066cc; box-shadow: 0 2px 4px #0066cc18; }
.btn.primary:hover { background: #0055ad; border-color: #0055ad; }
.btn.small { min-height: 40px; border-radius: 9px; }
.btn.danger { color: var(--red); border-color: var(--line); }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.row { padding: 22px 26px; }
.row-icon,.empty-icon,.provider-icon,.avatar { background: var(--selected); color: var(--green); border-radius: 12px; }
.row-icon { width: 44px; height: 44px; }
.row-title { font-weight: 600; }
.row-subtitle { margin-top: 4px; }
.badge { background: var(--success-bg); color: var(--success-ink); border-radius: 20px; padding: 5px 10px; }
.badge.off { color: var(--muted); background: var(--soft); }
.badge.pending { background: #fff0ce; color: #785410; }
.badge.failed { background: #ffe9eb; color: #9f2232; }
.notice { background: var(--selected); border-color: var(--line); color: var(--ink); border-radius: 14px; }
.notice.warning { background: var(--soft); border-color: var(--line); color: var(--ink); }
.provider,.connection-node { border-radius: 14px; }
.provider-icon.claude { background: var(--soft); color: var(--ink); }
.step-number { color: var(--muted); }
.step.done .step-number { background: var(--success-bg); color: var(--success-ink); border-color: var(--line); }
.field input,.field select,.field textarea { color: var(--ink); background: var(--surface); border-color: var(--line); border-radius: 10px; min-height: 46px; }
.field input::placeholder,.field textarea::placeholder { color: var(--muted); opacity: .85; }
.field input[readonly] { background: var(--soft); }
.url-copy,.consent-shops { background: var(--soft); border-radius: 12px; }
.url-copy button:hover { background: var(--selected); }
.scope-list code,.inline-code { background: var(--soft); color: var(--muted); }
th { background: var(--soft); color: var(--muted); }
dialog { background: var(--surface); color: var(--ink); border-radius: 24px; max-height: calc(100dvh - 40px); overflow-y: auto; box-shadow: 0 24px 90px #00000030; }
dialog::backdrop { background: #00000040; backdrop-filter: blur(8px); }
.modal-heading h2 { letter-spacing: -.025em; font-size: 1.4rem; }
.close-modal { width: 44px; height: 44px; background: var(--soft); border-radius: 50%; }
.modal-actions { flex-wrap: wrap; }
#toast { color: var(--surface); background: var(--ink); border-radius: 14px; }
.auth-story { background: var(--soft); }
.auth-copy h1 { color: var(--ink); font-weight: 600; }
.auth-copy p,.auth-story footer,.auth-note { color: var(--muted); }
.auth-form-side { background: var(--surface); }
.connection-node { background: var(--surface); border-color: var(--line); }
.connection-map { color: var(--green); }
.connection-line { background: var(--line); }
.connection-line:after { border-color: var(--green); }
.appearance { margin: 16px 8px 0; }
.scope-heading { margin-top: 24px; }
.shop-search { max-width: 360px; margin: 0; }
.shop-search input { background: var(--soft); }
.shop-choice-list { max-height: 280px; overflow: auto; padding: 4px; }
.shop-choice-list .check-row { min-height: 56px; border-bottom: 1px solid var(--line); }
.selection-count { margin: 12px 0 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media(max-width:1050px) {
  .sidebar { width: 218px; }
  .workspace { margin-left: 218px; }
  .main { padding: 34px 26px; }
  .topbar { padding: 0 26px; }
  .topbar-right>span:last-child { display: none; }
}
@media(max-width:760px) {
  .sidebar { position: relative; width: auto; padding: 20px 18px 0; backdrop-filter: none; }
  .sidebar .brand { padding: 0 0 20px; }
  .appearance { position: absolute; top: 14px; right: 18px; margin: 0; }
  .nav a { min-height: 44px; }
  .workspace { margin-left: 0; }
  .main { padding: 28px 18px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; }
  .page-heading h1 { font-size: 1.9rem; }
  .panel,.stat,.list-card { border-radius: 16px; }
  .panel-heading { flex-wrap: wrap; padding: 18px; }
  .panel-body,.row { padding: 18px; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stat { padding: 16px 18px; }
  .stat strong { font-size: 2rem; margin: 6px 0; }
  .stat small { font-size: .8125rem; }
  .row-main { flex: 1 1 100%; }
  .row-actions { flex-wrap: wrap; margin-left: 57px; }
  .row-title,.row-subtitle { overflow-wrap: anywhere; }
  .shop-search { width: 100%; max-width: none; }
  .btn { white-space: normal; }
  dialog { padding: 22px; }
}
@media(prefers-reduced-transparency:reduce) { .sidebar,.topbar { background: var(--surface); backdrop-filter: none; } dialog::backdrop { backdrop-filter: none; } }
@media(prefers-contrast:more) { :root { --muted:#424248; --line:#9999a1; } html[data-appearance="dark"] { --muted:#d5d5da; --line:#7e7e88; } }
