@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* ========================================================
   🎨 [마법의 색상 가방 정의 구역]
   ======================================================== */
:root, body.theme-light {
    --bg-main: #f1f5f9;
    --bg-card: #ffffff;
    --border-card: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --header-bg: #ffffff;
    --header-border: #e2e8f0;
    --clock-bg: #f8fafc;
    --clock-text: #334155;
    --clock-border: #e2e8f0;
    --system-link-arrow: #1e3a8a;
    --footer-bg: #ffffff;
    --footer-border: #e2e8f0;
    --banner-gradient: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
}

/* 🌌 블루 테마: 확실한 딥블루/네이비 아이덴티티 */
body.theme-blue {
    --bg-main: #0a1128;          /* 묵직한 딥블루 베이스 */
    --bg-card: #101f42;          /* 카드는 조금 더 선명한 파란 기운의 네이비 */
    --border-card: #1e3a8a;      /* 카드 테두리를 확실한 블루 톤으로 고정 */
    --text-primary: #f1f5f9;     /* 쨍한 화이트 대신 부드러운 오프화이트 */
    --text-secondary: #93c5fd;   /* 서브 글씨는 살짝 하늘색 빛을 띄게 하여 차별화 */
    --header-bg: #000814;
    --header-border: #1e3a8a;
    --clock-bg: #1d4ed8;         /* 시계 영역에 포인트 블루 */
    --clock-text: #ffffff;
    --clock-border: #3b82f6;
    --system-link-arrow: #60a5fa;
    --footer-bg: #000814;
    --footer-border: #1e3a8a;
    --banner-gradient: linear-gradient(135deg, rgba(10, 17, 40, 0.6) 0%, rgba(16, 31, 66, 0.8) 100%);
}

/* 🌙 다크 테마: 눈이 편안한 오리지널 무채색 블랙 (기본 설정 추천) */
body.theme-dark {
    --bg-main: #0f172a;          /* 사무실에서 가장 눈이 편한 짙은 슬레이트 차콜 */
    --bg-card: #1e293b;          /* 카드는 약간 밝은 흑철색 */
    --border-card: #334155;      /* 눈에 거슬리지 않는 차분한 테두리 */
    --text-primary: #cbd5e1;     /* 🔥 쨍한 화이트(#ffffff)를 톤다운하여 사무실 글자 번짐 방지 */
    --text-secondary: #94a3b8;   /* 차분한 회색 톤 설명글 */
    --header-bg: #0f172a;
    --header-border: #1e293b;
    --clock-bg: #334155;
    --clock-text: #f1f5f9;
    --clock-border: #475569;
    --system-link-arrow: #94a3b8;
    --footer-bg: #0f172a;
    --footer-border: #1e293b;
    --banner-gradient: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.7) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.25s, color 0.25s;
}

a {
    text-decoration: none;
    color: inherit;
}

/* [1] 최상단 미니멀 고정 헤더 바 */
.header-outer {
    width: 100%;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: background-color 0.25s, border-color 0.25s;
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.logo-area { display: flex; align-items: center; }
.logo-area img { height: 45px; width: auto; display: block; }

.search-container {
    flex: 1;
    max-width: 450px;
    margin: 0 30px;
    position: relative;
}

.search-input {
    width: 100%;
    height: 38px;
    background-color: var(--bg-main);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 20px 0 42px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    background-color: var(--bg-card);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    
    /* 🌟 [강제 이동 치트키] 위쪽 마진을 마이너스로 주면 브라우저가 묻지도 따지지도 않고 위로 들어 올립니다. */
    /* 눈에 확실히 띄게 위로 올리기 위해 -4px을 줬습니다. 보시고 숫자를 조절해 주세요! */
    margin-top: -1px; 
    
    font-size: 16px;
    pointer-events: none;
}

.header-right-clock-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--clock-bg);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--clock-border);
    font-size: 13px;
    font-weight: 500;
    color: var(--clock-text);
    transition: all 0.25s;
}

.clock-dot {
    width: 6px;
    height: 6px;
    background-color: #3b82f6;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.theme-select-wrapper {
    border-left: 1px solid var(--border-card);
    padding-left: 10px;
    display: flex;
    align-items: center;
}

