.header {
    background-color: #707a93;
    color: white;
    padding: 0.2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 3.2rem; /* 固定高度（可依需要調整） */
    margin: 0 1rem;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: sticky;
    top: 0;
    z-index: 70;
}

.header_container {
    /* max-width: 1200px; */
    width: 98%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header_left {
    flex-shrink: 0;
}

.header_right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 0;
}

.header_right-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header_setting {
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    position: relative; /* ⭐ 讓 dropdown 定位依附於這裡 */
    cursor: pointer;
    gap: 5px;
}

/* 下拉選單本體 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0;
    margin-top: 0.4rem;
    min-width: 160px;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    list-style: none;
}

/* 選單項目 */
.dropdown-menu li {
    padding: 0.5rem 1rem;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.95rem;
    border-bottom: 1px solid #e0e0e0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

/* 滑過效果 */
.dropdown-menu li:hover {
    background-color: #f0f0f0;
}

.header_title {
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
}

.header_name,
.header_date {
    font-size: 1rem;
    font-weight: bold;
}

.header_setting {
    font-size: 1rem;
    font-weight: bold;
    gap: 5px;
}

.header_menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.6rem;
    padding: 0.25rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header_menu-toggle--active,
.header_menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1000px) {
    .header_right {
        gap: 0.5rem;
    }

    .header_right-info {
        display: none;
    }

    .header_menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
:root {
    --z-sidebar-wrapper: 1000;
    --z-sidebar: 100;
    --z-subicon: 90;
    --z-submenu: 80;
}

.sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 400px; /* 預留最大寬度 */
    z-index: var(--z-sidebar-wrapper);
    pointer-events: none; /* 防止 wrapper 吃掉事件 */
}

.sidebar-mobile__backdrop {
    display: none;
}

.submenu-panel {
    position: absolute;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding-top: 8px; /* 頂部留空給 header */
    z-index: 1000;
    overflow-y: auto; /* 允許垂直滾動當內容超過高度時 */
}

/* Submenu 標題 + 分隔線 */
.submenu-header {
    padding: 0 16px 8px;
}

.submenu-title {
    color: #fff;
    text-align: center;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1.1px;
}

.submenu-divider {
    display: block;
    width: 100%;
    height: 2px;
    margin-bottom: 8px;
}

/* submenu list items
.submenu-item {
    padding: 8px 16px;
    cursor: pointer;
} */
.submenu-item:hover {
    background-color: #4a5e7a;
}
.sidebar-container,
.subicon-panel,
.submenu-panel {
    pointer-events: auto;
}

.sidebar-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 100dvh;
    background-color: #101727;
    z-index: var(--z-sidebar);
    border-radius: 0 20px 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 0;
    box-sizing: border-box;
    position: relative;
}

