:root {
    --primary: #1958ce;
    --primary-strong: #0c45b5;
    --primary-soft: #eaf1ff;
    --danger: #e34d59;
    --warning: #ed8a19;
    --success: #1f9d55;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f5f7fb;
    --card: #ffffff;
    --shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
    --radius: 14px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body {
    font-size: 15px;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    min-height: 100vh;
    padding-bottom: 22px;
    background: linear-gradient(180deg, #1958ce 0, #1958ce 122px, var(--bg) 122px, var(--bg) 100%);
}

.page.no-hero {
    background: var(--bg);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 52px;
    color: #fff;
    background: var(--primary);
}

.topbar h1 {
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    font-size: 18px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar .left,
.topbar .right {
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    height: 56px;
    color: #fff;
}

.topbar .left {
    left: 14px;
}

.topbar .right {
    right: 14px;
}

.link-btn,
.icon-btn {
    border: 0;
    color: inherit;
    background: transparent;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
}

.content {
    padding: 14px;
}

.hero-card,
.card {
    margin-bottom: 14px;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 18px;
}

.card {
    padding: 14px;
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}

.card-title small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 13px;
    font-weight: 600;
}

.company-name {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.sub-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.stat-item {
    min-height: 86px;
    padding: 14px;
    border: 1px solid #eef2ff;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff, #f5f8ff);
}

.stat-item b {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 26px;
    line-height: 1;
}

.stat-item span {
    color: var(--muted);
    font-size: 13px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--primary);
    background: #fff;
}

.quick-item strong {
    margin-top: 4px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
    display: block;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.item-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.item-desc {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.meta-row,
.info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.info-group+.info-group {
    margin-top: 16px;
    padding-top: 2px;
}

.info-group-title {
    position: relative;
    margin: 2px 0 4px;
    padding-left: 10px;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.info-group-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 14px;
    border-radius: 999px;
    background: var(--primary);
    transform: translateY(-50%);
}

.meta-row:last-child,
.info-row:last-child {
    border-bottom: 0;
}

.meta-row span,
.info-row span {
    flex: 0 0 auto;
    color: var(--muted);
}

.meta-row b,
.info-row b {
    flex: 1;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.info-row.is-rich {
    flex-direction: column;
    align-items: stretch;
}

.info-row.is-rich span {
    flex: none;
}

.info-row.is-rich b {
    width: 100%;
    text-align: left;
}

.report-detail-file-list {
    justify-content: flex-start;
    margin-top: 2px;
}

.report-file-upload-control {
    align-items: flex-start;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 12px;
    white-space: nowrap;
}

.badge.danger {
    color: var(--danger);
    background: #fff0f1;
}

.badge.warning {
    color: var(--warning);
    background: #fff7ed;
}

.badge.success {
    color: var(--success);
    background: #eefbf3;
}

.badge.muted {
    color: var(--muted);
    background: #f3f4f6;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
}

.tabs button {
    flex: 0 0 auto;
    min-width: 72px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: #fff;
}

.tabs button.active {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.form-card {
    padding: 14px;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 14px;
}

.company-edit-page {
    padding-bottom: 86px;
}

.company-edit-content {
    padding-bottom: 92px;
}

.field {
    display: block;
    margin-bottom: 14px;
}

.field span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 13px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: 0;
    background: #fff;
    transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 88, 206, 0.1);
}

.field input,
.field select {
    height: 44px;
    padding: 0 12px;
}

.field select {
    padding-right: 38px;
    appearance: auto;
    -webkit-appearance: menulist;
    background-color: #fff;
}

.custom-select-trigger {
    padding-right: 38px;
    background-color: #fff;
}

.field textarea {
    min-height: 112px;
    padding: 12px;
    resize: vertical;
}

.custom-select-field {
    position: relative;
}

.custom-select-trigger {
    position: relative;
    width: 100%;
    min-height: 44px;
    padding: 0 38px 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: 0;
    color: var(--text);
    background-color: #fff;
    text-align: left;
    transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}

.custom-select-trigger::after {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 0;
    height: 0;
    border-top: 5px solid #111827;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transform: translateY(-35%);
    content: "";
}

.custom-select-trigger:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 88, 206, 0.1);
}

.custom-select-trigger em {
    display: block;
    overflow: hidden;
    font-style: normal;
    line-height: 42px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-trigger.is-placeholder {
    color: #9ca3af;
}

.custom-select-panel {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 30;
    max-height: 168px;
    margin-top: 6px;
    padding: 6px;
    overflow-y: auto;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.14);
}

.custom-select-option {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    color: var(--text);
    background: transparent;
    text-align: left;
    line-height: 1.35;
}

.custom-select-option+.custom-select-option {
    margin-top: 2px;
}

.custom-select-option.active {
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 700;
}

.primary-btn,
.secondary-btn,
.danger-btn {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    transition: opacity 120ms ease-out, transform 120ms ease-out;
}

.primary-btn:active,
.secondary-btn:active,
.danger-btn:active {
    transform: scale(0.99);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.danger-btn:disabled {
    opacity: 0.58;
}

.primary-btn {
    background: var(--primary);
}

.secondary-btn {
    color: var(--primary);
    background: var(--primary-soft);
}

.danger-btn {
    background: var(--danger);
}

.btn-row {
    display: flex;
    gap: 10px;
}

.fixed-action-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    gap: 10px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(229, 231, 235, 0.88);
    background: rgba(245, 247, 251, 0.94);
    box-shadow: 0 -10px 24px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(10px);
}

.fixed-action-bar button {
    flex: 1;
}

.btn-row button,
.btn-row a {
    flex: 1;
}

.empty,
.loading,
.error-box {
    padding: 26px 12px;
    color: var(--muted);
    text-align: center;
}

.error-box {
    color: var(--danger);
}

.boot-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(160deg, #1958ce, #4f8cff);
}

.boot-card {
    width: calc(100% - 48px);
    max-width: 360px;
    padding: 34px 24px;
    border-radius: 24px;
    color: #fff;
    text-align: center;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(12px);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 14px;
    border-radius: 20px;
    color: var(--primary);
    background: #fff;
    font-size: 30px;
    font-weight: 800;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 82px;
    z-index: 9999;
    max-width: calc(100% - 44px);
    padding: 10px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.76);
    font-size: 14px;
    transform: translateX(-50%);
}

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(2px);
    animation: app-modal-fade 0.18s ease;
}

