:root { font-family: "Segoe UI", "Microsoft JhengHei", sans-serif; color: #252a2d; background: #f4f5f5; font-size: 14px; letter-spacing: 0; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border: 1px solid #d8dcde; border-radius: 6px; padding: 8px 14px; background: #fff; color: inherit; cursor: pointer; white-space: nowrap; }
button:hover:not(:disabled) { background: #eef2f2; border-color: #b3c1bf; }
button:disabled { opacity: .38; cursor: not-allowed; }
button:focus-visible, input:focus-visible, canvas:focus-visible { outline: 2px solid #15816e; outline-offset: 3px; }
svg { width: 18px; height: 18px; flex: none; stroke-width: 1.7; }
input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #cdd3d5; border-radius: 5px; background: #fff; color: inherit; }
.primary { background: #18725f; color: #fff; border-color: #18725f; }
.primary:hover:not(:disabled) { background: #125c4d; border-color: #125c4d; }
.quiet { background: transparent; border-color: transparent; }
.icon-button { width: 38px; height: 38px; padding: 0; flex: none; }
.topbar { height: 66px; display: flex; align-items: center; gap: 16px; padding: 0 28px; background: #fff; border-bottom: 1px solid #dfe3e4; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.brand svg { color: #18725f; width: 24px; height: 24px; }
.environment { padding-left: 16px; border-left: 1px solid #dfe3e4; font-size: 12px; color: #6e767b; }
#logout { margin-left: auto; }
.login-view { display: grid; min-height: calc(100dvh - 66px); place-items: center; background: #fff; padding: 32px 24px 100px; }
.login-form { width: 100%; max-width: 340px; display: flex; flex-direction: column; }
.section-label { color: #18725f; font-size: 13px; }
.login-form h1 { margin: 8px 0 32px; font-size: 28px; font-weight: 600; }
.login-form label { margin: 16px 0 8px; font-weight: 500; }
.login-form .primary { justify-content: space-between; width: 100%; min-height: 44px; }
.error { min-height: 20px; color: #b33b3b; font-size: 13px; margin: 12px 0; }
.workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100dvh - 66px); }
.sidebar { border-right: 1px solid #dfe3e4; background: #fafbfb; padding: 22px 16px; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sidebar h1 { font-size: 15px; font-weight: 600; margin: 0 0 0 8px; }
#device-count { font-size: 12px; font-weight: 400; color: #747e81; margin-left: 8px; }
.sidebar-heading .icon-button { border: 0; background: transparent; }
.device-list { display: flex; flex-direction: column; gap: 8px; }
.device-item { text-align: left; width: 100%; padding: 14px 12px; justify-content: flex-start; align-items: flex-start; white-space: normal; }
.device-item[aria-pressed="true"] { border-color: #76a99d; background: #eef7f3; box-shadow: inset 3px 0 #18725f; }
.device-item svg { margin-top: 2px; color: #18725f; }
.device-item .device-copy { min-width: 0; }
.device-title { display: block; font-weight: 600; margin-bottom: 6px; overflow-wrap: anywhere; }
.device-meta { display: block; font-size: 11px; color: #697578; line-height: 1.7; overflow-wrap: anywhere; }
.list-status { color: #7a5b29; font-size: 13px; line-height: 1.6; margin: 16px 8px; }
.control-area { padding: 22px 32px 12px; min-width: 0; }
.control-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; min-height: 48px; }
.control-heading h2 { font-size: 18px; font-weight: 600; margin: 0 0 5px; overflow-wrap: anywhere; }
.device-code { font-size: 12px; color: #798186; overflow-wrap: anywhere; }
.connection { display: flex; align-items: center; gap: 16px; flex: none; }
.status { display: inline-flex; align-items: center; gap: 7px; color: #707b7d; font-size: 12px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a8afb0; }
.status.live::before { background: #19846d; }
.status.live { color: #18725f; }
.display-stage { display: flex; align-items: center; justify-content: center; gap: 20px; min-height: 340px; height: calc(100dvh - 240px); max-height: 1024px; padding: 8px; }
.screen-shell { position: relative; height: 100%; max-width: calc(100% - 58px); aspect-ratio: 9 / 16; background: #141719; border: 1px solid #353a3c; border-radius: 6px; overflow: hidden; }
#screen { display: block; width: 100%; height: 100%; object-fit: contain; touch-action: none; outline-offset: -3px; }
.screen-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; background: #191d1f; color: #9da6a9; font-size: 13px; pointer-events: none; padding: 20px; text-align: center; }
.screen-placeholder svg { width: 32px; height: 32px; color: #657174; }
.phone-tools { display: flex; flex-direction: column; gap: 8px; }
.tool-divider { height: 1px; background: #dce0e1; margin: 7px 2px; }
.bottom-panel { display: flex; gap: 20px; align-items: center; justify-content: center; margin: 14px auto 0; max-width: 640px; }
.text-form { display: flex; gap: 8px; flex: 1; min-width: 0; }
.text-form input { padding: 8px 10px; font-size: 13px; }
.stream-details { font-size: 11px; color: #788387; display: flex; gap: 12px; white-space: nowrap; min-width: 145px; justify-content: flex-end; }
.control-error { min-height: 18px; margin: 8px 0 0; text-align: center; font-size: 12px; color: #a8463d; }
.display-stage:fullscreen { max-height: none; height: 100dvh; background: #1e2325; padding: 20px; }
@media (max-width: 800px) { .workspace { grid-template-columns: 200px minmax(0, 1fr); } .control-area { padding: 18px 16px 10px; } .sidebar { padding: 18px 10px; } .connection { gap: 8px; } .stream-details { display: none; } }
@media (max-width: 600px) { .topbar { height: 58px; padding: 0 16px; gap: 10px; } .brand { font-size: 16px; gap: 6px; } .environment { padding-left: 10px; } #logout { padding: 8px; } #logout span { display: none; } .workspace { display: block; } .sidebar { border-right: 0; border-bottom: 1px solid #dfe3e4; padding: 8px 14px; } .sidebar-heading { margin-bottom: 0; } .sidebar h1 { font-size: 13px; margin-left: 0; } .device-list { flex-direction: row; overflow-x: auto; padding: 0 1px 4px; } .device-item { min-width: 170px; max-width: 230px; padding: 9px 10px; } .device-title { margin-bottom: 2px; font-size: 13px; } .device-meta { font-size: 10px; } .list-status:empty { margin: 0; } .control-area { padding: 14px 14px 10px; } .control-heading { margin-bottom: 8px; gap: 8px; } .control-heading h2 { font-size: 16px; } .connection { flex-direction: column-reverse; align-items: flex-end; gap: 4px; } .connection button { min-height: 34px; padding: 6px 12px; } .status { font-size: 11px; } .display-stage { height: calc(100dvh - 335px); min-height: 300px; gap: 12px; padding: 4px 0; } .screen-shell { max-width: calc(100% - 50px); } .phone-tools { gap: 6px; } .bottom-panel { margin-top: 10px; } .login-view { min-height: calc(100dvh - 58px); } }
.portal-nav { display:flex; gap:4px; margin-left:auto; }
.portal-nav button { border:0; background:transparent; padding:8px 10px; }
.portal-nav button[aria-current="page"] { color:#18725f; background:#eef7f3; }
.muted { color:#697578; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
select { max-width:100%; border:1px solid #cdd3d5; border-radius:5px; padding:8px; background:white; color:inherit; }
.settings-row, .device-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:center; margin-top:12px; }
.settings-row label { display:flex; gap:8px; align-items:center; font-size:12px; }
#feature-status { text-align:center; }
.portal-panel { max-width:1000px; margin:0 auto; padding:28px 24px; }
.portal-panel h1 { font-size:24px; margin-top:0; }
.panel-card { background:white; border:1px solid #dfe3e4; border-radius:8px; padding:22px; margin-bottom:20px; }
.panel-card h2 { font-size:16px; margin:0 0 14px; }
.panel-card form { display:grid; gap:10px; max-width:520px; }
.panel-card label { font-size:13px; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.section-heading h2 { margin:0; }
.record-list { display:grid; gap:10px; }
.record { padding:12px 0; border-bottom:1px solid #e8ebeb; overflow-wrap:anywhere; }
.record strong, .record span { display:block; }
.record span { margin-top:4px; font-size:12px; color:#697578; }
.inline-form { display:flex !important; gap:8px; }
dialog { border:1px solid #dfe3e4; border-radius:10px; width:min(440px,calc(100% - 32px)); padding:24px; }
dialog::backdrop { background:#17272588; }
dialog h2 { margin-top:0; font-size:19px; }
.dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.fullscreen-fallback { position:fixed; inset:0; z-index:100; background:#1e2325; height:100dvh !important; max-height:none; }
@media(max-width:600px) { .topbar { flex-wrap:wrap; height:auto; min-height:58px; padding-top:10px; padding-bottom:10px; } .portal-nav { order:3; width:100%; margin:0; } .portal-nav button { flex:1; } .environment { font-size:10px; } .phone-tools { gap:4px; } .phone-tools .icon-button { width:34px; height:34px; min-height:34px; } .tool-divider { margin:2px; } .portal-panel { padding:22px 14px; } .panel-card { padding:16px; } .device-actions button { padding:7px 10px; font-size:12px; } }
