:root{color-scheme:dark;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;background:#101114;color:#f5f4ef;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 82% 4%,#262218 0,#101114 34%,#101114 100%)}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}
.app-shell{max-width:1100px;margin:0 auto;padding:30px 28px 24px}.app-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:29px}.brand{display:flex;align-items:center;gap:16px}.brand-mark{width:48px;height:48px;border-radius:14px;background:#17191d;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #383329}.brand-mark span{width:11px;height:16px;border-radius:50%;background:#e9ca7e;box-shadow:0 0 12px #e9ca7e45}.eyebrow{margin:0 0 5px;font-size:11px;line-height:1.3;letter-spacing:.2em;color:#c9a96a;font-weight:700}.app-header h1,.login-panel h1{font-size:25px;line-height:1.25;letter-spacing:-.02em;margin:0;font-weight:640}.text-button{background:none;border:0;color:#aaa9a5;padding:10px 0}.text-button:hover{color:#fff}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:stretch}.compose-panel,.preview-panel,.key-panel{border:1px solid #2a2c31;background:#18191d;border-radius:20px;box-shadow:0 16px 35px #0002}.compose-panel{padding:24px;display:flex;flex-direction:column}.preview-panel{padding:24px;display:flex;flex-direction:column;align-items:center}.section-head{width:100%;display:flex;align-items:baseline;justify-content:space-between;margin-bottom:16px}.section-head h2,.key-panel h2{font-size:18px;line-height:1.3;margin:0;font-weight:600}.section-head span{color:#98999c;font-size:12px;font-variant-numeric:tabular-nums}
textarea{width:100%;min-height:193px;resize:vertical;border:1px solid #383a3f;border-radius:13px;background:#111216;color:#f6f5f1;padding:18px 19px;font-size:18px;line-height:1.55;outline:none;transition:border-color .15s,box-shadow .15s}textarea:focus,input:focus{border-color:#cba962;box-shadow:0 0 0 3px #cba96225}textarea::placeholder{color:#777a80}.help,.preview-note{font-size:12px;line-height:1.55;color:#9d9ea1;margin:11px 0 0}.compose-actions{display:flex;align-items:center;gap:15px;margin:18px 0 20px}.primary{border:1px solid #f3d591;border-radius:11px;color:#191713;background:#e7c982;padding:11px 17px;font-weight:700;white-space:nowrap}.primary:hover:not(:disabled){background:#f3d792}.primary span{font-size:16px;margin-left:5px}.secondary{border:1px solid #504936;border-radius:10px;color:#eddbac;background:#27241e;padding:10px 14px;white-space:nowrap}.secondary:hover{background:#342d20}#action-message{font-size:12px;color:#b7b7b8;line-height:1.4}.error,#action-message.error{color:#ffaeab}
.status-panel{border-top:1px solid #303137;padding-top:16px;display:grid;gap:11px;margin-top:auto}.status-line{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;line-height:1.35}.status-label{color:#8f9195}.status-value{text-align:right;color:#dbdbd8;font-variant-numeric:tabular-nums}.status-dot{display:inline-block;width:7px;height:7px;border-radius:100%;background:#777;margin-right:7px;vertical-align:1px}.status-value.online .status-dot{background:#83cda6;box-shadow:0 0 0 3px #83cda627}.status-value.offline .status-dot{background:#8d8f94}
.screen-frame{border:10px solid #0b0b0d;border-radius:29px;padding:0;line-height:0;width:260px;height:300px;box-shadow:0 0 0 1px #49494c,0 20px 30px #0005;overflow:hidden;flex:none}.screen-frame img{display:block;width:240px;height:280px;image-rendering:auto}.preview-note{text-align:center;margin-top:15px}
.key-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 22px;margin-top:20px;padding:22px 24px}.key-panel .muted{margin:9px 0 0;max-width:720px}.muted{font-size:13px;line-height:1.6;color:#98999d}.key-result{grid-column:1/-1;background:#101114;border:1px solid #49402d;border-radius:12px;padding:15px;overflow-wrap:anywhere}.key-result code{font-family:Consolas,monospace;color:#f1db9f;font-size:15px;display:block;margin-bottom:13px}.key-warning{font-size:12px;color:#e6bd72;margin:0 0 8px}footer{color:#77797d;font-size:11px;margin-top:19px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pair-code-result{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 16px;background:linear-gradient(110deg,#272216,#18191d);border:1px solid #765e32;border-radius:13px;padding:18px 20px}.pair-code-result[hidden],.key-result[hidden]{display:none}.pair-caption{display:block;color:#bcb5a5;font-size:12px;margin-bottom:6px}.pair-code-result code{display:block;color:#f2d68f;font:700 34px/1.25 Consolas,monospace;letter-spacing:.16em;white-space:nowrap}.pair-countdown{font:600 17px/1 Consolas,monospace;color:#f0d699;padding:8px 10px;border:1px solid #6f5c38;border-radius:8px}.pair-note{grid-column:1/-1;margin:0;color:#b8a987;font-size:12px;line-height:1.5}.pair-status{grid-column:1/-1;margin:0!important}.manual-panel{grid-column:1/-1;border-top:1px solid #333238;padding-top:15px}.manual-panel summary{cursor:pointer;color:#c3b79a;font-size:13px}.manual-panel summary:hover{color:#f3d792}.manual-panel p{margin:10px 0!important}.manual-panel .key-result{margin-top:12px}
.login-body{display:grid;place-items:center;padding:22px}.login-panel{width:min(100%,390px);background:#191a1e;border:1px solid #343339;border-radius:20px;padding:32px;box-shadow:0 20px 45px #0005}.login-panel .brand-mark{margin-bottom:20px}.login-panel .muted{margin:11px 0 25px}.login-form{display:grid;gap:10px}.login-form label{font-size:13px;color:#b7b7b8}.login-form input{background:#111216;color:#fff;border:1px solid #3b3c41;border-radius:10px;padding:12px;outline:none}.login-form button{margin-top:8px}
@media(max-width:710px){.app-shell{padding:20px 16px}.app-header{margin-bottom:20px}.app-header h1{font-size:21px}.workspace{grid-template-columns:1fr;gap:16px}.compose-panel,.preview-panel{padding:18px}.compose-panel textarea{min-height:120px}.compose-actions{margin:14px 0}.preview-panel{padding-bottom:19px}.key-panel{grid-template-columns:1fr;padding:19px}.key-panel button{justify-self:start}.key-result{grid-column:1}.pair-code-result{grid-column:1;padding:16px}.pair-code-result code{font-size:29px;letter-spacing:.12em}.pair-note{grid-column:1/-1}.brand-mark{width:43px;height:43px}.section-head{margin-bottom:12px}}
