/* KMTC Unified Theme (Phase 1)
   Focus: Variables, Base Reset, Header/Nav, Buttons, Hero, Utilities
   Incremental rollout: More components (cards/forms/status) will migrate later.
*/

:root {
  /* Fonts */
  --font-base: 'Pretendard', system-ui, -apple-system, 'Segoe UI', 'Noto Sans KR', sans-serif;
  --font-accent: 'Inter', 'Pretendard', 'Noto Sans KR', sans-serif;

  /* Palette */
  --color-primary: #21272E;
  --color-accent: #12B886;
  --color-accent-hover: #0F9C72;
  --color-bg: #FAFBFC;
  --color-bg-alt: #F2F4F6;
  --color-border: #D8DEE4;
  --color-text: #1F2430;
  --color-text-muted: #5A6373;
  --color-warning: #FFB95A;
  --color-danger: #E55353;
  --color-success: #31C48D;

  /* Typography Scale */
  --fs-display: 56px;
  --fs-h1: 40px;
  --fs-h2: 32px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-body-l: 18px;
  --fs-body: 16px;
  --fs-caption: 13px;

  /* Spacing */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;

  /* Radius */
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px; --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-focus: 0 0 0 3px rgba(18,184,134,0.35);
}

/* Base Reset (kept minimal to avoid breaking legacy layout) */
html { scroll-behavior: smooth; height:100%; }
body { font-family: var(--font-base); background: var(--color-bg); color: var(--color-text); line-height: 1.5; min-height:100%; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Layout Helpers */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--space-8) 0; }
.bg-alt { background: var(--color-bg-alt); }
.text-muted { color: var(--color-text-muted); }

/* Header / Navigation */
header { position: fixed; top:0; left:0; width:100%; height:84px; backdrop-filter: blur(12px); background: rgba(255,255,255,0.85); border-bottom:1px solid rgba(0,0,0,0.06); display:flex; align-items:center; justify-content:space-between; padding:0 var(--space-6); z-index:1000; box-shadow:0 2px 8px rgba(0,0,0,0.04); }
body.has-hero header { background: linear-gradient(180deg, rgba(33,39,46,0.72) 0%, rgba(33,39,46,0.62) 55%, rgba(33,39,46,0.48) 100%); border-bottom: 1px solid rgba(255,255,255,0.12); }
.logo img { height:56px; width:auto; }
.gnb { display:flex; gap:0; height:100%; align-items:center; }
.gnb>li { position:relative; height:100%; display:flex; align-items:center; padding:0 26px; }
.gnb>li>a { font-size:15px; font-weight:600; letter-spacing:.3px; display:flex; align-items:center; height:100%; border-bottom:3px solid transparent; transition:.25s; }
.gnb>li>a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.submenu { display:none; position:absolute; top:100%; left:50%; transform:translateX(-50%); min-width:190px; z-index:1200; }
.gnb>li:hover .submenu { display:block; }
.submenu-inner { background:rgba(255,255,255,0.95); backdrop-filter:blur(10px); border:1px solid var(--color-border); border-top:3px solid var(--color-accent); border-radius:0 0 var(--radius-md) var(--radius-md); box-shadow:0 12px 24px rgba(0,0,0,0.12); padding:8px 0; }
.submenu li a { display:block; padding:10px 18px; font-size:14px; font-weight:500; color:var(--color-text-muted); transition:.2s; border-bottom:1px solid #f1f3f5; }
.submenu li a:hover { background:#f5f7fa; color:var(--color-accent); font-weight:600; }
.submenu-2 { display:none; position:absolute; top:0; left:100%; min-width:180px; }
.submenu li.has-sub:hover>.submenu-2 { display:block; }
.util-menu { display:flex; align-items:center; gap:20px; font-size:14px; }
.btn-login { background: var(--color-primary); color:#fff !important; padding:10px 22px; border-radius: var(--radius-sm); font-weight:600; font-size:14px; }
.mobile-toggle { display:none; font-size:30px; cursor:pointer; }
@media (max-width:1024px){ header{height:70px; padding:0 var(--space-4);} .logo img{height:44px;} .gnb,.util-menu{display:none;} .mobile-toggle{display:block;} body{padding-top:70px;} }

/* Buttons */
.btn, .land-btn, .btn-ai-start { --_bg: var(--color-accent); --_color:#fff; --_radius: var(--radius-pill); --_pad: 14px 26px; position:relative; display:inline-flex; align-items:center; justify-content:center; gap:8px; font-size:15px; font-weight:600; background: var(--_bg); color: var(--_color); padding: var(--_pad); border-radius: var(--_radius); border:1px solid var(--color-accent-hover); box-shadow: var(--shadow-sm); transition:.35s; }
.btn:hover, .land-btn:hover, .btn-ai-start:hover { background: var(--color-accent-hover); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn.outline { background: transparent; color: var(--color-accent); border:1px solid var(--color-accent); }
.btn.outline:hover { background: var(--color-accent); color:#fff; }
.btn-primary { --_bg: var(--color-primary); border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-accent); border-color: var(--color-accent); }

/* Hero (generic page hero) */
.page-hero { position:relative; width:100%; min-height:320px; display:flex; align-items:center; justify-content:center; background: linear-gradient(135deg,#21272E 0%, #164039 70%); color:#fff; text-align:center; overflow:hidden; }
.page-hero .hero-inner { position:relative; z-index:2; }
.page-hero h1 { font-size: var(--fs-h1); font-weight:700; margin-bottom: var(--space-3); letter-spacing:.5px; }
.page-hero p { font-size: var(--fs-body-l); font-weight:400; opacity:.85; }
.page-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%); mix-blend-mode: overlay; opacity:.45; }

/* Landing (index) specific (Phase 1 override) */
body.landing { background:#000; min-height:100vh; position:relative; overflow:hidden; }
/* Fullscreen background video */
.video-bg { position:fixed; inset:0; width:100vw; height:100vh; object-fit:cover; z-index:-2; }
/* Dim overlay for readability */
body.landing::before { content:""; position:fixed; inset:0; z-index:-1; background:linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.55) 100%); }
.landing .landing-content { max-width:1200px; padding:60px 40px; color:#fff; position:relative; z-index:1; min-height:100vh; display:flex; flex-direction:column; justify-content:flex-start; padding-top:14vh; padding-bottom:8vh; }
.landing .main-title { font-size:56px; font-weight:900; line-height:1.1; margin-bottom:10px; letter-spacing:-1px; }
.landing .sub-title { font-size:22px; font-weight:600; margin-bottom:26px; opacity:.9; }
.landing .line { width:100%; height:1px; background:rgba(255,255,255,0.4); margin:20px 0; }
.landing .service-row { display:flex; flex-wrap:wrap; gap:14px; font-size:20px; font-weight:700; }
.landing .desc-box { margin:28px 0 32px; font-size:16px; line-height:1.7; font-weight:300; color:#ddd; }
.landing .btn-group{ margin-top:10px; }
.landing .land-btn { background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.28); color:#fff; }
.landing .land-btn:hover { background:#fff; color:#21272E; }

/* Cards (basic placeholder) */
.card { background:#fff; border:1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); transition:.3s; }
.card:hover { box-shadow: var(--shadow-md); }

/* Forms */
.input, .auth-input { width:100%; padding:14px 16px; border:1px solid var(--color-border); border-radius: var(--radius-sm); background:#fff; font-size:15px; }
.input:focus, .auth-input:focus { outline:none; border-color: var(--color-accent); box-shadow: var(--shadow-focus); background:#fff; }

/* Badges (to migrate later) */
.badge { font-size:12px; padding:6px 12px; border-radius: var(--radius-pill); font-weight:600; }
.badge-accent { background: var(--color-accent); color:#fff; }

/* Utilities */
.flex { display:flex; }
.flex-center { display:flex; align-items:center; justify-content:center; }
.grid { display:grid; }
.text-center { text-align:center; }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-danger { color: var(--color-danger); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.flex-between { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.hidden { display:none !important; }
.page-title { font-size:28px; font-weight:800; margin:0; }
.pt-8 { padding-top: var(--space-8); }
.pb-8 { padding-bottom: var(--space-8); }

/* Modal (align with new theme) */
.modal-overlay { backdrop-filter: blur(6px); background: rgba(0,0,0,0.72); }
.modal-box { border-radius: var(--radius-lg); box-shadow:0 24px 56px rgba(0,0,0,0.45); }
.auth-tabs { background: var(--color-bg-alt); }
.auth-tab.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.btn-submit { background: var(--color-primary); }
.btn-submit:hover { background: var(--color-accent); }

/* Mobile adjustments */
@media (max-width:768px){
  .landing .main-title { font-size:42px; }
  .landing .sub-title { font-size:18px; }
  .landing .landing-content { padding:48px 22px; padding-top:10vh; padding-bottom:6vh; }
  header { height:70px; }
}

/* =========================================
  Content Image Block (shared)
  ========================================= */
.content-image-block{margin:0 0 18px}
.content-image-block figure{margin:0;border-radius:12px;overflow:hidden;box-shadow:0 6px 22px rgba(0,0,0,.06);border:1px solid var(--color-border)}
.image-filename-tag{display:inline-block;margin-top:6px;font-size:12px;color:#64748b}
.content-image-block .caption{font-size:13px;color:#5A6373;margin-top:6px}

/* =========================================
  Alerts (shared)
  ========================================= */
.alert{padding:14px 16px;border-radius:12px;font-size:13px;line-height:1.5}
.alert-danger{border:1px solid #fecaca;background:#fef2f2;color:#b91c1c}
.alert-info{border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8}

/* =========================================
  Library / Upload page (support/upload.php)
  ========================================= */
.lib-wrap{max-width:1100px;margin:30px auto 80px;padding:0 22px}
.content-wrap{max-width:1000px;margin:40px auto 70px;padding:0 20px}

/* =========================================
  Extras (extras/index.php)
  ========================================= */
.service-wrapper{max-width:1200px;margin:50px auto 80px;padding:0 24px}
.service-wrapper h1{font-size:34px;font-weight:900;letter-spacing:.5px;margin-bottom:18px}
.service-intro{color:#555;line-height:1.75;font-size:16px;margin-bottom:34px}
.section-nav{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 42px}
.section-nav a{position:relative;padding:12px 20px;font-weight:700;font-size:14px;letter-spacing:.5px;color:#1a2b50;background:#f5f7fa;border:1px solid #d9e1ea;border-radius:40px;transition:.25s}
.section-nav a:hover{background:#1a2b50;color:#fff;box-shadow:0 4px 14px rgba(26,43,80,.25)}
.section-nav a:active{transform:translateY(2px)}
.service-section{margin-bottom:86px;position:relative}
.service-section:not(:last-of-type)::after{content:"";position:absolute;left:0;right:0;bottom:-42px;height:1px;background:linear-gradient(90deg,#d1d8e3,#eef2f6,#d1d8e3)}
.section-head{display:flex;align-items:center;gap:36px;flex-wrap:wrap;margin-bottom:30px}
.section-hero{width:100%;margin:0 0 28px;border-radius:26px;overflow:hidden;position:relative;box-shadow:0 10px 30px rgba(0,0,0,.16)}
.section-hero img{width:100%;display:block;object-fit:cover;aspect-ratio:16/5}
.section-hero .section-label{position:absolute;left:28px;top:22px;background:rgba(0,0,0,.45);padding:8px 18px;border-radius:30px;font-size:13px;font-weight:700;color:#fff;letter-spacing:.5px;backdrop-filter:blur(4px)}
.section-hero .filename-tag{position:absolute;bottom:10px;right:14px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;padding:4px 10px;border-radius:14px;font-weight:600;letter-spacing:.4px}
.section-head img{width:200px;max-width:100%;border-radius:18px;box-shadow:0 6px 24px rgba(0,0,0,.12)}
.section-head h2{font-size:28px;font-weight:800;margin:0 0 14px;letter-spacing:.3px}
.section-head p{color:#555;line-height:1.7;font-size:15px}
.cards-grid{display:grid;gap:26px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.cards-grid.wide{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.service-card{position:relative;background:#fff;border:1px solid #e3e8ef;border-radius:18px;padding:22px 22px 26px;box-shadow:0 4px 14px rgba(0,0,0,.04);display:flex;flex-direction:column;gap:10px;transition:.3s;overflow:hidden}
.service-card::before{content:"";position:absolute;inset:0;background:linear-gradient(140deg,rgba(26,43,80,.06),rgba(0,85,255,.05));opacity:0;transition:.35s}
.service-card:hover{transform:translateY(-6px);box-shadow:0 10px 28px rgba(0,0,0,.12)}
.service-card:hover::before{opacity:1}
.card-image{width:100%;border-radius:14px;overflow:hidden;box-shadow:0 4px 14px rgba(0,0,0,.1);aspect-ratio:4/3;background:#f2f5f8;display:flex;align-items:center;justify-content:center;position:relative}
.card-image img{width:100%;height:100%;object-fit:cover;display:block}
.card-image span{position:absolute;bottom:6px;right:10px;font-size:11px;background:rgba(0,0,0,.45);color:#fff;padding:3px 8px;border-radius:12px;letter-spacing:.5px}
.service-card h3{font-size:17px;font-weight:800;margin:0;letter-spacing:.4px;color:#1a2b50}
.service-card p{font-size:13.5px;color:#5c6470;line-height:1.55;margin:0}
.service-card ul{padding-left:18px;margin:4px 0 0;line-height:1.5;font-size:13.5px;color:#333}
.service-card ul li{margin:2px 0}
.cta-bar{display:flex;flex-wrap:wrap;gap:14px;margin-top:14px}
.cta-bar a{position:relative;padding:14px 26px;font-weight:700;font-size:14px;letter-spacing:.6px;border-radius:50px;border:1px solid #1a2b50;color:#1a2b50;background:#fff;transition:.3s}
.cta-bar a:hover{background:#1a2b50;color:#fff;box-shadow:0 6px 20px rgba(26,43,80,.35)}
.cta-bar a.alt{border-color:#0055ff;color:#0055ff}
.cta-bar a.alt:hover{background:#0055ff;color:#fff}
@media (max-width:780px){
  .section-head{gap:22px}
  .section-head img{width:100%}
  .service-wrapper{margin:40px auto 70px}
  .service-card{padding:20px 18px 22px}
  .section-hero img{aspect-ratio:16/7}
}

/* =========================================
  Tabs (Generic)
  ========================================= */
.tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--color-border);margin-bottom:6px}
.tab-link{padding:12px 18px;border:1px solid var(--color-border);border-bottom:none;border-radius:8px 8px 0 0;background:#f8f9fb;font-weight:700;color:var(--color-text);transition:.2s}
.tab-link:hover{background:#eef2f7}
.tab-link.active{background:#fff;color:var(--color-primary);border-color:#cfd6dd}
.tab-panel{display:none;border:none;border-radius:0;padding:0;min-height:240px}
.tab-panel.active{display:block}

/* =========================================
  Company Intro / Sections (company/index.php)
  ========================================= */
.company-wrap{max-width:1200px;margin:40px auto;padding:0 20px}
.company-wrap h1{font-size:28px;font-weight:900;margin-bottom:20px}
.kmtc-pro-section{background:#fff;border:1px solid var(--color-border);border-radius:12px;padding:1.2rem;box-shadow:0 6px 16px rgba(0,0,0,.04)}
.kmtc-pro-hero{height:180px;border-radius:10px;display:flex;align-items:center;padding:0 16px;color:#fff;margin-bottom:14px;
  background: url('/images/hero/office.png') center/cover no-repeat, linear-gradient(135deg,#1a2b50,#2f4a79)}
.kmtc-pro-hero.business{background: url('/images/hero/tranasfer.jpg') center/cover no-repeat, linear-gradient(135deg,#1a2b50,#2f4a79)}
.kmtc-pro-hero.map{background: url('/images/hero/cp01.jpg') center/cover no-repeat, linear-gradient(135deg,#1a2b50,#2f4a79)}
.kmtc-pro-section .main-title-wrap{display:flex;align-items:center;gap:.8rem;margin-bottom:.8rem;padding-bottom:1rem;border-bottom:3px solid #adb5bd}
.kmtc-pro-section .circle-wrap{position:relative;width:60px;height:60px;flex-shrink:0}
.kmtc-pro-section .circle-pink{width:60px;height:60px;background-color:rgba(214,106,132,.7);border-radius:50%;position:absolute;top:0;left:0}
.kmtc-pro-section .circle-blue{width:28px;height:28px;background-color:rgba(100,140,198,.7);border-radius:50%;position:absolute;bottom:0;right:0}
.kmtc-pro-section .main-title-wrap h2{font-size:1.3rem;font-weight:700;color:#194a8a;margin:0}
.kmtc-pro-section .sub-label{font-size:1.05rem;font-weight:500;color:#343a40;margin-top:.5rem;margin-bottom:.3rem}
.kmtc-pro-section .sub-label span{display:block;font-size:.85rem;color:#495057}
.kmtc-pro-section .content-section{margin-top:1.2rem;padding-top:1rem;padding-bottom:1rem;border-top:1px solid #adb5bd}
.kmtc-pro-section .content-section:last-of-type{border-bottom:3px solid #adb5bd;margin-bottom:.8rem}
.kmtc-pro-section .content-section h3{font-size:1.05rem;margin-bottom:.4rem;color:#343a40;padding-left:.5rem;border-left:4px solid #adb5bd}
.kmtc-pro-section .content-section p,
.kmtc-pro-section .content-section ul{padding-left:1rem;font-size:.95rem;color:#495057}
.kmtc-pro-section .content-section li{margin-bottom:.3rem}
.kmtc-pro-section .content-section li strong{color:#194a8a}
.map-box{margin-top:1.5rem;text-align:center}
.map-box img{max-width:100%;height:auto;border:1px solid #dee2e6;border-radius:8px}
.contact-info{margin-top:1.5rem;font-size:1rem;padding-left:1.5rem}
.contact-info div{margin-bottom:.5rem}
.contact-info span{font-weight:500;margin-right:.5rem}

/* =========================================
  Services Grid (business/index.php)
  ========================================= */
.svc-wrap{max-width:1200px;margin:60px auto 100px;padding:0 40px}
.svc-title{font-size:2rem;font-weight:900;color:#1a2b50;margin:20px 0}
.svc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.svc-card{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:14px;box-shadow:0 10px 24px rgba(0,0,0,.06);overflow:hidden;display:block}
.svc-card img{width:100%;height:180px;object-fit:cover}
.svc-card .body{padding:16px 18px}
.svc-card .body h3{margin:0 0 8px;font-size:1.1rem;color:#1a2b50}
.svc-card .body p{margin:0;color:#555;font-size:.95rem;line-height:1.5}
@media(max-width:960px){.svc-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.svc-grid{grid-template-columns:1fr}}

/* =========================================
  AI Chat Component (consult/ai.php)
  Migrated from inline <style> block
  ========================================= */
.kmtc-ai-chat{max-width:1100px;margin:24px auto 60px;padding:0 20px}
.kmtc-ai-chat .chat-wrapper{position:relative;display:flex;flex-direction:column;border:1px solid rgba(0,0,0,.06);border-radius:14px;box-shadow:0 8px 20px rgba(0,0,0,.06);background:#fff;overflow:hidden}
.kmtc-ai-chat .chat-body{position:relative;flex:1;max-height:60vh;min-height:420px;overflow-y:auto;padding:48px 0 28px;scroll-behavior:smooth;scrollbar-width:none}
.kmtc-ai-chat .chat-body::-webkit-scrollbar{display:none}
.kmtc-ai-chat .chat-inner{max-width:1000px;width:92%;margin:0 auto;padding:0 6px}
.kmtc-ai-chat .chat-message{width:100%;margin-bottom:1.2rem;display:flex;line-height:1.6}
.kmtc-ai-chat .chat-message.user{justify-content:flex-end}
.kmtc-ai-chat .bot{gap:.75rem}
.kmtc-ai-chat .user-content img{max-width:240px;border-radius:8px;margin-top:10px;display:block}
.kmtc-ai-chat #welcome-message{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;color:#777;transition:.5s;width:calc(100% - 12px);pointer-events:none}
.kmtc-ai-chat #welcome-message h2{margin:0 0 8px}
.kmtc-ai-chat #welcome-message p{margin:0}
.kmtc-ai-chat .chat-body .chat-message:first-child{margin-top:8px}
.kmtc-ai-chat .chat-input-area{background:#fff;padding:18px 0 22px;border-top:1px solid rgba(0,0,0,.06)}
.kmtc-ai-chat .chat-input-wrapper{max-width:1000px;width:92%;margin:0 auto;padding:0 6px}
.kmtc-ai-chat #file-preview-container{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.kmtc-ai-chat #image-upload-notice{padding:10px;margin-bottom:12px;background-color:#fffbe6;border:1px solid #ffe58f;border-radius:8px;font-size:.85em;color:#8a6d3b;display:none;transition:opacity .5s;line-height:1.5}
.kmtc-ai-chat .chat-input{background:#fff;border:1px solid #ddd;border-radius:24px;padding:14px 20px 12px;box-shadow:0 1px 3px rgba(0,0,0,.06);display:flex;flex-direction:column;gap:12px}
.kmtc-ai-chat .chat-input textarea{width:100%;resize:none;border:none;outline:none!important;font-size:1rem;background:transparent;max-height:180px;overflow-y:hidden}
.kmtc-ai-chat .chat-input textarea::placeholder{color:#aaa}
.kmtc-ai-chat .input-actions{display:flex;justify-content:space-between;align-items:center}
.kmtc-ai-chat #upload-label{cursor:pointer;font-size:1.8rem;color:#666;user-select:none}
.kmtc-ai-chat #upload-label.disabled{cursor:not-allowed;color:#ccc}
.kmtc-ai-chat #image-upload{display:none}
.kmtc-ai-chat .send-btn{width:42px;height:42px;border:none;border-radius:50%;background:var(--color-primary);color:#fff;font-size:1.2rem;display:flex;align-items:center;justify-content:center}
.kmtc-ai-chat .send-btn:hover{filter:brightness(1.08)}
.kmtc-ai-chat .send-btn:disabled{background:#ccc;cursor:not-allowed}
.kmtc-ai-chat .notice{margin-top:6px;font-size:.8rem;color:#888;text-align:center}
.kmtc-ai-chat .file-preview-item{background:#f5f5f5;padding:5px 10px;border-radius:12px;font-size:.9em;display:flex;align-items:center}
.kmtc-ai-chat .file-preview-item .remove-file{margin-left:10px;cursor:pointer;font-weight:bold}
.kmtc-ai-chat .blinking-text{animation:blink 1.5s infinite ease-in-out}
@keyframes blink{50%{opacity:.5}}
@media (max-width:1024px){.kmtc-ai-chat .chat-body{min-height:360px;max-height:65vh}}
@media (max-width:768px){.kmtc-ai-chat .chat-input{padding:12px 16px}.kmtc-ai-chat .send-btn{width:40px;height:40px;font-size:1.1rem}.kmtc-ai-chat .chat-input textarea{font-size:.95rem}}
.login-gate{max-width:820px;margin:40px auto;padding:28px 24px;border:1px solid #eee;border-radius:14px;background:#fff;box-shadow:0 8px 20px rgba(0,0,0,.05);text-align:center}
.login-gate h2{margin:0 0 10px;font-size:1.5rem}
.login-gate p{margin:0 0 16px;color:#666}
.login-gate a{display:inline-block;padding:12px 20px;background:var(--color-primary);color:#fff;border-radius:10px;font-weight:800}
.login-gate a:hover{background:var(--color-accent)}

/* =========================================
  Status Dashboard Component (support/status.php)
  ========================================= */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ui-btn{background:#fff;border:1px solid #d1d5db;color:#374151;padding:10px 14px;border-radius:10px;font-weight:800;font-size:13px}
.ui-btn.primary{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}
.ui-btn:hover{box-shadow:0 2px 8px rgba(0,0,0,.08)}
.ui-input{width:100%;padding:11px 12px;border:1px solid #e5e7eb;border-radius:10px;font-size:14px;background:#f9fafb}
.cat-btn{padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;color:#374151;font-weight:800;font-size:12px}
.cat-btn.active{border-color:var(--color-accent);background:#eef2ff;color:var(--color-accent)}
.card-hd{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;cursor:pointer}
.card-hd:hover{background:#f9fafb}
.card-tt{font-weight:800;color:#111827}
.card-meta{display:flex;gap:8px;align-items:center}
.chip{font-size:10px;padding:4px 8px;border-radius:999px;border:1px solid #e5e7eb;color:#6b7280;font-weight:800}
.chip.blue{background:#eef2ff;border-color:#c7d2fe;color:var(--color-primary)}
.chev{transition:transform .2s ease}
.card-bd{display:none;border-top:1px solid #e5e7eb;background:#f9fafb}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.field{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:10px}
.field .lb{font-size:11px;color:#6b7280;font-weight:800;margin-bottom:4px}
.field .val{font-size:14px;color:#374151;font-weight:700}
.stage-wrap{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:10px;margin-bottom:10px}
.stages{display:flex;gap:6px}
.stage{flex:1;text-align:center}
.stage .dot{width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:2px solid #e5e7eb;background:#fff;color:#9ca3af;font-size:12px;font-weight:900}
.stage.done .dot{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}
.stage.active .dot{background:#fff;color:var(--color-primary);border-color:var(--color-primary);box-shadow:0 0 0 4px rgba(33,39,46,.15)}
.stage .name{margin-top:6px;font-size:10px;color:#6b7280;font-weight:800}
@media (max-width:900px){ .grid2{grid-template-columns:1fr} }

/* =========================================
  Notice Board Components (bbs/notice)
  ========================================= */
.board-main{max-width:1100px;margin:28px auto 70px;padding:0 20px}
.board-search-form{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:18px}
.board-search-form .input-text{flex:1 1 260px;min-width:220px;height:42px;border:1px solid var(--color-border);border-radius:8px;padding:0 12px;font-size:14px;background:#fff}
.board-search-form .btn-search{height:42px;padding:0 16px;border:1px solid var(--color-primary);border-radius:8px;background:var(--color-primary);color:#fff;font-weight:700;font-size:14px}
.board-search-form .btn-reset{height:42px;display:inline-flex;align-items:center;padding:0 14px;border:1px solid var(--color-border);border-radius:8px;background:#fff;color:var(--color-text);font-weight:600;font-size:14px}
.board-card{background:#fff;border:1px solid var(--color-border);border-radius:12px;overflow:hidden;box-shadow:0 6px 20px rgba(0,0,0,.05)}
.board-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #eef2f7;background:linear-gradient(180deg,#f8fafc,#f1f5f9)}
.board-head h2{font-size:18px;color:#0f172a;font-weight:800;margin:0}
.btn-new{height:38px;display:inline-flex;align-items:center;padding:0 14px;border:1px solid var(--color-primary);border-radius:8px;background:var(--color-primary);color:#fff;font-weight:700;font-size:14px}
.board-table{width:100%;border-collapse:separate;border-spacing:0}
.board-table thead tr{background:#f8fafc;border-bottom:1px solid var(--color-border)}
.board-table th{padding:12px 10px;font-size:13px;font-weight:700;color:#334155;text-align:left}
.board-table td{padding:12px 10px;font-size:13px;color:#475569;vertical-align:top}
.board-table td.title-cell{font-size:14px;color:#0f172a;font-weight:600}
.badge-pin{display:inline-block;padding:2px 8px;border-radius:999px;background:#e6f2ff;color:#1a2b50;font-size:12px;font-weight:800;margin-right:6px}
.board-table tbody tr{border-bottom:1px solid #f1f5f9}
.board-empty{padding:34px 16px;text-align:center;color:#64748b;font-size:14px}
.btn-edit,.btn-del{border:1px solid; font-size:11px;padding:4px 8px;border-radius:6px;font-weight:700;display:inline-flex;align-items:center}
.btn-edit{background:#475569;border-color:#475569;color:#fff}
.btn-del{background:#dc2626;border-color:#dc2626;color:#fff}
.board-pagination{display:flex;flex-wrap:wrap;gap:6px;padding:14px;justify-content:center}
.page-btn{min-width:36px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;font-size:12px;font-weight:700;background:#fff;color:#334155;display:inline-flex;align-items:center;justify-content:center}
.page-btn[aria-current="page"]{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}
.notice-admin-panel{margin-top:30px;background:#fff;border:1px solid var(--color-border);border-radius:14px;padding:20px;box-shadow:0 6px 18px rgba(0,0,0,.05)}
.notice-admin-panel h3{margin:0 0 18px;font-size:18px;font-weight:800}
.notice-admin-form{display:flex;flex-direction:column;gap:14px}
.notice-admin-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:#0f172a}
.notice-admin-form input[type=text], .notice-admin-form textarea{border:1px solid #d1d5db;border-radius:8px;font-size:14px;padding:12px;background:#fff}
.notice-admin-form textarea{resize:vertical;font-size:13px}
.notice-admin-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.btn-save{height:42px;padding:0 20px;border:1px solid var(--color-primary);background:var(--color-primary);color:#fff;font-weight:700;border-radius:10px;font-size:14px}
.btn-cancel{height:42px;padding:0 20px;border:1px solid var(--color-border);background:#fff;color:#334155;font-weight:600;border-radius:10px;font-size:14px}
.notice-admin-status{font-size:12px;color:#475569;margin-top:4px}
.notice-view-card{background:#fff;border:1px solid var(--color-border);border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.05);overflow:hidden}
.nv-head{padding:22px 26px;border-bottom:1px solid #eef2f7;background:linear-gradient(180deg,#f8fafc,#f1f5f9)}
.nv-head h1{margin:0;font-size:24px;font-weight:800;line-height:1.3;color:#0f172a}
.nv-meta{margin-top:12px;font-size:13px;color:#64748b;display:flex;gap:16px;flex-wrap:wrap}
.nv-body{padding:30px 26px;min-height:300px;font-size:15px;line-height:1.7;color:#334155}
.nv-content{white-space:pre-line;word-break:break-word}
.nv-foot{padding:16px 26px;border-top:1px solid #eef2f7;background:#f8fafc;display:flex;gap:10px;flex-wrap:wrap}
.btn-back{display:inline-flex;align-items:center;justify-content:center;padding:0 18px;height:42px;border:1px solid var(--color-border);border-radius:10px;background:#fff;color:#334155;font-weight:700;font-size:14px}
.badge-pinned{display:inline-block;padding:4px 10px;border-radius:999px;background:var(--color-primary);color:#fff;font-size:12px;font-weight:700}
.nv-image figure{margin:0 0 24px}
.nv-image img{max-width:100%;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,.08)}

/* =========================================
  Quote Pages (support/quote/*)
  ========================================= */
.quote-main{max-width:1000px;margin:30px auto 70px;padding:0 20px}
.quote-intro{font-size:15px;color:#555;line-height:1.7;margin-bottom:18px}
.thumb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px;margin-top:12px}
.thumb{background:#fff;border:1px solid var(--color-border);border-radius:12px;padding:10px;box-shadow:0 2px 8px rgba(0,0,0,.04);display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;color:#5A6373}
.thumb img{width:100%;height:120px;object-fit:cover;border-radius:8px}
.btn-group{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.btn-unified{background:var(--color-accent);color:#fff;padding:12px 22px;border-radius:var(--radius-pill);font-weight:700;font-size:14px;display:inline-flex;align-items:center;box-shadow:var(--shadow-sm);border:1px solid var(--color-accent-hover);}
.btn-unified:hover{background:var(--color-accent-hover);}
.btn-outline-unified{background:#fff;color:var(--color-primary);padding:12px 20px;border-radius:var(--radius-pill);font-weight:600;font-size:14px;border:1px solid var(--color-primary);display:inline-flex;align-items:center}
.btn-outline-unified:hover{background:var(--color-primary);color:#fff}
.btn-pill-sm{padding:10px 18px;font-size:13px}
@media (max-width:600px){ .thumb img{height:100px} }