.app-modal-card {
    width: 100%;
    max-width: 320px;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.24);
    animation: app-modal-pop 0.2s ease;
}

.app-modal-title {
    padding: 20px 20px 6px;
    color: var(--text);
    text-align: center;
    font-size: 17px;
    font-weight: 700;
}

.app-modal-body {
    padding: 4px 20px 22px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
    line-height: 1.55;
}

.app-modal-foot {
    display: flex;
    border-top: 1px solid var(--line);
}

.app-modal-btn {
    flex: 1;
    height: 48px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

.app-modal-btn+.app-modal-btn {
    border-left: 1px solid var(--line);
}

.app-modal-btn.ok {
    color: var(--primary);
}

.app-modal-btn:active {
    background: rgba(25, 88, 206, 0.06);
}

@keyframes app-modal-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes app-modal-pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.app-datetime-picker-open {
    overflow: hidden;
}

.app-datetime-picker-mask {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    align-items: flex-end;
    overflow: hidden;
    overscroll-behavior: contain;
    background: rgba(15, 23, 42, 0.46);
}

.app-datetime-picker-panel {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: calc(100vh - 8px);
    max-height: calc(100svh - 8px);
    max-height: calc(100dvh - 8px);
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.22);
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.app-datetime-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 14px;
    border-bottom: 1px solid #edf1f7;
}

.app-datetime-picker-head b {
    color: var(--text);
    font-size: 16px;
}

.app-datetime-picker-head button {
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
}

.app-datetime-picker-body {
    position: relative;
    display: grid;
    grid-template-columns: 1.35fr .9fr .9fr .9fr .9fr;
    gap: 8px;
    padding: 10px 12px 2px;
}

.app-datetime-picker-column {
    --app-datetime-picker-item-height: 40px;
    position: relative;
    height: calc(var(--app-datetime-picker-item-height) * 5);
    overflow-y: auto;
    border: 1px solid #d8e3f2;
    border-radius: 12px;
    background: #f8fbff;
    scroll-snap-type: y mandatory;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: none;
}

.app-datetime-picker-column::-webkit-scrollbar {
    display: none;
}

.app-datetime-picker-column::before {
    position: sticky;
    top: calc(var(--app-datetime-picker-item-height) * 2);
    display: block;
    height: var(--app-datetime-picker-item-height);
    margin-bottom: calc(var(--app-datetime-picker-item-height) * -1);
    border-top: 1px solid #d8e3f2;
    border-bottom: 1px solid #d8e3f2;
    border-radius: 10px;
    background: rgba(25, 88, 206, 0.06);
    pointer-events: none;
    content: "";
    z-index: 1;
}

.app-datetime-picker-wheel {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--app-datetime-picker-item-height) * 2);
    padding-bottom: calc(var(--app-datetime-picker-item-height) * 2);
}

.app-datetime-picker-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--app-datetime-picker-item-height);
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 18px;
    text-align: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.app-datetime-picker-item.active {
    color: var(--primary);
    font-weight: 700;
}

.app-datetime-picker-labels {
    display: grid;
    grid-template-columns: 1.35fr .9fr .9fr .9fr .9fr;
    gap: 8px;
    padding: 4px 12px 0;
    color: #7b8496;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 480px) {
    .app-datetime-picker-panel {
        padding-bottom: calc(6px + env(safe-area-inset-bottom));
    }

    .app-datetime-picker-head {
        height: 48px;
        padding: 0 12px;
    }

    .app-datetime-picker-body {
        gap: 6px;
        padding: 8px 10px 0;
    }

    .app-datetime-picker-column {
        --app-datetime-picker-item-height: 36px;
    }

    .app-datetime-picker-item {
        font-size: 16px;
    }

    .app-datetime-picker-labels {
        gap: 6px;
        padding: 2px 10px 0;
    }
}

.float-action {
    position: fixed;
    right: 16px;
    bottom: 26px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 10px 24px rgba(25, 88, 206, 0.32);
    font-size: 28px;
    font-weight: 300;
    line-height: 54px;
    text-align: center;
    text-decoration: none;
}

