@font-face{font-family:Instrument Sans;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(/_next/static/media/adb45196eddef626-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Instrument Sans;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(/_next/static/media/26d0ba92e140f0dc-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Instrument Sans;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(/_next/static/media/adb45196eddef626-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Instrument Sans;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(/_next/static/media/26d0ba92e140f0dc-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Instrument Sans;font-style:normal;font-weight:600;font-stretch:100%;font-display:swap;src:url(/_next/static/media/adb45196eddef626-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Instrument Sans;font-style:normal;font-weight:600;font-stretch:100%;font-display:swap;src:url(/_next/static/media/26d0ba92e140f0dc-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Instrument Sans;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(/_next/static/media/adb45196eddef626-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Instrument Sans;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(/_next/static/media/26d0ba92e140f0dc-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Instrument Sans Fallback;src:local("Arial");ascent-override:94.42%;descent-override:24.33%;line-gap-override:0.00%;size-adjust:102.74%}.__className_287987{font-family:Instrument Sans,Instrument Sans Fallback;font-style:normal}.__variable_287987{--font-sans:"Instrument Sans","Instrument Sans Fallback"}@font-face{font-family:Geist Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/013b72fa676f92e0-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Geist Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/b9408752a0c24fb9-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Geist Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/65f03d54ccadf4a8-s.woff2) format("woff2");unicode-range:u+2000-2001,u+2004-2008,u+200a,u+23b8-23bd,u+2500-259f}@font-face{font-family:Geist Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/e038a29029a234f2-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Geist Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/2b5b02fc7e511755-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Geist Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/7d4881bb7e1bf84d-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Geist Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/013b72fa676f92e0-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Geist Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/b9408752a0c24fb9-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Geist Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/65f03d54ccadf4a8-s.woff2) format("woff2");unicode-range:u+2000-2001,u+2004-2008,u+200a,u+23b8-23bd,u+2500-259f}@font-face{font-family:Geist Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/e038a29029a234f2-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Geist Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/2b5b02fc7e511755-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Geist Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/7d4881bb7e1bf84d-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Geist Mono;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/013b72fa676f92e0-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Geist Mono;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/b9408752a0c24fb9-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Geist Mono;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/65f03d54ccadf4a8-s.woff2) format("woff2");unicode-range:u+2000-2001,u+2004-2008,u+200a,u+23b8-23bd,u+2500-259f}@font-face{font-family:Geist Mono;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/e038a29029a234f2-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Geist Mono;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/2b5b02fc7e511755-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Geist Mono;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/7d4881bb7e1bf84d-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Geist Mono Fallback;src:local("Arial");ascent-override:74.67%;descent-override:21.92%;line-gap-override:0.00%;size-adjust:134.59%}.__className_07d42c{font-family:Geist Mono,Geist Mono Fallback;font-style:normal}.__variable_07d42c{--font-mono:"Geist Mono","Geist Mono Fallback"}:root{--font:var(--font-sans),"Instrument Sans",system-ui,-apple-system,"Segoe UI",sans-serif;--mono:var(--font-mono),"Geist Mono",ui-monospace,SFMono-Regular,monospace;--bg:#fafafa;--card:#ffffff;--raised:#f4f4f5;--sidebar:#f4f4f5;--sb-active:#ffffff;--line:rgba(23,23,23,0.08);--line2:rgba(23,23,23,0.1);--line-soft:rgba(23,23,23,0.06);--text:#171717;--text2:#525252;--muted:#737373;--body:#262626;--hover-row:#fafafa;--keycap:rgba(23,23,23,0.14);--seg-bg:#f4f4f5;--seg-on:#ffffff;--team-bg:#f4f4f5;--accent:#8a5a2b;--chart:#9a5c1f;--good:#1f7a4d;--accent-text:#8a5a2b;--accent-soft:rgba(138,90,43,0.1);--note-bg:#fbf8f2;--note-border:rgba(138,90,43,0.28);--note-text:#6b4a2a;--late:#b42318;--warn:#b7791f;--danger:#b42318;--danger-bg:#fdf0ee;--success:#16794a;--success-bg:#ecf6f0;--shadow:0 8px 24px rgba(0,0,0,0.06);--shadow-sm:0 1px 2px rgba(0,0,0,0.04);--ease:cubic-bezier(0.22,1,0.36,1);color-scheme:light}html[data-theme=dark]{--bg:#141415;--card:#19191b;--raised:#232325;--sidebar:#0f0f10;--sb-active:#232325;--line:rgba(237,237,237,0.08);--line2:rgba(237,237,237,0.12);--line-soft:rgba(237,237,237,0.06);--text:#ededed;--text2:#a1a1a6;--muted:#85858b;--body:#dcdcde;--hover-row:#1f1f21;--keycap:rgba(237,237,237,0.16);--seg-bg:#0f0f10;--seg-on:#2a2a2d;--team-bg:#232325;--accent-text:#c9a37f;--accent-soft:rgba(201,163,127,0.12);--chart:#bb8244;--good:#4fbf85;--note-bg:#211c15;--note-border:rgba(214,170,120,0.32);--note-text:#d6b48a;--late:#f97066;--warn:#e0a43a;--danger:#f97066;--danger-bg:#2a1716;--success:#4cc38a;--success-bg:#14241b;--shadow:0 8px 24px rgba(0,0,0,0.4);--shadow-sm:none;color-scheme:dark}*{box-sizing:border-box}body,html{margin:0;padding:0;overscroll-behavior-x:none}body{font-family:var(--font);font-size:14px;line-height:20px;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}a{text-decoration:none}a,button{color:inherit}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.55}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}input,select,textarea{font:inherit;color:var(--text);width:100%;border:1px solid var(--line2);border-radius:8px;padding:8px 12px;background:var(--card)}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}textarea{resize:vertical;line-height:22px}.count,.mono,.msg-time,.tab-count,.ticket-number{font-family:var(--mono);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.small{font-size:12px}.strong{font-weight:600}.error{color:var(--danger);background:var(--danger-bg)}.error,.success{border-radius:8px;padding:8px 12px;margin:8px 0}.success{color:var(--success);background:var(--success-bg)}.error-text{color:var(--danger)}.icon{flex-shrink:0;display:block}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:0 16px;border:1px solid var(--line2);border-radius:8px;background:var(--card);color:var(--text);font-weight:500;transition:background-color .15s var(--ease),border-color .15s var(--ease),transform .12s var(--ease)}.btn:hover:not(:disabled){border-color:var(--muted)}.btn:active:not(:disabled){transform:scale(.98)}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.btn.primary:hover:not(:disabled){filter:brightness(1.08)}.btn.small{height:32px;padding:0 10px;font-size:13px;white-space:nowrap}.btn.wide{width:100%;height:40px}.btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn.internal{background:var(--card);border-color:var(--note-border);color:var(--text);font-weight:600}.btn .kbd{font-family:var(--mono);font-size:11px;opacity:.75;font-weight:400}.link-button{background:none;border:none;padding:0;color:var(--accent-text);font-weight:500}.link-button.small{font-size:12px}.danger-link{color:var(--danger)}.kbd-cap{font-family:var(--mono);font-size:11px;line-height:16px;padding:0 4px;border:solid var(--keycap);border-width:1px 1px 2px;border-radius:4px;color:var(--muted)}.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--sidebar);border-right:1px solid var(--line);color:var(--text2);display:flex;flex-direction:column;gap:24px;padding:20px 12px;position:-webkit-sticky;position:sticky;top:0;height:100vh;overflow-y:auto}.brand{display:flex;align-items:baseline;gap:6px;padding:4px 8px}.brand .wordmark{font-size:18px;letter-spacing:-.01em;color:var(--text)}.brand .wordmark b{font-weight:700}.brand .sub{font-size:15px;color:var(--muted)}.brand.big{justify-content:center;padding-bottom:16px}.brand.big .wordmark{font-size:24px}.brand.big .sub{font-size:20px}.mailbox-nav{display:flex;flex-direction:column;gap:2px}.nav-label{font-size:12px;color:var(--muted);padding:0 8px 8px}.chat-label{display:flex;align-items:center;justify-content:space-between;gap:8px}.chat-mode{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;padding:3px 9px 3px 7px;border-radius:999px;white-space:nowrap}.chat-mode i{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px color-mix(in srgb,currentColor 22%,transparent);animation:chat-pulse 2.4s ease-in-out infinite}.chat-mode.team{color:#c2570c;background:color-mix(in srgb,#f97316 14%,transparent)}.chat-mode.bot{color:#15803d;background:color-mix(in srgb,#22c55e 14%,transparent)}html[data-theme=dark] .chat-mode.team{color:#fdba74}html[data-theme=dark] .chat-mode.bot{color:#86efac}@keyframes chat-pulse{0%,to{opacity:1}50%{opacity:.45}}@media (prefers-reduced-motion:reduce){.chat-mode i{animation:none}}.nav-gap{height:12px}.nav-item{position:relative;display:flex;align-items:center;gap:10px;height:36px;padding:0 8px;border-radius:8px;color:var(--text2);transition:background-color .15s var(--ease),color .15s var(--ease)}.nav-item .icon{color:var(--muted)}.nav-item .label{flex:1 1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-item.active,.nav-item:hover{background:var(--sb-active);color:var(--text)}.nav-item.active{font-weight:600}.nav-item.active .icon{color:var(--text)}.nav-item.active:before{content:"";position:absolute;left:-12px;top:8px;width:3px;height:20px;border-radius:0 2px 2px 0;background:var(--accent)}.nav-item.small{height:32px;font-size:14px}.count{font-size:13px;font-weight:600;color:var(--text2)}.count.attention,.nav-item.active .count{color:var(--text)}.count.attention{display:inline-flex;align-items:center;gap:6px}.count.attention:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent)}.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:2px;padding-top:16px;border-top:1px solid var(--line)}.theme-toggle{border:0;background:transparent;text-align:left;width:100%}.me{display:flex;gap:10px;padding:12px 8px 0}.me,.me-avatar{align-items:center}.me-avatar{width:28px;height:28px;border-radius:50%;border:1px solid var(--line);background:var(--sb-active);color:var(--text);display:inline-flex;justify-content:center;font-size:12px;font-weight:500}.me-name{flex:1 1;color:var(--text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.me .link-button{color:var(--muted);font-weight:400;font-size:12px}.content{padding:24px 32px 48px;min-width:0}.content>*{max-width:1180px}.page-header{display:flex;flex-direction:column;gap:4px;margin-bottom:20px}.page-header h1{margin:0;font-size:28px;line-height:32px;font-weight:500;letter-spacing:-.01em}.summary{margin:0;color:var(--text2)}.summary b{color:var(--text);font-family:var(--mono);font-weight:600}.summary .late{color:var(--late)}.section-title{font-size:16px;font-weight:500;margin:32px 0 12px}.inbox-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.inbox-head .page-header{margin-bottom:0}.search{display:flex;align-items:center;gap:8px;width:320px;max-width:100%;height:36px;padding:0 10px;background:var(--card);border:1px solid var(--line2);border-radius:8px;color:var(--muted)}.search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.search input{flex:1 1;min-width:0;border:0;padding:0;background:transparent;height:100%}.search input:focus{box-shadow:none}.search-info{color:var(--text2);margin:0 0 12px}.tabs{gap:28px;border-bottom:1px solid var(--line);margin-bottom:16px;overflow-x:auto}.tab,.tabs{display:flex}.tab{align-items:baseline;gap:8px;padding:8px 0 12px;border-bottom:2px solid transparent;margin-bottom:-1px;color:var(--text2);white-space:nowrap}.tab.active,.tab:hover{color:var(--text)}.tab.active{font-weight:600;border-color:var(--accent)}.tab-count{font-size:13px;color:var(--muted)}.tab.active .tab-count{color:var(--text);font-weight:600}.ticket-list{list-style:none;margin:0;padding:0;background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:var(--shadow-sm)}.ticket-list li+li{border-top:1px solid var(--line-soft)}.ticket-row{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 16px 12px 20px;transition:background-color .15s var(--ease)}.ticket-row:hover{background:var(--hover-row)}.lamel{position:absolute;left:0;top:18px;width:3px;height:28px;border-radius:0 2px 2px 0;background:var(--accent);z-index:2}.avatar{width:32px;height:32px;border-radius:50%;flex-shrink:0;background:var(--raised);color:var(--text2);display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:500}.avatar.big{width:40px;height:40px;font-size:13px}.avatar.person{color:#fff;font-weight:600}.avatar.xs{width:20px;height:20px;font-size:10px}.avatar.sm{width:24px;height:24px;font-size:11px}.ticket-main{flex:1 1;min-width:0;display:flex;flex-direction:column;gap:2px}.ticket-top{display:flex;gap:8px;align-items:baseline;min-width:0}.ticket-customer{white-space:nowrap;color:var(--text)}.ticket-customer.waiting{font-weight:500}.ticket-email{color:var(--muted);font-size:12px}.ticket-email,.ticket-subject{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ticket-subject{color:var(--text2)}.ticket-side{gap:12px;flex-shrink:0}.claim,.ticket-side{display:flex;align-items:center}.claim{width:104px;gap:6px;font-size:12px;color:var(--text2);white-space:nowrap;overflow:hidden}.ticket-time{width:64px;text-align:right;font-size:12px;color:var(--muted);font-family:var(--mono)}.ticket-time.late{color:var(--late)}.ticket-number{font-size:12px;color:var(--muted)}.ticket-side .ticket-number{width:48px;text-align:right}.badge{font-size:12px;line-height:20px;padding:0 8px;border-radius:6px;white-space:nowrap;font-weight:400}.badge,.badge.label,.badge.via{background:var(--raised);color:var(--text2)}.empty{text-align:center;padding:64px 24px;color:var(--text2);background:var(--card);border:1px solid var(--line);border-radius:12px}.empty-big{font-size:20px;color:var(--text);font-weight:500;margin-bottom:4px}.small-empty{padding:24px}.swipe-item{position:relative;overflow:hidden;touch-action:pan-y}.swipe-content{position:relative;z-index:1;background:var(--card);transition:transform .12s var(--ease)}.swipe-bg{position:absolute;inset:0;display:flex;align-items:center;padding:0 24px;font-weight:600;color:#fff;opacity:.75}.swipe-bg.right{background:var(--success);justify-content:flex-start}.swipe-bg.left{background:var(--danger);justify-content:flex-end}.swipe-bg.armed{opacity:1}.row-actions{position:absolute;z-index:3;right:16px;top:50%;transform:translateY(-50%);display:none;gap:4px;padding:4px;border-radius:10px;background:var(--hover-row)}@media (hover:hover){.swipe-item:hover .row-actions{display:flex}}.row-action{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border:1px solid var(--line2);border-radius:8px;background:var(--card);font-size:13px;color:var(--text2);white-space:nowrap;transition:border-color .15s var(--ease),color .15s var(--ease)}.row-action:hover{border-color:var(--muted);color:var(--text)}.row-action.primary{color:var(--text)}.row-error{position:relative;z-index:3;margin:0 16px 12px}.ticket-layout{display:flex;flex-wrap:wrap;gap:32px;align-items:flex-start}.ticket-layout>*{max-width:none}.thread-col{flex:999 1 520px;min-width:0;max-width:820px;gap:20px}.thread-col,.ticket-header{display:flex;flex-direction:column}.crumbs,.ticket-header{gap:12px}.crumbs{display:flex;color:var(--muted)}.crumbs,.crumbs a{align-items:center}.crumbs a{display:inline-flex;gap:6px;color:var(--text2)}.crumbs a:hover{color:var(--text)}.ticket-header h1{margin:0;font-size:24px;line-height:32px;font-weight:500;letter-spacing:-.01em}.ticket-header-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ticket-header-row .spacer{flex:1 1}.segmented-status{display:inline-flex;padding:2px;gap:2px;background:var(--seg-bg);border:1px solid var(--line-soft);border-radius:10px}.segmented-status button{height:32px;padding:0 12px;border:0;border-radius:8px;background:transparent;font-size:13px;color:var(--text2);transition:background-color .15s var(--ease),color .15s var(--ease)}.segmented-status button:hover:not(:disabled){color:var(--text)}.segmented-status button.active{background:var(--seg-on);box-shadow:var(--shadow-sm);color:var(--text);font-weight:600;opacity:1}.claim-chip{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 4px 0 6px;border-radius:8px;background:var(--raised);font-size:13px;color:var(--text2)}.claim-chip b{color:var(--text);font-weight:500}.claim-chip button{height:24px;padding:0 8px;border:0;border-radius:6px;background:transparent;font-size:12px;color:var(--muted)}.claim-chip button:hover{color:var(--text);background:var(--card)}.move-ticket{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.move-ticket select{width:auto;height:32px;padding:0 8px;font-size:13px}.thread{gap:12px}.msg,.thread{display:flex;flex-direction:column}.msg{position:relative;align-self:flex-start;max-width:78%;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px 20px;gap:8px}.msg.team{align-self:flex-end;background:var(--team-bg);border-color:var(--line-soft)}.msg.internal{align-self:center;width:88%;max-width:88%;background:var(--note-bg);border:1px dashed var(--note-border);padding:12px 16px;gap:4px}.msg.focus .lamel{left:-1px;top:16px}.msg-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.msg-name{font-weight:600;color:var(--text)}.msg-addr,.msg-time{color:var(--muted);font-size:12px}.msg-time{margin-left:auto;white-space:nowrap}.msg-tag{display:inline-flex;gap:6px;font-size:12px;color:var(--note-text)}.msg-tag,.msg.internal .msg-head{align-items:center}.msg-body{white-space:pre-wrap;word-wrap:break-word;color:var(--body);line-height:22px}.mention{color:var(--accent-text);font-weight:600}.mention.me{background:var(--accent-soft);border-radius:4px;padding:0 2px}.quoted{margin-top:4px}.dots{border:none;background:var(--raised);border-radius:4px;font-size:10px;letter-spacing:1px;padding:0 6px;line-height:16px;color:var(--text2)}.quoted-text{white-space:pre-wrap;color:var(--muted);border-left:2px solid var(--line2);padding-left:12px;margin-top:8px;font-size:13px}.inline-img{display:block;width:-moz-fit-content;width:fit-content;max-width:100%;margin:8px 0;border-radius:8px;overflow:hidden;border:1px solid var(--line);background:var(--raised)}.inline-img img{display:block;max-width:min(100%,420px);max-height:360px;height:auto;object-fit:contain}.img-gallery{display:flex;flex-wrap:wrap;gap:8px}.img-gallery a{display:block;width:96px;height:96px;border-radius:8px;overflow:hidden;border:1px solid var(--line);background:var(--raised)}.img-gallery img{width:100%;height:100%;object-fit:cover;display:block}.img-gallery a:hover,.inline-img:hover{border-color:var(--muted)}.attachments{display:flex;flex-wrap:wrap;gap:8px}.attachment{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line2);background:var(--card);border-radius:8px;padding:4px 10px;font-size:12px;color:var(--text2)}.attachment:hover{border-color:var(--muted);color:var(--text)}.original iframe{width:100%;height:480px;border:1px solid var(--line);border-radius:8px;background:#fff;margin-top:8px}.msg-wrap{display:contents}.moved-note{text-align:center;color:var(--muted);font-size:12px}.moved-note span{background:var(--raised);border-radius:999px;padding:4px 12px;display:inline-flex;align-items:center;gap:6px}.reply{position:-webkit-sticky;position:sticky;bottom:12px;background:var(--card);border:1px solid var(--line2);border-radius:12px;box-shadow:var(--shadow);display:flex;flex-direction:column}.reply.mode-external,.reply.mode-note{background:var(--note-bg);border-color:var(--note-border)}.reply-tabs{display:flex;gap:20px;padding:0 20px;border-bottom:1px solid var(--line)}.reply-tabs button{padding:12px 0 10px;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:none;color:var(--muted)}.reply-tabs button:hover{color:var(--text)}.reply-tabs button.active{color:var(--text);font-weight:600;border-color:var(--accent)}.reply.mode-external .reply-tabs button.active,.reply.mode-note .reply-tabs button.active{border-color:var(--note-text)}.reply-meta{padding:12px 20px 0;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}.reply-meta b{color:var(--text);font-weight:400}.internal-hint{color:var(--note-text)}.reply-external{padding:8px 20px 0}.external-row{display:flex}.inline-label{flex:1 1;flex-direction:row;align-items:center;gap:8px;font-weight:400;color:var(--muted)}.inline-label input{flex:1 1;height:36px}.reply-input{position:relative;padding:8px 20px 0}.reply-input textarea{border:0;padding:0;background:transparent;resize:vertical;min-height:120px}.reply-input textarea:focus{box-shadow:none}.reply-files{display:flex;flex-wrap:wrap;padding:8px 20px 0}.file-chip,.reply-files{align-items:center;gap:8px}.file-chip{display:inline-flex;height:28px;padding:0 4px 0 10px;border-radius:6px;background:var(--raised);font-size:12px;color:var(--text2)}.file-chip button{width:20px;height:20px;border:0;border-radius:4px;background:transparent;color:var(--muted);line-height:18px}.file-chip button:hover{background:var(--card);color:var(--text)}.reply-signature{padding:8px 20px 0;color:var(--muted);font-size:12px}.reply .error,.reply .success{margin:8px 20px 0}.reply-actions{display:flex;align-items:center;gap:8px;padding:12px 20px 16px;flex-wrap:wrap}.reply-actions .spacer{flex:1 1}.reply-tip{font-size:12px;color:var(--muted)}.slash-menu{position:absolute;left:20px;bottom:calc(100% + 6px);z-index:30;width:min(400px,calc(100% - 40px));list-style:none;margin:0;padding:4px;background:var(--card);border:1px solid var(--line2);border-radius:12px;box-shadow:var(--shadow);max-height:320px;overflow:auto}.slash-menu li{padding:8px 10px;border-radius:8px;cursor:pointer;display:flex;flex-direction:column;gap:2px}.slash-menu li.person{flex-direction:row;align-items:center;gap:10px}.slash-menu li.active{background:var(--raised)}.slash-title{font-weight:600}.slash-preview{color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slash-menu li.slash-hint{cursor:default;flex-direction:row;gap:12px;color:var(--muted);font-size:11px;padding:8px 10px 4px}.side-panel{flex:1 1 280px;max-width:320px;position:-webkit-sticky;position:sticky;top:24px}.panel-block,.side-panel{display:flex;flex-direction:column;gap:12px}.panel-block{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px}.panel-title{font-size:12px;color:var(--muted);display:flex;justify-content:space-between;align-items:baseline}.customer-card{display:flex;gap:12px;align-items:center;word-break:break-all}.customer-card .strong{font-weight:600}.other-tickets{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.other-tickets a,.other-tickets li{display:flex;align-items:baseline;gap:8px}.other-tickets a{flex:1 1;min-width:0}.other-tickets .subject{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.other-tickets a:hover .subject{color:var(--accent-text)}.other-tickets .state{font-size:12px;color:var(--muted);white-space:nowrap}.history{list-style:none;margin:0;padding:0}.history li{position:relative;display:flex;gap:12px;padding-bottom:12px}.history li:last-child{padding-bottom:0}.history li:not(:last-child):after{content:"";position:absolute;left:3px;top:14px;bottom:-6px;width:1px;background:var(--line2)}.history .dot{position:relative;z-index:1;width:7px;height:7px;margin-top:7px;border-radius:50%;background:var(--muted);flex-shrink:0}.history .dot.accent{background:var(--accent)}.history .what{font-size:13px;color:var(--text)}.history .detail{font-size:12px;color:var(--muted)}.history .when{font-family:var(--mono);font-size:11px;color:var(--muted)}.ai-review{display:flex;gap:8px;align-items:flex-start;margin:8px 20px 0;padding:8px 12px;border-radius:8px;background:var(--accent-soft);color:var(--text2);font-size:13px}.ai-review>.icon{color:var(--accent-text);margin-top:2px;flex-shrink:0}.ai-review b{color:var(--text);font-weight:600}.translate{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:6px}.translate-btn{display:inline-flex;align-items:center;gap:4px;color:var(--muted)}.translate-btn:hover{color:var(--text)}.translation{white-space:pre-wrap;font-size:14px;line-height:1.55;color:var(--text2);background:var(--raised);border-radius:8px;padding:10px 12px;width:100%;box-shadow:inset 3px 0 0 var(--line2)}.translation-label{font-size:11px;color:var(--muted);margin-bottom:4px;text-transform:uppercase;letter-spacing:.04em}.claim.replied,.m-claim.replied{opacity:.65}.claim.replied .avatar,.m-claim.replied .avatar{filter:saturate(.6)}.badge.quote.todo{color:var(--accent-text);background:var(--accent-soft)}.badge.quote.sent{color:var(--muted)}.quote-toggle{gap:8px}.quote-toggle .quote-box{width:16px;height:16px;border:1.5px solid var(--line2);border-radius:4px;display:inline-flex;align-items:center;justify-content:center;background:var(--card)}.quote-toggle.on .quote-box{background:var(--accent);border-color:var(--accent);color:#fff}.quote-toggle.on{color:var(--text)}.followup-banner{display:flex;align-items:center;gap:12px;padding:12px 16px;margin-bottom:16px;border:1px solid var(--line);border-radius:12px;background:var(--card);font-size:14px}.followup-banner>.icon{color:var(--muted);flex-shrink:0}.followup-banner .followup-text{flex:1 1;min-width:0;display:flex;flex-direction:column;gap:2px}.followup-banner.due{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}.followup-banner.due>.icon{color:var(--accent-text)}.followup-banner.waiting{padding:8px 16px;color:var(--text2)}.badge.followup:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px;vertical-align:1px;background:var(--muted)}.badge.followup.due{color:var(--accent-text)}.badge.followup.due:before,.tab-due{background:var(--accent)}.tab-due{font-family:var(--mono);font-size:11px;line-height:16px;min-width:16px;padding:0 5px;border-radius:8px;color:#fff;text-align:center;margin-left:2px}.followup-link{color:var(--accent-text);font-weight:600}.followup-link:hover{text-decoration:underline}@media (max-width:760px){.followup-banner{flex-wrap:wrap;font-size:13px}.followup-banner .btn{width:100%}}.order-customer{font-size:13px;line-height:18px;padding:0 0 10px;margin-bottom:8px;border-bottom:1px solid var(--line-soft);display:flex;flex-direction:column}.order-customer .muted{font-size:12px}.order-phone{font-size:13px;color:var(--accent-text);font-family:var(--mono);margin-top:2px;width:-moz-fit-content;width:fit-content}.orders{display:flex;flex-direction:column}.order{border-top:1px solid var(--line-soft)}.order:first-child{border-top:0}.order summary{list-style:none;cursor:pointer;display:flex;align-items:baseline;gap:8px;padding:8px 0;position:relative}.order summary::-webkit-details-marker{display:none}.order:first-child summary{padding-top:0}.order summary:before{content:"";width:3px;align-self:stretch;border-radius:2px;background:var(--accent);margin:2px 0}.order.tone-warn summary:before{background:var(--warn)}.order.tone-muted summary:before{background:var(--line2)}.order-name{font-weight:600;font-family:var(--mono);font-size:13px}.order-date{font-size:12px;color:var(--muted);flex:1 1;white-space:nowrap}.order-total{font-size:13px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;white-space:nowrap}.order-chev{color:var(--muted);transition:transform .15s ease;align-self:center}.order[open] .order-chev{transform:rotate(180deg)}.order-body{display:flex;flex-direction:column;gap:10px;padding:2px 0 12px 11px;font-size:13px}.order-tags{display:flex;flex-wrap:wrap;gap:4px}.order-tag{font-size:11px;padding:2px 8px;border-radius:999px;background:var(--raised);color:var(--text2)}.order-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.order-items li{display:flex;gap:6px;line-height:18px}.order-items .qty{font-family:var(--mono);font-size:12px;color:var(--muted);min-width:22px}.order-tracking{display:flex;flex-direction:column;gap:6px}.track{display:flex;align-items:flex-start;gap:8px}.track .icon{margin-top:2px;color:var(--muted);flex-shrink:0}.track-text{flex:1 1;min-width:0;display:flex;flex-direction:column;word-break:break-all}.track-link,.track-text .muted{font-size:12px}.track-link{color:var(--accent-text);font-weight:600;white-space:nowrap}.order-address{line-height:18px}.order-address .muted,.order-note{font-size:12px}.order-note{color:var(--text2);background:var(--raised);border-radius:8px;padding:8px 10px;white-space:pre-wrap}.order-admin{font-size:12px;color:var(--muted);display:inline-flex;align-items:center;gap:4px;align-self:flex-start}.order-admin:hover{color:var(--text)}.status-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;background:var(--muted)}.status-dot.status-open{background:var(--accent)}.status-dot.status-waiting{background:var(--warn)}.modal-backdrop{position:fixed;inset:0;background:rgba(10,10,12,.45);display:flex;align-items:center;justify-content:center;z-index:50}.modal{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:24px;width:min(440px,92vw);box-shadow:0 20px 60px rgba(0,0,0,.25)}.modal h3{margin:0 0 8px;font-size:18px;font-weight:500}.modal p{margin:0 0 20px;color:var(--text2);line-height:22px}.modal-actions{display:flex;gap:8px}.modal-actions .btn{flex:1 1;height:44px}.modal .hint{margin:16px 0 0;font-size:12px;color:var(--muted)}label{display:flex;flex-direction:column;gap:6px;font-weight:500;font-size:13px}.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:20px 24px}.card h2{margin:0 0 8px;font-size:16px;font-weight:500}.form{display:flex;flex-direction:column;gap:12px;margin-top:12px}.form .btn{align-self:flex-start}.form-actions{display:flex;align-items:center;gap:8px}.settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));grid-gap:16px;gap:16px;max-width:900px}.theme-choice{display:flex;gap:8px;margin-top:12px}.table{width:100%;background:var(--card);border:1px solid var(--line);border-radius:12px;border-collapse:separate;border-spacing:0;overflow:hidden}.table td,.table th{text-align:left;padding:12px 16px;border-bottom:1px solid var(--line-soft)}.table th{font-size:12px;color:var(--muted);font-weight:500;background:var(--card)}.table tr:last-child td{border-bottom:none}.table .num{text-align:right;font-family:var(--mono);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;white-space:nowrap}.table-link:hover{color:var(--accent-text)}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.login-card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:32px;width:min(380px,100%);gap:16px;box-shadow:var(--shadow)}.login-card,.templates{display:flex;flex-direction:column}.templates{gap:12px;max-width:760px}.placeholder-help{max-width:760px;margin-bottom:16px;line-height:22px;color:var(--text2)}.placeholder-help ul{margin:8px 0;padding-left:20px}.placeholder-help code{font-family:var(--mono);font-size:12px;background:var(--raised);color:var(--text);border-radius:4px;padding:1px 6px}.report-header{flex-direction:row;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}.report-title{display:flex;flex-direction:column;gap:4px;min-width:0}.report-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.chart-card{position:relative}.chart-empty{position:absolute;left:0;right:0;top:50%;text-align:center;font-size:13px;color:var(--muted);pointer-events:none;z-index:1}.wish-modal{width:min(520px,94vw)}.wish-modal form{display:flex;flex-direction:column;gap:12px}.wish-modal form p{margin:0}.wish-modal textarea{width:100%}.wish-attach{align-self:flex-start}.wish-preview{display:flex;flex-direction:column;gap:6px;align-items:flex-start}.wish-preview img{max-width:100%;max-height:200px;border-radius:8px;border:1px solid var(--line)}.wish-modal .modal-actions{margin-top:4px}.segmented{display:inline-flex;padding:2px;gap:2px;background:var(--seg-bg);border:1px solid var(--line-soft);border-radius:10px}.segmented a{height:32px;display:inline-flex;align-items:center;padding:0 12px;border-radius:8px;color:var(--text2);font-size:13px}.segmented a.active{background:var(--seg-on);color:var(--text);font-weight:600;box-shadow:var(--shadow-sm)}.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));grid-gap:12px;gap:12px;margin:8px 0 24px}.tile{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px 20px}.tile-label{font-size:12px;color:var(--muted)}.tile-value{font-family:var(--mono);font-size:28px;line-height:32px;font-weight:500;margin:8px 0 4px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.tile-sub{font-size:12px;color:var(--muted)}.tile.alert .tile-value{color:var(--late)}.tile-delta{font-size:12px;color:var(--muted);margin-top:6px;padding-top:6px;border-top:1px solid var(--line-soft)}.tile-delta.good{color:var(--good)}.tile-delta.bad{color:var(--late)}.charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));grid-gap:12px;gap:12px;margin-bottom:12px}.chart-card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px 20px 8px;min-width:0}.chart-title{font-weight:600;font-size:14px}.chart-sub{font-size:12px;color:var(--muted);margin:2px 0 8px}.chart{position:relative;width:100%}.chart svg{display:block;overflow:visible}.chart svg rect:focus{outline:none}.chart-grid{stroke:var(--line);stroke-width:1}.chart-grid,.chart-target{shape-rendering:crispEdges}.chart-target{stroke:var(--muted);stroke-width:1}.chart-tick{font-family:var(--mono);font-size:10px;fill:var(--muted)}.chart-col{fill:var(--chart);transition:opacity .1s}.chart:has(.chart-col.on) .chart-col:not(.on){opacity:.55}.chart-tip{position:absolute;top:0;transform:translateX(-50%);pointer-events:none;background:var(--card);border:1px solid var(--line2);border-radius:8px;box-shadow:var(--shadow);padding:6px 10px;display:flex;flex-direction:column;gap:1px;font-size:12px;color:var(--muted);white-space:nowrap;z-index:2}.chart-tip strong{font-family:var(--mono);font-size:14px;color:var(--text);font-weight:600}.day-table{margin:0 0 24px}.day-table summary{cursor:pointer;font-size:13px;color:var(--muted);padding:4px 0 8px;width:-moz-fit-content;width:fit-content}.day-table summary:hover{color:var(--text)}.footnote{margin-top:24px;max-width:760px;line-height:20px}.feedback-form{margin-bottom:8px;display:flex;flex-direction:column;gap:12px}.feedback-form h2{margin:0}.feedback-kinds{display:flex;gap:8px;flex-wrap:wrap}.radio-pill{flex-direction:row;align-items:center;cursor:pointer}.radio-pill input{position:absolute;opacity:0;pointer-events:none;width:auto}.radio-pill span{border:1px solid var(--line2);border-radius:8px;padding:6px 14px;background:var(--card);font-weight:500;color:var(--text2)}.radio-pill input:checked+span{background:var(--raised);border-color:var(--text);color:var(--text)}.radio-pill input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}.feedback-list{display:flex;flex-direction:column;gap:12px}.feedback-item{position:relative}.feedback-item.mine:before{content:"";position:absolute;left:-1px;top:20px;width:3px;height:24px;border-radius:0 2px 2px 0;background:var(--accent)}.feedback-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}.feedback-body{white-space:pre-wrap;color:var(--body)}.feedback-meta{display:flex;gap:16px;flex-wrap:wrap;margin-top:8px}.feedback-meta a{color:var(--accent-text)}.feedback-reply{margin-top:12px;background:var(--raised);border-radius:8px;padding:12px;white-space:pre-wrap}.feedback-admin{margin-top:12px;border-top:1px dashed var(--line2);padding-top:12px;display:flex;flex-direction:column;gap:8px}.feedback-admin-row{display:flex;align-items:center;gap:8px}.feedback-admin select{width:auto;height:32px;padding:0 8px;font-size:13px}.badge.fb-new{color:var(--text)}.badge.fb-new:before,.badge.kind-bug:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px;vertical-align:1px;background:var(--accent)}.badge.kind-bug:before{background:var(--late)}.mention-list{list-style:none;margin:0;padding:0;background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden}.mention-list li+li{border-top:1px solid var(--line-soft)}.mention-row{position:relative;display:flex;gap:12px;padding:16px 20px;transition:background-color .15s var(--ease)}.mention-row:hover{background:var(--hover-row)}.mention-row .lamel{top:20px}.mention-main{flex:1 1;min-width:0;display:flex;flex-direction:column;gap:4px}.mention-top{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}.mention-subject{color:var(--text);font-weight:500}.mention-row.unseen .mention-subject{font-weight:600}.mention-text{color:var(--text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mention-when{font-family:var(--mono);font-size:12px;color:var(--muted);white-space:nowrap}.loading-page{position:relative}.loading-bar{position:fixed;top:0;left:248px;right:0;height:2px;z-index:50;background:linear-gradient(90deg,transparent,var(--accent),transparent);background-size:50% 100%;background-repeat:no-repeat;animation:loading-bar 1s var(--ease) infinite}@keyframes loading-bar{0%{background-position:-50% 0}to{background-position:150% 0}}.skeleton{background:var(--raised);border-radius:8px;margin-bottom:12px}.skeleton-title{height:32px;width:240px;margin-bottom:20px}.skeleton-line{height:36px;width:100%;margin-bottom:20px}.skeleton-row{height:64px;width:100%}@media (max-width:1100px){.side-panel{position:static;max-width:none}}.lbl-short,.m-backdrop,.m-close,.m-grab,.m-meta,.m-only,.m-replybar,.m-sheet-close,.m-tabbar,.m-topbar{display:none}@media (max-width:760px){body,html{overscroll-behavior:none}input,select,textarea{font-size:16px}.m-only{display:inline-flex}.shell{display:block;min-height:100dvh}.m-topbar{display:flex;align-items:center;gap:4px;position:-webkit-sticky;position:sticky;top:0;z-index:40;padding:env(safe-area-inset-top) 12px 0 4px;height:calc(52px + env(safe-area-inset-top));background:color-mix(in srgb,var(--bg) 92%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.m-wordmark{font-size:18px;color:var(--text)}.m-wordmark b{font-weight:700}.m-wordmark span{color:var(--muted)}.m-icon-btn{width:44px;height:44px;border:0;border-radius:10px;background:transparent;color:var(--text);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.sidebar{position:fixed;z-index:70;top:0;bottom:0;left:0;width:min(312px,86vw);height:100dvh;padding:calc(16px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));transform:translateX(-102%);transition:transform .26s var(--ease);box-shadow:8px 0 32px rgba(0,0,0,.12);overscroll-behavior:contain}.sidebar.open{transform:none}.sidebar .m-close{display:inline-flex;position:absolute;top:calc(12px + env(safe-area-inset-top));right:8px}.sidebar .nav-item{height:44px;font-size:15px}.sidebar .nav-item.small{height:40px}.sidebar .nav-item.active:before{left:-16px}.m-backdrop{display:block;position:fixed;inset:0;z-index:60;background:rgba(10,10,12,.4)}.m-tabbar{display:flex;justify-content:space-around;position:fixed;z-index:40;left:0;right:0;bottom:0;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:var(--card);border-top:1px solid var(--line)}.m-tab{flex:1 1;min-height:48px;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;color:var(--muted)}.m-tab.active{color:var(--accent-text);font-weight:600}.m-tab-icon{position:relative;display:inline-flex}.m-dot{position:absolute;top:-1px;right:-4px;width:8px;height:8px;border-radius:50%;background:var(--accent);border:2px solid var(--card)}.content{padding:16px 16px calc(96px + env(safe-area-inset-bottom))}.content>*{max-width:none}.loading-bar{left:0}.page-header{margin-bottom:12px}.page-header h1{font-size:22px;line-height:28px}.summary{font-size:13px}.inbox-head{gap:12px;margin-bottom:12px}.search{width:100%;height:44px;border-radius:12px}.tabs{gap:8px;border-bottom:0;margin:0 -16px 12px;padding:0 16px;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tab{height:34px;padding:0 12px;border:1px solid var(--line2);border-radius:17px;margin:0;align-items:center;font-size:14px}.tab.active{background:var(--text);border-color:var(--text)}.tab.active,.tab.active .tab-count{color:var(--bg)}.ticket-list{margin:0 -16px;border-radius:0;border-left:0;border-right:0}.ticket-row{align-items:flex-start;gap:12px;min-height:0;padding:12px 16px 12px 20px}.ticket-row .avatar{width:36px;height:36px;font-size:13px}.ticket-subject{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px}.ticket-side{position:absolute;top:12px;right:16px;gap:0}.claim,.ticket-side .badge,.ticket-side .ticket-number{display:none}.ticket-top{padding-right:56px}.ticket-email{display:none}.m-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.m-claim,.m-meta{align-items:center}.m-claim{display:inline-flex;gap:4px;font-size:12px;color:var(--text2)}.m-claim .avatar{width:16px;height:16px;font-size:9px}.lamel{top:16px}.row-actions{display:none!important}.ticket-layout{gap:24px}.ticket-header h1{font-size:20px;line-height:26px}.ticket-header-row{gap:8px}.segmented-status{max-width:100%;overflow-x:auto;scrollbar-width:none}.segmented-status button{height:36px;white-space:nowrap}.btn.small,.claim-chip{height:36px}.msg{max-width:92%;padding:12px 14px;border-radius:14px}.msg.internal{width:100%;max-width:100%}.msg-addr{display:none}.side-panel{scroll-margin-top:64px}.m-replybar{display:flex;gap:8px;position:fixed;z-index:40;left:0;right:0;bottom:0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:var(--card);border-top:1px solid var(--line)}.m-replybar .btn{height:48px;border-radius:12px}.m-replybar .btn.primary{flex:1 1;font-size:16px}.m-replybar .m-square{width:48px;padding:0}.reply{display:none}.reply.sheet-open{display:flex;position:fixed;z-index:70;left:0;right:0;bottom:0;top:calc(56px + env(safe-area-inset-top));border-radius:20px 20px 0 0;border-left:0;border-right:0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom);overflow-y:auto;overscroll-behavior:contain;animation:sheet-up .26s var(--ease)}@keyframes sheet-up{0%{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}.m-sheet-backdrop{z-index:65}.m-grab{display:block;width:36px;height:5px;border-radius:3px;background:var(--line2);margin:8px auto 4px;flex-shrink:0}.reply-tabs{gap:2px;margin:4px 8px 8px 16px;padding:2px;border:0;background:var(--seg-bg);border-radius:10px;align-items:center}.reply-tabs button[role=tab]{flex:1 1;height:36px;padding:0;border:0;border-radius:8px;margin:0;font-size:14px}.reply-tabs button[role=tab].active{background:var(--seg-on);box-shadow:var(--shadow-sm);border:0}.lbl-long{display:none}.lbl-short{display:inline}.m-sheet-close{display:inline-flex;margin-left:4px;margin-right:-6px}.reply-meta{padding:4px 16px 0}.reply-input{flex:1 1;display:flex;flex-direction:column;padding:8px 16px 0}.reply-input textarea{flex:1 1;min-height:160px;font-size:16px;line-height:24px;resize:none}.slash-menu{left:16px;right:16px;width:auto!important}.reply-tip{display:none}.reply-actions{padding:12px 16px;border-top:1px solid var(--line-soft)}.reply-actions .btn{height:44px;border-radius:12px}.reply-actions .btn.internal,.reply-actions .btn.primary{height:48px;padding:0 20px}.reply-actions .kbd{display:none}.modal-backdrop{align-items:flex-end}.modal{width:100%;border-radius:20px 20px 0 0;padding:24px 20px calc(24px + env(safe-area-inset-bottom))}.login-wrap{min-height:100dvh;padding:env(safe-area-inset-top) 24px env(safe-area-inset-bottom);align-items:center}.login-card{border:0;box-shadow:none;background:transparent;padding:0;gap:20px;margin-bottom:15vh}.login-card input{height:48px;border-radius:12px}.login-card .btn.wide{height:52px;border-radius:12px;font-size:16px}.settings{grid-template-columns:1fr}.table{display:block;overflow-x:auto}.card{padding:16px}}.rule-active{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--text2);padding-top:12px;border-top:1px solid var(--line-soft)}.rule-active b{color:var(--text);font-weight:600}.panel-block>.link-button,.rule-active .link-button{align-self:flex-start}.panel-block>.link-button{padding-top:12px;border-top:1px solid var(--line-soft);width:100%;text-align:left;color:var(--muted);font-weight:400}.panel-block>.link-button:hover{color:var(--text)}.rule-form{gap:10px;padding-top:12px;border-top:1px solid var(--line-soft)}.rule-form,.rule-scope{display:flex;flex-direction:column}.rule-scope{gap:6px}.rule-scope .radio-pill span{display:block;font-size:12px;padding:6px 10px;word-break:break-all}.rule-form .form-actions{flex-wrap:wrap}.rules-card{max-width:900px;margin-top:16px}.rules{display:flex;flex-direction:column;gap:12px;margin-top:12px}.rule-add{display:flex;gap:8px;flex-wrap:wrap}.rule-add input{flex:1 1 240px}.rule-add select{width:auto}.rules-table td,.rules-table th{padding:8px 12px}.live-dot{width:8px;height:8px;border-radius:50%;background:var(--live,#16a34a);flex-shrink:0;display:inline-block;box-shadow:0 0 0 3px color-mix(in srgb,var(--live,#16a34a) 18%,transparent)}.live-badge.wait .live-dot,.live-mobile .live-dot,.live-nav.wait .live-dot,.live-panel.waiting .live-dot,.live-row.wait .live-dot{animation:live-breathe 1.8s ease-in-out infinite}@keyframes live-breathe{0%,to{box-shadow:0 0 0 3px color-mix(in srgb,var(--live,#16a34a) 18%,transparent)}50%{box-shadow:0 0 0 5px color-mix(in srgb,var(--live,#16a34a) 8%,transparent)}}.live-badge{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--good);background:color-mix(in srgb,var(--good) 10%,transparent);padding:3px 10px 3px 8px;border-radius:999px;white-space:nowrap}.live-badge.wait{background:color-mix(in srgb,var(--good) 16%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--good) 35%,transparent)}.live-badge.large{font-size:13px;padding:4px 12px 4px 10px}.live-typing{display:inline-flex;align-items:center;gap:3px}.live-typing i{width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.4;animation:live-typing 1.2s infinite}.live-typing i:first-of-type{margin-left:3px}.live-typing i:nth-of-type(2){animation-delay:.15s}.live-typing i:nth-of-type(3){animation-delay:.3s}@keyframes live-typing{0%,60%,to{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-2px)}}.live-nav{display:inline-flex;align-items:center;gap:6px;min-width:26px;justify-content:flex-end;font-size:12px;font-weight:700;color:var(--good)}.live-panel{margin:6px 0 2px;padding:10px;border-radius:12px;background:var(--card);border:1px solid var(--line);display:flex;flex-direction:column;gap:4px}.live-panel.waiting{border-color:color-mix(in srgb,var(--good) 45%,transparent);box-shadow:0 0 0 3px color-mix(in srgb,var(--good) 10%,transparent),0 6px 18px rgba(0,0,0,.05)}.live-panel-head{display:flex;align-items:center;gap:8px;font-size:11.5px;font-weight:600;color:var(--good);padding:0 4px 4px;letter-spacing:.01em}.live-row{display:flex;flex-direction:column;gap:2px;padding:8px;border-radius:8px;color:var(--text);text-decoration:none;transition:background-color .15s var(--ease)}.live-row:hover{background:var(--hover-row)}.live-row.wait{background:color-mix(in srgb,var(--good) 7%,transparent)}.live-row.wait:hover{background:color-mix(in srgb,var(--good) 12%,transparent)}.live-row.here{box-shadow:inset 2px 0 0 var(--good)}.live-row-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.live-row-name{font-size:13.5px;min-width:0;overflow:hidden;text-overflow:ellipsis}.live-row-name,.live-row-state{font-weight:600;white-space:nowrap}.live-row-state{font-size:11.5px;color:var(--good)}.live-row-msg{font-size:12.5px;color:var(--text2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.live-row-cta{margin-top:4px;font-size:12.5px;font-weight:600;color:var(--good)}.live-panel-more{font-size:12px;color:var(--muted);padding:2px 8px}.live-panel-perm{margin-top:2px;border:0;background:transparent;color:var(--muted);font-size:12px;text-align:left;padding:4px 8px;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.live-panel-perm:hover{color:var(--text)}.live-mobile{display:none}@media (max-width:760px){.live-mobile{position:fixed;left:12px;right:12px;bottom:76px;z-index:900;display:flex;align-items:center;justify-content:center;gap:10px;height:46px;border-radius:999px;background:var(--card);color:var(--good);font-weight:600;font-size:14px;text-decoration:none;border:1px solid color-mix(in srgb,var(--good) 40%,transparent);box-shadow:0 10px 28px rgba(0,0,0,.12)}}@media (prefers-reduced-motion:reduce){.live-dot,.live-typing i{animation:none!important}}.segmented button{height:32px;display:inline-flex;align-items:center;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--text2);font-size:13px;cursor:pointer;text-transform:capitalize}.segmented button.active{background:var(--seg-on);box-shadow:var(--shadow-sm);color:var(--text);font-weight:600}.insight-card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px 20px 20px;margin-bottom:24px;display:flex;flex-direction:column;gap:10px}.insight-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.insight-report{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));grid-gap:14px 28px;gap:14px 28px;margin-top:6px}.insight-block h3{font-size:13px;font-weight:600;margin:0 0 6px;color:var(--text)}.insight-block li,.insight-block p{font-size:14px;line-height:1.55;color:var(--body);margin:0}.insight-block ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px}.insight-block:first-child{grid-column:1/-1}.chat-mode-wrap{display:contents}.chat-label{flex-wrap:wrap}button.chat-mode{border:0;cursor:pointer;font-family:inherit;transition:filter .15s var(--ease)}button.chat-mode:hover{filter:brightness(.96)}button.chat-mode:focus{outline:none}button.chat-mode:focus-visible{outline:2px solid currentColor;outline-offset:2px}.chat-mode.manual{box-shadow:inset 0 0 0 1.5px currentColor}.chat-mode .chev{font-size:9px;opacity:.7;margin-left:1px}.chat-mode-menu{flex-basis:100%;margin-top:8px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,.06);padding:4px;display:flex;flex-direction:column;gap:2px;animation:menu-in .14s var(--ease)}@keyframes menu-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}.chat-mode-menu>button{display:flex;align-items:center;gap:10px;text-align:left;border:0;background:transparent;border-radius:8px;padding:7px 10px;cursor:pointer;color:var(--text);font-family:inherit;width:100%}.chat-mode-menu>button:hover{background:var(--hover-row)}.chat-mode-menu>button.on{background:var(--raised)}.chat-mode-menu>button>span:last-child{min-width:0}.chat-mode-menu b{display:block;font-size:13px;font-weight:600;letter-spacing:0}.chat-mode-menu small{display:block;font-size:11.5px;color:var(--muted);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-mode-menu .dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.chat-mode-menu .dot.team{background:#f97316}.chat-mode-menu .dot.bot{background:#16a34a}.chat-mode-menu .dot.auto{background:var(--muted)}.chat-mode-note{font-size:11px;line-height:1.4;color:var(--muted);padding:6px 10px 4px;border-top:1px solid var(--line);margin-top:2px}.btn.icon-only{width:32px;padding:0;justify-content:center;color:var(--muted)}.btn.icon-only:hover:not(:disabled){color:var(--danger);border-color:color-mix(in srgb,var(--danger) 40%,transparent)}.delete-confirm{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--text2)}.row-action.icon-only{padding:0 9px}.row-action.icon-only:hover{color:var(--danger)}.row-action.danger{background:var(--danger);border-color:var(--danger);color:#fff}.reply-lang{display:inline-flex;gap:2px;padding:2px;margin-bottom:8px;border-radius:8px;background:var(--seg-bg);border:1px solid var(--line-soft)}.reply-lang button{height:26px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:var(--text2);font-size:12.5px;cursor:pointer}.reply-lang button.on{background:var(--seg-on);color:var(--text);font-weight:600;box-shadow:var(--shadow-sm)}.reply-en{min-height:120px;white-space:pre-wrap;font-size:14px;line-height:1.55;color:var(--body);padding:2px 0 8px}.reply-en-note{margin-top:10px;font-size:12px;color:var(--muted);white-space:normal}.inbox-tools{display:flex;align-items:center;gap:8px}.refresh-wrap{display:inline-flex;align-items:center;gap:8px}.btn.refresh-btn{width:36px;height:36px;padding:0;justify-content:center;color:var(--text2)}.btn.refresh-btn.busy .icon{animation:spin .9s linear infinite}.refresh-note{font-size:12.5px;color:var(--muted);white-space:nowrap}@keyframes spin{to{transform:rotate(1turn)}}@media (max-width:760px){.inbox-tools{width:100%}.inbox-tools .search{flex:1 1}.refresh-note{display:none}}.btn.new-mail-btn{height:36px}.new-mail{gap:14px;max-width:760px;padding:20px}.new-mail,.new-mail label{display:flex;flex-direction:column}.new-mail label{gap:6px;font-size:13px;color:var(--text2);flex:1 1}.new-mail label>span{font-weight:600;color:var(--text)}.new-mail textarea{resize:vertical;min-height:220px}.new-mail-row{display:flex;gap:14px}.new-mail .reply-files{padding:0}.new-mail-actions{display:flex;align-items:center;gap:8px}@media (max-width:760px){.new-mail-row{flex-direction:column}.btn.new-mail-btn .lbl-long{display:none}.btn.new-mail-btn{width:36px;padding:0;justify-content:center}}.badge.third-party{background:color-mix(in srgb,#f97316 14%,transparent);color:#c2410c;font-weight:600}html[data-theme=dark] .badge.third-party{color:#fdba74}.avatar.third-party{background:color-mix(in srgb,#f97316 22%,var(--card));color:#c2410c}.list-more{display:flex;justify-content:center;padding:16px 0 8px}.reply-state{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;font-size:11.5px;font-weight:600;line-height:1;padding:4px 8px 4px 7px;border-radius:999px;white-space:nowrap}.reply-state:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.reply-state.needs{color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent)}.reply-state.done{color:var(--good);background:color-mix(in srgb,var(--good) 10%,transparent)}.ticket-row.answered .ticket-customer{color:var(--text2)}.ticket-row.answered .ticket-subject{color:var(--muted)}.list-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:-4px 0 12px;transition:opacity .15s var(--ease)}.list-controls.busy{opacity:.6}.list-controls .seg-mini{margin-left:auto}.chip-toggle{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 10px 0 9px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--text2);font-size:12.5px;font-weight:500;cursor:pointer;font-family:inherit}.chip-toggle .dot{width:7px;height:7px;border-radius:50%;background:var(--accent)}.chip-toggle .n{font-family:var(--mono,inherit);font-size:11.5px;color:var(--muted)}.chip-toggle:hover{border-color:color-mix(in srgb,var(--accent) 40%,var(--line))}.chip-toggle.on{background:color-mix(in srgb,var(--accent) 12%,var(--card));border-color:color-mix(in srgb,var(--accent) 45%,transparent)}.chip-toggle.on,.chip-toggle.on .n{color:var(--accent)}.seg-mini{display:inline-flex;gap:2px;padding:2px;border-radius:8px;background:var(--seg-bg);border:1px solid var(--line-soft)}.seg-mini button{height:26px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:var(--text2);font-size:12.5px;cursor:pointer;font-family:inherit}.seg-mini button.on{background:var(--seg-on);color:var(--text);font-weight:600;box-shadow:var(--shadow-sm)}