/* AICM v2 — Simulator Edition — premium office + motion */
:root {
  --ink: #1a1e22; --muted: #5f6a75; --line: #dde2e4; --bg: #e7ebe6;
  --panel: #ffffff; --accent: #0e6b4f; --accent-deep: #0a4a37;
  --accent-soft: #dcebe2; --gold: #d29a2b; --gold-soft:#fff3cc;
  --pine: #152420; --pine-line: #2a3a33; --pine-muted: #93a49b;
  --danger: #b3261e; --danger-soft: #fdecea;
  --r: 14px; --r-sm: 8px;
  --shadow: 0 1px 2px rgba(18,26,22,.07), 0 8px 24px rgba(18,26,22,.08);
  --shadow-sm: 0 1px 3px rgba(18,26,22,.1);
  --glow: 0 0 0 3px var(--accent-soft);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, "Segoe UI", Thonburi, Tahoma, sans-serif;
       color: var(--ink); background: var(--bg); font-size: 15px; overflow-x:hidden; }
a { color: var(--accent); }
::selection { background: var(--accent-soft); }

/* ---- ambient orbs background like simulator ---- */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow:hidden; }
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(48px); opacity:.18; animation: orb-float 18s ease-in-out infinite; }
.bg-orbs span:nth-child(1){ width:420px; height:420px; background: var(--accent); left:-80px; top:12%; animation-duration:22s;}
.bg-orbs span:nth-child(2){ width:360px; height:360px; background: var(--gold); right:-60px; top:38%; animation-duration:26s; animation-delay:-4s;}
.bg-orbs span:nth-child(3){ width:520px; height:520px; background: #8ab4a8; left:32%; bottom:-140px; animation-duration:28s; animation-delay:-8s;}
@keyframes orb-float { 0%,100%{ transform: translate(0,0) scale(1);} 33%{ transform: translate(18px,-22px) scale(1.08);} 66%{ transform: translate(-14px,16px) scale(.95);} }

/* ---- app shell ---- */
.layout { display: flex; max-width: 1180px; margin: 0 auto; min-height: 100vh; gap: 18px;
          padding: 18px 18px 0; position:relative; }
aside { width: 314px; flex-shrink: 0; background: linear-gradient(180deg, #182b24 0%, #152420 100%);
        color: #edf1ee; border: 1px solid var(--pine-line); border-radius: var(--r); 
        box-shadow: var(--shadow); padding: 18px 14px; align-self: flex-start; 
        position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow-y: auto; }
aside h2 { font-size: 12px; letter-spacing: .08em; color: var(--pine-muted);
           font-weight: 800; margin: 18px 4px 10px; text-transform: uppercase; }
aside::-webkit-scrollbar { width: 8px; } 
aside::-webkit-scrollbar-thumb { background: var(--pine-line); border-radius: 8px; }
.brand { display: flex; gap: 11px; align-items: center; padding: 4px 4px 16px;
         border-bottom: 1px solid var(--pine-line); margin-bottom: 16px; position:relative; }
.brand::after{ content:''; position:absolute; left:0; right:0; bottom:-1px; height:1px; background: linear-gradient(90deg, var(--gold), transparent); opacity:.6;}
.brand .mark.logo { background: #fff; object-fit: contain; padding: 3px; animation: none; }
.brand .mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--gold), #e8b84a);
               color: var(--pine); font-weight: 900; font-size: 20px; flex-shrink: 0;
               display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(210,154,43,.35); animation: mark-pulse 2.8s ease-in-out infinite; }
@keyframes mark-pulse{ 0%,100%{ transform:scale(1); box-shadow:0 2px 8px rgba(210,154,43,.35);} 50%{ transform:scale(1.04); box-shadow:0 4px 14px rgba(210,154,43,.5);} }
.brand b { display: block; font-size: 16px; letter-spacing: .02em; }
.brand span { display: block; font-size: 12px; color: var(--pine-muted); }
main.col { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-bottom: 18px; }
main.page { max-width: 820px; margin: 0 auto; padding: 26px 22px 60px; }

/* ---- header ---- */
header.top { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
             border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
             padding: 16px 20px; margin-bottom: 14px; position:relative; overflow:hidden; }
header.top::before{ content:''; position:absolute; inset:0; background: radial-gradient(380px 120px at 10% 0%, var(--accent-soft), transparent 70%); pointer-events:none; opacity:.8;}
header.top h1 { font-size: 21px; margin: 0; letter-spacing: -.02em; position:relative; }
header.top .sub { font-size: 13px; color: var(--muted); margin: 4px 0 0; position:relative; }
header.top nav { font-size: 13px; margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; position:relative; }
header.top nav a { text-decoration: none; padding: 5px 12px; border-radius: 999px;
                   border: 1px solid var(--line); color: var(--ink); font-weight: 650;
                   transition: all .18s; position:relative; overflow:hidden; }
header.top nav a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
header.top nav a.here { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-sm); }
#mode { margin-left: auto; font-size: 12px; font-weight: 800; padding: 7px 14px; white-space: nowrap;
        border-radius: 999px; background: var(--bg); color: var(--muted);
        border: 1px solid var(--line); position:relative; transition: all .2s; }
