:root {
  --kinesis-blue: #0d3b66;
  --kinesis-blue-light: #1a5080;
  --muted: #64748b;
  --card-border: rgba(13, 59, 102, 0.14);
  --bg: #f4f7fb;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; background: var(--bg); color: #0f172a; line-height: 1.45; }
.kti-header {
  background: linear-gradient(135deg, var(--kinesis-blue) 0%, var(--kinesis-blue-light) 100%);
  color: #fff; padding: 1.1rem 1.5rem;
}
.kti-header h1 { margin: 0; font-size: 1.15rem; letter-spacing: 0.14em; text-transform: uppercase; }
.kti-header p { margin: 0.35rem 0 0; font-size: 0.92rem; opacity: 0.92; max-width: 42rem; }
.kti-main { max-width: 1060px; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; }
.kti-card { background: #fff; border: 1px solid var(--card-border); border-radius: 12px; padding: 1rem 1.15rem; margin-bottom: 1rem; }
.kti-card h2, .kti-card h3 { color: var(--kinesis-blue); margin-top: 0; }
.kti-btn {
  display: inline-block; padding: 0.48rem 0.95rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
}
.kti-btn-primary { background: var(--kinesis-blue); color: #fff; }
.kti-btn-secondary { background: #fff; color: var(--kinesis-blue); border: 2px solid var(--kinesis-blue); }
.kti-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.65rem; }
.kti-field label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.2rem; }
.kti-field input, .kti-field select, .kti-field textarea {
  width: 100%; padding: 0.42rem 0.5rem; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.9rem;
}
.kti-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.kti-table th, .kti-table td { padding: 0.45rem 0.55rem; border-bottom: 1px solid #e8eef5; text-align: left; vertical-align: top; }
.kti-table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.kti-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.kti-tabs a {
  padding: 0.4rem 0.75rem; border-radius: 999px; text-decoration: none; font-size: 0.86rem; font-weight: 600;
  color: var(--kinesis-blue); background: #eef4fb;
}
.kti-tabs a.active { background: var(--kinesis-blue); color: #fff; }
.kti-flash { background: #ecfdf3; border: 1px solid #86efac; color: #166534; padding: 0.55rem 0.75rem; border-radius: 8px; }
.kti-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 0.55rem 0.75rem; border-radius: 8px; }
.kti-muted { color: var(--muted); font-size: 0.88rem; }
.kti-scenario { border-left: 4px solid var(--kinesis-blue); padding-left: 0.75rem; margin: 0.75rem 0; }
@media (max-width: 640px) { .kti-grid { grid-template-columns: 1fr; } }