/* ========================================
   연맵(Yon-Map) - 기본 스타일시트
   ======================================== */

/* HTML 전체 리셋 및 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --yon-primary: #003da5;
    --yon-primary-2: #0066cc;
    --yon-bg: #f5f7fb;
    --yon-text: #223048;
    --yon-muted: #667085;
    --yon-border: #d7deea;
    --yon-radius: 12px;
    --yon-radius-sm: 8px;
    --yon-font: 'Pretendard', 'Noto Sans KR', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--yon-font);
    background-color: var(--yon-bg);
    color: var(--yon-text);
    line-height: 1.6;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* ========================================
   Page Navigation (Welcome / App)
   ======================================== */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: calc(100dvh - 80px);
    display: none;
}

.page.active {
    display: flex;
    z-index: 10;
}

/* Welcome Page */
#welcome-page.active {
    flex-direction: column;
    background: linear-gradient(135deg, #f0f6ff 0%, #e3f2fd 100%);
}

.welcome-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.welcome-content {
    text-align: center;
    max-width: 720px;
}

.welcome-content h2 {
    font-size: 48px;
    color: #003da5;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.welcome-content p {
    font-size: 18px;
    color: #666;
    margin: 10px 0;
}

.welcome-guide-row {
    margin-top: 18px;
}

.welcome-guide-btn {
    border: 1px solid #b9d2ff;
    background: #f3f8ff;
    color: #003da5;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.welcome-guide-btn:hover {
    background: #e9f2ff;
    border-color: #97bcff;
}

.welcome-buttons {
    display: flex;
    gap: 24px;
    max-width: 640px;
    margin: 0 auto;
    margin-top: 40px;
}

.welcome-btn {
    flex: 1;
    padding: 28px 22px;
    border: 2px solid transparent;
    border-radius: var(--yon-radius);
    background: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.welcome-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.welcome-btn .btn-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    border: 1px solid #cfd8ea;
    background: #f7faff;
    color: var(--yon-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin: 0 auto 12px auto;
}

.welcome-btn .btn-title {
    font-size: 20px;
    font-weight: 700;
    color: #003da5;
    margin-bottom: 8px;
}

.welcome-btn .btn-desc {
    font-size: 13px;
    color: #666;
}

.welcome-btn.when2meet-btn {
    border-color: #b9d2ff;
}

.welcome-btn.when2meet-btn:hover {
    background: #eef5ff;
    border-color: #97bcff;
}

.welcome-btn.map-btn {
    border-color: #c7dcff;
}

.welcome-btn.map-btn:hover {
    background: #f2f8ff;
    border-color: #9cbfff;
}

.yonmap-tutorial-modal[hidden] {
    display: none;
}

.yonmap-tutorial-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.yonmap-tutorial-card {
    width: min(620px, calc(100vw - 32px));
    border: 1px solid #d7deea;
    border-radius: 12px;
    background: #fbfdff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18);
    text-align: left;
    padding: 16px;
}

.yonmap-tutorial-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.yonmap-tutorial-head h3 {
    color: #003da5;
    font-size: 20px;
}

.yonmap-tutorial-close {
    border: 1px solid #d7deea;
    background: #fff;
    color: #667085;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
}

.yonmap-tutorial-close:hover {
    border-color: #bfc8db;
    color: #344054;
    background: #f8fafc;
}

.yonmap-tutorial-body p {
    font-size: 14px;
    color: #344054;
    margin-bottom: 8px;
}

.yonmap-tutorial-body ol {
    margin-left: 20px;
    color: #344054;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.yonmap-tutorial-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}



/* ========================================
   헤더 스타일
   ======================================== */
header {
    background: linear-gradient(135deg, var(--yon-primary) 0%, var(--yon-primary-2) 100%);
    color: white;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 30;
}

.header-content {
    text-align: left;
    flex: 1;
}


header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

#btn-brand-home {
    cursor: pointer;
}

#btn-brand-home:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
    border-radius: 6px;
}

header p {
    font-size: 14px;
    opacity: 0.9;
}

/* ========================================
   메인 레이아웃 (3단 구조)
   ======================================== */
main {
    position: relative;
    width: 100%;
    height: calc(100dvh - 80px);
    /* 전체 높이에서 헤더 높이 제외 */
}

/* App Page - 기본 3단 가로 레이아웃 */
#app-page.active {
    display: flex !important;
    flex-direction: row;
}

/* App Page - When2meet 모드: 세로 레이아웃 */
#app-page.active.when2meet-mode {
    flex-direction: column !important;
}

#app-page.active.when2meet-mode .sidebar {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid var(--yon-border);
    max-height: calc(100dvh - 80px) !important;
    padding: 36px 20px !important;
}

#app-page.active.when2meet-mode .map-section {
    display: none !important;
}

#app-page.active.when2meet-mode .info-panel {
    display: none !important;
}

/* App Page - Map 모드: 기본 3단 가로 레이아웃 */
#app-page.active.map-mode {
    flex-direction: row !important;
}

#app-page.active.map-mode .sidebar {
    width: 300px !important;
    border-right: 1px solid var(--yon-border) !important;
    border-bottom: none !important;
}

#app-page.active.map-mode .map-section {
    display: flex !important;
}

#app-page.active.map-mode .info-panel {
    display: flex !important;
}

/* 좌측 사이드바 */
.sidebar {
    width: 300px;
    background-color: white;
    padding: 20px;
    border-right: 1px solid var(--yon-border);
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    min-width: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.placeholder-muted {
    color: #98a2b3;
    font-size: 13px;
}

.sidebar h2 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #003da5;
}

.map-search-panel {
    margin-bottom: 16px;
    border: 1px solid #e5eaf3;
    border-radius: var(--yon-radius);
    padding: 14px;
    background: #fbfcff;
}