.sidebar__list,
.sidebar__bottom {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.sidebar__item {
    width: 100%;
    display: flex;
    justify-content: center;
}

.sidebar__link {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.sidebar__label {
    display: none;
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar__icon {
    font-size: 1.8rem;
}

.account-dropdown {
    position: absolute;
    left: calc(100% + 16px);
    bottom: 30px;
    background: #1d2539;
    border-radius: 12px;
    padding: 12px 0;
    width: 230px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: var(--z-submenu);
}

.account-dropdown__item {
    background: transparent;
    border: none;
    color: #f1f5f9;
    text-align: left;
    padding: 10px 18px;
    font-size: 0.95rem;
    width: 100%;
    cursor: pointer;
}

.account-dropdown__item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.subicon-panel {
    position: absolute;
    top: 0;
    left: 55px;
    width: 100px;
    height: 100dvh;
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
    background-color: #545b69;
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    z-index: var(--z-subicon);
    box-sizing: border-box;
}

.subicon-item {
    padding-left: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.subicon-label {
    display: none;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.submenu-icon {
    width: 44px;
    height: 44px;
}

.submenu-panel {
    position: absolute;
    top: 0;
    width: 300px;
    height: 100dvh;
    background-color: #323f50;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    z-index: var(--z-submenu);
    box-sizing: border-box;
}

.submenu-panel--subicon {
    padding-left: 25px;
    left: 135px;
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
}

.submenu-panel--direct {
    width: 265px;
    padding-left: 30px;
    left: 55px;
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
}

/* 1) 讓整個清單的每一列，橫向一律靠左 */
.submenu-panel {
    align-items: flex-start !important; /* 關鍵：column 方向下，這是水平對齊 */
}

/* 2) 每一列內容（燈號 + 文字）用 flex 左對齊 */
.submenu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    font-size: 20px;
    gap: 6px; /* 燈號與文字間距 */
    padding: 8px 0 8px 16px; /* 左右縮小，視覺更貼左 */
    margin-left: 0 !important; /* 防止被其他規則推到右邊 */
    margin-right: 0 !important;
    margin-bottom: 15px;
    width: auto; /* 避免有規則把它撐滿後再做置右 */
    text-align: left; /* 若有全域 text-align:right 也壓回來 */
}

/* 3) 燈號尺寸固定 */
.status-dot {
    width: 8px !important;
    height: 8px !important;
    flex-shrink: 0;
}

@media (max-width: 1000px) {
    .sidebar-container {
        width: 72px;
        border-radius: 0 15px 15px 0;
    }
}

@media (max-width: 768px) {
    .sidebar-mobile__backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        transition: opacity 0.2s ease;
        pointer-events: none;
        z-index: 900;
    }

    .sidebar-mobile__backdrop--visible {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-wrapper--mobile {
        top: 3.2rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        height: auto;
        padding: 0 0 1rem;
        transform: translateY(-120%);
        transition: transform 0.25s ease;
        box-sizing: border-box;
    }

    .sidebar-wrapper--mobile.sidebar-wrapper--mobile-open {
        transform: translateY(0);
        pointer-events: auto;
    }

    .sidebar-wrapper--mobile .sidebar-container {
        position: relative;
        width: 100%;
        height: auto;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.45);
    }

    .sidebar-wrapper--mobile:not(.sidebar-wrapper--mobile-open) .sidebar-container {
        box-shadow: none;
    }

    .sidebar-wrapper--mobile .sidebar {
        padding: 20px 16px;
    }

    .sidebar-wrapper--mobile .sidebar__list,
    .sidebar-wrapper--mobile .sidebar__bottom {
        width: 100%;
        align-items: stretch;
        gap: 10px;
        margin: 0;
    }

    .sidebar-wrapper--mobile .sidebar__bottom {
        margin-top: 16px;
    }

    .sidebar-wrapper--mobile .sidebar__item {
        justify-content: flex-start;
        width: 100%;
    }

    .sidebar-wrapper--mobile .sidebar__link {
        justify-content: flex-start;
        padding: 10px 12px;
        gap: 12px;
        width: 100%;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 14px;
    }

    .sidebar-wrapper--mobile .sidebar__label {
        display: inline-flex;
        font-size: 1.05rem;
    }

    .sidebar-wrapper--mobile .submenu-icon {
        display: none;
    }

    .sidebar-wrapper--mobile .subicon-panel,
    .sidebar-wrapper--mobile .submenu-panel {
        position: static;
        width: 100%;
        height: auto;
        border-radius: 16px;
        box-shadow: none;
        margin-top: 12px;
    }

    .sidebar-wrapper--mobile .subicon-panel {
        background-color: #2d3445;
        padding: 16px;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .sidebar-wrapper--mobile .subicon-item {
        padding-left: 0;
        margin-bottom: 0;
        flex: 0 0 auto;
        justify-content: flex-start;
        gap: 12px;
    }

    .sidebar-wrapper--mobile .subicon-item .submenu-icon {
        display: none;
    }

    .sidebar-wrapper--mobile .subicon-label {
        display: inline-flex;
        font-size: 1.05rem;
    }

    .sidebar-wrapper--mobile .submenu-panel {
        background-color: #1f2735;
        padding: 16px;
    }

    .sidebar-wrapper--mobile .submenu-panel--direct {
        padding-left: 16px;
    }

    .sidebar-wrapper--mobile .account-dropdown {
        position: relative;
        left: 0;
        bottom: auto;
        width: 100%;
        margin-top: 12px;
        box-shadow: none;
        padding: 12px;
        border-radius: 16px;
        background: rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .sidebar-wrapper--mobile .account-dropdown__item {
        border-radius: 12px;
        margin: 0;
        padding: 10px 14px;
    }

    .sidebar-wrapper--mobile .submenu-item {
        width: 100%;
        padding-left: 0;
    }

    .instrument-modal {
        position: fixed;
        inset: 0;
        z-index: 1300;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
    }

    .instrument-modal__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
    }

    .instrument-modal__panel {
        position: relative;
        background: #0f1828;
        border-radius: 20px;
        width: min(420px, calc(100% - 1.5rem));
        max-height: 78vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5);
    }

    .instrument-modal__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        color: #f1f5f9;
        font-size: 1.1rem;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .instrument-modal__close {
        border: none;
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
        padding: 6px 14px;
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 1px;
        cursor: pointer;
    }

    .instrument-modal__body {
        padding: 18px 22px 24px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .instrument-group__title {
        color: #9bd5ff;
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 10px;
        letter-spacing: 0.5px;
    }

    .instrument-group__devices {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .instrument-device {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.04);
        color: #f8fafc;
        border-radius: 12px;
        padding: 10px 14px;
        font-size: 1rem;
        text-align: left;
        cursor: pointer;
    }

    .instrument-device__status {
        width: 12px !important;
        height: 12px !important;
    }

    .instrument-device__name {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .instrument-group__empty {
        color: #94a3b8;
        font-size: 0.95rem;
    }
}
.footer {
    /* background-color: #; */
    color: #4c566a;
    /* padding: 1rem; */
    text-align: center;
    height: 50px;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}
.layout__main-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-left: 72px;
}

.layout__main-content {
    flex: 1;
    padding: 1.5rem;
    padding-bottom: 0;
    overflow-y: auto;
}

/* sidebar popup */
.sidebar-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.sidebar-popup__content {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    width: calc(100vw - 2rem);
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.close-btn {
    margin-top: 1rem;
    background-color: #1e40af;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.layout {
    display: flex;
    flex-direction: row; /* ← 重點：水平方向排列 */
    min-height: 100dvh; /* ← 我們為了修復 iPhone 多餘空間用的 */
    position: relative;
}

.layout__content {
    display: flex;
    flex: 1;
    padding-top: 3.2rem;
    min-height: calc(100vh - 3.2rem);
    margin-left: 72px;
}

.layout-sidebar {
    margin: 0;
}

.layout__main {
    flex: 1;
    padding: 1.5rem;
}

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

    .layout__main-container {
        padding-left: 0;
    }

    .layout__main-content {
        padding: 1rem;
    }
}
.map__status {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #475569;
    background: #f8fafc;
    border-radius: 8px;
}

.map-marker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.85);
    pointer-events: auto;
}

.map-marker__dot {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--marker-color, #134e4a);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
}

.map-marker__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
    color: #0f172a;
    white-space: nowrap;
}

.map-marker__status {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--status-color, #94a3b8);
    border: 1px solid rgba(15, 23, 42, 0.15);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}
.state-container {
    position: relative;
    overflow: hidden;
    height: 20px; /* Adjust based on content height */
    display: flex;
    align-items: center;
}

.alert-text {
    position: absolute;
    width: 100%;
    animation: slideIn 0.5s ease-in-out;
    --marquee-offset: 0px;
    left: 0;
    text-align: left;
}

.alert-text.marquee {
    width: max-content;
    display: inline-block;
    white-space: nowrap;
    animation: marquee 7s linear infinite;
}

/* Mobile marquee effect */
@media (max-width: 500px) {
    .state-container {
        height: 28px;
    }

    .alert-text {
        white-space: nowrap;
    }
}

.alert-yellow {
    color: #daa520;
}

.alert-red {
    color: red;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes marquee {
    0%,
    30% {
        transform: translateX(0);
    }
    80% {
        transform: translateX(calc(-1 * var(--marquee-offset, 0px)));
    }
    100% {
        transform: translateX(calc(-1 * var(--marquee-offset, 0px)));
    }
}
.card-container {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    /* max-width: 1200px; */
    margin: 20px auto;
}

.card-header {
    background-color: #559ab3;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding: 20px 0;
}

.card--content {
    padding: 30px;
    background-color: #ffffff;
}
.RA-container {
    position: relative;
    width: 100%;
    height: 60vh;
}
.RA-container canvas {
    width: 100% !important;
    height: 100% !important;
}
.alc-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ALC-container {
    height: 400px;
    position: relative;
}

.ALC-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.hover-value {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adaptive columns */
    gap: 20px;
    padding: 20px;
}

.grid-item {
    width: 100%;
    min-height: 300px; /* Minimum height instead of fixed */
    max-height: 60vh; /* Cap height relative to viewport */
    display: flex;
    flex-direction: column;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    flex: 1; /* Allow chart to fill available space */
}

/* Media query for smaller screens */
/* @media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr; /* Single column on small screens */
/* } */

/* .grid-item {
    min-height: 250px; /* Smaller minimum height for mobile */
/* max-height: 50vh;
  } */
/* } */
.grid-container-ow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Adaptive columns */
    gap: 10px;
    padding: 10px;
}

.grid-item-ow {
    text-align: center;
    width: 100%;
    min-height: 220px;
    max-height: 40vh;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    position: relative;
}

.chart-box {
    width: 100%;
    flex: 1; /* 讓圖表穩定佔滿剩餘空間 */
    display: flex;
    align-items: center; /* 垂直置中 SVG */
    justify-content: center; /* 水平置中 SVG */
    min-height: 220px; /* 視你的 viewBox 調整 */
}

/* 只保留單行高度，避免換行位移 */
.sensor-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    min-height: 44px;
    white-space: normal;
    text-overflow: unset;
}

