:root {
    --navy: #0a0a0f;
    --blue: #5b9aff;
    --pale: #14141c;
    --ink: #e8eaef;
    --muted: #8b92a5;
    --line: #2a2a38;
    --surface: #14141c;
    --surface-2: #1c1c28;
    --bg: #08080c
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg)
}

button,
input {
    font: inherit
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px
}

.login-shell {
    width: min(1000px, 92vw);
    min-height: 580px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4)
}

.brand-panel {
    padding: 72px 62px;
    color: #fff
}

.brand-mark,
.mini-mark {
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: 1px
}

.brand-mark {
    width: 74px;
    height: 74px;
    border: 2px solid rgba(91, 154, 255, 0.45);
    border-radius: 50%;
    font-size: 20px
}

.eyebrow {
    margin: 0;
    color: #6b7590;
    font-size: 12px;
    letter-spacing: 1.4px
}

.brand-panel .eyebrow {
    margin-top: 42px;
    color: #6b7590
}

.brand-panel h1 {
    font-size: 34px;
    margin: 10px 0 16px
}

.brand-panel>p:not(.eyebrow) {
    line-height: 1.9;
    color: #a0a8be
}

.brand-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 50px 0 16px
}

.brand-panel small {
    color: #6b7590
}

.login-panel {
    padding: 72px 62px
}

.login-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px
}

.mini-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e6f0ff;
    color: #1764c4;
    font-size: 12px
}

.login-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px
}

.login-heading h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted)
}

.login-heading h2 {
    margin: 4px 0 0;
    font-size: 25px;
    color: var(--ink)
}

form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 19px 0 8px
}

input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: var(--surface-2);
    color: var(--ink)
}

input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(91, 154, 255, 0.15)
}

button {
    border: 0;
    cursor: pointer
}

form button {
    width: 100%;
    margin-top: 27px;
    padding: 13px;
    background: var(--blue);
    color: #fff;
    border-radius: 8px;
    font-weight: 700
}

.error {
    min-height: 20px;
    color: #f07070;
    font-size: 13px
}

.demo-tip {
    margin-top: 28px;
    padding: 12px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 13px;
    border: 1px solid var(--line)
}

.app-body {
    display: flex;
    min-height: 100vh;
    background: var(--bg)
}

.sidebar {
    width: 250px;
    background: var(--navy);
    color: #fff;
    padding: 28px 18px;
    position: fixed;
    inset: 0 auto 0 0;
    border-right: 1px solid var(--line)
}

.side-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    padding: 0 12px 30px
}

.side-logo span {
    font-size: 12px;
    padding: 9px 5px;
    border: 1px solid #a6caff;
    border-radius: 7px
}

.side-logo small {
    display: block;
    font-weight: 400;
    font-size: 11px;
    color: #5a6070;
    margin-top: 3px
}

nav a {
    display: block;
    color: #8b92a5;
    text-decoration: none;
    padding: 13px 14px;
    margin: 5px 0;
    border-radius: 8px;
    font-size: 14px
}

nav a:hover,
nav a.active {
    color: #fff;
    background: var(--surface-2)
}

.side-footer {
    position: absolute;
    bottom: 28px;
    left: 30px;
    font-size: 12px;
    line-height: 1.8;
    color: #5a6070
}

.content {
    width: calc(100% - 250px);
    margin-left: 250px;
    padding: 42px 5vw
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px
}

header h1 {
    margin: 5px 0;
    font-size: 26px
}

.muted {
    margin: 0;
    color: var(--muted);
    font-size: 14px
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13px
}

.avatar {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(91, 154, 255, 0.15);
    color: var(--blue)
}

.header-user button,
.text-button {
    color: var(--blue);
    background: transparent;
    font-size: 13px
}

.notice-bar {
    display: flex;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(220, 160, 40, 0.1);
    border: 1px solid rgba(220, 160, 40, 0.2);
    color: #d4a84a;
    font-size: 14px;
    margin-bottom: 22px
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px
}

.stat-card,
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25)
}

.stat-card {
    display: flex;
    gap: 13px;
    padding: 21px
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 20px
}

.blue {
    color: #5b9aff;
    background: rgba(91, 154, 255, 0.12)
}

.orange {
    color: #e8a040;
    background: rgba(232, 160, 64, 0.12)
}

.green {
    color: #4ecf8a;
    background: rgba(78, 207, 138, 0.12)
}

.purple {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.12)
}

.stat-card p {
    margin: 2px 0 6px;
    color: var(--muted);
    font-size: 13px
}

.stat-card strong {
    font-size: 23px
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 18px;
    margin-top: 18px
}

.card {
    padding: 25px
}

.card h2 {
    font-size: 19px;
    margin: 5px 0 20px
}

.card-title {
    display: flex;
    justify-content: space-between;
    align-items: start
}

.task {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "main status" "progress percent";
    gap: 10px;
    margin: 15px 0
}

.task-main {
    grid-area: main
}

.task-main b {
    display: block;
    font-size: 14px
}

.task-main small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
    display: block
}

.status {
    grid-area: status;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(91, 154, 255, 0.12);
    color: var(--blue);
    font-size: 12px
}

.progress {
    grid-area: progress;
    height: 6px;
    border-radius: 10px;
    background: var(--surface-2)
}

.progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5b9aff, #3d7ae0)
}

.task em {
    grid-area: percent;
    font-style: normal;
    color: var(--muted);
    font-size: 12px
}

.check-list {
    padding: 0;
    list-style: none
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 16px 0;
    font-size: 14px
}

.check-list span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(91, 154, 255, 0.12);
    color: var(--blue);
    font-size: 12px;
    font-weight: bold
}

.success-box {
    margin-top: 28px;
    background: rgba(78, 207, 138, 0.1);
    border: 1px solid rgba(78, 207, 138, 0.2);
    padding: 15px;
    border-radius: 9px;
    color: #4ecf8a;
    font-size: 14px
}

.success-box small {
    color: #3daa6e;
    font-size: 12px
}

footer {
    margin-top: 35px;
    color: #5a6070;
    text-align: center;
    font-size: 12px
}

.call-toolbar {
    margin-bottom: 18px;
    padding: 20px 25px
}

.call-room {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px
}

.call-room label {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap
}

.call-room input {
    max-width: 260px
}

.call-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.btn-primary,
.btn-secondary,
.chat-form button {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600
}

.btn-primary {
    background: var(--blue);
    color: #fff
}

.btn-secondary,
.chat-form button {
    background: var(--surface-2);
    color: var(--ink);
    border: 1px solid var(--line)
}

.btn-primary:disabled,
.btn-secondary:disabled,
.chat-form button:disabled {
    opacity: 0.45;
    cursor: not-allowed
}

.call-status {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted)
}

.call-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px
}

.call-video-panel h2,
.call-chat-panel h2 {
    margin-bottom: 16px
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.video-wrap {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3
}

.video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.video-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px
}

.call-chat-panel {
    display: flex;
    flex-direction: column;
    min-height: 420px
}

.chat-messages {
    flex: 1;
    min-height: 280px;
    max-height: 360px;
    overflow-y: auto;
    padding: 12px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    margin-bottom: 14px
}

.chat-placeholder {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7
}

.chat-item {
    margin-bottom: 12px;
    font-size: 14px
}

.chat-item b {
    margin-right: 8px
}

.chat-item small {
    color: var(--muted);
    font-size: 11px
}

.chat-item p {
    margin: 6px 0 0;
    line-height: 1.6;
    word-break: break-word
}

.chat-item.self p {
    color: var(--blue)
}

.chat-item.peer p {
    color: var(--ink)
}

.chat-item.system p {
    color: var(--muted);
    font-size: 13px
}

.chat-form {
    display: flex;
    align-items: stretch;
    gap: 8px
}

.chat-form textarea {
    flex: 1;
    min-width: 0;
    min-height: 88px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: var(--surface-2);
    color: var(--ink);
    resize: vertical;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: anywhere
}

.chat-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(91, 154, 255, 0.15)
}

.chat-form #sendBtn {
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    padding: 10px 6px;
    align-self: stretch
}

.chat-form button:not(:disabled):hover,
.btn-secondary:not(:disabled):hover {
    border-color: var(--blue)
}

@media(max-width:900px) {
    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto
    }

    .brand-panel {
        display: none
    }

    .login-panel {
        padding: 50px 34px
    }
}

@media(max-width:768px) {
    .app-body {
        flex-direction: column
    }

    .sidebar {
        position: static;
        width: 100%;
        padding: 16px 18px;
        display: flex;
        align-items: center;
        gap: 16px;
        border-bottom: 1px solid var(--line)
    }

    .side-logo {
        padding: 0;
        flex-shrink: 0
    }

    .sidebar nav {
        flex: 1
    }

    .sidebar nav a {
        margin: 0;
        display: inline-block
    }

    .side-footer {
        display: none
    }

    .content {
        width: 100%;
        margin-left: 0;
        padding: 24px 16px 28px
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px
    }

    header h1 {
        font-size: 22px
    }

    .header-user {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px
    }

    .notice-bar {
        flex-direction: column;
        gap: 6px;
        padding: 12px 14px;
        font-size: 13px
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px
    }

    .stat-card {
        padding: 16px;
        gap: 10px
    }

    .stat-card strong {
        font-size: 20px
    }

    .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 17px
    }

    .grid-2,
    .call-layout {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .video-grid {
        grid-template-columns: 1fr
    }

    .call-room {
        flex-direction: column;
        align-items: stretch
    }

    .call-room input {
        max-width: none
    }

    .card {
        padding: 18px
    }

    .card h2 {
        font-size: 17px
    }

    .card-title {
        flex-direction: column;
        gap: 8px
    }

    .task {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "main status"
            "progress percent"
    }

    footer {
        margin-top: 28px;
        font-size: 11px;
        line-height: 1.6
    }
}

@media(max-width:480px) {
    .login-body {
        padding: 16px 12px
    }

    .login-panel {
        padding: 36px 24px
    }

    .login-heading h2 {
        font-size: 22px
    }

    .content {
        padding: 20px 12px 24px
    }

    .stats-grid {
        grid-template-columns: 1fr
    }

    .stat-card {
        padding: 14px
    }

    .task {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "status"
            "progress"
            "percent"
    }

    .task .status {
        justify-self: start
    }
}