.map-search-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.map-panel-toggle {
    border: 1px solid #cfd8ea;
    background: #fff;
    color: var(--yon-primary);
    border-radius: 8px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.map-panel-toggle:hover {
    border-color: #9bb5e8;
    background: #f6f9ff;
}

.map-search-panel-content[hidden] {
    display: none;
}

.map-search-title {
    font-size: 17px;
    color: var(--yon-primary);
    margin-bottom: 10px;
}

.map-search-help {
    margin-bottom: 10px;
    color: #667085;
    font-size: 13px;
}

.map-panel-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.map-panel-tab {
    border: 1px solid #cfd8ea;
    background: #fff;
    color: var(--yon-primary);
    border-radius: 8px;
    min-height: 36px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.map-panel-tab:hover {
    border-color: #9bb5e8;
    background: #f6f9ff;
}

.map-panel-tab.active {
    background: #003da5;
    border-color: #003da5;
    color: #fff;
}

.map-tab-content {
    display: none;
}

.map-tab-content.active {
    display: block;
}

.campus-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.campus-switch-btn {
    border: 1px solid #cfd8ea;
    background: #fff;
    color: var(--yon-primary);
    border-radius: 8px;
    min-height: 38px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.campus-switch-btn:hover {
    border-color: #9bb5e8;
    background: #f6f9ff;
}

.campus-switch-btn.active {
    background: #003da5;
    border-color: #003da5;
    color: #fff;
}

.map-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.map-search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--yon-border);
    border-radius: var(--yon-radius-sm);
    font-size: 13px;
}

.map-search-input:focus {
    outline: none;
    border-color: var(--yon-primary-2);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.map-search-button {
    background: var(--yon-primary);
    color: #fff;
    border: none;
    border-radius: var(--yon-radius-sm);
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.map-search-button:hover {
    background: #0a4fc8;
}

.map-search-button:disabled,
.route-quick-button:disabled,
.route-submit-button:disabled {
    opacity: 0.6;
    cursor: default;
}

.map-search-button.is-loading,
.route-quick-button.is-loading,
.route-submit-button.is-loading {
    background: #8aa4d2;
}

.route-field {
    border: 1px solid #e4e9f2;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
}

.route-field-label {
    display: block;
    margin-bottom: 6px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.route-input-row {
    display: flex;
    gap: 8px;
}

.route-input-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.route-quick-row {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.route-quick-button {
    border: 1px solid #cfd8ea;
    background: #f8fbff;
    color: var(--yon-primary);
    border-radius: 8px;
    min-height: 34px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.route-point-summary {
    margin-top: 8px;
    font-size: 12px;
    color: #667085;
    word-break: break-word;
}

.route-meet-status {
    min-height: 20px;
    margin-top: 8px;
    color: #667085;
    font-size: 12px;
}

.route-meet-status.error {
    color: #b42318;
}

.route-meet-results {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    max-height: 220px;
    overflow-y: auto;
}

.route-meet-item {
    border: 1px solid #e4e9f2;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.route-meet-title {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.route-meet-meta {
    font-size: 12px;
    color: #667085;
}

.route-meet-select {
    align-self: flex-start;
    border: 1px solid #cfd8ea;
    border-radius: 8px;
    background: #f8fbff;
    color: var(--yon-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    cursor: pointer;
}

.route-meet-select:hover {
    border-color: #9bb5e8;
    background: #edf4ff;
}

.route-submit-button {
    width: 100%;
    border: none;
    border-radius: 8px;
    background: var(--yon-primary);
    color: #fff;
    min-height: 40px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.route-submit-button:hover {
    background: #0a4fc8;
}

.route-status {
    min-height: 20px;
    margin-top: 8px;
    color: #667085;
    font-size: 12px;
}

#map-search-status {
    margin-bottom: 8px;
}

.route-status.error {
    color: #b42318;
}

.map-search-results {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 2px;
}

.map-search-item {
    border: 1px solid #e4e9f2;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.map-search-item:hover {
    border-color: var(--yon-primary);
    background: #f3f8ff;
}

.map-search-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

.map-search-empty {
    padding: 8px;
    font-size: 13px;
    color: #666;
    border: 1px dashed #ddd;
    border-radius: 8px;
}

/* 중앙 지도 영역 */
.map-section {
    flex: 1;
    position: relative;
    background-color: #eef2f7;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 360px;
    min-width: 0;
}

.map-campus-switch {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 12;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid #d7deea;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 360px;
}

.map-error-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
    background: #fff;
    border: 1px solid #f4cdd1;
    color: #b42318;
    font-weight: 700;
    text-align: center;
}

.map-infowindow {
    position: relative;
    min-width: 220px;
    max-width: 300px;
    background: #ffffff;
    border: 1px solid #d7e3f8;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    color: #1f2937;
    font-size: 12px;
    line-height: 1.45;
}

.map-infowindow-bubble::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid #d7e3f8;
    border-bottom: 1px solid #d7e3f8;
    transform: translateX(-50%) rotate(-45deg);
}

.map-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f3f92;
    margin-bottom: 6px;
}

.map-popup-row {
    color: #334155;
    margin-top: 4px;
    word-break: break-word;
}

.map-popup-link {
    display: inline-block;
    margin-top: 8px;
    color: #003da5;
    font-weight: 700;
    text-decoration: none;
}

.map-popup-link:hover {
    text-decoration: underline;
}

/* 우측 정보 패널 */
.info-panel {
    width: 300px;
    background-color: white;
    padding: 20px;
    border-left: 1px solid var(--yon-border);
    overflow-y: auto;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    min-width: 0;
}

.info-panel.is-empty {
    display: none;
}

#app-page.active.map-mode .sidebar.is-collapsed {
    width: 74px !important;
    min-width: 74px !important;
    padding: 10px 8px;
}

#app-page.active.map-mode .sidebar.is-collapsed .map-search-panel {
    padding: 8px;
}

#app-page.active.map-mode .sidebar.is-collapsed .map-search-help,
#app-page.active.map-mode .sidebar.is-collapsed .map-search-panel-content {
    display: none;
}

#app-page.active.map-mode .sidebar.is-collapsed .map-search-panel-header {
    margin-bottom: 0;
}

.info-panel h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--yon-primary);
}

.info-panel-empty {
    color: var(--yon-muted);
    font-size: 14px;
}

.info-panel-category {
    margin-bottom: 6px;
    color: var(--yon-muted);
    font-size: 13px;
}

.info-panel-address {
    margin-top: 8px;
    color: #344054;
    font-size: 14px;
}

.info-panel-phone {
    margin-top: 8px;
    color: #667085;
    font-size: 13px;
}

.info-route-actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-route-button {
    width: 100%;
    border: 1px solid #cfd8ea;
    border-radius: 8px;
    background: #f8fbff;
    color: var(--yon-primary);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.info-route-button:hover {
    border-color: #9bb5e8;
    background: #edf4ff;
}

.info-route-button:disabled {
    opacity: 0.6;
    cursor: default;
}

.info-route-button.is-loading {
    background: #eef2f8;
}

.info-route-status {
    min-height: 20px;
    margin-top: 8px;
    color: #667085;
    font-size: 12px;
}

.info-route-status.error {
    color: #b42318;
}

.info-panel-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--yon-primary);
    font-weight: 700;
    text-decoration: none;
}

.info-panel-link:hover {
    text-decoration: underline;
}

.info-panel .tag {
    display: inline-block;
    background: #eef6ff;
    color: #003da5;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 6px;
}

/* when2meet styles */
.when2meet {
    margin-top: 12px;
    display: none;
}

body.ette-standalone .when2meet {
    display: block;
}

.when2meet-app {
    width: 100%;
    max-width: 1460px;
    margin: 0 auto;
}

.w2m-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5eaf3;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
    padding: 24px;
}

.w2m-main-title {
    color: var(--yon-primary);
    font-size: 30px;
    text-align: center;
    margin-bottom: 10px;
}

.w2m-title-with-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.w2m-title-with-help .w2m-main-title {
    margin-bottom: 0;
}