.sensor-label {
    font-size: 12px;
    text-align: center;
}

/* 無資料徽章 */
.sensor-name .badge {
    display: block;
    padding: 0 6px;
    font-size: 10px;
    line-height: 16px;
    height: 16px;
    border-radius: 8px;
    background: #eee;
    color: #666;
}

/* SVG 保持在 chart-box 內自適應 */
svg {
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

/* Tooltip styling */
.tooltip {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    pointer-events: none; /* Prevent tooltip from interfering with hover */
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
    white-space: nowrap; /* Prevent text wrapping */
}

.badge.is-hidden {
    visibility: hidden;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .grid-container-ow {
        grid-template-columns: repeat(
            auto-fit,
            minmax(140px, 1fr)
        ); /* Smaller min-width for mobile */
    }

    .grid-item-ow {
        min-height: 150px; /* Smaller minimum height for mobile */
        max-height: 30vh;
    }

    .sensor-name {
        font-size: 10px; /* Smaller font for mobile */
    }

    .chart-box {
        min-height: auto;
    }
}

@media (max-width: 500px) {
    .grid-container-ow {
        grid-template-columns: 1fr 1fr; /* 2 columns on very small screens */
    }
    .chart-box {
        min-height: auto;
    }
}

/* TI.css */
.ti-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
}

