* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f4f6f9; color: #142033; font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.login-body { min-height: 100vh; background: linear-gradient(135deg, #eef4ff 0%, #f7f9fc 48%, #ffffff 100%); }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 32px; }
.login-card { width: min(460px, 100%); background: #fff; border: 1px solid #dfe5ee; border-radius: 12px; box-shadow: 0 18px 60px rgba(20, 32, 51, .12); padding: 30px; }
.login-brand { margin-bottom: 24px; }
.login-brand h1 { margin-top: 7px; font-size: 28px; }
.login-brand p { margin-top: 8px; color: #667489; }
.login-form { display: grid; gap: 14px; }
.login-form input { height: 42px; }
.login-submit { width: 100%; min-height: 42px; margin-top: 4px; }
.login-error { margin-bottom: 14px; border: 1px solid #fecaca; background: #fff1f2; color: #b42318; border-radius: 8px; padding: 10px 12px; font-weight: 800; }
.login-hint { margin-top: 18px; border-top: 1px solid #edf1f6; padding-top: 14px; color: #667489; display: grid; gap: 4px; }
.login-hint strong { color: #142033; }
.demo-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.demo-nav { position: sticky; top: 0; height: 100vh; padding: 18px 16px; background: #fff; border-right: 1px solid #dfe5ee; overflow-y: auto; }
.brand { padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid #e6ebf3; }
.brand strong { display: block; font-size: 18px; }
.brand span { display: block; margin-top: 3px; color: #667489; }
.nav-link { display: block; margin: 6px 0; padding: 10px 12px; color: #425066; text-decoration: none; border-radius: 7px; font-weight: 700; }
.nav-link.active, .nav-link:hover { background: #eaf3ff; color: #155fb8; }
.demo-content { padding: 22px 24px 48px; min-width: 0; }
.hero, .panel { background: #fff; border: 1px solid #dfe5ee; border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.hero { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 24px; margin-bottom: 14px; }
.eyebrow { color: #1768c2; font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
h1, h2, p { margin: 0; }
h1 { margin-top: 5px; font-size: 30px; line-height: 1.16; }
h2 { font-size: 19px; }
.section-title { margin: 16px 0 10px; color: #172033; font-size: 15px; }
.panel-head + .section-title { margin-top: 0; }
.hero p, .panel-head p, .muted { color: #667489; }
.hero-actions, .action-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.session-chip { min-height: 36px; display: inline-flex; align-items: center; border: 1px solid #dfe5ee; border-radius: 999px; background: #f8fafc; color: #3b475b; padding: 0 12px; font-weight: 800; }
.lang-switch { display: inline-flex; border: 1px solid #cfd8e6; border-radius: 7px; overflow: hidden; background: #fff; height: 36px; }
.lang-btn { border: 0; border-right: 1px solid #cfd8e6; background: #fff; color: #536177; padding: 0 12px; font-weight: 800; cursor: pointer; }
.lang-btn:last-child { border-right: 0; }
.lang-btn.active { background: #246dd2; color: #fff; }
.btn { min-height: 36px; border: 1px solid #1d68c8; border-radius: 7px; background: #246dd2; color: #fff; padding: 0 16px; font-weight: 800; cursor: pointer; }
.btn.secondary { background: #fff; color: #155cae; }
.btn:disabled { border-color: #d6deeb; background: #edf1f7; color: #9aa6b8; cursor: not-allowed; }
.review-note { display: flex; gap: 12px; align-items: center; background: #fff7e6; color: #7b4f00; border: 1px solid #f0cd8a; border-radius: 8px; padding: 13px 15px; margin-bottom: 14px; }
.progress { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.step { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid #dfe5ee; border-radius: 8px; background: #fff; color: #657287; }
.step strong { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 50%; background: #e9eef7; color: #4f5e73; }
.step.active { border-color: #1d68c8; color: #142033; box-shadow: 0 0 0 2px rgba(29, 104, 200, .12); }
.step.active strong { background: #246dd2; color: #fff; }
.panel { padding: 20px; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.status { display: inline-flex; align-items: center; min-height: 26px; border-radius: 999px; padding: 0 11px; font-weight: 800; white-space: nowrap; }
.status.warning { background: #fff3cd; color: #856100; }
.status.ok { background: #e7f7ee; color: #14783d; }
.status.ready { background: #eaf3ff; color: #155fb8; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label span { display: block; margin-bottom: 6px; color: #4a586d; font-size: 12px; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid #cfd8e6; border-radius: 7px; padding: 0 10px; background: #fff; color: #142033; font: inherit; }
input, select { height: 36px; }
input[type="file"] { padding: 7px 10px; }
textarea { min-height: 78px; padding: 9px 10px; resize: vertical; }
.wide-field { grid-column: span 1; }
.caption { border-left: 3px solid #246dd2; background: #f4f8ff; color: #3b4a60; padding: 11px 12px; margin-bottom: 14px; }
.scope-grid, .asset-grid, .guard-grid { display: grid; gap: 10px; margin-bottom: 14px; }
.scope-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.asset-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scope-grid div, .asset-card, .guard-grid div { border: 1px solid #dfe5ee; border-radius: 8px; background: #f8fafc; padding: 12px; min-height: 94px; }
.scope-grid strong, .asset-card strong, .guard-grid strong { display: block; margin-bottom: 6px; color: #1768c2; }
.scope-grid span, .asset-card span, .guard-grid span, .asset-card small { color: #5f6e83; }
.oauth-box { display: grid; gap: 6px; margin-bottom: 14px; }
.oauth-box span { color: #4a586d; font-size: 12px; font-weight: 800; }
code { display: block; overflow-x: auto; border: 1px solid #dfe5ee; border-radius: 8px; background: #111827; color: #d6e2ff; padding: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.empty, .empty-cell { background: #fff8e5; color: #7b4f00; }
.empty { grid-column: 1 / -1; border: 1px dashed #e4bd66; border-radius: 8px; padding: 18px; text-align: center; }
.api-warning { grid-column: 1 / -1; border: 1px solid #f0cd8a; border-radius: 8px; background: #fff7e6; color: #7b4f00; padding: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid #dfe5ee; border-radius: 8px; margin-bottom: 14px; }
table { width: 100%; min-width: 860px; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid #edf1f6; text-align: left; vertical-align: middle; }
th { background: #f6f8fb; color: #3b475b; }
tr:last-child td { border-bottom: 0; }
.ok-text { color: #137a3d; font-weight: 900; }
.waiting-text { color: #856100; font-weight: 900; }
.draft-card { border: 1px dashed #b7c3d5; border-radius: 8px; background: #fbfcfe; padding: 14px; min-height: 74px; margin-bottom: 14px; }
.draft-title { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 8px; }
.draft-title strong { font-size: 16px; }
.draft-meta { display: flex; flex-wrap: wrap; gap: 8px; color: #536177; }
.draft-meta span { background: #eef2f8; border-radius: 999px; padding: 4px 8px; }
.log-box { min-height: 112px; border-radius: 8px; background: #111827; color: #d1d5db; padding: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.log-line { margin: 4px 0; }
@media (max-width: 1180px) {
	.demo-shell { grid-template-columns: 1fr; }
	.demo-nav { position: static; height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.brand { grid-column: 1 / -1; }
	.progress, .scope-grid, .asset-grid, .guard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.demo-content { padding: 14px; }
	.hero, .panel-head { flex-direction: column; }
	.progress, .scope-grid, .asset-grid, .guard-grid, .form-grid, .form-grid.three, .demo-nav { grid-template-columns: 1fr; }
	h1 { font-size: 24px; }
}
