:root{--bg: #0f1419;--panel: #1a2129;--line: #2a3441;--fg: #e6edf3;--dim: #8b98a5;--accent: #4c9aff;--ok: #3fb950;--warn: #d29922;--err: #f85149;font-family:PingFang SC,Microsoft YaHei,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--fg)}#root{max-width:1100px;margin:0 auto;padding:16px}h1{font-size:20px}h2{font-size:16px;margin:8px 0}a{color:var(--accent);text-decoration:none}.topbar{display:flex;align-items:center;gap:16px;margin-bottom:16px}.topbar .spacer{flex:1}.tabs{display:flex;gap:4px}.tabs button{background:none;border:1px solid transparent;color:var(--dim);padding:6px 14px;cursor:pointer;border-radius:6px;font-size:14px}.tabs button.active{color:var(--fg);border-color:var(--line);background:var(--panel)}.card{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:14px;margin-bottom:14px}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:7px 10px;border-bottom:1px solid var(--line)}th{color:var(--dim);font-weight:500}tr:last-child td{border-bottom:none}button.act{background:var(--accent);color:#06131f;border:none;padding:6px 12px;border-radius:6px;cursor:pointer;font-size:13px;margin-right:6px}button.act.danger{background:var(--err);color:#fff}button.act.ghost{background:none;border:1px solid var(--line);color:var(--fg)}button.act:disabled{opacity:.4;cursor:not-allowed}input,select{background:var(--bg);color:var(--fg);border:1px solid var(--line);border-radius:6px;padding:6px 10px;font-size:13px}label{color:var(--dim);font-size:13px;margin-right:6px}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0}.badge{display:inline-block;padding:1px 8px;border-radius:10px;font-size:12px;border:1px solid var(--line)}.badge.on{color:var(--ok);border-color:var(--ok)}.badge.off{color:var(--err);border-color:var(--err)}.badge.ask{color:var(--warn);border-color:var(--warn)}.badge.live{color:var(--ok);border-color:var(--ok)}.badge.dead{color:var(--dim)}.err{color:var(--err);font-size:13px;white-space:pre-wrap}.note{color:var(--warn);font-size:13px}.mono{font-family:ui-monospace,monospace;font-size:12px}img.shot{max-width:100%;border:1px solid var(--line);border-radius:6px}.screen-preview{margin-bottom:24px;border:1px solid #3c4a58;border-radius:14px;overflow:clip;background:#121a22;box-shadow:0 14px 38px #0004}.screen-header{display:flex;align-items:center;gap:20px;padding:20px 24px;border-bottom:1px solid var(--line)}.screen-header>div:first-child{flex:1}.screen-header h2{margin:6px 0 0;font-size:22px;font-weight:650;letter-spacing:.02em}.screen-eyebrow,.control-section-label{color:#8caaae;font-size:11px;letter-spacing:.12em}.screen-live-state{display:flex;align-items:center;gap:8px;color:var(--dim);font-size:12px}.live-dot{width:7px;height:7px;border-radius:50%;background:#647280}.live-dot.on{background:#69d7ba;box-shadow:0 0 0 4px #69d7ba18}.screen-session-bar{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:18px;padding:14px 24px;background:#1a2730;border-bottom:1px solid var(--line)}.screen-session-bar>div{flex:1;display:flex;align-items:center;gap:16px}.screen-session-bar strong{color:#a5c9cc;font-size:13px;white-space:nowrap}.screen-session-bar span{color:var(--dim);font-size:12px}.is-controlled .screen-session-bar{background:#32251f;border-bottom-color:#73503b}.is-controlled .screen-session-bar strong{color:#ffc59d}.screen-workspace{display:grid;grid-template-columns:minmax(0,1fr) 248px;min-height:460px}.screen-stage{min-width:0;min-height:460px;height:70vh;max-height:850px;position:relative;display:flex;align-items:center;justify-content:center;padding:22px;overflow:hidden;background:radial-gradient(ellipse at center,#1c2a32,#0b1117 75%)}.phone-screen{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:5px;box-shadow:0 10px 35px #0008;outline-offset:5px;touch-action:auto}.phone-screen[width="0"]{display:none}.phone-screen.interactive{cursor:crosshair;touch-action:none;outline:1px solid #b47d55}.phone-screen:focus-visible{outline:2px solid var(--accent)}.screen-placeholder{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;padding:20px;color:var(--dim);text-align:center;font-size:13px}.screen-placeholder strong{color:#c4d1dc;font-weight:500}.placeholder-device{width:74px;height:118px;border:2px solid #3c5262;border-radius:13px;margin-bottom:12px;position:relative}.placeholder-device:after{content:"";position:absolute;top:7px;left:27px;width:16px;height:3px;border-radius:3px;background:#3c5262}.screen-controls{padding:24px 20px;border-left:1px solid var(--line);background:#18222b}.control-section-label{margin:0 0 13px}.phone-navigation{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:28px}.phone-navigation button{display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px 2px;color:#c7d8e3;background:#24333e;border:1px solid #3a4b59;border-radius:7px;font-size:10px;cursor:pointer}.phone-navigation button span{font-size:21px;line-height:24px}.phone-navigation button:disabled,.screen-controls button:disabled{opacity:.35;cursor:not-allowed}.screen-help,.screen-safety{font-size:12px;line-height:1.8;color:var(--dim);margin:0 0 12px}.screen-controls textarea{width:100%;resize:vertical;min-height:90px;color:var(--fg);background:#101a22;border:1px solid #3a4b59;border-radius:7px;padding:11px;font:inherit;font-size:13px}.screen-controls textarea:disabled{opacity:.45}button.send-text{width:100%;margin:10px 0 30px;padding:9px}.screen-instructions{padding-left:17px;color:var(--dim);font-size:12px;line-height:2;margin:0 0 26px}.screen-safety{border-top:1px solid var(--line);padding-top:14px;color:#a4b3ba}.screen-footer{display:flex;gap:24px;color:#8195a2;font-size:11px;font-variant-numeric:tabular-nums;padding:12px 24px;border-top:1px solid var(--line)}.screen-footer span:last-child{margin-left:auto}.device-power{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px}.screen-preview>.device-power{display:flex;padding:10px 24px;border-bottom:1px solid var(--line)}.screen-diagnostics{padding:12px 24px;color:var(--dim);font-size:12px;border-top:1px solid var(--line)}.screen-diagnostics summary{cursor:pointer}.screen-diagnostics dl{display:flex;flex-wrap:wrap;gap:16px 28px;font-variant-numeric:tabular-nums}.screen-diagnostics dt{margin-bottom:5px}.screen-diagnostics dd{margin:0;color:var(--fg)}.screen-error{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 24px;color:#ffc6bd;background:#4e292780;font-size:13px}.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}.profiles-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:25px 26px;margin-bottom:14px;border:1px solid #36504e;border-radius:10px;background:linear-gradient(110deg,#1e3437,#1b2831 64%,#1a222b)}.profiles-hero h2{margin:8px 0;font-size:22px;letter-spacing:.02em}.profiles-hero p{margin:0;color:#a4b7bb;font-size:13px;line-height:1.6}.profiles-kicker{color:#87b7aa;font-size:10px;font-weight:700;letter-spacing:.14em}.profiles-identity{color:#bfe4d5;border:1px solid #57786f;border-radius:20px;padding:5px 12px;font-size:12px;white-space:nowrap}.profiles-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.profiles-grid>.card{min-width:0}.profiles-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.profiles-section-heading h2{margin:7px 0}.profiles-intro,.profiles-muted,.profiles-meta{font-size:12px;line-height:1.7;color:var(--dim)}.profiles-intro{margin:6px 0 15px}.profiles-meta{color:#a5bfb6}.profiles-status{color:#a5dfc4;font-size:13px;line-height:1.7}.profile-template{padding:14px 0;border-top:1px solid var(--line)}.profile-template strong,.profile-choice strong{font-size:14px}.profile-template small,.profile-choice small{display:block;margin-top:5px;color:var(--dim);font-size:11px}.profile-permissions,.profile-presets{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.profile-code{font:11px ui-monospace,monospace;color:#b1d4cd;background:#213a38;padding:4px 7px;border-radius:4px;overflow-wrap:anywhere}.profile-presets button.act{margin:0;font:11px ui-monospace,monospace}.profiles-field{display:block;margin:14px 0 6px;color:var(--dim);font-size:12px}.profiles-input,.profiles-constraints{width:100%}.profiles-constraints{display:block;min-height:48px;resize:vertical;background:var(--bg);color:var(--fg);border:1px solid var(--line);border-radius:6px;padding:8px;margin-top:6px}.profile-entry{margin:12px 0;padding:11px;background:#141c22;border:1px solid var(--line);border-radius:6px}.profile-entry .row input{flex:1;min-width:160px}.profile-entry label{line-height:1.5}.profiles-assignment-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px}.profiles-assignment-form label{display:flex;flex-direction:column;gap:7px}.profiles-assignment-form select{min-width:170px}.profile-choice{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.profile-choice-list{margin-bottom:12px}.permission-list{border-top:1px solid var(--line)}.permission-item{padding:14px 0;border-bottom:1px solid var(--line)}.permission-item-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.permission-item-heading code{color:#b9e5d6;overflow-wrap:anywhere}.permission-rule{margin:8px 0;color:#bac7cb;font-size:12px;overflow-wrap:anywhere}.permission-observation{display:flex;flex-wrap:wrap;gap:5px 16px;margin:8px 0 0;color:var(--dim);font-size:12px;line-height:1.6}@media (max-width: 720px){.screen-header{padding:16px;gap:10px;flex-wrap:wrap}.screen-session-bar{padding:12px 16px}.screen-session-bar>div{align-items:flex-start;flex-direction:column;gap:5px}.screen-workspace{grid-template-columns:1fr}.screen-stage{height:60vh;min-height:320px;padding:16px}.screen-controls{border-left:none;border-top:1px solid var(--line)}.screen-footer{padding:12px 16px;gap:12px}.topbar{flex-wrap:wrap;gap:8px}.tabs{flex-wrap:wrap}.profiles-grid{grid-template-columns:minmax(0,1fr)}.profiles-hero{padding:18px;align-items:flex-start;flex-direction:column}.profiles-assignment-form,.profiles-assignment-form label{align-items:stretch;width:100%}.profile-choice{align-items:flex-start;flex-wrap:wrap}table{display:block;overflow-x:auto}}