.ti-row {
    width: 100%;
    height: 50vh; /* 每列圖高度，依需求調整 */
}

.ti-row canvas {
    /* 確保 Chart.js 能撐滿容器 */
    width: 100% !important;
    height: 100% !important;
}
.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 重點: 用 min-height 而非 height，避免擠壓問題 */
}

.dashboard-state {
    border: 2px solid #4caf50;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.dashboard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-map {
    width: 100%;
    height: 600px;
    padding-top: 15px;
}

.charts-container {
    width: 100%;
    padding: 20px 0;
}

/* 手機響應式樣式 */
@media (max-width: 500px) {
    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-map {
        width: 100%;
        text-align: center;
    }
}
/* =========================
   通用 Card 基础样式
   ========================= */
.card {
    background-color: #fafafa;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #444;
    text-align: center;
    margin: 0;
}

/* Card 内容主容器 */
.card-content {
    display: grid;
    row-gap: 16px;
}

/* =========================
   地质敏感卡片专用
   ========================= */
/* 每一项灰色 pill */
.geological .card-content .item {
    background: #e0e0e0;
    border-radius: 8px;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* 分隔线 */
.geological .card-content .item::before {
    content: '';
    width: 60%;
    height: 1px;
    background: #bbb;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* 上面 label */
.geological .card-content .item .label {
    font-size: 18px;
    color: #2a2c2e;
    margin-bottom: 4px;
    z-index: 1;
    /* background: #e0e0e0; */
    padding: 0 8px;
}

/* 下面 value */
.geological .card-content .item .value {
    font-size: 18px;
    /* font-weight: 500; */
    color: #2a2c2e;
    margin-top: 4px;
    z-index: 1;
    /* background: #e0e0e0; */
    padding: 0 8px;
}

/* ========== 設備狀態卡片專用 ========== */
.card.equipment .card-content {
    display: grid;
    /* 左列自适应宽度，右列剩余空间 */
    grid-template-columns: max-content 1fr;
    row-gap: 12px;
    column-gap: 16px;
    align-items: start;
}

.card.equipment .label {
    font-size: 18px;
    color: #666;
    align-self: center;
    letter-spacing: 0.02em;
}

.card.equipment .value-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card.equipment .value {
    font-size: 18px;
    color: #222;
    font-weight: 500;
    display: flex;
    align-items: center;
    letter-spacing: normal;
}

.card.equipment .description {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
    line-height: 1.4;
}

.card.equipment .history-btn {
    margin-top: auto;
}

.history-btn {
    width: 100%;
    padding: 12px;
    background-color: #888;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.history-btn:hover {
    background-color: #666;
}

/* =========================
   下载卡片专用
   ========================= */
.download .card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.download .download-btn {
    margin-top: auto;
}

.download-btn {
    width: 100%;
    padding: 12px;
    background-color: #888;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background-color: #666;
}

/* 媒體查詢：小於 850px 時改為垂直排列 */
@media (max-width: 850px) {
    .cards-container {
        flex-direction: column;
        gap: 16px; /* 直排時上下間距 */
    }
    /* 確保上下卡片都滿版寬度 */
    .cards-container > .left-column,
    .cards-container > .card.equipment {
        flex: none;
        width: 100%;
    }
}
/* =========================
   Modal Overlay 與 Modal 彈窗樣式
   ========================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    padding: 32px 24px 24px 24px;
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
}

/* 右上角打叉按鈕 */
.modal .close-btn {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}
.modal .close-btn:hover {
    color: #222;
}

/* Maintenance records table */
.maint-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.maint-table thead th {
    background: #1f2937; /* dark gray */
    color: #fff;
    font-weight: 600;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #111827;
}
.maint-table tbody td {
    background: #fff;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    word-break: break-word;
    white-space: pre-wrap;
}
.maint-actions {
    display: flex;
    gap: 8px;
}
.maint-btn-edit {
    background: #f59e0b; /* amber-500 */
    color: #111;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
}
.maint-btn-del {
    background: #ef4444; /* red-500 */
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
}
.maint-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
}

.led-blink {
    animation: blink 1s infinite;
}
.filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 日期輸入框 */
.filter-group input[type='date'] {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* 預設按鈕樣式 */
.filter-btn {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #888;
    border-radius: 4px;
    background-color: #fff;
    color: #444;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* 點擊／選取後的狀態 */
.filter-btn.active {
    background-color: #666;
    color: #fff;
    border-color: #666;
}

/* 搜尋按鈕 */
.search-btn {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    background-color: #0baab3;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #099698;
}

/* 這段放到 Filter.css 最後 */
.filter-group.full-row {
    flex-basis: 100%;
}

.filter-group.search-group {
    margin-left: auto;
}
.alc-chart-container {
    width: 100%;
    height: 100%;
}

.chart-title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #444;
    text-align: center;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.chart-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.chart-header .chart-title {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
    color: #444;
    text-align: left;
}

.chart-download-button {
    padding: 6px 14px;
    font-size: 14px;
    color: #fff;
    background-color: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chart-download-button:hover {
    background-color: #1d4ed8;
}

.chart-download-button:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

.chart-reset-button {
    padding: 6px 14px;
    font-size: 14px;
    color: #1f2937;
    background-color: #e5e7eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chart-reset-button:hover {
    background-color: #d1d5db;
}

.chart-reset-button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.chart-wrapper {
    height: 820px;
    width: 100%;
}

.chart-no-data {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #666;
    font-size: 16px;
}

.chart-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background-color: #f5f5f5;
    border-radius: 8px;
    color: #666;
}
.ow-chart-container {
    width: 100%;
    height: 100%;
}

.chart-title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #444;
    text-align: center;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.chart-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.chart-header .chart-title {
    margin-bottom: 0;
    text-align: left;
}

.chart-download-button {
    padding: 6px 14px;
    font-size: 14px;
    color: #fff;
    background-color: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chart-download-button:hover {
    background-color: #1d4ed8;
}

.chart-download-button:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

.chart-reset-button {
    padding: 6px 14px;
    font-size: 14px;
    color: #1f2937;
    background-color: #e5e7eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chart-reset-button:hover {
    background-color: #d1d5db;
}

.chart-reset-button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.chart-wrapper {
    height: 620px;
    width: 95%;
    margin: auto;
}

.chart-no-data {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #666;
    font-size: 16px;
}

.chart-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background-color: #f5f5f5;
    border-radius: 8px;
    color: #666;
}
.ti-chart-container {
    width: 100%;
    height: 100%;
}

.chart-title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #444;
    text-align: center;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.chart-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.chart-header .chart-title {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
    color: #444;
    text-align: left;
}

.chart-download-button {
    padding: 6px 14px;
    font-size: 14px;
    color: #fff;
    background-color: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chart-download-button:hover {
    background-color: #1d4ed8;
}

.chart-download-button:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

.chart-reset-button {
    padding: 6px 14px;
    font-size: 14px;
    color: #1f2937;
    background-color: #e5e7eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chart-reset-button:hover {
    background-color: #d1d5db;
}

.chart-reset-button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.chart-wrapper {
    height: 820px;
    width: 100%;
}

.chart-no-data {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #666;
    font-size: 16px;
}

.chart-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background-color: #f5f5f5;
    border-radius: 8px;
    color: #666;
}
/* src/pages/Device.css */

.device-container {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 24px;
}

/* header 區塊 */
.device-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-bottom: 24px;
}

.device-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.cards-container {
    display: flex;
    align-items: stretch; /* 强制左右两列同高 */
    gap: 16px; /* 左右列之间的间距 */
}

/* 左列和右侧卡片都占一半宽度 */
.cards-container > .left-column,
.cards-container > .card.equipment {
    flex: 1;
}

/* 左列内部上下两张卡片对齐 */
.left-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 上下分散 */
    gap: 16px; /* 可选：两张卡片之间的固定间距 */
}

/* 如果需要，确保每张卡都能撑满传下来的高度 */
.cards-container > .card {
    display: flex;
    flex-direction: column;
}

/* 左侧 badge/Icon */
.device-badge {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* 右侧标题文字 */
.device-title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #5b5b5b;
}

.device-map {
    width: 100%;
    height: 600px;
    padding-top: 15px;
}

.device-filter {
    padding-top: 20px;
    width: 100%;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.device-chart {
    width: 100%;
    margin: 24px 0;
    min-height: 400px;
}

.device-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 2;
    text-align: center;
    color: #4a4a4a;
    font-size: 16px;
    backdrop-filter: blur(2px);
}
._container_crdt6_1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #ecf1fa;
}

