:root { --bg:#0d1017; --panel:#151a24; --panel2:#1c2230; --line:#2a3242; --text:#e8ecf3; --dim:#8b95a8; --green:#34d399; --amber:#fbbf24; --red:#fb7185; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 -apple-system, "Segoe UI", Inter, sans-serif; display: flex; flex-direction: column; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--panel2); border-radius: 8px; padding: 7px 12px; }
button:hover { border-color: #46526b; }
button.primary { background: var(--green); color: #052e1f; border-color: var(--green); font-weight: 700; }
button.primary:disabled { opacity: .6; cursor: default; }
button.danger { color: var(--red); }
input, select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; width: 100%; }
label { display: block; color: var(--dim); font-size: 12px; margin: 10px 0 4px; }

header { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.logo { width: 28px; height: 28px; border-radius: 50%; background: #d7263d; color: #fff3e6; font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.hint { color: var(--dim); font-size: 12px; margin-left: 6px; }
.spacer { flex: 1; }
.pill { font-size: 12px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--dim); background: transparent; }
.pill.ok { color: var(--green); border-color: #1f5e48; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; background: transparent; color: var(--dim); }
.seg button.on { background: var(--panel2); color: var(--text); }

main { flex: 1; display: flex; min-height: 0; }
#stage { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
#office { flex: 1; min-height: 0; width: 100%; display: block; }
#pipeline { flex: 1; min-height: 0; overflow: auto; padding: 22px; }
#drop { position: absolute; inset: 12px; border: 2px dashed var(--amber); border-radius: 16px; background: rgba(251,191,36,.12); display: none; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: var(--amber); pointer-events: none; z-index: 5; }
body.dragging #drop { display: flex; }

#queue { display: flex; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--panel); overflow-x: auto; min-height: 112px; }
.empty { color: var(--dim); align-self: center; padding: 0 8px; }
.card { flex: 0 0 230px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px; display: flex; gap: 9px; cursor: pointer; text-align: left; }
.card:hover { border-color: #46526b; }
.card .th { flex: 0 0 44px; height: 78px; border-radius: 6px; background: #0b0e14 center/cover; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 18px; }
.card .t { font-weight: 600; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .s { font-size: 12px; color: var(--dim); margin-top: 3px; }
.dots { display: flex; gap: 3px; margin-top: 7px; }
.dots i { width: 14px; height: 4px; border-radius: 2px; background: var(--line); }
.dots i.d { background: var(--green); } .dots i.c { background: var(--amber); }
.card.warn { border-color: #7a5a12; }

#side { flex: 0 0 300px; border-left: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
#side h3 { margin: 0; padding: 12px 14px; font-size: 13px; border-bottom: 1px solid var(--line); }
.live { color: var(--green); font-weight: 500; font-size: 11px; margin-left: 6px; }
#log { flex: 1; overflow-y: auto; padding: 8px 10px; }
.le { display: flex; gap: 8px; padding: 6px 4px; font-size: 12.5px; border-bottom: 1px solid #1d2330; }
.av { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
#panel h2 .av { flex-basis: 44px; width: 44px; height: 44px; }
.le b { font-weight: 600; } .le time { color: var(--dim); font-size: 11px; margin-left: 5px; }
.le.warn .m { color: var(--amber); }

/* pipeline */
.flow { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 30px; max-width: 1150px; margin: 0 auto; }
.node { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; text-align: left; }
.node:not(.last)::after { content: "→"; position: absolute; right: -23px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.node .h { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.node .r { color: var(--dim); font-size: 12px; margin: 4px 0 8px; min-height: 34px; }
.node .st { font-size: 12px; display: flex; justify-content: space-between; gap: 6px; }
.node.working { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 22px -4px var(--c); }
.node.waiting { border-color: var(--amber); } .node.warn { border-color: var(--red); }
.badge { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--panel2); color: var(--dim); white-space: nowrap; }
.badge.working { background: var(--green); color: #052e1f; } .badge.waiting { background: var(--amber); color: #3b2a00; } .badge.warn { background: var(--red); color: #3d0a15; }
.mgr { max-width: 1150px; margin: 26px auto 0; }

/* panel */
#panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--panel); border-left: 1px solid var(--line); box-shadow: -20px 0 50px rgba(0,0,0,.5); z-index: 10; overflow-y: auto; padding: 18px; }
#panel h2 { margin: 0; padding-right: 40px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
#panel h4 { margin: 18px 0 6px; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
#panel .x { position: absolute; top: 14px; right: 14px; padding: 3px 9px; }
#panel p { margin: 6px 0; } #panel .dim { color: var(--dim); }
#panel pre { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: 12.5px/1.5 ui-monospace, Menlo, monospace; margin: 0; }
#panel video { width: 100%; max-height: 340px; background: #000; border-radius: 8px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chk { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid #1d2330; font-size: 13px; }
.chk .ok { color: var(--green); } .chk .no { color: var(--amber); }
.plats { display: flex; gap: 12px; flex-wrap: wrap; } .plats label { display: flex; gap: 5px; align-items: center; margin: 0; color: var(--text); font-size: 13px; } .plats input { width: auto; }
.win { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-top: 6px; } .win b { color: var(--green); }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #fff; color: #111; padding: 9px 16px; border-radius: 99px; font-weight: 600; z-index: 20; }
@media (max-width: 820px) { #side { display: none; } .hint { display: none; } }

/* names, 3D labels, guide */
.ttl { color: var(--dim); font-weight: 500; font-size: 11px; margin-left: 6px; }
h2 .ttl { display: block; margin: 2px 0 0; font-size: 12px; }
.node .h .ttl { display: block; margin: 0; }
#labels { position: absolute; left: 0; top: 0; pointer-events: none; overflow: hidden; }
#labels[hidden], #viewhint[hidden] { display: none; }
.tag { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: rgba(10,12,24,.7); color: #fff; }
.tag.hover { outline: 2px solid #fff; }
.tag.working { background: #fff; color: #111; } .tag.waiting { background: var(--amber); color: #3b2a00; } .tag.warn { background: var(--red); color: #3d0a15; }
#viewhint { position: absolute; left: 12px; top: 10px; font-size: 11px; color: rgba(255,255,255,.6); pointer-events: none; }
#office { cursor: grab; touch-action: none; }
#guide { position: fixed; inset: 0; background: rgba(5,7,14,.72); z-index: 30; display: flex; align-items: center; justify-content: center; padding: 20px; }
#guide[hidden] { display: none; }
.gcard { width: min(980px, 100%); height: min(760px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.ghead { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ghead b { font-size: 16px; margin-right: 8px; }
.ghead .seg button { padding: 6px 12px; }
.gbody { flex: 1; overflow-y: auto; padding: 6px 26px 30px; line-height: 1.6; }
.gbody h3 { font-size: 17px; margin: 24px 0 8px; } .gbody h4 { font-size: 14px; margin: 18px 0 6px; color: var(--green); }
.gbody p, .gbody li { color: #cfd5e2; } .gbody ol, .gbody ul { padding-left: 22px; margin: 6px 0; } .gbody li { margin: 5px 0; }
.gbody table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 13px; }
.gbody th, .gbody td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; } .gbody th { background: var(--panel2); color: var(--text); white-space: nowrap; }
.gbody code { background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 12.5px; }
.gbody .where { display: inline-block; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 0 7px; font-size: 12.5px; color: var(--text); white-space: nowrap; }
.gbody .note { background: var(--bg); border-left: 3px solid var(--amber); padding: 8px 12px; border-radius: 0 8px 8px 0; margin: 10px 0; }
.phase { border: 1px solid var(--line); border-radius: 10px; padding: 4px 16px 12px; margin: 12px 0; background: rgba(255,255,255,.02); }
.phase .meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 4px 16px; font-size: 13px; color: var(--dim); margin-bottom: 6px; } .phase .meta b { color: var(--text); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.team div { display: flex; gap: 12px; align-items: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.team img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.gbody input[type=checkbox] { width: auto; margin-right: 8px; }

ol.tight, ul.tight { padding-left: 20px; margin: 6px 0; } .tight li { margin: 4px 0; font-size: 13px; color: #cfd5e2; }
details { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin-top: 6px; } summary { cursor: pointer; font-weight: 600; font-size: 13px; }

/* chat + brand brief */
#sideTabs { margin: 10px; } #sideTabs button { flex: 1; padding: 7px 8px; font-size: 13px; }
#chat { flex: 1; min-height: 0; display: flex; flex-direction: column; } #chat[hidden], #log[hidden] { display: none; }
#chatMsgs { flex: 1; overflow-y: auto; padding: 4px 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 92%; padding: 8px 11px; border-radius: 12px; font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--green); color: #052e1f; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--panel2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.error { border-color: #7a2f3d; color: #ffc2cc; } .msg.busy { color: var(--dim); font-style: italic; }
.chatnote { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 13px; color: #cfd5e2; } .chatnote ol { padding-left: 18px; margin: 8px 0; } .chatnote li { margin: 5px 0; }
.chatnote code { display: block; background: #05070c; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; margin-top: 4px; font-size: 11.5px; overflow-wrap: anywhere; user-select: all; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .chips button { font-size: 12px; padding: 4px 9px; border-radius: 99px; }
#chatForm { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); align-items: flex-end; }
#chatIn { flex: 1; resize: none; font: inherit; font-size: 13px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
#panel textarea { width: 100%; min-height: 260px; resize: vertical; font: 13px/1.5 inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }

/* speech bubbles + room view */
.tag.say { background: #fff; color: #10131c; border-radius: 12px; padding: 5px 10px; max-width: 230px; white-space: normal; font-weight: 500; line-height: 1.3; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
#roomHud { position: absolute; left: 0; top: 0; right: 0; pointer-events: none; padding: 10px 12px 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; z-index: 4; }
#roomHud[hidden] { display: none; }
.hudbar { pointer-events: auto; display: flex; align-items: center; gap: 8px; background: rgba(13,16,23,.86); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.hudbar b { font-size: 13px; padding: 0 4px; } .hudbar button { padding: 4px 10px; font-size: 12.5px; }
.hudchat { pointer-events: auto; width: min(330px, 80%); background: rgba(13,16,23,.86); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; }
.hudttl { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.hudline { padding: 3px 0; line-height: 1.35; } .hudline.dim, .hudwho { color: var(--dim); } .hudwho { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 11.5px; }

.mrow { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #1d2330; } .mrow .mwho { flex: 1; font-size: 13px; line-height: 1.35; } .mrow .dim { font-size: 12px; } .mrow select { width: 118px; flex: none; } .mrow select:disabled { opacity: .4; }

/* office view: bottom-left title, side panel */
#roomHud { bottom: 0; justify-content: space-between; padding-bottom: 14px; }
.hudtitle { display: flex; align-items: flex-end; gap: 12px; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.hudnum { font-size: 54px; font-weight: 800; line-height: .9; color: var(--amber); }
.hudtitle b { display: block; font-size: 26px; line-height: 1.1; color: #fff; } .hudsub { display: block; font-size: 11px; letter-spacing: .18em; color: #fff; opacity: .85; }
.hudlive { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11.5px; background: rgba(13,16,23,.8); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; color: #fff; text-shadow: none; } .hudlive i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
body.roomview #side { display: none; } body.roomview #stage { margin-right: 400px; } body.roomview #panel { width: 400px; box-shadow: none; }
.rkick { color: var(--amber); font-size: 11px; letter-spacing: .16em; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 4px; } .stats div { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: var(--bg); } .stats span { display: block; font-size: 10.5px; letter-spacing: .1em; color: var(--dim); } .stats b { font-size: 22px; }
.task { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 6px; background: var(--bg); font-size: 13px; } .task .bar { height: 4px; border-radius: 2px; background: var(--line); margin-top: 8px; overflow: hidden; } .task .bar i { display: block; height: 100%; width: 40%; background: var(--green); border-radius: 2px; animation: slide 1.4s ease-in-out infinite alternate; } .task.waiting .bar i { background: var(--amber); width: 100%; animation: none; opacity: .6; }
@keyframes slide { from { margin-left: 0; } to { margin-left: 60%; } }
.trow { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #1d2330; cursor: pointer; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; border-radius: 0; text-align: left; } .trow span.w { flex: 1; font-size: 13px; line-height: 1.3; } .trow .dim { font-size: 12px; }
.order { display: flex; gap: 8px; margin-top: 8px; } .order input { flex: 1; }
body.roomview #queue { display: none; }

/* projects view, new project, notifications, chat tools */
#projects { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 30px; } #projects[hidden] { display: none; }
#projects h3 { font-size: 15px; margin: 22px 0 8px; } .cnt { font-size: 11px; background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; color: var(--dim); vertical-align: 2px; }
.dropzone { display: block; width: 100%; text-align: center; padding: 22px 16px; border: 2px dashed #46526b; border-radius: 14px; background: rgba(52,211,153,.05); } .dropzone:hover { border-color: var(--green); }
.dropzone b { display: block; font-size: 16px; color: var(--green); } .dropzone span { display: block; color: var(--dim); font-size: 13px; margin-top: 4px; } .dropzone.small { padding: 14px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pcard { display: flex; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; } .pcard:hover { border-color: #46526b; } .pcard.warn { border-color: #7a5a12; }
.pthumb { flex: 0 0 76px; height: 135px; border-radius: 8px; background: #0b0e14 center/cover; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 22px; position: relative; }
.dur { position: absolute; right: 4px; bottom: 4px; font-size: 10.5px; background: rgba(0,0,0,.7); color: #fff; border-radius: 4px; padding: 0 4px; }
.pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; } .pinfo b { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pstat { font-size: 12.5px; color: #cfd5e2; } .bad { color: var(--red); } .eta { color: var(--amber); } .plink { font-size: 12px; color: var(--green); margin-top: auto; } .pinfo button { margin-top: auto; align-self: flex-start; font-size: 12.5px; padding: 5px 10px; }
.steps { display: flex; gap: 4px; flex-wrap: wrap; } .st .av { flex: none; width: 24px; height: 24px; border: 2px solid var(--line); opacity: .45; } .st.done .av { border-color: var(--green); opacity: 1; } .st.active .av { border-color: var(--amber); opacity: 1; animation: pulse 1s ease-in-out infinite alternate; } .st.failed .av { border-color: var(--red); opacity: 1; }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(251,191,36,.6); } to { box-shadow: 0 0 0 5px rgba(251,191,36,0); } }
.prow { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #1d2330; font-size: 13px; } .prow .w { flex: 1; line-height: 1.3; } .prow .dim { font-size: 12px; } .prow.pending { opacity: .6; }
#newproj { position: fixed; inset: 0; background: rgba(5,7,14,.72); z-index: 30; display: flex; align-items: center; justify-content: center; padding: 20px; } #newproj[hidden] { display: none; }
.npcard { width: min(680px, 100%); } .npcard textarea { width: 100%; resize: vertical; font: 13px/1.5 inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.npcard .gbody h4 { margin: 20px 0 8px; } .npcard .gbody p { margin: 6px 0; font-size: 12.5px; }
.frow { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 13px; } .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .frow button { padding: 1px 7px; }
.fbar { flex: 0 0 120px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .fbar i { display: block; height: 100%; background: var(--green); } .fpct { flex: 0 0 64px; text-align: right; font-size: 12px; }
label.opt { display: flex; gap: 9px; align-items: flex-start; color: var(--text); font-size: 13px; margin: 8px 0; cursor: pointer; } label.opt input { width: auto; margin-top: 3px; } .deps { margin-left: 24px; } .deps[hidden] { display: none; }
.nfoot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); } .nfoot .dim { flex: 1; font-size: 12.5px; color: var(--dim); }
#bell { position: relative; padding: 7px 10px; } #bellN { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; } #bellN[hidden] { display: none; }
#notes { position: fixed; top: 54px; right: 12px; width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.5); z-index: 25; } #notes[hidden] { display: none; }
.nhead { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); } .nhead button { padding: 2px 8px; }
.note, .pop { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; font-size: 13px; line-height: 1.35; } .note { border: 0; border-bottom: 1px solid #1d2330; border-radius: 0; background: none; padding: 9px 12px; } .note[data-np] { cursor: pointer; } .note:not([data-np]) { cursor: default; }
.note > span:nth-child(2), .pop > span:nth-child(2) { flex: 1; min-width: 0; } .note time { color: var(--dim); font-size: 11px; white-space: nowrap; } .note .dim { font-size: 12px; } .note.info { opacity: .75; }
#toasts { position: fixed; right: 14px; top: 60px; display: flex; flex-direction: column; gap: 8px; z-index: 40; width: min(340px, calc(100vw - 28px)); }
.pop { background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.45); animation: popin .25s ease-out; } .pop.warn { border-left-color: var(--amber); } .pop.you { border-left-color: #60a5fa; }
@keyframes popin { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
#chatForm { flex-direction: column; align-items: stretch; gap: 6px; } .chatrow { display: flex; gap: 8px; align-items: flex-end; }
#chatBar { display: flex; align-items: center; justify-content: space-between; gap: 8px; } #chatBar button { font-size: 12px; padding: 4px 9px; } .mdl { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 11.5px; } .mdl select { width: auto; padding: 3px 6px; font-size: 12px; }
#chatFiles { display: flex; flex-wrap: wrap; gap: 5px; } #chatFiles:empty { display: none; } .chip { font-size: 12px; background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 4px 2px 9px; display: inline-flex; align-items: center; gap: 5px; } .chip button { border: 0; background: none; padding: 0 5px; color: var(--dim); }
.mfiles { display: block; font-size: 11.5px; opacity: .8; margin-bottom: 3px; }
header button { white-space: nowrap; }
.hint { display: none; }
header { row-gap: 6px; }

#clock3d { position: absolute; right: 12px; top: 10px; z-index: 5; font: 600 12px/1 -apple-system, "Segoe UI", sans-serif; color: #fff; background: rgba(10,12,24,.62); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 7px 12px; cursor: pointer; backdrop-filter: blur(6px); font-variant-numeric: tabular-nums; }
#clock3d:hover { background: rgba(10,12,24,.8); }

#labels .tag.inactive { opacity: .45; font-weight: 500; }

#labels .tag { border: 1px solid rgba(56,225,255,.35); box-shadow: 0 0 10px rgba(56,225,255,.18); background: rgba(8,6,20,.78); }
#labels .tag.say { border-color: rgba(255,43,214,.55); box-shadow: 0 0 12px rgba(255,43,214,.3); }