.theme-select-wrapper select {
    background: transparent;
    border: none;
    color: var(--clock-text);
    font-size: 12px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    padding: 2px;
}
.theme-select-wrapper select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

/* [2] 100% 가로 전면 풀 배너 구역 */
.banner-outer-fluid {
    width: 100%;
    background-color: transparent;
    background-image: var(--banner-gradient), url('../images/banner-bg.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-bottom: 1px solid var(--border-card);
    transition: background-image 0.25s, border-color 0.25s;
}

.banner-inner-content {
    max-width: 1440px;
    margin: 0 auto;
    min-height: 240px;
    padding: 40px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.welcome-message-box {
    color: #ffffff;
    flex: 1;
    min-width: 320px;
}

.welcome-message-box h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lims-center-flag {
    display: inline-block;
    background-color: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #e4e7ec;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-message-box p { font-size: 14px; color: #94a3b8; }

.banner-right-gadget-zone {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.lims-hero-shortcut-card {
    width: 240px;
    height: 144px;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.lims-hero-shortcut-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 25px 30px -5px rgba(37, 99, 235, 0.25);
}

.lims-hero-top { display: flex; align-items: center; gap: 10px; }
.lims-hero-logo-circle {
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lims-hero-logo-circle img { width: 100%; height: 100%; object-fit: contain; }

.lims-hero-title-text h3 { color: #ffffff; font-size: 14px; font-weight: 700; }
.lims-hero-title-text span { color: #3b82f6; font-size: 10px; font-weight: 700; }

.lims-hero-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}
.lims-hero-shortcut-card:hover .lims-hero-action-row { color: #ffffff; }

.lims-hero-arrow {
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 10px;
}
.lims-hero-shortcut-card:hover .lims-hero-arrow { background-color: #3b82f6; }

.ai-assistant-glass-panel {
    width: 440px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
body.theme-blue .ai-assistant-glass-panel, body.theme-dark .ai-assistant-glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
}

.ai-title { font-size: 13px; font-weight: 700; color: #1e3a8a; margin-bottom: 10px; }
body.theme-blue .ai-title, body.theme-dark .ai-title { color: #38bdf8; }

.ai-button-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }

.ai-action-btn {
    background-color: #f1f5f9;
    border: 1px solid transparent;
    padding: 6px 2px 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
    color: #1e293b;

    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}
body.theme-blue .ai-action-btn, body.theme-dark .ai-action-btn { background-color: var(--bg-main); color: #cbd5e1; }
.ai-action-btn:hover { background-color: #1e3a8a; color: #ffffff; }
body.theme-blue .ai-action-btn:hover, body.theme-dark .ai-action-btn:hover { background-color: #3b82f6; color: #ffffff; }

.ai-input-wrapper { position: relative; }
.ai-chat-input {
    width: 100%;
    height: 34px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #000000;
    border-radius: 6px;
    padding: 0 45px 0 12px;
    font-size: 12px;
    outline: none;
}
body.theme-blue .ai-chat-input, body.theme-dark .ai-chat-input {
    background-color: var(--bg-main);
    border-color: var(--border-card);
    color: var(--text-primary);
}

.ai-send-btn {
    position: absolute;
    right: 5px;
    top: 4px;
    width: 26px;
    height: 26px;
    background-color: #1e3a8a;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* [3] 본문 구조 개편 - 가로 확장 배치 인프라 */
.portal-main-content {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 25px 24px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 🌟 🌟 🌟 [대수술 핵심] 상단 대시보드 구조 자체를 균등 4열 체제로 재건축 */
.main-top-dashboard-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 🌟 상단부 전체를 완전히 균등한 4열로 분할 */
    gap: 16px;
    width: 100%;
}

/* 6대 카드가 속한 구역을 가로 3칸(3열)만큼 독점선언 */
.layout-left-area {
    grid-column: span 3; /* 🌟 4열 중 3열을 차지함 */
    min-width: 0;
}

/* 6대 카드 내부 그리드는 기존 너비 비율 유지 */
.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.menu-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 165px; 
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
    gap: 12px;
}

.card-clr-blue { border-left: 5px solid #3b82f6; }
.card-clr-purple { border-left: 5px solid #6366f1; }
.card-clr-teal { border-left: 5px solid #0d9488; }
.card-clr-green { border-left: 5px solid #10b981; }
.card-clr-orange { border-left: 5px solid #ea580c; }
.card-clr-sky { border-left: 5px solid #0ea5e9; }

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 24px -8px rgba(15, 23, 42, 0.1);
    border-color: #3b82f6;
}

.card-left-text-flow {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-width: 0;
}

.card-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.card-emoji-circle { font-size: 15px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }

.bg-blue { background-color: rgba(59, 130, 246, 0.1); }
.bg-purple { background-color: rgba(99, 102, 241, 0.1); }
.bg-teal { background-color: rgba(13, 148, 136, 0.1); }
.bg-green { background-color: rgba(16, 185, 129, 0.1); }
.bg-orange { background-color: rgba(234, 88, 12, 0.1); }
.bg-sky { background-color: rgba(14, 165, 233, 0.1); }

.card-title-row h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.card-left-text-flow p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.45; margin-bottom: 12px; }

.arrow-icon-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.menu-card:hover .arrow-icon-circle { background-color: #3b82f6; color: #ffffff; }

.card-right-image-holder {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--border-card);
    padding: 8px;
}
.card-right-image-holder img { width: 100%; height: 100%; object-fit: contain; }

/* ========================================================
   📊 [너비 칼정렬 완공] 환경 모니터링 패널 (정확히 4번째 열 너비 강제 제어)
   ======================================================== */
.layout-right-area {
    grid-column: span 1; /* 🌟 4열 중 정확히 마지막 1칸(1열)만 매끄럽게 흡수 */
    width: 100%; /* 고정 px 너비를 과감히 파괴하고 부모 너비에 100% 흡수 */
    display: flex;
}

.realtime-monitoring-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 18px; 
    box-shadow: 0 6px 15px rgba(15, 23, 42, 0.02);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.monitoring-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.monitoring-header h2 { font-size: 15px; font-weight: 700; color: var(--text-primary); }

.live-indicator { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-secondary); font-weight: 700; }
.live-dot { width: 6px; height: 6px; background-color: #10b981; border-radius: 50%; }

.sensor-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 8px; 
    margin-bottom: 10px; 
}
.sensor-card { 
    background-color: var(--bg-main); 
    border: 1px solid var(--border-card); 
    border-radius: 10px; 
    padding: 8px 12px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sensor-title-row { font-size: 12px; font-weight: 700; color: var(--text-secondary); min-width: 65px; } /* 조금 더 유연하게 명칭 폭 축소 */
.sensor-data-row { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; min-width: 0; }
.sensor-value { font-size: 14px; font-weight: 700; color: #3b82f6; letter-spacing: -0.5px; white-space: nowrap; }

.mini-chart { width: 55px; height: 24px; display: flex; align-items: center; flex-shrink: 0; }
.mini-chart svg { width: 100%; height: 100%; overflow: visible; }
.mini-chart svg polyline { fill: none; stroke: #3b82f6; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.sensor-status { font-size: 11px; font-weight: 700; color: #10b981; min-width: 25px; text-align: right; flex-shrink: 0; }

.monitoring-summary-zone {
    border-top: 1px solid var(--border-card);
    padding: 8px 2px 4px 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.monitoring-summary-zone > div { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-secondary); }
.monitoring-summary-zone strong { font-weight: 700; color: var(--text-primary); }
.monitoring-summary-zone strong.ok { color: #10b981; background-color: rgba(16, 185, 129, 0.1); padding: 2px 6px; border-radius: 4px; font-size: 11px; }

.monitoring-footer-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #3b82f6;
    padding-top: 8px;
    border-top: 1px solid var(--border-card);
    cursor: pointer;
}

/* ========================================================
   🔗 [하단 매칭] 연결 시스템 및 고객지원 4열 마스터 구역 (상단과 100% 동일 폭)
   ======================================================== */
.bottom-infrastructure-master-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 25px;
}

.section-headline { font-size: 14px; font-weight: 700; color: var(--text-secondary); }

/* 🌟 상단 그리드(16px gap)와 완벽한 분할 수치 매칭 완료 */
.infrastructure-4-columns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 🌟 균등 4열 분배 */
    gap: 16px; /* 상단 메인 그리드 갭과 정확히 일치시켜 가로 라인 동기화 */
}

.system-bar-link {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    border-bottom: 3px solid #1e3a8a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
    height: 68px; 
    min-width: 0;
}
.system-bar-link:hover { border-color: #3b82f6; transform: translateY(-2px); }

.sys-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sys-logo-wrapper { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: #ffffff; border: 1px solid var(--border-card); border-radius: 50%; padding: 4px; flex-shrink: 0; }
.sys-logo-wrapper img { width: 100%; height: 100%; object-fit: contain; }

.sys-badge-fallback { width: 34px; height: 34px; border-radius: 50%; background-color: #1e3a8a; color: #ffffff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; border: 1px solid var(--border-card); flex-shrink: 0; }

.sys-name { font-weight: 700; font-size: 13px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys-desc { font-size: 11px; color: var(--text-secondary); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys-arrow-icon { color: var(--system-link-arrow); font-weight: bold; flex-shrink: 0; }

/* ========================================================
   📞 🌟 [최종 정답 디자인] 다른 카드들과 확실히 구별되는 고객지원 가젯
   ======================================================== */
.hihon-support-hotline-gadget {
    /* 🌟 핵심: 다른 카드(흰색+선)와 완전히 차별화되는 화사한 스카이 실크 배경 주입 */
    background-color: #e0f2fe; 
    border: none; /* 🌟 딱딱한 회색 테두리 선을 과감히 파괴 */
    border-left: 4px solid #0284c7; /* 왼쪽 마감선만 포인트로 주어 안내소 느낌 강조 */
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    min-width: 0;
    transition: all 0.25s ease;
}

/* 🌌 블루 관제 및 🌙 다크 야간 모드일 때는 그에 걸맞은 럭셔리 딥블루 톤으로 변신 */
body.theme-blue .hihon-support-hotline-gadget,
body.theme-dark .hihon-support-hotline-gadget {
    background-color: #1e293b; /* 묵직하고 깊은 차별화된 다크 블루 */
    border-left: 4px solid #38bdf8;
}

/* 왼쪽 콤팩트 타이틀 글자색 세팅 */
.support-headline-row { 
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.support-headline-row span {
    font-size: 13.5px; 
    font-weight: 700; 
    color: #0369a1; /* 라이트 모드에서는 신뢰감을 주는 짙은 블루 폰트 */
    white-space: nowrap;
    letter-spacing: -0.3px;
}
body.theme-blue .support-headline-row span,
body.theme-dark .support-headline-row span {
    color: #38bdf8; /* 어두운 모드에서는 야광 블루 폰트로 가독성 확보 */
}

/* 오른쪽 위아래 정보 적층 구역 */
.support-info-detail-row { 
    display: flex; 
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}
.support-info-detail-row span { 
    font-size: 11px; 
    color: #0c4a6e; /* 정보 글자색도 가젯 톤에 맞춰 정교하게 조율 */
    font-weight: 500;
    white-space: nowrap;
}
body.theme-blue .support-info-detail-row span,
body.theme-dark .support-info-detail-row span {
    color: #94a3b8;
}

.support-info-detail-row strong { 
    color: #0369a1;
    font-weight: 700; 
    margin-left: 4px;
}
body.theme-blue .support-info-detail-row strong,
body.theme-dark .support-info-detail-row strong {
    color: #f8fafc;
}

.footer-outer { width: 100%; background-color: var(--footer-bg); border-top: 1px solid var(--footer-border); margin-top: auto; transition: all 0.25s; }
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); }
.footer-policy-link { font-weight: 500; color: var(--system-link-arrow); }

/* ========================================================
   📱 🌟 [모바일 가로폭 보정 스마트폰 오버라이딩 고정선]
   ======================================================== */
@media (max-width: 1024px) {
    .header-inner { padding: 0 16px; }
    .search-container { margin: 0 10px; max-width: 150px; }
    .header-right-clock-panel { font-size: 11px; padding: 5px 10px; gap: 6px; }
    
    .main-top-dashboard-row { grid-template-columns: 1fr !important; gap: 20px; }
    .layout-left-area { grid-column: span 1 !important; }
    .layout-right-area { grid-column: span 1 !important; }
    
    .banner-inner-content { flex-direction: column !important; align-items: stretch !important; padding: 24px 16px !important; }
    .welcome-message-box { min-width: 100% !important; text-align: center; margin-bottom: 16px; }
    .welcome-message-box h1 { font-size: 20px; line-height: 1.3; }
    
    .banner-right-gadget-zone { width: 100% !important; flex-direction: column !important; align-items: stretch !important; gap: 14px; }
    .lims-hero-shortcut-card { width: 100% !important; height: 125px; }
    .ai-assistant-glass-panel { width: 100% !important; max-width: 100% !important; }

    .portal-main-content { padding: 16px !important; gap: 20px; }
    .feature-cards-grid { grid-template-columns: 1fr !important; gap: 12px; }
    .menu-card { width: 100% !important; min-height: auto; padding: 16px; }
    
    .infrastructure-4-columns-grid { grid-template-columns: 1fr !important; gap: 10px; }
    .system-bar-link { width: 100% !important; }
    .hihon-support-hotline-gadget { width: 100% !important; }
}

@media (max-width: 480px) {
    .search-container { display: none; }
    .support-info-detail-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ========================================================
   📞 🌟 [규격 동기화] SciNote/Matrix 형제 카드와 원형 로고 핏 맞춤
   ======================================================== */
.support-headline-row {
    display: flex !important;
    flex-direction: row !important; /* 엠블럼과 글자를 가로로 배치 */
    align-items: center !important; 
    gap: 12px; /* 다른 카드들과 동일한 간격 */
}

/* 🌟 형제 카드들의 .sys-logo-wrapper 규격을 100% 복제한 동그라미 틀 */
.support-emblem-circle {
    width: 34px; /* SciNote, LIMS 바와 소수점까지 일치하는 지름 */
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #ffffff; /* 흰색 동그라미 배경 */
    border: 1px solid var(--border-card);
    border-radius: 50%; /* 완벽한 원형 정의 */
    padding: 4px; /* 내부 여백 */
    flex-shrink: 0; /* 찌그러짐 방지 */
}

/* 동그라미 안에서 이쁘게 정렬되는 엠블럼 이미지 */
.support-emblem-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 원 안에서 비율 깨짐 없이 꽉 차게 */
    display: block;
}
.sys-icon-emoji {
    font-size: 20px;       /* 체크 마크 크기 키우기 */
    color: #096dd9;        /* 체크 마크 색상을 신뢰감 주는 파란색으로 변경 */
    font-weight: bold;     /* 두껍게 만들기 */
}

/* 전체를 감싸는 캡슐 형태의 바 (크기를 키우고 배경을 살림) */
.theme-toggle-panel {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.08); /* 어두운 배경에 잘 어울리는 은은한 반투명 */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 4px;
    gap: 4px;
}

/* 각 버튼의 기본 스타일 (터치 영역을 확실하게 확보) */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    border-radius: 20px;
    padding: 8px 14px; /* 위아래 좌우 여백을 늘려 크기를 키움 */
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* 마우스를 올렸을 때 */
.theme-toggle-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* 🔥 현재 활성화(선택)된 모드의 디자인 강조 */
.theme-toggle-btn.active {
    background: #0284c7; /* 블루 관제일 때는 시원한 블루, 다크일 때는 다크그레이 등으로 스크립트 제어 가능 */
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 태블릿이나 모바일 등 현장 단말기에서 글자가 너무 길면 아이콘만 보이도록 처리 가능 */
@media (max-width: 768px) {
    .theme-toggle-btn .btn-text {
        display: none; /* 화면이 작아지면 글자는 숨기고 아이콘만 크게 노출 */
    }
    .theme-toggle-btn {
        padding: 8px 10px;
        font-size: 16px; /* 아이콘 크기를 키움 */
    }
}

/* 공통 카드 스타일 구역 */
.card-item {
    /* 기존 스타일(배경색, 패딩 등)은 그대로 두시고 보더 영역만 수정 */
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    
    /* 🔥 왼쪽 선 색상을 테마 포인트 컬러와 자동 연동 */
    border-left: 4px solid var(--system-link-arrow); 
    
    transition: all 0.3s ease;
}

/* 💡 추가 팁: 마우스를 올렸을 때(Hover) 효과도 통일 */
.card-item:hover {
    transform: translateY(-4px);
    /* 마우스를 올리면 테두리가 조금 더 선명해지도록 연동 */
    border-left-color: var(--clock-text); 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}