._content_crdt6_10 {
    width: 100%;
    max-width: 500px;
}

._content_crdt6_10 h2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 10vh;
    text-align: center;
    border-radius: 20px 20px 0px 0px;
    margin: 0;
    background-color: #708cb3;
    color: white;
}

._content_crdt6_10 form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 30vh;
    background-color: white;
    border-radius: 0px 0px 20px 20px;
}

._formGroup_crdt6_38 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

._formGroup_crdt6_38 label {
    color: #8e8e93;
    text-align: center;
    font-family: Inter;
    font-size: 22px;
    font-style: normal;
    font-weight: 100;
    line-height: normal;
    letter-spacing: 2.6px;
    margin-right: 10px;
}

._formGroup_crdt6_38 input {
    width: 70%;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #8e8e93;
    background: #f3f3f3;
    font-size: 15px;
    font-family: Inter;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.5px;
    padding: 0 10px;
}

._formButton_crdt6_74 {
    width: 30%;
    height: 45px;
    border-radius: 20px;
    border: none;
    background-color: #68b2e0;
    color: white;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 2.6px;
}
.account-page {
    padding: 24px clamp(16px, 3vw, 48px) 40px;
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: linear-gradient(135deg, #fdfefe 0%, #f5f8ff 60%, #edf2fb 100%);
    color: #1f2a44;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    align-self: stretch;
}

.account-page__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.account-page__eyebrow {
    margin: 0;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0ea5e9;
}

.account-page__header h1 {
    margin: 4px 0;
    font-size: 28px;
    color: #1c2550;
}

.account-page__subtitle {
    margin: 4px 0 0;
    color: #475569;
    font-size: 14px;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 20px;
    width: 100%;
}

.account-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.07);
    box-sizing: border-box;
}