#mode.live { background: var(--accent); border-color: var(--accent); color: #fff;
             box-shadow: 0 0 0 3px var(--accent-soft), 0 0 18px rgba(14,107,79,.35); animation: live-glow 2s ease-in-out infinite alternate; }
@keyframes live-glow{ from{ box-shadow:0 0 0 3px var(--accent-soft), 0 0 10px rgba(14,107,79,.2);} to{ box-shadow:0 0 0 4px var(--accent-soft), 0 0 22px rgba(14,107,79,.45);} }

/* ---- buttons ---- */
button, .btn { font: inherit; font-size: 14px; font-weight: 750; border: 0;
               border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer;
               padding: 10px 22px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(14,107,79,.18);
               transition: all .18s; position:relative; overflow:hidden; }
button:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(14,107,79,.24); }
button:active { transform: translateY(0px) scale(.98); }
button:disabled { opacity: .5; cursor: wait; transform: none; }
button.ghost { background: var(--panel); color: var(--ink); border: 1px solid var(--line);
               box-shadow: 0 1px 2px rgba(0,0,0,.04); }
button.ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--panel); transform: translateY(-1px); }
input[type=text], input:not([type]), textarea, select { font: inherit; font-size: 14px;
  color: var(--ink); padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; transition: all .18s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft); transform: translateY(-1px); }
label.f { display:block; font-size:13px; font-weight:700; margin:12px 0 6px; color:var(--muted); }
textarea.f { width:100%; min-height:78px; resize:vertical; }

/* ---- sidebar ---- */
#meetbtn { width: 100%; font-size: 14px; padding: 13px; margin-bottom: 6px;
           background: linear-gradient(135deg, var(--gold), #e8b84a); color: var(--pine); font-weight:800;
           box-shadow: 0 2px 10px rgba(210,154,43,.35); position:relative; overflow:hidden; }
#meetbtn::after{ content:''; position:absolute; inset:0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); transform: translateX(-100%); animation: shimmer 3s ease-in-out infinite; }
@keyframes shimmer{ 0%{ transform: translateX(-100%);} 60%,100%{ transform: translateX(100%);} }
.dept { padding: 12px 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px;
        margin-bottom: 8px; background: rgba(255,255,255,.05); position:relative; transition: all .22s; overflow:hidden; }
.dept::before{ content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--c, var(--gold)); opacity:0; transition: opacity .2s; }
.dept:hover{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); transform: translateX(2px); }
.dept:hover::before{ opacity:1; }
.dept b { font-size: 14px; display: block; color: #fff; }
.dept span { font-size: 12px; color: var(--pine-muted); }
.dept .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%;
             margin-right: 6px; box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 0 8px currentColor; animation: dot-pulse 2s ease-in-out infinite; }