.monitor-panel {
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(174, 190, 214, 0.52);
    border-radius: 18px;
    background:
        radial-gradient(circle at 0 0, rgba(25, 88, 206, 0.10), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.alert-panel {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-head h2 {
    position: relative;
    margin: 0;
    padding-left: 10px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.section-head h2::before {
    position: absolute;
    left: 0;
    top: 1px;
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: var(--primary);
    content: "";
}

.report-head-blue {
    align-items: center;
}

.report-head-blue h2 {
    margin-top: 0;
}

.report-head-blue h2::before {
    background: #1958ce !important;
}

.report-count-text {
    color: #1958ce;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
}

.report-count-text em {
    color: inherit;
    font-style: normal;
    font-weight: 600;
}

.report-count-text b {
    color: inherit;
    font-size: 14px;
    font-weight: 800;
}

.alert-head {
    align-items: flex-start;
}

.alert-head h2 {
    flex: 0 0 auto;
    margin-top: 7px;
}

.alert-head h2::before {
    background: #ff3f68;
}

.alert-tabs {
    flex: 1;
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 220px;
    padding: 4px;
    border: 1px solid #ffe1ea;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff6f9, #fff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.alert-tabs button {
    min-width: 0;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    color: #8b98aa;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition: color .18s, background .18s, box-shadow .18s, transform .18s;
}

.alert-tabs button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 3px;
    padding: 0 5px;
    border-radius: 999px;
    color: inherit;
    background: rgba(255, 255, 255, 0.66);
    font-size: 11px;
}

.alert-tabs button.active {
    color: #fff;
    background: linear-gradient(135deg, #ff4f75, #ff7a9b);
    box-shadow: 0 8px 18px rgba(255, 63, 104, 0.22);
}

.alert-tabs button:active {
    transform: scale(0.97);
}

.monitor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.monitor-tile {
    --tile-accent: #2563eb;
    --tile-soft: #eef5ff;
    --tile-border: rgba(37, 99, 235, 0.18);
    position: relative;
    min-height: 94px;
    padding: 13px 12px 12px;
    overflow: hidden;
    border: 1px solid var(--tile-border);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.98)),
        var(--tile-soft);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
}

.monitor-tile::before {
    position: absolute;
    right: -18px;
    bottom: -22px;
    width: 68px;
    height: 68px;
    border: 1px solid var(--tile-border);
    border-radius: 22px;
    background: var(--tile-soft);
    content: "";
    opacity: 0.72;
    transform: rotate(12deg);
}

.monitor-tile::after {
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: var(--tile-accent);
    content: "";
}

.monitor-tile.is-point {
    --tile-accent: #2563eb;
    --tile-soft: #eef5ff;
    --tile-border: rgba(37, 99, 235, 0.20);
}

.monitor-tile.is-device {
    --tile-accent: #475569;
    --tile-soft: #f1f5f9;
    --tile-border: rgba(71, 85, 105, 0.22);
}

.monitor-tile.is-limit {
    --tile-accent: #64748b;
    --tile-soft: #f4f6f8;
    --tile-border: rgba(100, 116, 139, 0.22);
}

.monitor-tile p {
    position: relative;
    z-index: 1;
    margin: 8px 0 3px;
    color: #69778c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.monitor-tile b {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    color: #111827;
    font-size: 23px;
    line-height: 1;
}

.monitor-tile b::after,
.alert-summary b::after {
    color: #8a97aa;
    font-size: 11px;
    font-weight: 700;
    content: attr(data-unit);
}

.monitor-tile em {
    position: absolute;
    top: 14px;
    right: 12px;
    color: #6f7f95;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.tile-icon,
.summary-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.tile-icon img,
.summary-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tile-icon {
    z-index: 1;
    width: 32px;
    height: 32px;
    color: var(--tile-accent);
}

.alert-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.alert-summary {
    position: relative;
    display: grid;
    grid-template-columns: 46px 1fr;
    min-height: 82px;
    padding: 14px;
    overflow: hidden;
    border-radius: 16px;
    align-items: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}

.alert-summary::after {
    position: absolute;
    right: -18px;
    bottom: -26px;
    width: 78px;
    height: 78px;
    border-radius: 26px;
    content: "";
    opacity: 0.62;
    transform: rotate(15deg);
}

.alert-summary.danger {
    border: 1px solid rgba(220, 38, 38, 0.22);
    color: #dc2626;
    background: linear-gradient(135deg, #fff7f7, #fff1f2);
}

.alert-summary.danger::after {
    background: rgba(220, 38, 38, 0.08);
}

.alert-summary.warning {
    border: 1px solid rgba(217, 119, 6, 0.24);
    color: #d97706;
    background: linear-gradient(135deg, #fffaf0, #fff6df);
}

.alert-summary.warning::after {
    background: rgba(217, 119, 6, 0.09);
}

.alert-summary strong,
.alert-summary b {
    position: relative;
    z-index: 1;
    grid-column: 2;
    line-height: 1.2;
}

.alert-summary strong {
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.alert-summary b {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    width: max-content;
    margin-top: 6px;
    font-size: 19px;
}

.summary-icon {
    z-index: 1;
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: currentColor;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.88), 0 8px 18px rgba(15, 23, 42, 0.06);
}

.home-page .alert-summary.warning .summary-icon img {
    width: 32px;
    height: 32px;
}

.home-page .content {
    padding: 12px 14px 18px;
}

.home-page .home-dashboard-head {
    justify-content: center;
    height: 80px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.home-dashboard-title {
    min-width: 0;
    max-width: 100%;
    flex: 1;
    text-align: center;
}

.home-page .topbar .home-dashboard-title h1 {
    max-width: 100%;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.home-dashboard-title p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 100%;
    margin: 5px 0 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-dashboard-title i {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #65f3a7;
    box-shadow: 0 0 0 3px rgba(101, 243, 167, 0.16);
}

.home-scan-btn {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(15, 23, 42, 0.12);
    transform: translateY(-50%);
}

.home-scan-btn:active {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-50%) scale(0.98);
}

.home-scan-btn::before,
.home-scan-btn::after {
    content: "";
    position: absolute;
    display: block;
}

.home-scan-btn::before {
    left: 8px;
    top: 8px;
    width: 20px;
    height: 20px;
    background:
        linear-gradient(#fff, #fff) left top / 8px 2px no-repeat,
        linear-gradient(#fff, #fff) left top / 2px 8px no-repeat,
        linear-gradient(#fff, #fff) right top / 8px 2px no-repeat,
        linear-gradient(#fff, #fff) right top / 2px 8px no-repeat,
        linear-gradient(#fff, #fff) left bottom / 8px 2px no-repeat,
        linear-gradient(#fff, #fff) left bottom / 2px 8px no-repeat,
        linear-gradient(#fff, #fff) right bottom / 8px 2px no-repeat,
        linear-gradient(#fff, #fff) right bottom / 2px 8px no-repeat;
}

.home-scan-btn::after {
    left: 15px;
    top: 17px;
    width: 6px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
}

.scan-web-page {
    height: 100vh;
    min-height: 100vh;
    padding-bottom: 0;
    overflow: hidden;
    background: var(--bg);
}

.scan-web-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.scan-web-back {
    font-size: 30px;
    line-height: 1;
}

.scan-web-page .topbar {
    padding-right: 108px;
}

.scan-web-page .topbar .right {
    max-width: 88px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scan-web-frame {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
    background: #fff;
}

.scan-web-empty {
    flex: 1 1 auto;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    background: var(--bg);
}

.scan-web-page.is-empty .scan-web-frame {
    display: none;
}

.scan-web-page.is-empty .scan-web-empty {
    display: flex;
}

.app-scan-open {
    overflow: hidden !important;
}

.app-scan-layer {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    flex-direction: column;
    background: #000;
}

.app-scan-layer.is-visible {
    display: flex;
}

.app-scan-layer .app-scan-top {
    position: relative !important;
    flex: 0 0 54px !important;
    display: flex !important;
    align-items: center !important;
    min-height: 54px !important;
    padding: 0 12px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #1769e0, #1d8cff) !important;
    box-sizing: border-box !important;
}

.app-scan-back {
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    border: 0 !important;
    color: #fff !important;
    background: transparent !important;
    font-size: 34px !important;
    line-height: 40px !important;
    text-align: left !important;
}

.app-scan-top div {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    height: 54px !important;
    line-height: 1.2 !important;
}

.app-scan-top b {
    font-size: 16px !important;
    line-height: 20px !important;
    font-weight: 600 !important;
}

.app-scan-top span {
    margin-top: 2px !important;
    color: rgba(255, 255, 255, 0.76) !important;
    font-size: 12px !important;
    line-height: 16px !important;
}

.app-scan-area {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    background: #000;
}

.app-scan-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-scan-area::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64vw;
    max-width: 280px;
    aspect-ratio: 1;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 18px;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.32);
    pointer-events: none;
}

.app-scan-tip {
    flex: 0 0 auto;
    padding: 12px 16px calc(18px + env(safe-area-inset-bottom));
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 20px;
    text-align: center;
    background: #000;
}

.monitor-point-panel {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(226, 232, 240, 0.94);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.home-page .monitor-panel {
    padding: 10px 12px 14px;
    border: 1px solid rgba(226, 232, 240, 0.94);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.monitor-point-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 8px 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.monitor-point-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #eef6ff;
}

.monitor-point-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.monitor-point-row strong {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #243247;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.monitor-point-count {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 8px;
    color: #2563eb;
    background: #edf4ff;
    font-size: 11px;
    font-weight: 800;
}

.monitor-point-count b {
    color: inherit;
    font-size: 13px;
}

.condition-head {
    align-items: center;
    margin-bottom: 12px;
}

.condition-head h2 {
    font-size: 15px;
}

.stream-tag {
    flex: 0 0 auto;
    padding: 0;
    color: #059669;
    background: transparent;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.condition-dashboard {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.alarm-rate-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 104px;
    border: 1px solid #fde68a;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdf5, #fffaf0);
}

.alarm-rate-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: conic-gradient(#f59e0b var(--alarm-rate), #f8ead2 0);
}

.alarm-rate-ring::before {
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #fffaf0;
    content: "";
}

.alarm-rate-ring b,
.alarm-rate-ring span {
    position: relative;
    z-index: 1;
}

.alarm-rate-ring b {
    color: #f59e0b;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

.alarm-rate-ring span {
    margin-top: 4px;
    color: #d97706;
    font-size: 9px;
    font-weight: 900;
}

.condition-alert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.condition-alert-card {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 48px;
    padding: 9px 10px;
    border: 1px solid #eef2f8;
    border-radius: 12px;
    background: #f8fbff;
}

.condition-alert-card.is-device {
    color: #059669;
    background: #f8fbff;
}

.condition-alert-card.is-limit {
    color: #10b981;
    background: #f8fbff;
}

.condition-alert-card.is-pollution {
    color: #2563eb;
    background: #f8fbff;
}

.condition-alert-card.is-carbon {
    color: #f59e0b;
    border-color: #fed7aa;
    background: #fffaf0;
}

.condition-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.condition-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.condition-alert-card p {
    margin: 0 0 3px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
}

.condition-alert-card b {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.condition-alert-card b::after {
    color: currentColor;
    font-size: 10px;
    font-weight: 800;
    content: attr(data-unit);
}

@media (max-width: 360px) {
    .condition-dashboard {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 9px;
    }

    .condition-alert-grid {
        gap: 8px;
    }

    .condition-alert-card {
        gap: 7px;
        padding: 8px;
    }

    .condition-icon {
        width: 26px;
        height: 26px;
    }
}

.alert-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-card-list .empty,
.alert-card-list .loading,
.alert-card-list .error-box {
    flex: 0 0 auto;
}

.alert-card {
    overflow: hidden;
    flex: 0 0 auto;
    border: 1px solid #ffe3a8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
}

.alert-card.applied {
    border-color: #c9f2dc;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 157, 85, 0.1);
}

.alert-card.applied .alert-card-title {
    color: #0f7a43;
    background: #fff;
}

.alert-card.applied .alert-card-title span:first-child::before {
    background: #6ee7a8;
}

.alert-card.applied .alert-card-title em {
    color: #0f7a43;
    background: #dff8e9;
}

.alert-card.applied .alert-reason {
    border-color: #c9f2dc;
    color: #0b1220;
    background: #fff;
}

.alert-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    color: #a35400;
    background: #fff;
    font-weight: 800;
}

.alert-card-title span:first-child {
    position: relative;
    min-width: 0;
    padding-left: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alert-card-title span:first-child::before {
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffd98a;
    content: "";
    transform: translateY(-50%);
}

.alert-card-title var {
    flex: 0 0 auto;
    margin-left: auto;
    color: #a17a39;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

.alert-card-title em {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    color: #b46b00;
    background: #fff1c8;
    font-size: 12px;
    font-style: normal;
}

.alert-card-body {
    padding: 10px 12px 12px;
}

.alert-process,
.alert-time-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.alert-process {
    grid-template-areas:
        "point level"
        "time latest";
    gap: 10px 18px;
    padding: 12px;
    border: 1px solid #eef2f8;
    border-radius: 14px;
    background: #fff;
}

.alert-process>div {
    display: flex;
    align-items: baseline;
    min-width: 0;
    min-height: 0;
    padding: 0;
    text-align: left;
}

.alert-process>div:nth-child(1) {
    grid-area: point;
    display: block;
    text-align: center;
}

.alert-process>div:nth-child(2) {
    grid-area: level;
    display: block;
    text-align: center;
}

.alert-process>div:nth-child(3) {
    grid-area: time;
    display: block;
    text-align: center;
}

.alert-process>div:nth-child(4) {
    grid-area: latest;
    display: block;
    text-align: center;
}

.alert-process p,
.alert-reason p {
    margin: 0;
    color: #607086;
    font-size: 12px;
    line-height: 1.2;
}

.alert-process p {
    flex: 0 0 auto;
    margin-right: 8px;
    white-space: nowrap;
}

.alert-process b {
    display: block;
    margin-top: 7px;
    font-weight: 800;
    line-height: 1.26;
    word-break: break-word;
}

.alert-process b {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 5px;
    overflow: hidden;
    color: #0b1220;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alert-process>div:nth-child(n + 3) b {
    margin-top: 5px;
    color: #0b1220;
    font-size: 13px;
}

.alert-time span {
    display: inline;
    white-space: nowrap;
}

.alert-time span+span {
    margin-left: 4px;
}

.alert-process small {
    display: inline-block;
    margin-top: 7px;
    padding: 3px 8px;
    border-radius: 5px;
    color: #0f9f6e;
    background: #e8fff7;
    font-size: 12px;
    font-weight: 800;
}

.alert-reason {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #ffe3a8;
    border-radius: 12px;
    color: #0b1220;
    background: #fff;
}

.alert-card-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
    color: #9aa8bd;
    font-size: 13px;
    font-weight: 700;
}

.alert-card-foot a,
.alert-card-foot button {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(25, 88, 206, 0.22);
    font-weight: 700;
}

.alert-card-foot .alert-applied-btn {
    color: #0f7a43;
    background: #dff8e9;
    box-shadow: none;
    cursor: pointer;
}

.alert-card-foot .alert-applied-btn:disabled {
    opacity: 1;
}

.apply-modal[hidden] {
    display: none;
}

.apply-modal .app-modal-card {
    max-width: 420px;
}

.apply-modal .app-modal-body {
    padding-top: 12px;
    text-align: left;
}

.apply-summary {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #eef2f8;
    border-radius: 12px;
    background: #f8fbff;
}

.apply-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #607086;
    font-size: 13px;
}

.apply-summary-row b {
    color: var(--text);
    font-weight: 600;
    text-align: right;
}

.apply-summary p {
    margin: 8px 0 0;
    color: #607086;
    font-size: 13px;
    line-height: 1.6;
}

.apply-summary-desc {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0e7f1;
}

.apply-summary-desc span {
    display: block;
    margin-bottom: 6px;
    color: #607086;
    font-size: 13px;
}

.apply-summary-desc p {
    margin: 0;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

.apply-detail-mode #applyReason {
    color: var(--text);
    background: #f8fbff;
    cursor: default;
}

.apply-upload-control {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.apply-file-native {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
}

.apply-upload-tile {
    flex: 0 0 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border: 1px dashed #c9d6e8;
    border-radius: 12px;
    color: #8b99ad;
    background: #fbfdff;
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.apply-upload-tile:active {
    color: var(--primary);
    border-color: var(--primary);
    background: #f4f8ff;
}

.apply-detail-mode .apply-upload-tile,
.apply-detail-mode .field-tip {
    display: none;
}

.apply-detail-mode .apply-upload-control {
    display: block;
}

.apply-detail-mode .apply-file-list {
    display: flex;
    flex: none;
}

.apply-file-list {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.apply-file-list:empty {
    display: none;
}

.apply-file-item {
    position: relative;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    overflow: visible;
    border-radius: 12px;
    background: #eef2f8;
}

.apply-file-item.readonly {
    cursor: pointer;
}

.apply-file-empty {
    width: 100%;
    padding: 14px 12px;
    border: 1px dashed #d8e3f3;
    border-radius: 12px;
    color: #8b99ad;
    background: #fbfdff;
    text-align: center;
    font-size: 13px;
}

.apply-file-item-thumb,
.apply-file-item-type {
    width: 76px;
    height: 76px;
    border-radius: 12px;
}

.apply-file-item-thumb {
    display: block;
    object-fit: cover;
    background: #0f172a;
}

.apply-file-item-type {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid #d8e3f3;
    background: #f4f8ff;
    font-size: 13px;
    font-weight: 900;
}

.apply-file-item em {
    position: absolute;
    right: 4px;
    bottom: 4px;
    max-width: 66px;
    overflow: hidden;
    padding: 2px 6px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.66);
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apply-file-item.uploading em {
    background: rgba(25, 88, 206, 0.86);
}

.apply-file-item.success em {
    background: rgba(15, 159, 110, 0.88);
}

.apply-file-item.error .apply-file-item-thumb,
.apply-file-item.error .apply-file-item-type {
    border: 1px solid #ffc9c9;
    background: #fff5f5;
}

.apply-file-item.error em {
    background: rgba(209, 67, 67, 0.9);
}

.apply-file-remove {
    position: absolute;
    top: -7px;
    right: -7px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.apply-file-remove:active {
    background: #d14343;
}

.apply-file-download {
    position: absolute;
    top: 1px;
    right: 2px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #1958ce;
    box-shadow: 0 6px 14px rgba(25, 88, 206, 0.32);
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    transform: translateZ(0);
    transition: transform 120ms ease-out, box-shadow 120ms ease-out, background-color 120ms ease-out;
}

.apply-file-download::before {
    content: "↓";
    display: block;
    color: currentColor;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-1px);
}

.apply-file-download:active {
    background: #0f46b8;
    transform: scale(0.94);
    box-shadow: 0 3px 10px rgba(25, 88, 206, 0.26);
}

.apply-file-download:focus-visible {
    outline: 2px solid rgba(25, 88, 206, 0.28);
    outline-offset: 2px;
}

.apply-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(15, 23, 42, 0.72);
}

.apply-preview-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 760px;
    height: min(86vh, 760px);
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.32);
}

.apply-preview-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 12px 0 16px;
    border-bottom: 1px solid #edf1f7;
}

.apply-preview-head b {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apply-preview-head button {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #5d6b82;
    background: #eef2f8;
    font-size: 22px;
    line-height: 1;
}

.apply-preview-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: auto;
    background: #111827;
}

.apply-preview-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.apply-preview-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.apply-preview-loading,
.apply-preview-unavailable {
    width: calc(100% - 48px);
    max-width: 360px;
    padding: 24px 18px;
    border-radius: 14px;
    color: #607086;
    background: #fff;
    text-align: center;
    font-size: 14px;
}

.apply-preview-unavailable b {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 16px;
}

.apply-preview-unavailable p {
    margin: 0;
}

.field-tip {
    display: block;
    margin-top: 6px;
    color: #9aa8bd;
    font-size: 12px;
    line-height: 1.5;
}

.apply-submit-row {
    display: flex;
    gap: 10px;
}

.apply-submit-row button {
    flex: 1;
}

.apply-submit-row button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.home-page {
    --industrial-primary: #0f4c81;
    --industrial-primary-strong: #0b355c;
    --industrial-accent: #1677a3;
    --industrial-border: #c8d3df;
    --industrial-panel: #ffffff;
    --industrial-panel-soft: #f3f7fb;
    --industrial-text: #172033;
    --industrial-muted: #66758a;
    background: var(--bg);
}

.home-page .topbar {
    height: 58px;
    background: var(--primary);
    box-shadow: 0 4px 14px rgba(25, 88, 206, 0.18);
}

.home-page .topbar h1 {
    font-size: 17px;
    letter-spacing: 0.04em;
}

.home-page .content {
    padding: 12px;
}

.home-page .monitor-panel,
.home-page .alert-panel {
    border: 1px solid var(--industrial-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(31, 50, 70, 0.08);
}

.home-page .monitor-panel {
    padding: 15px;
}

.home-page .section-head {
    margin-bottom: 14px;
}

.home-page .section-head h2 {
    color: var(--industrial-text);
    font-size: 18px;
    letter-spacing: 0.01em;
}

.home-page .section-head h2::before {
    top: 0;
    width: 5px;
    height: 21px;
    background: var(--primary);
    box-shadow: 0 0 0 1px rgba(25, 88, 206, 0.12);
}

.home-page .monitor-grid {
    gap: 12px;
}

.home-page .monitor-tile {
    --tile-accent: #0f4c81;
    --tile-soft: #eef4f8;
    --tile-border: #c9d6e2;
    min-height: 116px;
    padding: 15px 12px 13px;
    border-color: var(--tile-border);
    border-radius: 16px;
    background: var(--tile-soft);
    box-shadow: 0 6px 14px rgba(33, 51, 72, 0.06);
}

.home-page .monitor-tile::before,
.home-page .monitor-tile::after {
    display: none;
}

.home-page .monitor-tile.is-point,
.home-page .monitor-tile.is-device,
.home-page .monitor-tile.is-limit {
    --tile-soft: #eef7ff;
    --tile-border: #bdd6ea;
}

.home-page .monitor-tile p {
    margin-top: 12px;
    color: #344256;
    font-size: 13px;
    letter-spacing: 0;
}

.home-page .monitor-tile b {
    color: #0b1220;
    font-size: 18px;
    font-weight: 900;
}

.home-page .monitor-tile b::after,
.home-page .alert-summary b::after {
    color: #62748a;
    font-size: 12px;
}

.home-page .alert-summary-grid {
    gap: 12px;
    margin-top: 14px;
}

.home-page .alert-summary {
    min-height: 92px;
    grid-template-columns: 54px 1fr;
    padding: 15px 14px;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 18px rgba(33, 51, 72, 0.07);
}

.home-page .alert-summary::after {
    display: none;
}

.home-page .alert-summary.danger {
    border-color: #f2b8b8;
    color: #b3262d;
    background: #fff0f1;
}

.home-page .alert-summary.warning {
    border-color: #ead69a;
    color: #b7791f;
    background: #fff7df;
}

.home-page .alert-summary strong {
    color: #233044;
    font-size: 14px;
}

.home-page .alert-summary b {
    color: currentColor;
    font-size: 18px;
    font-weight: 900;
}

.home-page .alert-panel {
    padding: 15px;
}

.home-page .alert-head h2::before {
    background: var(--primary);
}

.home-page .alert-tabs {
    border: 1px solid #d8e3f5;
    background: #fff;
    box-shadow: 0 6px 14px rgba(25, 88, 206, 0.08);
}

.home-page .alert-tabs button {
    color: #6b7280;
}

.home-page .alert-tabs button span {
    color: var(--primary);
    background: #edf3ff;
    font-weight: 900;
}

.home-page .alert-tabs button.active {
    color: var(--primary);
    background: #dbeafe;
    box-shadow: 0 6px 16px rgba(25, 88, 206, 0.14);
}

.home-page .alert-tabs button.active span {
    color: #fff;
    background: var(--primary);
}

/* ── 工况信息 ── */
.wc-group {
    margin-bottom: 14px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.wc-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.wc-group-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #fff;
    font-size: 20px;
}

.wc-group-icon.icon-total {
    background: linear-gradient(135deg, #4f8cff, #1958ce);
}

.wc-group-icon.icon-prod {
    background: linear-gradient(135deg, #34d399, #059669);
}

.wc-group-icon.icon-poll {
    background: linear-gradient(135deg, #fbbf24, #d97706);
}

.wc-group-icon.icon-ctrl {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.wc-group-icon::before {
    font-style: normal;
    font-weight: 700;
}

.wc-group-icon.icon-total::before {
    content: "⚡";
}

.wc-group-icon.icon-prod::before {
    content: "🏭";
}

.wc-group-icon.icon-poll::before {
    content: "🔥";
}

.wc-group-icon.icon-ctrl::before {
    content: "🛡";
}

.wc-group-info {
    flex: 1;
    min-width: 0;
}

.wc-group-info h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.wc-group-power {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.wc-point-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.wc-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    padding: 10px 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    text-align: center;
    transition: border-color .15s, box-shadow .15s;
}

.wc-point:active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(25, 88, 206, 0.1);
}

.wc-point-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wc-point-power {
    display: block;
    margin: 4px 0;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.wc-point.success .wc-point-power {
    color: var(--success);
}

.wc-point.danger .wc-point-power {
    color: var(--danger);
}

.wc-point.offline .wc-point-power {
    color: #9ca3af;
}

.wc-point-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
}

.wc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
}

.wc-point.success .wc-dot {
    background: var(--success);
}

.wc-point.danger .wc-dot {
    background: var(--danger);
}

.wc-point.offline .wc-dot {
    background: #d1d5db;
}

.wc-point.success .wc-point-status {
    color: var(--success);
}

.wc-point.danger .wc-point-status {
    color: var(--danger);
}

/* ── 点位运行详情 ── */
.rt-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.rt-summary-item {
    padding: 14px;
    border: 1px solid #eef2f8;
    border-radius: 12px;
    background: #fff;
}

.rt-summary-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.rt-summary-item b {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.rt-chart-box {
    min-height: 200px;
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.rt-series {
    margin-bottom: 14px;
}

.rt-series:last-child,
.rt-chart-box:last-child {
    margin-bottom: 0;
}

.rt-series h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 15px;
}

.rt-chart-head,
.rt-chart-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rt-chart-head b {
    font-size: 14px;
}

.rt-chart-head span,
.rt-chart-meta {
    color: var(--muted);
    font-size: 12px;
}

.rt-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 136px;
    margin-top: 14px;
    padding: 12px 8px 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #f7faff, #fff);
}

.rt-bar {
    flex: 1;
    min-width: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, #4f8cff, #1958ce);
}

.rt-chart-meta {
    margin-top: 8px;
}

.rt-empty-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 136px;
    color: var(--muted);
    font-size: 14px;
}


.report-page .float-action {
    bottom: 24px;
}

.report-hero,
.report-tip-card {
    margin-bottom: 14px;
    padding: 16px;
    overflow: hidden;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #1958ce, #4f8cff);
    box-shadow: 0 12px 28px rgba(25, 88, 206, 0.22);
}

.report-hero p,
.report-tip-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    line-height: 1.7;
}

.report-tip-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.report-stats div {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.report-stats b,
.report-stats span {
    display: block;
}

.report-stats b {
    font-size: 24px;
    line-height: 1;
}

.report-stats span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
}

.report-list-card {
    padding: 12px;
}

.report-card {
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(25, 88, 206, 0.08);
}

.report-card-main {
    display: block;
    padding: 13px;
}

.report-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.report-card-head>div {
    min-width: 0;
}

.report-card-title {
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-card-head span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.report-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.report-meta-grid div {
    min-width: 0;
    padding: 9px;
    border-radius: 10px;
    background: #f7faff;
}

.report-meta-grid span,
.report-meta-grid b {
    display: block;
}

.report-meta-grid span {
    color: #7b8798;
    font-size: 12px;
}

.report-meta-grid b {
    margin-top: 5px;
    overflow: hidden;
    color: #1958ce;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-desc {
    margin: 11px 0 0;
    color: #607086;
    font-size: 13px;
    line-height: 1.6;
}

.report-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 13px 13px;
    border-top: 1px solid #eef2f8;
}

.primary-mini-btn,
.secondary-mini-btn {
    min-width: 84px;
    padding: 8px 13px;
    border-radius: 999px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.primary-mini-btn {
    color: #fff;
    background: var(--primary);
}

.secondary-mini-btn {
    color: var(--primary);
    background: var(--primary-soft);
}

.report-form .primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.report-hero-simple {
    padding-bottom: 14px;
}

.report-hero-caption,
.report-apply-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.report-hero-caption {
    margin-bottom: 8px;
}

.report-hero-caption h2,
.report-apply-caption h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.report-hero-caption span,
.report-apply-caption span {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.report-stats-single {
    grid-template-columns: 1fr;
}

.report-apply-caption {
    position: relative;
    margin-bottom: 12px;
    padding-left: 10px;
    color: var(--text);
}

.report-apply-caption::before {
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: var(--primary);
    content: "";
}

.report-apply-caption span {
    color: #8a97aa;
}

.report-apply-card {
    padding: 14px 14px 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.report-form-row,
.report-upload-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.report-form-row+.report-form-row,
.report-form-row+.report-upload-row,
.report-upload-row+.report-check,
.report-upload-row+.report-form-row {
    margin-top: 14px;
}

.report-form-row.is-textarea {
    align-items: stretch;
}

.report-form-label {
    display: block;
    padding-top: 12px;
    color: #66758a;
    font-size: 14px;
    line-height: 1.5;
}

.report-form-row.is-textarea .report-form-label,
.report-upload-row .report-form-label {
    padding-top: 6px;
}

.report-form-control {
    min-width: 0;
}

.report-input,
.report-select,
.report-textarea {
    width: 100%;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    outline: 0;
    color: var(--text);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.report-input,
.report-select {
    height: 46px;
    padding: 0 14px;
}

.report-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #95a3b8 50%), linear-gradient(135deg, #95a3b8 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.report-input::placeholder,
.report-textarea::placeholder {
    color: #a5b1c2;
}

.report-input-unit {
    position: relative;
}

.report-input-unit .report-input {
    padding-right: 50px;
}

/* 时间选择输入框 */
.report-input-time {
    cursor: pointer;
    caret-color: transparent;
}

.report-input-time:empty::before {
    content: '请选择时间';
    color: #a5b1c2;
}

/* 列表加载更多 */
.tp-load-more {
    text-align: center;
    padding: 14px 0 6px;
    font-size: 13px;
    color: #8896a6;
}

.tp-load-more.tp-load-error {
    color: #ff4f75;
    cursor: pointer;
}

/* 时间选择弹窗 */
.time-picker-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 9000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.time-picker-panel {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    animation: slideUp .25s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.time-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
}

.time-picker-header span {
    font-size: 16px;
    font-weight: 600;
    color: #1a2332;
}

.time-picker-header button {
    background: none;
    border: none;
    font-size: 15px;
    color: #5b8def;
    cursor: pointer;
    padding: 4px 8px;
}

.tp-date-row,
.tp-time-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 20px;
}

.tp-time-row {
    padding-top: 0;
    padding-bottom: 24px;
}

.tp-time-label {
    font-size: 14px;
    color: #8896a6;
    margin-right: 4px;
}

.tp-select {
    appearance: none;
    -webkit-appearance: none;
    background: #f4f7fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238896a6'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 10px 6px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    padding: 10px 28px 10px 12px;
    font-size: 15px;
    color: #1a2332;
    outline: none;
    min-width: 0;
}

.tp-sel-year {
    width: 90px;
}

.tp-sel-month,
.tp-sel-day {
    width: 68px;
}

.tp-sel-hour,
.tp-sel-minute {
    width: 72px;
}

.tp-sep {
    font-size: 16px;
    font-weight: 600;
    color: #8896a6;
}

.report-input-unit em {
    position: absolute;
    right: 14px;
    top: 50%;
    color: #ff4f75;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    transform: translateY(-50%);
}

.report-textarea {
    min-height: 104px;
    padding: 12px 14px 30px;
    resize: none;
    line-height: 1.6;
}

.report-counter {
    margin-top: -24px;
    padding-right: 12px;
    color: #a2afbf;
    text-align: right;
    font-size: 12px;
    pointer-events: none;
}

.report-upload-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border: 1px dashed #d6dfeb;
    border-radius: 14px;
    color: #94a3b8;
    background: #f8fbff;
}

.report-upload-box b {
    font-size: 24px;
    line-height: 1;
}

.report-upload-box span {
    margin-top: 4px;
    font-size: 13px;
}

.report-upload-hint {
    margin: 10px 0 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
}

.report-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    color: #66758a;
    font-size: 13px;
    line-height: 1.6;
}

.report-check input {
    margin-top: 2px;
}

.report-check span {
    flex: 1;
}

.report-submit-btn {
    margin-top: 16px;
}

.report-detail-panel {
    border-top: 1px solid var(--line);
}

.report-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-timeline-item {
    padding: 12px;
    border: 1px solid #e5edfb;
    border-radius: 14px;
    background: #fbfdff;
}

.report-timeline-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.report-timeline-head b {
    color: var(--text);
    font-size: 14px;
}

.report-timeline-head span,
.report-timeline-user,
.report-timeline-desc {
    color: var(--muted);
    font-size: 12px;
}

.report-timeline-user,
.report-timeline-desc {
    margin: 8px 0 0;
    line-height: 1.6;
}

.report-timeline-desc {
    color: #334155;
    font-size: 13px;
}

.report-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.report-file-list a {
    max-width: 100%;
    padding: 6px 9px;
    overflow: hidden;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 374px) {
    .alert-head {
        flex-direction: column;
        align-items: stretch;
    }

    .alert-head h2 {
        margin-top: 0;
    }

    .alert-tabs {
        max-width: none;
    }
}

@media (min-width: 640px) {
    .content {
        padding: 18px clamp(18px, 3vw, 32px);
    }

    .page,
    .login-shell,
    .shell-page {
        width: 100%;
        min-height: 100vh;
    }

    .topbar {
        padding-right: clamp(52px, 6vw, 96px);
        padding-left: clamp(52px, 6vw, 96px);
    }

    .wc-point-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .stat-grid,
    .quick-grid,
    .report-stats,
    .report-meta-grid,
    .rt-summary {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* 报备记录标题数量标签 */
.report-count-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #1958ce;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}