* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #000;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select {
    font: inherit;
}

.intro-body {
    background: #000;
}

.intro-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.intro-card {
    width: 300px;
    text-align: center;
}

.editra-logo {
    color: #fff;
    font-size: 48px;
    letter-spacing: -0.06em;
    line-height: 1;
    margin-bottom: 34px;
    font-weight: normal;
}

.login-form {
    display: grid;
    gap: 10px;
}
.login-form input,
.login-form button,
.login-form .join-link,
.admin-form input,
.admin-form button,
.admin-form select,
.admin-row button,
.record-button {
    border: 1px solid #fff;
    border-radius: 0;
    background: #000;
    color: #fff;
    padding: 11px 12px;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: block;
}
.login-form button,
.login-form .join-link,
.admin-form button,
.admin-row button,
.record-button {
    cursor: pointer;
}

.login-error {
    color: #fff;
    font-size: 13px;
    margin-bottom: 8px;
}

.room-list {
    display: grid;
    gap: 14px;
}

.room-link,
.admin-link,
.logout-link {
    color: #fff;
    text-decoration: none;
    border: 1px solid #fff;
    padding: 12px;
    display: block;
}

.logout-link,
.admin-link {
    opacity: 0.6;
}

.camera-body {
    overflow: hidden;
    background: #000;
}

.camera-header {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    pointer-events: none;
}

.camera-brand {
    font-size: 14px;
    color: #fff;
    pointer-events: auto;
}

.camera-status-wrap {
    font-size: 14px;
    color: #fff;
    pointer-events: auto;
}

.record-button {
    width: auto;
    min-width: 100px;
    padding: 8px 12px;
}

.record-button.is-recording {
    background: #fff;
    color: #000;
}

.camera-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    width: 100vw;
}

.video-pane {
    position: relative;
    overflow: hidden;
    background: #000;
}

.video-pane video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    filter: contrast(1.08) saturate(0.85);
}

.video-pane:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    box-shadow: inset 0 0 140px rgba(0,0,0,0.45);
}

.video-label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 3;
    font-size: 12px;
    opacity: 0.65;
}

.admin-body {
    background: #000;
    color: #fff;
}

.admin-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 18px;
}

.admin-wrap h1,
.admin-wrap h2 {
    font-weight: normal;
}

.admin-section {
    border-top: 1px solid #333;
    padding: 24px 0;
}

.admin-form {
    display: grid;
    gap: 10px;
    max-width: 420px;
}

.check-label {
    display: flex;
    gap: 8px;
    align-items: center;
}

.check-label input {
    width: auto;
}

.admin-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    border-top: 1px solid #222;
    padding: 12px 0;
}

.admin-row a {
    color: #fff;
}

.admin-row form {
    margin: 0;
}

.admin-row button {
    width: auto;
}


.stop-recording-form {
    max-width: 420px;
}

.danger-button {
    border: 1px solid #ed2224;
    color: #fff;
    background: #ed2224;
    padding: 11px 12px;
    width: 100%;
    cursor: pointer;
    border-radius: 0;
}



.editra-logo svg {
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.login-form .join-link:hover,
.room-link:hover,
.admin-link:hover,
.logout-link:hover,
.record-button:hover,
.admin-form button:hover,
.admin-row button:hover {
    background: #fff;
    color: #000;
}


.intro-body .login-form a.join-link,
.intro-body .login-form a.join-link:link,
.intro-body .login-form a.join-link:visited {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #fff !important;
    border-radius: 0 !important;
    background: #000 !important;
    color: #fff !important;
    padding: 11px 12px !important;
    text-align: center !important;
    text-decoration: none !important;
    font: inherit !important;
}

.intro-body .login-form a.join-link:hover {
    background: #fff !important;
    color: #000 !important;
}

.camera-status-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}
.camera-admin-link {
    display: inline-block;
    border: 0;
    border-radius: 0;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    min-width: 100px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    box-sizing: border-box;
}

.camera-admin-link:hover {
    background: #fff;
    color: #000;
}

.camera-grid {
    display: grid;
    height: 100vh;
    width: 100vw;
    gap: 0;
}

.camera-grid-equal {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    grid-auto-rows: minmax(220px, 1fr);
}

.camera-grid-focus {
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: 1fr;
}

.camera-grid-focus .video-pane {
    min-height: 0;
}

.camera-grid-focus .video-pane.is-main {
    grid-row: 1 / -1;
}

.camera-grid-focus .video-pane:not(.is-main) {
    min-height: 0;
}

.video-pane {
    cursor: pointer;
}

.video-pane.is-main:after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.65);
    pointer-events: none;
    z-index: 4;
}

.layout-toggle {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 20;
    display: flex;
    gap: 8px;
    pointer-events: auto;
}

.layout-button {
    width: 38px;
    height: 38px;
    border: 1px solid #fff;
    border-radius: 0;
    background: #000;
    color: #fff;
    cursor: pointer;
    font-size: 19px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout-button:hover,
.layout-button.is-active {
    background: #fff;
    color: #000;
}


.layout-toggle {
    position: fixed !important;
    right: 12px !important;
    bottom: 12px !important;
    z-index: 9999 !important;
    display: flex !important;
    gap: 8px !important;
    pointer-events: auto !important;
}

.layout-button {
    width: 38px;
    height: 38px;
    border: 1px solid #fff;
    border-radius: 0;
    background: #000;
    color: #fff;
    cursor: pointer;
    font-size: 19px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout-button:hover,
.layout-button.is-active {
    background: #fff;
    color: #000;
}


.icon-solid-square {
    width: 16px;
    height: 16px;
    display: block;
    background: currentColor;
}

.icon-grid-four {
    width: 17px;
    height: 17px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
}

.icon-grid-four span {
    display: block;
    background: currentColor;
}


