/* Adento Kit portal. Tokens follow the landing (atoms light theme). */
:root {
  --p-bg: #ebebea;
  --p-card: #fff;
  --p-card2: #f6f6f6;
  --p-text: rgba(12,12,12,.95);
  --p-text2: rgba(12,12,12,.55);
  --p-text3: rgba(12,12,12,.4);
  --p-line: rgba(12,12,12,.08);
  --p-brand: #4267ff;
  --p-brand2: #425ce1;
  --p-ok: #1f9d55;
  --p-err: #d2402e;
  --p-dark: #141416;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; overflow-y: auto; background: var(--p-bg); color: var(--p-text); font-family: "IBM Plex Sans", Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
p { margin: 0; }
code, .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.serif { font-family: "IBM Plex Serif", Georgia, serif; font-style: italic; font-weight: 500; }
.muted { color: var(--p-text2); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* topbar */
.top { background: var(--p-bg); border-bottom: 1px solid var(--p-line); position: sticky; top: 0; z-index: 10; }
.top-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: "IBM Plex Sans", sans-serif; font-style: normal; font-weight: 600; letter-spacing: -0.02em; font-size: 24px; line-height: 1; display: flex; align-items: center; gap: 10px; }
.logo img, .logo-mark { width: .95em; height: .95em; display: block; }
.logo span { font-family: "IBM Plex Sans", sans-serif; font-style: normal; font-size: 11px; letter-spacing: .12em; color: var(--p-text3); font-weight: 600; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { color: var(--p-text2); }
.nav a.on { color: var(--p-text); font-weight: 500; }
.top-r { display: flex; align-items: center; gap: 12px; }
.pill { height: 32px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; background: rgba(12,12,12,.06); color: var(--p-text); border: 0; font-family: inherit; cursor: default; }
button.pill { cursor: pointer; }
button.pill:hover { background: rgba(12,12,12,.1); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--p-ok); }

/* layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 48px 24px 96px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; cursor: pointer; border: 0; font-family: inherit; white-space: nowrap; }
.btn-brand { background: var(--p-brand); color: #fff; }
.btn-brand:hover { background: var(--p-brand2); }
.btn-ghost { background: rgba(12,12,12,.06); color: var(--p-text); }
.btn-ghost:hover { background: rgba(12,12,12,.1); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn[disabled] { opacity: .5; cursor: wait; }
.card { background: var(--p-card); border-radius: 20px; padding: 28px; }
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: rgba(66,103,255,.12); color: var(--p-brand); }
.tag.ok { background: rgba(31,157,85,.12); color: var(--p-ok); }
.tag.grey { background: rgba(12,12,12,.06); color: var(--p-text2); }
.term { position: relative; background: var(--p-dark); color: rgba(255,255,255,.88); border-radius: 14px; padding: 18px 20px; font-family: "IBM Plex Mono", monospace; font-size: 13.5px; line-height: 1.65; white-space: pre; overflow-x: auto; }
.term .p { color: rgba(255,255,255,.45); } .term .c { color: #8ab4ff; } .term .ok { color: #4ade80; } .term .d { color: rgba(255,255,255,.5); }
.copy { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 6px; padding: 3px 9px; font: 12px "IBM Plex Mono", monospace; cursor: pointer; }
.copy:hover { background: rgba(255,255,255,.2); }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.hero p.lead { margin-top: 8px; max-width: 640px; }
.err { color: var(--p-err); font-size: 13px; margin-top: 10px; }

/* gate */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.gate .card { width: 100%; max-width: 440px; padding: 40px; text-align: center; }
.gate .logo { justify-content: center; font-size: 40px; margin-bottom: 28px; }
.input { width: 100%; height: 48px; border: 1px solid rgba(12,12,12,.14); border-radius: 12px; padding: 0 16px; font: 15px "IBM Plex Mono", monospace; letter-spacing: .04em; text-align: center; color: var(--p-text); background: #fff; outline: none; }
.input:focus { border-color: var(--p-brand); box-shadow: 0 0 0 3px rgba(66,103,255,.18); }
.input.sans { font-family: "IBM Plex Sans", sans-serif; letter-spacing: 0; }
.link { text-decoration: underline; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; color: inherit; }

/* kit steps */
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px; background: var(--p-card); border-radius: 20px; }
.step + .step { margin-top: 12px; }
.num { width: 48px; height: 48px; border-radius: 14px; background: var(--p-dark); color: #fff; display: flex; align-items: center; justify-content: center; font: 600 18px "IBM Plex Serif", serif; font-style: italic; }
.step h2 { margin-bottom: 6px; }
.step .body { margin-top: 16px; }
.file { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--p-card2); border-radius: 14px; padding: 16px 18px; }
.file .name { font-family: "IBM Plex Mono", monospace; font-weight: 500; }
.tree { font-family: "IBM Plex Mono", monospace; font-size: 13px; line-height: 1.7; color: var(--p-text2); white-space: pre; overflow-x: auto; background: var(--p-card2); border-radius: 14px; padding: 16px 18px; }
.tree b { color: var(--p-text); font-weight: 500; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tools span { font-family: "IBM Plex Mono", monospace; font-size: 13px; padding: 5px 10px; border-radius: 8px; background: rgba(12,12,12,.06); }
.tools span::before { content: "✓ "; color: var(--p-ok); }
.note { margin-top: 12px; font-size: 13px; color: var(--p-text2); }
.news { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--p-dark); color: #fff; border-radius: 16px; padding: 16px 22px; margin-top: 28px; }
.news a { color: #8ab4ff; }
.news code { background: rgba(255,255,255,.15); padding: 2px 8px; border-radius: 6px; font-size: 14px; }
@media (max-width: 560px) { .news { flex-direction: column; align-items: flex-start; } }

/* agents */
.agent { background: var(--p-card); border-radius: 20px; padding: 20px; display: block; transition: transform .15s; }
.agent:hover { transform: translateY(-2px); }
.avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: block; margin-bottom: 16px; }
.avatar img { width: 112%; height: 112%; object-fit: cover; display: block; margin: -6%; }
.role { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--p-text3); font-weight: 600; margin-bottom: 2px; }
.agent h3 { font-size: 20px; font-family: "IBM Plex Serif", serif; font-style: italic; font-weight: 500; }
.agent p { margin-top: 8px; color: var(--p-text2); font-size: 14px; }
.crumb { font-size: 13px; color: var(--p-text2); margin-bottom: 20px; }
.crumb a { text-decoration: underline; }
.detail { display: grid; grid-template-columns: 340px 1fr; gap: 16px; }
.detail .avatar { width: 120px; height: 120px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; font-size: 14px; margin-top: 20px; }
.kv dt { color: var(--p-text3); } .kv dd { margin: 0; }
.actions { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.md { background: var(--p-card2); border-radius: 14px; padding: 18px 22px; font-size: 14px; line-height: 1.65; color: var(--p-text2); }
.md h1, .md h2, .md h3 { color: var(--p-text); font-family: "IBM Plex Mono", monospace; font-weight: 500; letter-spacing: 0; }
.md h1 { font-size: 15px; margin: 0 0 12px; } .md h2 { font-size: 13px; margin: 20px 0 8px; } .md h3 { font-size: 13px; margin: 14px 0 6px; }
.md p { margin: 0 0 10px; } .md ul, .md ol { margin: 0 0 10px; padding-left: 20px; } .md li { margin: 2px 0; }
.md code { font-size: 12.5px; background: rgba(12,12,12,.05); padding: 1px 5px; border-radius: 4px; }
.md pre { background: var(--p-dark); color: rgba(255,255,255,.85); padding: 12px 14px; border-radius: 10px; overflow-x: auto; font-size: 12.5px; }
.md pre code { background: none; padding: 0; color: inherit; }
.md table { border-collapse: collapse; font-size: 13px; margin: 0 0 12px; } .md td, .md th { border: 1px solid var(--p-line); padding: 4px 8px; text-align: left; }
.md.loading { color: var(--p-text3); font-family: "IBM Plex Mono", monospace; font-size: 13px; }

/* templates */
.tpl { background: var(--p-card); border-radius: 20px; overflow: hidden; }
.tpl .shot { aspect-ratio: 16/10; background: var(--p-card2); overflow: hidden; }
.tpl .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tpl .shot.ph { display: flex; align-items: center; justify-content: center; color: var(--p-text3); font-family: "IBM Plex Mono", monospace; font-size: 12px; }
.tpl .in { padding: 16px 18px 18px; }
.tpl h3 { font-size: 15px; }
.tpl .cmd { margin-top: 10px; font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--p-text2); background: var(--p-card2); padding: 6px 10px; border-radius: 8px; display: inline-block; cursor: pointer; }
.tpl .cmd:hover { color: var(--p-text); }

/* updates */
.rel { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--p-line); }
.rel:first-child { border-top: 0; padding-top: 0; }
.rel:last-child { padding-bottom: 0; }
.rel ul { margin: 8px 0 0; padding-left: 18px; color: var(--p-text2); }
.rel .v { font-family: "IBM Plex Mono", monospace; font-weight: 500; }

/* license */
.lic dl { display: grid; grid-template-columns: 140px 1fr; gap: 14px 16px; margin: 0; }
.lic dt { color: var(--p-text3); } .lic dd { margin: 0; }
.foot { border-top: 1px solid var(--p-line); padding: 24px; text-align: center; font-size: 13px; color: var(--p-text3); }
.foot a { color: var(--p-text2); }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--p-dark); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 20; }

@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .g2, .detail { grid-template-columns: 1fr; }
  .top-in { flex-wrap: wrap; height: auto; padding: 12px 16px; row-gap: 8px; }
  .nav { order: 3; width: 100%; gap: 20px; overflow-x: auto; padding-bottom: 2px; font-size: 14px; }
  .nav a { white-space: nowrap; }
  .logo { font-size: 22px; }
  .pill { height: 30px; padding: 0 12px; font-size: 12px; }
  .hero { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 26px; }
}
@media (max-width: 560px) {
  .g3, .g4 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  .num { width: 40px; height: 40px; }
  .rel, .lic dl { grid-template-columns: 1fr; gap: 6px; }
  .wrap { padding: 32px 16px 64px; }
}
