:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --ink: #f4f1e8; --muted: #999c9b; --panel: #151817; --line: #2b302e; --green: #8fc7a8; --amber: #f1ad64; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 50% -20%, #314039 0, #171b19 35%, #0b0d0c 72%); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .4; }
.button-link { display: inline-grid; place-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-weight: 650; text-decoration: none; white-space: nowrap; }
.shell { width: min(1040px, calc(100% - 32px)); margin: auto; padding: 54px 0 30px; }
header { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.055em; font-weight: 650; }
h2 { margin-bottom: 0; font-size: 1.4rem; letter-spacing: -.025em; }
header > div > p:last-child { color: var(--muted); }
.eyebrow { margin-bottom: 10px; color: var(--green); font-size: .69rem; font-weight: 750; letter-spacing: .18em; }
.door-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 20px; }
.integration-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding: 20px; border: 1px solid #345943; border-radius: 14px; background: rgba(20,39,29,.82); }
.integration-card h2 { margin-bottom: 7px; }
.integration-card p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); line-height: 1.5; }
.integration-card code { padding: 2px 5px; border-radius: 5px; color: #d7ded9; background: #0c100e; }
.integration-card .callback { display: grid; gap: 6px; margin-top: 14px; }
.integration-card .callback code { display: block; overflow-wrap: anywhere; }
.door-card { padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(28,32,30,.96), rgba(16,18,17,.96)); box-shadow: 0 18px 55px rgba(0,0,0,.24); }
.door-visual { display: grid; place-items: center; height: 180px; margin-bottom: 21px; overflow: hidden; border: 1px solid #313633; border-bottom-width: 7px; border-radius: 10px 10px 4px 4px; background: #0d0f0e; }
.door-lines { width: 78%; height: 68%; border: 5px solid #777e7a; background: repeating-linear-gradient(to bottom, #303532 0, #303532 22%, #202422 22%, #202422 25%); transition: transform .4s; }
.door-card.open .door-lines { transform: translateY(-72%); }
.door-card.opening .door-lines, .door-card.closing .door-lines { transform: translateY(-36%); }
.door-card.unavailable .door-lines { opacity: .3; }
.door-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.door-meta .eyebrow { margin-bottom: 6px; }
.state { padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .75rem; }
.open .state { border-color: #664722; color: var(--amber); background: #261d13; }
.closed .state { border-color: #28513c; color: var(--green); background: #13241b; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action, .primary, .warning, .danger, .quiet { min-height: 44px; padding: 10px 16px; border-radius: 9px; border: 1px solid var(--line); color: var(--ink); background: #222624; font-weight: 650; }
.action:hover, .quiet:hover { background: #2c312f; }
.open-action { border-color: #5f4529; color: #ffc17d; }
.close-action, .primary { border-color: #3d795a; background: #24523a; color: #eafff2; }
.warning { border-color: #99622d; background: #77491f; }
.danger { border-color: #84433e; background: #672d29; }
.quiet { min-height: 38px; background: transparent; color: #c8ccc9; }
.notice { margin-bottom: 20px; padding: 13px 15px; border: 1px solid #713d39; border-radius: 10px; color: #ffc4be; background: #321a18; }
.notice.success { border-color: #28513c; color: #b8f0d0; background: #13241b; }
.error { color: #ffaca4; }
.compact { margin-top: -10px; font-size: .82rem; }
footer { padding: 24px 2px; color: #717673; font-size: .8rem; }
.pulse { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.login-body { display: grid; place-items: center; padding: 20px; }
.login-card { width: min(420px, 100%); padding: 35px; border: 1px solid var(--line); border-radius: 20px; background: rgba(21,24,23,.96); box-shadow: 0 30px 80px rgba(0,0,0,.38); }
.login-card h1 { font-size: 2.25rem; }
.login-card > p { color: var(--muted); line-height: 1.55; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 28px; border: 1px solid #49735d; border-radius: 12px; color: var(--green); background: #183025; font-weight: 800; }
label { display: grid; gap: 8px; margin: 26px 0 14px; color: #c8ccc9; font-size: .82rem; font-weight: 650; }
input { width: 100%; padding: 13px; border: 1px solid #3a413e; border-radius: 9px; outline: none; color: var(--ink); background: #0c0e0d; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(143,199,168,.12); }
.login-card button { width: 100%; }
.login-card .button-link { width: 100%; margin-top: 10px; }
dialog { width: min(450px, calc(100% - 30px)); padding: 27px; border: 1px solid #3b403e; border-radius: 17px; color: var(--ink); background: #171a19; box-shadow: 0 28px 80px #000; }
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
dialog p:not(.eyebrow) { color: var(--muted); line-height: 1.5; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
@media (max-width: 520px) { .shell { padding-top: 30px; } .door-visual { height: 145px; } .login-card { padding: 26px; } .integration-card { align-items: stretch; flex-direction: column; } }