.account-card__header h2 {
    margin: 0;
    font-size: 20px;
    color: #1f2a44;
}

.account-card__header p {
    margin: 4px 0 0;
    color: #5b6b87;
    font-size: 14px;
}

.account-card--full {
    width: 100%;
    box-sizing: border-box;
}

.account-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

.account-field:last-of-type {
    border-bottom: none;
}

.account-field__label {
    color: #5a6884;
    font-size: 14px;
}

.account-field__value {
    color: #1f2a44;
    font-weight: 600;
    font-size: 15px;
    text-align: right;
    word-break: break-all;
}

.account-btn {
    margin-top: 4px;
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #6ed4ff, #3fb7f3);
    color: #0f172a;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 20px rgba(63, 183, 243, 0.3);
}

.account-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.account-btn--secondary {
    width: auto;
    background: rgba(224, 242, 254, 0.6);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.4);
    padding: 8px 16px;
}

.account-token {
    display: flex;
    gap: 12px;
    align-items: center;
}

.account-token__value {
    flex: 1;
    background: rgba(247, 249, 255, 0.9);
    border-radius: 12px;
    padding: 10px 12px;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 13px;
    color: #1f2a44;
    word-break: break-all;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.account-steps {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
}

.account-step__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6ed4ff, #3fb7f3);
    margin-top: 6px;
    flex-shrink: 0;
}

