@font-face{font-family:Mariupol;src:url('/static/assets/Mariupol-Regular.woff') format('woff');font-weight:400;font-display:swap}
@font-face{font-family:Mariupol;src:url('/static/assets/Mariupol-Medium.woff') format('woff');font-weight:500 600;font-display:swap}
@font-face{font-family:Mariupol;src:url('/static/assets/Mariupol-Bold.woff') format('woff');font-weight:650 900;font-display:swap}
:root{color-scheme:light;--bg:#f7f7f7;--card:#ffffff;--border:#e1e9ec;--text:#03257e;--muted:#667780;--accent:#04cdb2;--blue:#03257e;--green:#007f69;--red:#c43745;--yellow:#ffdf00}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Mariupol,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text);font-size:16px}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{opacity:.45;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.app{max-width:640px;margin:auto;padding:calc(16px + env(safe-area-inset-top)) 16px 116px}.brand{display:flex;align-items:center;gap:10px;margin-bottom:24px}.brand-icon{width:38px;height:38px;border:1px solid #d8eee9;border-radius:12px;color:var(--accent);display:grid;place-items:center;font-size:27px;background:#ffffff}.brand strong{font-size:19px;letter-spacing:-.5px}.brand span{display:block;font-size:12px;color:var(--muted);margin-top:1px}.avatar{margin-left:auto;width:38px;height:38px;border:1px solid #c6e9e2;border-radius:50%;background:#e2f7f2;color:#007e70;font-weight:700}.toolbar{display:flex;gap:10px;margin-bottom:14px}.search{display:flex;gap:9px;align-items:center;flex:1;background:#ffffff;border:1px solid var(--border);border-radius:20px;padding:10px 14px;color:var(--muted)}.search input{background:none;border:0;outline:none;width:100%;color:var(--text);font-size:13px}.square{border:1px solid var(--border);border-radius:50%;width:39px;height:39px;display:grid;place-items:center;color:var(--muted)}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.tabs{display:flex;border:1px solid var(--border);border-radius:21px;padding:4px;gap:4px;margin-bottom:18px}.tabs button{flex:1;border-radius:18px;padding:9px 4px;color:var(--muted);font-size:14px;font-weight:650;white-space:nowrap}.tabs button.active{background:#e5f7f3;color:var(--blue);box-shadow:inset 0 0 0 1px #b6e7dc}.categories{display:flex;overflow:auto;gap:8px;margin:0 -16px 20px;padding:0 16px;scrollbar-width:none}.categories button{white-space:nowrap;border-radius:18px;color:var(--muted);font-size:12px;padding:9px 13px;font-weight:600}.categories button.active{background:var(--yellow);color:#03257e}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.section-title h1{font-size:21px;letter-spacing:-.6px;margin:0}.count{font-size:12px;color:var(--muted)}.ticket{display:block;text-align:left;width:100%;border:1px solid var(--border);background:var(--card);border-radius:22px;padding:17px;margin-bottom:12px;transition:border-color .15s}.ticket:hover{border-color:#b3d8cf}.ticket-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);margin-bottom:14px}.ticket-number{font-weight:600;letter-spacing:.3px}.badge{border:1px solid #dae5f0;border-radius:12px;padding:4px 7px;color:var(--blue);background:#edf3fb;font-size:12px;white-space:nowrap}.badge.COMPLETED{color:var(--green);border-color:#c5e8da;background:#e7f7ef}.badge.CLOSED{color:#627680;border-color:#dbe3e6;background:#eff3f5}.badge.WAITING_USER{color:#795aa6;border-color:#dfd2ed;background:#f4effa}.priority{color:var(--red);display:flex;align-items:center;gap:4px;font-size:12px;margin-bottom:8px}.ticket h2{font-size:17px;line-height:1.4;margin:0 0 6px}.subtle{color:var(--muted);font-size:12px}.description{color:#546874;font-size:14px;line-height:1.55;margin:12px 0 15px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ticket-footer{border-top:1px solid #e8edef;padding-top:12px;display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.ticket-footer strong{font-size:12px;color:#23436b;font-weight:600}.mini-avatar{display:grid;place-items:center;height:25px;width:25px;border-radius:50%;background:#e3f3f0;color:#007e70;font-size:12px}.ticket-footer time{margin-left:auto}.empty{text-align:center;color:var(--muted);padding:70px 20px;line-height:1.8}.empty svg{width:52px;height:52px;margin-bottom:16px;color:#85a2a6}.empty strong{display:block;color:var(--text);font-size:17px;margin-bottom:8px}.primary{background:var(--accent);color:#123d49;font-weight:700;border-radius:15px;padding:13px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.secondary{border:1px solid var(--border);background:#ffffff;padding:12px 16px;border-radius:14px}.danger{color:var(--red)}.wide{width:100%}.empty .primary{margin-top:16px}.more{margin:16px auto;display:block}#nav{position:fixed;bottom:calc(17px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:5px;max-width:calc(100% - 32px);width:410px;border:1px solid #dce8e7;padding:6px;border-radius:29px;background:#fffffff5;backdrop-filter:blur(18px);box-shadow:0 12px 45px #123b6a16;z-index:5}#nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;flex:1;min-width:0;font-size:12px;color:var(--muted);padding:10px 6px;border-radius:23px}#nav button.active{background:#e8f5f1;color:#03257e}#nav .plus{background:#def7ef;color:var(--accent)}.form h1{margin:0;font-size:23px;letter-spacing:-.6px}.form p{color:var(--muted);line-height:1.7;margin-bottom:23px;font-size:12px}.field{display:block;margin:18px 0;font-size:14px;color:#284a6c}.field span{display:block;margin-bottom:8px}input,textarea,select{width:100%;background:#ffffff;border:1px solid #d8e3e7;border-radius:13px;color:var(--text);padding:12px;outline:none}textarea{resize:vertical;min-height:110px;line-height:1.6}input[type=file]{font-size:12px}.impact{display:flex;flex-direction:column;gap:8px}.impact label{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:13px;padding:13px;color:#244768;font-size:12px}.impact input{width:auto;accent-color:var(--accent)}.impact label:has(input:checked){border-color:#04b99f;background:#e9f9f3}.hint{font-size:12px;line-height:1.6;color:var(--muted)}#overlay{position:fixed;inset:0;background:#102e695e;backdrop-filter:blur(4px);z-index:10;display:flex;align-items:flex-end;justify-content:center}#overlay[hidden]{display:none}#sheet{background:#ffffff;border:1px solid var(--border);border-radius:25px 25px 0 0;padding:20px 20px calc(25px + env(safe-area-inset-bottom));max-width:640px;width:100%;max-height:94dvh;overflow:auto}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.sheet-header h2{font-size:18px;margin:0}.sheet-header button{background:#e8f5f1;border-radius:50%;width:32px;height:32px}.details{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:22px 0}.details div{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.details span{display:block;color:var(--muted);font-size:12px;margin-bottom:3px}.body-text{font-size:16px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.actions{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.actions button{flex-grow:1}.small-title{font-size:12px;color:var(--muted);margin-top:24px}.chat-message{background:#eef7f5;border-radius:14px;padding:12px;margin:8px 0;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message.system{background:#f4f6f8;color:#687b88;font-size:12px}.chat-message strong{display:block;color:#007f71;font-size:12px}.chat-message time{font-size:12px;color:var(--muted)}.menu-item{display:flex;align-items:center;gap:13px;border:1px solid var(--border);border-radius:17px;background:var(--card);padding:17px;width:100%;text-align:left;margin:10px 0}.menu-item svg{color:var(--accent)}.menu-item small{display:block;color:var(--muted);margin-top:4px}.user-row{display:flex;justify-content:space-between;align-items:center;gap:10px}.user-row div{min-width:0}.user-row strong{overflow-wrap:anywhere}#toast{position:fixed;bottom:105px;left:50%;transform:translateX(-50%);max-width:90%;width:max-content;border:1px solid #03257e;border-radius:16px;background:#03257e;color:white;padding:13px 18px;font-size:12px;z-index:20;box-shadow:0 8px 30px #123b6a16}#banner{border:1px solid #e5d48d;background:#fff8d9;color:#766221;font-size:12px;padding:10px;border-radius:10px;margin-bottom:14px}.summary-row{padding:12px 0;border-bottom:1px solid var(--border);font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.summary-row small{display:block;color:var(--muted)}@media(min-width:700px){.app{padding-top:30px}.ticket{padding:21px}#sheet{border-radius:25px;max-height:88dvh;margin-bottom:4vh}#overlay{align-items:center}.brand{margin-bottom:30px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

#nav[hidden]{display:none}

.search input{padding:0;border-radius:0}

.brand-logo{width:60px;height:48px;object-fit:contain;flex-shrink:0}.brand strong{font-size:19px}.brand span{font-size:13px}.brand{border-bottom:1px solid var(--border);padding-bottom:18px}.ticket{box-shadow:0 4px 18px #03257e06}.square{flex-shrink:0;background:#fff}.primary:hover{background:#00bfa5}.search input{font-size:14px}.field input,.field select,.field textarea{font-size:16px}.sheet-header h2{color:var(--text)}