@keyframes dot-pulse{ 0%,100%{ transform: scale(1); opacity:1;} 50%{ transform: scale(1.15); opacity:.85;} }
.dept button { font-size: 12px; margin-top: 9px; padding: 6px 15px; background: rgba(255,255,255,.06);
               color: #fff; border: 1px solid rgba(255,255,255,.12); box-shadow: none; }
.dept button:hover { border-color: var(--gold); color: var(--gold); background: rgba(255,255,255,.1); }

/* ---- briefing ---- */
#brief { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r);
         box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 14px; position:relative; overflow:hidden; }
#brief::after{ content:''; position:absolute; top:0; left:0; right:0; height:3px; background: linear-gradient(90deg, var(--accent), var(--gold)); }
#brief h2 { font-size: 15px; margin: 0 0 8px; display:flex; align-items:center; gap:8px; }

/* ---- chat ---- */
#log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
       padding: 4px 0 12px; min-height: 300px; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: 13px 16px; border-radius: 16px; font-size: 14px;
       line-height: 1.72; white-space: pre-wrap; word-break: break-word;
       box-shadow: var(--shadow-sm); position:relative; animation: msg-in .42s cubic-bezier(.2,1.2,.3,1); }
@keyframes msg-in{ from{ opacity:0; transform: translateY(12px) scale(.96);} to{ opacity:1; transform: none;} }
.user { align-self: flex-end; background: linear-gradient(135deg, var(--accent-deep), var(--accent)); color: #fff;
        border-bottom-right-radius: 5px; box-shadow: 0 2px 8px rgba(14,107,79,.22); }
.ai { align-self: flex-start; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border: 1px solid var(--line);
      border-bottom-left-radius: 5px; }
.ai .tag { display: flex; align-items:center; gap:6px; font-size: 12px; font-weight: 850; color: var(--accent);
           margin-bottom: 6px; }
.ai .tag::before{ content:''; width:6px; height:6px; border-radius:50%; background: currentColor; box-shadow: 0 0 6px currentColor; animation: dot-pulse 1.8s ease-in-out infinite; }
#typing { display:flex; gap:4px; align-items:center; padding:10px 14px; background: var(--panel); border:1px solid var(--line); border-radius:14px; width:fit-content; box-shadow: var(--shadow-sm); }
#typing[hidden]{ display:none !important; }
#typing span{ width:6px; height:6px; border-radius:50%; background: var(--muted); animation: typing-bounce 1.2s ease-in-out infinite; }
#typing span:nth-child(2){ animation-delay:.15s;} #typing span:nth-child(3){ animation-delay:.3s;}
@keyframes typing-bounce{ 0%,80%,100%{ transform: translateY(0); opacity:.5;} 40%{ transform: translateY(-6px); opacity:1;} }

/* ---- runner stage simulator edition ---- */
#stage { background: linear-gradient(180deg, #ffffff 0%, #f8faf8 100%); border: 1px solid var(--line);
         border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 18px 8px; position:relative; overflow:hidden; }
#stage .st-title { font-size: 12px; font-weight: 850; color: var(--accent); margin-bottom: 8px; display:flex; align-items:center; gap:6px; animation: title-pulse .9s ease-in-out infinite alternate; }
#stage .st-title::before{ content:''; width:8px; height:8px; border-radius:50%; background: var(--accent); box-shadow:0 0 8px var(--accent); animation: dot-pulse 1s ease-in-out infinite; }
@keyframes title-pulse { from { opacity: .7; } to { opacity: 1; } }
#track { position: relative; height: 112px; border-top: 2px dashed var(--line); margin-top:6px; }
#desk { position: absolute; left: 10%; bottom: 18px; width: 52px; text-align: center; animation: desk-float 3s ease-in-out infinite; }
@keyframes desk-float{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-2px);} }
#desk .pile { width: 28px; height: 20px; margin: 0 auto; background: linear-gradient(180deg, #fff, var(--bg));
              border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