.account-step__title {
    font-weight: 700;
    color: #1f2a44;
    font-size: 14px;
}

.account-step__desc {
    color: #5b6b87;
    font-size: 13px;
}

.account-step__link {
    color: #0284c7;
    text-decoration: underline;
    font-size: 13px;
    word-break: break-all;
}

.account-field--stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.account-btn--inline {
    width: auto;
    align-self: flex-start;
    padding: 10px 16px;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-input__label {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.account-input input {
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 12px;
    padding: 12px 14px;
    background: #f7faff;
    font-size: 14px;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
        background 0.2s ease;
}

.account-input input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    background: #fff;
}

.account-feedback {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.account-feedback--success {
    background: rgba(16, 185, 129, 0.1);
    color: #0f5132;
    border-color: rgba(16, 185, 129, 0.35);
}

.account-feedback--error {
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.35);
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    width: 100%;
}

.device-group {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.device-group__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.device-group__label {
    font-size: 15px;
    color: #1f2a44;
    font-weight: 600;
}

.device-group__count {
    font-size: 13px;
    color: #0ea5e9;
}

.device-group__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account-device-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-device-row {
    width: 100%;
    background: #f7faff;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    color: #1f2a44;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    word-break: break-all;
    box-sizing: border-box;
}

.account-device-pill {
    background: rgba(14, 165, 233, 0.15);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    color: #0369a1;
}

.account-device-group__empty {
    color: #64748b;
    font-size: 14px;
}

.device-mobile {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.device-select {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 10px 16px;
    font-size: 14px;
    background: #fff;
    color: #0f172a;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #0ea5e9 50%),
        linear-gradient(135deg, #0ea5e9 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 4px),
        calc(100% - 15px) calc(50% - 4px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.device-tab-panel {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 16px;
}

@media (max-width: 768px) {
    .account-page {
        padding: 20px;
    }

    .account-token {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-btn--secondary {
        width: 100%;
        text-align: center;
    }

    .device-grid--desktop {
        display: none;
    }

    .device-mobile {
        display: flex;
    }
}

@media (min-width: 769px) {
    .device-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .device-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}
._container_1lv37_1 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #e9f1ff 45%, #f8fbff 100%);
    box-sizing: border-box;
}

._card_1lv37_11 {
    width: min(520px, 100%);
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-sizing: border-box;
}

._header_1lv37_21 h1 {
    margin: 6px 0 4px;
    color: #0f172a;
    font-size: 26px;
}

._eyebrow_1lv37_27 {
    margin: 0;
    color: #0ea5e9;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
}

._lead_1lv37_36 {
    margin: 4px 0 16px;
    color: #475569;
    line-height: 1.6;
    font-size: 14px;
}

._form_1lv37_43 {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

._field_1lv37_49 {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #1f2a44;
}

._field_1lv37_49 input {
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    background: #f8fbff;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

._field_1lv37_49 input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
    background: #ffffff;
}

._alertError_1lv37_74,
._alertSuccess_1lv37_75 {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    border: 1px solid transparent;
    line-height: 1.5;
}

._alertError_1lv37_74 {
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.35);
}

._alertSuccess_1lv37_75 {
    background: rgba(16, 185, 129, 0.1);
    color: #0f5132;
    border-color: rgba(16, 185, 129, 0.35);
}

._submit_1lv37_95 {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #6ed4ff, #3fb7f3);
    color: #0f172a;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 24px rgba(63, 183, 243, 0.3);
}

._submit_1lv37_95:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

._secondary_1lv37_114 {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    color: #0f172a;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

._secondary_1lv37_114:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

@media (max-width: 640px) {
    ._card_1lv37_11 {
        padding: 22px;
    }
}
.app {
    max-width: 100%;
    margin: 0 auto;
    /* text-align: center; */
}
body {
    margin: 0;
}
