:root { font-family: "Segoe UI", "Malgun Gothic", Arial, sans-serif; color: #102a5c; background: #f4f7ff; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { border: 0; border-radius: 6px; background: #2563eb; color: #fff; padding: 10px 16px; cursor: pointer; font-weight: 700; box-shadow: 0 2px 5px #1d4ed826; }
button:hover { background: #1d4ed8; }
button:disabled { opacity: .6; cursor: wait; }
input, select { border: 1px solid #cbdaf6; border-radius: 5px; padding: 9px 10px; color: #102a5c; background: #fff; }
.mark { color: #fff; display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; background: #2563eb; font-size: 13px; font-weight: 800; letter-spacing: -.5px; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: linear-gradient(135deg, #e8f0ff, #f9fbff); }
.login-card { width: min(100%, 410px); overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 14px 40px #1e40af24; }
.login-brand { height: 105px; display: flex; align-items: center; gap: 8px; padding: 22px 25px; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; font-size: 30px; }
.login-brand .mark { background: transparent; border: 2px solid #fff; }
.login-brand small { align-self: flex-end; margin: 0 0 8px 4px; font-size: 10px; letter-spacing: 1px; }
.notice { margin: 0; padding: 16px 24px; background: #eef4ff; font-size: 13px; }
.notice p { margin: 7px 0 0; color: #516582; }
.login-form, .user-form { display: grid; gap: 12px; padding: 24px; }
.login-form label, .user-form label { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 10px; font-size: 14px; }
.login-form button { margin-top: 5px; height: 48px; font-size: 17px; }
.login-card footer { background: #163d80; color: #fff; text-align: center; padding: 11px; font-size: 12px; }
.form-error { min-height: 18px; margin: -3px 0 0; color: #c03636; font-size: 13px; }
.remote-body { min-height: 100vh; background: linear-gradient(135deg, #f9fbff 0%, #e8f0ff 100%); color: #102a5c; }
.remote-body.session-connected { background: #101827; color: #eff6ff; }
.remote-header, .admin-header { display: flex; align-items: center; gap: 16px; min-height: 66px; padding: 10px 18px; background: #fff; color: #102a5c; box-shadow: 0 1px 7px #1e3a8a1c; }
.remote-brand { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 21px; }
.remote-brand small { color: #64748b; font-size: 12px; font-weight: 400; }
.connect-form { display: flex; gap: 10px; width: 100%; }
.connect-form input { min-width: 0; flex: 1; }
.connect-form button { white-space: nowrap; }
.remote-header select { min-width: 150px; }
.account-menu { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; white-space: nowrap; }
a { color: #1d4ed8; text-decoration: none; font-weight: 700; }
.text-button { background: transparent; box-shadow: none; color: #52637b; padding: 6px 2px; font-weight: 500; }
.text-button:hover { background: transparent; color: #1d4ed8; }
.connection-hero { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 20px 10vh; }
.connection-card { width: min(100%, 620px); overflow: hidden; padding: 0 36px 30px; border: 1px solid #cbdaf6; border-radius: 12px; background: #fff; box-shadow: 0 18px 48px #1d4ed824; text-align: center; }
.connection-card-brand { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0 -36px 28px; padding: 20px; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; font-size: 22px; }
.connection-card-brand .mark { border: 2px solid #fff; background: transparent; }
.connection-card h1 { margin: 0 0 9px; font-size: 26px; }
.connection-card > p { margin: 0 0 24px; color: #5b6b84; }
.connection-card .connect-form input, .connection-card .connect-form button { height: 52px; }
.connection-card .connect-form input { font-size: 18px; letter-spacing: 2px; padding: 0 16px; }
.connection-card .connect-form button { min-width: 128px; font-size: 16px; }
.connection-status { min-height: 20px; margin-top: 15px; color: #64748b; font-size: 13px; }
.screens { display: none; flex-direction: column; gap: 14px; padding: 14px; }
.session-connected .connection-hero { display: none; }
.session-connected .screens { display: flex; }
.screen-card { overflow: hidden; border: 1px solid #334155; border-radius: 7px; background: #000; }
.screen-title { padding: 8px 12px; background: #1e293b; font-size: 13px; color: #dbeafe; }
.screen-stage { min-height: 340px; height: min(70vh, 720px); background: #000; outline: none; }
.screen-frame { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.admin-body { min-height: 100vh; background: #f4f7ff; }
.admin-header nav { display: flex; gap: 18px; align-items: center; margin-left: auto; }
.admin-main { max-width: 1200px; margin: 0 auto; padding: 36px 20px; }
.admin-intro h1 { margin: 0 0 8px; font-size: 25px; }.admin-intro p { margin: 0 0 24px; color: #60718a; }
.admin-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.panel { border: 1px solid #d6e2f8; border-radius: 9px; background: #fff; box-shadow: 0 3px 8px #1e3a8a14; }
.panel h2 { margin: 0; font-size: 17px; }.user-form h2 { margin-bottom: 7px; }
.user-form { padding: 22px; }.user-form label { grid-template-columns: 1fr; gap: 6px; }.user-form label.check { display: flex; align-items: center; gap: 8px; }.user-form .check input { width: 16px; height: 16px; }.user-form small { color: #718096; font-size: 12px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #e1eaf9; }.secondary { background: #e9f1ff; color: #214a99; box-shadow: none; }.secondary:hover { background: #dbeafe; }
.users-panel > .form-error { padding: 0 20px; }.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; font-size: 14px; }th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid #e5ecf8; }th { color: #718096; font-size: 12px; background: #f8faff; }td:last-child { text-align: right; }.status-active { color: #167242; }.status-inactive { color: #a0424c; }.role { display: inline-block; padding: 3px 7px; border-radius: 10px; background: #dbeafe; color: #1d4ed8; font-size: 12px; }.role.admin { background: #e7e4ff; color: #5644af; }
.stream-settings-panel { margin-top: 20px; }.stream-settings-panel .panel-title p { margin: 5px 0 0; color: #60718a; font-size: 13px; }.stream-settings-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end; padding: 20px; }.stream-settings-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }.stream-settings-actions { display: grid; gap: 5px; }.stream-settings-actions button { white-space: nowrap; }.stream-settings-actions .form-error { margin: 0; }.form-success { color: #167242; }
dialog { width: min(94vw, 420px); border: 0; border-radius: 9px; box-shadow: 0 10px 40px #17255466; padding: 0; }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }
.download-action { display: block; margin-top: 14px; color: #1d4ed8; font-weight: 700; text-align: center; }
.download-action[hidden] { display: none; }
@media (max-width: 780px) { .remote-header { flex-wrap: wrap; }.remote-header select { flex: 1; }.account-menu { margin-left: auto; }.connection-hero { padding: 24px 14px 8vh; }.connection-card { padding: 0 20px 24px; }.connection-card-brand { margin: 0 -20px 24px; }.connection-card .connect-form { flex-direction: column; }.admin-grid, .stream-settings-form { grid-template-columns: 1fr; }.admin-main { padding: 24px 13px; } }