.w2m-label-with-help {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.w2m-label-with-help label {
    margin-top: 0;
}

.w2m-help-anchor {
    display: inline-flex;
}

.w2m-sub {
    text-align: center;
    color: var(--yon-muted);
    font-size: 14px;
    margin-bottom: 6px;
}

.w2m-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.w2m-form label {
    margin-top: 6px;
    font-size: 13px;
    color: #344054;
    font-weight: 700;
}

.w2m-form input,
.w2m-form select {
    border: 1px solid var(--yon-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
}

.w2m-form input:focus,
.w2m-form select:focus {
    outline: none;
    border-color: var(--yon-primary-2);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.w2m-time-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.w2m-time-range input {
    width: 100%;
}

.w2m-time-range span {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.w2m-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.w2m-slot-btn {
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.w2m-slot-btn span {
    font-size: 11px;
    color: #666;
}

.w2m-slot-btn.selected {
    border-color: #003da5;
    background: #e8f1ff;
}

.w2m-actions {
    margin: 12px 0 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.w2m-toggle-group {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.w2m-peer-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d7deea;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.w2m-peer-toggle input {
    width: 15px;
    height: 15px;
    accent-color: var(--yon-primary-2);
}

.w2m-survey-block {
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.w2m-service-modal-card {
    width: min(720px, calc(100vw - 32px));
}

.w2m-service-intro {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #dbe6f8;
    background: #f5f9ff;
    margin-bottom: 12px;
}

.w2m-search-input-wrap,
.w2m-purpose-input-wrap {
    display: grid;
    gap: 6px;
}

.w2m-search-input-wrap {
    position: relative;
}

.w2m-purpose-input-wrap {
    position: relative;
}

#w2m-service-area {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #cfdcf3;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 0 14px;
    color: #16345c;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#w2m-service-area::placeholder {
    color: #6f84a8;
    font-weight: 500;
}

#w2m-service-area:focus {
    border-color: #95b4e8;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(120, 161, 224, 0.16);
}

#w2m-service-purpose-input {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #cfdcf3;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 0 14px;
    color: #16345c;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#w2m-service-purpose-input::placeholder {
    color: #6f84a8;
    font-weight: 500;
}

#w2m-service-purpose-input:focus {
    border-color: #95b4e8;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(120, 161, 224, 0.16);
}

.w2m-search-suggest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 34px;
    padding: 4px 2px 2px;
}

.w2m-search-suggest-chip {
    border: 1px solid #c9d8f2;
    background: linear-gradient(180deg, #fafdff 0%, #edf4ff 100%);
    color: #1a3e70;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.w2m-search-suggest-chip:hover {
    background: linear-gradient(180deg, #ffffff 0%, #e9f1ff 100%);
    border-color: #9bb8e8;
    color: #113566;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(53, 101, 173, 0.12);
}

.w2m-purpose-suggest-list {
    margin-top: 2px;
}

.w2m-purpose-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.w2m-purpose-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    border: 1px solid #c9d8f2;
    background: linear-gradient(180deg, #fafdff 0%, #edf4ff 100%);
    color: #1a3e70;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
}

.w2m-purpose-chip-remove {
    border: 0;
    background: transparent;
    color: #2f5a95;
    cursor: pointer;
    line-height: 1;
    font-size: 13px;
    font-weight: 700;
}

.w2m-message {
    margin-top: 12px;
    font-size: 14px;
    color: #333;
}

.w2m-send-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(440px, calc(100vw - 56px));
    margin-top: 0;
    border: 1px solid #d7deea;
    border-radius: 10px;
    background: #fbfdff;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.14);
    z-index: 40;
}

.w2m-send-panel.is-hidden {
    display: none;
}

.w2m-send-panel label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #344054;
    margin-bottom: 6px;
}

.w2m-send-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.w2m-send-head label {
    margin-bottom: 0;
}

.w2m-send-close {
    border: 1px solid #d7deea;
    background: #fff;
    color: #667085;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.w2m-send-close:hover {
    border-color: #bfc8db;
    color: #344054;
    background: #f8fafc;
}

.w2m-send-text {
    width: 100%;
    border: 1px solid var(--yon-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.45;
    resize: vertical;
    min-height: 120px;
    background: #fff;
}

.w2m-send-text:focus {
    outline: none;
    border-color: var(--yon-primary-2);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.w2m-send-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.w2m-send-help {
    margin-top: 8px;
    font-size: 12px;
    color: #667085;
}

.w2m-file-input {
    display: none;
}

.w2m-upload-dropzone {
    margin-top: 8px;
    border: 1px dashed #b8c4d9;
    border-radius: 10px;
    background: #f8fbff;
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.w2m-upload-dropzone:hover,
.w2m-upload-dropzone.is-drag-over {
    border-color: #6f9de6;
    background: #eef5ff;
}

.w2m-upload-file-name {
    font-size: 13px;
    color: #475467;
    word-break: break-word;
}

.w2m-everytime-import {
    margin: 10px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.w2m-form-input {
    width: 100%;
    border: 1px solid var(--yon-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    background: #fff;
    color: #223048;
}

.w2m-form-input:focus {
    outline: none;
    border-color: var(--yon-primary-2);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.w2m-send-popover-wrap {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
}

.w2m-inline-avail {
    margin-top: 14px;
}

.w2m-create-split {
    display: grid;
    grid-template-columns: minmax(380px, 0.92fr) minmax(640px, 1.58fr);
    gap: 16px;
    align-items: start;
}

.w2m-create-left,
.w2m-create-right {
    border: 1px solid #e4e9f2;
    border-radius: 10px;
    background: #fff;
    padding: 12px;
}

.w2m-inline-card {
    border: 1px solid #e4e9f2;
    border-radius: 10px;
    background: #fdfefe;
    padding: 12px;
}

.w2m-inline-head {
    margin-bottom: 8px;
}

.w2m-inline-title {
    font-size: 18px;
    color: #003da5;
    margin-bottom: 4px;
}

.w2m-inline-placeholder {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.w2m-success {
    color: #0a7a2f;
    font-weight: 700;
    margin-bottom: 8px;
}

.w2m-share {
    font-size: 13px;
    margin-bottom: 6px;
    word-break: break-all;
}

.w2m-event-code-copy {
    border: 0;
    background: transparent;
    color: #003da5;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.w2m-help-btn {
    border: 1px solid #b9c9e8;
    background: #eef4ff;
    color: #003da5;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    margin-left: 6px;
    vertical-align: middle;
    padding: 0;
}

.w2m-help-btn:hover {
    background: #dfeaff;
    border-color: #8fb0e8;
}

.w2m-help-tooltip {
    position: fixed;
    z-index: 1200;
    width: min(300px, calc(100vw - 16px));
    border: 1px solid #c7d7f1;
    border-radius: 10px;
    background: #ffffff;
    color: #23324d;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    padding: 10px 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.w2m-help-tooltip.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.w2m-help-tooltip-text {
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-line;
}

.w2m-help-tooltip-close {
    display: none;
    margin-top: 8px;
    border: 1px solid #d7deea;
    background: #f5f7fb;
    color: #344054;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.w2m-help-tooltip.is-pinned .w2m-help-tooltip-close {
    display: inline-flex;
}

.w2m-mode-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.w2m-mini-btn {
    border: 1px solid #cfd8ea;
    background: #fff;
    color: var(--yon-primary);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.15s ease;
    touch-action: manipulation;
}

.w2m-mini-btn:hover {
    border-color: #9bb5e8;
    background: #f6f9ff;
}

.w2m-mini-btn.active {
    background: #003da5;
    color: #fff;
    border-color: #003da5;
}

.w2m-schedule-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 2px;
}

.w2m-type-option {
    border: 1px solid #cfd8ea;
    background: #fff;
    color: var(--yon-primary);
    border-radius: 10px;
    padding: 9px 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.w2m-type-option:hover {
    border-color: #9bb5e8;
    background: #f6f9ff;
}

.w2m-type-option.active {
    background: #003da5;
    border-color: #003da5;
    color: #fff;
}

.w2m-create-section {
    display: block;
}

.w2m-create-section.is-hidden {
    display: none;
}

.w2m-weekday-grid {
    --w2m-weekday-gap: 6px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--w2m-weekday-gap);
}

.w2m-weekday-btn {
    border: 1px solid #d7deea;
    background: #fff;
    border-radius: 8px;
    min-height: var(--w2m-weekday-min-height, 38px);
    cursor: pointer;
    font-size: var(--w2m-weekday-font-size, 12px);
    font-weight: 700;
    color: #003da5;
    transition: all 0.15s ease;
    user-select: none;
    touch-action: none;
}

.w2m-weekday-btn:hover {
    border-color: #7ea5e7;
    background: #f7faff;
}

.w2m-weekday-btn.selected {
    border-color: #003da5;
    background: #e8f1ff;
    color: #003da5;
}

.w2m-date-add-row {
    display: flex;
    gap: 8px;
}

.w2m-calendar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.w2m-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.w2m-calendar-weekday div {
    text-align: center;
    font-size: 12px;
    color: #666;
}

.w2m-cal-cell {
    border: 1px solid #d7deea;
    background: #fff;
    border-radius: 8px;
    min-height: 38px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s ease;
    touch-action: manipulation;
}

.w2m-cal-cell:hover:not(:disabled):not(.empty) {
    border-color: #7ea5e7;
    background: #f7faff;
}

.w2m-cal-cell:disabled:not(.empty) {
    background: #f4f6f9;
    color: #b0b8c6;
    cursor: not-allowed;
}

.w2m-cal-cell.empty {
    border: none;
    background: transparent;
    cursor: default;
}

.w2m-cal-cell.selected {
    border-color: #003da5;
    background: #e8f1ff;
    color: #003da5;
    font-weight: 700;
}

.w2m-calendar-help {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

.w2m-picked-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.w2m-date-chip {
    border: 1px solid #b9d2ff;
    background: #eef5ff;
    color: #003da5;
    border-radius: 999px;
    padding: 6px 8px 6px 10px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.w2m-date-chip:hover {
    background: #dfeeff;
    border-color: #8eb8ff;
}

.w2m-date-chip-text {
    line-height: 1;
}

.w2m-date-chip-remove {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(0, 61, 165, 0.12);
    color: #003da5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.w2m-date-empty {
    font-size: 12px;
    color: #666;
}

.w2m-top-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.w2m-matrix-wrap {
    margin-top: 16px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    border: 1px solid #e4e9f2;
    border-radius: 10px;
    padding: 10px;
    background: #fcfdff;
}

.w2m-matrix-table {
    width: max-content;
    border-collapse: separate;
    --w2m-slot-height: 32px;
    --w2m-matrix-gap: 4px;
    table-layout: fixed;
    border-spacing: 4px;
    min-width: 520px;
}

.w2m-matrix-table th,
.w2m-matrix-table td {
    text-align: center;
}

.w2m-matrix-table thead th {
    font-size: 12px;
    color: #003da5;
    background: #eaf2ff;
    padding: 6px 0;
    border-radius: 6px;
    width: 58px;
    min-width: 58px;
    box-sizing: border-box;
}

.w2m-matrix-table thead th:first-child {
    width: 70px;
    min-width: 70px;
}

.w2m-date-head-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.w2m-weather-badges {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 16px;
}

.w2m-weather-emoji {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.w2m-weather-emoji:hover {
    transform: translateY(-1px);
}

.w2m-time-col {
    background: #f7f7f7;
    color: #666;
    font-size: 12px;
    border-radius: 6px;
    min-width: 70px;
}

.w2m-matrix-cell {
    width: 100%;
    height: var(--w2m-slot-height);
    min-height: var(--w2m-slot-height);
    padding: 0 3px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    touch-action: manipulation;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
}

.w2m-cell-main {
    min-height: 12px;
    flex: 1;
    text-align: left;
    padding-left: 1px;
}

.w2m-cell-weather {
    display: inline-flex;
    gap: 1px;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.w2m-matrix-table tbody td {
    width: 58px;
    min-width: 58px;
    padding: 0;
}

.w2m-matrix-merged {
    width: 58px;
    min-width: 58px;
    padding: 0;
    vertical-align: top;
}

.w2m-matrix-blocked {
    width: 100%;
    height: calc((var(--w2m-slot-height, 32px) * var(--w2m-row-span, 1)) + (var(--w2m-matrix-gap, 4px) * (var(--w2m-row-span, 1) - 1)));
    min-height: calc((var(--w2m-slot-height, 32px) * var(--w2m-row-span, 1)) + (var(--w2m-matrix-gap, 4px) * (var(--w2m-row-span, 1) - 1)));
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #f2f4f7;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 4px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.w2m-matrix-cell.selected {
    border-color: #003da5;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.45), 0 6px 14px rgba(255, 87, 34, 0.35);
}

.w2m-matrix-cell:hover {
    box-shadow: 0 2px 8px rgba(0, 61, 165, 0.2);
}

.w2m-matrix-cell:active {
    transform: none;
}

.w2m-bottom-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.w2m-toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 9999;
    padding: 12px 16px;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    opacity: 0;
    transform: translate(-50%, 8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.w2m-toast.success {
    background: rgba(10, 122, 47, 0.82);
}

.w2m-toast.error {
    background: rgba(180, 35, 24, 0.82);
}

.w2m-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.when2meet:not([style*="display: none"]) {
    width: 100%;
    max-width: 1720px;
    margin: 20px auto;
}

.when2meet h2 {
    text-align: center;
    color: #003da5;
    margin-bottom: 20px;
    font-size: 24px;
}

/* 사람별 섹션 */
.w2m-person-section {
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.w2m-person-title {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 각 사람의 그리드 */
.w2m-person-grid {
    display: grid;
    gap: 2px;
    grid-template-columns: 60px repeat(5, 1fr);
    padding: 12px;
    background: #fafafa;
}

.when2meet h3 {
    font-size: 15px;
    color: #003da5;
    margin-bottom: 8px;
}

.when2meet .when2meet-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.when2meet .person-select label {
    margin-right: 8px;
    font-weight: 600;
}

/* ========================================
   When2meet: 2열 레이아웃 (선택 + 히트맵)
   ======================================== */

/* 2열 그리드 레이아웃 */
.w2m-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.w2m-left,
.w2m-right {
    background: #fafafa;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.w2m-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #003da5;
    margin-bottom: 12px;
    text-align: center;
}

/* 그리드 컨테이너 */
#w2m-grid-selection,
#w2m-grid-heatmap {
    display: grid;
    gap: 2px;
    grid-template-columns: 60px repeat(5, 1fr);
    background: #fff;
    padding: 12px;
    border-radius: 6px;
}

.w2m-row {
    display: contents;
}

.w2m-cell {
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    min-height: 44px;
    font-size: 13px;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
}

/* 시간 라벨 */
.w2m-time {
    background: transparent;
    color: #666;
    font-weight: 700;
    padding: 8px 12px;
    text-align: right;
    font-size: 12px;
    border: none;
    cursor: default !important;
}

/* 헤더 행 */
.header-row .w2m-cell {
    background: #e3f2fd;
    color: #003da5;
    font-weight: 700;
    font-size: 11px;
    border: 1px solid #bdd7f5;
}

/* A의 선택 셀 (왼쪽) */
.w2m-slot-selection {
    background: #fff4f0;
    border: 1px solid #ffcab0;
    font-size: 16px;
    cursor: pointer;
}

.w2m-slot-selection:hover {
    background: #ffe8d6;
    border: 1px solid #ff8c42;
}

.w2m-slot-selection.selected {
    background: #d32f2f;
    color: #fff;
    border: 1px solid #b71c1c;
    font-weight: 600;
}

.w2m-slot-selection.selected:hover {
    background: #c62828;
}

/* 히트맵 셀 (오른쪽) - 사람 수에 따른 색상 */
.w2m-slot-heatmap {
    background: #fff;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    cursor: default;
    font-weight: 600;
}

.w2m-slot-heatmap.count-0 {
    background: #fff;
    color: #999;
}

.w2m-slot-heatmap.count-1 {
    background: #e3f2fd;
    color: #1976d2;
}

.w2m-slot-heatmap.count-2 {
    background: #64b5f6;
    color: #fff;
}

.w2m-slot-heatmap.count-3 {
    background: #1976d2;
    color: #fff;
    border: 2px solid #0d47a1;
}

/* 추천 시간 표시 박스 */
.w2m-recommend-box {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.w2m-recommend-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.w2m-recommend-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.w2m-recommend-content.empty {
    font-size: 14px;
    opacity: 0.8;
}

.w2m-recommend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    padding: 10px 12px;
}

.w2m-recommend-rank {
    width: 54px;
    min-width: 54px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 6px 0;
}

.w2m-recommend-detail {
    min-width: 0;
}

.w2m-recommend-time {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.w2m-recommend-people {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    margin-top: 4px;
    word-break: break-word;
}

.w2m-recommend-weather {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.w2m-recommend-weather-item {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.25;
}

.w2m-recommend-empty {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

/* 범례 */
.w2m-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: inline-block;
}

/* 버튼 */
.w2m-btn {
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
}

.w2m-btn:hover {
    transform: translateY(-1px);
}

.w2m-btn:disabled,
.w2m-mini-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.w2m-btn.is-loading {
    position: relative;
}

.w2m-btn.primary {
    background: #003da5;
    color: #fff;
}

.w2m-btn.primary:hover {
    background: #002f7f;
    box-shadow: 0 6px 14px rgba(0, 61, 165, 0.25);
}

.w2m-btn.secondary {
    background: #f3f4f6;
    color: #344054;
    border: 1px solid #d7deea;
}

.w2m-btn.secondary:hover {
    background: #f2f6fc;
    box-shadow: 0 4px 10px rgba(102, 112, 133, 0.18);
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(0, 102, 204, 0.25);
    outline-offset: 1px;
}

.empty {
    background: transparent;
    border: none;
}

.empty-header {
    background: transparent;
    border: none;
}

.time-label {
    background: transparent;
    color: #666;
    font-weight: 700;
    padding: 8px 12px;
    text-align: right;
    font-size: 12px;
}

.day-label {
    background: #e3f2fd;
    color: #003da5;
    font-weight: 700;
    font-size: 11px;
}

.header-person {
    background: #003da5;
    color: #fff;
    padding: 12px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

.header-person.person-B {
    background: #0066cc;
    color: #fff;
}

.header-person.person-A {
    background: #003da5;
    color: #fff;
}

.header-person.person-overlap {
    background: #ff9800;
    color: #fff;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 12px rgba(0, 100, 200, 0.3);
    }

    50% {
        box-shadow: 0 0 24px rgba(0, 100, 200, 0.6);
    }
}

/* ========================================
   반응형 디자인 (모바일)
   ======================================== */
@media (max-width: 1024px) {

    /* 데스크톱에서는 3단 레이아웃, 1024px 이하에서는 조정 */
    #app-page.active.map-mode {
        flex-direction: column;
    }

    #app-page.active.map-mode .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        max-height: 280px;
    }

    #app-page.active.map-mode .map-section {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        min-height: 360px;
        flex: none;
    }

    #app-page.active.map-mode .info-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid #ddd;
        max-height: 260px;
    }

    /* when2meet-mode는 유지 */
    #app-page.active.when2meet-mode .sidebar {
        max-height: calc(100dvh - 80px);
    }

    /* When2meet 2열 레이아웃 → 1열로 변경 */
    .w2m-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #w2m-grid-selection,
    #w2m-grid-heatmap {
        grid-template-columns: 50px repeat(5, 1fr);
    }

    .w2m-cell {
        min-height: 40px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .welcome-content h2 {
        font-size: 34px;
        line-height: 1.25;
    }

    .welcome-btn .btn-title {
        font-size: 18px;
    }

    header h1 {
        font-size: 22px;
    }

    header {
        padding: 14px 16px;
    }

    .welcome-buttons {
        flex-direction: column;
        gap: 16px;
    }

    #app-page.active.map-mode .map-section {
        height: auto;
        aspect-ratio: 16 / 10;
        min-height: 300px;
    }

    .w2m-card {
        padding: 16px;
        border-radius: 10px;
    }

    .w2m-main-title {
        font-size: 24px;
    }

    .w2m-mode-switch {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .w2m-mini-btn {
        min-height: 42px;
        font-size: 14px;
    }

    .w2m-time-range {
        grid-template-columns: 1fr;
    }

    .w2m-cal-cell {
        min-height: 44px;
        font-size: 13px;
    }

    .w2m-matrix-wrap {
        padding: 8px;
    }

    .w2m-matrix-table {
        min-width: 520px;
    }

    .w2m-matrix-cell {
        min-height: 34px;
        font-size: 13px;
    }

    .w2m-top-actions,
    .w2m-actions {
        flex-direction: column;
    }

    .w2m-top-actions .w2m-btn,
    .w2m-actions .w2m-btn {
        width: 100%;
    }

    .w2m-top-actions .w2m-send-popover-wrap,
    .w2m-actions .w2m-send-popover-wrap {
        width: 100%;
    }

    .w2m-actions .w2m-toggle-group {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }

    .w2m-send-panel {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
    }

    .w2m-send-actions {
        flex-direction: column;
    }

    .w2m-send-actions .w2m-btn {
        width: 100%;
    }

    /* When2meet 극소형 화면 */
    #w2m-grid-selection,
    #w2m-grid-heatmap {
        grid-template-columns: 45px repeat(5, 1fr);
        gap: 1px;
        padding: 8px;
    }

    .w2m-cell {
        min-height: 36px;
        font-size: 11px;
    }

    .w2m-time {
        font-size: 10px;
    }

    .w2m-toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        transform: translateY(8px);
    }

    .w2m-toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .welcome-container {
        padding: 28px 14px;
    }

    .welcome-content h2 {
        font-size: 28px;
    }

    .w2m-main-title {
        font-size: 22px;
    }

    .w2m-sub {
        font-size: 13px;
    }

    .w2m-recommend-item {
        align-items: flex-start;
        gap: 10px;
    }

    .w2m-recommend-rank {
        width: 48px;
        min-width: 48px;
        font-size: 13px;
    }

    .w2m-recommend-time {
        font-size: 13px;
    }

    .w2m-recommend-people {
        font-size: 12px;
    }
}

/* Phase 2: mock list styling */
.mock-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-item {
    padding: 10px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.mock-item .muted {
    color: #666;
    font-size: 13px;
    margin-bottom: 6px;
}

/* Phase 3: custom overlay card */
.custom-overlay-card {
    width: 240px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    color: #222;
    overflow: hidden;
}

.custom-overlay-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(90deg, #003da5, #0066cc);
    color: #fff;
}

.custom-overlay-card .card-header strong {
    font-size: 14px;
}

.custom-overlay-card .overlay-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.custom-overlay-card .card-body {
    padding: 10px 12px 14px 12px;
}

.custom-overlay-card .category {
    color: #003da5;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 6px;
}

.custom-overlay-card .desc {
    margin: 0 0 8px 0;
    color: #444;
    font-size: 12px;
}

.custom-overlay-card .meta {
    font-size: 12px;
    color: #888;
}

/* ========================================
   Compact UI Refresh (Single-page UX)
   ======================================== */

header {
    padding: 10px 14px;
    min-height: 64px;
}

.header-content h1 {
    font-size: 22px;
    margin-bottom: 0;
    line-height: 1.2;
}

.header-content p {
    font-size: 12px;
    opacity: 0.85;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-btn,
.header-menu-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.header-icon-btn:hover,
.header-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.header-menu-btn {
    min-width: 42px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    padding: 0 10px;
}

.header-usage-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    height: 34px;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.header-usage-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.quick-menu-edge-trigger {
    position: fixed;
    top: 64px;
    right: 0;
    width: 14px;
    height: calc(100dvh - 64px);
    z-index: 58;
    background: transparent;
}

.quick-menu-drawer {
    position: fixed;
    top: 64px;
    right: -300px;
    width: 280px;
    height: calc(100dvh - 64px);
    border-left: 1px solid var(--yon-border);
    background: #fff;
    box-shadow: -12px 0 24px rgba(16, 24, 40, 0.16);
    z-index: 60;
    display: flex;
    flex-direction: column;
    transition: right 0.2s ease;
}

.quick-menu-drawer.open {
    right: 0;
}

.quick-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid var(--yon-border);
}

.quick-menu-head strong {
    color: var(--yon-primary);
    font-size: 16px;
}

.quick-menu-close {
    border: 1px solid #d7deea;
    background: #fff;
    color: #667085;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quick-menu-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-menu-item {
    border: 1px solid #cfd8ea;
    background: #fff;
    color: var(--yon-primary);
    border-radius: 10px;
    min-height: 42px;
    text-align: left;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.quick-menu-item:hover {
    border-color: #9bb5e8;
    background: #f6f9ff;
}

.quick-menu-item.active {
    background: #003da5;
    border-color: #003da5;
    color: #fff;
}

.quick-menu-backdrop {
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(15, 23, 42, 0.28);
    z-index: 59;
}

.feature-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.feature-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.feature-btn.active {
    background: #fff;
    color: #003da5;
    border-color: #fff;
}

main {
    height: calc(100dvh - 64px);
}

#app-page {
    position: relative;
    height: calc(100dvh - 64px);
}

#app-page.active.map-mode .sidebar {
    width: 280px !important;
}

.sidebar,
.info-panel {
    padding: 14px;
}

.info-panel {
    width: 270px;
}

.w2m-card {
    padding: 16px;
    border-radius: 12px;
}

.w2m-main-title {
    font-size: 24px;
    margin-bottom: 6px;
}

.w2m-sub {
    font-size: 13px;
    margin-bottom: 4px;
}

.w2m-form {
    gap: 8px;
    margin-top: 12px;
}

.w2m-form label {
    margin-top: 2px;
}

.w2m-top-actions,
.w2m-actions {
    gap: 6px;
}

.w2m-recommend-box {
    margin-top: 14px;
    padding: 14px;
}

.w2m-recommend-item {
    padding: 8px 10px;
}

.w2m-recommend-time {
    font-size: 13px;
}

.w2m-recommend-people {
    font-size: 12px;
}

.w2m-matrix-wrap {
    margin-top: 12px;
    padding: 8px;
}

.w2m-matrix-table {
    --w2m-slot-height: 26px;
    table-layout: fixed;
    min-width: 560px;
}

.w2m-matrix-table thead th {
    padding: 6px 0;
    width: 56px;
    min-width: 56px;
    box-sizing: border-box;
}

.w2m-matrix-table thead th:first-child {
    width: 68px;
    min-width: 68px;
}

.w2m-matrix-cell {
    width: 100%;
    height: var(--w2m-slot-height);
    min-height: var(--w2m-slot-height);
    font-size: 12px;
}

.w2m-matrix-blocked {
    min-height: calc(var(--w2m-slot-height, 30px) * var(--w2m-row-span, 1));
}

.w2m-matrix-table tbody td {
    width: 56px;
    min-width: 56px;
    padding: 0;
}

@media (max-width: 1024px) {
    .header-content h1 {
        font-size: 20px;
    }

    .feature-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    #app-page.active.map-mode .sidebar,
    .info-panel {
        width: 100% !important;
    }

    #app-page.active.map-mode .sidebar {
        max-height: 240px;
    }

    #app-page.active.map-mode .info-panel {
        max-height: 220px;
    }

    .quick-menu-drawer {
        width: 260px;
        right: -280px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 12px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .header-menu-btn,
    .header-icon-btn {
        height: 32px;
    }

    .header-menu-btn {
        min-width: 40px;
        font-size: 18px;
    }

    .feature-btn {
        flex: 1;
        text-align: center;
    }

    .welcome-guide-btn {
        width: 100%;
    }

    .yonmap-tutorial-card {
        width: 100%;
        padding: 14px;
    }

    .yonmap-tutorial-head h3 {
        font-size: 18px;
    }

    .campus-switch {
        grid-template-columns: 1fr;
    }

    main,
    #app-page {
        height: calc(100dvh - 104px);
    }

    .quick-menu-edge-trigger {
        display: none;
    }

    .quick-menu-drawer {
        top: 104px;
        height: calc(100dvh - 104px);
        width: min(280px, calc(100vw - 28px));
        right: calc(-1 * min(280px, calc(100vw - 28px)) - 20px);
    }

    .quick-menu-backdrop {
        inset: 104px 0 0 0;
    }

    #app-page.active.when2meet-mode .sidebar {
        padding: 14px 10px !important;
        max-height: calc(100dvh - 104px) !important;
    }

    .w2m-main-title {
        font-size: 21px;
    }

    .w2m-card {
        padding: 12px;
    }

    .w2m-time-range {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .w2m-schedule-type {
        grid-template-columns: 1fr 1fr;
    }

    .w2m-weekday-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .w2m-weekday-btn {
        min-height: 34px;
        font-size: 11px;
    }

    .w2m-create-split {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .w2m-create-left,
    .w2m-create-right {
        padding: 10px;
    }

    .w2m-matrix-wrap {
        padding: 6px;
    }

    .w2m-matrix-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
        border-spacing: 2px;
        --w2m-slot-height: 24px;
    }

    .w2m-matrix-table thead th {
        width: auto;
        min-width: 0;
        padding: 4px 0;
        font-size: 11px;
    }

    .w2m-matrix-table thead th:first-child {
        width: 42px;
        min-width: 42px;
    }

    .w2m-matrix-table tbody td,
    .w2m-matrix-merged {
        width: auto;
        min-width: 0;
    }

    .w2m-time-col {
        min-width: 42px;
        font-size: 10px;
    }

    .w2m-matrix-cell {
        font-size: 11px;
        padding: 0 2px;
    }
}

@media (max-width: 480px) {
    .w2m-matrix-table thead th:first-child {
        width: 36px;
        min-width: 36px;
    }

    .w2m-time-col {
        min-width: 36px;
        font-size: 9px;
    }

    .w2m-matrix-cell {
        font-size: 10px;
    }
}

/* ========================================
   Dark Theme
   ======================================== */
body.dark-theme {
    --yon-bg: #0b1220;
    --yon-text: #e6edf7;
    --yon-muted: #a8b3c7;
    --yon-border: #2a3547;
    background-color: var(--yon-bg);
    color: var(--yon-text);
}

body.dark-theme header {
    background: linear-gradient(135deg, #121f36 0%, #1a2e4f 100%);
}

body.dark-theme #welcome-page.active {
    background: linear-gradient(135deg, #101a2d 0%, #152640 100%);
}

body.dark-theme .welcome-content h2,
body.dark-theme .welcome-btn .btn-title,
body.dark-theme .w2m-main-title,
body.dark-theme .w2m-inline-title,
body.dark-theme .map-search-title,
body.dark-theme .info-panel h2 {
    color: #d8e8ff;
}

body.dark-theme .welcome-content p,
body.dark-theme .w2m-sub,
body.dark-theme .map-search-meta,
body.dark-theme .map-search-empty,
body.dark-theme .info-panel-empty,
body.dark-theme .info-panel-phone,
body.dark-theme .w2m-send-help,
body.dark-theme .w2m-message,
body.dark-theme .yonmap-tutorial-body p,
body.dark-theme .yonmap-tutorial-body ol {
    color: #a8b3c7;
}

body.dark-theme .welcome-guide-btn {
    border-color: #2f4467;
    background: #16243a;
    color: #d8e8ff;
}

body.dark-theme .welcome-guide-btn:hover {
    background: #1a2d47;
}

body.dark-theme .feature-btn {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

body.dark-theme .header-icon-btn,
body.dark-theme .header-menu-btn {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #dceaff;
}

body.dark-theme .feature-btn.active {
    background: #dbeafe;
    color: #10233f;
    border-color: #dbeafe;
}

body.dark-theme .quick-menu-drawer {
    border-left-color: #2a3547;
    background: #131d30;
}

body.dark-theme .quick-menu-head {
    border-bottom-color: #2a3547;
}

body.dark-theme .quick-menu-head strong {
    color: #d8e8ff;
}

body.dark-theme .quick-menu-close {
    border-color: #3a4d6d;
    background: #1a2942;
    color: #c4d2ea;
}

body.dark-theme .quick-menu-item {
    border-color: #415677;
    background: #18253c;
    color: #dceaff;
}

body.dark-theme .quick-menu-item:hover {
    border-color: #5d7fb7;
    background: #1f3252;
}

body.dark-theme .quick-menu-item.active {
    background: #2154a8;
    border-color: #2154a8;
    color: #fff;
}

body.dark-theme .sidebar,
body.dark-theme .info-panel,
body.dark-theme .map-search-panel,
body.dark-theme .w2m-card,
body.dark-theme .w2m-create-left,
body.dark-theme .w2m-create-right,
body.dark-theme .w2m-inline-card,
body.dark-theme .w2m-matrix-wrap,
body.dark-theme .w2m-send-panel,
body.dark-theme .yonmap-tutorial-card,
body.dark-theme .welcome-btn,
body.dark-theme .map-search-item,
body.dark-theme .map-error-box {
    background: #111b2c;
    border-color: #2a3547;
    color: #e6edf7;
}

body.dark-theme .yonmap-tutorial-modal {
    background: rgba(5, 10, 18, 0.65);
}

body.dark-theme .yonmap-tutorial-head h3 {
    color: #d8e8ff;
}

body.dark-theme .map-search-item:hover,
body.dark-theme .welcome-btn:hover,
body.dark-theme .w2m-type-option:hover,
body.dark-theme .w2m-mini-btn:hover,
body.dark-theme .campus-switch-btn:hover {
    background: #16243a;
}

body.dark-theme .welcome-btn .btn-icon {
    background: #16243a;
    border-color: #2f4467;
}

body.dark-theme .map-section {
    background-color: #0d1626;
}

body.dark-theme .map-search-input,
body.dark-theme .w2m-form input,
body.dark-theme .w2m-form select,
body.dark-theme .w2m-form-input,
body.dark-theme .w2m-send-text {
    background: #0f1727;
    border-color: #2a3547;
    color: #e6edf7;
}

body.dark-theme .w2m-btn.secondary,
body.dark-theme .campus-switch-btn,
body.dark-theme .w2m-type-option,
body.dark-theme .w2m-mini-btn,
body.dark-theme .w2m-send-close {
    background: #16243a;
    border-color: #2f4467;
    color: #d8e8ff;
}

body.dark-theme .w2m-upload-dropzone {
    background: #0f1b2f;
    border-color: #2f4467;
}

body.dark-theme .w2m-upload-dropzone:hover,
body.dark-theme .w2m-upload-dropzone.is-drag-over {
    background: #162843;
    border-color: #4b6aa1;
}

body.dark-theme .w2m-upload-file-name {
    color: #c4d5ee;
}

body.dark-theme .w2m-time-col {
    background: #152235;
    color: #b8c8de;
}

body.dark-theme .w2m-matrix-cell {
    border-color: #2f4467;
}

body.dark-theme .w2m-matrix-blocked {
    background: #16243a;
    border-color: #2f4467;
    color: #d8e8ff;
}

body.dark-theme .w2m-date-chip {
    background: #16243a;
    border-color: #2f4467;
    color: #d8e8ff;
}

body.dark-theme .w2m-date-chip-remove {
    background: rgba(216, 232, 255, 0.16);
    color: #d8e8ff;
}

/* ========================================
   Design Refresh 2026 (Welcome / W2M / Map Beta)
   ======================================== */

header {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content p {
    font-size: 13px;
    letter-spacing: 0.01em;
}

#welcome-page.active {
    background:
        radial-gradient(circle at 10% 15%, rgba(0, 61, 165, 0.15), transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(0, 102, 204, 0.12), transparent 42%),
        linear-gradient(150deg, #f6f9ff 0%, #edf5ff 55%, #e9f2ff 100%);
}

.welcome-content {
    width: min(940px, 100%);
    padding: 34px;
    border: 1px solid #d9e5fb;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.1);
    backdrop-filter: blur(6px);
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #bdd4ff;
    background: #f3f8ff;
    color: #1c4da7;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    margin-bottom: 12px;
}

.welcome-content h2 {
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.22;
}

.welcome-content p {
    font-size: 16px;
    color: #4b5565;
}

.welcome-flow {
    margin: 16px auto 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 560px;
}

.welcome-flow-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    color: #32507b;
    border: 1px solid #d6e3fa;
    border-radius: 12px;
    background: #f8fbff;
    min-height: 38px;
    font-weight: 600;
}

.welcome-flow-step {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #dbeafe;
    color: #0d3a89;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.welcome-buttons {
    margin-top: 26px;
}

.welcome-btn {
    border-radius: 18px;
    border-width: 1px;
    text-align: left;
    min-height: 230px;
}

.welcome-btn .btn-icon {
    margin: 0 0 14px 0;
    width: 58px;
    height: 58px;
}

.welcome-btn .btn-title {
    text-align: left;
}

.welcome-btn .btn-desc {
    text-align: left;
    font-size: 13px;
    line-height: 1.55;
}

.quick-menu-drawer {
    box-shadow: -16px 0 36px rgba(15, 23, 42, 0.22);
}

.sidebar,
.info-panel {
    border-radius: 0;
}

.map-search-panel,
.w2m-card,
.info-panel {
    border-radius: 16px;
}

.map-search-help {
    font-size: 12px;
    color: var(--yon-muted);
    margin-bottom: 10px;
}

.map-beta-banner {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-radius: 14px;
    border: 1px solid #cfe0ff;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.16);
    padding: 14px 18px;
    backdrop-filter: blur(4px);
}

.map-beta-banner strong {
    color: #0f3f92;
    font-size: 15px;
}

.map-beta-banner span {
    color: #4b5565;
    font-size: 13px;
    line-height: 1.5;
}

.info-beta-card {
    margin-top: 14px;
    border: 1px solid #dbe6fa;
    border-radius: 12px;
    padding: 12px;
    background: #f8fbff;
}

.info-beta-card.muted {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.info-beta-title {
    font-size: 13px;
    font-weight: 700;
    color: #1f3f73;
    margin-bottom: 8px;
}

.info-beta-list {
    margin: 0;
    padding-left: 16px;
    display: grid;
    gap: 6px;
    color: #4b5565;
    font-size: 12px;
}

#app-page.active.when2meet-mode .sidebar {
    background: linear-gradient(180deg, #f8fbff 0%, #f5f8fe 100%);
}

.when2meet {
    margin-top: 0;
}

.w2m-card {
    border-color: #dce6f7;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.w2m-mode-switch {
    position: sticky;
    top: 0;
    z-index: 5;
    background: linear-gradient(180deg, #ffffff 70%, rgba(255, 255, 255, 0));
    padding-bottom: 8px;
    margin-bottom: 6px;
}

.w2m-main-title {
    font-size: clamp(24px, 4vw, 32px);
}

.w2m-form input,
.w2m-form select,
.w2m-form-input,
.w2m-send-text,
.map-search-input {
    border-radius: 10px;
}

.w2m-btn,
.map-search-button,
.w2m-mini-btn,
.w2m-type-option,
.campus-switch-btn {
    border-radius: 10px;
}

.w2m-create-left,
.w2m-create-right,
.w2m-inline-card,
.w2m-send-panel,
.w2m-matrix-wrap {
    border-radius: 12px;
}

.w2m-matrix-wrap {
    border-color: #dce6f7;
}

.w2m-matrix-cell {
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

@media (max-width: 1024px) {
    .welcome-content {
        padding: 24px;
    }

    .map-beta-banner {
        position: absolute;
        top: 16px;
        left: 16px;
        right: 16px;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .welcome-container {
        padding: 20px 12px;
    }

    .welcome-content {
        padding: 18px;
        border-radius: 16px;
    }

    .welcome-flow {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .welcome-buttons {
        margin-top: 18px;
        gap: 12px;
    }

    .welcome-btn {
        min-height: auto;
        padding: 20px 16px;
    }

    #app-page.active.map-mode .sidebar,
    #app-page.active.map-mode .info-panel {
        border-radius: 0;
    }

    #app-page.active.map-mode .info-panel {
        display: none !important;
    }

    .map-beta-banner {
        gap: 6px;
        flex-direction: column;
        border-radius: 12px;
        margin: 0;
        padding: 12px 13px;
        top: 12px;
        left: 12px;
        right: 12px;
    }

    .w2m-mode-switch {
        position: static;
        background: transparent;
        padding-bottom: 0;
    }
}

body.dark-theme #welcome-page.active {
    background:
        radial-gradient(circle at 12% 15%, rgba(59, 130, 246, 0.22), transparent 45%),
        radial-gradient(circle at 86% 84%, rgba(30, 64, 175, 0.24), transparent 42%),
        linear-gradient(145deg, #0f1b31 0%, #12213a 55%, #122846 100%);
}

body.dark-theme .welcome-content {
    background: rgba(15, 24, 40, 0.8);
    border-color: #294066;
}

body.dark-theme .welcome-badge {
    border-color: #365686;
    background: #1a2b48;
    color: #d3e4ff;
}

body.dark-theme .welcome-flow-item {
    border-color: #2f4367;
    background: #16243b;
    color: #d3e4ff;
}

body.dark-theme .welcome-flow-step {
    background: #27436f;
    color: #dbeafe;
}

body.dark-theme .map-beta-banner {
    background: rgba(12, 21, 37, 0.88);
    border-color: #32507f;
}

body.dark-theme .map-beta-banner strong {
    color: #dbeafe;
}

body.dark-theme .map-beta-banner span {
    color: #b4c5de;
}

body.dark-theme .info-beta-card {
    background: #182740;
    border-color: #2d446c;
}

body.dark-theme .info-beta-card.muted {
    background: #152235;
    border-color: #2a3b57;
}

body.dark-theme .info-beta-title {
    color: #d4e5ff;
}

body.dark-theme .info-beta-list,
body.dark-theme .map-search-help {
    color: #b4c5de;
}

body.dark-theme #app-page.active.when2meet-mode .sidebar {
    background: linear-gradient(180deg, #101b2d 0%, #0f1728 100%);
}

body.dark-theme .w2m-mode-switch {
    background: linear-gradient(180deg, #111b2c 72%, rgba(17, 27, 44, 0));
}

@media (max-width: 1100px) {
    #app-page.active.map-mode {
        flex-direction: column !important;
    }

    #app-page.active.map-mode .sidebar,
    #app-page.active.map-mode .map-section,
    #app-page.active.map-mode .info-panel {
        width: 100% !important;
        min-width: 0 !important;
        border-right: none !important;
        border-left: none !important;
    }

    #app-page.active.map-mode .sidebar {
        border-bottom: 1px solid var(--yon-border);
    }

    #app-page.active.map-mode .info-panel {
        border-top: 1px solid var(--yon-border);
    }

    #app-page.active.map-mode .sidebar.is-collapsed {
        width: 100% !important;
        min-width: 0 !important;
        padding: 10px 12px;
    }

    .map-campus-switch {
        left: 10px;
        right: 10px;
    }
}