@charset "UTF-8";
/* _am-fab */
._am-fab{position:fixed; right:24px; bottom:24px; width:58px; height:58px; border-radius:50%; background:linear-gradient(135deg, #4f46e5, color-mix(in srgb, #4f46e5 75%, #000)); border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 24px -4px color-mix(in srgb, #4f46e5 55%, transparent), 0 4px 8px -2px rgba(15,23,42,.18); z-index:9999; transition:transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;}
._am-fab:hover{transform:translateY(-3px) scale(1.04); box-shadow:0 14px 32px -6px color-mix(in srgb, #4f46e5 65%, transparent), 0 6px 12px -3px rgba(15,23,42,.22);}
._am-fab svg{width:27px; height:27px; color:#fff; fill:#fff; stroke:none;}
._am-fab[aria-expanded="true"]{display:none;}
._am-fab-ring{position:absolute; inset:-6px; border-radius:50%; border:2px solid color-mix(in srgb, #4f46e5 50%, transparent); opacity:0; animation:_am-pulse 2.4s ease-out infinite; pointer-events:none;}
@keyframes _am-pulse{0% {opacity:.7; transform:scale(.9);} 70% {opacity:0; transform:scale(1.25);} 100% {opacity:0;}}
/* _am-panel */
._am-panel{position:fixed; right:24px; bottom:24px; width:460px; height:660px; max-height:calc(100vh - 48px); background:#fff; border:1px solid rgba(15,23,42,.08); border-radius:20px; box-shadow:0 28px 64px -16px rgba(15,23,42,.22), 0 10px 28px -8px rgba(15,23,42,.1); display:none; flex-direction:column; z-index:9999; font-family:Pretendard, sans-serif; font-size:15px; color:#0f172a; overflow:hidden; transform-origin:bottom right;}
._am-panel[data-open="1"]{display:flex; animation:_am-open .25s cubic-bezier(.4,0,.2,1);}
@keyframes _am-open{from {opacity:0; transform:translateY(12px) scale(.96);} to {opacity:1; transform:translateY(0) scale(1);}}
/* _am-header */
._am-header{display:flex; justify-content:space-between; align-items:center; padding:16px 14px 16px 20px; border-bottom:1px solid rgba(0,0,0,.14); background:linear-gradient(135deg, #4f46e5, #4338ca);}
._am-title{font-size:16.5px; font-weight:600; color:#ffffff; letter-spacing:-.2px; display:flex; align-items:center; gap:10px;}
._am-avatar{width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.2); display:inline-flex; align-items:center; justify-content:center; color:#fff; box-shadow:none;}
._am-avatar svg{width:18px; height:18px; color:#fff; stroke:#fff;}
._am-title-text{display:flex; flex-direction:column; line-height:1.2;}
._am-title-text small{font-size:12.5px; font-weight:500; color:rgba(255,255,255,.72); margin-top:3px; letter-spacing:0;}
._am-iconbtn{background:transparent; border:none; cursor:pointer; color:rgba(255,255,255,.85); padding:8px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; transition:background .15s, color .15s;}
._am-iconbtn:hover{background:rgba(255,255,255,.18); color:#ffffff;}
._am-iconbtn svg{width:16px; height:16px;}
/* _am-body */
._am-body{flex:1; min-height:0; overflow-y:auto; padding:20px; background:#f8f9fb; scroll-behavior:smooth;}
._am-body::-webkit-scrollbar{width:8px;}
._am-body::-webkit-scrollbar-thumb{background:rgba(15,23,42,.12); border-radius:4px;}
._am-body::-webkit-scrollbar-thumb:hover{background:rgba(15,23,42,.2);}
/* _am-empty */
._am-empty{text-align:center; color:#94a3b8; padding:48px 20px;}
._am-empty-icon{width:48px; height:48px; margin:0 auto 14px; border-radius:50%; background:color-mix(in srgb, #4f46e5 10%, #fff); display:flex; align-items:center; justify-content:center;}
._am-empty-icon svg{width:24px; height:24px; color:#4f46e5; stroke:#4f46e5;}
._am-empty-title{font-size:15.5px; font-weight:600; color:#475569; margin-bottom:6px;}
._am-empty-desc{font-size:13.5px; line-height:1.7; color:#94a3b8;}
/* _am-suggest */
._am-suggest{display:flex; flex-direction:column; gap:7px; margin-top:20px;}
._am-suggest-item{font-size:13px; color:#64748b; background:#fff; border:1px solid rgba(15,23,42,.08); padding:10px 14px; border-radius:10px; cursor:pointer; text-align:left; transition:border-color .15s, color .15s, transform .15s;}
._am-suggest-item:hover{border-color:color-mix(in srgb, #4f46e5 40%, transparent); color:#4f46e5; transform:translateX(2px);}
/* _am-msg */
._am-msg{margin-bottom:14px; display:flex; flex-direction:column; animation:_am-msg-in .25s ease-out;}
@keyframes _am-msg-in{from {opacity:0; transform:translateY(6px);} to {opacity:1; transform:translateY(0);}}
._am-msg-user{align-items:flex-end;}
._am-msg-bot{align-items:flex-start;}
._am-msg-content{max-width:88%; font-size:15px; line-height:1.65; padding:12px 16px; border-radius:16px; color:#0f172a;}
._am-msg-user ._am-msg-content{background:linear-gradient(135deg, #4f46e5, color-mix(in srgb, #4f46e5 80%, #000)); color:#fff; border-radius:16px 16px 4px 16px; box-shadow:0 4px 12px -2px color-mix(in srgb, #4f46e5 30%, transparent); font-size:15px; line-height:1.6; white-space:pre-wrap; word-break:break-word;}
._am-msg-bot ._am-msg-content{background:#fff; border:1px solid rgba(15,23,42,.06); border-radius:16px 16px 16px 4px; box-shadow:0 2px 6px -2px rgba(15,23,42,.04);}
/* _am-msg-bot */
._am-msg-bot ._am-msg-content > *{margin:0;}
._am-msg-bot ._am-msg-content > * + *{margin-top:8px;}
._am-msg-bot ._am-msg-content p{font-size:15px; line-height:1.7; color:#0f172a; word-break:keep-all;}
._am-msg-bot ._am-msg-content h1, ._am-msg-bot ._am-msg-content h2, ._am-msg-bot ._am-msg-content h3{font-weight:700; color:#0f172a; line-height:1.4; letter-spacing:-.2px;}
._am-msg-bot ._am-msg-content h1{font-size:17px;}
._am-msg-bot ._am-msg-content h2{font-size:16px;}
._am-msg-bot ._am-msg-content h3{font-size:15.5px;}
._am-msg-bot ._am-msg-content h1 + *, ._am-msg-bot ._am-msg-content h2 + *, ._am-msg-bot ._am-msg-content h3 + *{margin-top:6px;}
._am-msg-bot ._am-msg-content strong{font-weight:600; font-size:inherit; line-height:inherit; color:#0f172a;}
._am-msg-bot ._am-msg-content em{font-style:italic; font-size:inherit; line-height:inherit; color:#334155;}
._am-msg-bot ._am-msg-content ul, ._am-msg-bot ._am-msg-content ol{padding-left:22px;}
._am-msg-bot ._am-msg-content ul, ._am-msg-bot ._am-msg-content ul li{list-style:disc;}
._am-msg-bot ._am-msg-content ol, ._am-msg-bot ._am-msg-content ol li{list-style:decimal;}
._am-msg-bot ._am-msg-content li{font-size:15px; line-height:1.7; color:#0f172a; margin:0;}
._am-msg-bot ._am-msg-content li + li{margin-top:4px;}
._am-msg-bot ._am-msg-content code{font-family:"JetBrains Mono", Consolas, Monaco, monospace; font-size:13.5px; background:rgba(15,23,42,.06); color:#334155; padding:2px 7px; border-radius:5px;}
._am-msg-bot ._am-msg-content pre{font-family:"JetBrains Mono", Consolas, Monaco, monospace; font-size:13px; line-height:1.6; background:#0f172a; color:#e2e8f0; padding:14px 16px; border-radius:10px; overflow-x:auto; white-space:pre;}
._am-msg-bot ._am-msg-content pre code{font-size:inherit; background:transparent; color:inherit; padding:0; border-radius:0;}
._am-msg-bot ._am-msg-content blockquote{border-left:3px solid color-mix(in srgb, #4f46e5 50%, transparent); background:color-mix(in srgb, #4f46e5 5%, #fff); padding:10px 14px; border-radius:0 8px 8px 0; color:#475569; font-size:14.5px;}
._am-msg-bot ._am-msg-content a{color:#4f46e5; text-decoration:underline; text-underline-offset:2px;}
._am-msg-bot ._am-msg-content a:hover{filter:brightness(.9);}
._am-msg-bot ._am-msg-content hr{border:0; border-top:1px solid rgba(15,23,42,.08); margin:10px 0;}
/* _am-msg-bot table */
._am-msg-bot ._am-msg-content ._am-tablewrap{overflow-x:auto; border:1px solid rgba(15,23,42,.1); border-radius:10px; background:#fff;}
._am-msg-bot ._am-msg-content table{width:100%; border-collapse:collapse; font-size:14px; line-height:1.6;}
._am-msg-bot ._am-msg-content thead th{background:color-mix(in srgb, #4f46e5 6%, #fff); color:#0f172a; font-weight:700; font-size:13px; letter-spacing:.2px; text-align:left; padding:9px 12px; border-bottom:1px solid rgba(15,23,42,.1); white-space:nowrap;}
._am-msg-bot ._am-msg-content tbody td{padding:9px 12px; color:#334155; vertical-align:top; border-bottom:1px solid rgba(15,23,42,.05);}
._am-msg-bot ._am-msg-content tbody tr:last-child td{border-bottom:0;}
._am-msg-bot ._am-msg-content tbody td:first-child{color:#0f172a; font-weight:600; white-space:nowrap;}
/* _am-msg-bot rhythm */
._am-msg-bot ._am-msg-content > * + *{margin-top:10px;}
._am-msg-bot ._am-msg-content > * + h1, ._am-msg-bot ._am-msg-content > * + h2, ._am-msg-bot ._am-msg-content > * + h3{margin-top:16px;}
._am-msg-bot ._am-msg-content h2{padding-left:9px; border-left:3px solid #4f46e5; line-height:1.35;}
._am-msg-bot ._am-msg-content li::marker{color:color-mix(in srgb, #4f46e5 65%, #94a3b8);}
/* _am-msg-bot golink */
._am-msg-bot ._am-msg-content a[href^="/"], ._am-msg-bot ._am-msg-content a[href^="http"]{display:inline-flex; align-items:center; gap:5px; padding:5px 11px; border-radius:8px; background:color-mix(in srgb, #4f46e5 8%, #fff); border:1px solid color-mix(in srgb, #4f46e5 25%, transparent); color:#4f46e5; font-weight:600; font-size:13.5px; text-decoration:none;}
._am-msg-bot ._am-msg-content a[href^="/"]::after, ._am-msg-bot ._am-msg-content a[href^="http"]::after{content:"\2192 "; font-weight:700; line-height:1;}
._am-msg-bot ._am-msg-content a[href^="/"]:hover, ._am-msg-bot ._am-msg-content a[href^="http"]:hover{background:color-mix(in srgb, #4f46e5 14%, #fff); filter:none;}
._am-msg-bot ._am-msg-content a[href^="http"]{font-weight:600;}
._am-msg-bot ._am-msg-content a[href^="http"]::after{content:"\2197 "; font-size:.85em; margin-left:3px; text-decoration:none; display:inline-block;}
/* _am-msg-bot readable */
._am-msg-bot ._am-msg-content{font-size:14.5px; line-height:1.62;}
._am-msg-bot ._am-msg-content p, ._am-msg-bot ._am-msg-content li{font-size:14.5px; line-height:1.62;}
._am-msg-bot ._am-msg-content h1{font-size:16px;}
._am-msg-bot ._am-msg-content h2{font-size:15px;}
._am-msg-bot ._am-msg-content h3{font-size:14.5px; color:#334155;}
._am-msg-bot ._am-msg-content blockquote{font-size:14px; padding:9px 12px;}
/* _am-msg-bot table cells */
._am-msg-bot ._am-msg-content th, ._am-msg-bot ._am-msg-content td{text-align:left;}
._am-msg-bot ._am-msg-content table{font-size:13.5px; line-height:1.55;}
._am-msg-bot ._am-msg-content tbody td{padding:8px 11px;}
._am-msg-bot ._am-msg-content tbody td:first-child{white-space:normal; min-width:84px;}
/* _am-msg-bot golink row */
._am-msg-bot ._am-msg-content p:has(> a[href^="/admin/"]), ._am-msg-bot ._am-msg-content p:has(> a[href^="https://anmoksoft.com/guide/"]){display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13.5px; color:#64748b; background:#f8fafc; border:1px solid rgba(15,23,42,.07); border-radius:10px; padding:9px 12px;}
._am-msg-bot ._am-msg-content p:has(> a[href^="/admin/"]) + p:has(> a[href^="https://anmoksoft.com/guide/"]){margin-top:6px;}
._am-msg-bot ._am-msg-content ul:has(> li > a[href^="/admin/"]), ._am-msg-bot ._am-msg-content ul:has(> li > a[href^="https://anmoksoft.com/guide/"]){list-style:none; padding:10px 12px; margin-top:12px; background:#f8fafc; border:1px solid rgba(15,23,42,.07); border-radius:12px; display:grid; gap:8px;}
._am-msg-bot ._am-msg-content ul:has(> li > a[href^="/admin/"]) li, ._am-msg-bot ._am-msg-content ul:has(> li > a[href^="https://anmoksoft.com/guide/"]) li{display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13.5px; color:#64748b;}
._am-msg-bot ._am-msg-content ul:has(> li > a[href^="/admin/"]) li::marker, ._am-msg-bot ._am-msg-content ul:has(> li > a[href^="https://anmoksoft.com/guide/"]) li::marker{content:"";}
/* _am-history */
._am-history[hidden]{display:none;}
._am-history{position:absolute; left:0; right:0; top:64px; bottom:0; z-index:3; background:#fff; border-top:1px solid rgba(15,23,42,.06); display:flex; flex-direction:column;}
._am-history-head{display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 16px; border-bottom:1px solid rgba(15,23,42,.06); font-size:13px; font-weight:700; color:#334155;}
._am-history-new{border:1px solid color-mix(in srgb, #4f46e5 25%, transparent); background:color-mix(in srgb, #4f46e5 8%, #fff); color:#4f46e5; font-size:12.5px; font-weight:600; padding:5px 11px; border-radius:8px; cursor:pointer;}
._am-history-new:hover{background:color-mix(in srgb, #4f46e5 14%, #fff);}
._am-history-list{flex:1; overflow-y:auto; padding:8px; margin:0; list-style:none;}
._am-history-item{display:flex; align-items:stretch; gap:4px; border-radius:10px;}
._am-history-item:hover{background:#f8fafc;}
._am-history-open{flex:1; display:flex; align-items:center; justify-content:space-between; gap:10px; background:none; border:0; padding:10px 12px; text-align:left; cursor:pointer; font-size:13.5px; color:#0f172a; min-width:0;}
._am-history-title{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
._am-history-date{flex:none; font-size:12px; color:#94a3b8;}
._am-history-del{flex:none; background:none; border:0; padding:0 10px; cursor:pointer; color:#cbd5e1; border-radius:8px;}
._am-history-del:hover{color:#dc2626; background:rgba(220,38,38,.06);}
._am-history-del svg{width:15px; height:15px;}
._am-history-empty{padding:26px 12px; text-align:center; color:#94a3b8; font-size:13px;}
/* _am-thinking */
._am-thinking{align-self:flex-start; background:#fff; border:1px solid rgba(15,23,42,.06); border-radius:16px 16px 16px 4px; padding:14px 18px; box-shadow:0 2px 6px -2px rgba(15,23,42,.04); display:inline-flex; align-items:center; gap:5px; animation:_am-msg-in .2s ease-out;}
._am-dot{width:7px; height:7px; border-radius:50%; background:color-mix(in srgb, #4f46e5 60%, #cbd5e1); animation:_am-bounce 1.2s infinite ease-in-out;}
._am-dot:nth-child(2){animation-delay:.15s;}
._am-dot:nth-child(3){animation-delay:.3s;}
@keyframes _am-bounce{0%, 80%, 100% {transform:scale(.7); opacity:.5;} 40% {transform:scale(1); opacity:1;}}
/* _am-footer */
._am-footer{border-top:1px solid rgba(15,23,42,.06); padding:14px 16px; background:#fff;}
._am-composer{display:flex; flex-direction:column; border:1px solid rgba(15,23,42,.14); border-radius:14px; background:#fff; transition:border-color .15s, box-shadow .15s; overflow:hidden;}
._am-composer:focus-within{border-color:#4f46e5; box-shadow:0 0 0 3px color-mix(in srgb, #4f46e5 15%, transparent);}
._am-input{width:100%; resize:none; border:none; padding:13px 15px 6px; font-size:15px; font-family:inherit; line-height:1.55; background:transparent; color:#0f172a; outline:none; min-height:56px; max-height:140px;}
._am-input::placeholder{color:#94a3b8;}
/* _am-composer-actions */
._am-composer-actions{display:flex; justify-content:space-between; align-items:center; gap:8px; padding:4px 8px 8px;}
._am-model{max-width:60%; padding:4px 8px; border:1px solid rgba(15,23,42,.14); border-radius:8px; background:#fff; font-size:12px; color:#475569; cursor:pointer;}
._am-model:focus{outline:2px solid #4f46e5; outline-offset:1px;}
._am-model-none{font-size:12px; color:#94a3b8;}
._am-send{width:34px; height:34px; background:linear-gradient(135deg, #4f46e5, color-mix(in srgb, #4f46e5 80%, #000)); color:#fff; border:none; border-radius:10px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; padding:0; transition:filter .15s, transform .15s, box-shadow .15s; box-shadow:0 3px 8px -1px color-mix(in srgb, #4f46e5 35%, transparent);}
._am-send:hover{filter:brightness(1.08); transform:translateY(-1px); box-shadow:0 5px 12px -2px color-mix(in srgb, #4f46e5 45%, transparent);}
._am-send:disabled{background:#cbd5e1; cursor:not-allowed; filter:none; transform:none; box-shadow:none;}
._am-send svg{width:15px; height:15px; color:#fff; stroke:#fff;}
._am-footer-hint{margin-top:7px; font-size:12px; color:#94a3b8; text-align:center;}
/* _am-footer-cr */
._am-footer-cr{display:flex; align-items:center; justify-content:center; gap:8px; margin-top:8px;}
._am-footer-cr:has(._am-credit:empty){display:none;}
._am-credit{font-size:12px; font-weight:700; color:#475569; padding:2px 9px; border-radius:999px; background:#f1f5f9;}
._am-credit.is-low{color:#b91c1c; background:#fee2e2;}
._am-footer-cr a._am-credit-charge{font-size:12px; font-weight:700; color:#4f46e5; text-decoration:none; cursor:pointer; padding:2px 10px; border-radius:999px; border:1px solid #c7d2fe; background:#eef2ff;}
@media (max-width:600px){
._am-panel{width:calc(100vw - 24px); height:calc(100vh - 100px); right:12px; bottom:12px;}
}
/* dark skin from the widget-AI mock - colours only, the layout rules above stay untouched */
._am-panel{background:linear-gradient(168deg,#171a3d 0%,#1d2050 46%,#141636 100%); border:0; box-shadow:0 26px 64px -26px rgba(28,22,90,.6), 0 0 0 1px rgba(148,140,255,.22);}
/* aura - three soft lights drifting behind the glass */
._am-panel:before{content:""; position:absolute; inset:-30% -20%; z-index:0; pointer-events:none; border-radius:inherit;
  background:radial-gradient(32% 26% at 22% 16%, rgba(129,140,248,.55) 0%, transparent 68%),
             radial-gradient(28% 24% at 84% 30%, rgba(167,111,255,.45) 0%, transparent 70%),
             radial-gradient(36% 30% at 50% 92%, rgba(99,102,241,.42) 0%, transparent 72%);
  animation:_am-aura 9s ease-in-out infinite alternate;}
@keyframes _am-aura{from{transform:translate3d(-2%,-1%,0) scale(1);} to{transform:translate3d(2%,2%,0) scale(1.06);}}
/* z-index only - relative here would kill the absolute history panel's top/bottom */
._am-panel > *{z-index:1;}
._am-header,._am-body,._am-footer{position:relative;}
/* header */
._am-header{background:transparent; border-bottom:1px solid rgba(255,255,255,.1);}
._am-avatar{background:linear-gradient(140deg,#7c6cf7,#a76fff); box-shadow:0 0 14px rgba(150,120,255,.7); animation:_am-glow 2.6s ease-in-out infinite;}
._am-avatar svg{width:17px; height:17px; color:#fff; stroke:none; fill:#fff;}
@keyframes _am-glow{0%,100%{box-shadow:0 0 12px rgba(150,120,255,.55);} 50%{box-shadow:0 0 20px rgba(167,111,255,.9);}}
/* floating button - same violet as the panel so the two read as one thing */
._am-fab{background:linear-gradient(140deg,#6d5cf6,#a76fff); box-shadow:0 14px 30px -10px rgba(120,90,255,.65), 0 0 22px rgba(150,110,255,.45);}
._am-fab:hover{box-shadow:0 18px 38px -10px rgba(120,90,255,.8), 0 0 30px rgba(167,111,255,.7);}
._am-fab-ring{border-color:rgba(167,139,250,.6);}
/* body */
._am-body{background:transparent;}
._am-body::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);}
._am-body::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.28);}
/* empty state */
._am-empty{color:rgba(255,255,255,.55); padding:38px 20px 24px;}
/* icon - three sparkles that breathe, same family as the header avatar */
._am-empty-icon{width:62px; height:62px; margin-bottom:18px; background:radial-gradient(circle at 50% 42%, rgba(167,111,255,.5), rgba(99,102,241,.16) 68%, transparent 72%); box-shadow:0 0 34px -6px rgba(150,110,255,.55); animation:_am-breathe 3.4s ease-in-out infinite;}
._am-empty-icon svg{width:30px; height:30px; color:#efeaff; stroke:none; fill:#efeaff; filter:drop-shadow(0 0 7px rgba(180,150,255,.85));}
@keyframes _am-breathe{0%,100%{transform:scale(1);} 50%{transform:scale(1.07);}}
/* title - bigger, and the gradient reads left to right like the mock */
._am-empty-title{font-size:21px; font-weight:800; letter-spacing:-.4px; margin-bottom:9px; background:linear-gradient(92deg,#fff 8%,#c9c2ff 54%,#e9d9ff 100%); -webkit-background-clip:text; background-clip:text; color:transparent;}
._am-empty-desc{color:rgba(255,255,255,.62); font-size:14px;}
/* lead line was too dim to read against the panel */
._am-suggest-lead{margin:26px 0 10px; font-size:12.5px; font-weight:700; letter-spacing:.02em; color:#b9bffb; text-align:left;}
/* suggestions rise once, one after another */
._am-suggest{gap:9px;}
._am-suggest-item{position:relative; overflow:hidden; opacity:0; transform:translateY(8px);
  animation:_am-say .42s cubic-bezier(.4,0,.2,1) forwards;
  background:linear-gradient(180deg, rgba(129,140,248,.17), rgba(129,140,248,.1));
  border:1px solid rgba(165,180,252,.24); color:#c9cdfb;
  box-shadow:0 1px 0 rgba(255,255,255,.05) inset;}
._am-suggest-item:nth-child(1){animation-delay:.25s;}
._am-suggest-item:nth-child(2){animation-delay:.55s;}
._am-suggest-item:nth-child(3){animation-delay:.85s;}
@keyframes _am-say{from{opacity:0; transform:translateY(8px) scale(.98);} to{opacity:1; transform:none;}}
/* a light sweeps across on hover - the row feels touchable, not just a box */
._am-suggest-item:before{content:""; position:absolute; inset:0; pointer-events:none; opacity:0;
  background:linear-gradient(105deg, transparent 32%, rgba(255,255,255,.14) 50%, transparent 68%);
  transform:translateX(-60%); transition:opacity .2s ease;}
._am-suggest-item:hover:before{opacity:1; animation:_am-sweep .7s ease;}
@keyframes _am-sweep{from{transform:translateX(-60%);} to{transform:translateX(60%);}}
._am-suggest-item:hover{background:linear-gradient(180deg, rgba(129,140,248,.28), rgba(167,111,255,.18));
  border-color:rgba(196,167,255,.55); color:#fff; transform:translateX(3px);}
@media (prefers-reduced-motion:reduce){
._am-empty-icon,._am-suggest-item{animation:none; opacity:1; transform:none;}
}
/* bubbles - bot side is a soft glass tile, user side the violet fill */
._am-msg-user ._am-msg-content{color:#fff; border:0; box-shadow:0 6px 18px -8px rgba(120,90,255,.8);}
._am-msg-bot ._am-msg-content{background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1); color:rgba(255,255,255,.9); box-shadow:none;}
._am-msg-bot ._am-msg-content a{color:#c9cdfb;}
._am-msg-bot ._am-msg-content code, ._am-msg-bot ._am-msg-content pre{background:rgba(0,0,0,.28); color:#e9e6ff;}
/* thinking dots */
._am-thinking{background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1); box-shadow:none;}
._am-dot{background:#a5b4fc;}
/* footer and composer */
._am-footer{background:transparent; border-top:1px solid rgba(255,255,255,.1);}
._am-composer{background:rgba(255,255,255,.06); border:1px solid rgba(165,180,252,.28);}
._am-composer:focus-within{border-color:rgba(196,167,255,.75); box-shadow:0 0 0 3px rgba(129,140,248,.22);}
._am-input{color:#fff;}
._am-input::placeholder{color:rgba(255,255,255,.42);}
._am-model{background:rgba(129,140,248,.12); border:1px solid rgba(165,180,252,.3); color:#c3c8fb;}
._am-model option{background:#1d2050; color:#fff;}
._am-model-none, ._am-footer-hint{color:rgba(255,255,255,.55);}
._am-footer ._am-credit{background:rgba(255,255,255,.12); color:rgba(255,255,255,.85);}
/* charge link on the dark panel - indigo on navy vanished, and a:link{color:inherit} beat the class */
._am-footer ._am-footer-cr a._am-credit-charge{color:#fff; background:linear-gradient(140deg,#6d5cf6,#a76fff); border-color:transparent;}
._am-send{background:linear-gradient(140deg,#6d5cf6,#a76fff); box-shadow:0 0 16px rgba(150,110,255,.75);}
._am-send:disabled{background:rgba(255,255,255,.14); box-shadow:none;}
/* bot bubble sets its own dark colours inside - override them all so nothing stays black on navy */
._am-msg-bot ._am-msg-content p,._am-msg-bot ._am-msg-content li,._am-msg-bot ._am-msg-content h1,
._am-msg-bot ._am-msg-content h2,._am-msg-bot ._am-msg-content h3,._am-msg-bot ._am-msg-content strong,
._am-msg-bot ._am-msg-content b{color:rgba(255,255,255,.9);}
._am-msg-bot ._am-msg-content blockquote{border-color:rgba(165,180,252,.4); color:rgba(255,255,255,.7);}
._am-msg-bot ._am-msg-content hr{border-color:rgba(255,255,255,.14);}
/* white boxes inside the bot bubble - table wrap, head row, quote, go-link rows */
._am-msg-bot ._am-msg-content ._am-tablewrap{background:rgba(255,255,255,.04); border-color:rgba(255,255,255,.12);}
._am-msg-bot ._am-msg-content thead th{background:rgba(129,140,248,.18); color:#fff; border-bottom-color:rgba(255,255,255,.14);}
._am-msg-bot ._am-msg-content tbody tr + tr td{border-top-color:rgba(255,255,255,.1);}
._am-msg-bot ._am-msg-content blockquote{background:rgba(129,140,248,.12); border-left-color:rgba(165,180,252,.6); color:rgba(255,255,255,.82);}
._am-msg-bot ._am-msg-content pre{background:rgba(0,0,0,.34);}
._am-msg-bot ._am-msg-content p:has(> a[href^="/admin/"]),
._am-msg-bot ._am-msg-content p:has(> a[href^="https://anmoksoft.com/guide/"]),
._am-msg-bot ._am-msg-content ul:has(> li > a[href^="/admin/"]),
._am-msg-bot ._am-msg-content ul:has(> li > a[href^="https://anmoksoft.com/guide/"]){background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.12);}
/* table cells and list markers still carried the light theme's slate/near-black */
._am-msg-bot ._am-msg-content tbody td{color:rgba(255,255,255,.82); border-bottom-color:rgba(255,255,255,.08);}
._am-msg-bot ._am-msg-content tbody td:first-child{color:#fff;}
._am-msg-bot ._am-msg-content li::marker{color:#b9bffb;}
._am-msg-bot ._am-msg-content em{color:rgba(255,255,255,.72);}
._am-msg-bot ._am-msg-content code{border:1px solid rgba(255,255,255,.12);}
/* go-link rows kept slate text and indigo links from the light theme */
._am-msg-bot ._am-msg-content p:has(> a[href^="/admin/"]),
._am-msg-bot ._am-msg-content p:has(> a[href^="https://anmoksoft.com/guide/"]),
._am-msg-bot ._am-msg-content ul:has(> li > a[href^="/admin/"]) li,
._am-msg-bot ._am-msg-content ul:has(> li > a[href^="https://anmoksoft.com/guide/"]) li{color:rgba(255,255,255,.75);}
/* only the admin shortcut wears a pill - the guide link is plain text with an underline */
._am-msg-bot ._am-msg-content a[href^="/"], ._am-msg-bot ._am-msg-content a[href^="http"]{color:#e9e4ff; background:rgba(129,140,248,.22); border-color:rgba(165,180,252,.45);}
._am-msg-bot ._am-msg-content a[href^="https://anmoksoft.com/guide/"]{color:#cfd3fc; background:transparent; border:0; padding:0; text-decoration:underline; text-underline-offset:3px;}
/* hover turned the pill near-white while the text stayed light - go darker, not lighter */
._am-msg-bot ._am-msg-content a[href^="/"]:hover, ._am-msg-bot ._am-msg-content a[href^="http"]:hover{background:rgba(167,111,255,.4); border-color:rgba(196,167,255,.7); color:#fff; filter:none;}
._am-msg-bot ._am-msg-content a[href^="https://anmoksoft.com/guide/"]:hover{color:#fff; background:transparent; filter:none;}
._am-msg-bot ._am-msg-content a:hover{filter:none; color:#e9e4ff;}
/* user bubble sits on a violet fill - white needs a deeper base to stay readable */
._am-msg-user ._am-msg-content{background:linear-gradient(140deg,#5b4ae8,#8f4ff0);}
/* history sat below the header and under the composer - fill the panel instead */
._am-history{top:0; bottom:0; z-index:5; border-top:0; background:#191c42; background-image:linear-gradient(168deg,#171a3d 0%,#1d2050 46%,#141636 100%);}
._am-history-head{padding-top:16px;}
._am-history-head{border-bottom:1px solid rgba(255,255,255,.1); color:#fff;}
._am-history-new{background:rgba(129,140,248,.16); border:1px solid rgba(165,180,252,.3); color:#c9cdfb;}
._am-history-new:hover{background:rgba(129,140,248,.26);}
._am-history-item:hover{background:rgba(255,255,255,.06);}
._am-history-open{color:rgba(255,255,255,.88);}
._am-history-date, ._am-history-empty{color:rgba(255,255,255,.45);}
._am-history-del{color:rgba(255,255,255,.35);}
._am-history-del:hover{color:#fca5a5; background:rgba(220,38,38,.18);}
/* _rp report fab - a second button stacked on the assistant one, green so the two never read as the same thing */
body:not(:has(#_amFab)) ._rp-fab{bottom:24px;}
/* fab tuck - at the page bottom both buttons slide past the right edge leaving a 12px tab; hover or focus brings one back; the ::after strip keeps the pointer on the button once it slides out (no flicker) */
body._fab-tuck ._am-fab{transform:translateX(70px);}
body._fab-tuck ._am-fab:hover,body._fab-tuck ._am-fab:focus-visible{transform:none;}
body._fab-tuck ._am-fab::after{content:""; position:absolute; top:0; bottom:0; left:100%; width:40px;}
body:has(#_amPanel[data-open="1"]) ._rp-fab, body:has(#_rpPanel[data-open="1"]) ._am-fab{display:none;}
._rp-panel ._am-avatar svg{width:18px; height:18px; fill:none; stroke:#fff;}
._rp-panel{overflow:clip;}
/* _rp chips - answers picked by tapping, the reply box only takes mail and phone */
._rp-chips{display:flex; flex-wrap:wrap; gap:8px; margin:-4px 0 14px;}
._rp-chip{padding:8px 13px; font-size:13px; text-align:center; animation:none; opacity:1; transform:none;}
._rp-chip.is-on{background:linear-gradient(140deg,#5b4ae8,#8f4ff0); border-color:transparent; color:#fff;}
._rp-next{font-weight:700; color:#fff; border-color:rgba(165,180,252,.6);}
._rp-chips.is-done{opacity:.55; pointer-events:none;}
/* fab ai look - each button drifts through a bright, a mid and a deep shade of its own colour, ringed in the same family */
._am-fab{background:linear-gradient(140deg,#c4b5fd,#a78bfa,#7c5cf6,#60a5fa,#c4b5fd); background-size:200% 200%; animation:_am-drift 7s ease-in-out infinite;}
._am-fab::before{content:""; position:absolute; inset:-4px; padding:3px; border-radius:50%; background:conic-gradient(from 0deg,#ede9fe,#a78bfa,#5b3fd6,#93c5fd,#ede9fe); -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; animation:_am-spin 4s linear infinite; pointer-events:none;}
._am-fab svg{width:28px; height:28px; overflow:visible;}
._am-fab ._am-fab-spark{transform-box:fill-box; transform-origin:center; animation:_am-twinkle 2.4s ease-in-out infinite;}
._am-fab ._am-fab-eye{transform-box:fill-box; transform-origin:center; animation:_am-blink 4.5s ease-in-out infinite;}
@keyframes _am-blink{0%,92%,100%{transform:scaleY(1);}96%{transform:scaleY(.15);}}
._rp-fab{right:24px; bottom:94px; width:58px; height:58px; background:linear-gradient(140deg,#6ee7b7,#34d399,#059669,#22d3ee,#6ee7b7); background-size:200% 200%; box-shadow:0 12px 26px -10px rgba(16,185,129,.65), 0 0 18px rgba(52,211,153,.35);}
._rp-fab:hover{box-shadow:0 16px 32px -10px rgba(16,185,129,.8), 0 0 24px rgba(52,211,153,.5);}
._rp-fab::before{background:conic-gradient(from 0deg,#ecfdf5,#34d399,#047857,#67e8f9,#ecfdf5);}
._rp-fab ._am-fab-ring{border-color:rgba(52,211,153,.6);}
@keyframes _am-spin{to{transform:rotate(360deg);}}
@keyframes _am-drift{0%,100%{background-position:0% 50%;}50%{background-position:100% 50%;}}
@keyframes _am-twinkle{0%,100%{transform:scale(1); opacity:1;}50%{transform:scale(.7); opacity:.7;}}
@media (prefers-reduced-motion:reduce){._am-fab,._am-fab::before,._am-fab ._am-fab-spark,._am-fab ._am-fab-eye{animation:none;}}
/* _rp panel green skin - same dark glass as the assistant, recoloured to the report button's greens */
._am-panel._rp-panel{background:linear-gradient(168deg,#0c2620 0%,#103229 46%,#0a1f1a 100%); box-shadow:0 26px 64px -26px rgba(6,78,59,.65), 0 0 0 1px rgba(110,231,183,.22);}
._rp-panel:before{background:radial-gradient(32% 26% at 22% 16%, rgba(52,211,153,.45) 0%, transparent 68%), radial-gradient(28% 24% at 84% 30%, rgba(34,211,238,.35) 0%, transparent 70%), radial-gradient(36% 30% at 50% 92%, rgba(16,185,129,.38) 0%, transparent 72%);}
._rp-panel ._am-avatar{background:linear-gradient(140deg,#34d399,#059669); box-shadow:0 0 14px rgba(52,211,153,.7); animation:_rp-glow 2.6s ease-in-out infinite;}
@keyframes _rp-glow{0%,100%{box-shadow:0 0 12px rgba(52,211,153,.55);} 50%{box-shadow:0 0 20px rgba(110,231,183,.9);}}
._rp-panel ._am-msg-user ._am-msg-content{background:linear-gradient(140deg,#10b981,#0d9488); box-shadow:0 6px 18px -8px rgba(16,185,129,.8);}
._rp-panel ._am-msg-bot ._am-msg-content a{color:#a7f3d0;}
._rp-panel ._am-msg-bot ._am-msg-content b{color:#d1fae5;}
._rp-panel ._am-suggest-item{background:linear-gradient(180deg, rgba(52,211,153,.16), rgba(52,211,153,.08)); border-color:rgba(110,231,183,.26); color:#c6f6e2;}
._rp-panel ._am-suggest-item:hover{background:linear-gradient(180deg, rgba(52,211,153,.3), rgba(34,211,238,.18)); border-color:rgba(110,231,183,.6); color:#fff;}
._rp-panel ._rp-chip.is-on{background:linear-gradient(140deg,#10b981,#0d9488); border-color:transparent; color:#fff;}
._rp-panel ._rp-next{border-color:rgba(110,231,183,.6); color:#fff;}
._rp-panel ._am-composer{border-color:rgba(110,231,183,.28);}
._rp-panel ._am-composer:focus-within{border-color:rgba(110,231,183,.75); box-shadow:0 0 0 3px rgba(52,211,153,.22);}
._rp-panel ._am-send{background:linear-gradient(140deg,#10b981,#22d3ee); box-shadow:0 0 16px rgba(52,211,153,.7);}
._rp-panel ._am-send:disabled{background:rgba(255,255,255,.14); box-shadow:none;}
._rp-panel ._am-composer-actions{justify-content:flex-end;}
/* _mg AI manager - merged with the assistant (same purple button and panel); cards, tags and confirm parts */
._mg-n{position:absolute; top:-4px; right:-4px; min-width:22px; height:22px; padding:0 6px; border-radius:11px; background:#dc2626; color:#fff; font:700 12px/22px Pretendard, sans-serif; text-align:center; box-shadow:0 0 0 2px #fff; z-index:2;}
._mg-n[hidden]{display:none;}
._mg-panel ._am-msg-bot ._am-msg-content b{color:#ede9fe;}
._mg-panel ._am-composer-actions{justify-content:flex-end;}
/* _mg cards - results drawn by the server data, not by the AI */
._mg-cards{flex-direction:column; align-items:stretch; gap:10px;}
._mg-card{background:rgba(255,255,255,.06); border:1px solid rgba(196,181,253,.18); border-radius:14px; padding:14px 16px; color:rgba(255,255,255,.9); font-size:14px; line-height:1.55; text-align:left;}
._mg-card__t{margin:0 0 10px; font-weight:700; font-size:14.5px; color:#fff; text-align:left;}
._mg-card__x{margin:0; text-align:left;}
._mg-card__was{font-size:12px; color:rgba(255,255,255,.55);}
._mg-card--done{border-color:rgba(110,231,183,.4); background:rgba(16,185,129,.12);}
._mg-stat{display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:8px;}
._mg-stat__i{display:flex; flex-direction:column; gap:2px; padding:10px 12px; border-radius:10px; background:rgba(255,255,255,.06); text-align:left;}
._mg-stat__i span{font-size:12px; color:rgba(255,255,255,.6);}
._mg-stat__i b{font-size:18px; color:#fff;}
._mg-stat__i em{font-style:normal; font-size:12px; color:#c4b5fd;}
._mg-kv{display:grid; grid-template-columns:auto 1fr; gap:6px 14px; margin:0;}
._mg-kv dt{color:rgba(255,255,255,.6); font-size:13px; text-align:left;}
._mg-kv dd{margin:0; color:#fff; word-break:break-word; text-align:left;}
._mg-list{display:flex; flex-direction:column; gap:8px; margin:0; padding:0;}
._mg-row{display:grid; grid-template-columns:1fr auto; gap:6px 10px; align-items:start; padding:10px 12px; border-radius:10px; background:rgba(255,255,255,.05);}
._mg-row__m{display:flex; flex-direction:column; gap:2px; min-width:0; color:#fff; text-decoration:none; text-align:left;}
a._mg-row__m:hover b{text-decoration:underline;}
._mg-row__m span{font-size:12.5px; color:rgba(255,255,255,.62); word-break:break-word;}
._mg-row__a{grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:6px;}
/* _mg-row--btn */
._mg-row--btn{grid-template-columns:minmax(0,1fr) auto auto; align-items:center; padding:8px 10px 8px 12px; cursor:pointer; transition:background .15s ease;}
._mg-row--btn:hover, ._mg-row--btn:focus-visible{background:rgba(255,255,255,.10); outline:none;}
._mg-row--btn ._mg-row__m{flex-direction:row; flex-wrap:wrap; align-items:baseline; gap:2px 8px;}
._mg-row__go{display:inline-flex; color:rgba(255,255,255,.5);}
._mg-row__go svg{width:16px; height:16px;}
._mg-row--btn:hover ._mg-row__go{color:#d4ff3a;}
._mg-row--link{grid-template-columns:minmax(0,1fr) auto auto; align-items:center;}
._mg-row--link:hover ._mg-row__go{color:#d4ff3a;}
._mg-tag{font-size:12px; font-weight:700; padding:3px 8px; border-radius:999px; white-space:nowrap; text-align:center;}
._mg-tag.is-bad{background:rgba(239,68,68,.2); color:#fca5a5;}
._mg-tag.is-warn{background:rgba(245,158,11,.2); color:#fcd34d;}
._mg-tag.is-ok{background:rgba(16,185,129,.2); color:#6ee7b7;}
._mg-tag.is-off{background:rgba(255,255,255,.1); color:rgba(255,255,255,.7);}
._mg-chip{padding:7px 12px; font-size:13px; text-align:center;}
._mg-chip.is-ok{background:linear-gradient(140deg,#8b5cf6,#7c5cf6); border-color:transparent; color:#fff; font-weight:700;}
._mg-chip.is-danger{background:linear-gradient(140deg,#dc2626,#b91c1c); border-color:transparent; color:#fff; font-weight:700;}
._mg-confirm{display:flex; gap:8px; margin-top:12px;}
._mg-confirm.is-done{opacity:.5; pointer-events:none;}
._mg-link{display:inline-block; margin-top:10px; color:#c4b5fd; font-size:13px; font-weight:600; text-decoration:none;}
._mg-link:hover{text-decoration:underline;}
._mg-starts{display:flex; flex-wrap:wrap; gap:8px; margin:2px 0 14px;}
/* _mg images - candidate picker and confirm preview */
._mg-img{display:block; max-width:100%; max-height:220px; margin:10px auto 0; border-radius:10px; background:repeating-conic-gradient(rgba(255,255,255,.08) 0% 25%, transparent 0% 50%) 50% / 16px 16px;}
._mg-pick{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-top:10px;}
._mg-pick.is-wide{grid-template-columns:1fr;}
._mg-pick__i{margin:0; min-width:0; display:flex; flex-direction:column; align-items:stretch; gap:6px; padding:6px; border-radius:10px; background:rgba(255,255,255,.05);}
._mg-pick__i ._mg-chip{padding:6px 4px; font-size:12px; white-space:nowrap;}
._mg-pick__i img{width:100%; aspect-ratio:1; object-fit:contain; border-radius:8px; background:repeating-conic-gradient(rgba(255,255,255,.1) 0% 25%, transparent 0% 50%) 50% / 14px 14px;}
._mg-pick.is-wide ._mg-pick__i img{aspect-ratio:1200 / 630; object-fit:cover;}
._mg-pick__i figcaption{font-size:12px; color:rgba(255,255,255,.7); text-align:center;}
._mg-card__a{margin-top:10px;}
._mg-inlink{color:#c4b5fd; font-weight:600; text-decoration:underline;}
._mg-chip.is-ask{border-style:dashed;}
._mg-kv dd{white-space:pre-line;}
/* _mg-form - input card for values that must not go to the AI (account no, business no) */
._mg-form{display:flex; flex-direction:column; gap:8px; margin:10px 0 0;}
/* each field in its own light box so neighbouring fields read apart (user 2026-10-12) */
._mg-form__f{display:flex; flex-direction:column; gap:8px; padding:10px 12px; border:1px solid rgba(255,255,255,.1); border-radius:10px; background:rgba(255,255,255,.04);}
._mg-form__l{font-size:13px; font-weight:700; color:#fff; text-align:left;}
._mg-form__i{width:100%; box-sizing:border-box; min-height:38px; padding:8px 10px; border:1px solid rgba(196,181,253,.3); border-radius:8px; background:rgba(0,0,0,.25); color:#fff; font:inherit; font-size:14px; text-align:left;}
._mg-form__i::placeholder{color:rgba(255,255,255,.45);}
._mg-form__i:focus{outline:2px solid #a78bfa; outline-offset:1px;}
/* _mg-form__chips - pick chips in an input card (one or several) and quick-value chips under a text box */
._mg-form__chips{display:flex; flex-wrap:wrap; gap:6px;}
._mg-form__chips.is-preset ._mg-chip{padding:4px 10px; font-size:12px;}
._mg-form__grps{display:flex; flex-direction:column; gap:6px;}
._mg-form__grp{display:flex; flex-direction:column; gap:6px; padding:8px 10px; border-left:3px solid rgba(255,255,255,.35); border-radius:6px; background:rgba(0,0,0,.22);}
._mg-form__grp.is-off,._mg-form__hint.is-off{display:none;}
._mg-form__gt{font-size:12.5px; font-weight:700; color:rgba(255,255,255,.9); text-align:left;}
._mg-form__hint{margin:0; font-size:12px; color:rgba(255,255,255,.5); text-align:left;}
._mg-form__chips ._mg-chip.is-on{background:linear-gradient(140deg,#8b5cf6,#7c5cf6); border-color:transparent; color:#fff; font-weight:700;}
._mg-form__i option{background:#fff; color:#111;}
._mg-form ._mg-confirm{margin-top:4px;}
/* _mg markdown - links inside a sentence stay inline (the assistant's go-to box rule is for its last line only), nested lists and spacing */
._mg-panel ._am-msg-bot ._am-msg-content p:has(> a[href^="/admin/"]){display:block; background:none; border:0; padding:0; font-size:inherit; color:inherit; border-radius:0;}
._mg-panel ._am-msg-bot ._am-msg-content p + ol, ._mg-panel ._am-msg-bot ._am-msg-content p + ul, ._mg-panel ._am-msg-bot ._am-msg-content ol + p, ._mg-panel ._am-msg-bot ._am-msg-content ul + p, ._mg-panel ._am-msg-bot ._am-msg-content p._md-para{margin-top:8px;}
/* _mg sentence lines - each sentence is its own p (sentence per line), so lines in one paragraph sit close; a blank line in the reply marks a real paragraph (_md-para) */
._mg-panel ._am-msg-bot ._am-msg-content p + p:not(._md-para){margin-top:2px;}
._mg-panel ._am-msg-bot ._am-msg-content ._md-sub{margin:4px 0 2px; padding-left:18px;}
._mg-panel ._am-msg-bot ._am-msg-content ._md-sub li{list-style:disc; font-size:13.5px;}
._mg-panel ._am-msg-bot ._am-msg-content li, ._mg-panel ._am-msg-bot ._am-msg-content p{color:rgba(255,255,255,.9);}
._mg-panel ._am-msg-bot ._am-msg-content li::marker{color:#c4b5fd;}
._mg-panel ._am-msg-bot ._am-msg-content strong{color:#ede9fe;}
._mg-panel ._am-msg-bot ._am-msg-content a:not(._mg-inlink){color:#c4b5fd; text-decoration:underline;}
/* _mg inline links - plain underlined text inside sentences and lists, not the assistant's boxed go-to buttons */
._mg-panel ._am-msg-bot ._am-msg-content a[href^="/admin/"], ._mg-panel ._am-msg-bot ._am-msg-content a._mg-inlink{display:inline; padding:0; border:0; border-radius:0; background:none; color:#c4b5fd; font-weight:700; text-decoration:underline; text-underline-offset:3px;}
._mg-panel ._am-msg-bot ._am-msg-content a[href^="/"]:hover, ._am-msg-bot ._am-msg-content a[href^="http"]:hover{background:none; color:#fff;}
._mg-panel ._am-msg-bot ._am-msg-content a[href^="/"]::after, ._am-msg-bot ._am-msg-content a[href^="http"]::after{content:" \2192"; font-weight:700;}
._mg-panel ._am-msg-bot ._am-msg-content ul:has(> li > a[href^="/admin/"]){list-style:disc; padding:0 0 0 22px; margin-top:0; background:none; border:0;}
._mg-panel ._am-msg-bot ._am-msg-content ul:has(> li > a[href^="/admin/"]) li{display:list-item; font-size:inherit; color:rgba(255,255,255,.9);}
._mg-panel ._am-msg-bot ._am-msg-content ul:has(> li > a[href^="/admin/"]) li::marker{content:normal;}
/* _mg history list - one line titles with ellipsis, short date on the right */
._mg-panel ._am-history-open{align-items:center; padding:11px 12px;}
._mg-panel ._am-history-title{flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; word-break:normal;}
._mg-panel ._am-history-date{flex:0 0 auto; font-size:11.5px; font-variant-numeric:tabular-nums;}
._mg-panel ._am-history-item + ._am-history-item{border-top:1px solid rgba(255,255,255,.06);}
/* _mg-fold - folded card on the first screen (pending list): header only, click to open/close */
._mg-fold__t{display:flex; align-items:center; gap:8px; width:100%; margin:0; padding:0; border:0; background:none; color:#fff; font:inherit; font-size:14.5px; text-align:left; cursor:pointer;}
._mg-fold__t b{flex:1 1 auto; min-width:0; text-align:left;}
._mg-fold__t ._mg-fold__go{flex:0 0 auto; pointer-events:none;}
/* _mg-card--inline */
._mg-card--inline{display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px;}
._mg-card--inline ._mg-card__x{flex:1 1 auto; min-width:0; margin:0;}
._mg-card--inline ._mg-card__a{flex:0 0 auto; margin:0;}
._mg-fold__t:focus-visible{outline:2px solid var(--color-active); outline-offset:4px; border-radius:6px;}
._mg-fold:not(.is-open) ._mg-fold__b{display:none;}
._mg-fold.is-open ._mg-fold__b{margin-top:12px;}
/* _mg-disc - "you can also do this" list: label + example sentence, 4 shown then "more" */
._mg-disc{display:grid; grid-template-columns:minmax(0,1fr); gap:6px;}
._mg-disc__i{display:flex; flex-direction:row; align-items:center; gap:12px; min-width:0; padding:10px 12px; border:1px solid rgba(255,255,255,.08); border-radius:10px; background:rgba(255,255,255,.05); color:#fff; font:inherit; text-align:left; cursor:pointer;}
._mg-disc__i:hover, ._mg-disc__i:focus-visible{border-color:var(--color-active); outline:none;}
._mg-disc__i b{font-size:13.5px; text-align:left;}
._mg-disc__i span{font-size:12.5px; line-height:1.45; color:rgba(255,255,255,.62); text-align:left; word-break:keep-all; overflow-wrap:anywhere;}
._mg-card--discover:not(.is-all) ._mg-disc__i.is-more{display:none;}
._mg-disc__hint{margin:10px 0 0; font-size:12px; color:rgba(255,255,255,.5); text-align:left; word-break:keep-all;}
._mg-disc__ico{flex:none; display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:10px; background:rgba(200,240,0,.14); color:#d4ff3a;}
._mg-disc__ico svg{width:18px; height:18px;}
._mg-disc__ico.is-naver{background:#03c75a; color:#fff;}
._mg-disc__ico.is-naver svg{width:16px; height:16px;}
._mg-disc__tx{display:flex; flex-direction:column; gap:2px; min-width:0;}