#desk span { font-size: 10px; color: var(--muted); font-weight:700; margin-top:4px; display:block; }
.room { position: absolute; right: 4px; width: 124px; height: 42px;
        border: 1px solid var(--accent); border-radius: 8px; background: linear-gradient(135deg, var(--accent-soft), #e8f3ec);
        font-size: 11px; font-weight: 850; color: var(--accent-deep); display: flex; align-items: center; justify-content: center; padding: 0 8px;
        box-shadow: 0 2px 8px rgba(14,107,79,.15); animation: room-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.room.meeting { height: 84px; width: 138px; background: linear-gradient(135deg, var(--gold-soft), #fff6d6); border-color: var(--gold); color: #7a5a00; }
@keyframes room-pop { from { transform: scale(.5) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.runner { position: absolute; bottom: 20px; width: 52px; margin-left: -26px; text-align: center;
          filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .22)); }
.runner .rhead { display: block; width: 18px; height: 18px; border-radius: 50%;
                 background: var(--c, #999); margin: 0 auto; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #999) 22%, transparent); }
.runner .rbody { display: block; width: 20px; height: 28px; border-radius: 8px;
                 background: linear-gradient(180deg, var(--c, #999), color-mix(in srgb, var(--c, #999) 85%, #000));
                 margin: 2px auto 0; }
.runner .rlabel { display: block; font-size: 11px; font-weight: 850; margin-top: 4px; white-space: nowrap; }
.runner .slip { display: none; width: 18px; height: 13px; background: linear-gradient(180deg, #fff, #f2f2f2);
                border: 1.5px solid var(--muted); border-radius: 3px; margin: 3px auto 0; }
.runner.carry .slip { display: block; transform-origin: top center; animation: wiggle .32s ease-in-out infinite alternate; }
@keyframes wiggle { from { transform: rotate(-16deg) } to { transform: rotate(16deg) } }
.runner.bob .rhead, .runner.bob .rbody { animation: bob .32s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-7px) rotate(6deg); } }
.runner.move { animation: run-pulse .26s ease-in-out infinite; }
@keyframes run-pulse { 0%,100%{ transform: skewX(-14deg) scaleY(1);} 50%{ transform: skewX(-14deg) scaleY(.86) translateY(3px);} }
.runner.move::before { content: ''; position: absolute; right: 100%; top: 8px; width: 38px; height: 26px; margin-right: 6px;
                background: repeating-linear-gradient(to bottom, transparent 0 5px, rgba(0,0,0,.18) 5px 7px); animation: speed .32s linear infinite; }
@keyframes speed { from { transform: translateX(10px); opacity: 0; } 40% { opacity: 1; } to { transform: translateX(-8px); opacity: 0; } }
.runner.move::after { content: ''; position: absolute; left: 4px; bottom: -5px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, rgba(0,0,0,.18) 0%, transparent 70%); animation: dust .42s ease-out infinite; }
@keyframes dust { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.9) translateX(-12px); opacity: 0; } }

/* ---- Simulator Page — NEW ANIMATIONS ---- */
.scen-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; margin:12px 0 6px; }
.scen{ text-align:left; padding:14px 14px; border-radius:12px; border:1px solid var(--line); background:linear-gradient(180deg,#fff,#fbfdfb); cursor:pointer; transition:all .22s; position:relative; overflow:hidden; }
.scen b{ display:block; font-size:14px; margin-bottom:3px; }
.scen span{ font-size:12px; color:var(--muted); }
.scen:hover{ transform:translateY(-2px); border-color:var(--accent); box-shadow:0 6px 18px rgba(18,26,22,.08); }
.scen.picked{ background:linear-gradient(135deg,var(--accent-deep),var(--accent)); color:#fff; border-color:var(--accent-deep); box-shadow:0 6px 18px rgba(14,107,79,.25); }
.scen.picked span{ color:#cfe8dc; }
.scen.picked::after{ content:'✓'; position:absolute; right:12px; top:12px; width:22px; height:22px; border-radius:50%; background:rgba(255,255,255,.22); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:900; }

#simstage{ background:linear-gradient(180deg,#ffffff 0%,#f8faf8 100%); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow); padding:18px 20px 16px; margin:16px 0 14px; position:relative; overflow:hidden; }
#simstage::before{ content:''; position:absolute; inset:0; background:radial-gradient(420px 140px at 20% 0%,var(--accent-soft),transparent 70%); pointer-events:none; opacity:.7; }
#simstage .table{ font-size:13px; font-weight:850; color:var(--accent-deep); letter-spacing:.02em; margin-bottom:12px; padding:10px 14px; background:linear-gradient(135deg,var(--accent-soft),#eaf4ee); border:1px dashed var(--accent); border-radius:10px; position:relative; display:flex; align-items:center; gap:8px; }
#simstage .table::before{ content:''; width:10px; height:10px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px var(--accent-soft),0 0 10px var(--accent); animation:dot-pulse 1.4s ease-in-out infinite; }

#seats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(138px,1fr)); gap:10px; margin:10px 0 14px; position:relative; }
.seat{ position:relative; display:flex; align-items:center; gap:10px; padding:12px 12px; border-radius:12px; background:rgba(255,255,255,.9); border:1px solid var(--line); box-shadow:var(--shadow-sm); font-size:13px; font-weight:700; opacity:0; transform:translateY(18px) scale(.96); transition:all .3s; }
.seat .sdot{ width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:900; font-size:14px; flex-shrink:0; box-shadow:0 2px 8px rgba(0,0,0,.15); }
.seat .tick{ margin-left:auto; width:20px; height:20px; border-radius:50%; background:var(--accent); color:#fff; font-size:11px; display:flex; align-items:center; justify-content:center; opacity:0; transform:scale(.4); transition:all .3s .15s; }
.seat.in{ opacity:1; transform:translateY(0) scale(1); animation:seat-in .55s cubic-bezier(.2,1.3,.3,1) forwards; }
.seat.done{ background:linear-gradient(135deg,#fff,#e8f5ec); border-color:var(--accent); }
.seat.done .tick{ opacity:1; transform:scale(1); animation:tick-pop .4s cubic-bezier(.2,1.4,.3,1); }
@keyframes seat-in{ 0%{ opacity:0; transform:translateY(20px) scale(.9) rotate(-2deg);} 60%{ transform:translateY(-4px) scale(1.02) rotate(1deg);} 100%{ opacity:1; transform:translateY(0) scale(1) rotate(0);} }
@keyframes tick-pop{ 0%{ transform:scale(.2);} 50%{ transform:scale(1.3);} 100%{ transform:scale(1);} }

#simprog{ height:6px; background:var(--line); border-radius:999px; overflow:hidden; margin:10px 0; position:relative; }
#simprog i{ display:block; height:100%; width:0%; background:linear-gradient(90deg,var(--accent),var(--gold)); border-radius:999px; transition:width .4s ease; box-shadow:0 0 8px rgba(14,107,79,.3); position:relative; }
#simprog i::after{ content:''; position:absolute; inset:0; background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent); animation:shimmer 1.2s ease-in-out infinite; }

#simstatus{ font-size:13px; color:var(--muted); font-weight:600; padding:8px 12px; background:var(--bg); border-radius:8px; display:inline-flex; align-items:center; gap:8px; }
#simstatus::before{ content:''; width:8px; height:8px; border-radius:50%; background:var(--muted); animation:dot-pulse 1.2s ease-in-out infinite; }

.simcontrols{ display:flex; gap:10px; align-items:center; margin:14px 0 18px; }
.sec{ font-size:12px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:18px 0 10px; }

#simlog{ display:flex; flex-direction:column; gap:12px; min-height:60px; }
.simreply{ background:rgba(255,255,255,.95); border:1px solid var(--line); border-radius:14px; padding:14px 16px; box-shadow:var(--shadow-sm); animation:msg-in .45s cubic-bezier(.2,1.2,.3,1); position:relative; overflow:hidden; line-height:1.7; font-size:14px; }
.simreply::before{ content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--accent); opacity:.8; }
.simreply .who{ display:flex; align-items:center; gap:8px; font-weight:850; font-size:13px; margin-bottom:6px; }
.simreply .who .sdot{ width:26px; height:26px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; color:#fff; font-weight:900; font-size:12px; }
.simreply .who small{ font-weight:600; color:var(--muted); }

/* cards, stats, etc keep */
.card { background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--r);
        box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 14px; transition: all .2s; }
.card:hover{ transform: translateY(-1px); box-shadow: 0 4px 18px rgba(18,26,22,.1); }
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.statcard { background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 16px 18px; position:relative; overflow:hidden; transition: all .22s; }
.statcard:hover{ transform: translateY(-2px); }
.confetti { position: fixed; pointer-events:none; z-index:9999; width:8px; height:8px; border-radius:2px; animation: confetti-fall 1.2s ease-out forwards; }
@keyframes confetti-fall{ 0%{ transform: translateY(-20px) rotate(0deg) scale(1); opacity:1;} 100%{ transform: translateY(100vh) rotate(720deg) scale(0); opacity:0;} }

@media (max-width: 860px) { .layout { flex-direction: column; } aside { width: auto; position: static; max-height: none; } #seats{ grid-template-columns:1fr 1fr; } }

/* คลังความรู้ */
.kbhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kbhead #kcount { font-weight: 400; color: var(--muted, #6b7a73); margin-left: 6px; }
.kbhead input { max-width: 260px; flex: 1; }
.kbgroup { font-size: 13px; font-weight: 800; color: var(--muted, #6b7a73); padding: 14px 4px 6px; border-bottom: 1px solid var(--line); }
.kbgroup:first-child { padding-top: 0; }
.kbgroup span { font-weight: 400; }
.kbrow { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.kbrow:last-child { border-bottom: 0; }
.kbrow .kn { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.kbrow .kn small { display: block; color: var(--muted, #6b7a73); font-size: 12px; margin-top: 2px; }
.kbrow .kdel { flex-shrink: 0; padding: 6px 14px; font-size: 13px; }
.kbrow .kdel:hover { border-color: var(--danger); color: var(--danger); }
.kdraft { white-space: nowrap; font-style: normal; font-size: 11px; font-weight: 700; color: #a15c00; background: #fff1d6; border-radius: 6px; padding: 1px 6px; }
.kbempty { color: var(--muted, #6b7a73); padding: 8px 4px; }

/* ไอคอน SVG (แทนอีโมจิ) */
.ic { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
button .ic { margin-right: 6px; }
#meetbtn .ic { width: 16px; height: 16px; }
.seat .tick .ic { width: 14px; height: 14px; margin: 0; }
.kbgroup { display: flex; align-items: center; gap: 8px; }
.kbgroup .ic { width: 16px; height: 16px; color: var(--gold, #d29a2b); }
.kbgroup .kbn { background: var(--line); color: var(--ink); border-radius: 999px; padding: 0 8px; font-size: 11px; line-height: 18px; }
.kico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #eef3f0; color: var(--accent); }
.kico.k-pdf { background: #fdecea; color: #b3261e; }
.kico.k-docx { background: #e8f0fe; color: #1a56c4; }
.kico.k-image { background: #f3e8fd; color: #7b2fbf; }
.kbrow .kdel { width: 36px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; }
.kbrow .kdel .ic { margin: 0; width: 16px; height: 16px; }
.kbrow { transition: background .15s; border-radius: 10px; }
.kbrow:hover { background: #f6f8f7; }
.kq { position: relative; display: flex; align-items: center; max-width: 280px; flex: 1; }
.kq .ic { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.kq input { padding-left: 36px; width: 100%; max-width: none; }
input[type=file] { font: inherit; font-size: 13px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 12px; padding: 10px; background: #fafbfa; }
input[type=file]::file-selector-button { font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 6px 12px; margin-right: 10px; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }
