:root { --ink:#3d2433; --muted:#765565; --paper:#fff4f8; --border:#e5c6d3; --accent:#9a3d66; --soft:#f7dce8; --sans:'Segoe UI',Arial,sans-serif; --mono:Consolas,'Courier New',monospace; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
html { scroll-behavior:smooth; scroll-padding-top:24px; }
body { margin:0; color:var(--ink); background:var(--paper); font:14px var(--sans); -webkit-font-smoothing:antialiased; }
button,input,select { font:inherit; }
button { cursor:pointer; color:inherit; transition:background .15s,transform .15s; }
button:disabled { opacity:1; cursor:not-allowed; background:#f1e6ec; border-color:#dac4cf; color:#765565; }
button:active:not(:disabled) { transform:translateY(1px); }
a { color:inherit; text-decoration:none; }
button,a { touch-action:manipulation; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline:3px solid #9a3d66; outline-offset:4px; }
.sidebar { position:fixed; inset:0 auto 0 0; width:200px; padding:32px 18px 22px; display:flex; flex-direction:column; border-right:1px solid var(--border); background:#fffcfd; z-index:5; }
.brand { display:flex; gap:9px; align-items:center; padding:0 9px; font-size:25px; font-weight:650; letter-spacing:-1.3px; }
.brand-icon { color:#c47c9b; background:#fbe9f0; border-radius:12px; display:grid; place-items:center; height:37px; width:37px; font-size:30px; font-weight:400; }
.brand-period { color:#c47c9b; margin-left:-9px; }
.sidebar nav { margin-top:48px; }
.nav-item { display:flex; align-items:center; gap:11px; width:100%; padding:13px 14px; margin-bottom:8px; background:none; border:0; border-radius:12px; font-size:13px; text-align:left; color:#765565; }
.nav-item>span:first-child { font-size:20px; width:20px; text-align:center; }
.nav-item:hover { background:#fcf0f5; }
.nav-item.active { background:var(--soft); color:#813451; }
.nav-count { margin-left:auto; background:#f2d7e4; border-radius:7px; min-width:23px; padding:3px 6px; text-align:center; font-size:10px; }
.sidebar-bottom { margin-top:auto; padding:20px 10px 0; border-top:1px solid var(--border); display:flex; gap:9px; align-items:center; }
.sidebar-bottom strong { display:block; font-size:12px; font-weight:500; }
.sidebar-bottom div>span { display:block; margin-top:4px; font-size:11px; color:var(--muted); }
.connection-dot,.live-dot,.open-dot { display:inline-block; height:6px; width:6px; border-radius:50%; background:#d9a5bc; flex-shrink:0; }
.connected .connection-dot,.connected .live-dot { background:#397c56; }
.main-shell { margin-left:200px; }
.topbar { height:76px; padding:0 38px; border-bottom:1px solid var(--border); background:#fffcfd; display:flex; align-items:center; justify-content:space-between; }
.breadcrumb { font-size:12px; color:var(--muted); }
.button { border:1px solid transparent; border-radius:10px; padding:11px 17px; font-size:12px; font-weight:550; display:inline-flex; align-items:center; justify-content:center; gap:9px; white-space:nowrap; }
.button>span { font-size:17px; }
.button-dark { background:var(--accent); color:white; }
.button-dark:hover { background:#812b51; }
.button-light { border-color:#d7a6bc; background:#fffafd; color:#813451; }
.button-light:hover { background:#faeaf1; }
.button-small { font-size:11px; padding:10px 15px; }
.button svg { width:14px; height:14px; fill:currentColor; }
main { max-width:1320px; padding:26px 38px 38px; margin:0 auto; }
.page-heading { display:flex; align-items:center; justify-content:space-between; margin:29px 0 24px; gap:15px; }
h1 { margin:0; font-size:32px; font-weight:600; letter-spacing:-1.2px; display:flex; align-items:center; gap:10px; }
.heading-flower { color:#d6a0b7; font-size:22px; font-weight:400; }
.session-label { display:flex; align-items:center; gap:9px; font-size:11px; }
.session-label>span { font-size:10px; padding:4px 8px; border-radius:6px; color:#813451; background:#f9eaf1; }
.session-label strong { font-weight:400; color:var(--muted); }
.stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:23px; }
.stat { background:#fff; border:1px solid var(--border); border-radius:15px; min-height:109px; padding:20px 23px; position:relative; }
.stat>div>span { color:var(--muted); font-size:12px; }
.stat strong { display:flex; align-items:center; gap:9px; margin-top:11px; font-weight:550; font-size:29px; line-height:1; letter-spacing:-.7px; }
.status-stat { background:#fff2f7; }
.status-stat strong { font-size:25px; }
.open-dot { background:#c786a6; }
.closed-dot { background:#bdb0b8; }
.toggle { border:0; position:absolute; right:22px; top:22px; width:33px; height:20px; padding:3px; border-radius:20px; background:#9a3d66; }
.toggle span { display:block; width:14px; height:14px; border-radius:50%; background:white; margin-left:13px; box-shadow:0 1px 3px #95516c22; transition:margin .15s; }
.toggle[aria-checked=false] { background:#8f7783; }
.toggle[aria-checked=false] span { margin-left:0; }
.content-grid { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:21px; align-items:stretch; }
.panel { border:1px solid var(--border); border-radius:16px; background:#fff; overflow:hidden; }
.panel-heading { display:flex; align-items:center; justify-content:space-between; padding:21px 23px; gap:10px; }
.panel-title { display:flex; align-items:center; gap:9px; }
h2 { margin:0; font-size:15px; font-weight:600; letter-spacing:-.2px; }
.pill { background:#faedf3; padding:3px 7px; color:#813451; font-size:10px; border-radius:6px; }
.mini-label { display:flex; align-items:center; gap:6px; font-size:10px; color:#765565; }
.queue-toolbar { display:flex; align-items:center; gap:14px; padding:0 23px 18px; }
.search-box { display:flex; align-items:center; gap:7px; flex:1; max-width:225px; padding:9px 11px; background:#fffbfd; border:1px solid #d9b1c3; border-radius:9px; }
.search-box svg { width:14px; height:14px; fill:none; stroke:#886175; stroke-width:1.6; flex-shrink:0; }
.search-box input { width:100%; min-width:0; border:0; background:none; outline:none; color:var(--ink); font-size:11px; }
input::placeholder { color:#806474; }
.text-button { margin-left:auto; background:none; border:0; padding:8px 0; font-size:10px; color:#874a67; white-space:nowrap; }
.text-button>span { font-size:15px; margin-left:5px; }
.text-button:disabled { background:transparent; }
.table-wrap { height:330px; overflow:auto; scrollbar-width:thin; scrollbar-color:#edd3df transparent; }
table { width:100%; border-collapse:collapse; text-align:left; table-layout:fixed; }
thead { position:sticky; top:0; background:#fffbfd; z-index:1; }
th { font-size:10px; font-weight:400; padding:12px 9px; color:#775263; border-block:1px solid #f7edf2; }
th:first-child,td:first-child { padding-left:24px; }
.position-column { width:68px; }
.joined-column { width:80px; }
td { padding:14px 9px; height:55px; border-bottom:1px solid #faf0f5; }
.position { font-family:var(--mono); font-size:11px; color:#765565; }
.first-position { display:grid; place-items:center; margin-left:-6px; width:25px; height:25px; background:#f9e6ef; color:#813451; border-radius:7px; }
.viewer-cell { display:flex; align-items:center; gap:10px; min-width:0; }
.avatar { display:grid; place-items:center; flex-shrink:0; width:30px; height:30px; border-radius:11px; background:#fae6ee; color:#77475f; font-size:10px; text-transform:uppercase; }
.avatar[data-color="1"] { background:#f1e8f8; color:#674579; }
.avatar[data-color="2"] { background:#f8ebdf; color:#80523a; }
.avatar[data-color="3"] { background:#f9e3ee; color:#7d4260; }
.avatar[data-color="4"] { background:#eeeafb; color:#68517e; }
.viewer-name { font-size:12px; color:#563445; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.up-next { margin-left:auto; margin-right:12px; background:#fbeaf2; color:#813451; border-radius:5px; padding:3px 6px; font-size:9px; }
.wait-time { font-size:11px; color:#765565; }
.pick-controls { border-top:1px solid var(--border); padding:18px 23px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pick-count { display:flex; align-items:center; gap:9px; }
.pick-count label { font-size:11px; color:#704358; }
.pick-count input { width:53px; padding:9px 6px 9px 10px; background:#fffafd; border:1px solid #d7a6bc; border-radius:8px; font-size:12px; color:#634052; }
.pick-buttons { display:flex; gap:8px; }
.activity-panel { display:flex; flex-direction:column; }
.activity-symbol { font-size:21px; line-height:1; color:#d5a0b8; }
.chat-channel { display:flex; align-items:center; gap:7px; padding:12px 22px; background:#fffbfd; border-block:1px solid #f6eaf0; }
.chat-channel strong { font-size:11px; font-weight:400; color:#765565; }
.chat-channel>span:last-child { margin-left:auto; font-size:10px; color:#765565; }
.chat-feed { display:flex; flex-direction:column; flex:1; gap:15px; padding:18px 20px; min-height:180px; max-height:340px; overflow:auto; scrollbar-width:thin; scrollbar-color:#edd3df transparent; }
.chat-entry { font-size:11px; line-height:1.7; overflow-wrap:anywhere; }
.chat-entry-header { display:flex; gap:5px; align-items:center; margin-bottom:3px; }
.chat-entry-header strong { font-size:10px; font-weight:600; color:#853457; }
.chat-entry-header time { margin-left:auto; color:#805e70; font-size:9px; }
.chat-entry p { margin:0; color:#634052; }
.chat-entry.bot { background:#fff3f8; border:1px solid #f5e2ec; border-radius:11px; padding:10px 12px; }
.bot-badge { font-size:7px; padding:1px 4px; border-radius:4px; background:#f4dce8; color:#813451; }
.delivery-note { display:block; margin-top:5px; font-size:9px; color:#765565; }
.delivery-note.failed { color:#93462f; }
.chat-empty { margin:auto; text-align:center; color:#765565; font-size:11px; }
.chat-empty>span { font-size:27px; color:#dfb9cb; }
.chat-empty p { margin-top:10px; }
.small-label { font-size:10px; color:#704358; }
.live-chat-footer { border-top:1px solid var(--border); padding:16px 20px; font-size:10px; color:#765565; }
.empty-state { padding:55px 20px; text-align:center; color:#765565; }
.empty-state>span { font-size:34px; color:#dfb4c8; }
.empty-state h3 { font-size:14px; font-weight:500; margin:14px 0 8px; }
.empty-state p { margin:0; }
.empty-state code { font-size:11px; color:#813451; }
.last-pick { display:flex; gap:13px; align-items:center; border:1px solid #eed7e3; border-radius:13px; background:#fcecf4; padding:17px 22px; margin-top:18px; }
.last-pick-icon { color:#cf95b0; font-size:23px; }
.last-pick .small-label { display:block; font-size:9px; letter-spacing:.5px; }
.last-pick strong { display:block; font-size:12px; font-weight:500; margin-top:5px; overflow-wrap:anywhere; }
.last-pick>span:last-child { margin-left:auto; white-space:nowrap; font-size:10px; color:#765565; }
.commands { margin-top:22px; border:1px solid var(--border); border-radius:13px; background:#fffcfd; }
.commands>summary { list-style:none; display:flex; align-items:center; justify-content:space-between; cursor:pointer; padding:17px 21px; font-size:12px; color:#704358; }
summary::-webkit-details-marker { display:none; }
.commands>summary>span { transition:transform .2s; font-size:18px; }
.commands[open]>summary>span { transform:rotate(180deg); }
.command-groups { display:grid; grid-template-columns:1fr 1fr; gap:28px; padding:3px 22px 20px; }
.command-groups h3 { font-size:10px; font-weight:500; color:#765565; margin:0 0 9px; }
.command-list { display:flex; flex-direction:column; gap:5px; }
.command-list button { display:flex; align-items:center; justify-content:space-between; gap:15px; background:none; border:0; border-radius:7px; padding:7px 0; text-align:left; }
.command-list button:hover { background:#fceff5; }
.command-list code { color:#704358; font-size:11px; }
.command-list span { color:#765565; font-size:10px; }
.toast { position:fixed; left:calc(50% + 100px); bottom:24px; transform:translateX(-50%); max-width:min(530px,90vw); padding:13px 21px; border-radius:12px; color:white; background:#8f3a60; box-shadow:0 8px 30px #9d5c7b20; font-size:12px; line-height:1.6; z-index:100; }
.toast.error { background:#93462f; }
dialog { max-width:470px; width:calc(100vw - 36px); padding:29px; border:1px solid var(--border); border-radius:20px; color:var(--ink); box-shadow:0 20px 80px #985a7a20; }
dialog::backdrop { background:#80556d66; backdrop-filter:blur(4px); }
.dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.dialog-heading h2,dialog>h2 { font-size:24px; font-weight:550; letter-spacing:-.6px; }
.close-dialog { background:none; border:0; font-size:25px; color:#765565; padding:0 5px; }
.dialog-actions .close-dialog { font-size:12px; padding:11px 17px; }
dialog p { font-size:12px; color:#634052; line-height:1.8; margin:12px 0; }
.field-label { display:block; margin:24px 0 8px; color:#704358; font-size:11px; }
.dialog-input { width:100%; padding:12px 14px; background:#fffbfd; color:#634052; border:1px solid #ecd5e1; border-radius:10px; font-size:12px; }
.setup-help { margin-top:16px; font-size:11px; color:#704358; }
.setup-help summary { cursor:pointer; }
.setup-help summary::before { content:'+ '; color:#c494ac; }
.setup-help[open] summary::before { content:'− '; }
.setup-help ol { padding-left:17px; line-height:1.8; }
.setup-help li { margin:8px 0; }
.setup-help a { text-decoration:underline; }
.setup-help code { display:block; background:#fceef5; padding:9px; margin-top:6px; border-radius:7px; overflow-wrap:anywhere; font-size:11px; }
.permission-note { font-size:10px; color:#765565; margin-top:19px; }
.dialog-actions { display:flex; gap:9px; justify-content:flex-end; margin-top:23px; }
dialog .dialog-error { font-size:11px; color:#93462f; }
#confirm-dialog { max-width:365px; }
.login-page { min-height:100dvh; display:grid; place-items:center; padding:24px; }
.login-card { width:100%; max-width:360px; background:#fff; border:1px solid var(--border); border-radius:20px; padding:32px; }
.login-card .brand { justify-content:center; padding:0; font-size:25px; gap:9px; }
.login-card .brand-period { display:inline; }
.login-card h1 { justify-content:center; margin:27px 0 0; font-size:24px; }
.login-card .button { width:100%; margin-top:20px; }
.login-card .field-label { margin-top:24px; }
.login-error { color:#93462f; font-size:12px; }
@media(max-width:1120px) {
  .sidebar { width:175px; padding-inline:13px; }
  .brand { font-size:23px; }
  .main-shell { margin-left:175px; }
  .topbar { padding-inline:27px; }
  main { padding-inline:27px; }
  .content-grid { grid-template-columns:minmax(0,1fr) 280px; gap:16px; }
  .pick-controls { padding:17px; }
  .pick-buttons .button { padding:10px 12px; }
  .toast { left:calc(50% + 87px); }
}
@media(max-width:960px) {
  .sidebar { width:72px; padding:27px 12px; }
  .brand { font-size:0; gap:0; padding:0; justify-content:center; }
  .brand-period,.nav-label,.nav-count,.sidebar-bottom { display:none; }
  .nav-item { justify-content:center; padding:12px; }
  .main-shell { margin-left:72px; }
  .content-grid { grid-template-columns:minmax(0,1fr) 270px; }
  .up-next { display:none; }
  .position-column { width:55px; }
  .joined-column { width:63px; }
  .pick-controls { gap:7px; }
  .pick-count { gap:6px; }
  .pick-count label { font-size:10px; }
  .pick-buttons { gap:5px; }
  .pick-buttons .button { font-size:11px; padding:10px; }
  .toast { left:calc(50% + 36px); }
}
@media(max-width:760px) {
  main { padding:20px; }
  .topbar { padding-inline:20px; height:66px; }
  .content-grid { grid-template-columns:1fr; }
  .chat-feed { height:220px; min-height:180px; max-height:270px; flex:auto; }
  .page-heading { margin-block:25px 22px; }
  h1 { font-size:29px; }
  .stats { gap:11px; }
  .stat { padding:18px; }
  .stat>div>span { font-size:11px; }
  .toggle { top:18px; right:16px; }
  .pick-controls { padding:17px 22px; }
  .pick-buttons .button { font-size:12px; padding:11px 16px; }
  .up-next { display:inline; }
  .session-label>span { display:none; }
  .command-groups { gap:20px; }
}
@media(max-width:480px) {
  .sidebar { width:55px; padding:22px 7px; }
  .brand-icon { width:32px; height:32px; font-size:28px; border-radius:11px; }
  .nav-item { padding:11px 5px; }
  .main-shell { margin-left:55px; }
  .topbar { padding-inline:15px; }
  main { padding:17px 14px 27px; }
  .button-small { padding:9px 11px; font-size:10px; }
  .breadcrumb { font-size:11px; }
  h1 { font-size:27px; gap:7px; }
  .heading-flower { font-size:19px; }
  .session-label { font-size:10px; }
  .stats { grid-template-columns:1fr 1fr; gap:10px; margin-bottom:18px; }
  .stat { min-height:100px; padding:17px; }
  .status-stat { grid-column:span 2; min-height:70px; }
  .status-stat>div { display:flex; align-items:center; gap:14px; }
  .status-stat strong { margin:0; font-size:22px; }
  .status-stat .toggle { top:23px; }
  .panel-heading { padding:19px 17px; }
  .queue-toolbar { padding:0 17px 16px; gap:10px; }
  .text-button { font-size:9px; }
  .text-button>span { display:none; }
  .search-box { padding:8px 9px; }
  .search-box input { font-size:10px; }
  .table-wrap { height:310px; }
  th:first-child,td:first-child { padding-left:19px; }
  .position-column { width:50px; }
  .joined-column { width:55px; }
  .viewer-cell { gap:8px; }
  .viewer-name { font-size:11px; }
  .up-next { display:none; }
  .wait-time { font-size:10px; }
  .pick-controls { padding:15px 13px; gap:6px; flex-wrap:wrap; }
  .pick-count label { font-size:10px; }
  .pick-count input { width:45px; padding:9px 4px 9px 7px; }
  .pick-buttons { margin-left:auto; }
  .pick-buttons .button { font-size:10px; padding:9px 10px; gap:5px; }
  .pick-buttons .button>span { font-size:15px; }
  .last-pick { padding:15px 17px; gap:10px; }
  .last-pick strong { font-size:11px; }
  .last-pick>span:last-child { display:none; }
  .command-groups { grid-template-columns:1fr; gap:20px; }
  .toast { left:calc(50% + 27px); max-width:calc(100vw - 75px); width:max-content; font-size:11px; padding:12px 15px; }
  dialog { padding:24px; }
  .dialog-actions { flex-wrap:wrap; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none!important; }
}



