@font-face { font-family: 'Vela Sans'; src: url('/fonts/VelaSans-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vela Sans'; src: url('/fonts/VelaSans-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vela Sans'; src: url('/fonts/VelaSans-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vela Sans'; src: url('/fonts/VelaSans-Bold.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #0bb5c2;
  --green-h: #0a96a1;
  --green-d: #077681;
  --green-dim: #e6f7f9;
  --green-border: #c2e7eb;
  --blue: #2f6fed;
  --bg: #ffffff;
  --bg2: #f9f7f5;
  --paper: #fdfdfc;
  --card: #ffffff;
  --border: #ececea;
  --border-light: #e3e1dc;
  --text: #1a1a18;
  --ink: #171717;
  --sub: #525252;
  --body: #4d4d4a;
  --muted: #737370;
  --red: #d6453f;
  --red-dim: #fcecea;
  --red-border: #f3cfcc;
  --dark: #18181b;
  --radius: 14px;
  --maxw: 1180px;
}

html {
  font-family: 'Vela Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { background: var(--bg); }
a { color: var(--green-d); text-decoration: none; }
a:hover { opacity: .85; }
code { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--green); color: #fff; font-weight: 600; font-size: 14px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-align: center; transition: .16s; white-space: nowrap; line-height: 1.1;
}
.btn-primary:hover { background: var(--green-h); box-shadow: 0 8px 24px rgba(11,181,194,.26); opacity: 1; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary.lg { padding: 12px 24px; font-size: 1.0625rem; border-radius: 11px; }
.btn-primary.full { width: 100%; padding: 14px; font-size: 15px; border-radius: 12px; }

.btn-outline {
  background: #fff; border: 1px solid var(--border-light); color: var(--ink);
  font-weight: 600; font-size: 14px; padding: 11px 20px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-align: center; transition: .16s; white-space: nowrap; line-height: 1.1; cursor: pointer;
}
.btn-outline:hover { border-color: var(--green); color: var(--green-d); opacity: 1; }
.btn-outline.lg { padding: 12px 24px; font-size: 1.0625rem; border-radius: 11px; }
.btn-outline.sm { padding: 6px 13px; font-size: 12px; }

.btn-danger {
  background: var(--red-dim); border: 1px solid var(--red-border); color: var(--red);
  font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 10px;
  display: inline-block; text-align: center; transition: .16s; cursor: pointer;
}
.btn-danger:hover { background: #fbdddd; opacity: 1; }
.btn-danger.sm { padding: 5px 12px; font-size: 12px; }

.btn-text { font-size: 14px; color: var(--sub); font-weight: 600; }
.btn-text:hover { color: var(--ink); opacity: 1; }
.btn-head { display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border-light); color: var(--ink); font-weight: 500; font-size: 14px; padding: 8px 16px; border-radius: 999px; transition: .15s; white-space: nowrap; }
.btn-head:hover { border-color: var(--green); color: var(--green-d); opacity: 1; }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.header-inner {
  max-width: 1480px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 36px;
}
.logo-link { display: flex; align-items: center; gap: 11px; color: var(--ink); flex: 1; min-width: 0; }
.logo-link:hover { opacity: 1; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 24px; }
.eq span { width: 4px; border-radius: 2px; background: var(--green); display: block; }
.logo-ring { width: 36px; height: 36px; display: block; flex-shrink: 0; }
.logo-text { font-weight: 700; font-size: 19px; letter-spacing: -.5px; color: var(--ink); }
.logo-img { height: 28px; width: auto; display: block; }

.header-nav { display: flex; align-items: center; justify-content: center; gap: 28px; flex: 0 0 auto; }
.header-nav a { color: var(--sub); font-size: 15px; font-weight: 500; transition: color .15s; }
.header-nav a:hover { color: var(--ink); opacity: 1; }

.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex: 1; }
.avatar { width: 30px; height: 30px; border-radius: 50%; }
.user-name { font-size: 14px; color: var(--sub); }

/* ===== MAIN / FOOTER ===== */
.main { min-height: calc(100vh - 200px); }
.footer {
  border-top: 1px solid var(--border); padding: 30px 28px; text-align: center;
  font-size: 13.5px; color: var(--muted); max-width: var(--maxw); margin: 0 auto;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--green-d); opacity: 1; }

/* ===== MULTI-COLUMN FOOTER ===== */
.site-footer { border-top: 1px solid var(--border); background: #fff; }
.footer-inner { max-width: 1480px; margin: 0 auto; padding: 56px 24px 44px; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { padding-right: 20px; }
.footer-logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.footer-logo .logo-ring { width: 30px; height: 30px; }
.footer-tag { margin-top: 16px; font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 260px; }
.footer-copy { margin-top: 18px; font-size: 13px; color: var(--muted); }
.footer-col h5 { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .03em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--sub); margin-bottom: 12px; transition: color .15s; }
.footer-col a:hover { color: var(--green-d); opacity: 1; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px 24px; } .footer-brand { grid-column: 1 / -1; padding-right: 0; } }

/* ===== LANDING : HERO ===== */
.landing { }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(11,181,194,.18); }
.hero { max-width: 1480px; margin: 0 auto; padding: 8px 24px 12px; }
.hero-band {
  position: relative; overflow: hidden; border-radius: 22px;
  min-height: min(760px, calc(100vh - 88px)); display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 56px 24px;
  background:
    radial-gradient(60% 60% at 0% 22%, rgba(255,255,255,.20), transparent 70%),
    radial-gradient(60% 60% at 100% 22%, rgba(255,255,255,.16), transparent 70%),
    linear-gradient(180deg, #0cb8c5 0%, #0aa6b3 55%, #0a98a4 100%);
}
.hero-band::before {
  content: ""; position: absolute; inset: -60px; pointer-events: none; opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect x='0' y='0' width='3.4' height='3.4' rx='0.6' fill='%23ffffff' fill-opacity='0.5'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 88% at 50% 42%, #000 28%, transparent 82%);
  mask-image: radial-gradient(ellipse 80% 88% at 50% 42%, #000 28%, transparent 82%);
  animation: heroDrift 26s linear infinite;
}
.hero-band::after {
  content: ""; position: absolute; left: 50%; bottom: -10%; width: 130%; height: 64%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(205,255,250,.55), transparent 72%);
  pointer-events: none; animation: heroPulse 7s ease-in-out infinite;
}
@keyframes heroDrift { from { background-position: 0 0; } to { background-position: 0 240px; } }
@keyframes heroPulse { 0%, 100% { opacity: .4; transform: translateX(-50%) scale(1); } 50% { opacity: .85; transform: translateX(-50%) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero-band::before, .hero-band::after { animation: none; } }
.hero-inner { position: relative; z-index: 1; max-width: 1080px; }
.hero-t { color: #fff; font-size: clamp(2.5rem, 4.4vw, 3.5rem); font-weight: 600; line-height: .99; letter-spacing: -.025em; margin-bottom: 18px; }
.hero-sub { color: rgba(255,255,255,.94); font-size: clamp(1rem, 1.3vw, 1.125rem); font-weight: 400; line-height: 1.45; max-width: 560px; margin: 0 auto 32px; }
.hero-pill { display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #0d1418; font-weight: 500; font-size: 1.125rem; padding: 12px 24px; border-radius: 999px; transition: .16s; }
.hero-pill:hover { background: #f2fbfc; transform: translateY(-1px); box-shadow: 0 14px 34px rgba(8,40,44,.28); opacity: 1; }

/* ===== LOGO STRIP ===== */
.strip { background: var(--bg2); border-bottom: 1px solid var(--border); }
.strip .wrap { padding: 40px 28px; display: flex; align-items: center; gap: 22px 44px; flex-wrap: wrap; justify-content: center; }
.strip .lbl { font-size: 15px; font-weight: 600; color: var(--muted); }
.strip .item { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 22px; color: #2b3640; letter-spacing: -.3px; }
.strip .item svg { width: 32px; height: 32px; display: block; flex-shrink: 0; }

/* ===== SECTIONS ===== */
.sec { padding: 100px 0; }
.sec.alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.shead { max-width: 600px; margin-bottom: 52px; }
.shead.center { margin: 0 auto 54px; text-align: center; }
.lab {
  display: inline-flex; align-items: center; gap: 8px; color: var(--green-d);
  font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px;
}
.st { font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.05; margin-bottom: 16px; }
.ssub { font-size: 1.125rem; color: var(--body); line-height: 1.5; font-weight: 400; }

/* ===== FEATURE GRID ===== */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; transition: .18s; }
.fcard:hover { border-color: var(--green-border); box-shadow: 0 14px 40px rgba(13,20,24,.06); transform: translateY(-3px); }
.ficon { width: 46px; height: 46px; border-radius: 12px; background: var(--green-dim); border: 1px solid var(--green-border); color: var(--green-h); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.ficon svg { width: 23px; height: 23px; }
.fcard h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.025em; margin-bottom: 9px; }
.fcard p { font-size: 15px; color: var(--body); line-height: 1.6; }

/* ===== STEPS ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--border-light); }
.step .n { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500; color: var(--green-h); margin-bottom: 12px; letter-spacing: .05em; }
.step h4 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.025em; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--body); line-height: 1.6; }

/* ===== SHOWCASE (API) ===== */
.show { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.show .copy h2 { margin-bottom: 18px; }
.checks { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--body); }
.checks .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--green-dim); color: var(--green-h); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.checks .ck svg { width: 13px; height: 13px; }
.checks code { font-size: 13px; background: var(--green-dim); color: var(--green-d); padding: 1px 7px; border-radius: 5px; }

/* ===== AI FLOW INFOGRAPHIC ===== */
.ai-show .copy h2 { margin-bottom: 18px; }
.ai-flow { display: flex; flex-direction: column; align-items: center; }
.ai-node { width: 100%; max-width: 340px; }
.ai-src { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 15px 18px; box-shadow: 0 6px 20px rgba(13,20,24,.05); }
.ai-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--green-dim); border: 1px solid var(--green-border); color: var(--green-h); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-ico svg { width: 26px; height: 26px; }
.ai-txt b { font-size: 15px; font-weight: 600; display: block; }
.ai-txt small { font-size: 13px; color: var(--muted); }
.ai-wire { width: 2px; height: 40px; position: relative; background: repeating-linear-gradient(var(--green-border) 0 4px, transparent 4px 8px); }
.ai-wire::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px 1px rgba(11,181,194,.6); animation: aiFlow 1.7s linear infinite; }
@keyframes aiFlow { 0% { top: -4px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 40px; opacity: 0; } }
.ai-api { background: var(--dark); border-radius: 14px; padding: 15px 18px; box-shadow: 0 16px 38px rgba(13,20,24,.22); }
.ai-api-top { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.ai-d { width: 10px; height: 10px; border-radius: 50%; display: block; }
.ai-d.r { background: #ff5f57; } .ai-d.y { background: #febc2e; } .ai-d.g { background: #28c840; }
.ai-api-name { margin-left: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(255,255,255,.55); }
.ai-code { font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; color: #e7eef1; }
.ai-code .kw { color: var(--green); font-weight: 500; }
.ai-code .dim { color: rgba(255,255,255,.5); }
.ai-targets { display: flex; gap: 10px; width: 100%; max-width: 360px; }
.ai-plat { flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 6px; text-align: center; }
.ai-plat svg { width: 26px; height: 26px; margin-bottom: 7px; }
.ai-plat b { display: block; font-size: 13px; font-weight: 600; }
.ai-plat small { font-size: 11px; color: var(--green-d); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .ai-wire::after { animation: none; } }

/* ===== DASHBOARD MOCK ===== */
.dash { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 30px 70px rgba(13,20,24,.10); overflow: hidden; }
.dash-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: var(--bg2); border-bottom: 1px solid var(--border); }
.dash-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dash-url { margin-left: 10px; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 7px; padding: 4px 14px; }
.dash-body { padding: 22px; }
.dash-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash-h strong { font-size: 16px; }
.dash-h .pill { font-size: 12px; font-weight: 500; color: var(--green-d); background: var(--green-dim); border: 1px solid var(--green-border); border-radius: 999px; padding: 4px 12px; }
.crow { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; }
.crow:last-child { margin-bottom: 0; }
.cico { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cinfo { flex: 1; line-height: 1.35; }
.cinfo b { font-size: 14px; display: block; }
.cinfo small { font-size: 12.5px; color: var(--muted); }
.cok { font-size: 12px; font-weight: 500; color: var(--green-d); background: var(--green-dim); border: 1px solid var(--green-border); border-radius: 999px; padding: 4px 12px; }

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: clamp(40px, 4.4vw, 56px); font-weight: 600; letter-spacing: -.025em; color: var(--ink); line-height: 1; }
.stat .num span { color: var(--green); }
.stat .cap { margin-top: 12px; font-size: 15px; color: var(--body); }

/* ===== CTA ===== */
.cta { background: var(--dark); color: #fff; border-radius: 24px; padding: 72px 56px; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; top: -160px; left: 50%; transform: translateX(-50%); width: 680px; height: 520px; background: radial-gradient(ellipse at center, rgba(11,181,194,.22), transparent 62%); }
.cta-in { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -1px; margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.66); font-size: 18px; max-width: 440px; margin: 0 auto 30px; }

/* ===== INNER PAGES ===== */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.page-content { padding: 56px 0 80px; }
.page-content.narrow { max-width: 720px; }
.page-title { font-size: 38px; font-weight: 500; letter-spacing: -1px; margin-bottom: 8px; }
.page-sub { color: var(--sub); font-size: 16px; margin-bottom: 34px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 24px; transition: color .15s; }
.back-link:hover { color: var(--green-d); opacity: 1; }

/* ===== ALERTS ===== */
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; margin-bottom: 20px; }
.alert-success { background: var(--green-dim); border: 1px solid var(--green-border); color: var(--green-d); }
.alert-error { background: var(--red-dim); border: 1px solid var(--red-border); color: #b4282c; }

/* ===== CHANNEL CARDS ===== */
.channels-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.channel-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
.channel-card.connected { border-color: var(--green-border); }
.channel-info { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.channel-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tt-bg { background: #0d1418; color: #fff; }
.yt-bg { background: #ffecec; color: #ff3b3b; }
.channel-label { font-weight: 600; font-size: 15px; }
.channel-account { font-size: 12px; color: var(--muted); margin-top: 2px; }
.badge-connected { margin-left: auto; background: var(--green-dim); color: var(--green-d); border: 1px solid var(--green-border); border-radius: 999px; padding: 3px 12px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-disconnected { margin-left: auto; background: #f1f4f6; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; font-size: 11px; white-space: nowrap; }
.channel-actions { display: flex; gap: 10px; }

/* ===== PUBLISH CTA ===== */
.publish-cta { background: var(--green-dim); border: 1px solid var(--green-border); border-radius: 14px; padding: 24px; display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.publish-cta-icon { width: 44px; height: 44px; background: #fff; border: 1px solid var(--green-border); color: var(--green-h); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.publish-cta h3 { font-weight: 500; margin-bottom: 4px; }
.publish-cta p { color: var(--body); font-size: 13px; margin-bottom: 14px; }

/* ===== SANDBOX NOTE ===== */
.sandbox-info { background: #fff8ed; border: 1px solid #f5e0b8; border-radius: 12px; padding: 14px 18px; display: flex; gap: 10px; align-items: flex-start; }
.sandbox-info p { font-size: 13px; color: #7a5b1e; }

/* ===== LOGIN ===== */
.center-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 220px); padding: 48px 24px; }
.login-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 44px 40px; max-width: 420px; width: 100%; text-align: left; box-shadow: 0 24px 60px rgba(13,20,24,.08); }
.login-card h1 { font-size: 23px; font-weight: 500; letter-spacing: -.4px; margin-bottom: 6px; }
.subtitle { color: var(--body); font-size: 15px; margin-bottom: 24px; }
.feature-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.pill { background: var(--bg2); border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; font-size: 12px; color: var(--sub); }
.btn-google { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f2328; font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 12px; border: 1px solid var(--border-light); transition: .15s; box-shadow: 0 1px 2px rgba(13,20,24,.06); }
.btn-google:hover { background: #f6f9fa; border-color: var(--green); opacity: 1; }
.sandbox-note { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.login-legal { font-size: 12px; color: var(--muted); margin-top: 18px; line-height: 1.5; }
.login-legal a { color: var(--green-d); text-decoration: underline; }
.dot.green { background: var(--green); }
.dot.yellow { background: #f5a623; box-shadow: 0 0 0 4px rgba(245,166,35,.18); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--sub); margin-bottom: 8px; }
.form-group input[type="text"], .form-group select {
  width: 100%; background: #fff; border: 1px solid var(--border-light); color: var(--text);
  border-radius: 10px; padding: 12px 14px; font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s; font-family: inherit;
}
.form-group input[type="text"]:focus, .form-group select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,181,194,.14); }
.form-group input::placeholder { color: #aab3bb; }
.form-group select option { background: #fff; }

/* ===== DROPZONE ===== */
.dropzone { background: var(--bg2); border: 2px dashed var(--border-light); border-radius: 12px; padding: 40px 20px; text-align: center; cursor: pointer; transition: .15s; }
.dropzone:hover, .dropzone.over, .dropzone.has-file { border-color: var(--green); background: var(--green-dim); }
.dropzone p { color: var(--body); font-size: 14px; margin-top: 12px; }
.dropzone small { color: var(--muted); font-size: 12px; }
.dropzone .green { color: var(--green-d); }

/* ===== PROGRESS ===== */
.progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--body); margin-bottom: 8px; }
.progress-bar { height: 6px; background: #e9eef1; border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
#progress-fill { height: 100%; background: var(--green); border-radius: 999px; transition: width .3s; width: 0; }

.terms-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }
.terms-note a { color: var(--muted); text-decoration: underline; }

/* ===== RESULT ===== */
.result-success { background: var(--green-dim); border: 1px solid var(--green-border); border-radius: 14px; padding: 24px; text-align: center; margin-bottom: 20px; }
.result-success h3 { color: var(--green-d); font-size: 18px; margin-bottom: 6px; }
.result-success p { color: var(--body); font-size: 13px; }
.result-success code { font-size: 11px; background: #fff; border: 1px solid var(--green-border); padding: 4px 10px; border-radius: 6px; display: inline-block; margin-top: 8px; color: var(--green-d); }
.result-error { background: var(--red-dim); border: 1px solid var(--red-border); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.result-error p { color: #b4282c; font-size: 14px; }

/* ===== TEXT / LEGAL PAGES ===== */
.text-page h1 { font-size: 38px; font-weight: 500; letter-spacing: -1px; margin-bottom: 8px; }
.text-page > p:first-of-type { color: var(--muted); font-size: 13px; margin-bottom: 32px; }
.text-page > p { color: var(--body); font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
.text-page h2 { font-size: 20px; font-weight: 500; margin: 36px 0 12px; padding-top: 36px; border-top: 1px solid var(--border); }
.text-page h2:first-of-type { border-top: none; padding-top: 0; }
.text-page h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 20px 0 8px; }
.text-page p { color: var(--body); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.text-page a { color: var(--green-d); }
.text-page code { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; background: var(--green-dim); padding: 2px 7px; border-radius: 5px; color: var(--green-d); }
.legal-list { list-style: none; padding: 0; margin: 8px 0 16px; }
.legal-list li { color: var(--body); font-size: 15px; line-height: 1.75; padding: 4px 0 4px 20px; position: relative; }
.legal-list li::before { content: "·"; position: absolute; left: 6px; color: var(--green); }

/* ===== PUBLISH PAGE ===== */
.publish-wrap { max-width: 560px; margin: 0 auto; padding: 48px 24px 80px; }

/* ===== DASHBOARD ===== */
.dash-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.dash-header .btn-primary { display: flex; align-items: center; gap: 6px; flex-shrink: 0; white-space: nowrap; }

.pcards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--text); cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; min-height: 180px; }
.pcard:hover { border-color: var(--green-border); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(13,20,24,.08); opacity: 1; }
.pcard-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 0; }
.pcard-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: #fff; flex-shrink: 0; }
.pcard-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-menu { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; display: flex; align-items: center; transition: color .15s, background .15s; flex-shrink: 0; }
.pcard-menu:hover { color: var(--red); background: var(--red-dim); }
.pcard-preview { flex: 1; margin: 12px 16px; background: var(--bg2); border-radius: 8px; border: 1px solid var(--border); min-height: 80px; display: flex; align-items: center; justify-content: center; }
.pcard-foot { display: flex; align-items: center; gap: 8px; padding: 0 16px 16px; }
.pcard-ch { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--muted); background: var(--bg2); border: 1px solid var(--border); border-radius: 99px; padding: 3px 10px 3px 8px; transition: .15s; }
.pcard-ch.active { color: var(--green-d); background: var(--green-dim); border-color: var(--green-border); }
.pcards-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 80px 24px; color: var(--muted); text-align: center; }

/* ===== PROFILE HERO ===== */
.profile-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.profile-avatar-lg { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 500; color: #fff; flex-shrink: 0; }
.profile-hero .page-title { margin-bottom: 0; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(13,20,24,.45); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px; width: 100%; max-width: 440px; box-shadow: 0 30px 80px rgba(13,20,24,.22); }
.modal-title { font-size: 22px; font-weight: 500; letter-spacing: -.5px; margin-bottom: 8px; }
.modal-sub { color: var(--body); font-size: 14px; margin-bottom: 24px; }
.modal-input { width: 100%; background: #fff; border: 1px solid var(--border-light); border-radius: 10px; padding: 12px 16px; font-size: 15px; color: var(--text); font-family: inherit; outline: none; margin-bottom: 20px; transition: border-color .15s, box-shadow .15s; }
.modal-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,181,194,.14); }
.modal-input::placeholder { color: #aab3bb; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ===== API KEYS ===== */
.apikey-create-form { display: flex; gap: 10px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.apikeys-list { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 24px; background: var(--border); }
.apikey-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: #fff; transition: background .1s; }
.apikey-row:hover { background: var(--bg2); }
.apikey-info { flex: 1; min-width: 0; }
.apikey-name { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.apikey-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.apikey-prefix { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--sub); background: var(--bg2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 5px; }
.apikey-date { font-size: 12px; color: var(--muted); }
.apikey-new-box { flex-direction: column; align-items: flex-start; gap: 10px; }
.apikey-reveal-wrap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.apikey-reveal { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--green-d); background: var(--green-dim); border: 1px solid var(--green-border); padding: 8px 14px; border-radius: 8px; word-break: break-all; }
.docs-hint { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 16px; }
.docs-hint a { color: var(--green-d); }

/* ===== DASHBOARD API HINT ===== */
.api-hint-box { display: flex; align-items: center; gap: 16px; background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; flex-wrap: wrap; }
.api-hint-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--green-dim); border: 1px solid var(--green-border); display: flex; align-items: center; justify-content: center; color: var(--green-h); flex-shrink: 0; }
.api-hint-body { flex: 1; min-width: 200px; }
.api-hint-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
.api-hint-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.api-hint-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 920px) {
  .hero .wrap, .show { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 440px; }
  .fgrid, .steps, .stats { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hero { padding: 0; }
  .hero-band { border-radius: 0; }
}
@media (max-width: 640px) {
  .header-nav { display: none; }
  .hero-t { letter-spacing: -1.4px; }
  .cta { padding: 56px 28px; }
}

/* ============================================================
   APP CABINET — Cloudflare "kumo" light theme, teal accent
   ============================================================ */
:root {
  --app-canvas: #fbfbfb;
  --app-card: #ffffff;
  --app-elevated: #fafafa;
  --app-line: rgba(20,20,20,.09);
  --app-hairline: #edecea;
  --app-ink: #18181b;
  --app-subtle: #585856;
  --app-muted: #8a8a86;
  --app-hover: #f4f3f1;
  --app-sidebar-w: 250px;
  --app-shadow: 0 1px 2px rgba(20,20,20,.05);
  --app-shadow-md: 0 6px 22px rgba(20,20,20,.08);
}

body.app { background: var(--app-canvas); color: var(--app-ink); }
body.app a:hover { opacity: 1; }
.app-shell { display: flex; min-height: 100vh; align-items: stretch; }

/* ---- Sidebar ---- */
.app-side {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--app-sidebar-w);
  background: var(--app-card); border-right: 1px solid var(--app-hairline);
  display: flex; flex-direction: column; z-index: 50;
}
.app-side-top {
  height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 18px;
  border-bottom: 1px solid var(--app-hairline); flex-shrink: 0;
}
.app-side-top .logo-ring { width: 26px; height: 26px; }
.app-side-top .logo-text { font-size: 16px; font-weight: 600; color: var(--app-ink); letter-spacing: -.02em; }
.app-nav { flex: 1; overflow-y: auto; padding: 10px 12px 16px; }
.app-nav-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--app-muted); font-weight: 600; padding: 16px 10px 6px; }
.app-nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px;
  color: var(--app-subtle); font-size: 14px; font-weight: 500; transition: .13s; margin-bottom: 1px;
}
.app-nav a svg { width: 17px; height: 17px; flex: none; color: var(--app-muted); transition: .13s; }
.app-nav a:hover { background: var(--app-hover); color: var(--app-ink); }
.app-nav a:hover svg { color: var(--app-subtle); }
.app-nav a.active { background: var(--green-dim); color: var(--green-d); font-weight: 600; }
.app-nav a.active svg { color: var(--green-d); }
.app-nav a .ext { margin-left: auto; opacity: .5; }
.app-side-foot { border-top: 1px solid var(--app-hairline); padding: 10px 12px; flex-shrink: 0; }
.app-side-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.app-side-user img, .app-side-user .av { width: 30px; height: 30px; border-radius: 50%; flex: none; object-fit: cover; }
.app-side-user .av { background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.app-side-user .nm { font-size: 13px; font-weight: 600; color: var(--app-ink); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-side-user .em { font-size: 11px; color: var(--app-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Main column ---- */
.app-main { flex: 1; margin-left: var(--app-sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.app-top {
  height: 56px; background: var(--app-card); border-bottom: 1px solid var(--app-hairline);
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  position: sticky; top: 0; z-index: 40;
}
.app-top-left { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--app-subtle); font-weight: 500; min-width: 0; }
.app-top-left .home-ic { color: var(--app-muted); display: flex; }
.app-top-right { display: flex; align-items: center; gap: 18px; }
.app-top-right a { font-size: 13px; color: var(--app-subtle); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.app-top-right a:hover { color: var(--app-ink); }
.app-top-right a svg { width: 15px; height: 15px; }
.app-burger { display: none; }

.app-content { padding: 28px 32px 64px; max-width: 1340px; width: 100%; }
.app-crumb { font-size: 13px; color: var(--app-muted); margin-bottom: 8px; }
.app-h1 { font-size: 28px; font-weight: 600; letter-spacing: -.03em; color: var(--app-ink); line-height: 1.15; }
.app-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.app-head .sub { font-size: 14px; color: var(--app-subtle); margin-top: 6px; }
.app-sec-row { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 14px; }
.app-sec-row:first-child { margin-top: 0; }
.app-sec-label { font-size: 15px; font-weight: 600; color: var(--app-ink); letter-spacing: -.01em; }
.app-pill { font-size: 12px; color: var(--app-subtle); border: 1px solid var(--app-line); background: var(--app-card); border-radius: 7px; padding: 5px 11px; display: inline-flex; align-items: center; gap: 6px; }

/* ---- Grid ---- */
.kgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.kspan-3 { grid-column: span 3; }
.kspan-4 { grid-column: span 4; }
.kspan-6 { grid-column: span 6; }
.kspan-8 { grid-column: span 8; }
.kspan-12 { grid-column: span 12; }
@media (max-width: 1180px) { .kspan-3 { grid-column: span 6; } }
@media (max-width: 980px) { .kspan-4, .kspan-8 { grid-column: span 12; } }
@media (max-width: 720px) { [class*="kspan"] { grid-column: span 12 !important; } }

/* ---- Card ---- */
.kcard { background: var(--app-card); border-radius: 10px; box-shadow: var(--app-shadow); outline: 1px solid var(--app-line); outline-offset: -1px; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.kcard-head { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; background: var(--app-elevated); border-bottom: 1px solid var(--app-hairline); }
.kcard-head .t { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--app-subtle); min-width: 0; }
.kcard-head .t svg { width: 16px; height: 16px; flex: none; color: var(--app-muted); }
.kcard-head .t .cnt { background: var(--app-hairline); color: var(--app-subtle); font-size: 11px; font-weight: 600; border-radius: 20px; padding: 1px 8px; }
.kcard-head .act { display: flex; align-items: center; gap: 6px; }
.kcard-head .icobtn { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--app-line); background: var(--app-card); display: inline-flex; align-items: center; justify-content: center; color: var(--app-muted); cursor: pointer; transition: .13s; }
.kcard-head .icobtn:hover { color: var(--app-ink); border-color: var(--app-muted); }
.kcard-head .icobtn svg { width: 15px; height: 15px; }
.kcard-body { padding: 18px 16px; flex: 1; }
.kcard-body.flush { padding: 0; }

/* ---- Stat card ---- */
.kstat { padding: 16px 18px; }
.kstat .label { font-size: 13px; color: var(--app-subtle); display: flex; align-items: center; gap: 7px; font-weight: 500; }
.kstat .label svg { width: 15px; height: 15px; color: var(--app-muted); }
.kstat .value { font-size: 30px; font-weight: 600; color: var(--app-ink); letter-spacing: -.025em; margin-top: 10px; line-height: 1; }
.kstat .value small { font-size: 15px; color: var(--app-muted); font-weight: 500; letter-spacing: 0; }
.kstat .delta { font-size: 12px; margin-top: 8px; color: var(--app-muted); }
.kstat .delta.up { color: #1a9c5b; }
.kstat-split { display: grid; grid-template-columns: 1fr 1fr; }
.kstat-split .kstat + .kstat { border-left: 1px solid var(--app-hairline); }

/* ---- List rows ---- */
.krow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--app-hairline); transition: background .12s; }
.krow:first-child { border-top: none; }
.krow.link:hover { background: var(--app-hover); }
.krow .dot-ok { width: 16px; height: 16px; flex: none; color: #1a9c5b; }
.krow .grow { min-width: 0; flex: 1; }
.krow .rt { font-weight: 500; font-size: 14px; color: var(--app-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.krow .meta { font-size: 12px; color: var(--app-muted); margin-top: 1px; }
.krow .right { font-size: 12px; color: var(--app-muted); white-space: nowrap; text-align: right; }
.krow .spark { width: 90px; height: 26px; flex: none; color: var(--green); opacity: .8; }
.kempty { padding: 26px 16px; text-align: center; color: var(--app-muted); font-size: 13px; }

/* ---- Profile mini-cards inside cabinet ---- */
.kpgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; padding: 16px; }
.kp { background: var(--app-card); border: 1px solid var(--app-hairline); border-radius: 10px; padding: 14px; transition: .14s; display: flex; flex-direction: column; gap: 12px; position: relative; }
.kp:hover { border-color: var(--green-border); box-shadow: var(--app-shadow-md); }
.kp-top { display: flex; align-items: center; gap: 10px; }
.kp-av { width: 34px; height: 34px; border-radius: 9px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex: none; }
.kp-nm { font-size: 14px; font-weight: 600; color: var(--app-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-del { margin-left: auto; width: 26px; height: 26px; border-radius: 6px; border: 0; background: transparent; color: var(--app-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: .13s; }
.kp:hover .kp-del { opacity: 1; }
.kp-del:hover { background: var(--red-dim); color: var(--red); }
.kp-chs { display: flex; gap: 6px; flex-wrap: wrap; }
.kp-ch { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; border: 1px solid var(--app-hairline); color: var(--app-muted); background: var(--app-card); }
.kp-ch svg { width: 12px; height: 12px; }
.kp-ch.on { color: var(--green-d); border-color: var(--green-border); background: var(--green-dim); }
.kp-add { border: 1px dashed var(--border-light); background: var(--app-card); border-radius: 10px; min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--app-muted); cursor: pointer; transition: .14s; font-size: 13px; font-weight: 600; }
.kp-add:hover { border-color: var(--green); color: var(--green-d); background: var(--green-dim); }
.kp-add svg { width: 22px; height: 22px; }

/* ---- Profile detail (cabinet) ---- */
.kprofile-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.kprofile-hero .av { width: 54px; height: 54px; border-radius: 13px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; flex: none; }
.kpid { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.kpid .lbl { font-size: 11px; color: var(--app-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kpid code { font-size: 12px; color: var(--app-subtle); background: var(--app-elevated); border: 1px solid var(--app-line); padding: 3px 9px; border-radius: 6px; user-select: all; }
.kpid button { font-size: 11px; color: var(--app-muted); background: var(--app-elevated); border: 1px solid var(--app-line); border-radius: 6px; padding: 3px 9px; cursor: pointer; font-family: inherit; transition: .13s; }
.kpid button:hover { color: var(--app-ink); border-color: var(--app-muted); }
.kch { display: flex; align-items: center; gap: 14px; padding: 16px; }
.kch + .kch { border-top: 1px solid var(--app-hairline); }
.kch-ic { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.kch-ic.tt { background: #010101; } .kch-ic.yt { background: #fff; border: 1px solid var(--app-hairline); } .kch-ic.ig { background: #fff; border: 1px solid var(--app-hairline); }
.kch-grow { flex: 1; min-width: 0; }
.kch-name { font-size: 14px; font-weight: 600; color: var(--app-ink); }
.kch-acc { font-size: 13px; color: var(--app-muted); margin-top: 1px; }
.kbadge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; }
.kbadge.on { color: var(--green-d); background: var(--green-dim); border: 1px solid var(--green-border); }
.kbadge.off { color: var(--app-muted); background: var(--app-elevated); border: 1px solid var(--app-hairline); }
.kch-actions { display: flex; gap: 8px; flex: none; }
.kbtn { font-size: 13px; font-weight: 600; padding: 8px 15px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: .14s; white-space: nowrap; line-height: 1; }
.kbtn-primary { background: var(--green); color: #fff; }
.kbtn-primary:hover { background: var(--green-h); }
.kbtn-ghost { background: var(--app-card); border-color: var(--app-line); color: var(--app-ink); }
.kbtn-ghost:hover { border-color: var(--green); color: var(--green-d); }
.kbtn-danger { background: var(--app-card); border-color: var(--app-line); color: var(--red); }
.kbtn-danger:hover { background: var(--red-dim); border-color: var(--red-border); }
.kfield { padding: 16px; }
.kfield label { font-size: 13px; font-weight: 600; color: var(--app-ink); display: block; margin-bottom: 4px; }
.kfield .hint { font-size: 12px; color: var(--app-muted); margin: 0 0 10px; }
.kfield textarea, .kfield input[type=text] { width: 100%; background: var(--app-card); border: 1px solid var(--app-line); border-radius: 8px; color: var(--app-ink); padding: 10px 12px; font-family: inherit; font-size: 13px; resize: vertical; transition: .13s; }
.kfield textarea:focus, .kfield input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
.knote { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; background: #fff8e4; border: 1px solid #ffeab2; border-radius: 9px; font-size: 13px; color: #7a5a00; }
.knote svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.kalert { padding: 12px 16px; border-radius: 9px; font-size: 13px; font-weight: 500; margin-bottom: 18px; }
.kalert.ok { background: var(--green-dim); border: 1px solid var(--green-border); color: var(--green-d); }
.kalert.err { background: var(--red-dim); border: 1px solid var(--red-border); color: var(--red); }
.kback { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--app-muted); font-weight: 500; margin-bottom: 18px; }
.kback:hover { color: var(--app-ink); }

/* ---- Mobile shell ---- */
@media (max-width: 860px) {
  .app-side { transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--app-shadow-md); }
  .app-shell.nav-open .app-side { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .app-burger { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--app-line); background: var(--app-card); color: var(--app-ink); cursor: pointer; margin-right: 4px; }
  .app-burger svg { width: 18px; height: 18px; }
  .app-content { padding: 22px 18px 56px; }
  .app-scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.32); z-index: 45; }
  .app-shell.nav-open .app-scrim { display: block; }
}
